[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-10-02 17:20:49 +00:00
1 parent 08e9ca803c
commit a6f223ea3e
5 files changed
+201 -201

No files matched your search

Generated Vendored
+131 -131
View File
@@ -1,32 +1,32 @@
var tqe=Object.create;var gx=Object.defineProperty;var rqe=Object.getOwnPropertyDescriptor;var nqe=Object.getOwnPropertyNames;var iqe=Object.getPrototypeOf,sqe=Object.prototype.hasOwnProperty;var o=(t,e)=>gx(t,"name",{value:e,configurable:!0});var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oqe=(t,e)=>{for(var r in e)gx(t,r,{get:e[r],enumerable:!0})},aqe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nqe(e))!sqe.call(t,i)&&i!==r&&gx(t,i,{get:()=>e[i],enumerable:!(n=rqe(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?tqe(iqe(t)):{},aqe(e||!t||!t.__esModule?gx(r,"default",{value:t,enumerable:!0}):r,t));var OZ=A(am=>{"use strict";var g5t=require("net"),hqe=require("tls"),EL=require("http"),QZ=require("https"),pqe=require("events"),y5t=require("assert"),Aqe=require("util");am.httpOverHttp=mqe;am.httpsOverHttp=gqe;am.httpOverHttps=yqe;am.httpsOverHttps=Eqe;function mqe(t){var e=new pu(t);return e.request=EL.request,e}o(mqe,"httpOverHttp");function gqe(t){var e=new pu(t);return e.request=EL.request,e.createSocket=kZ,e.defaultPort=443,e}o(gqe,"httpsOverHttp");function yqe(t){var e=new pu(t);return e.request=QZ.request,e}o(yqe,"httpOverHttps");function Eqe(t){var e=new pu(t);return e.request=QZ.request,e.createSocket=kZ,e.defaultPort=443,e}o(Eqe,"httpsOverHttps");function pu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=PZ(i,s,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(pu,"TunnelingAgent");Aqe.inherits(pu,pqe.EventEmitter);pu.prototype.addRequest=o(function(e,r,n,i){var s=this,a=CL({request:e},s.options,PZ(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");pu.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=CL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Qd("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){Qd("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var g=new Error("tunneling socket could not be established, statusCode="+f.statusCode);g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(i);return}if(p.length>0){Qd("got illegal response body from proxy"),h.destroy();var g=new Error("got illegal response body from proxy");g.code="ECONNRESET",e.request.emit("error",g),n.removeSocket(i);return}return Qd("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),Qd(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");pu.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(i){n.request.onSocket(i)})}},"removeSocket");function kZ(t,e){var r=this;pu.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=CL({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=hqe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(kZ,"createSecureSocket");function PZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(PZ,"toOptions");function CL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var i=Object.keys(n),s=0,a=i.length;s<a;++s){var c=i[s];n[c]!==void 0&&(t[c]=n[c])}}return t}o(CL,"mergeOptions");var Qd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Qd=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"):Qd=o(function(){},"debug");am.debug=Qd});var cm=A((b5t,LZ)=>{LZ.exports=OZ()});var Ar=A((I5t,FZ)=>{FZ.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 Tt=A((w5t,lee)=>{"use strict";var MZ=Symbol.for("undici.error.UND_ERR"),mr=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[MZ]===!0}[MZ]=!0},UZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends mr{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[UZ]===!0}[UZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),IL=class extends mr{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[qZ]===!0}[qZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends mr{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[GZ]===!0}[GZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends mr{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(Ite,"isValidHeaderValue");function PGe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(EGe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(PGe,"setRequestReferrerPolicyOnRedirect");function OGe(){return"allowed"}o(OGe,"crossOriginResourcePolicyCheck");function LGe(){return"success"}o(LGe,"corsCheck");function FGe(){return"success"}o(FGe,"TAOCheck");function MGe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(MGe,"appendFetchMetadata");function UGe(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&&mF(t.origin)&&!mF(ob(t))&&(e=null);break;case"same-origin":Gx(t,ob(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(UGe,"appendRequestOriginHeader");function ym(t,e){return t}o(ym,"coarsenTime");function qGe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ym(t.domainLookupStartTime,r),domainLookupEndTime:ym(t.domainLookupEndTime,r),connectionStartTime:ym(t.connectionStartTime,r),connectionEndTime:ym(t.connectionEndTime,r),secureConnectionStartTime:ym(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(qGe,"clampAndCoarsenConnectionTimingInfo");function GGe(t){return ym(SGe.now(),t)}o(GGe,"coarsenedSharedCurrentTime");function HGe(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(HGe,"createOpaqueTimingInfo");function wte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(wte,"makePolicyContainer");function VGe(t){return{referrerPolicy:t.referrerPolicy}}o(VGe,"clonePolicyContainer");function zGe(t){let e=t.referrerPolicy;Th(e);let r=null;if(t.referrer==="client"){let c=gte();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=AF(r),i=AF(r,!0);n.toString().length>4096&&(n=i);let s=Gx(t,n),a=sb(n)&&!sb(t.url);switch(e){case"origin":return i??AF(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=ob(t);return Gx(n,c)?n:sb(n)&&!sb(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(zGe,"determineRequestsReferrer");function AF(t,e){return Th(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(AF,"stripURLForReferrer");function sb(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(sb,"isURLPotentiallyTrustworthy");function $Ge(t,e){if(qx===void 0)return!0;let r=Ste(e);if(r==="no metadata"||r.length===0)return!0;let n=WGe(r),i=JGe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=qx.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)),YGe(l,c))return!0}return!1}o($Ge,"bytesMatch");var jGe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ste(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=jGe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();Ete.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(Ste,"parseMetadata");function WGe(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(WGe,"getStrongestMetadata");function JGe(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(JGe,"filterMetadataListByAlgorithm");function YGe(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(YGe,"compareBase64Mixed");function KGe(t){}o(KGe,"tryUpgr Line truncated
`);function QHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(QHe,"isAsciiString");function kHe(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(kHe,"validateBoundary");function PHe(t,e){Vx(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"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&zx(t,RHe,s)||s.position===t.length-4&&zx(t,DHe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=OHe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let g=t.indexOf(n.subarray(2),s.position);if(g===-1)return"failure";h=t.subarray(s.position,g-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",QHe(d)||(d=""),p=new _He([h],u,{type:d})):p=SHe(Buffer.from(h)),Vx(Lte(l)),Vx(typeof p=="string"&&Lte(p)||xHe(p)),i.push(vHe(l,p,u))}}o(PHe,"multipartFormDataParser");function OHe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=Cm(c=>c!==10&&c!==13&&c!==58,t,e);if(a=wF(a,!0,!0,c=>c===9||c===32),!BHe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Cm(c=>c===32||c===9,t,e),wHe(a)){case"content-disposition":{if(r=n=null,!zx(t,THe,e)||(e.position+=17,r=Ute(t,e),r===null))return"failure";if(zx(t,Mte,e)){let c=e.position+Mte.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=Ute(t,e),n===null))return"failure"}break}case"content-type":{let c=Cm(l=>l!==10&&l!==13,t,e);c=wF(c,!1,!0,l=>l===9||l===32),i=Fte(c);break}case"content-transfer-encoding":{let c=Cm(l=>l!==10&&l!==13,t,e);c=wF(c,!1,!0,l=>l===9||l===32),s=Fte(c);break}default:Cm(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(OHe,"parseMultipartFormDataHeaders");function Ute(t,e){Vx(t[e.position-1]===34);let r=Cm(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(Ute,"parseMultipartFormDataName");function Cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(Cm,"collectASequenceOfBytes");function wF(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t[i]);)i++;if(r)for(;s>0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(wF,"removeChars");function zx(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(zx,"bufferStartsWith");qte.exports={multipartFormDataParser:PHe,validateBoundary:kHe}});var wm=A((lzt,Xte)=>{"use strict";var lb=at(),{ReadableStreamFrom:LHe,isBlobLike:Hte,isReadableStreamLike:FHe,readableStreamClose:MHe,createDeferredPromise:UHe,fullyReadBody:qHe,extractMimeType:GHe,utf8DecodeBytes:$te}=Vs(),{FormData:Vte}=cb(),{kState:Im}=kd(),{webidl:HHe}=si(),{Blob:VHe}=require("node:buffer"),SF=require("node:assert"),{isErrored:jte,isDisturbed:zHe}=require("node:stream"),{isArrayBuffer:$He}=require("node:util/types"),{serializeAMimeType:jHe}=ps(),{multipartFormDataParser:WHe}=Gte(),BF;try{let t=require("node:crypto");BF=o(e=>t.randomInt(0,e),"random")}catch{BF=o(t=>Math.floor(Math.random(t)),"random")}var $x=new TextEncoder;function JHe(){}o(JHe,"noop");var Wte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Jte;Wte&&(Jte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!zHe(e)&&!jte(e)&&e.cancel("Response object has been garbage collected").catch(JHe)}));function Yte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Hte(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?$x.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>MHe(l))},start(){},type:"bytes"}),SF(FHe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if($He(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(lb.isFormDataLike(t)){let l=`----formdata-undici-0${`${BF(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var tqe=Object.create;var gx=Object.defineProperty;var rqe=Object.getOwnPropertyDescriptor;var nqe=Object.getOwnPropertyNames;var iqe=Object.getPrototypeOf,sqe=Object.prototype.hasOwnProperty;var o=(t,e)=>gx(t,"name",{value:e,configurable:!0});var A=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),oqe=(t,e)=>{for(var r in e)gx(t,r,{get:e[r],enumerable:!0})},aqe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of nqe(e))!sqe.call(t,i)&&i!==r&&gx(t,i,{get:()=>e[i],enumerable:!(n=rqe(e,i))||n.enumerable});return t};var N=(t,e,r)=>(r=t!=null?tqe(iqe(t)):{},aqe(e||!t||!t.__esModule?gx(r,"default",{value:t,enumerable:!0}):r,t));var LZ=A(am=>{"use strict";var C5t=require("net"),hqe=require("tls"),EL=require("http"),kZ=require("https"),pqe=require("events"),b5t=require("assert"),Aqe=require("util");am.httpOverHttp=mqe;am.httpsOverHttp=gqe;am.httpOverHttps=yqe;am.httpsOverHttps=Eqe;function mqe(t){var e=new pu(t);return e.request=EL.request,e}o(mqe,"httpOverHttp");function gqe(t){var e=new pu(t);return e.request=EL.request,e.createSocket=PZ,e.defaultPort=443,e}o(gqe,"httpsOverHttp");function yqe(t){var e=new pu(t);return e.request=kZ.request,e}o(yqe,"httpOverHttps");function Eqe(t){var e=new pu(t);return e.request=kZ.request,e.createSocket=PZ,e.defaultPort=443,e}o(Eqe,"httpsOverHttps");function pu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||EL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(n,i,s,a){for(var c=OZ(i,s,a),l=0,u=e.requests.length;l<u;++l){var d=e.requests[l];if(d.host===c.host&&d.port===c.port){e.requests.splice(l,1),d.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}o(pu,"TunnelingAgent");Aqe.inherits(pu,pqe.EventEmitter);pu.prototype.addRequest=o(function(e,r,n,i){var s=this,a=CL({request:e},s.options,OZ(r,n,i));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){s.emit("free",c,a)}o(l,"onFree");function u(d){s.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");pu.prototype.createSocket=o(function(e,r){var n=this,i={};n.sockets.push(i);var s=CL({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Qd("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",d),a.end();function c(f){f.upgrade=!0}o(c,"onResponse");function l(f,h,p){process.nextTick(function(){u(f,h,p)})}o(l,"onUpgrade");function u(f,h,p){if(a.removeAllListeners(),h.removeAllListeners(),f.statusCode!==200){Qd("tunneling socket could not be established, statusCode=%d",f.statusCode),h.destroy();var m=new Error("tunneling socket could not be established, statusCode="+f.statusCode);m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}if(p.length>0){Qd("got illegal response body from proxy"),h.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),n.removeSocket(i);return}return Qd("tunneling connection has established"),n.sockets[n.sockets.indexOf(i)]=h,r(h)}o(u,"onConnect");function d(f){a.removeAllListeners(),Qd(`tunneling socket could not be established, cause=%s
`,f.message,f.stack);var h=new Error("tunneling socket could not be established, cause="+f.message);h.code="ECONNRESET",e.request.emit("error",h),n.removeSocket(i)}o(d,"onError")},"createSocket");pu.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(i){n.request.onSocket(i)})}},"removeSocket");function PZ(t,e){var r=this;pu.prototype.createSocket.call(r,t,function(n){var i=t.request.getHeader("host"),s=CL({},r.options,{socket:n,servername:i?i.replace(/:.*$/,""):t.host}),a=hqe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}o(PZ,"createSecureSocket");function OZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(OZ,"toOptions");function CL(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var i=Object.keys(n),s=0,a=i.length;s<a;++s){var c=i[s];n[c]!==void 0&&(t[c]=n[c])}}return t}o(CL,"mergeOptions");var Qd;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Qd=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"):Qd=o(function(){},"debug");am.debug=Qd});var cm=A((S5t,FZ)=>{FZ.exports=LZ()});var Ar=A((B5t,MZ)=>{MZ.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 Tt=A((x5t,uee)=>{"use strict";var UZ=Symbol.for("undici.error.UND_ERR"),mr=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[UZ]===!0}[UZ]=!0},qZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends mr{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[qZ]===!0}[qZ]=!0},GZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),IL=class extends mr{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[GZ]===!0}[GZ]=!0},HZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends mr{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[HZ]===!0}[HZ]=!0},VZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends mr{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(wte,"isValidHeaderValue");function PGe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),i="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(EGe.has(a)){i=a;break}}i!==""&&(t.referrerPolicy=i)}o(PGe,"setRequestReferrerPolicyOnRedirect");function OGe(){return"allowed"}o(OGe,"crossOriginResourcePolicyCheck");function LGe(){return"success"}o(LGe,"corsCheck");function FGe(){return"success"}o(FGe,"TAOCheck");function MGe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(MGe,"appendFetchMetadata");function UGe(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&&mF(t.origin)&&!mF(ob(t))&&(e=null);break;case"same-origin":Gx(t,ob(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(UGe,"appendRequestOriginHeader");function ym(t,e){return t}o(ym,"coarsenTime");function qGe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ym(t.domainLookupStartTime,r),domainLookupEndTime:ym(t.domainLookupEndTime,r),connectionStartTime:ym(t.connectionStartTime,r),connectionEndTime:ym(t.connectionEndTime,r),secureConnectionStartTime:ym(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(qGe,"clampAndCoarsenConnectionTimingInfo");function GGe(t){return ym(SGe.now(),t)}o(GGe,"coarsenedSharedCurrentTime");function HGe(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(HGe,"createOpaqueTimingInfo");function Ste(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(Ste,"makePolicyContainer");function VGe(t){return{referrerPolicy:t.referrerPolicy}}o(VGe,"clonePolicyContainer");function zGe(t){let e=t.referrerPolicy;Th(e);let r=null;if(t.referrer==="client"){let c=yte();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=AF(r),i=AF(r,!0);n.toString().length>4096&&(n=i);let s=Gx(t,n),a=sb(n)&&!sb(t.url);switch(e){case"origin":return i??AF(r,!0);case"unsafe-url":return n;case"same-origin":return s?i:"no-referrer";case"origin-when-cross-origin":return s?n:i;case"strict-origin-when-cross-origin":{let c=ob(t);return Gx(n,c)?n:sb(n)&&!sb(c)?"no-referrer":i}default:return a?"no-referrer":i}}o(zGe,"determineRequestsReferrer");function AF(t,e){return Th(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(AF,"stripURLForReferrer");function sb(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(sb,"isURLPotentiallyTrustworthy");function $Ge(t,e){if(qx===void 0)return!0;let r=Bte(e);if(r==="no metadata"||r.length===0)return!0;let n=WGe(r),i=JGe(r,n);for(let s of i){let a=s.algo,c=s.hash,l=qx.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)),YGe(l,c))return!0}return!1}o($Ge,"bytesMatch");var jGe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Bte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let i=jGe.exec(n);if(i===null||i.groups===void 0||i.groups.algo===void 0)continue;let s=i.groups.algo.toLowerCase();Cte.includes(s)&&e.push(i.groups)}return r===!0?"no metadata":e}o(Bte,"parseMetadata");function WGe(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(WGe,"getStrongestMetadata");function JGe(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(JGe,"filterMetadataListByAlgorithm");function YGe(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(YGe,"compareBase64Mixed");function KGe(t){}o(KGe,"tryUpgr Line truncated
`);function QHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(QHe,"isAsciiString");function kHe(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(kHe,"validateBoundary");function PHe(t,e){Vx(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"),i=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.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(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&zx(t,RHe,s)||s.position===t.length-4&&zx(t,DHe,s))return i;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=OHe(t,s);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:f}=c;s.position+=2;let h;{let m=t.indexOf(n.subarray(2),s.position);if(m===-1)return"failure";h=t.subarray(s.position,m-4),s.position+=h.length,f==="base64"&&(h=Buffer.from(h.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let p;u!==null?(d??="text/plain",QHe(d)||(d=""),p=new _He([h],u,{type:d})):p=SHe(Buffer.from(h)),Vx(Fte(l)),Vx(typeof p=="string"&&Fte(p)||xHe(p)),i.push(vHe(l,p,u))}}o(PHe,"multipartFormDataParser");function OHe(t,e){let r=null,n=null,i=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:i,encoding:s};let a=Cm(c=>c!==10&&c!==13&&c!==58,t,e);if(a=wF(a,!0,!0,c=>c===9||c===32),!BHe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Cm(c=>c===32||c===9,t,e),wHe(a)){case"content-disposition":{if(r=n=null,!zx(t,THe,e)||(e.position+=17,r=qte(t,e),r===null))return"failure";if(zx(t,Ute,e)){let c=e.position+Ute.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=qte(t,e),n===null))return"failure"}break}case"content-type":{let c=Cm(l=>l!==10&&l!==13,t,e);c=wF(c,!1,!0,l=>l===9||l===32),i=Mte(c);break}case"content-transfer-encoding":{let c=Cm(l=>l!==10&&l!==13,t,e);c=wF(c,!1,!0,l=>l===9||l===32),s=Mte(c);break}default:Cm(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(OHe,"parseMultipartFormDataHeaders");function qte(t,e){Vx(t[e.position-1]===34);let r=Cm(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(qte,"parseMultipartFormDataName");function Cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}o(Cm,"collectASequenceOfBytes");function wF(t,e,r,n){let i=0,s=t.length-1;if(e)for(;i<t.length&&n(t[i]);)i++;if(r)for(;s>0&&n(t[s]);)s--;return i===0&&s===t.length-1?t:t.subarray(i,s+1)}o(wF,"removeChars");function zx(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(zx,"bufferStartsWith");Gte.exports={multipartFormDataParser:PHe,validateBoundary:kHe}});var wm=A((fzt,Zte)=>{"use strict";var lb=at(),{ReadableStreamFrom:LHe,isBlobLike:Vte,isReadableStreamLike:FHe,readableStreamClose:MHe,createDeferredPromise:UHe,fullyReadBody:qHe,extractMimeType:GHe,utf8DecodeBytes:jte}=Vs(),{FormData:zte}=cb(),{kState:Im}=kd(),{webidl:HHe}=si(),{Blob:VHe}=require("node:buffer"),SF=require("node:assert"),{isErrored:Wte,isDisturbed:zHe}=require("node:stream"),{isArrayBuffer:$He}=require("node:util/types"),{serializeAMimeType:jHe}=ps(),{multipartFormDataParser:WHe}=Hte(),BF;try{let t=require("node:crypto");BF=o(e=>t.randomInt(0,e),"random")}catch{BF=o(t=>Math.floor(Math.random(t)),"random")}var $x=new TextEncoder;function JHe(){}o(JHe,"noop");var Jte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Yte;Jte&&(Yte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!zHe(e)&&!Wte(e)&&e.cancel("Response object has been garbage collected").catch(JHe)}));function Kte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Vte(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof i=="string"?$x.encode(i):i;u.byteLength&&l.enqueue(u),queueMicrotask(()=>MHe(l))},start(){},type:"bytes"}),SF(FHe(r));let n=null,i=null,s=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if($He(t))i=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))i=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(lb.isFormDataLike(t)){let l=`----formdata-undici-0${`${BF(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),f=o(E=>E.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let g=!1;for(let[E,y]of t)if(typeof y=="string"){let C=$x.encode(u+`; name="${d(f(E))}"\r
`),"normalizeLinefeeds"),h=[],p=new Uint8Array([13,10]);s=0;let m=!1;for(let[E,y]of t)if(typeof y=="string"){let C=$x.encode(u+`; name="${d(f(E))}"\r
\r
${f(y)}\r
`);h.push(C),s+=C.byteLength}else{let C=$x.encode(`${u}; name="${d(f(E))}"`+(y.name?`; filename="${d(y.name)}"`:"")+`\r
Content-Type: ${y.type||"application/octet-stream"}\r
\r
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:g=!0}let m=$x.encode(`--${l}--\r
`);h.push(m),s+=m.byteLength,g&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(Hte(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(lb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:LHe(t)}if((typeof i=="string"||lb.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!jte(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(Yte,"extractBody");function YHe(t,e=!1){return t instanceof ReadableStream&&(SF(!lb.isDisturbed(t),"The body has already been consumed."),SF(!t.locked,"The stream is locked.")),Yte(t,e)}o(YHe,"safelyExtractBody");function KHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(KHe,"cloneBody");function XHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(XHe,"throwIfAborted");function ZHe(t){return{blob(){return bm(this,r=>{let n=zte(this);return n===null?n="":n&&(n=jHe(n)),new VHe([r],{type:n})},t)},arrayBuffer(){return bm(this,r=>new Uint8Array(r).buffer,t)},text(){return bm(this,$te,t)},json(){return bm(this,tVe,t)},formData(){return bm(this,r=>{let n=zte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=WHe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new Vte;return s[Im]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new Vte;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return bm(this,r=>new Uint8Array(r),t)}}}o(ZHe,"bodyMixinMethods");function eVe(t){Object.assign(t.prototype,ZHe(t))}o(eVe,"mixinBody");async function bm(t,e,r){if(HHe.brandCheck(t,r),Kte(t))throw new TypeError("Body is unusable: Body has already been read");XHe(t[Im]);let n=UHe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[Im].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await qHe(t[Im].body,s,i),n.promise)}o(bm,"consumeBody");function Kte(t){let e=t[Im].body;return e!=null&&(e.stream.locked||lb.isDisturbed(e.stream))}o(Kte,"bodyUnusable");function tVe(t){return JSON.parse($te(t))}o(tVe,"parseJSONFromBytes");function zte(t){let e=t[Im].headersList,r=GHe(e);return r==="failure"?null:r}o(zte,"bodyMimeType");Xte.exports={extractBody:Yte,safelyExtractBody:YHe,cloneBody:KHe,mixinBody:eVe,streamRegistry:Jte,hasFinalizationRegistry:Wte,bodyUnusable:Kte}});var pre=A((dzt,hre)=>{"use strict";var _e=require("node:assert"),Qe=at(),{channels:Zte}=um(),xF=aF(),{RequestContentLengthMismatchError:Rh,ResponseContentLengthMismatchError:ere,RequestAbortedError:cre,InvalidArgumentError:rVe,HeadersTimeoutError:nVe,HeadersOverflowError:iVe,SocketError:Sm,InformationalError:Bm,BodyTimeoutError:sVe,HTTPParserError:oVe,ResponseExceededMaxSizeError:aVe}=Tt(),{kUrl:lre,kReset:As,kClient:Yx,kParser:tr,kBlocking:fb,kRunning:pn,kPending:ure,kSize:tre,kWriting:Pd,kQueue:La,kNoRef:ub,kKeepAliveDefaultTimeout:cVe,kHostHeader:lVe,kPendingIdx:uVe,kRunningIdx:Qo,kError:Mi,kPipelining:Kx,kSocket:Dh,kKeepAliveTimeoutValue:Zx,kMaxHeadersSize:vF,kKeepAliveMaxTimeout:dVe,kKeepAliveTimeoutThreshold:fVe,kHeadersTimeout:hVe,kBodyTimeout:pVe,kStrictContentLength:TF,kMaxRequests:rre,kCounter:AVe,kMaxResponseSize:mVe,kOnError:nre,kResume:Cu,kHTTPContext:dre}=Ar(),zs=Jee(),ire=Buffer.alloc(0),jx=Buffer[Symbol.species],Wx=Qe.addListener,gVe=Qe.removeAllListeners,Qh=Symbol("kIdleSocketValidation"),xm=Symbol("kIdleSocketValidationTimeout"),kF=Symbol("kSocketUsed"),NF;async function yVe(){let t=process.env.JEST_WORKER_ID?uF():void 0,e;try{e=await WebAssembly.compile(Xee())}catch{e=await WebAssembly.compile(t||uF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onStatus(new jx(Nc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(_e(Dr.ptr===r),Dr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onHeaderField(new jx(Nc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onHeaderValue(new jx(Nc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(_e(Dr.ptr===r),Dr.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{_e(Dr.ptr= Line truncated
`;if(typeof i=="string"?m+=`host: ${i}\r
`:m+=t[lVe],s?m+=`connection: upgrade\r
`);h.push(C,y,p),typeof y.size=="number"?s+=C.byteLength+y.size+p.byteLength:m=!0}let g=$x.encode(`--${l}--\r
`);h.push(g),s+=g.byteLength,m&&(s=null),i=t,n=o(async function*(){for(let E of h)E.stream?yield*E.stream():yield E},"action"),a=`multipart/form-data; boundary=${l}`}else if(Vte(t))i=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(lb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:LHe(t)}if((typeof i=="string"||lb.isBuffer(i))&&(s=Buffer.byteLength(i)),n!=null){let l;r=new ReadableStream({async start(){l=n(t)[Symbol.asyncIterator]()},async pull(u){let{value:d,done:f}=await l.next();if(f)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!Wte(r)){let h=new Uint8Array(d);h.byteLength&&u.enqueue(h)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:i,length:s},a]}o(Kte,"extractBody");function YHe(t,e=!1){return t instanceof ReadableStream&&(SF(!lb.isDisturbed(t),"The body has already been consumed."),SF(!t.locked,"The stream is locked.")),Kte(t,e)}o(YHe,"safelyExtractBody");function KHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}o(KHe,"cloneBody");function XHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(XHe,"throwIfAborted");function ZHe(t){return{blob(){return bm(this,r=>{let n=$te(this);return n===null?n="":n&&(n=jHe(n)),new VHe([r],{type:n})},t)},arrayBuffer(){return bm(this,r=>new Uint8Array(r).buffer,t)},text(){return bm(this,jte,t)},json(){return bm(this,tVe,t)},formData(){return bm(this,r=>{let n=$te(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let i=WHe(r,n);if(i==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new zte;return s[Im]=i,s}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(r.toString()),s=new zte;for(let[a,c]of i)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return bm(this,r=>new Uint8Array(r),t)}}}o(ZHe,"bodyMixinMethods");function eVe(t){Object.assign(t.prototype,ZHe(t))}o(eVe,"mixinBody");async function bm(t,e,r){if(HHe.brandCheck(t,r),Xte(t))throw new TypeError("Body is unusable: Body has already been read");XHe(t[Im]);let n=UHe(),i=o(a=>n.reject(a),"errorSteps"),s=o(a=>{try{n.resolve(e(a))}catch(c){i(c)}},"successSteps");return t[Im].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await qHe(t[Im].body,s,i),n.promise)}o(bm,"consumeBody");function Xte(t){let e=t[Im].body;return e!=null&&(e.stream.locked||lb.isDisturbed(e.stream))}o(Xte,"bodyUnusable");function tVe(t){return JSON.parse(jte(t))}o(tVe,"parseJSONFromBytes");function $te(t){let e=t[Im].headersList,r=GHe(e);return r==="failure"?null:r}o($te,"bodyMimeType");Zte.exports={extractBody:Kte,safelyExtractBody:YHe,cloneBody:KHe,mixinBody:eVe,streamRegistry:Yte,hasFinalizationRegistry:Jte,bodyUnusable:Xte}});var Are=A((pzt,pre)=>{"use strict";var _e=require("node:assert"),Qe=at(),{channels:ere}=um(),xF=aF(),{RequestContentLengthMismatchError:Rh,ResponseContentLengthMismatchError:tre,RequestAbortedError:lre,InvalidArgumentError:rVe,HeadersTimeoutError:nVe,HeadersOverflowError:iVe,SocketError:Sm,InformationalError:Bm,BodyTimeoutError:sVe,HTTPParserError:oVe,ResponseExceededMaxSizeError:aVe}=Tt(),{kUrl:ure,kReset:As,kClient:Yx,kParser:tr,kBlocking:fb,kRunning:pn,kPending:dre,kSize:rre,kWriting:Pd,kQueue:La,kNoRef:ub,kKeepAliveDefaultTimeout:cVe,kHostHeader:lVe,kPendingIdx:uVe,kRunningIdx:Qo,kError:Mi,kPipelining:Kx,kSocket:Dh,kKeepAliveTimeoutValue:Zx,kMaxHeadersSize:vF,kKeepAliveMaxTimeout:dVe,kKeepAliveTimeoutThreshold:fVe,kHeadersTimeout:hVe,kBodyTimeout:pVe,kStrictContentLength:TF,kMaxRequests:nre,kCounter:AVe,kMaxResponseSize:mVe,kOnError:ire,kResume:Cu,kHTTPContext:fre}=Ar(),zs=Yee(),sre=Buffer.alloc(0),jx=Buffer[Symbol.species],Wx=Qe.addListener,gVe=Qe.removeAllListeners,Qh=Symbol("kIdleSocketValidation"),xm=Symbol("kIdleSocketValidationTimeout"),kF=Symbol("kSocketUsed"),NF;async function yVe(){let t=process.env.JEST_WORKER_ID?uF():void 0,e;try{e=await WebAssembly.compile(Zee())}catch{e=await WebAssembly.compile(t||uF())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,n,i)=>0,"wasm_on_url"),wasm_on_status:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onStatus(new jx(Nc.buffer,s,i))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(_e(Dr.ptr===r),Dr.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onHeaderField(new jx(Nc.buffer,s,i))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,n,i)=>{_e(Dr.ptr===r);let s=n-_c+Nc.byteOffset;return Dr.onHeaderValue(new jx(Nc.buffer,s,i))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,n,i,s)=>(_e(Dr.ptr===r),Dr.onHeadersComplete(n,!!i,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,n,i)=>{_e(Dr.ptr= Line truncated
`;if(typeof i=="string"?g+=`host: ${i}\r
`:g+=t[lVe],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[Kx]&&!p[As]?m+=`connection: keep-alive\r
`:m+=`connection: close\r
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let y=u[E+0],C=u[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)m+=`${y}: ${C[I]}\r
`;else m+=`${y}: ${C}\r
`}return Zte.sendHeaders.hasSubscribers&&Zte.sendHeaders.publish({request:e,headers:m,socket:p}),!l||h===0?ore(g,null,t,e,p,d,m,f):Qe.isBuffer(l)?ore(g,l,t,e,p,d,m,f):Qe.isBlobLike(l)?typeof l.stream=="function"?are(g,l.stream(),t,e,p,d,m,f):xVe(g,l,t,e,p,d,m,f):Qe.isStream(l)?BVe(g,l,t,e,p,d,m,f):Qe.isIterable(l)?are(g,l,t,e,p,d,m,f):_e(!1),!0}o(SVe,"writeH1");function BVe(t,e,r,n,i,s,a,c){_e(s!==0||r[pn]===0,"stream body cannot be pipelined");let l=!1,u=new ev({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(g){if(!l)try{!u.write(g)&&this.pause&&this.pause()}catch(m){Qe.destroy(this,m)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let g=new cre;queueMicrotask(()=>p(g))}},"onClose"),p=o(function(g){if(!l){if(l=!0,_e(i.destroyed||i[Pd]&&r[pn]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!g)try{u.end()}catch(m){g=m}u.destroy(g),g&&(g.code!=="UND_ERR_INFO"||g.message!=="reset")?Qe.destroy(e,g):Qe.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(BVe,"writeStream");function ore(t,e,r,n,i,s,a,c){try{e?Qe.isBuffer(e)&&(_e(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r
`:t[Kx]&&!p[As]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let E=0;E<u.length;E+=2){let y=u[E+0],C=u[E+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${y}: ${C[I]}\r
`;else g+=`${y}: ${C}\r
`}return ere.sendHeaders.hasSubscribers&&ere.sendHeaders.publish({request:e,headers:g,socket:p}),!l||h===0?are(m,null,t,e,p,d,g,f):Qe.isBuffer(l)?are(m,l,t,e,p,d,g,f):Qe.isBlobLike(l)?typeof l.stream=="function"?cre(m,l.stream(),t,e,p,d,g,f):xVe(m,l,t,e,p,d,g,f):Qe.isStream(l)?BVe(m,l,t,e,p,d,g,f):Qe.isIterable(l)?cre(m,l,t,e,p,d,g,f):_e(!1),!0}o(SVe,"writeH1");function BVe(t,e,r,n,i,s,a,c){_e(s!==0||r[pn]===0,"stream body cannot be pipelined");let l=!1,u=new ev({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(g){Qe.destroy(this,g)}},"onData"),f=o(function(){l||e.resume&&e.resume()},"onDrain"),h=o(function(){if(queueMicrotask(()=>{e.removeListener("error",p)}),!l){let m=new lre;queueMicrotask(()=>p(m))}},"onClose"),p=o(function(m){if(!l){if(l=!0,_e(i.destroyed||i[Pd]&&r[pn]<=1),i.off("drain",f).off("error",p),e.removeListener("data",d).removeListener("end",p).removeListener("close",h),!m)try{u.end()}catch(g){m=g}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Qe.destroy(e,m):Qe.destroy(e)}},"onFinished");e.on("data",d).on("end",p).on("error",p).on("close",h),e.resume&&e.resume(),i.on("drain",f).on("error",p),e.errorEmitted??e.errored?setImmediate(()=>p(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>p(null)),(e.closeEmitted??e.closed)&&setImmediate(h)}o(BVe,"writeStream");function are(t,e,r,n,i,s,a,c){try{e?Qe.isBuffer(e)&&(_e(s===e.byteLength,"buffer body must have content length"),i.cork(),i.write(`${a}content-length: ${s}\r
\r
`,"latin1"),i.write(e),i.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(i[As]=!0)):s===0?i.write(`${a}content-length: 0\r
\r
`,"latin1"):(_e(s===null,"no body must not have content length"),i.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Cu]()}catch(l){t(l)}}o(ore,"writeBuffer");async function xVe(t,e,r,n,i,s,a,c){_e(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Rh;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r
`,"latin1")),n.onRequestSent(),r[Cu]()}catch(l){t(l)}}o(are,"writeBuffer");async function xVe(t,e,r,n,i,s,a,c){_e(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new Rh;let l=Buffer.from(await e.arrayBuffer());i.cork(),i.write(`${a}content-length: ${s}\r
\r
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[As]=!0),r[Cu]()}catch(l){t(l)}}o(xVe,"writeBlob");async function are(t,e,r,n,i,s,a,c){_e(s!==0||r[pn]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{_e(l===null),i[Mi]?p(i[Mi]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new ev({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Mi])throw i[Mi];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(are,"writeIterable");var ev=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Pd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Mi])throw r[Mi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[TF])throw new Rh;process.emitWarning(new Rh)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[As]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),i.write(l),i.uncork(),n.onBodySent(l),n.onRequestSent(),!c&&n.reset!==!1&&(i[As]=!0),r[Cu]()}catch(l){t(l)}}o(xVe,"writeBlob");async function cre(t,e,r,n,i,s,a,c){_e(s!==0||r[pn]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let h=l;l=null,h()}}o(u,"onDrain");let d=o(()=>new Promise((h,p)=>{_e(l===null),i[Mi]?p(i[Mi]):l=h}),"waitForDrain");i.on("close",u).on("drain",u);let f=new ev({abort:t,socket:i,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let h of e){if(i[Mi])throw i[Mi];f.write(h)||await d()}f.end()}catch(h){f.destroy(h)}finally{i.off("close",u).off("drain",u)}}o(cre,"writeIterable");var ev=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:i,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=i,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Pd]=!0}write(e){let{socket:r,request:n,contentLength:i,client:s,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[Mi])throw r[Mi];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(i!==null&&a+u>i){if(s[TF])throw new Rh;process.emitWarning(new Rh)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[As]=!0),i===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${i}\r
\r
`,"latin1")),i===null&&r.write(`\r
@@ -37,47 +37,47 @@ ${u.toString(16)}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&i!==r){if(n[TF])throw new Rh;process.emitWarning(new Rh)}e[tr].timeout&&e[tr].timeoutType===vm&&e[tr].timeout.refresh&&e[tr].timeout.refresh(),n[Cu]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[Pd]=!1,e&&(_e(n[pn]<=1,"pipeline should only contain this request"),i(e))}};hre.exports=CVe});var Ire=A((hzt,bre)=>{"use strict";var ko=require("node:assert"),{pipeline:vVe}=require("node:stream"),pt=at(),{RequestContentLengthMismatchError:PF,RequestAbortedError:Are,SocketError:hb,InformationalError:OF}=Tt(),{kUrl:tv,kReset:nv,kClient:Nm,kRunning:iv,kPending:NVe,kQueue:Od,kPendingIdx:LF,kRunningIdx:Fa,kError:Ua,kSocket:Un,kStrictContentLength:_Ve,kOnError:FF,kMaxConcurrentStreams:Cre,kHTTP2Session:Ma,kResume:Ld,kSize:TVe,kHTTPContext:RVe}=Ar(),bu=Symbol("open streams"),mre,gre=!1,rv;try{rv=require("node:http2")}catch{rv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DVe,HTTP2_HEADER_METHOD:QVe,HTTP2_HEADER_PATH:kVe,HTTP2_HEADER_SCHEME:PVe,HTTP2_HEADER_CONTENT_LENGTH:OVe,HTTP2_HEADER_EXPECT:LVe,HTTP2_HEADER_STATUS:FVe}}=rv;function MVe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(MVe,"parseH2Headers");async function UVe(t,e){t[Un]=e,gre||(gre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rv.connect(t[tv],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[Cre]});r[bu]=0,r[Nm]=t,r[Un]=e,pt.addListener(r,"error",GVe),pt.addListener(r,"frameError",HVe),pt.addListener(r,"end",VVe),pt.addListener(r,"goaway",zVe),pt.addListener(r,"close",function(){let{[Nm]:i}=this,{[Un]:s}=i,a=this[Un][Ua]||this[Ua]||new hb("closed",pt.getSocketInfo(s));if(i[Ma]=null,i.destroyed){ko(i[NVe]===0);let c=i[Od].splice(i[Fa]);for(let l=0;l<c.length;l++){let u=c[l];pt.errorRequest(i,u,a)}}}),r.unref(),t[Ma]=r,e[Ma]=r,pt.addListener(e,"error",function(i){ko(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ua]=i,this[Nm][FF](i)}),pt.addListener(e,"end",function(){pt.destroy(this,new hb("other side closed",pt.getSocketInfo(this)))}),pt.addListener(e,"close",function(){let i=this[Ua]||new hb("closed",pt.getSocketInfo(this));t[Un]=null,this[Ma]!=null&&this[Ma].destroy(i),t[LF]=t[Fa],ko(t[iv]===0),t.emit("disconnect",t[tv],[t],i),t[Ld]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return jVe(t,...i)},resume(){qVe(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(UVe,"connectH2");function qVe(t){let e=t[Un];e?.destroyed===!1&&(t[TVe]===0&&t[Cre]===0?(e.unref(),t[Ma].unref()):(e.ref(),t[Ma].ref()))}o(qVe,"resumeH2");function GVe(t){ko(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Un][Ua]=t,this[Nm][FF](t)}o(GVe,"onHttp2SessionError");function HVe(t,e,r){if(r===0){let n=new OF(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Un][Ua]=n,this[Nm][FF](n)}}o(HVe,"onHttp2FrameError");function VVe(){let t=new hb("other side closed",pt.getSocketInfo(this[Un]));this.destroy(t),pt.destroy(this[Un],t)}o(VVe,"onHttp2SessionEnd");function zVe(t){let e=this[Ua]||new hb(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this)),r=this[Nm];if(r[Un]=null,r[RVe]=null,this[Ma]!=null&&(this[Ma].destroy(e),this[Ma]=null),pt.destroy(this[Un],e),r[Fa]<r[Od].length){let n=r[Od][r[Fa]];r[Od][r[Fa]++]=null,pt.errorRequest(r,n,e),r[LF]=r[Fa]}ko(r[iv]===0),r.emit("disconnect",r[tv],[r],e),r[Ld]()}o(zVe,"onHTTP2GoAway");function $Ve(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o($Ve,"shouldSendContentLength");function jVe(t,e){let r=t[Ma],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return pt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let Q=u[B+0],M=u[B+1];if(Array.isArray(M))for(let v=0;v<M.length;v++)f[Q]?f[Q]+=`,${M[v]}`:f[Q]=M[v];else f[Q]=M}let h,{hostname:p,port:g}=t[tv];f[DVe]=s||`${p}${g?`:${g}`:""}`,f[QVe]=n;let m=o(B=>{e.aborted||e.completed||(B=B||new Are,pt.errorRequest(t,e,B),h!=null&&pt.destroy(h,B),pt.destroy(d,B),t[Od][t[Fa]++]=null,t[Ld]())},"abort");try{e.onConnect(m)}catch(B){pt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[bu],t[Od][t[Fa]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bu],t[Od][t[Fa]++]=null}),h.once("close",()=>{r[bu]-=1,r[bu]===0&&r.unref()}),!0;f[kVe]=i,f[PVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=pt.bodyLength(d);if(pt.isFormDataLike(d)){mre??=wm().extractBody;let[B,Q]=mre(d);f["content-type"]=Q,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),$Ve(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[_Ve])return pt.err Line truncated
`,this[E4e]=l??3e5,this[y4e]=i??3e5,this[C4e]=C??!0,this[b4e]=B,this[GF]=M,this[Md]=null,this[x4e]=$>-1?$:-1,this[N4e]=V??100,this[Yr]=null,this[qa]=[],this[wu]=0,this[Ga]=0,this[gb]=oe=>VF(this,oe),this[v4e]=oe=>kre(this,oe)}get pipelining(){return this[cv]}set pipelining(e){this[cv]=e,this[gb](!0)}get[Cb](){return this[qa].length-this[Ga]}get[Eb](){return this[Ga]-this[wu]}get[yb](){return this[qa].length-this[wu]}get[d4e](){return!!this[Yr]&&!this[Tm]&&!this[Yr].destroyed}get[qF](){return!!(this[Yr]?.busy(null)||this[yb]>=(Qre(this)||1)||this[Cb]>0)}[u4e](e){Pre(this),this.once("connect",e)}[B4e](e,r){let n=e.origin||this[Rc].origin,i=new i4e(n,e,r);return this[qa].push(i),this[Ph]||(kh.bodyLength(i.body)==null&&kh.isIterable(i.body)?(this[Ph]=1,queueMicrotask(()=>VF(this))):this[gb](!0)),this[Ph]&&this[Ud]!==2&&this[qF]&&(this[Ud]=2),this[Ud]<2}async[w4e](){return new Promise(e=>{this[yb]?this[Md]=e:e(null)})}async[S4e](e){return new Promise(r=>{let n=this[qa].splice(this[Ga]);for(let s=0;s<n.length;s++){let a=n[s];kh.errorRequest(this,a,e)}let i=o(()=>{this[Md]&&(this[Md](),this[Md]=null),r(null)},"callback");this[Yr]?(this[Yr].destroy(e,i),this[Yr]=null):queueMicrotask(i),this[gb]()})}},R4e=av();function kre(t,e){if(t[Eb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Iu(t[Ga]===t[wu]);let r=t[qa].splice(t[wu]);for(let n=0;n<r.length;n++){let i=r[n];kh.errorRequest(t,i,e)}Iu(t[yb]===0)}}o(kre,"onError");async function Pre(t){Iu(!t[Tm]),Iu(!t[Yr]);let{host:e,hostname:r,protocol:n,port:i}=t[Rc];if(r[0]==="["){let s=r.indexOf("]");Iu(s!==-1);let a=r.substring(1,s);Iu(Dre.isIP(a)),r=a}t[Tm]=!0,_m.beforeConnect.hasSubscribers&&_m.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab]});try{let s=await new Promise((a,c)=>{t[Ab]({host:e,hostname:r,protocol:n,port:i,servername:t[Fd],localAddress:t[mb]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){kh.destroy(s.on("error",Tre),new a4e);return}Iu(s);try{t[Yr]=s.alpnProtocol==="h2"?await T4e(t,s):await _4e(t,s)}catch(a){throw s.destroy().on("error",Tre),a}t[Tm]=!1,s[I4e]=0,s[GF]=t[GF],s[l4e]=t,s[h4e]=null,_m.connected.hasSubscribers&&_m.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab],socket:s}),t.emit("connect",t[Rc],[t])}catch(s){if(t.destroyed)return;if(t[Tm]=!1,_m.connectError.hasSubscribers&&_m.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Iu(t[Eb]===0);t[Cb]>0&&t[qa][t[Ga]].servername===t[Fd];){let a=t[qa][t[Ga]++];kh.errorRequest(t,a,s)}else kre(t,s);t.emit("connectionError",t[Rc],[t],s)}t[gb]()}o(Pre,"connect");function Rre(t){t[Ud]=0,t.emit("drain",t[Rc],[t])}o(Rre,"emitDrain");function VF(t,e){t[Ph]!==2&&(t[Ph]=2,D4e(t,e),t[Ph]=0,t[wu]>256&&(t[qa].splice(0,t[wu]),t[Ga]-=t[wu],t[wu]=0))}o(VF,"resume");function D4e(t,e){for(;;){if(t.destroyed){Iu(t[Cb]===0);return}if(t[Md]&&!t[yb]){t[Md](),t[Md]=null;return}if(t[Yr]&&t[Yr].resume(),t[qF])t[Ud]=2;else if(t[Ud]===2){e?(t[Ud]=1,queueMicrotask(()=>Rre(t))):Rre(t);continue}if(t[Cb]===0||t[Eb]>=(Qre(t)||1))return;let r=t[qa][t[Ga]];if(t[Rc].protocol==="https:"&&t[Fd]!==r.servername){if(t[Eb]>0)return;t[Fd]=r.servername,t[Yr]?.destroy(new o4e("servername changed"),()=>{t[Yr]=null,VF(t)})}if(t[Tm])return;if(!t[Yr]){Pre(t);return}if(t[Yr].destroyed||t[Yr].busy(r))return;!r.aborted&&t[Yr].write(r)?t[Ga]++:t[qa].splice(t[Ga],1)}}o(D4e,"_resume");Ore.exports=HF});var zF=A((Izt,Lre)=>{"use strict";var lv=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)}};Lre.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new lv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new lv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Mre=A((Szt,Fre)=>{var{kFree:Q4e,kConnected:k4e,kPending:P4e,kQueued:O4e,kRunning:L4e,kSize:F4e}=Ar(),Oh=Symbol("pool"),$F=class{static{o(this,"PoolStats")}constructor(e){this[Oh]=e}get connected(){return this[Oh][k4e]}get free(){return this[Oh][Q4e]}get pending(){return this[Oh][P4e]}get queued(){return this[Oh][O4e]}get running(){return this[Oh][L4e]}get size(){return this[Oh][F4e]}};Fre.exports=$F});var XF=A((xzt,Jre)=>{"use strict";var M4e=pm(),U4e=zF(),{kConnected:jF,kSize:Ure,kRunning:qre,kPending:Gre,kQueued:bb,kBusy:q4e,kFree:G4e,kUrl:H4e,kClose:V4e,kDestroy:z4e,kDispatch:$4e}=Ar( Line truncated
`,"latin1"),r!==null&&i!==r){if(n[TF])throw new Rh;process.emitWarning(new Rh)}e[tr].timeout&&e[tr].timeoutType===vm&&e[tr].timeout.refresh&&e[tr].timeout.refresh(),n[Cu]()}}destroy(e){let{socket:r,client:n,abort:i}=this;r[Pd]=!1,e&&(_e(n[pn]<=1,"pipeline should only contain this request"),i(e))}};pre.exports=CVe});var wre=A((mzt,Ire)=>{"use strict";var ko=require("node:assert"),{pipeline:vVe}=require("node:stream"),pt=at(),{RequestContentLengthMismatchError:PF,RequestAbortedError:mre,SocketError:hb,InformationalError:OF}=Tt(),{kUrl:tv,kReset:nv,kClient:Nm,kRunning:iv,kPending:NVe,kQueue:Od,kPendingIdx:LF,kRunningIdx:Fa,kError:Ua,kSocket:Un,kStrictContentLength:_Ve,kOnError:FF,kMaxConcurrentStreams:bre,kHTTP2Session:Ma,kResume:Ld,kSize:TVe,kHTTPContext:RVe}=Ar(),bu=Symbol("open streams"),gre,yre=!1,rv;try{rv=require("node:http2")}catch{rv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:DVe,HTTP2_HEADER_METHOD:QVe,HTTP2_HEADER_PATH:kVe,HTTP2_HEADER_SCHEME:PVe,HTTP2_HEADER_CONTENT_LENGTH:OVe,HTTP2_HEADER_EXPECT:LVe,HTTP2_HEADER_STATUS:FVe}}=rv;function MVe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let i of n)e.push(Buffer.from(r),Buffer.from(i));else e.push(Buffer.from(r),Buffer.from(n));return e}o(MVe,"parseH2Headers");async function UVe(t,e){t[Un]=e,yre||(yre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rv.connect(t[tv],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[bre]});r[bu]=0,r[Nm]=t,r[Un]=e,pt.addListener(r,"error",GVe),pt.addListener(r,"frameError",HVe),pt.addListener(r,"end",VVe),pt.addListener(r,"goaway",zVe),pt.addListener(r,"close",function(){let{[Nm]:i}=this,{[Un]:s}=i,a=this[Un][Ua]||this[Ua]||new hb("closed",pt.getSocketInfo(s));if(i[Ma]=null,i.destroyed){ko(i[NVe]===0);let c=i[Od].splice(i[Fa]);for(let l=0;l<c.length;l++){let u=c[l];pt.errorRequest(i,u,a)}}}),r.unref(),t[Ma]=r,e[Ma]=r,pt.addListener(e,"error",function(i){ko(i.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ua]=i,this[Nm][FF](i)}),pt.addListener(e,"end",function(){pt.destroy(this,new hb("other side closed",pt.getSocketInfo(this)))}),pt.addListener(e,"close",function(){let i=this[Ua]||new hb("closed",pt.getSocketInfo(this));t[Un]=null,this[Ma]!=null&&this[Ma].destroy(i),t[LF]=t[Fa],ko(t[iv]===0),t.emit("disconnect",t[tv],[t],i),t[Ld]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...i){return jVe(t,...i)},resume(){qVe(t)},destroy(i,s){n?queueMicrotask(s):e.destroy(i).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}o(UVe,"connectH2");function qVe(t){let e=t[Un];e?.destroyed===!1&&(t[TVe]===0&&t[bre]===0?(e.unref(),t[Ma].unref()):(e.ref(),t[Ma].ref()))}o(qVe,"resumeH2");function GVe(t){ko(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Un][Ua]=t,this[Nm][FF](t)}o(GVe,"onHttp2SessionError");function HVe(t,e,r){if(r===0){let n=new OF(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Un][Ua]=n,this[Nm][FF](n)}}o(HVe,"onHttp2FrameError");function VVe(){let t=new hb("other side closed",pt.getSocketInfo(this[Un]));this.destroy(t),pt.destroy(this[Un],t)}o(VVe,"onHttp2SessionEnd");function zVe(t){let e=this[Ua]||new hb(`HTTP/2: "GOAWAY" frame received with code ${t}`,pt.getSocketInfo(this)),r=this[Nm];if(r[Un]=null,r[RVe]=null,this[Ma]!=null&&(this[Ma].destroy(e),this[Ma]=null),pt.destroy(this[Un],e),r[Fa]<r[Od].length){let n=r[Od][r[Fa]];r[Od][r[Fa]++]=null,pt.errorRequest(r,n,e),r[LF]=r[Fa]}ko(r[iv]===0),r.emit("disconnect",r[tv],[r],e),r[Ld]()}o(zVe,"onHTTP2GoAway");function $Ve(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o($Ve,"shouldSendContentLength");function jVe(t,e){let r=t[Ma],{method:n,path:i,host:s,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return pt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let f={};for(let B=0;B<u.length;B+=2){let Q=u[B+0],M=u[B+1];if(Array.isArray(M))for(let v=0;v<M.length;v++)f[Q]?f[Q]+=`,${M[v]}`:f[Q]=M[v];else f[Q]=M}let h,{hostname:p,port:m}=t[tv];f[DVe]=s||`${p}${m?`:${m}`:""}`,f[QVe]=n;let g=o(B=>{e.aborted||e.completed||(B=B||new mre,pt.errorRequest(t,e,B),h!=null&&pt.destroy(h,B),pt.destroy(d,B),t[Od][t[Fa]++]=null,t[Ld]())},"abort");try{e.onConnect(g)}catch(B){pt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),h=r.request(f,{endStream:!1,signal:l}),h.id&&!h.pending?(e.onUpgrade(null,null,h),++r[bu],t[Od][t[Fa]++]=null):h.once("ready",()=>{e.onUpgrade(null,null,h),++r[bu],t[Od][t[Fa]++]=null}),h.once("close",()=>{r[bu]-=1,r[bu]===0&&r.unref()}),!0;f[kVe]=i,f[PVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";d&&typeof d.read=="function"&&d.read(0);let y=pt.bodyLength(d);if(pt.isFormDataLike(d)){gre??=wm().extractBody;let[B,Q]=gre(d);f["content-type"]=Q,d=B.stream,y=B.length}if(y==null&&(y=e.contentLength),(y===0||!E)&&(y=null),$Ve(n)&&y>0&&e.contentLength!=null&&e.contentLength!==y){if(t[_Ve])return pt.err Line truncated
`,this[E4e]=l??3e5,this[y4e]=i??3e5,this[C4e]=C??!0,this[b4e]=B,this[GF]=M,this[Md]=null,this[x4e]=j>-1?j:-1,this[N4e]=H??100,this[Yr]=null,this[qa]=[],this[wu]=0,this[Ga]=0,this[gb]=oe=>VF(this,oe),this[v4e]=oe=>Pre(this,oe)}get pipelining(){return this[cv]}set pipelining(e){this[cv]=e,this[gb](!0)}get[Cb](){return this[qa].length-this[Ga]}get[Eb](){return this[Ga]-this[wu]}get[yb](){return this[qa].length-this[wu]}get[d4e](){return!!this[Yr]&&!this[Tm]&&!this[Yr].destroyed}get[qF](){return!!(this[Yr]?.busy(null)||this[yb]>=(kre(this)||1)||this[Cb]>0)}[u4e](e){Ore(this),this.once("connect",e)}[B4e](e,r){let n=e.origin||this[Rc].origin,i=new i4e(n,e,r);return this[qa].push(i),this[Ph]||(kh.bodyLength(i.body)==null&&kh.isIterable(i.body)?(this[Ph]=1,queueMicrotask(()=>VF(this))):this[gb](!0)),this[Ph]&&this[Ud]!==2&&this[qF]&&(this[Ud]=2),this[Ud]<2}async[w4e](){return new Promise(e=>{this[yb]?this[Md]=e:e(null)})}async[S4e](e){return new Promise(r=>{let n=this[qa].splice(this[Ga]);for(let s=0;s<n.length;s++){let a=n[s];kh.errorRequest(this,a,e)}let i=o(()=>{this[Md]&&(this[Md](),this[Md]=null),r(null)},"callback");this[Yr]?(this[Yr].destroy(e,i),this[Yr]=null):queueMicrotask(i),this[gb]()})}},R4e=av();function Pre(t,e){if(t[Eb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Iu(t[Ga]===t[wu]);let r=t[qa].splice(t[wu]);for(let n=0;n<r.length;n++){let i=r[n];kh.errorRequest(t,i,e)}Iu(t[yb]===0)}}o(Pre,"onError");async function Ore(t){Iu(!t[Tm]),Iu(!t[Yr]);let{host:e,hostname:r,protocol:n,port:i}=t[Rc];if(r[0]==="["){let s=r.indexOf("]");Iu(s!==-1);let a=r.substring(1,s);Iu(Qre.isIP(a)),r=a}t[Tm]=!0,_m.beforeConnect.hasSubscribers&&_m.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab]});try{let s=await new Promise((a,c)=>{t[Ab]({host:e,hostname:r,protocol:n,port:i,servername:t[Fd],localAddress:t[mb]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){kh.destroy(s.on("error",Rre),new a4e);return}Iu(s);try{t[Yr]=s.alpnProtocol==="h2"?await T4e(t,s):await _4e(t,s)}catch(a){throw s.destroy().on("error",Rre),a}t[Tm]=!1,s[I4e]=0,s[GF]=t[GF],s[l4e]=t,s[h4e]=null,_m.connected.hasSubscribers&&_m.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab],socket:s}),t.emit("connect",t[Rc],[t])}catch(s){if(t.destroyed)return;if(t[Tm]=!1,_m.connectError.hasSubscribers&&_m.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:i,version:t[Yr]?.version,servername:t[Fd],localAddress:t[mb]},connector:t[Ab],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Iu(t[Eb]===0);t[Cb]>0&&t[qa][t[Ga]].servername===t[Fd];){let a=t[qa][t[Ga]++];kh.errorRequest(t,a,s)}else Pre(t,s);t.emit("connectionError",t[Rc],[t],s)}t[gb]()}o(Ore,"connect");function Dre(t){t[Ud]=0,t.emit("drain",t[Rc],[t])}o(Dre,"emitDrain");function VF(t,e){t[Ph]!==2&&(t[Ph]=2,D4e(t,e),t[Ph]=0,t[wu]>256&&(t[qa].splice(0,t[wu]),t[Ga]-=t[wu],t[wu]=0))}o(VF,"resume");function D4e(t,e){for(;;){if(t.destroyed){Iu(t[Cb]===0);return}if(t[Md]&&!t[yb]){t[Md](),t[Md]=null;return}if(t[Yr]&&t[Yr].resume(),t[qF])t[Ud]=2;else if(t[Ud]===2){e?(t[Ud]=1,queueMicrotask(()=>Dre(t))):Dre(t);continue}if(t[Cb]===0||t[Eb]>=(kre(t)||1))return;let r=t[qa][t[Ga]];if(t[Rc].protocol==="https:"&&t[Fd]!==r.servername){if(t[Eb]>0)return;t[Fd]=r.servername,t[Yr]?.destroy(new o4e("servername changed"),()=>{t[Yr]=null,VF(t)})}if(t[Tm])return;if(!t[Yr]){Ore(t);return}if(t[Yr].destroyed||t[Yr].busy(r))return;!r.aborted&&t[Yr].write(r)?t[Ga]++:t[qa].splice(t[Ga],1)}}o(D4e,"_resume");Lre.exports=HF});var zF=A((Bzt,Fre)=>{"use strict";var lv=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)}};Fre.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new lv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new lv),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ure=A((vzt,Mre)=>{var{kFree:Q4e,kConnected:k4e,kPending:P4e,kQueued:O4e,kRunning:L4e,kSize:F4e}=Ar(),Oh=Symbol("pool"),$F=class{static{o(this,"PoolStats")}constructor(e){this[Oh]=e}get connected(){return this[Oh][k4e]}get free(){return this[Oh][Q4e]}get pending(){return this[Oh][P4e]}get queued(){return this[Oh][O4e]}get running(){return this[Oh][L4e]}get size(){return this[Oh][F4e]}};Mre.exports=$F});var XF=A((_zt,Yre)=>{"use strict";var M4e=pm(),U4e=zF(),{kConnected:jF,kSize:qre,kRunning:Gre,kPending:Hre,kQueued:bb,kBusy:q4e,kFree:G4e,kUrl:H4e,kClose:V4e,kDestroy:z4e,kDispatch:$4e}=Ar( Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};rse.exports=XM});var vv=A((S$t,ase)=>{"use strict";var ise=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:E$e}=Tt(),C$e=Qm();ose()===void 0&&sse(new C$e);function sse(t){if(!t||typeof t.dispatch!="function")throw new E$e("Argument agent must implement Agent");Object.defineProperty(globalThis,ise,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(sse,"setGlobalDispatcher");function ose(){return globalThis[ise]}o(ose,"getGlobalDispatcher");ase.exports={setGlobalDispatcher:sse,getGlobalDispatcher:ose}});var Nv=A((v$t,cse)=>{"use strict";cse.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 use=A((_$t,lse)=>{"use strict";var b$e=ov();lse.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new b$e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var fse=A((R$t,dse)=>{"use strict";var I$e=gv();dse.exports=t=>e=>o(function(n,i){return e(n,new I$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var pse=A((Q$t,hse)=>{"use strict";var w$e=at(),{InvalidArgumentError:S$e,RequestAbortedError:B$e}=Tt(),x$e=Nv(),ZM=class extends x$e{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new S$e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,i){let a=w$e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new B$e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function v$e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new ZM({maxSize:s},i);return e(n,a)},"Intercept")}o(v$e,"createDumpInterceptor");hse.exports=v$e});var gse=A((P$t,mse)=>{"use strict";var{isIP:N$e}=require("node:net"),{lookup:_$e}=require("node:dns"),T$e=Nv(),{InvalidArgumentError:Gm,InformationalError:R$e}=Tt(),Ase=Math.pow(2,31)-1,eU=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.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new R$e("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.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){_$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===Ase?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===Ase?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new tU(this,e,r)}},tU=class extends T$e{static{o(this,"DNSDispatchHan Line truncated
${a}`;return}if(pN(e,i,VWe)){zWe(e,s)&&(r.retry=e.toString("utf8",s));return}if(pN(e,i,HWe)){$We(e,s)&&(r.id=e.toString("utf8",s));return}if(pN(e,i,GWe)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&LWe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&FWe(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let i=this.chunks[r],s=i.length-n;if(e<s)return i[n+e];e-=s,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===rg[0]||(this.checkBOM=!1),!0):n===void 0?e===rg[0]&&r===rg[1]?!0:(this.checkBOM=!1,!1):(e===rg[0]&&r===rg[1]&&n===rg[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Jae.exports={EventSourceStream:VU}});var ice=A((Fjt,nce)=>{"use strict";var{pipeline:jWe}=require("node:stream"),{fetching:WWe}=Pb(),{makeRequest:JWe}=zm(),{webidl:vu}=si(),{EventSourceStream:YWe}=Yae(),{parseMIMEType:KWe}=ps(),{createFastMessageEvent:XWe}=Km(),{isNetworkError:Kae}=Qb(),{delay:ZWe}=GU(),{kEnumerableProperty:Xh}=at(),{environmentSettingsObject:Xae}=Vs(),Zae=!1,ece=3e3,Jb=0,tce=1,Yb=2,eJe="anonymous",tJe="use-credentials",ng=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Jb;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),vu.util.markAsUncloneable(this);let n="EventSource constructor";vu.argumentLengthCheck(arguments,1,n),Zae||(Zae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=vu.converters.USVString(e,n,"url"),r=vu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:ece};let i=Xae,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=s.href;let a=eJe;r.withCredentials&&(a=tJe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Xae.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#i=JWe(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===Yb)return;this.#r=Jb;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{Kae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Kae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?KWe(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=tce,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new YWe({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(XWe(l.type,l.options))},"push")});jWe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error" Line truncated
%s`,Q,Q,C,n);var M=C.type==="*"?Yq:C.type==="?"?Jq:"\\"+C.type;i=!0,n=n.slice(0,C.reStart)+M+"\\("+Q}g(),s&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var $=c.length-1;$>-1;$--){var R=c[$],H=n.slice(0,R.reStart),V=n.slice(R.reStart,R.reEnd-8),J=n.slice(R.reEnd-8,R.reEnd),ee=n.slice(R.reEnd);J+=ee;var oe=H.split("(").length-1,pe=ee;for(m=0;m<oe;m++)pe=pe.replace(/\)[+*?]?/,"");ee=pe;var Y="";ee===""&&e!==UN&&(Y="$");var z=H+V+ee+Y+J;n=z}if(n!==""&&i&&(n="(?=.)"+n),v&&(n=h+n),e===UN)return[n,i];if(!i)return M7e(t);var Ie=r.nocase?"i":"";try{var Se=new RegExp("^"+n+"$",Ie)}catch{return new RegExp("$.")}return Se._glob=t,Se._src=n,Se}o(L7e,"parse");ro.makeRe=function(t,e){return new ai(t,e||{}).makeRe()};ai.prototype.makeRe=F7e;function F7e(){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?Yq:e.dot?T7e:R7e,n=e.nocase?"i":"",i=t.map(function(s){return s.map(function(a){return a===Kq?r:typeof a=="string"?U7e(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}o(F7e,"makeRe");ro.match=function(t,e,r){r=r||{};var n=new ai(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};ai.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;g0.sep!=="/"&&(e=e.split(g0.sep).join("/")),e=e.split(ude),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<i.length;a++){var c=i[a],l=e;n.matchBase&&c.length===1&&(l=[s]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ai.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 i=0,s=0,a=t.length,c=e.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var l=e[s],u=t[i];if(this.debug(e,l,u),l===!1)return!1;if(l===Kq){this.debug("GLOBSTAR",[e,l,u]);var d=i,f=s+1;if(f===c){for(this.debug("** at the end");i<a;i++)if(t[i]==="."||t[i]===".."||!n.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<a;){var h=t[d];if(this.debug(`
`.trim())}};nse.exports=XM});var vv=A((v$t,cse)=>{"use strict";var sse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:E$e}=Tt(),C$e=Qm();ase()===void 0&&ose(new C$e);function ose(t){if(!t||typeof t.dispatch!="function")throw new E$e("Argument agent must implement Agent");Object.defineProperty(globalThis,sse,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(ose,"setGlobalDispatcher");function ase(){return globalThis[sse]}o(ase,"getGlobalDispatcher");cse.exports={setGlobalDispatcher:ose,getGlobalDispatcher:ase}});var Nv=A((T$t,lse)=>{"use strict";lse.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 dse=A((D$t,use)=>{"use strict";var b$e=ov();use.exports=t=>{let e=t?.maxRedirections;return r=>o(function(i,s){let{maxRedirections:a=e,...c}=i;if(!a)return r(i,s);let l=new b$e(r,a,i,s);return r(c,l)},"redirectInterceptor")}});var hse=A((k$t,fse)=>{"use strict";var I$e=gv();fse.exports=t=>e=>o(function(n,i){return e(n,new I$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:i,dispatch:e}))},"retryInterceptor")});var Ase=A((O$t,pse)=>{"use strict";var w$e=at(),{InvalidArgumentError:S$e,RequestAbortedError:B$e}=Tt(),x$e=Nv(),ZM=class extends x$e{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#l=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new S$e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#l=r}onConnect(e){this.#t=e,this.#l.onConnect(this.#a.bind(this))}#a(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,i){let a=w$e.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new B$e(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#l.onHeaders(e,r,n,i)}onError(e){this.#n||(e=this.#s??e,this.#l.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#l.onError(this.#s):this.#l.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#l.onError(this.reason);return}this.#l.onComplete(e)}}};function v$e({maxSize:t}={maxSize:1024*1024}){return e=>o(function(n,i){let{dumpMaxSize:s=t}=n,a=new ZM({maxSize:s},i);return e(n,a)},"Intercept")}o(v$e,"createDumpInterceptor");pse.exports=v$e});var yse=A((F$t,gse)=>{"use strict";var{isIP:N$e}=require("node:net"),{lookup:_$e}=require("node:dns"),T$e=Nv(),{InvalidArgumentError:Gm,InformationalError:R$e}=Tt(),mse=Math.pow(2,31)-1,eU=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.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let i=this.#n.get(e.hostname);if(i==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(i==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new R$e("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,s.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",n(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,i,s.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){_$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(i,s)=>{if(i)return n(i);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#i(e,r,n){let i=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===mse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return i;c.offset==null||c.offset===mse?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return i=c.ips[l]??null,i==null?i:Date.now()-i.timestamp>i.ttl?(c.ips.splice(l,1),this.pick(e,r,n)):i}setRecords(e,r){let n=Date.now(),i={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=i.records[s.family]??{ips:[]};a.ips.push(s),i.records[s.family]=a}this.#n.set(e.hostname,i)}getHandler(e,r){return new tU(this,e,r)}},tU=class extends T$e{static{o(this,"DNSDispatchHan Line truncated
${a}`;return}if(pN(e,i,VWe)){zWe(e,s)&&(r.retry=e.toString("utf8",s));return}if(pN(e,i,HWe)){$We(e,s)&&(r.id=e.toString("utf8",s));return}if(pN(e,i,GWe)){let a=e.toString("utf8",s);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&LWe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&FWe(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let i=this.chunks[n],s=n===this.lineChunkIndex?this.linePos:0,a=n===this.chunkIndex?this.pos:i.length,c=i.subarray(s,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let i=this.chunks[r],s=i.length-n;if(e<s)return i[n+e];e-=s,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===rg[0]||(this.checkBOM=!1),!0):n===void 0?e===rg[0]&&r===rg[1]?!0:(this.checkBOM=!1,!1):(e===rg[0]&&r===rg[1]&&n===rg[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Yae.exports={EventSourceStream:VU}});var sce=A((qjt,ice)=>{"use strict";var{pipeline:jWe}=require("node:stream"),{fetching:WWe}=Pb(),{makeRequest:JWe}=zm(),{webidl:vu}=si(),{EventSourceStream:YWe}=Kae(),{parseMIMEType:KWe}=ps(),{createFastMessageEvent:XWe}=Km(),{isNetworkError:Xae}=Qb(),{delay:ZWe}=GU(),{kEnumerableProperty:Xh}=at(),{environmentSettingsObject:Zae}=Vs(),ece=!1,tce=3e3,Jb=0,rce=1,Yb=2,eJe="anonymous",tJe="use-credentials",ng=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Jb;#i=null;#s=null;#l;#a;constructor(e,r={}){super(),vu.util.markAsUncloneable(this);let n="EventSource constructor";vu.argumentLengthCheck(arguments,1,n),ece||(ece=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=vu.converters.USVString(e,n,"url"),r=vu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#l=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:tce};let i=Zae,s;try{s=new URL(e,i.settingsObject.baseUrl),this.#a.origin=s.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=s.href;let a=eJe;r.withCredentials&&(a=tJe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Zae.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#i=JWe(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===Yb)return;this.#r=Jb;let e={request:this.#i,dispatcher:this.#l},r=o(n=>{Xae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#o()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(Xae(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#o();return}let i=n.headersList.get("content-type",!0),s=i!==null?KWe(i):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=rce,this.dispatchEvent(new Event("open")),this.#a.origin=n.urlList[n.urlList.length-1].origin;let c=new YWe({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(XWe(l.type,l.options))},"push")});jWe(n.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error" Line truncated
%s`,Q,Q,C,n);var M=C.type==="*"?Kq:C.type==="?"?Yq:"\\"+C.type;i=!0,n=n.slice(0,C.reStart)+M+"\\("+Q}m(),s&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var j=c.length-1;j>-1;j--){var R=c[j],G=n.slice(0,R.reStart),H=n.slice(R.reStart,R.reEnd-8),W=n.slice(R.reEnd-8,R.reEnd),ee=n.slice(R.reEnd);W+=ee;var oe=G.split("(").length-1,pe=ee;for(g=0;g<oe;g++)pe=pe.replace(/\)[+*?]?/,"");ee=pe;var Y="";ee===""&&e!==UN&&(Y="$");var z=G+H+ee+Y+W;n=z}if(n!==""&&i&&(n="(?=.)"+n),v&&(n=h+n),e===UN)return[n,i];if(!i)return G7e(t);var Ie=r.nocase?"i":"";try{var Se=new RegExp("^"+n+"$",Ie)}catch{return new RegExp("$.")}return Se._glob=t,Se._src=n,Se}o(U7e,"parse");ro.makeRe=function(t,e){return new ai(t,e||{}).makeRe()};ai.prototype.makeRe=q7e;function q7e(){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?Kq:e.dot?Q7e:k7e,n=e.nocase?"i":"",i=t.map(function(s){return s.map(function(a){return a===Xq?r:typeof a=="string"?H7e(a):a._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch{this.regexp=!1}return this.regexp}o(q7e,"makeRe");ro.match=function(t,e,r){r=r||{};var n=new ai(e,r);return t=t.filter(function(i){return n.match(i)}),n.options.nonull&&!t.length&&t.push(e),t};ai.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;g0.sep!=="/"&&(e=e.split(g0.sep).join("/")),e=e.split(ude),this.debug(this.pattern,"split",e);var i=this.set;this.debug(this.pattern,"set",i);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<i.length;a++){var c=i[a],l=e;n.matchBase&&c.length===1&&(l=[s]);var u=this.matchOne(l,c,r);if(u)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ai.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 i=0,s=0,a=t.length,c=e.length;i<a&&s<c;i++,s++){this.debug("matchOne loop");var l=e[s],u=t[i];if(this.debug(e,l,u),l===!1)return!1;if(l===Xq){this.debug("GLOBSTAR",[e,l,u]);var d=i,f=s+1;if(f===c){for(this.debug("** at the end");i<a;i++)if(t[i]==="."||t[i]===".."||!n.dot&&t[i].charAt(0)===".")return!1;return!0}for(;d<a;){var h=t[d];if(this.debug(`
globstar while`,t,d,e,f,h),this.matchOne(t.slice(d),e.slice(f),r))return this.debug("globstar found match!",d,a,h),!0;if(h==="."||h===".."||!n.dot&&h.charAt(0)==="."){this.debug("dot detected!",t,d,e,f);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,d,e,f),d===a))}var p;if(typeof l=="string"?(p=u===l,this.debug("string match",l,u,p)):(p=u.match(l),this.debug("pattern match",l,u,p)),!p)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function M7e(t){return t.replace(/\\(.)/g,"$1")}o(M7e,"globUnescape");function U7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(U7e,"regExpEscape")});var mg=A((A9t,gde)=>{"use strict";var W7e="2.0.0",J7e=Number.MAX_SAFE_INTEGER||9007199254740991,Y7e=16,K7e=250,X7e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];gde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Y7e,MAX_SAFE_BUILD_LENGTH:K7e,MAX_SAFE_INTEGER:J7e,RELEASE_TYPES:X7e,SEMVER_SPEC_VERSION:W7e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var C0=A((m9t,yde)=>{"use strict";var Z7e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};yde.exports=Z7e});var gg=A((Uc,Ede)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Zq,MAX_SAFE_BUILD_LENGTH:eXe,MAX_LENGTH:tXe}=mg(),rXe=C0();Uc=Ede.exports={};var nXe=Uc.re=[],iXe=Uc.safeRe=[],le=Uc.src=[],sXe=Uc.safeSrc=[],ue=Uc.t={},oXe=0,e3="[a-zA-Z0-9-]",aXe=[["\\s",1],["\\d",tXe],[e3,eXe]],cXe=o(t=>{for(let[e,r]of aXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),We=o((t,e,r)=>{let n=cXe(e),i=oXe++;rXe(t,i,e),ue[t]=i,le[i]=e,sXe[i]=n,nXe[i]=new RegExp(e,r?"g":void 0),iXe[i]=new RegExp(n,r?"g":void 0)},"createToken");We("NUMERICIDENTIFIER","0|[1-9]\\d*");We("NUMERICIDENTIFIERLOOSE","\\d+");We("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${e3}*`);We("MAINVERSION",`(${le[ue.NUMERICIDENTIFIER]})\\.(${le[ue.NUMERICIDENTIFIER]})\\.(${le[ue.NUMERICIDENTIFIER]})`);We("MAINVERSIONLOOSE",`(${le[ue.NUMERICIDENTIFIERLOOSE]})\\.(${le[ue.NUMERICIDENTIFIERLOOSE]})\\.(${le[ue.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASEIDENTIFIER",`(?:${le[ue.NONNUMERICIDENTIFIER]}|${le[ue.NUMERICIDENTIFIER]})`);We("PRERELEASEIDENTIFIERLOOSE",`(?:${le[ue.NONNUMERICIDENTIFIER]}|${le[ue.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASE",`(?:-(${le[ue.PRERELEASEIDENTIFIER]}(?:\\.${le[ue.PRERELEASEIDENTIFIER]})*))`);We("PRERELEASELOOSE",`(?:-?(${le[ue.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${le[ue.PRERELEASEIDENTIFIERLOOSE]})*))`);We("BUILDIDENTIFIER",`${e3}+`);We("BUILD",`(?:\\+(${le[ue.BUILDIDENTIFIER]}(?:\\.${le[ue.BUILDIDENTIFIER]})*))`);We("FULLPLAIN",`v?${le[ue.MAINVERSION]}${le[ue.PRERELEASE]}?${le[ue.BUILD]}?`);We("FULL",`^${le[ue.FULLPLAIN]}$`);We("LOOSEPLAIN",`[v=\\s]*${le[ue.MAINVERSIONLOOSE]}${le[ue.PRERELEASELOOSE]}?${le[ue.BUILD]}?`);We("LOOSE",`^${le[ue.LOOSEPLAIN]}$`);We("GTLT","((?:<|>)?=?)");We("XRANGEIDENTIFIERLOOSE",`${le[ue.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);We("XRANGEIDENTIFIER",`${le[ue.NUMERICIDENTIFIER]}|x|X|\\*`);We("XRANGEPLAIN",`[v=\\s]*(${le[ue.XRANGEIDENTIFIER]})(?:\\.(${le[ue.XRANGEIDENTIFIER]})(?:\\.(${le[ue.XRANGEIDENTIFIER]})(?:${le[ue.PRERELEASE]})?${le[ue.BUILD]}?)?)?`);We("XRANGEPLAINLOOSE",`[v=\\s]*(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:${le[ue.PRERELEASELOOSE]})?${le[ue.BUILD]}?)?)?`);We("XRANGE",`^${le[ue.GTLT]}\\s*${le[ue.XRANGEPLAIN]}$`);We("XRANGELOOSE",`^${le[ue.GTLT]}\\s*${le[ue.XRANGEPLAINLOOSE]}$`);We("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Zq}})(?:\\.(\\d{1,${Zq}}))?(?:\\.(\\d{1,${Zq}}))?`);We("COERCE",`${le[ue.COERCEPLAIN]}(?:$|[^\\d])`);We("COERCEFULL",le[ue.COERCEPLAIN]+`(?:${le[ue.PRERELEASE]})?(?:${le[ue.BUILD]})?(?:$|[^\\d])`);We("COERCERTL",le[ue.COERCE],!0);We("COERCERTLFULL",le[ue.COERCEFULL],!0);We("LONETILDE","(?:~>?)");We("TILDETRIM",`(\\s*)${le[ue.LONETILDE]}\\s+`,!0);Uc.tildeTrimReplace="$1~";We("TILDE",`^${le[ue.LONETILDE]}${le[ue.XRANGEPLAIN]}$`);We("TILDELOOSE",`^${le[ue.LONETILDE]}${le[ue.XRANGEPLAINLOOSE]}$`);We("LONECARET","(?:\\^)");We("CARETTRIM",`(\\s*)${le[ue.LONECARET]}\\s+`,!0);Uc.caretTrimReplace="$1^";We("CARET",`^${le[ue.LONECARET]}${le[ue.XRANGEPLAIN]}$`);We("CARETLOOSE",`^${le[ue.LONECARET]}${le[ue.XRANGEPLAINLOOSE]}$`);We("COMPARATORLOOSE",`^${le[ue.GTLT]}\\s*(${le[ue.LOOSEPLAIN]})$|^$`);We("COMPARATOR",`^${le[ue.GTLT]}\\s*(${le[ue.FULLPLAIN]})$|^$`);We("COMPARATORTRIM",`(\\s*)${le[ue.GTLT]}\\s*(${le[ue.LOOSEPLAIN]}|${le[ue.XRANGEPLAIN]})`,!0);Uc.comparatorTrimReplace="$1$2$3";We("HYPHENRANGE",`^\\s*(${le[ue.XRANGEPLAIN]})\\s+-\\s+(${le[ue.XRANGEPLAIN]})\\s*$`);We("HYPHENRANGELOOSE",`^\\s*(${le[ue.XRANGEPLAINLOOSE]})\\s+-\\s+(${le[ue.XRANGEPLAINLOOSE]})\\s*$`);We("STAR","(<|>)?=?\\s*\\*");We("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");We("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var VN=A((y9t,Cde)=>{"use strict";var lXe=Object.freeze({loose:!0}),uXe=Object.freeze({}),dXe=o(t=>t?typeof t!="object"?lXe:t:uXe,"parseOptions");Cde.exports=dXe});var t3=A((C9t,wde)=>{"use strict";var bde=/^[0-9]+$/,Ide=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=bde Line truncated
>>> no match, partial?`,t,d,e,f),d===a))}var p;if(typeof l=="string"?(p=u===l,this.debug("string match",l,u,p)):(p=u.match(l),this.debug("pattern match",l,u,p)),!p)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function G7e(t){return t.replace(/\\(.)/g,"$1")}o(G7e,"globUnescape");function H7e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(H7e,"regExpEscape")});var mg=A((y9t,gde)=>{"use strict";var K7e="2.0.0",X7e=Number.MAX_SAFE_INTEGER||9007199254740991,Z7e=16,eXe=250,tXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];gde.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Z7e,MAX_SAFE_BUILD_LENGTH:eXe,MAX_SAFE_INTEGER:X7e,RELEASE_TYPES:tXe,SEMVER_SPEC_VERSION:K7e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var C0=A((E9t,yde)=>{"use strict";var rXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};yde.exports=rXe});var gg=A((Uc,Ede)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:e3,MAX_SAFE_BUILD_LENGTH:nXe,MAX_LENGTH:iXe}=mg(),sXe=C0();Uc=Ede.exports={};var oXe=Uc.re=[],aXe=Uc.safeRe=[],le=Uc.src=[],cXe=Uc.safeSrc=[],ue=Uc.t={},lXe=0,t3="[a-zA-Z0-9-]",uXe=[["\\s",1],["\\d",iXe],[t3,nXe]],dXe=o(t=>{for(let[e,r]of uXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),We=o((t,e,r)=>{let n=dXe(e),i=lXe++;sXe(t,i,e),ue[t]=i,le[i]=e,cXe[i]=n,oXe[i]=new RegExp(e,r?"g":void 0),aXe[i]=new RegExp(n,r?"g":void 0)},"createToken");We("NUMERICIDENTIFIER","0|[1-9]\\d*");We("NUMERICIDENTIFIERLOOSE","\\d+");We("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${t3}*`);We("MAINVERSION",`(${le[ue.NUMERICIDENTIFIER]})\\.(${le[ue.NUMERICIDENTIFIER]})\\.(${le[ue.NUMERICIDENTIFIER]})`);We("MAINVERSIONLOOSE",`(${le[ue.NUMERICIDENTIFIERLOOSE]})\\.(${le[ue.NUMERICIDENTIFIERLOOSE]})\\.(${le[ue.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASEIDENTIFIER",`(?:${le[ue.NONNUMERICIDENTIFIER]}|${le[ue.NUMERICIDENTIFIER]})`);We("PRERELEASEIDENTIFIERLOOSE",`(?:${le[ue.NONNUMERICIDENTIFIER]}|${le[ue.NUMERICIDENTIFIERLOOSE]})`);We("PRERELEASE",`(?:-(${le[ue.PRERELEASEIDENTIFIER]}(?:\\.${le[ue.PRERELEASEIDENTIFIER]})*))`);We("PRERELEASELOOSE",`(?:-?(${le[ue.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${le[ue.PRERELEASEIDENTIFIERLOOSE]})*))`);We("BUILDIDENTIFIER",`${t3}+`);We("BUILD",`(?:\\+(${le[ue.BUILDIDENTIFIER]}(?:\\.${le[ue.BUILDIDENTIFIER]})*))`);We("FULLPLAIN",`v?${le[ue.MAINVERSION]}${le[ue.PRERELEASE]}?${le[ue.BUILD]}?`);We("FULL",`^${le[ue.FULLPLAIN]}$`);We("LOOSEPLAIN",`[v=\\s]*${le[ue.MAINVERSIONLOOSE]}${le[ue.PRERELEASELOOSE]}?${le[ue.BUILD]}?`);We("LOOSE",`^${le[ue.LOOSEPLAIN]}$`);We("GTLT","((?:<|>)?=?)");We("XRANGEIDENTIFIERLOOSE",`${le[ue.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);We("XRANGEIDENTIFIER",`${le[ue.NUMERICIDENTIFIER]}|x|X|\\*`);We("XRANGEPLAIN",`[v=\\s]*(${le[ue.XRANGEIDENTIFIER]})(?:\\.(${le[ue.XRANGEIDENTIFIER]})(?:\\.(${le[ue.XRANGEIDENTIFIER]})(?:${le[ue.PRERELEASE]})?${le[ue.BUILD]}?)?)?`);We("XRANGEPLAINLOOSE",`[v=\\s]*(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:\\.(${le[ue.XRANGEIDENTIFIERLOOSE]})(?:${le[ue.PRERELEASELOOSE]})?${le[ue.BUILD]}?)?)?`);We("XRANGE",`^${le[ue.GTLT]}\\s*${le[ue.XRANGEPLAIN]}$`);We("XRANGELOOSE",`^${le[ue.GTLT]}\\s*${le[ue.XRANGEPLAINLOOSE]}$`);We("COERCEPLAIN",`(^|[^\\d])(\\d{1,${e3}})(?:\\.(\\d{1,${e3}}))?(?:\\.(\\d{1,${e3}}))?`);We("COERCE",`${le[ue.COERCEPLAIN]}(?:$|[^\\d])`);We("COERCEFULL",le[ue.COERCEPLAIN]+`(?:${le[ue.PRERELEASE]})?(?:${le[ue.BUILD]})?(?:$|[^\\d])`);We("COERCERTL",le[ue.COERCE],!0);We("COERCERTLFULL",le[ue.COERCEFULL],!0);We("LONETILDE","(?:~>?)");We("TILDETRIM",`(\\s*)${le[ue.LONETILDE]}\\s+`,!0);Uc.tildeTrimReplace="$1~";We("TILDE",`^${le[ue.LONETILDE]}${le[ue.XRANGEPLAIN]}$`);We("TILDELOOSE",`^${le[ue.LONETILDE]}${le[ue.XRANGEPLAINLOOSE]}$`);We("LONECARET","(?:\\^)");We("CARETTRIM",`(\\s*)${le[ue.LONECARET]}\\s+`,!0);Uc.caretTrimReplace="$1^";We("CARET",`^${le[ue.LONECARET]}${le[ue.XRANGEPLAIN]}$`);We("CARETLOOSE",`^${le[ue.LONECARET]}${le[ue.XRANGEPLAINLOOSE]}$`);We("COMPARATORLOOSE",`^${le[ue.GTLT]}\\s*(${le[ue.LOOSEPLAIN]})$|^$`);We("COMPARATOR",`^${le[ue.GTLT]}\\s*(${le[ue.FULLPLAIN]})$|^$`);We("COMPARATORTRIM",`(\\s*)${le[ue.GTLT]}\\s*(${le[ue.LOOSEPLAIN]}|${le[ue.XRANGEPLAIN]})`,!0);Uc.comparatorTrimReplace="$1$2$3";We("HYPHENRANGE",`^\\s*(${le[ue.XRANGEPLAIN]})\\s+-\\s+(${le[ue.XRANGEPLAIN]})\\s*$`);We("HYPHENRANGELOOSE",`^\\s*(${le[ue.XRANGEPLAINLOOSE]})\\s+-\\s+(${le[ue.XRANGEPLAINLOOSE]})\\s*$`);We("STAR","(<|>)?=?\\s*\\*");We("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");We("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var VN=A((b9t,Cde)=>{"use strict";var fXe=Object.freeze({loose:!0}),hXe=Object.freeze({}),pXe=o(t=>t?typeof t!="object"?fXe:t:hXe,"parseOptions");Cde.exports=pXe});var r3=A((w9t,wde)=>{"use strict";var bde=/^[0-9]+$/,Ide=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=bde Line truncated
`).join(`
`+s),t.push(i+"m+"+T_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Ztt()+e+" "+t[0]}o(Xtt,"formatArgs");function Ztt(){return ui.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Ztt,"getDate");function ert(...t){return process.stderr.write(__.format(...t)+`
`)}o(ert,"log");function trt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(trt,"save");function rrt(){return process.env.DEBUG}o(rrt,"load");function nrt(t){t.inspectOpts={};let e=Object.keys(ui.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ui.inspectOpts[e[r]]}o(nrt,"init");T_.exports=H3()(ui);var{formatters:rpe}=T_.exports;rpe.o=function(t){return this.inspectOpts.colors=this.useColors,__.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};rpe.O=function(t){return this.inspectOpts.colors=this.useColors,__.inspect(t,this.inspectOpts)}});var R_=A((aXt,j3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?j3.exports=Khe():j3.exports=npe()});var ope=A(bs=>{"use strict";var irt=bs&&bs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),srt=bs&&bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ipe=bs&&bs.__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)&&irt(e,t,r);return srt(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.req=bs.json=bs.toBuffer=void 0;var ort=ipe(require("http")),art=ipe(require("https"));async function spe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(spe,"toBuffer");bs.toBuffer=spe;async function crt(t){let r=(await spe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(crt,"json");bs.json=crt;function lrt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?art:ort).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(lrt,"req");bs.req=lrt});var upe=A(oo=>{"use strict";var cpe=oo&&oo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),urt=oo&&oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lpe=oo&&oo.__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)&&cpe(e,t,r);return urt(e,t),e},drt=oo&&oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cpe(e,t,r)};Object.defineProperty(oo,"__esModule",{value:!0});oo.Agent=void 0;var frt=lpe(require("net")),ape=lpe(require("http")),hrt=require("https");drt(ope(),oo);var Vc=Symbol("AgentBaseInternalState"),W3=class extends ape.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Vc]={}}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 frt.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],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?hrt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof ape.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Vc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Vc].currentSocket;if(this[Vc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vc]&&(this[Vc].defaultPort=e)}get protocol(){return this[Vc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vc]&&(this[Vc].protocol=e)}};oo.Agent=W3});var dpe=A(vg=>{"use strict";var prt=vg&&vg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vg,"__esModule",{value:!0});vg.parseProxyResponse=void 0;var Art=prt(R_()),D_=(0,Art.default)("https-proxy-agent:parse-proxy-response");function mrt(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),D_("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),D_("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r
`+s),t.push(i+"m+"+T_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rrt()+e+" "+t[0]}o(trt,"formatArgs");function rrt(){return ui.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(rrt,"getDate");function nrt(...t){return process.stderr.write(__.format(...t)+`
`)}o(nrt,"log");function irt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(irt,"save");function srt(){return process.env.DEBUG}o(srt,"load");function ort(t){t.inspectOpts={};let e=Object.keys(ui.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ui.inspectOpts[e[r]]}o(ort,"init");T_.exports=V3()(ui);var{formatters:rpe}=T_.exports;rpe.o=function(t){return this.inspectOpts.colors=this.useColors,__.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};rpe.O=function(t){return this.inspectOpts.colors=this.useColors,__.inspect(t,this.inspectOpts)}});var R_=A((uXt,W3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?W3.exports=Khe():W3.exports=npe()});var ope=A(bs=>{"use strict";var art=bs&&bs.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),crt=bs&&bs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ipe=bs&&bs.__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)&&art(e,t,r);return crt(e,t),e};Object.defineProperty(bs,"__esModule",{value:!0});bs.req=bs.json=bs.toBuffer=void 0;var lrt=ipe(require("http")),urt=ipe(require("https"));async function spe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(spe,"toBuffer");bs.toBuffer=spe;async function drt(t){let r=(await spe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(drt,"json");bs.json=drt;function frt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?urt:lrt).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(frt,"req");bs.req=frt});var upe=A(oo=>{"use strict";var cpe=oo&&oo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),hrt=oo&&oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lpe=oo&&oo.__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)&&cpe(e,t,r);return hrt(e,t),e},prt=oo&&oo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&cpe(e,t,r)};Object.defineProperty(oo,"__esModule",{value:!0});oo.Agent=void 0;var Art=lpe(require("net")),ape=lpe(require("http")),mrt=require("https");prt(ope(),oo);var Vc=Symbol("AgentBaseInternalState"),J3=class extends ape.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Vc]={}}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 Art.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],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?mrt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof ape.Agent)try{return c.addRequest(e,i)}catch(l){return n(l)}this[Vc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[Vc].currentSocket;if(this[Vc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vc]&&(this[Vc].defaultPort=e)}get protocol(){return this[Vc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vc]&&(this[Vc].protocol=e)}};oo.Agent=J3});var dpe=A(vg=>{"use strict";var grt=vg&&vg.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vg,"__esModule",{value:!0});vg.parseProxyResponse=void 0;var yrt=grt(R_()),D_=(0,yrt.default)("https-proxy-agent:parse-proxy-response");function Ert(t){return new Promise((e,r)=>{let n=0,i=[];function s(){let d=t.read();d?u(d):t.once("readable",s)}o(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",l),t.removeListener("readable",s)}o(a,"cleanup");function c(){a(),D_("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),D_("onerror %o",d),r(d)}o(l,"onerror");function u(d){i.push(d),n+=d.length;let f=Buffer.concat(i,n),h=f.indexOf(`\r
\r
`);if(h===-1){D_("have not received end of HTTP headers yet..."),s();return}let p=f.slice(0,h).toString("ascii").split(`\r
`),g=p.shift();if(!g)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let m=g.split(" "),E=+m[1],y=m.slice(2).join(" "),C={};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 Q=I.slice(0,B).toLowerCase(),M=I.slice(B+1).trimStart(),v=C[Q];typeof v=="string"?C[Q]=[v,M]:Array.isArray(v)?v.push(M):C[Q]=M}D_("got proxy server response: %o %o",g,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(mrt,"parseProxyResponse");vg.parseProxyResponse=mrt});var gpe=A(Yo=>{"use strict";var grt=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yrt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ape=Yo&&Yo.__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)&&grt(e,t,r);return yrt(e,t),e},mpe=Yo&&Yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.HttpsProxyAgent=void 0;var Q_=Ape(require("net")),fpe=Ape(require("tls")),Ert=mpe(require("assert")),Crt=mpe(R_()),brt=upe(),Irt=require("url"),wrt=dpe(),P0=(0,Crt.default)("https-proxy-agent"),hpe=o(t=>t.servername===void 0&&t.host&&!Q_.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),k_=class extends brt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Irt.URL(e):e,this.proxyHeaders=r?.headers??{},P0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ppe(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?(P0("Creating `tls.Socket`: %o",this.connectOpts),i=fpe.connect(hpe(this.connectOpts))):(P0("Creating `net.Socket`: %o",this.connectOpts),i=Q_.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Q_.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`),m=p.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=m.split(" "),E=+g[1],y=g.slice(2).join(" "),C={};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 Q=I.slice(0,B).toLowerCase(),M=I.slice(B+1).trimStart(),v=C[Q];typeof v=="string"?C[Q]=[v,M]:Array.isArray(v)?v.push(M):C[Q]=M}D_("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:f})}o(u,"ondata"),t.on("error",l),t.on("end",c),s()})}o(Ert,"parseProxyResponse");vg.parseProxyResponse=Ert});var gpe=A(Yo=>{"use strict";var Crt=Yo&&Yo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),brt=Yo&&Yo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ape=Yo&&Yo.__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)&&Crt(e,t,r);return brt(e,t),e},mpe=Yo&&Yo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yo,"__esModule",{value:!0});Yo.HttpsProxyAgent=void 0;var Q_=Ape(require("net")),fpe=Ape(require("tls")),Irt=mpe(require("assert")),wrt=mpe(R_()),Srt=upe(),Brt=require("url"),xrt=dpe(),P0=(0,wrt.default)("https-proxy-agent"),hpe=o(t=>t.servername===void 0&&t.host&&!Q_.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),k_=class extends Srt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Brt.URL(e):e,this.proxyHeaders=r?.headers??{},P0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ppe(r,"headers"):null,host:n,port:i}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let i;n.protocol==="https:"?(P0("Creating `tls.Socket`: %o",this.connectOpts),i=fpe.connect(hpe(this.connectOpts))):(P0("Creating `net.Socket`: %o",this.connectOpts),i=Q_.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Q_.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let h=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(s))c+=`${h}: ${s[h]}\r
`;let l=(0,wrt.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Srt),r.secureEndpoint?(P0("Upgrading socket connection to TLS"),fpe.connect({...ppe(hpe(r),"host","path","port"),socket:i})):i;i.destroy();let f=new Q_.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{P0("Replaying proxy buffer for failed request"),(0,Ert.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};k_.protocols=["http","https"];Yo.HttpsProxyAgent=k_;function Srt(t){t.resume()}o(Srt,"resume");function ppe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ppe,"omit")});var Cpe=A(Is=>{"use strict";var Brt=Is&&Is.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),xrt=Is&&Is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ype=Is&&Is.__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)&&Brt(e,t,r);return xrt(e,t),e};Object.defineProperty(Is,"__esModule",{value:!0});Is.req=Is.json=Is.toBuffer=void 0;var vrt=ype(require("http")),Nrt=ype(require("https"));async function Epe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(Epe,"toBuffer");Is.toBuffer=Epe;async function _rt(t){let r=(await Epe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(_rt,"json");Is.json=_rt;function Trt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Nrt:vrt).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(Trt,"req");Is.req=Trt});var Spe=A(ao=>{"use strict";var Ipe=ao&&ao.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Rrt=ao&&ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wpe=ao&&ao.__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)&&Ipe(e,t,r);return Rrt(e,t),e},Drt=ao&&ao.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ipe(e,t,r)};Object.defineProperty(ao,"__esModule",{value:!0});ao.Agent=void 0;var Qrt=wpe(require("net")),bpe=wpe(require("http")),krt=require("https");Drt(Cpe(),ao);var zc=Symbol("AgentBaseInternalState"),J3=class extends bpe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[zc]={}}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 Qrt.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],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?krt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof bpe.Agent)return c.addRequest(e,i);this[zc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[zc].currentSocket;if(this[zc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zc]&&(this[zc].defaultPort=e)}get protocol(){return this[zc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zc]&&(this[zc].protocol=e)}};ao.Agent=J3});var vpe=A(Ko=>{"use strict";var Prt=Ko&&Ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Ort=Ko&&Ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xpe=Ko&&Ko.__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)&&Prt(e,t,r);return Ort(e,t),e},Lrt=Ko&&Ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.HttpProxyAgent=void 0;var Frt=xpe(require("net")),Mrt=xpe(require("tls")),Urt=Lrt(R_()),qrt=require("events"),Grt=Spe(),Bpe=require("url"),Ng=(0,Urt.default)("http-proxy-agent"),P_=class extends Grt.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Bpe.URL(e):e,this.proxyHeaders=r?.headers??{},Ng("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Hrt(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new Bpe.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 u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;Ng("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ng("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
`;let l=(0,xrt.parseProxyResponse)(i);i.write(`${c}\r
`);let{connect:u,buffered:d}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",vrt),r.secureEndpoint?(P0("Upgrading socket connection to TLS"),fpe.connect({...ppe(hpe(r),"host","path","port"),socket:i})):i;i.destroy();let f=new Q_.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{P0("Replaying proxy buffer for failed request"),(0,Irt.default)(h.listenerCount("data")>0),h.push(d),h.push(null)}),f}};k_.protocols=["http","https"];Yo.HttpsProxyAgent=k_;function vrt(t){t.resume()}o(vrt,"resume");function ppe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(ppe,"omit")});var Cpe=A(Is=>{"use strict";var Nrt=Is&&Is.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),_rt=Is&&Is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ype=Is&&Is.__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)&&Nrt(e,t,r);return _rt(e,t),e};Object.defineProperty(Is,"__esModule",{value:!0});Is.req=Is.json=Is.toBuffer=void 0;var Trt=ype(require("http")),Rrt=ype(require("https"));async function Epe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}o(Epe,"toBuffer");Is.toBuffer=Epe;async function Drt(t){let r=(await Epe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let i=n;throw i.message+=` (input: ${r})`,i}}o(Drt,"json");Is.json=Drt;function Qrt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Rrt:Trt).request(t,e),i=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=i.then.bind(i),n}o(Qrt,"req");Is.req=Qrt});var Spe=A(ao=>{"use strict";var Ipe=ao&&ao.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),krt=ao&&ao.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wpe=ao&&ao.__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)&&Ipe(e,t,r);return krt(e,t),e},Prt=ao&&ao.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Ipe(e,t,r)};Object.defineProperty(ao,"__esModule",{value:!0});ao.Agent=void 0;var Ort=wpe(require("net")),bpe=wpe(require("http")),Lrt=require("https");Prt(Cpe(),ao);var zc=Symbol("AgentBaseInternalState"),Y3=class extends bpe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[zc]={}}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 Ort.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],i=n.indexOf(r);i!==-1&&(n.splice(i,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?Lrt.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let i={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(i),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,i)).then(c=>{if(this.decrementSockets(s,a),c instanceof bpe.Agent)return c.addRequest(e,i);this[zc].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[zc].currentSocket;if(this[zc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[zc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[zc]&&(this[zc].defaultPort=e)}get protocol(){return this[zc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[zc]&&(this[zc].protocol=e)}};ao.Agent=Y3});var vpe=A(Ko=>{"use strict";var Frt=Ko&&Ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Mrt=Ko&&Ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xpe=Ko&&Ko.__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)&&Frt(e,t,r);return Mrt(e,t),e},Urt=Ko&&Ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ko,"__esModule",{value:!0});Ko.HttpProxyAgent=void 0;var qrt=xpe(require("net")),Grt=xpe(require("tls")),Hrt=Urt(R_()),Vrt=require("events"),zrt=Spe(),Bpe=require("url"),Ng=(0,Hrt.default)("http-proxy-agent"),P_=class extends zrt.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Bpe.URL(e):e,this.proxyHeaders=r?.headers??{},Ng("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?$rt(r,"headers"):null,host:n,port:i}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,i=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${i}//${s}`,c=new Bpe.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 u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,i;Ng("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ng("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,i=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(i),Ng("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Ng("Creating `tls.Socket`: %o",this.connectOpts),s=Mrt.connect(this.connectOpts)):(Ng("Creating `net.Socket`: %o",this.connectOpts),s=Frt.connect(this.connectOpts)),await(0,qrt.once)(s,"connect"),s}};P_.protocols=["http","https"];Ko.HttpProxyAgent=P_;function Hrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Hrt,"omit")});var Jpe=A(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.state=void 0;J_.state={instrumenterImplementation:void 0}});var fAe=A(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.state=void 0;eT.state={operationRequestMap:new WeakMap}});var Vge=A($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var lct=require("os"),uct=require("util");function dct(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(dct,"_interopDefaultLegacy");var fct=dct(uct);function hct(t,...e){process.stderr.write(`${fct.default.format(t,...e)}${lct.EOL}`)}o(hct,"log");var kge=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Oge,v5=[],N5=[],ER=[];kge&&_5(kge);var Lge=Object.assign(t=>Fge(t),{enable:_5,enabled:T5,disable:pct,log:hct});function _5(t){Oge=t,v5=[],N5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?N5.push(new RegExp(`^${n.substr(1)}$`)):v5.push(new RegExp(`^${n}$`));for(let n of ER)n.enabled=T5(n.namespace)}o(_5,"enable");function T5(t){if(t.endsWith("*"))return!0;for(let e of N5)if(e.test(t))return!1;for(let e of v5)if(e.test(t))return!0;return!1}o(T5,"enabled");function pct(){let t=Oge||"";return _5(""),t}o(pct,"disable");function Fge(t){let e=Object.assign(r,{enabled:T5(t),destroy:Act,log:Lge.log,namespace:t,extend:mct});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),ER.push(e),e}o(Fge,"createDebugger");function Act(){let t=ER.indexOf(this);return t>=0?(ER.splice(t,1),!0):!1}o(Act,"destroy");function mct(t){let e=Fge(`${this.namespace}:${t}`);return e.log=this.log,e}o(mct,"extend");var II=Lge,Mge=new Set,gR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,CR,bR=II("azure");bR.log=(...t)=>{II.log(...t)};var R5=["verbose","info","warning","error"];gR&&(Hge(gR)?Uge(gR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${gR}'; logging is not enabled. Acceptable values: ${R5.join(", ")}.`));function Uge(t){if(t&&!Hge(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${R5.join(",")}`);CR=t;let e=[];for(let r of Mge)Gge(r)&&e.push(r.namespace);II.enable(e.join(","))}o(Uge,"setLogLevel");function gct(){return CR}o(gct,"getLogLevel");var Pge={verbose:400,info:300,warning:200,error:100};function yct(t){let e=bR.extend(t);return qge(bR,e),{error:yR(e,"error"),warning:yR(e,"warning"),info:yR(e,"info"),verbose:yR(e,"verbose")}}o(yct,"createClientLogger");function qge(t,e){e.log=(...r)=>{t.log(...r)}}o(qge,"patchLogMethod");function yR(t,e){let r=Object.assign(t.extend(e),{level:e});if(qge(t,r),Gge(r)){let n=II.disable();II.enable(n+","+r.namespace)}return Mge.add(r),r}o(yR,"createLogger");function Gge(t){return!!(CR&&Pge[t.level]<=Pge[CR])}o(Gge,"shouldEnable");function Hge(t){return R5.includes(t)}o(Hge,"isAzureLogLevel");$g.AzureLogger=bR;$g.createClientLogger=yct;$g.getLogLevel=gct;$g.setLogLevel=Uge});var k5=A(SI=>{"use strict";Object.defineProperty(SI,"__esModule",{value:!0});var jg=new WeakMap,IR=new WeakMap,wI=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,jg.set(this,[]),IR.set(this,!1)}get aborted(){if(!IR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return IR.get(this)}static get none(){return new t}addEventListener(e,r){if(!jg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");jg.get(this).push(r)}removeEventListener(e,r){if(!jg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=jg.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function zge(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=jg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),IR.set(t,!0)}o(zge,"abortSignal");var D5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Q5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new wI,!!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(){zge(this._signal)}static timeout(e){let r=new wI,n=setTimeout(zge,e,r);return typeof n.unref=="function"&&n.unref(),r}};SI.AbortController=Q5;SI.AbortError=D5;SI.AbortSignal=wI});var Yge=A(Mr=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(i),Ng("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Ng("Creating `tls.Socket`: %o",this.connectOpts),s=Grt.connect(this.connectOpts)):(Ng("Creating `net.Socket`: %o",this.connectOpts),s=qrt.connect(this.connectOpts)),await(0,Vrt.once)(s,"connect"),s}};P_.protocols=["http","https"];Ko.HttpProxyAgent=P_;function $rt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o($rt,"omit")});var Jpe=A(J_=>{"use strict";Object.defineProperty(J_,"__esModule",{value:!0});J_.state=void 0;J_.state={instrumenterImplementation:void 0}});var fAe=A(eT=>{"use strict";Object.defineProperty(eT,"__esModule",{value:!0});eT.state=void 0;eT.state={operationRequestMap:new WeakMap}});var Vge=A($g=>{"use strict";Object.defineProperty($g,"__esModule",{value:!0});var fct=require("os"),hct=require("util");function pct(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(pct,"_interopDefaultLegacy");var Act=pct(hct);function mct(t,...e){process.stderr.write(`${Act.default.format(t,...e)}${fct.EOL}`)}o(mct,"log");var kge=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Oge,N5=[],_5=[],ER=[];kge&&T5(kge);var Lge=Object.assign(t=>Fge(t),{enable:T5,enabled:R5,disable:gct,log:mct});function T5(t){Oge=t,N5=[],_5=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?_5.push(new RegExp(`^${n.substr(1)}$`)):N5.push(new RegExp(`^${n}$`));for(let n of ER)n.enabled=R5(n.namespace)}o(T5,"enable");function R5(t){if(t.endsWith("*"))return!0;for(let e of _5)if(e.test(t))return!1;for(let e of N5)if(e.test(t))return!0;return!1}o(R5,"enabled");function gct(){let t=Oge||"";return T5(""),t}o(gct,"disable");function Fge(t){let e=Object.assign(r,{enabled:R5(t),destroy:yct,log:Lge.log,namespace:t,extend:Ect});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return o(r,"debug"),ER.push(e),e}o(Fge,"createDebugger");function yct(){let t=ER.indexOf(this);return t>=0?(ER.splice(t,1),!0):!1}o(yct,"destroy");function Ect(t){let e=Fge(`${this.namespace}:${t}`);return e.log=this.log,e}o(Ect,"extend");var II=Lge,Mge=new Set,gR=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,CR,bR=II("azure");bR.log=(...t)=>{II.log(...t)};var D5=["verbose","info","warning","error"];gR&&(Hge(gR)?Uge(gR):console.error(`AZURE_LOG_LEVEL set to unknown log level '${gR}'; logging is not enabled. Acceptable values: ${D5.join(", ")}.`));function Uge(t){if(t&&!Hge(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${D5.join(",")}`);CR=t;let e=[];for(let r of Mge)Gge(r)&&e.push(r.namespace);II.enable(e.join(","))}o(Uge,"setLogLevel");function Cct(){return CR}o(Cct,"getLogLevel");var Pge={verbose:400,info:300,warning:200,error:100};function bct(t){let e=bR.extend(t);return qge(bR,e),{error:yR(e,"error"),warning:yR(e,"warning"),info:yR(e,"info"),verbose:yR(e,"verbose")}}o(bct,"createClientLogger");function qge(t,e){e.log=(...r)=>{t.log(...r)}}o(qge,"patchLogMethod");function yR(t,e){let r=Object.assign(t.extend(e),{level:e});if(qge(t,r),Gge(r)){let n=II.disable();II.enable(n+","+r.namespace)}return Mge.add(r),r}o(yR,"createLogger");function Gge(t){return!!(CR&&Pge[t.level]<=Pge[CR])}o(Gge,"shouldEnable");function Hge(t){return D5.includes(t)}o(Hge,"isAzureLogLevel");$g.AzureLogger=bR;$g.createClientLogger=bct;$g.getLogLevel=Cct;$g.setLogLevel=Uge});var P5=A(SI=>{"use strict";Object.defineProperty(SI,"__esModule",{value:!0});var jg=new WeakMap,IR=new WeakMap,wI=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,jg.set(this,[]),IR.set(this,!1)}get aborted(){if(!IR.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return IR.get(this)}static get none(){return new t}addEventListener(e,r){if(!jg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");jg.get(this).push(r)}removeEventListener(e,r){if(!jg.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=jg.get(this),i=n.indexOf(r);i>-1&&n.splice(i,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function zge(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=jg.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),IR.set(t,!0)}o(zge,"abortSignal");var Q5=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},k5=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new wI,!!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(){zge(this._signal)}static timeout(e){let r=new wI,n=setTimeout(zge,e,r);return typeof n.unref=="function"&&n.unref(),r}};SI.AbortController=k5;SI.AbortError=Q5;SI.AbortSignal=wI});var Yge=A(Mr=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${eye.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(Xge({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(Wct,"pollOperationHelper");async function iye(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:g,isDone:m,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:I}=await Wct({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(rye({status:I,response:C,state:r,stateProxy:n,isDone:m,processResult:f,getError:h,setErrorAsResult:E}),!eye.includes(I)){let B=d?.(C);B&&g(B);let Q=c?.(C,r);if(Q!==void 0){let M=y!==Q;r.config.operationLocation=Q,u?.(Q,M)}else u?.(y,!1)}p?.(r,C)}}o(iye,"pollOperation");function sye(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(sye,"getOperationLocationPollingUrl");function oye(t){return t.headers.location}o(oye,"getLocationHeader");function aye(t){return t.headers["operation-location"]}o(aye,"getOperationLocationHeader");function cye(t){return t.headers["azure-asyncoperation"]}o(cye,"getAzureAsyncOperationHeader");function Jct(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(Jct,"findResourceLocation");function lye(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=aye(e),a=cye(e),c=sye({operationLocation:s,azureAsyncOperation:a}),l=oye(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Jct({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(lye,"inferLroMode");function uye(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 z5(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 Tp.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(uye,"transformStatus");function Yct(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uye({status:r,statusCode:t.statusCode})}o(Yct,"getStatus");function Kct(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return uye({status:s,statusCode:t.statusCode})}o(Kct,"getProvisioningState");function z5(t){return t===202?"running":t<300?"succeeded":"failed"}o(z5,"toOperationStatus");function dye({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Xct(new Date(e)):r*1e3}}o(dye,"parseRetryAfter");function fye(t){let e=t.flatResponse.error;if(!e){Tp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Tp.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(fye,"getErrorFromResponse");function Xct(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Xct,"calculatePollingIntervalFromDate");function hye(t){let{response:e,state:r,operationLocation:n}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return z5(e.rawResponse.statusCode);case"Body":return $5(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(hye,"getStatusFromInitialResponse");async function Zct(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return nye({init:o(async()=>{let a=await i.sendInitialRequest(),c=lye({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.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:hye,setErrorAsResult:s})}o(Zct,"initHttpOperation");function pye({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Olt,"base64decode");Zg.base64decode=Olt;function Llt(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ju[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=ju[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=ju[i|n>>6],e+=ju[n&63],r=0;break}return r&&(e+=ju[i],e+="=",r==1&&(e+="=")),e}o(Llt,"base64encode");Zg.base64encode=Llt});var jye=A(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.utf8read=void 0;var nz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function Flt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(nz(n)),i=0);return r.length?(i&&r.push(nz(n.slice(0,i))),r.join("")):nz(n.slice(0,i))}o(Flt,"utf8read");qR.utf8read=Flt});var DI=A(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.WireType=gl.mergeBinaryOptions=gl.UnknownFieldHandler=void 0;var Mlt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(Mlt=gl.UnknownFieldHandler||(gl.UnknownFieldHandler={}));function Ult(t,e){return Object.assign(Object.assign({},t),e)}o(Ult,"mergeBinaryOptions");gl.mergeBinaryOptions=Ult;var qlt;(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"})(qlt=gl.WireType||(gl.WireType={}))});var HR=A(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.varint32read=_s.varint32write=_s.int64toString=_s.int64fromString=_s.varint64write=_s.varint64read=void 0;function Glt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&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 i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(Glt,"varint64read");_s.varint64read=Glt;function Hlt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,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,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(Hlt,"varint64write");_s.varint64write=Hlt;var GR=65536*65536;function Vlt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=GR&&(i=i+(n/GR|0),n=n%GR)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(Vlt,"int64fromString");_s.int64fromString=Vlt;function zlt(t,e){if(e>>>0<=2097151)return""+(GR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(zlt,"int64toString");_s.int64toString=zlt;function $lt(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($lt,"varint32write");_s.varint32write=$lt;function jlt(){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(jlt,"varint32read");_s.varint32read=jlt});var wf=A(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.PbLong=If.PbULong=If.detectBi=void 0;var QI=HR(),jt;function Wye(){let t=new DataView(new ArrayBuffer(8));jt=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("922337203685477580 Line truncated
`)}};m2.RpcError=Tz});var Dz=A(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.mergeRpcOptions=void 0;var xEe=rn();function Adt(t,e){if(!e)return t;let r={};g2(t,r),g2(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=xEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=xEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},g2(t.meta,r.meta),g2(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Adt,"mergeRpcOptions");y2.mergeRpcOptions=Adt;function g2(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(g2,"copy")});var kz=A(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.Deferred=Pp.DeferredState=void 0;var Cl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Cl=Pp.DeferredState||(Pp.DeferredState={}));var Qz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Cl.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!==Cl.PENDING)throw new Error(`cannot resolve ${Cl[this.state].toLowerCase()}`);this._resolve(e),this._state=Cl.RESOLVED}reject(e){if(this.state!==Cl.PENDING)throw new Error(`cannot reject ${Cl[this.state].toLowerCase()}`);this._reject(e),this._state=Cl.REJECTED}resolvePending(e){this._state===Cl.PENDING&&this.resolve(e)}rejectPending(e){this._state===Cl.PENDING&&this.reject(e)}};Pp.Deferred=Qz});var Oz=A(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.RpcOutputStreamController=void 0;var vEe=kz(),Op=rn(),Pz=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){Op.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){Op.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){Op.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(){Op.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;Op.assert(e,"bad state"),Op.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 vEe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Op.assert(n.state==vEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};E2.RpcOutputStreamController=Pz});var Fz=A(oy=>{"use strict";var mdt=oy&&oy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(oy,"__esModule",{value:!0});oy.UnaryCall=void 0;var Lz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,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 mdt(this,void 0,void 0,function*(){let[e,r,n,i]=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:i}})}};oy.UnaryCall=Lz});var Uz=A(ay=>{"use strict";var gdt=ay&&ay.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function Line truncated
Polling status: ${eye.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let f=a(u,r);if(f!==void 0)return{response:await e(f).catch(Xge({state:r,stateProxy:n,isOperationError:c})),status:d}}return{response:u,status:d}}o(Kct,"pollOperationHelper");async function iye(t){let{poll:e,state:r,stateProxy:n,options:i,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:f,getError:h,updateState:p,setDelay:m,isDone:g,setErrorAsResult:E}=t,{operationLocation:y}=r.config;if(y!==void 0){let{response:C,status:I}=await Kct({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:y,getResourceLocation:a,isOperationError:l,options:i});if(rye({status:I,response:C,state:r,stateProxy:n,isDone:g,processResult:f,getError:h,setErrorAsResult:E}),!eye.includes(I)){let B=d?.(C);B&&m(B);let Q=c?.(C,r);if(Q!==void 0){let M=y!==Q;r.config.operationLocation=Q,u?.(Q,M)}else u?.(y,!1)}p?.(r,C)}}o(iye,"pollOperation");function sye(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(sye,"getOperationLocationPollingUrl");function oye(t){return t.headers.location}o(oye,"getLocationHeader");function aye(t){return t.headers["operation-location"]}o(aye,"getOperationLocationHeader");function cye(t){return t.headers["azure-asyncoperation"]}o(cye,"getAzureAsyncOperationHeader");function Xct(t){var e;let{location:r,requestMethod:n,requestPath:i,resourceLocationConfig:s}=t;switch(n){case"PUT":return i;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:i;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return i;default:return r}}o(a,"getDefault")}o(Xct,"findResourceLocation");function lye(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:i}=t,s=aye(e),a=cye(e),c=sye({operationLocation:s,azureAsyncOperation:a}),l=oye(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Xct({requestMethod:u,location:l,requestPath:n,resourceLocationConfig:i})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}o(lye,"inferLroMode");function uye(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 $5(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 Tp.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(uye,"transformStatus");function Zct(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return uye({status:r,statusCode:t.statusCode})}o(Zct,"getStatus");function elt(t){var e,r;let{properties:n,provisioningState:i}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:i;return uye({status:s,statusCode:t.statusCode})}o(elt,"getProvisioningState");function $5(t){return t===202?"running":t<300?"succeeded":"failed"}o($5,"toOperationStatus");function dye({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?tlt(new Date(e)):r*1e3}}o(dye,"parseRetryAfter");function fye(t){let e=t.flatResponse.error;if(!e){Tp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){Tp.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(fye,"getErrorFromResponse");function tlt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(tlt,"calculatePollingIntervalFromDate");function hye(t){let{response:e,state:r,operationLocation:n}=t;function i(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return $5(e.rawResponse.statusCode);case"Body":return j5(e,r);default:return"running"}}o(i,"helper");let s=i();return s==="running"&&n===void 0?"succeeded":s}o(hye,"getStatusFromInitialResponse");async function rlt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:i,setErrorAsResult:s}=t;return nye({init:o(async()=>{let a=await i.sendInitialRequest(),c=lye({rawResponse:a.rawResponse,requestPath:i.requestPath,requestMethod:i.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:hye,setErrorAsResult:s})}o(rlt,"initHttpOperation");function pye({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(Mlt,"base64decode");Zg.base64decode=Mlt;function Ult(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ju[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=ju[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=ju[i|n>>6],e+=ju[n&63],r=0;break}return r&&(e+=ju[i],e+="=",r==1&&(e+="=")),e}o(Ult,"base64encode");Zg.base64encode=Ult});var jye=A(qR=>{"use strict";Object.defineProperty(qR,"__esModule",{value:!0});qR.utf8read=void 0;var iz=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function qlt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(iz(n)),i=0);return r.length?(i&&r.push(iz(n.slice(0,i))),r.join("")):iz(n.slice(0,i))}o(qlt,"utf8read");qR.utf8read=qlt});var DI=A(gl=>{"use strict";Object.defineProperty(gl,"__esModule",{value:!0});gl.WireType=gl.mergeBinaryOptions=gl.UnknownFieldHandler=void 0;var Glt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(Glt=gl.UnknownFieldHandler||(gl.UnknownFieldHandler={}));function Hlt(t,e){return Object.assign(Object.assign({},t),e)}o(Hlt,"mergeBinaryOptions");gl.mergeBinaryOptions=Hlt;var Vlt;(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"})(Vlt=gl.WireType||(gl.WireType={}))});var HR=A(_s=>{"use strict";Object.defineProperty(_s,"__esModule",{value:!0});_s.varint32read=_s.varint32write=_s.int64toString=_s.int64fromString=_s.varint64write=_s.varint64read=void 0;function zlt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&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 i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(zlt,"varint64read");_s.varint64read=zlt;function $lt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,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,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o($lt,"varint64write");_s.varint64write=$lt;var GR=65536*65536;function jlt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=GR&&(i=i+(n/GR|0),n=n%GR)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(jlt,"int64fromString");_s.int64fromString=jlt;function Wlt(t,e){if(e>>>0<=2097151)return""+(GR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(Wlt,"int64toString");_s.int64toString=Wlt;function Jlt(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(Jlt,"varint32write");_s.varint32write=Jlt;function Ylt(){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(Ylt,"varint32read");_s.varint32read=Ylt});var wf=A(If=>{"use strict";Object.defineProperty(If,"__esModule",{value:!0});If.PbLong=If.PbULong=If.detectBi=void 0;var QI=HR(),jt;function Wye(){let t=new DataView(new ArrayBuffer(8));jt=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("922337203685477580 Line truncated
`)}};m2.RpcError=Rz});var Qz=A(y2=>{"use strict";Object.defineProperty(y2,"__esModule",{value:!0});y2.mergeRpcOptions=void 0;var xEe=rn();function ydt(t,e){if(!e)return t;let r={};g2(t,r),g2(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=xEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=xEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},g2(t.meta,r.meta),g2(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(ydt,"mergeRpcOptions");y2.mergeRpcOptions=ydt;function g2(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(g2,"copy")});var Pz=A(Pp=>{"use strict";Object.defineProperty(Pp,"__esModule",{value:!0});Pp.Deferred=Pp.DeferredState=void 0;var Cl;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Cl=Pp.DeferredState||(Pp.DeferredState={}));var kz=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Cl.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!==Cl.PENDING)throw new Error(`cannot resolve ${Cl[this.state].toLowerCase()}`);this._resolve(e),this._state=Cl.RESOLVED}reject(e){if(this.state!==Cl.PENDING)throw new Error(`cannot reject ${Cl[this.state].toLowerCase()}`);this._reject(e),this._state=Cl.REJECTED}resolvePending(e){this._state===Cl.PENDING&&this.resolve(e)}rejectPending(e){this._state===Cl.PENDING&&this.reject(e)}};Pp.Deferred=kz});var Lz=A(E2=>{"use strict";Object.defineProperty(E2,"__esModule",{value:!0});E2.RpcOutputStreamController=void 0;var vEe=Pz(),Op=rn(),Oz=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){Op.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){Op.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){Op.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(){Op.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;Op.assert(e,"bad state"),Op.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 vEe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Op.assert(n.state==vEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};E2.RpcOutputStreamController=Oz});var Mz=A(oy=>{"use strict";var Edt=oy&&oy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(oy,"__esModule",{value:!0});oy.UnaryCall=void 0;var Fz=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,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 Edt(this,void 0,void 0,function*(){let[e,r,n,i]=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:i}})}};oy.UnaryCall=Fz});var qz=A(ay=>{"use strict";var Cdt=ay&&ay.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function 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(Imt,"logUnexpecedPropertyAccessOnce");function wmt(){Object.keys(tD).forEach(function(t){delete tD[t]})}o(wmt,"resetLoggedProperties")});var nD=A(Sl=>{"use strict";Sl.__esModule=!0;Sl.HandlebarsEnvironment=oj;function M0e(t){return t&&t.__esModule?t:{default:t}}o(M0e,"_interopRequireDefault");var Hp=Zi(),Smt=yo(),ij=M0e(Smt),Bmt=ej(),xmt=P0e(),vmt=rj(),rD=M0e(vmt),Nmt=nj(),_mt="4.7.9";Sl.VERSION=_mt;var Tmt=8;Sl.COMPILER_REVISION=Tmt;var Rmt=7;Sl.LAST_COMPATIBLE_COMPILER_REVISION=Rmt;var Dmt={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"};Sl.REVISION_CHANGES=Dmt;var sj="[object Object]";function oj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Bmt.registerDefaultHelpers(this),xmt.registerDefaultDecorators(this)}o(oj,"HandlebarsEnvironment");oj.prototype={constructor:oj,logger:rD.default,log:rD.default.log,registerHelper:o(function(e,r){if(Hp.toString.call(e)===sj){if(r)throw new ij.default("Arg not supported with multiple helpers");Hp.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(Hp.toString.call(e)===sj)Hp.extend(this.partials,e);else{if(typeof r>"u")throw new ij.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(Hp.toString.call(e)===sj){if(r)throw new ij.default("Arg not supported with multiple decorators");Hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Nmt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Qmt=rD.default.log;Sl.log=Qmt;Sl.createFrame=Hp.createFrame;Sl.logger=rD.default});var q0e=A((iD,U0e)=>{"use strict";iD.__esModule=!0;function aj(t){this.string=t}o(aj,"SafeString");aj.prototype.toString=aj.prototype.toHTML=function(){return""+this.string};iD.default=aj;U0e.exports=iD.default});var G0e=A(cj=>{"use strict";cj.__esModule=!0;cj.wrapHelper=kmt;function kmt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(kmt,"wrapHelper")});var W0e=A(vf=>{"use strict";vf.__esModule=!0;vf.checkRevision=Umt;vf.template=qmt;vf.wrapProgram=sD;vf.resolvePartial=Gmt;vf.invokePartial=Hmt;vf.noop=$0e;function Pmt(t){return t&&t.__esModule?t:{default:t}}o(Pmt,"_interopRequireDefault");function Omt(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(Omt,"_interopRequireWildcard");var Lmt=Zi(),Ey=Omt(Lmt),Fmt=yo(),Yu=Pmt(Fmt),Ku=nD(),H0e=ej(),Mmt=G0e(),V0e=nj();function Umt(t){var e=t&&t[0]||1,r=Ku.COMPILER_REVISION;if(!(e>=Ku.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ku.COMPILER_REVISION))if(e<Ku.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ku.REVISION_CHANGES[r],i=Ku.REVISION_CHANGES[e];throw new Yu.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 ("+i+").")}else throw new Yu.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(Umt,"checkRevision");function qmt(t,e){if(!e)throw new Yu.default("No environment passed to template");if(!t||!t.main)throw new Yu.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=Ey.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 u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(Bmt,"logUnexpecedPropertyAccessOnce");function xmt(){Object.keys(tD).forEach(function(t){delete tD[t]})}o(xmt,"resetLoggedProperties")});var nD=A(Sl=>{"use strict";Sl.__esModule=!0;Sl.HandlebarsEnvironment=aj;function M0e(t){return t&&t.__esModule?t:{default:t}}o(M0e,"_interopRequireDefault");var Hp=Zi(),vmt=yo(),sj=M0e(vmt),Nmt=tj(),_mt=P0e(),Tmt=nj(),rD=M0e(Tmt),Rmt=ij(),Dmt="4.7.9";Sl.VERSION=Dmt;var Qmt=8;Sl.COMPILER_REVISION=Qmt;var kmt=7;Sl.LAST_COMPATIBLE_COMPILER_REVISION=kmt;var Pmt={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"};Sl.REVISION_CHANGES=Pmt;var oj="[object Object]";function aj(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},Nmt.registerDefaultHelpers(this),_mt.registerDefaultDecorators(this)}o(aj,"HandlebarsEnvironment");aj.prototype={constructor:aj,logger:rD.default,log:rD.default.log,registerHelper:o(function(e,r){if(Hp.toString.call(e)===oj){if(r)throw new sj.default("Arg not supported with multiple helpers");Hp.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(Hp.toString.call(e)===oj)Hp.extend(this.partials,e);else{if(typeof r>"u")throw new sj.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(Hp.toString.call(e)===oj){if(r)throw new sj.default("Arg not supported with multiple decorators");Hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){Rmt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var Omt=rD.default.log;Sl.log=Omt;Sl.createFrame=Hp.createFrame;Sl.logger=rD.default});var q0e=A((iD,U0e)=>{"use strict";iD.__esModule=!0;function cj(t){this.string=t}o(cj,"SafeString");cj.prototype.toString=cj.prototype.toHTML=function(){return""+this.string};iD.default=cj;U0e.exports=iD.default});var G0e=A(lj=>{"use strict";lj.__esModule=!0;lj.wrapHelper=Lmt;function Lmt(t,e){if(typeof t!="function")return t;var r=o(function(){var i=arguments[arguments.length-1];return arguments[arguments.length-1]=e(i),t.apply(this,arguments)},"wrapper");return r}o(Lmt,"wrapHelper")});var W0e=A(vf=>{"use strict";vf.__esModule=!0;vf.checkRevision=Hmt;vf.template=Vmt;vf.wrapProgram=sD;vf.resolvePartial=zmt;vf.invokePartial=$mt;vf.noop=$0e;function Fmt(t){return t&&t.__esModule?t:{default:t}}o(Fmt,"_interopRequireDefault");function Mmt(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(Mmt,"_interopRequireWildcard");var Umt=Zi(),Ey=Mmt(Umt),qmt=yo(),Yu=Fmt(qmt),Ku=nD(),H0e=tj(),Gmt=G0e(),V0e=ij();function Hmt(t){var e=t&&t[0]||1,r=Ku.COMPILER_REVISION;if(!(e>=Ku.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Ku.COMPILER_REVISION))if(e<Ku.LAST_COMPATIBLE_COMPILER_REVISION){var n=Ku.REVISION_CHANGES[r],i=Ku.REVISION_CHANGES[e];throw new Yu.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 ("+i+").")}else throw new Yu.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(Hmt,"checkRevision");function Vmt(t,e){if(!e)throw new Yu.default("No environment passed to template");if(!t||!t.main)throw new Yu.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=Ey.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 u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var d=u.split(`
`),f=0,h=d.length;f<h&&!(!d[f]&&f+1===h);f++)d[f]=l.indent+d[f];u=d.join(`
`)}return u}else throw new Yu.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Yu.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||V0e.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Ey.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,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=sD(this,c,p,l,u,d,f):h||(h=this.programs[c]=sD(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Ey.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=Vmt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=j0e(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};z0e(c,e.helpers,i),z0e(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=Ey.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=V0e.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;H0e.moveHelperToHooks(i,"helperMissing",l),H0e.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Yu.default("must pass block params");if(t.useDepths&&!u)throw new Yu.default("must pass parent depths");return sD(i,a,t[a],c,0,l,u)},s}o(qmt,"template");function sD(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=j0e(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(sD,"wrapProgram");function Gmt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=oD(r.partials,t)):r.name==="@partial-block"?t=oD(r.data,"partial-block"):t=oD(r.partials,r.name),t}o(Gmt,"resolvePartial");function Hmt(t,e,r){var n=oD(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==$0e&&(function(){r.data=Ku.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Ku.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=Ey.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Yu.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(Hmt,"invokePartial");function $0e(){return""}o($0e,"noop");function oD(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(oD,"lookupOwnProperty");function Vmt(t,e){return(!e||!("root"in e))&&(e=e?Ku.createFrame(e):{},e.root=t),e}o(Vmt,"initData");function j0e(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),Ey.extend(e,a)}return e}o(j0e,"executeDecorators");function z0e(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=zmt(i,r)})}o(z0e,"addHelpers");function zmt(t,e){var r=e.lookupProperty;return Mmt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(zmt,"passLookupPropertyOption")});var lj=A((aD,J0e)=>{"use strict";aD.__esModule=!0;aD.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}};J0e.exports=aD.default});var eIe=A((cD,Z0e)=>{"use strict";cD.__esModule=!0;function dj(t){return t&&t.__esModule?t:{default:t}}o(dj,"_interopRequireDefault");function fj(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(fj,"_interopRequireWildcard");var $mt=nD(),Y0e=fj($mt),jmt=q0e(),Wmt=dj(jmt),Jmt=yo(),Ymt=dj(Jmt),Kmt=Zi(),uj=fj(Kmt),Xmt=W0e Line truncated
`)}return u}else throw new Yu.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(n,"invokePartialWrapper");var i={strict:o(function(c,l,u){if(!c||!(l in c))throw new Yu.default('"'+l+'" not defined in '+c,{loc:u});return i.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||V0e.resultIsAllowed(u,i.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var f=c[d]&&i.lookupProperty(c[d],l);if(f!=null)return f}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Ey.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,u,d,f){var h=this.programs[c],p=this.fn(c);return l||f||d||u?h=sD(this,c,p,l,u,d,f):h||(h=this.programs[c]=sD(this,c,p)),h},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Ey.extend({},l,c)),u},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=c.data;s._setup(c),!c.partial&&t.useData&&(l=jmt(a,l));var u=void 0,d=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function f(h){return""+t.main(i,h,i.helpers,i.partials,l,d,u)}return o(f,"main"),f=j0e(t.main,f,i,c.depths||[],l,d),f(a,c)}return o(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)i.protoAccessControl=a.protoAccessControl,i.helpers=a.helpers,i.partials=a.partials,i.decorators=a.decorators,i.hooks=a.hooks;else{var c={};z0e(c,e.helpers,i),z0e(c,a.helpers,i),i.helpers=c,t.usePartial&&(i.partials=i.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(i.decorators=Ey.extend({},e.decorators,a.decorators)),i.hooks={},i.protoAccessControl=V0e.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;H0e.moveHelperToHooks(i,"helperMissing",l),H0e.moveHelperToHooks(i,"blockHelperMissing",l)}},s._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Yu.default("must pass block params");if(t.useDepths&&!u)throw new Yu.default("must pass parent depths");return sD(i,a,t[a],c,0,l,u)},s}o(Vmt,"template");function sD(t,e,r,n,i,s,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],d=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(d=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||n,s&&[u.blockParams].concat(s),d)}return o(c,"prog"),c=j0e(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=i||0,c}o(sD,"wrapProgram");function zmt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=oD(r.partials,t)):r.name==="@partial-block"?t=oD(r.data,"partial-block"):t=oD(r.partials,r.name),t}o(zmt,"resolvePartial");function $mt(t,e,r){var n=oD(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var i=void 0;if(r.fn&&r.fn!==$0e&&(function(){r.data=Ku.createFrame(r.data);var s=r.fn;i=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=Ku.createFrame(l.data),l.data["partial-block"]=n,s(c,l)},"partialBlockWrapper"),s.partials&&(r.partials=Ey.extend({},r.partials,s.partials))})(),t===void 0&&i&&(t=i),t===void 0)throw new Yu.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o($mt,"invokePartial");function $0e(){return""}o($0e,"noop");function oD(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(oD,"lookupOwnProperty");function jmt(t,e){return(!e||!("root"in e))&&(e=e?Ku.createFrame(e):{},e.root=t),e}o(jmt,"initData");function j0e(t,e,r,n,i,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],i,s,n),Ey.extend(e,a)}return e}o(j0e,"executeDecorators");function z0e(t,e,r){e&&Object.keys(e).forEach(function(n){var i=e[n];t[n]=Wmt(i,r)})}o(z0e,"addHelpers");function Wmt(t,e){var r=e.lookupProperty;return Gmt.wrapHelper(t,function(n){return n.lookupProperty=r,n})}o(Wmt,"passLookupPropertyOption")});var uj=A((aD,J0e)=>{"use strict";aD.__esModule=!0;aD.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}};J0e.exports=aD.default});var eIe=A((cD,Z0e)=>{"use strict";cD.__esModule=!0;function fj(t){return t&&t.__esModule?t:{default:t}}o(fj,"_interopRequireDefault");function hj(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(hj,"_interopRequireWildcard");var Jmt=nD(),Y0e=hj(Jmt),Ymt=q0e(),Kmt=fj(Ymt),Xmt=yo(),Zmt=fj(Xmt),egt=Zi(),dj=hj(egt),tgt=W0e Line truncated
`+this.lexer.showPosition()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":pe="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(pe,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:oe})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(v[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),B=null,Q?(B=Q,Q=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(J=this.productions_[v[1]][1],H.$=c[c.length-J],H._$={first_line:l[l.length-(J||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(J||1)].first_column,last_column:l[l.length-1].last_column},y&&(H._$.range=[l[l.length-(J||1)].range[0],l[l.length-1].range[1]]),R=this.performAction.call(H,d,h,f,this.yy,v[1],c,l),typeof R<"u")return R;J&&(a=a.slice(0,-1*J*2),c=c.slice(0,-1*J),l=l.slice(0,-1*J)),a.push(this.productions_[v[1]][0]),c.push(H.$),l.push(H._$),ee=u[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;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 u=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=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
Expecting `+oe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":pe="Parse error on line "+(f+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(pe,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:E,expected:oe})}}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(v[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(v[1]),B=null,Q?(B=Q,Q=null):(h=this.lexer.yyleng,d=this.lexer.yytext,f=this.lexer.yylineno,E=this.lexer.yylloc,p>0&&p--);break;case 2:if(W=this.productions_[v[1]][1],G.$=c[c.length-W],G._$={first_line:l[l.length-(W||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(W||1)].first_column,last_column:l[l.length-1].last_column},y&&(G._$.range=[l[l.length-(W||1)].range[0],l[l.length-1].range[1]]),R=this.performAction.call(G,d,h,f,this.yy,v[1],c,l),typeof R<"u")return R;W&&(a=a.slice(0,-1*W*2),c=c.slice(0,-1*W),l=l.slice(0,-1*W)),a.push(this.productions_[v[1]][0]),c.push(G.$),l.push(G._$),ee=u[a[a.length-2]][a[a.length-1]],a.push(ee);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:o(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:o(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.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),s},"input"),unput:o(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;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 u=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=[u[0],u[0]+this.yyleng-a]),this},"unput"),more:o(function(){return this._more=!0,this},"more"),less:o(function(s){this.unput(this.match.slice(s))},"less"),pastInput:o(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,l,u,d;this._more||(this.yytext="",this.match="");for(var f=this._currentRules(),h=0;h<f.length&&(c=this._input.match(this.rules[f[h]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=h,!this.options.flex)));h++);return a?(d=a[0].match(/(?:\r\n?|\n).*/g),d&&(this.yylineno+=d.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:d?d[d.length-1].length-d[d.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,f[l],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||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 s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"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(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(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:(u(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=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(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})();uD.default=tgt;nIe.exports=uD.default});var pD=A((hD,aIe)=>{"use strict";hD.__esModule=!0;function rgt(t){return t&&t.__esModule?t:{default:t}}o(rgt,"_interopRequireDefault");var ngt=yo(),pj=rgt(ngt);function dD(){this.parents=[]}o(dD,"Visitor");dD.prototype={constructor:dD,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!dD.prototype[n.type])throw new pj.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 pj.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 pj.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:fD,Decorator:fD,BlockStatement:sIe,DecoratorBlock:sIe,PartialStatement:oIe,PartialBlockStatement:o(function(e){oIe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:fD,PathExpression:o(function(){},"PathExpressionLine 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 jp(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 jp?e:(e=Oj(e,this,r),new jp(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(s){var a=Oj(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(Oj(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};ID.default=GIe;HIe.exports=ID.default});var JIe=A((wD,WIe)=>{"use strict";wD.__esModule=!0;function jIe(t){return t&&t.__esModule?t:{default:t}}o(jIe,"_interopRequireDefault");var zIe=nD(),eyt=yo(),Fj=jIe(eyt),tyt=Zi(),ryt=VIe(),$Ie=jIe(ryt);function By(t){this.value=t}o(By,"Literal");function xy(){}o(xy,"JavaScriptCompiler");xy.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=zIe.COMPILER_REVISION,r=zIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return tyt.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,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[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 Fj.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 s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:o(function(s){this.conditionStack.push(s)},"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(s){this.begin(s)},"begin")};return n.options={},n.performAction=o(function(s,a,c,l){function u(f,h){return a.yytext=a.yytext.substring(f,a.yyleng-h+f)}o(u,"strip");var d=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(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:(u(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=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(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})();uD.default=igt;nIe.exports=uD.default});var pD=A((hD,aIe)=>{"use strict";hD.__esModule=!0;function sgt(t){return t&&t.__esModule?t:{default:t}}o(sgt,"_interopRequireDefault");var ogt=yo(),Aj=sgt(ogt);function dD(){this.parents=[]}o(dD,"Visitor");dD.prototype={constructor:dD,mutating:!1,acceptKey:o(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!dD.prototype[n.type])throw new Aj.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 Aj.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 Aj.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:fD,Decorator:fD,BlockStatement:sIe,DecoratorBlock:sIe,PartialStatement:oIe,PartialBlockStatement:o(function(e){oIe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:fD,PathExpression:o(function(){},"PathExpressionLine 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 jp(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 jp?e:(e=Lj(e,this,r),new jp(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(s){var a=Lj(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var i=this.generateList(n);return i.prepend("{"),i.add("}"),i},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),n=0,i=e.length;n<i;n++)n&&r.add(","),r.add(Lj(e[n],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};ID.default=GIe;HIe.exports=ID.default});var JIe=A((wD,WIe)=>{"use strict";wD.__esModule=!0;function jIe(t){return t&&t.__esModule?t:{default:t}}o(jIe,"_interopRequireDefault");var zIe=nD(),nyt=yo(),Mj=jIe(nyt),iyt=Zi(),syt=VIe(),$Ie=jIe(syt);function By(t){this.value=t}o(By,"Literal");function xy(){}o(xy,"JavaScriptCompiler");xy.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=zIe.COMPILER_REVISION,r=zIe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,n){return iyt.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,i){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!i,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,l=void 0,u=void 0;for(l=0,u=s.length;l<u;l++)a=s[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 Mj.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;"),i?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 d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,g=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],g[l]&&(f[l+"_d"]=g[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new $Ie.default(this.options.srcName),this.decorators=new $Ie.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),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 d=this.createFunctionContext(i);if(this.isChild)return d;var f={compiler:this.compilerInfo(),main:d};this.decorators&&(f.main_d=this.decorators,f.useDecorators=!0);var h=this.context,p=h.programs,m=h.decorators;for(l=0,u=p.length;l<u;l++)f[l]=p[l],m[l]&&(f[l+"_d"]=m[l],f.useDecorators=!0);return this.environment.usePartial&&(f.usePartial=!0),this.options.data&&(f.useData=!0),this.useDepths&&(f.useDepths=!0),this.useBlockParams&&(f.useBlockParams=!0),this.options.compat&&(f.compat=!0),i?f.compilerOptions=this.options:(f.compiler=JSON.stringify(f.compiler),this.source.currentLocation={start:{line:1,column:0}},f=this.objectLiteral(f),r.srcName?(f=f.toStringWithSourceMap({file:r.destName}),f.map=f.map&&f.map.toString()):f=f.toString()),f},"compile"),preamble:o(function(){this.lastContext=0,this.source=new $Ie.default(this.options.srcName),this.decorators=new $Ie.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,n="",i=this.stackVars.concat(this.registers.list);i.length>0&&(n+=", "+i.join(", "));var s=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(n+=", alias"+ ++s+"="+l,u.children[0]="alias"+s)}),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,i=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(s?a.prepend("buffer += "):i=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(i?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(i?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -86,99 +86,99 @@ Expecting `+oe.join(", ")+", got '"+(this.terminals_[B]||B)+"'":pe="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 i=this.popStack();n.splice(1,0,i),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,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,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,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(nyt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"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"),i=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",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);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 i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Gr.prototype.BlockStatement=Gr.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};Gr.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+" }}")};Gr.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+" }}")};Gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Gr.prototype.NullLiteral=function(){return"NULL"};Gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var qj=A((V0r,rwe)=>{var xD=XIe().default,twe=ZIe();xD.PrintVisitor=twe.PrintVisitor;xD.print=twe.print;rwe.exports=xD;function ewe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=xD.compile(n)}o(ewe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ewe,require.extensions[".hbs"]=ewe)});var Awe=A(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.getProxyUrl=Iyt;RD.checkBypass=pwe;function Iyt(t){let e=t.protocol==="https:";if(pwe(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 TD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new TD(`http://${r}`)}else return}o(Iyt,"getProxyUrl");function pwe(t){if(!t.hostname)return!1;let e=t.hostname;if(wyt(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 i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(pwe,"checkBypass");function wyt(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(wyt,"isLoopbackAddress");var TD=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 gwe=A(br=>{"use strict";var Syt=br&&br.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Byt=br&&br.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PD=br&&br.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&Syt(r,e,n[i]);return Byt(r,e),r Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(KEt,"base64decode");Oy.base64decode=KEt;function XEt(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=nd[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=nd[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=nd[i|n>>6],e+=nd[n&63],r=0;break}return r&&(e+=nd[i],e+="=",r==1&&(e+="=")),e}o(XEt,"base64encode");Oy.base64encode=XEt});var BSe=A(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.utf8read=void 0;var b8=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function ZEt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(b8(n)),i=0);return r.length?(i&&r.push(b8(n.slice(0,i))),r.join("")):b8(n.slice(0,i))}o(ZEt,"utf8read");KD.utf8read=ZEt});var _w=A(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.WireType=xl.mergeBinaryOptions=xl.UnknownFieldHandler=void 0;var eCt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(eCt=xl.UnknownFieldHandler||(xl.UnknownFieldHandler={}));function tCt(t,e){return Object.assign(Object.assign({},t),e)}o(tCt,"mergeBinaryOptions");xl.mergeBinaryOptions=tCt;var rCt;(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"})(rCt=xl.WireType||(xl.WireType={}))});var ZD=A(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.varint32read=ks.varint32write=ks.int64toString=ks.int64fromString=ks.varint64write=ks.varint64read=void 0;function nCt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&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 i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(nCt,"varint64read");ks.varint64read=nCt;function iCt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,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,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(iCt,"varint64write");ks.varint64write=iCt;var XD=65536*65536;function sCt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=XD&&(i=i+(n/XD|0),n=n%XD)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(sCt,"int64fromString");ks.int64fromString=sCt;function oCt(t,e){if(e>>>0<=2097151)return""+(XD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(oCt,"int64toString");ks.int64toString=oCt;function aCt(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(aCt,"varint32write");ks.varint32write=aCt;function cCt(){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(cCt,"varint32read");ks.varint32read=cCt});var Df=A(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.PbLong=Rf.PbULong=Rf.detectBi=void 0;var Tw=ZD(),Wt;function xSe(){let t=new DataView(new ArrayBuffer(8));Wt=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("922337203685477580 Line truncated
`)}};xQ.RpcError=a6});var l6=A(NQ=>{"use strict";Object.defineProperty(NQ,"__esModule",{value:!0});NQ.mergeRpcOptions=void 0;var aBe=ar();function Tbt(t,e){if(!e)return t;let r={};vQ(t,r),vQ(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=aBe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=aBe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},vQ(t.meta,r.meta),vQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Tbt,"mergeRpcOptions");NQ.mergeRpcOptions=Tbt;function vQ(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(vQ,"copy")});var d6=A(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.Deferred=eA.DeferredState=void 0;var Ql;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ql=eA.DeferredState||(eA.DeferredState={}));var u6=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ql.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!==Ql.PENDING)throw new Error(`cannot resolve ${Ql[this.state].toLowerCase()}`);this._resolve(e),this._state=Ql.RESOLVED}reject(e){if(this.state!==Ql.PENDING)throw new Error(`cannot reject ${Ql[this.state].toLowerCase()}`);this._reject(e),this._state=Ql.REJECTED}resolvePending(e){this._state===Ql.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ql.PENDING&&this.reject(e)}};eA.Deferred=u6});var h6=A(_Q=>{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.RpcOutputStreamController=void 0;var cBe=d6(),tA=ar(),f6=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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){tA.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){tA.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){tA.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(){tA.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;tA.assert(e,"bad state"),tA.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 cBe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let n=r.p;tA.assert(n.state==cBe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_Q.RpcOutputStreamController=f6});var A6=A(zy=>{"use strict";var Rbt=zy&&zy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(zy,"__esModule",{value:!0});zy.UnaryCall=void 0;var p6=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,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 Rbt(this,void 0,void 0,function*(){let[e,r,n,i]=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:i}})}};zy.UnaryCall=p6});var g6=A($y=>{"use strict";var Dbt=$y&&$y.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c, 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 i=this.popStack();n.splice(1,0,i),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,i){var s=0;!i&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,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,i,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(oyt(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(f){var h=a.nameLookup(f,r[d],e);return i?[" && ",h]:[" != null ? ",h," : ",f]})},"_loop"),u=n;u<c;u++)l(u)},"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"),i=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",i])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,n){var i=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(i),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],l=this.source.functionCall(c,"call",s.callParams);this.push(l)},"invokeHelper"),itemsSeparatedBy:o(function(e,r){var n=[];n.push(e[0]);for(var i=1;i<e.length;i++)n.push(r,e[i]);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 i=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,i.paramsInit?["),(",i.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};Gr.prototype.Program=function(t){var e="",r=t.body,n=void 0,i=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,i=t.blockParams.length;n<i;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,i=r.length;n<i;n++)e+=this.accept(r[n]);return this.padding--,e};Gr.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Gr.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Gr.prototype.BlockStatement=Gr.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};Gr.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+" }}")};Gr.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+" }}")};Gr.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Gr.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Gr.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,i=0,s=e.length;i<s;i++)r.push(this.accept(e[i]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};Gr.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Gr.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Gr.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Gr.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Gr.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Gr.prototype.NullLiteral=function(){return"NULL"};Gr.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};Gr.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Gj=A((j0r,rwe)=>{var xD=XIe().default,twe=ZIe();xD.PrintVisitor=twe.PrintVisitor;xD.print=twe.print;rwe.exports=xD;function ewe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=xD.compile(n)}o(ewe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ewe,require.extensions[".hbs"]=ewe)});var Awe=A(RD=>{"use strict";Object.defineProperty(RD,"__esModule",{value:!0});RD.getProxyUrl=Byt;RD.checkBypass=pwe;function Byt(t){let e=t.protocol==="https:";if(pwe(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 TD(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new TD(`http://${r}`)}else return}o(Byt,"getProxyUrl");function pwe(t){if(!t.hostname)return!1;let e=t.hostname;if(xyt(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 i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(pwe,"checkBypass");function xyt(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(xyt,"isLoopbackAddress");var TD=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 gwe=A(br=>{"use strict";var vyt=br&&br.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Nyt=br&&br.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),PD=br&&br.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&vyt(r,e,n[i]);return Nyt(r,e),r Line truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(i){case 0:a=s,i=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,i=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,i=3;break;case 3:r[n++]=(a&3)<<6|s,i=0;break}}if(i==1)throw Error("invalid base64 string.");return r.subarray(0,n)}o(eCt,"base64decode");Oy.base64decode=eCt;function tCt(t){let e="",r=0,n,i=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=nd[n>>2],i=(n&3)<<4,r=1;break;case 1:e+=nd[i|n>>4],i=(n&15)<<2,r=2;break;case 2:e+=nd[i|n>>6],e+=nd[n&63],r=0;break}return r&&(e+=nd[i],e+="=",r==1&&(e+="=")),e}o(tCt,"base64encode");Oy.base64encode=tCt});var BSe=A(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.utf8read=void 0;var I8=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function rCt(t){if(t.length<1)return"";let e=0,r=[],n=[],i=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[i++]=s:s>191&&s<224?n[i++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[i++]=55296+(s>>10),n[i++]=56320+(s&1023)):n[i++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,i>8191&&(r.push(I8(n)),i=0);return r.length?(i&&r.push(I8(n.slice(0,i))),r.join("")):I8(n.slice(0,i))}o(rCt,"utf8read");KD.utf8read=rCt});var _w=A(xl=>{"use strict";Object.defineProperty(xl,"__esModule",{value:!0});xl.WireType=xl.mergeBinaryOptions=xl.UnknownFieldHandler=void 0;var nCt;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,i,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:i,wireType:s,data:a})},t.onWrite=(r,n,i)=>{for(let{no:s,wireType:a,data:c}of t.list(n))i.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let i=r[t.symbol];return n?i.filter(s=>s.no==n):i}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(nCt=xl.UnknownFieldHandler||(xl.UnknownFieldHandler={}));function iCt(t,e){return Object.assign(Object.assign({},t),e)}o(iCt,"mergeBinaryOptions");xl.mergeBinaryOptions=iCt;var sCt;(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"})(sCt=xl.WireType||(xl.WireType={}))});var ZD=A(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});ks.varint32read=ks.varint32write=ks.int64toString=ks.int64fromString=ks.varint64write=ks.varint64read=void 0;function oCt(){let t=0,e=0;for(let n=0;n<28;n+=7){let i=this.buf[this.pos++];if(t|=(i&127)<<n,(i&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 i=this.buf[this.pos++];if(e|=(i&127)<<n,(i&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(oCt,"varint64read");ks.varint64read=oCt;function aCt(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,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,i=e>>3!=0;if(r.push((i?n|128:n)&255),!!i){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),l=(c?a|128:a)&255;if(r.push(l),!c)return}r.push(e>>>31&1)}}o(aCt,"varint64write");ks.varint64write=aCt;var XD=65536*65536;function cCt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,i=0;function s(a,c){let l=Number(t.slice(a,c));i*=r,n=n*r+l,n>=XD&&(i=i+(n/XD|0),n=n%XD)}return o(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,i]}o(cCt,"int64fromString");ks.int64fromString=cCt;function lCt(t,e){if(e>>>0<=2097151)return""+(XD*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,i=e>>16&65535,s=r+n*6777216+i*6710656,a=n+i*8147497,c=i*2,l=1e7;s>=l&&(a+=Math.floor(s/l),s%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(d,f){let h=d?String(d):"";return f?"0000000".slice(h.length)+h:h}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(s,1)}o(lCt,"int64toString");ks.int64toString=lCt;function uCt(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(uCt,"varint32write");ks.varint32write=uCt;function dCt(){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(dCt,"varint32read");ks.varint32read=dCt});var Df=A(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});Rf.PbLong=Rf.PbULong=Rf.detectBi=void 0;var Tw=ZD(),Wt;function xSe(){let t=new DataView(new ArrayBuffer(8));Wt=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("922337203685477580 Line truncated
`)}};xQ.RpcError=c6});var u6=A(NQ=>{"use strict";Object.defineProperty(NQ,"__esModule",{value:!0});NQ.mergeRpcOptions=void 0;var aBe=ar();function Qbt(t,e){if(!e)return t;let r={};vQ(t,r),vQ(e,r);for(let n of Object.keys(e)){let i=e[n];switch(n){case"jsonOptions":r.jsonOptions=aBe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=aBe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},vQ(t.meta,r.meta),vQ(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(i):i.concat();break}}return r}o(Qbt,"mergeRpcOptions");NQ.mergeRpcOptions=Qbt;function vQ(t,e){if(!t)return;let r=e;for(let[n,i]of Object.entries(t))i instanceof Date?r[n]=new Date(i.getTime()):Array.isArray(i)?r[n]=i.concat():r[n]=i}o(vQ,"copy")});var f6=A(eA=>{"use strict";Object.defineProperty(eA,"__esModule",{value:!0});eA.Deferred=eA.DeferredState=void 0;var Ql;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ql=eA.DeferredState||(eA.DeferredState={}));var d6=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Ql.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!==Ql.PENDING)throw new Error(`cannot resolve ${Ql[this.state].toLowerCase()}`);this._resolve(e),this._state=Ql.RESOLVED}reject(e){if(this.state!==Ql.PENDING)throw new Error(`cannot reject ${Ql[this.state].toLowerCase()}`);this._reject(e),this._state=Ql.REJECTED}resolvePending(e){this._state===Ql.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ql.PENDING&&this.reject(e)}};eA.Deferred=d6});var p6=A(_Q=>{"use strict";Object.defineProperty(_Q,"__esModule",{value:!0});_Q.RpcOutputStreamController=void 0;var cBe=f6(),tA=ar(),h6=class{static{o(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1}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){tA.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){tA.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){tA.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(){tA.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._itState||(this._itState={q:[]}),this._closed===!0?this.pushIt({value:null,done:!0}):this._closed!==!1&&this.pushIt(this._closed),{next:o(()=>{let e=this._itState;tA.assert(e,"bad state"),tA.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 cBe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r)if(r.p){let n=r.p;tA.assert(n.state==cBe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_Q.RpcOutputStreamController=h6});var m6=A(zy=>{"use strict";var kbt=zy&&zy.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};Object.defineProperty(zy,"__esModule",{value:!0});zy.UnaryCall=void 0;var A6=class{static{o(this,"UnaryCall")}constructor(e,r,n,i,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=i,this.response=s,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 kbt(this,void 0,void 0,function*(){let[e,r,n,i]=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:i}})}};zy.UnaryCall=A6});var y6=A($y=>{"use strict";var Pbt=$y&&$y.__awaiter||function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c, Line truncated
globstar while`,e,f,r,h,p),this.matchOne(e.slice(f),r.slice(h),n))return this.debug("globstar found match!",f,c,p),!0;if(p==="."||p===".."||!i.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,f,r,h);break}this.debug("globstar swallow a segment, and continue"),f++}return!!(n&&(this.debug(`
>>> no match, partial?`,e,f,r,h),f===c))}var g;if(typeof u=="string"?(g=d===u,this.debug("string match",u,d,g)):(g=d.match(u),this.debug("pattern match",u,d,g)),!g)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return VBe(this.pattern,this.options)}parse(e,r){PQ(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return fc;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,g,m,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),I=o(v=>v.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=X6,s=!0;break;case"?":i+=tW,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let v=0,$;v<e.length&&($=e.charAt(v));v++){if(this.debug("%s %s %s %j",e,v,i,$),a){if($==="/")return!1;qBe[$]&&(i+="\\"),i+=$,a=!1;continue}switch($){case"/":return!1;case"\\":if(d&&e.charAt(v+1)==="-"){i+=$;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,v,i,$),d){this.debug(" in class"),$==="!"&&v===h+1&&($="^"),i+=$;continue}this.debug("call clearStateChar %j",u),B(),u=$,n.noext&&B();continue;case"(":{if(d){i+="(";continue}if(!u){i+="\\(";continue}let R={type:u,start:v-1,reStart:i.length,open:UBe[u].open,close:UBe[u].close};this.debug(this.pattern," ",R),c.push(R),i+=R.open,R.start===0&&R.type!=="!"&&(E=!0,i+=I(e.slice(v+1))),this.debug("plType %j %j",u,i),u=!1;continue}case")":{let R=c[c.length-1];if(d||!R){i+="\\)";continue}c.pop(),B(),s=!0,g=R,i+=g.close,g.type==="!"&&l.push(Object.assign(g,{reEnd:i.length}));continue}case"|":{let R=c[c.length-1];if(d||!R){i+="\\|";continue}B(),i+="|",R.start===0&&R.type!=="!"&&(E=!0,i+=I(e.slice(v+1)));continue}case"[":if(B(),d){i+="\\"+$;continue}d=!0,h=v,f=i.length,i+=$;continue;case"]":if(v===h+1||!d){i+="\\"+$;continue}p=e.substring(h+1,v);try{RegExp("["+b0t(E0t(p))+"]"),i+=$}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),qBe[$]&&!($==="^"&&d)&&(i+="\\"),i+=$;break}}for(d&&(p=e.slice(h+1),m=this.parse(p,Z6),i=i.substring(0,f)+"\\["+m[0],s=s||m[1]),g=c.pop();g;g=c.pop()){let v;v=i.slice(g.reStart+g.open.length),this.debug("setting tail",i,g),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(R,H,V)=>(V||(V="\\"),H+H+V+"|")),this.debug(`tail=%j
%s`,v,v,g,i);let $=g.type==="*"?X6:g.type==="?"?tW:"\\"+g.type;s=!0,i=i.slice(0,g.reStart)+$+"\\("+v}B(),a&&(i+="\\\\");let Q=m0t[i.charAt(0)];for(let v=l.length-1;v>-1;v--){let $=l[v],R=i.slice(0,$.reStart),H=i.slice($.reStart,$.reEnd-8),V=i.slice($.reEnd),J=i.slice($.reEnd-8,$.reEnd)+V,ee=R.split(")").length,oe=R.split("(").length-ee,pe=V;for(let z=0;z<oe;z++)pe=pe.replace(/\)[+*?]?/,"");V=pe;let Y=V===""&&r!==Z6?"(?:$|\\/)":"";i=R+H+V+Y+J}if(i!==""&&s&&(i="(?=.)"+i),Q&&(i=C()+i),r===Z6)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return y0t(e);let M=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",M),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?X6:r.dot?p0t:A0t,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?C0t(c):c===fc?fc:c._src).reduce((c,l)=>(c[c.length-1]===fc&&l===fc||c.push(l),c),[]),a.forEach((c,l)=>{c!==fc||a[l-1]===fc||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=fc))}),a.filter(c=>c!==fc).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;eW.sep!=="/"&&(e=e.split(eW.sep).join("/")),e=e.split(GBe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<i.length;a++){let c=i[a],l=e;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return wo.defaults(e).Minimatch}};wo.Minimatch=tE});var YBe=A((Zvr,JBe)=>{JBe.exports=WBe;var iW=require("fs"),{EventEmitter:I0t}=require("events"),{Minimatch:nW}=zBe(),{resolve:w0t}=require("path");function S0t(t,e){return new Promise((r,n)=>{iW.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(S0t,"readdir");function $Be(t,e){return new Promise((r,n)=>{(e?iW.stat:iW.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?$Be(t,!1):null):r(null):r(a)})})}o($Be,"stat");async function*jBe(t,e,r,n,i,s){let a=await S0t(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await $Be(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*jBe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(jBe,"exploreWalkAsync");async function*B0t(t,e,r,n){yield*jBe("",t,e,r,n,!0)}o(B0t,"explore");function x0t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(x0t,"readOptions");var OQ=class extends I0t{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=x0t(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new nW(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new nW(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new nW(s,{dot:!0}))}this.iterator=B0t(w0t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,abs Line truncated
>>> no match, partial?`,e,f,r,h),f===c))}var m;if(typeof u=="string"?(m=d===u,this.debug("string match",u,d,m)):(m=d.match(u),this.debug("pattern match",u,d,m)),!m)return!1}if(s===c&&a===l)return!0;if(s===c)return n;if(a===l)return s===c-1&&e[s]==="";throw new Error("wtf?")}braceExpand(){return VBe(this.pattern,this.options)}parse(e,r){PQ(e);let n=this.options;if(e==="**")if(n.noglobstar)e="*";else return fc;if(e==="")return"";let i="",s=!1,a=!1,c=[],l=[],u,d=!1,f=-1,h=-1,p,m,g,E=e.charAt(0)===".",y=n.dot||E,C=o(()=>E?"":y?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","patternStart"),I=o(v=>v.charAt(0)==="."?"":n.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)","subPatternStart"),B=o(()=>{if(u){switch(u){case"*":i+=Z6,s=!0;break;case"?":i+=rW,s=!0;break;default:i+="\\"+u;break}this.debug("clearStateChar %j %j",u,i),u=!1}},"clearStateChar");for(let v=0,j;v<e.length&&(j=e.charAt(v));v++){if(this.debug("%s %s %s %j",e,v,i,j),a){if(j==="/")return!1;qBe[j]&&(i+="\\"),i+=j,a=!1;continue}switch(j){case"/":return!1;case"\\":if(d&&e.charAt(v+1)==="-"){i+=j;continue}B(),a=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",e,v,i,j),d){this.debug(" in class"),j==="!"&&v===h+1&&(j="^"),i+=j;continue}this.debug("call clearStateChar %j",u),B(),u=j,n.noext&&B();continue;case"(":{if(d){i+="(";continue}if(!u){i+="\\(";continue}let R={type:u,start:v-1,reStart:i.length,open:UBe[u].open,close:UBe[u].close};this.debug(this.pattern," ",R),c.push(R),i+=R.open,R.start===0&&R.type!=="!"&&(E=!0,i+=I(e.slice(v+1))),this.debug("plType %j %j",u,i),u=!1;continue}case")":{let R=c[c.length-1];if(d||!R){i+="\\)";continue}c.pop(),B(),s=!0,m=R,i+=m.close,m.type==="!"&&l.push(Object.assign(m,{reEnd:i.length}));continue}case"|":{let R=c[c.length-1];if(d||!R){i+="\\|";continue}B(),i+="|",R.start===0&&R.type!=="!"&&(E=!0,i+=I(e.slice(v+1)));continue}case"[":if(B(),d){i+="\\"+j;continue}d=!0,h=v,f=i.length,i+=j;continue;case"]":if(v===h+1||!d){i+="\\"+j;continue}p=e.substring(h+1,v);try{RegExp("["+S0t(I0t(p))+"]"),i+=j}catch{i=i.substring(0,f)+"(?:$.)"}s=!0,d=!1;continue;default:B(),qBe[j]&&!(j==="^"&&d)&&(i+="\\"),i+=j;break}}for(d&&(p=e.slice(h+1),g=this.parse(p,eW),i=i.substring(0,f)+"\\["+g[0],s=s||g[1]),m=c.pop();m;m=c.pop()){let v;v=i.slice(m.reStart+m.open.length),this.debug("setting tail",i,m),v=v.replace(/((?:\\{2}){0,64})(\\?)\|/g,(R,G,H)=>(H||(H="\\"),G+G+H+"|")),this.debug(`tail=%j
%s`,v,v,m,i);let j=m.type==="*"?Z6:m.type==="?"?rW:"\\"+m.type;s=!0,i=i.slice(0,m.reStart)+j+"\\("+v}B(),a&&(i+="\\\\");let Q=E0t[i.charAt(0)];for(let v=l.length-1;v>-1;v--){let j=l[v],R=i.slice(0,j.reStart),G=i.slice(j.reStart,j.reEnd-8),H=i.slice(j.reEnd),W=i.slice(j.reEnd-8,j.reEnd)+H,ee=R.split(")").length,oe=R.split("(").length-ee,pe=H;for(let z=0;z<oe;z++)pe=pe.replace(/\)[+*?]?/,"");H=pe;let Y=H===""&&r!==eW?"(?:$|\\/)":"";i=R+G+H+Y+W}if(i!==""&&s&&(i="(?=.)"+i),Q&&(i=C()+i),r===eW)return[i,s];if(n.nocase&&!s&&(s=e.toUpperCase()!==e.toLowerCase()),!s)return b0t(e);let M=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+i+"$",M),{_glob:e,_src:i})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?Z6:r.dot?g0t:y0t,i=r.nocase?"i":"",s=e.map(a=>(a=a.map(c=>typeof c=="string"?w0t(c):c===fc?fc:c._src).reduce((c,l)=>(c[c.length-1]===fc&&l===fc||c.push(l),c),[]),a.forEach((c,l)=>{c!==fc||a[l-1]===fc||(l===0?a.length>1?a[l+1]="(?:\\/|"+n+"\\/)?"+a[l+1]:a[l]=n:l===a.length-1?a[l-1]+="(?:\\/|"+n+")?":(a[l-1]+="(?:\\/|\\/"+n+"\\/)"+a[l+1],a[l+1]=fc))}),a.filter(c=>c!==fc).join("/"))).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,i)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;tW.sep!=="/"&&(e=e.split(tW.sep).join("/")),e=e.split(GBe),this.debug(this.pattern,"split",e);let i=this.set;this.debug(this.pattern,"set",i);let s;for(let a=e.length-1;a>=0&&(s=e[a],!s);a--);for(let a=0;a<i.length;a++){let c=i[a],l=e;if(n.matchBase&&c.length===1&&(l=[s]),this.matchOne(l,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return wo.defaults(e).Minimatch}};wo.Minimatch=tE});var YBe=A((rNr,JBe)=>{JBe.exports=WBe;var sW=require("fs"),{EventEmitter:B0t}=require("events"),{Minimatch:iW}=zBe(),{resolve:x0t}=require("path");function v0t(t,e){return new Promise((r,n)=>{sW.readdir(t,{withFileTypes:!0},(i,s)=>{if(i)switch(i.code){case"ENOTDIR":e?n(i):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(i);break}else r(s)})})}o(v0t,"readdir");function $Be(t,e){return new Promise((r,n)=>{(e?sW.stat:sW.lstat)(t,(s,a)=>{s?s.code==="ENOENT"?r(e?$Be(t,!1):null):r(null):r(a)})})}o($Be,"stat");async function*jBe(t,e,r,n,i,s){let a=await v0t(e+t,s);for(let c of a){let l=c.name;l===void 0&&(l=c,n=!0);let u=t+"/"+l,d=u.slice(1),f=e+"/"+d,h=null;(n||r)&&(h=await $Be(f,r)),!h&&c.name!==void 0&&(h=c),h===null&&(h={isDirectory:o(()=>!1,"isDirectory")}),h.isDirectory()?i(d)||(yield{relative:d,absolute:f,stats:h},yield*jBe(u,e,r,n,i,!1)):yield{relative:d,absolute:f,stats:h}}}o(jBe,"exploreWalkAsync");async function*N0t(t,e,r,n){yield*jBe("",t,e,r,n,!0)}o(N0t,"explore");function _0t(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}o(_0t,"readOptions");var OQ=class extends B0t{static{o(this,"ReaddirGlob")}constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=_0t(r||{}),this.matchers=[],this.options.pattern){let i=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=i.map(s=>new iW(s,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let i=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=i.map(s=>new iW(s,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let i=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=i.map(s=>new iW(s,{dot:!0}))}this.iterator=N0t(x0t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",i=>this._matches.push(this.options.absolute?i.absolute:i.relative)),this.on("error",i=>n(i)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(i=>i.match(n)))&&!this.ignoreMatchers.some(i=>i.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,i=e.value.absolute;this.options.mark&&r&&(n+="/",i+="/"),this.options.stat?this.emit("match",{relative:n,absolute:i,stat:e.value.stats}):this.emit("match",{relative:n,abs Line truncated
`,S);S=k===-1?w.length:k}else if(T!==-1&&w[S]==="/"&&w[S+1]==="*"){let k=w.indexOf("*/",S);k!==-1?(S=k+2,T=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}o(GC,"stripComments");function jB(w){let b=GC(w.toString()),S=b.match(Dd);if(S||(S=b.match(du)),!S)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,T]=S;return T.replace(/\s/g,"").split($B).map(k=>k.replace(qC,"").trim())}o(jB,"parseParams");function tm(w,b){var S={};return Object.keys(w).forEach(T=>{var k=w[T],L,U=p(k),G=!U&&k.length===1||U&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[T]=L.concat(L.length>0?W:k);else if(G)S[T]=k;else{if(L=jB(k),k.length===0&&!U&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");U||L.pop(),S[T]=L.concat(W)}function W(we,bt){var Rt=L.map(St=>we[St]);Rt.push(bt),E(k)(...Rt)}o(W,"newTask")}),Rd(S,b)}o(tm,"autoInject");class WB{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):HC(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):HC(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:T}=S;b(S)&&this.removeLink(S),S=T}return this}}function HC(w,b){w.length=1,w.head=w.tail=b}o(HC,"setInitial");function rm(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var T=E(w),k=0,L=[];let U={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function G(ke,be){U[ke].push(be)}o(G,"on");function W(ke,be){let Pe=o((...Bt)=>{we(ke,Pe),be(...Bt)},"handleAndRemove");U[ke].push(Pe)}o(W,"once");function we(ke,be){if(!ke)return Object.keys(U).forEach(Pe=>U[Pe]=[]);if(!be)return U[ke]=[];U[ke]=U[ke].filter(Pe=>Pe!==be)}o(we,"off");function bt(ke,...be){U[ke].forEach(Pe=>Pe(...be))}o(bt,"trigger");var Rt=!1;function St(ke,be,Pe,Bt){if(Bt!=null&&typeof Bt!="function")throw new Error("task callback must be a function");Dt.started=!0;var pr,Fn;function Ro(xh,...YC){if(xh)return Pe?Fn(xh):pr();if(YC.length<=1)return pr(YC[0]);pr(YC)}o(Ro,"promiseCallback");var om=Dt._createTaskItem(ke,Pe?Ro:Bt||Ro);if(be?Dt._tasks.unshift(om):Dt._tasks.push(om),Rt||(Rt=!0,u(()=>{Rt=!1,Dt.process()})),Pe||!Bt)return new Promise((xh,YC)=>{pr=xh,Fn=YC})}o(St,"_insert");function To(ke){return function(be,...Pe){k-=1;for(var Bt=0,pr=ke.length;Bt<pr;Bt++){var Fn=ke[Bt],Ro=L.indexOf(Fn);Ro===0?L.shift():Ro>0&&L.splice(Ro,1),Fn.callback(be,...Pe),be!=null&&bt("error",be,Fn.data)}k<=Dt.concurrency-Dt.buffer&&bt("unsaturated"),Dt.idle()&&bt("drain"),Dt.process()}}o(To,"_createCB");function sm(ke){return ke.length===0&&Dt.idle()?(u(()=>bt("drain")),!0):!1}o(sm,"_maybeDrain");let Bh=o(ke=>be=>{if(!be)return new Promise((Pe,Bt)=>{W(ke,(pr,Fn)=>{if(pr)return Bt(pr);Pe(Fn)})});we(ke),G(ke,be)},"eventMethod");var JC=!1,Dt={_tasks:new WB,_createTaskItem(ke,be){return{data:ke,callback:be}},*[Symbol.iterator](){yield*Dt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!1,!1,be)):St(ke,!1,!1,be)},pushAsync(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!1,!0,be)):St(ke,!1,!0,be)},kill(){we(),Dt._tasks.empty()},unshift(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!0,!1,be)):St(ke,!0,!1,be)},unshiftAsync(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!0,!0,be)):St(ke,!0,!0,be)},remove(ke){Dt._tasks.remove(ke)},process(){if(!JC){for(JC=!0;!Dt.paused&&k<Dt.concurrency&&Dt._tasks.length;){var ke=[],be=[],Pe=Dt._tasks.length;Dt.payload&&(Pe=Math.min(Pe,Dt.payload));for(var Bt=0;Bt<Pe;Bt++){var pr=Dt._tasks.shift();ke.push(pr),L.push(pr),be.push(pr.data)}k+=1,Dt._tasks.length===0&&bt("empty"),k===Dt.concurrency&&bt("saturated");var Fn=ee(To(ke));T(be,Fn)}JC=!1}},length(){return Dt._tasks.length},running(){return k},workersList(){return L},idle(){return Dt._tasks.length+k===0},pause(){Dt.paused=!0},resume(){Dt.paused!==!1&&(Dt.paused=!1,u(Dt.process))}};return Object.defineProperties(Dt,{saturated:{writable:!1,value:Bh("saturated")},unsaturated:{writable:!1,value:Bh("unsaturated")},empty:{writable:!1,value:Bh("empty")},drain:{writable:!1,value:Bh("drain")},error:{writable:!1,value:Bh("error")}}),Dt}o(rm,"queue$1");function nm(w,b){return rm(w,1,b)}o(nm,"cargo$1");function Hs(w,b,S){return rm(w,b,S)}o(Hs,"cargo");function JB(w,b,S,T){T=v(T);var k=E(S);return Wr(w,(L,U,G)=>{k(b,L,(W,we)=>{b=we,G(W)})},L=>T(L,b))}o(JB,"reduce");var Oa=y(JB,4);function VC(...w){var b=w.map(E);return function(...S){var T=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=Pa(),Oa(b,S,(L,U,G)=>{U.apply(T,L.concat((W,...we)=>{G(W,we)}))},(L,U)=>k(L,...U)),k[hs]}}o(VC,"seq");function Ce(...w){return VC(...w.revers Line truncated
GFS4: `),console.error(t)},"debug"));Nr[Ai]||(oxe=global[Ai]||[],cxe(Nr,oxe),Nr.close=(function(t){function e(r,n){return t.call(Nr,r,function(i){i||axe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,qQ,{value:t}),e})(Nr.close),Nr.closeSync=(function(t){function e(r){t.apply(Nr,arguments),axe()}return o(e,"closeSync"),Object.defineProperty(e,qQ,{value:t}),e})(Nr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){nA(Nr[Ai]),require("assert").equal(Nr[Ai].length,0)}));var oxe;global[Ai]||cxe(global,Nr[Ai]);cW.exports=oW(P0t(Nr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nr.__patched&&(cW.exports=oW(Nr),Nr.__patched=!0);function oW(t){Q0t(t),t.gracefulify=oW,t.createReadStream=Q,t.createWriteStream=M;var e=t.readFile;t.readFile=r;function r(R,H,V){return typeof H=="function"&&(V=H,H=null),J(R,H,V);function J(ee,oe,pe,Y){return e(ee,oe,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?rE([J,[ee,oe,pe],z,Y||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}o(J,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(R,H,V,J){return typeof V=="function"&&(J=V,V=null),ee(R,H,V,J);function ee(oe,pe,Y,z,Ie){return n(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(R,H,V,J){return typeof V=="function"&&(J=V,V=null),ee(R,H,V,J);function ee(oe,pe,Y,z,Ie){return s(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(R,H,V,J){return typeof V=="function"&&(J=V,V=0),ee(R,H,V,J);function ee(oe,pe,Y,z,Ie){return c(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(R,H,V){typeof H=="function"&&(V=H,H=null);var J=d.test(process.version)?o(function(pe,Y,z,Ie){return u(pe,ee(pe,Y,z,Ie))},"go$readdir"):o(function(pe,Y,z,Ie){return u(pe,Y,ee(pe,Y,z,Ie))},"go$readdir");return J(R,H,V);function ee(oe,pe,Y,z){return function(Ie,Se){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?rE([J,[oe,pe,Y],Ie,z||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof Y=="function"&&Y.call(this,Ie,Se))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=k0t(t);y=h.ReadStream,I=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var g=t.WriteStream;g&&(I.prototype=Object.create(g.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(R){y=R},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return I},"get"),set:o(function(R){I=R},"set"),enumerable:!0,configurable:!0});var m=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return m},"get"),set:o(function(R){m=R},"set"),enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(R){E=R},"set"),enumerable:!0,configurable:!0});function y(R,H){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var R=this;$(R.path,R.flags,R.mode,function(H,V){H?(R.autoClose&&R.destroy(),R.emit("error",H)):(R.fd=V,R.emit("open",V),R.read())})}o(C,"ReadStream$open");function I(R,H){return this instanceof I?(g.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}o(I,"WriteStream");function B(){var R=this;$(R.path,R.flags,R.mode,function(H,V){H?(R.destroy(),R.emit("error",H)):(R.fd=V,R.emit("open",V))})}o(B,"WriteStream$open");function Q(R,H){return new t.ReadStream(R,H)}o(Q,"createReadStream");function M(R,H){return new t.WriteStream(R,H)}o(M,"createWriteStream");var v=t.open;t.open=$;function $(R,H,V,J){return typeof V=="function"&&(J=V,V=null),ee(R,H,V,J);function ee(oe,pe,Y,z,Ie){return v(oe,pe,Y,function(Se,st){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$open")}return o($,"open"),t}o(oW,"patch");function rE(t){nA("ENQUEUE",t[0].name,t[1]),Nr[Ai].push(t),aW()}o(rE,"enqueue");var UQ;function axe(){for(var t=Date.now(),e=0;e<Nr[Ai].length;++e)Nr[Ai][e].length>2&&(Nr[Ai][e][3]=t,Nr[Ai][e][4]=t);aW()}o(axe,"resetQueue");function aW(){if(clearTimeout(UQ),UQ=void 0,Nr[Ai].length!==0){var t=Nr[Ai].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)nA("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){nA("TIMEOUT",e.name,r);var a=r.pop();typeof Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};WW.exports={AggregateError:jW,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof yxt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Ext,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);t_e(e,"signal"),Cxt(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[pxt]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[Axt](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:mxt.any||o(function(e){if(e.length===1)return e[0];let r=new gxt,n=o(()=>r.abort(),"abort");return e.forEach(i=>{t_e(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};WW.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var is=A((mTr,i_e)=>{"use strict";var{format:bxt,inspect:u1,AggregateError:Ixt}=_i(),wxt=globalThis.AggregateError||Ixt,Sxt=Symbol("kIsNodeError"),Bxt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],xxt=/^([A-Z][a-z0-9]*)+$/,vxt="__node_internal_",d1={};function oA(t,e){if(!t)throw new d1.ERR_INTERNAL_ASSERTION(e)}o(oA,"assert");function r_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(r_e,"addNumericalSeparator");function Nxt(t,e,r){if(typeof e=="function")return oA(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return oA(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:bxt(e,...r)}o(Nxt,"getMessage");function gi(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(Nxt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[Sxt]=!0,d1[t]=n}o(gi,"E");function n_e(t){let e=vxt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(n_e,"hideStackFrames");function _xt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new wxt([e,t],e.message);return r.code=e.code,r}return t||e}o(_xt,"aggregateTwoErrors");var JW=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new d1.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};gi("ERR_ASSERTION","%s",Error);gi("ERR_INVALID_ARG_TYPE",(t,e,r)=>{oA(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)oA(typeof l=="string","All expected entries have to be of type string"),Bxt.includes(l)?i.push(l.toLowerCase()):xxt.test(l)?s.push(l):(oA(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+Line truncated
`)),e.linkname&&(r+=BY(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=BY(" "+i+"="+n[i]+`
`);return _t.from(r)},"encodePax");zE.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(_t.toString(e.subarray(0,n)),10);if(!i)return r;let s=_t.toString(e.subarray(n+1,i-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(i)}return r},"decodePax");zE.encode=o(function(e){let r=_t.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),_t.byteLength(n)!==n.length)return null;for(;_t.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return _t.byteLength(n)>100||_t.byteLength(i)>155||e.linkname&&_t.byteLength(e.linkname)>100?null:(_t.write(r,n),_t.write(r,Xf(e.mode&zPt,6),100),_t.write(r,Xf(e.uid,6),108),_t.write(r,Xf(e.gid,6),116),XPt(e.size,r,124),_t.write(r,Xf(e.mtime.getTime()/1e3|0,11),136),r[156]=qk+YPt(e.type),e.linkname&&_t.write(r,e.linkname,157),_t.copy(nke,r,sB),_t.copy(GPt,r,xY),e.uname&&_t.write(r,e.uname,265),e.gname&&_t.write(r,e.gname,297),_t.write(r,Xf(e.devmajor||0,6),329),_t.write(r,Xf(e.devminor||0,6),337),i&&_t.write(r,i,345),_t.write(r,Xf(ske(r),6),148),r)},"encode");zE.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-qk,s=VE(e,0,100,r),a=Kf(e,100,8),c=Kf(e,108,8),l=Kf(e,116,8),u=Kf(e,124,12),d=Kf(e,136,12),f=JPt(i),h=e[157]===0?null:VE(e,157,100,r),p=VE(e,265,32),g=VE(e,297,32),m=Kf(e,329,8),E=Kf(e,337,8),y=ske(e);if(y===256)return null;if(y!==Kf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if($Pt(e))e[345]&&(s=VE(e,345,155,r)+"/"+s);else if(!jPt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:g,devmajor:m,devminor:E,pax:null}},"decode");function $Pt(t){return _t.equals(nke,t.subarray(sB,sB+6))}o($Pt,"isUSTAR");function jPt(t){return _t.equals(HPt,t.subarray(sB,sB+6))&&_t.equals(VPt,t.subarray(xY,xY+2))}o(jPt,"isGNU");function WPt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(WPt,"clamp");function JPt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(JPt,"toType");function YPt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(YPt,"toTypeflag");function ike(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(ike,"indexOf");function ske(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(ske,"cksum");function Xf(t,e){return t=t.toString(8),t.length>e?qPt.slice(0,e)+" ":UPt.slice(0,e-t.length)+t+" "}o(Xf,"encodeOct");function KPt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(KPt,"encodeSizeBin");function XPt(t,e,r){t.toString(8).length>11?KPt(t,e,r):_t.write(e,Xf(t,11),r)}o(XPt,"encodeSize");function ZPt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}o(ZPt,"parse256");function Kf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return ZPt(t);{for(;e<t.length&&t[e]===32;)e++;let n=WPt(ike(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(_t.toString(t.subarray(e,n)),8)}}o(Kf,"decodeOct");function VE(t,e,r,n){return _t.toString(t.subarray(e,ike(t,0,e,e+r)),n)}o(VE,"decodeStr");function BY(t){let e=_t.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(BY,"addLength")});var uke=A((wQr,lke)=>{var{Writable:eOt,Readable:tOt,getStreamError:oke}=SY(),rOt=cY(),ake=Uk(),$E=vY(),nOt=ake.alloc(0),_Y=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new rOt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return nOt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return ake.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},TY=class extends tOt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`+b);let[,T]=S;return T.replace(/\s/g,"").split($B).map(k=>k.replace(qC,"").trim())}o(jB,"parseParams");function tm(w,b){var S={};return Object.keys(w).forEach(T=>{var k=w[T],L,U=p(k),V=!U&&k.length===1||U&&k.length===0;if(Array.isArray(k))L=[...k],k=L.pop(),S[T]=L.concat(L.length>0?J:k);else if(V)S[T]=k;else{if(L=jB(k),k.length===0&&!U&&L.length===0)throw new Error("autoInject task functions require explicit parameters.");U||L.pop(),S[T]=L.concat(J)}function J(we,bt){var Rt=L.map(St=>we[St]);Rt.push(bt),E(k)(...Rt)}o(J,"newTask")}),Rd(S,b)}o(tm,"autoInject");class WB{static{o(this,"DLL")}constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):HC(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):HC(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:T}=S;b(S)&&this.removeLink(S),S=T}return this}}function HC(w,b){w.length=1,w.head=w.tail=b}o(HC,"setInitial");function rm(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var T=E(w),k=0,L=[];let U={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function V(ke,be){U[ke].push(be)}o(V,"on");function J(ke,be){let Pe=o((...Bt)=>{we(ke,Pe),be(...Bt)},"handleAndRemove");U[ke].push(Pe)}o(J,"once");function we(ke,be){if(!ke)return Object.keys(U).forEach(Pe=>U[Pe]=[]);if(!be)return U[ke]=[];U[ke]=U[ke].filter(Pe=>Pe!==be)}o(we,"off");function bt(ke,...be){U[ke].forEach(Pe=>Pe(...be))}o(bt,"trigger");var Rt=!1;function St(ke,be,Pe,Bt){if(Bt!=null&&typeof Bt!="function")throw new Error("task callback must be a function");Dt.started=!0;var pr,Fn;function Ro(xh,...YC){if(xh)return Pe?Fn(xh):pr();if(YC.length<=1)return pr(YC[0]);pr(YC)}o(Ro,"promiseCallback");var om=Dt._createTaskItem(ke,Pe?Ro:Bt||Ro);if(be?Dt._tasks.unshift(om):Dt._tasks.push(om),Rt||(Rt=!0,u(()=>{Rt=!1,Dt.process()})),Pe||!Bt)return new Promise((xh,YC)=>{pr=xh,Fn=YC})}o(St,"_insert");function To(ke){return function(be,...Pe){k-=1;for(var Bt=0,pr=ke.length;Bt<pr;Bt++){var Fn=ke[Bt],Ro=L.indexOf(Fn);Ro===0?L.shift():Ro>0&&L.splice(Ro,1),Fn.callback(be,...Pe),be!=null&&bt("error",be,Fn.data)}k<=Dt.concurrency-Dt.buffer&&bt("unsaturated"),Dt.idle()&&bt("drain"),Dt.process()}}o(To,"_createCB");function sm(ke){return ke.length===0&&Dt.idle()?(u(()=>bt("drain")),!0):!1}o(sm,"_maybeDrain");let Bh=o(ke=>be=>{if(!be)return new Promise((Pe,Bt)=>{J(ke,(pr,Fn)=>{if(pr)return Bt(pr);Pe(Fn)})});we(ke),V(ke,be)},"eventMethod");var JC=!1,Dt={_tasks:new WB,_createTaskItem(ke,be){return{data:ke,callback:be}},*[Symbol.iterator](){yield*Dt._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!1,!1,be)):St(ke,!1,!1,be)},pushAsync(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!1,!0,be)):St(ke,!1,!0,be)},kill(){we(),Dt._tasks.empty()},unshift(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!0,!1,be)):St(ke,!0,!1,be)},unshiftAsync(ke,be){return Array.isArray(ke)?sm(ke)?void 0:ke.map(Pe=>St(Pe,!0,!0,be)):St(ke,!0,!0,be)},remove(ke){Dt._tasks.remove(ke)},process(){if(!JC){for(JC=!0;!Dt.paused&&k<Dt.concurrency&&Dt._tasks.length;){var ke=[],be=[],Pe=Dt._tasks.length;Dt.payload&&(Pe=Math.min(Pe,Dt.payload));for(var Bt=0;Bt<Pe;Bt++){var pr=Dt._tasks.shift();ke.push(pr),L.push(pr),be.push(pr.data)}k+=1,Dt._tasks.length===0&&bt("empty"),k===Dt.concurrency&&bt("saturated");var Fn=ee(To(ke));T(be,Fn)}JC=!1}},length(){return Dt._tasks.length},running(){return k},workersList(){return L},idle(){return Dt._tasks.length+k===0},pause(){Dt.paused=!0},resume(){Dt.paused!==!1&&(Dt.paused=!1,u(Dt.process))}};return Object.defineProperties(Dt,{saturated:{writable:!1,value:Bh("saturated")},unsaturated:{writable:!1,value:Bh("unsaturated")},empty:{writable:!1,value:Bh("empty")},drain:{writable:!1,value:Bh("drain")},error:{writable:!1,value:Bh("error")}}),Dt}o(rm,"queue$1");function nm(w,b){return rm(w,1,b)}o(nm,"cargo$1");function Hs(w,b,S){return rm(w,b,S)}o(Hs,"cargo");function JB(w,b,S,T){T=v(T);var k=E(S);return Wr(w,(L,U,V)=>{k(b,L,(J,we)=>{b=we,V(J)})},L=>T(L,b))}o(JB,"reduce");var Oa=y(JB,4);function VC(...w){var b=w.map(E);return function(...S){var T=this,k=S[S.length-1];return typeof k=="function"?S.pop():k=Pa(),Oa(b,S,(L,U,V)=>{U.apply(T,L.concat((J,...we)=>{V(J,we)}))},(L,U)=>k(L,...U)),k[hs]}}o(VC,"seq");function Ce(...w){return VC(...w.revers Line truncated
GFS4: `),console.error(t)},"debug"));Nr[Ai]||(oxe=global[Ai]||[],cxe(Nr,oxe),Nr.close=(function(t){function e(r,n){return t.call(Nr,r,function(i){i||axe(),typeof n=="function"&&n.apply(this,arguments)})}return o(e,"close"),Object.defineProperty(e,qQ,{value:t}),e})(Nr.close),Nr.closeSync=(function(t){function e(r){t.apply(Nr,arguments),axe()}return o(e,"closeSync"),Object.defineProperty(e,qQ,{value:t}),e})(Nr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){nA(Nr[Ai]),require("assert").equal(Nr[Ai].length,0)}));var oxe;global[Ai]||cxe(global,Nr[Ai]);lW.exports=aW(F0t(Nr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Nr.__patched&&(lW.exports=aW(Nr),Nr.__patched=!0);function aW(t){O0t(t),t.gracefulify=aW,t.createReadStream=Q,t.createWriteStream=M;var e=t.readFile;t.readFile=r;function r(R,G,H){return typeof G=="function"&&(H=G,G=null),W(R,G,H);function W(ee,oe,pe,Y){return e(ee,oe,function(z){z&&(z.code==="EMFILE"||z.code==="ENFILE")?rE([W,[ee,oe,pe],z,Y||Date.now(),Date.now()]):typeof pe=="function"&&pe.apply(this,arguments)})}o(W,"go$readFile")}o(r,"readFile");var n=t.writeFile;t.writeFile=i;function i(R,G,H,W){return typeof H=="function"&&(W=H,H=null),ee(R,G,H,W);function ee(oe,pe,Y,z,Ie){return n(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$writeFile")}o(i,"writeFile");var s=t.appendFile;s&&(t.appendFile=a);function a(R,G,H,W){return typeof H=="function"&&(W=H,H=null),ee(R,G,H,W);function ee(oe,pe,Y,z,Ie){return s(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$appendFile")}o(a,"appendFile");var c=t.copyFile;c&&(t.copyFile=l);function l(R,G,H,W){return typeof H=="function"&&(W=H,H=0),ee(R,G,H,W);function ee(oe,pe,Y,z,Ie){return c(oe,pe,Y,function(Se){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$copyFile")}o(l,"copyFile");var u=t.readdir;t.readdir=f;var d=/^v[0-5]\./;function f(R,G,H){typeof G=="function"&&(H=G,G=null);var W=d.test(process.version)?o(function(pe,Y,z,Ie){return u(pe,ee(pe,Y,z,Ie))},"go$readdir"):o(function(pe,Y,z,Ie){return u(pe,Y,ee(pe,Y,z,Ie))},"go$readdir");return W(R,G,H);function ee(oe,pe,Y,z){return function(Ie,Se){Ie&&(Ie.code==="EMFILE"||Ie.code==="ENFILE")?rE([W,[oe,pe,Y],Ie,z||Date.now(),Date.now()]):(Se&&Se.sort&&Se.sort(),typeof Y=="function"&&Y.call(this,Ie,Se))}}}if(o(f,"readdir"),process.version.substr(0,4)==="v0.8"){var h=L0t(t);y=h.ReadStream,I=h.WriteStream}var p=t.ReadStream;p&&(y.prototype=Object.create(p.prototype),y.prototype.open=C);var m=t.WriteStream;m&&(I.prototype=Object.create(m.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:o(function(){return y},"get"),set:o(function(R){y=R},"set"),enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:o(function(){return I},"get"),set:o(function(R){I=R},"set"),enumerable:!0,configurable:!0});var g=y;Object.defineProperty(t,"FileReadStream",{get:o(function(){return g},"get"),set:o(function(R){g=R},"set"),enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:o(function(){return E},"get"),set:o(function(R){E=R},"set"),enumerable:!0,configurable:!0});function y(R,G){return this instanceof y?(p.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}o(y,"ReadStream");function C(){var R=this;j(R.path,R.flags,R.mode,function(G,H){G?(R.autoClose&&R.destroy(),R.emit("error",G)):(R.fd=H,R.emit("open",H),R.read())})}o(C,"ReadStream$open");function I(R,G){return this instanceof I?(m.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}o(I,"WriteStream");function B(){var R=this;j(R.path,R.flags,R.mode,function(G,H){G?(R.destroy(),R.emit("error",G)):(R.fd=H,R.emit("open",H))})}o(B,"WriteStream$open");function Q(R,G){return new t.ReadStream(R,G)}o(Q,"createReadStream");function M(R,G){return new t.WriteStream(R,G)}o(M,"createWriteStream");var v=t.open;t.open=j;function j(R,G,H,W){return typeof H=="function"&&(W=H,H=null),ee(R,G,H,W);function ee(oe,pe,Y,z,Ie){return v(oe,pe,Y,function(Se,st){Se&&(Se.code==="EMFILE"||Se.code==="ENFILE")?rE([ee,[oe,pe,Y,z],Se,Ie||Date.now(),Date.now()]):typeof z=="function"&&z.apply(this,arguments)})}o(ee,"go$open")}return o(j,"open"),t}o(aW,"patch");function rE(t){nA("ENQUEUE",t[0].name,t[1]),Nr[Ai].push(t),cW()}o(rE,"enqueue");var UQ;function axe(){for(var t=Date.now(),e=0;e<Nr[Ai].length;++e)Nr[Ai][e].length>2&&(Nr[Ai][e][3]=t,Nr[Ai][e][4]=t);cW()}o(axe,"resetQueue");function cW(){if(clearTimeout(UQ),UQ=void 0,Nr[Ai].length!==0){var t=Nr[Ai].shift(),e=t[0],r=t[1],n=t[2],i=t[3],s=t[4];if(i===void 0)nA("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-i>=6e4){nA("TIMEOUT",e.name,r);var a=r.pop();typeof Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};JW.exports={AggregateError:WW,kEmptyObject:Object.freeze({}),once(t){let e=!1;return function(...r){e||(e=!0,t.apply(this,r))}},createDeferredPromise:o(function(){let t,e;return{promise:new Promise((n,i)=>{t=n,e=i}),resolve:t,reject:e}},"createDeferredPromise"),promisify(t){return new Promise((e,r)=>{t((n,...i)=>n?r(n):e(...i))})},debuglog(){return function(){}},format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let i=e.shift();return n==="f"?i.toFixed(6):n==="j"?JSON.stringify(i):n==="s"&&typeof i=="object"?`${i.constructor!==Object?i.constructor.name:""} {}`.trim():i.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}},types:{isAsyncFunction(t){return t instanceof bxt},isArrayBufferView(t){return ArrayBuffer.isView(t)}},isBlob:Ixt,deprecate(t,e){return t},addAbortListener:require("events").addAbortListener||o(function(e,r){if(e===void 0)throw new ERR_INVALID_ARG_TYPE("signal","AbortSignal",e);t_e(e,"signal"),wxt(r,"listener");let n;return e.aborted?queueMicrotask(()=>r()):(e.addEventListener("abort",r,{__proto__:null,once:!0,[gxt]:!0}),n=o(()=>{e.removeEventListener("abort",r)},"removeEventListener")),{__proto__:null,[yxt](){var i;(i=n)===null||i===void 0||i()}}},"addAbortListener"),AbortSignalAny:Ext.any||o(function(e){if(e.length===1)return e[0];let r=new Cxt,n=o(()=>r.abort(),"abort");return e.forEach(i=>{t_e(i,"signals"),i.addEventListener("abort",n,{once:!0})}),r.signal.addEventListener("abort",()=>{e.forEach(i=>i.removeEventListener("abort",n))},{once:!0}),r.signal},"AbortSignalAny")};JW.exports.promisify.custom=Symbol.for("nodejs.util.promisify.custom")});var is=A((ETr,i_e)=>{"use strict";var{format:Sxt,inspect:u1,AggregateError:Bxt}=_i(),xxt=globalThis.AggregateError||Bxt,vxt=Symbol("kIsNodeError"),Nxt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],_xt=/^([A-Z][a-z0-9]*)+$/,Txt="__node_internal_",d1={};function oA(t,e){if(!t)throw new d1.ERR_INTERNAL_ASSERTION(e)}o(oA,"assert");function r_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}o(r_e,"addNumericalSeparator");function Rxt(t,e,r){if(typeof e=="function")return oA(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return oA(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:Sxt(e,...r)}o(Rxt,"getMessage");function gi(t,e,r){r||(r=Error);class n extends r{static{o(this,"NodeError")}constructor(...s){super(Rxt(t,e,s))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[vxt]=!0,d1[t]=n}o(gi,"E");function n_e(t){let e=Txt+t.name;return Object.defineProperty(t,"name",{value:e}),t}o(n_e,"hideStackFrames");function Dxt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new xxt([e,t],e.message);return r.code=e.code,r}return t||e}o(Dxt,"aggregateTwoErrors");var YW=class extends Error{static{o(this,"AbortError")}constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new d1.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};gi("ERR_ASSERTION","%s",Error);gi("ERR_INVALID_ARG_TYPE",(t,e,r)=>{oA(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let i=[],s=[],a=[];for(let l of e)oA(typeof l=="string","All expected entries have to be of type string"),Nxt.includes(l)?i.push(l.toLowerCase()):_xt.test(l)?s.push(l):(oA(l!=="object",'The value "object" should be written as "Object"'),a.push(l));if(s.length>0){let l=i.indexOf("object");l!==-1&&(i.splice(i,l,1),s.push("Object"))}if(i.length>0){switch(i.length){case 1:n+=`of type ${i[0]}`;break;case 2:n+=`one of type ${i[0]} or ${i[1]}`;break;default:{let l=i.pop();n+=`one of type ${i.join(", ")}, or ${l}`}}(s.length>0||a.length>0)&&(n+=" or ")}if(s.length>0){switch(s.length){case 1:n+=`an instance of ${s[0]}`;break;case 2:n+=`an instance of ${s[0]} or ${s[1]}`;break;default:{let l=s.pop();n+=`an instance of ${s.join(", ")}, or ${l}`}}a.length>0&&(n+=" or ")}switch(a.length){case 0:break;case 1:a[0].toLowerCase()!==a[0]&&(n+="an "),n+=`${a[0]}`;break;case 2:n+Line truncated
`)),e.linkname&&(r+=xY(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let i in n)r+=xY(" "+i+"="+n[i]+`
`);return _t.from(r)},"encodePax");zE.decodePax=o(function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let i=parseInt(_t.toString(e.subarray(0,n)),10);if(!i)return r;let s=_t.toString(e.subarray(n+1,i-1)),a=s.indexOf("=");if(a===-1)return r;r[s.slice(0,a)]=s.slice(a+1),e=e.subarray(i)}return r},"decodePax");zE.encode=o(function(e){let r=_t.alloc(512),n=e.name,i="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),_t.byteLength(n)!==n.length)return null;for(;_t.byteLength(n)>100;){let s=n.indexOf("/");if(s===-1)return null;i+=i?"/"+n.slice(0,s):n.slice(0,s),n=n.slice(s+1)}return _t.byteLength(n)>100||_t.byteLength(i)>155||e.linkname&&_t.byteLength(e.linkname)>100?null:(_t.write(r,n),_t.write(r,Xf(e.mode&WPt,6),100),_t.write(r,Xf(e.uid,6),108),_t.write(r,Xf(e.gid,6),116),tOt(e.size,r,124),_t.write(r,Xf(e.mtime.getTime()/1e3|0,11),136),r[156]=qk+ZPt(e.type),e.linkname&&_t.write(r,e.linkname,157),_t.copy(nke,r,sB),_t.copy(zPt,r,vY),e.uname&&_t.write(r,e.uname,265),e.gname&&_t.write(r,e.gname,297),_t.write(r,Xf(e.devmajor||0,6),329),_t.write(r,Xf(e.devminor||0,6),337),i&&_t.write(r,i,345),_t.write(r,Xf(ske(r),6),148),r)},"encode");zE.decode=o(function(e,r,n){let i=e[156]===0?0:e[156]-qk,s=VE(e,0,100,r),a=Kf(e,100,8),c=Kf(e,108,8),l=Kf(e,116,8),u=Kf(e,124,12),d=Kf(e,136,12),f=XPt(i),h=e[157]===0?null:VE(e,157,100,r),p=VE(e,265,32),m=VE(e,297,32),g=Kf(e,329,8),E=Kf(e,337,8),y=ske(e);if(y===256)return null;if(y!==Kf(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(JPt(e))e[345]&&(s=VE(e,345,155,r)+"/"+s);else if(!YPt(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return i===0&&s&&s[s.length-1]==="/"&&(i=5),{name:s,mode:a,uid:c,gid:l,size:u,mtime:new Date(1e3*d),type:f,linkname:h,uname:p,gname:m,devmajor:g,devminor:E,pax:null}},"decode");function JPt(t){return _t.equals(nke,t.subarray(sB,sB+6))}o(JPt,"isUSTAR");function YPt(t){return _t.equals($Pt,t.subarray(sB,sB+6))&&_t.equals(jPt,t.subarray(vY,vY+2))}o(YPt,"isGNU");function KPt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}o(KPt,"clamp");function XPt(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}o(XPt,"toType");function ZPt(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}o(ZPt,"toTypeflag");function ike(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}o(ike,"indexOf");function ske(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}o(ske,"cksum");function Xf(t,e){return t=t.toString(8),t.length>e?VPt.slice(0,e)+" ":HPt.slice(0,e-t.length)+t+" "}o(Xf,"encodeOct");function eOt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}o(eOt,"encodeSizeBin");function tOt(t,e,r){t.toString(8).length>11?eOt(t,e,r):_t.write(e,Xf(t,11),r)}o(tOt,"encodeSize");function rOt(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let a=t[n];e?r.push(a):r.push(255-a)}let i=0,s=r.length;for(n=0;n<s;n++)i+=r[n]*Math.pow(256,n);return e?i:-1*i}o(rOt,"parse256");function Kf(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return rOt(t);{for(;e<t.length&&t[e]===32;)e++;let n=KPt(ike(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(_t.toString(t.subarray(e,n)),8)}}o(Kf,"decodeOct");function VE(t,e,r,n){return _t.toString(t.subarray(e,ike(t,0,e,e+r)),n)}o(VE,"decodeStr");function xY(t){let e=_t.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}o(xY,"addLength")});var uke=A((xQr,lke)=>{var{Writable:nOt,Readable:iOt,getStreamError:oke}=BY(),sOt=lY(),ake=Uk(),$E=NY(),oOt=ake.alloc(0),TY=class{static{o(this,"BufferList")}constructor(){this.buffered=0,this.shifted=0,this.queue=new sOt,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return oOt;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return ake.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let i=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,i}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},RY=class extends iOt{static{o(this,"Source")}constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_ Line truncated
`,nexist:"\u2204",nexists:"\u2204",nfr:"\u{1D52B}",Nfr:"\u{1D511}",nge:"\u2271",ngE:"\u2267\u0338",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",ngt:"\u226F",nGt:"\u226B\u20D2",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",njcy:"\u045A",NJcy:"\u040A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nle:"\u2270",nlE:"\u2266\u0338",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nlt:"\u226E",nLt:"\u226A\u20D2",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",not:"\xAC",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",npar:"\u2226",nparallel:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",npre:"\u2AAF\u0338",nprec:"\u2280",npreceq:"\u2AAF\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrc:"\u2933\u0338",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",nscr:"\u{1D4C3}",Nscr:"\u{1D4A9}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsube:"\u2288",nsubE:"\u2AC5\u0338",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupe:"\u2289",nsupE:"\u2AC6\u0338",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",ntilde:"\xF1",Ntilde:"\xD1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",nu:"\u03BD",Nu:"\u039D",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",oacute:"\xF3",Oacute:"\xD3",oast:"\u229B",ocir:"\u229A",ocirc:"\xF4",Ocirc:"\xD4",ocy:"\u043E",Ocy:"\u041E",odash:"\u229D",odblac:"\u0151",Odblac:"\u0150",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",oelig:"\u0153",OElig:"\u0152",ofcir:"\u29BF",ofr:"\u{1D52C}",Ofr:"\u{1D512}",ogon:"\u02DB",ograve:"\xF2",Ograve:"\xD2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",omacr:"\u014D",Omacr:"\u014C",omega:"\u03C9",Omega:"\u03A9",omicron:"\u03BF",Omicron:"\u039F",omid:"\u29B6",ominus:"\u2296",oopf:"\u{1D560}",Oopf:"\u{1D546}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",or:"\u2228",Or:"\u2A54",orarr:"\u21BB",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",oscr:"\u2134",Oscr:"\u{1D4AA}",oslash:"\xF8",Oslash:"\xD8",osol:"\u2298",otilde:"\xF5",Otilde:"\xD5",otimes:"\u2297",Otimes:"\u2A37",otimesas:"\u2A36",ouml:"\xF6",Ouml:"\xD6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`).join(`
`+s),t.push(i+"m+"+ZP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=gGt()+e+" "+t[0]}o(mGt,"formatArgs");function gGt(){return ni.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(gGt,"getDate");function yGt(...t){return process.stderr.write(XP.formatWithOptions(ni.inspectOpts,...t)+`
`)}o(yGt,"log");function EGt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(EGt,"save");function CGt(){return process.env.DEBUG}o(CGt,"load");function bGt(t){t.inspectOpts={};let e=Object.keys(ni.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ni.inspectOpts[e[r]]}o(bGt,"init");ZP.exports=A7()(ni);var{formatters:hFe}=ZP.exports;hFe.o=function(t){return this.inspectOpts.colors=this.useColors,XP.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};hFe.O=function(t){return this.inspectOpts.colors=this.useColors,XP.inspect(t,this.inspectOpts)}});var g7=A((ZLr,m7)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?m7.exports=fFe():m7.exports=pFe()});var tO=A(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.DownloadHTTPError=jr.DownloadLengthMismatchError=jr.DownloadError=jr.ExpiredMetadataError=jr.EqualVersionError=jr.BadVersionError=jr.RepositoryError=jr.PersistError=jr.RuntimeError=jr.ValueError=void 0;var y7=class extends Error{static{o(this,"ValueError")}};jr.ValueError=y7;var E7=class extends Error{static{o(this,"RuntimeError")}};jr.RuntimeError=E7;var C7=class extends Error{static{o(this,"PersistError")}};jr.PersistError=C7;var _B=class extends Error{static{o(this,"RepositoryError")}};jr.RepositoryError=_B;var eO=class extends _B{static{o(this,"BadVersionError")}};jr.BadVersionError=eO;var b7=class extends eO{static{o(this,"EqualVersionError")}};jr.EqualVersionError=b7;var I7=class extends _B{static{o(this,"ExpiredMetadataError")}};jr.ExpiredMetadataError=I7;var TB=class extends Error{static{o(this,"DownloadError")}};jr.DownloadError=TB;var w7=class extends TB{static{o(this,"DownloadLengthMismatchError")}};jr.DownloadLengthMismatchError=w7;var S7=class extends TB{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};jr.DownloadHTTPError=S7});var mFe=A(EC=>{"use strict";var x7=EC&&EC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(EC,"__esModule",{value:!0});EC.withTempFile=void 0;var B7=x7(require("fs/promises")),IGt=x7(require("os")),AFe=x7(require("path")),wGt=o(async t=>SGt(async e=>t(AFe.default.join(e,"tempfile"))),"withTempFile");EC.withTempFile=wGt;var SGt=o(async t=>{let e=await B7.default.realpath(IGt.default.tmpdir()),r=await B7.default.mkdtemp(e+AFe.default.sep);try{return await t(r)}finally{await B7.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var yFe=A((iFr,gFe)=>{var v7=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i<this.#n.length;i++){let s=this.#n[i],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};gFe.exports={RetryOperation:v7}});var bFe=A((oFr,CFe)=>{var{RetryOperation:BGt}=yFe(),EFe=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),xGt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),vGt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;s<i.retries;s++)r.push(EFe(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(EFe(0,i))}let n=new BGt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!xGt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");CFe.exports={promiseRetry:vGt}});var T7=A(hh=>{"use strict";var _7=hh&&hh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hh,"__esModule",{value:!0});hh.DefaultFetcher=hh.BaseFetcher=void 0;var NGt=_7(g7()),IFe=_7(require("fs")),_Gt=_7(require("util")),wFe=tO(),TGt=mFe(),RGt=bFe(),DGt=(0,NGt.default)("tuf:fetch"),QGt="User-Agent",rO=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,TGt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=IFe.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new wFe.DownloadLengthMismatchError("Max length reached");await kGt(c,Buffer.from(d))}}finally{l.releaseLock(),await _Gt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=IFe.defau Line truncated
`).forEach(r=>{r.match(MHt)||r.match(UHt)||(e+=r)}),Buffer.from(e,"base64")}o(qHt,"toDER");function GHt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`+s),t.push(i+"m+"+ZP.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=CGt()+e+" "+t[0]}o(EGt,"formatArgs");function CGt(){return ni.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(CGt,"getDate");function bGt(...t){return process.stderr.write(XP.formatWithOptions(ni.inspectOpts,...t)+`
`)}o(bGt,"log");function IGt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(IGt,"save");function wGt(){return process.env.DEBUG}o(wGt,"load");function SGt(t){t.inspectOpts={};let e=Object.keys(ni.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ni.inspectOpts[e[r]]}o(SGt,"init");ZP.exports=m7()(ni);var{formatters:hFe}=ZP.exports;hFe.o=function(t){return this.inspectOpts.colors=this.useColors,XP.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};hFe.O=function(t){return this.inspectOpts.colors=this.useColors,XP.inspect(t,this.inspectOpts)}});var y7=A((rFr,g7)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?g7.exports=fFe():g7.exports=pFe()});var tO=A(jr=>{"use strict";Object.defineProperty(jr,"__esModule",{value:!0});jr.DownloadHTTPError=jr.DownloadLengthMismatchError=jr.DownloadError=jr.ExpiredMetadataError=jr.EqualVersionError=jr.BadVersionError=jr.RepositoryError=jr.PersistError=jr.RuntimeError=jr.ValueError=void 0;var E7=class extends Error{static{o(this,"ValueError")}};jr.ValueError=E7;var C7=class extends Error{static{o(this,"RuntimeError")}};jr.RuntimeError=C7;var b7=class extends Error{static{o(this,"PersistError")}};jr.PersistError=b7;var _B=class extends Error{static{o(this,"RepositoryError")}};jr.RepositoryError=_B;var eO=class extends _B{static{o(this,"BadVersionError")}};jr.BadVersionError=eO;var I7=class extends eO{static{o(this,"EqualVersionError")}};jr.EqualVersionError=I7;var w7=class extends _B{static{o(this,"ExpiredMetadataError")}};jr.ExpiredMetadataError=w7;var TB=class extends Error{static{o(this,"DownloadError")}};jr.DownloadError=TB;var S7=class extends TB{static{o(this,"DownloadLengthMismatchError")}};jr.DownloadLengthMismatchError=S7;var B7=class extends TB{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};jr.DownloadHTTPError=B7});var mFe=A(EC=>{"use strict";var v7=EC&&EC.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(EC,"__esModule",{value:!0});EC.withTempFile=void 0;var x7=v7(require("fs/promises")),BGt=v7(require("os")),AFe=v7(require("path")),xGt=o(async t=>vGt(async e=>t(AFe.default.join(e,"tempfile"))),"withTempFile");EC.withTempFile=xGt;var vGt=o(async t=>{let e=await x7.default.realpath(BGt.default.tmpdir()),r=await x7.default.mkdtemp(e+AFe.default.sep);try{return await t(r)}finally{await x7.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var yFe=A((aFr,gFe)=>{var N7=class{static{o(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#i;#s=null;#l;#a;#c=null;#o;constructor(e,r={}){this.#l=[...e],this.#a=[...e],this.#o=r.unref,this.#i=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#a])}get timeouts(){return[...this.#a]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let i=0;i<this.#n.length;i++){let s=this.#n[i],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#a=[...this.#l]}stop(){this.#c&&clearTimeout(this.#c),this.#a=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#i)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#a.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#c=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#o&&this.#c.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};gFe.exports={RetryOperation:N7}});var bFe=A((lFr,CFe)=>{var{RetryOperation:NGt}=yFe(),EFe=o((t,e)=>Math.min(Math.round((1+(e.randomize?Math.random():0))*Math.max(e.minTimeout,1)*Math.pow(e.factor,t)),e.maxTimeout),"createTimeout"),_Gt=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),TGt=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let i={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(i.minTimeout>i.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(i.retries){for(let s=0;s<i.retries;s++)r.push(EFe(s,i));r.sort((s,a)=>s-a)}else e.forever&&r.push(EFe(0,i))}let n=new NGt(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(i,s){n.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,n);return i(c)}catch(c){if(!_Gt(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");CFe.exports={promiseRetry:TGt}});var R7=A(hh=>{"use strict";var T7=hh&&hh.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(hh,"__esModule",{value:!0});hh.DefaultFetcher=hh.BaseFetcher=void 0;var RGt=T7(y7()),IFe=T7(require("fs")),DGt=T7(require("util")),wFe=tO(),QGt=mFe(),kGt=bFe(),PGt=(0,RGt.default)("tuf:fetch"),OGt="User-Agent",rO=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,QGt.withTempFile)(async i=>{let s=await this.fetch(e),a=0,c=IFe.default.createWriteStream(i),l=s.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new wFe.DownloadLengthMismatchError("Max length reached");await LGt(c,Buffer.from(d))}}finally{l.releaseLock(),await DGt.default.promisify(c.close).bind(c)()}return n(i)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let i=IFe.defau Line truncated
`).forEach(r=>{r.match(GHt)||r.match(HHt)||(e+=r)}),Buffer.from(e,"base64")}o(VHt,"toDER");function zHt(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}o(GHt,"fromDER")});var yO=A(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.SHA2_HASH_ALGOS=yh.RSA_SIGNATURE_ALGOS=yh.ECDSA_SIGNATURE_ALGOS=void 0;yh.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};yh.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};yh.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var eX=A(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0});EO.RFC3161TimestampVerificationError=void 0;var Z7=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};EO.RFC3161TimestampVerificationError=Z7});var ZFe=A(tu=>{"use strict";var HHt=tu&&tu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),VHt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),zHt=tu&&tu.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&HHt(r,e,n[i]);return VHt(r,e),r}})();Object.defineProperty(tu,"__esModule",{value:!0});tu.TSTInfo=void 0;var XFe=zHt(BC()),$Ht=yO(),jHt=eX(),tX=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return $Ht.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=XFe.digest(this.messageImprintHashAlgorithm,e);if(!XFe.bufferEqual(r,this.messageImprintHashedMessage))throw new jHt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};tu.TSTInfo=tX});var tMe=A(ru=>{"use strict";var WHt=ru&&ru.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JHt=ru&&ru.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),YHt=ru&&ru.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&WHt(r,e,n[i]);return JHt(r,e),r}})();Object.defineProperty(ru,"__esModule",{value:!0});ru.RFC3161Timestamp=void 0;var KHt=AO(),rX=YHt(BC()),eMe=yO(),OB=eX(),XHt=ZFe(),ZHt="1.2.840.113549.1.7.2",eVt="1.2.840.113549.1.9.16.1.4",tVt="1.2.840.113549.1.9.4",nX=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=KHt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return eMe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return eMe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new XHt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new OB.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==ZHt)throw new OB.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==eVt)throw new OB.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=rX.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`)}o(zHt,"fromDER")});var yO=A(yh=>{"use strict";Object.defineProperty(yh,"__esModule",{value:!0});yh.SHA2_HASH_ALGOS=yh.RSA_SIGNATURE_ALGOS=yh.ECDSA_SIGNATURE_ALGOS=void 0;yh.ECDSA_SIGNATURE_ALGOS={"1.2.840.10045.4.3.1":"sha224","1.2.840.10045.4.3.2":"sha256","1.2.840.10045.4.3.3":"sha384","1.2.840.10045.4.3.4":"sha512"};yh.RSA_SIGNATURE_ALGOS={"1.2.840.113549.1.1.14":"sha224","1.2.840.113549.1.1.11":"sha256","1.2.840.113549.1.1.12":"sha384","1.2.840.113549.1.1.13":"sha512"};yh.SHA2_HASH_ALGOS={"2.16.840.1.101.3.4.2.1":"sha256","2.16.840.1.101.3.4.2.2":"sha384","2.16.840.1.101.3.4.2.3":"sha512"}});var tX=A(EO=>{"use strict";Object.defineProperty(EO,"__esModule",{value:!0});EO.RFC3161TimestampVerificationError=void 0;var eX=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};EO.RFC3161TimestampVerificationError=eX});var ZFe=A(tu=>{"use strict";var $Ht=tu&&tu.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),jHt=tu&&tu.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),WHt=tu&&tu.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&$Ht(r,e,n[i]);return jHt(r,e),r}})();Object.defineProperty(tu,"__esModule",{value:!0});tu.TSTInfo=void 0;var XFe=WHt(BC()),JHt=yO(),YHt=tX(),rX=class{static{o(this,"TSTInfo")}root;constructor(e){this.root=e}get version(){return this.root.subs[0].toInteger()}get genTime(){return this.root.subs[4].toDate()}get messageImprintHashAlgorithm(){let e=this.messageImprintObj.subs[0].subs[0].toOID();return JHt.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=XFe.digest(this.messageImprintHashAlgorithm,e);if(!XFe.bufferEqual(r,this.messageImprintHashedMessage))throw new YHt.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};tu.TSTInfo=rX});var tMe=A(ru=>{"use strict";var KHt=ru&&ru.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,n,i)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),XHt=ru&&ru.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ZHt=ru&&ru.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[n.length]=i);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),i=0;i<n.length;i++)n[i]!=="default"&&KHt(r,e,n[i]);return XHt(r,e),r}})();Object.defineProperty(ru,"__esModule",{value:!0});ru.RFC3161Timestamp=void 0;var eVt=AO(),nX=ZHt(BC()),eMe=yO(),OB=tX(),tVt=ZFe(),rVt="1.2.840.113549.1.7.2",nVt="1.2.840.113549.1.9.16.1.4",iVt="1.2.840.113549.1.9.4",iX=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=eVt.ASN1Obj.parseBuffer(e);return new t(r)}get status(){return this.pkiStatusInfoObj.subs[0].toInteger()}get contentType(){return this.contentTypeObj.toOID()}get eContentType(){return this.eContentTypeObj.toOID()}get signingTime(){return this.tstInfo.genTime}get signerIssuer(){return this.signerSidObj.subs[0].value}get signerSerialNumber(){return this.signerSidObj.subs[1].value}get signerDigestAlgorithm(){let e=this.signerDigestAlgorithmObj.subs[0].toOID();return eMe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return eMe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new tVt.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new OB.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==rVt)throw new OB.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==nVt)throw new OB.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=nX.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,b4t=/\u2014 (\S+) (\S+)\n/g;function I4t(t,e){let r=t.inclusionProof,n=QX.fromString(r.checkpoint.envelope),i=MO.fromString(n.note);if(!w4t(n,e))throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(I4t,"verifyCheckpoint");function w4t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>PMe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?PMe.crypto.verify(r,i.publicKey,n.signature):!1})}o(w4t,"verifySignedNote");var QX=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(DX))throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(DX),n=e.slice(0,r+1),s=e.slice(r+DX.length).matchAll(b4t),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},MO=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};qB.LogCheckpoint=MO});var LMe=A(OX=>{"use strict";Object.defineProperty(OX,"__esModule",{value:!0});OX.verifyMerkleInclusion=x4t;var PX=bc(),UO=Li(),S4t=Buffer.from([0]),B4t=Buffer.from([1]);function x4t(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=v4t(n,i);if(r.hashes.length!==s+a)throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=Q4t(t.canonicalizedBody),d=_4t(N4t(u,c,n),l);if(!PX.crypto.bufferEqual(d,e.logHash))throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(x4t,"verifyMerkleInclusion");function v4t(t,e){let r=T4t(t,e),n=R4t(t>>BigInt(r));return{inner:r,border:n}}o(v4t,"decompInclProof");function N4t(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?kX(i,n):kX(n,i),t)}o(N4t,"chainInner");function _4t(t,e){return e.reduce((r,n)=>kX(n,r),t)}o(_4t,"chainBorderRight");function T4t(t,e){return D4t(t^e-BigInt(1))}o(T4t,"innerProofSize");function R4t(t){return t.toString(2).split("1").length-1}o(R4t,"onesCount");function D4t(t){return t===0n?0:t.toString(2).length}o(D4t,"bitLength");function kX(t,e){return PX.crypto.digest("sha256",B4t,t,e)}o(kX,"hashChildren");function Q4t(t){return PX.crypto.digest("sha256",S4t,t)}o(Q4t,"hashLeaf")});var MMe=A(LX=>{"use strict";Object.defineProperty(LX,"__esModule",{value:!0});LX.verifyTLogSET=O4t;var FMe=bc(),k4t=Li(),P4t=NC();function O4t(t,e){if(!(0,P4t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=L4t(t),a=Buffer.from(FMe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return FMe.crypto.verify(a,i.publicKey,c)}))throw new k4t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(O4t,"verifyTLogSET");function L4t(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(L4t,"toVerificationPayload")});var qMe=A(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.verifyTLogBody=G4t;GO.verifyTLogInclusion=H4t;var UMe=RMe(),qO=Li(),FX=DMe(),MX=QMe(),F4t=kMe(),M4t=OMe(),U4t=LMe(),q4t=MMe();function G4t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==FX.DSSE_API_VERSION_V1)return(0,FX.verifyDSSETLogBody)(i,e);{let s=UMe.Entry.fromJSON(i);return(0,FX.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,F4t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==MX.HASHEDREKORD_API_VERSION_V1)return(0,MX.verifyHashedRekordTLogBody)(i,e);{let s=UMe.Entry.fromJSON(i);return(0,MX.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(G4t,"verifyTLogBody");function H4t(t,e){let r=!1;if(V4t(t)&&((0,q4t.verifyTLogSET)(t,e),r=!0),z4t(t)){let n=(0,M4t.verifyCheckpoint)(t,e);(0,U4t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new qO.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(H4t,"verifyTLogInclusion");function V4t(t){return t.inclusionPromise!==void 0}o(V4t,"isTLogEntryWithInclusionPromise");function z4t(t){return t.inclusionProof!==void 0}o(z4t,"isTLogEntryWithInclusionProof")});var zMe=A(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0});HO.Verifier=void 0;var $4t=require("util"),em=Li(),GMe=EMe(),UX=CMe(),HMe=wMe(),VMe=qMe(),GX=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(tp,"getBooleanInput");function Tce(t,e){if(process.env.GITHUB_OUTPUT||"")return Cx("OUTPUT",gL(t,e));process.stdout.write(aq.EOL),hu("set-output",{name:t},fu(e))}o(Tce,"setOutput");function IN(t){process.exitCode=oq.Failure,lg(t)}o(IN,"setFailed");function rp(){return process.env.RUNNER_DEBUG==="1"}o(rp,"isDebug");function D(t){hu("debug",{},t)}o(D,"debug");function lg(t,e={}){hu("error",pL(e),t instanceof Error?t.toString():t)}o(lg,"error");function Ht(t,e={}){hu("warning",pL(e),t instanceof Error?t.toString():t)}o(Ht,"warning");function O(t){process.stdout.write(t+aq.EOL)}o(O,"info");function KJe(t){mL("group",t)}o(KJe,"startGroup");function XJe(){mL("endgroup")}o(XJe,"endGroup");function Qr(t,e){return YJe(this,void 0,void 0,function*(){KJe(t);let r;try{r=yield e()}finally{XJe()}return r})}o(Qr,"group");function Uo(t,e){if(process.env.GITHUB_STATE||"")return Cx("STATE",gL(t,e));hu("save-state",{name:t},fu(e))}o(Uo,"saveState");function Rce(t){return process.env[`STATE_${t}`]||""}o(Rce,"getState");var WI=N(require("fs"),1),b$=N(require("os"),1),I$=N(require("path"),1);var Qce=N(require("os"),1);function n0(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(n0,"toCommandValue");function kce(t,e,r){let n=new cq(t,e,r);process.stdout.write(n.toString()+Qce.EOL)}o(kce,"issueCommand");var Dce="::",cq=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=Dce+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 i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${e9e(i)}`)}}return e+=`${Dce}${ZJe(this.message)}`,e}};function ZJe(t){return n0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(ZJe,"escapeData");function e9e(t){return n0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(e9e,"escapeProperty");var Fce=N(require("os"),1);var Oce=require("os"),i0=require("fs");var lq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:t9e,appendFile:r9e,writeFile:n9e}=i0.promises,Pce="GITHUB_STEP_SUMMARY";var uq=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return lq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Pce];if(!e)throw new Error(`Unable to find environment variable for $${Pce}. Check if your runtime environment supports job summaries.`);try{yield t9e(e,i0.constants.R_OK|i0.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 i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return lq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?n9e:r9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return lq(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(Oce.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).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:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).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}),i=this.wrap("blockquote",e,n);return this.adLine truncated
`,S4t=/\u2014 (\S+) (\S+)\n/g;function B4t(t,e){let r=t.inclusionProof,n=kX.fromString(r.checkpoint.envelope),i=MO.fromString(n.note);if(!x4t(n,e))throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return i}o(B4t,"verifyCheckpoint");function x4t(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let i=e.find(s=>PMe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.includes(n.name));return i?PMe.crypto.verify(r,i.publicKey,n.signature):!1})}o(x4t,"verifySignedNote");var kX=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(QX))throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(QX),n=e.slice(0,r+1),s=e.slice(r+QX.length).matchAll(S4t),a=Array.from(s,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:l,keyHint:d.subarray(0,4),signature:d.subarray(4)}});if(a.length===0)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},MO=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,i){this.origin=e,this.logSize=r,this.logHash=n,this.rest=i}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],i;try{i=BigInt(r[1])}catch{throw new DC.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,i,s,a)}};qB.LogCheckpoint=MO});var LMe=A(LX=>{"use strict";Object.defineProperty(LX,"__esModule",{value:!0});LX.verifyMerkleInclusion=_4t;var OX=bc(),UO=Li(),v4t=Buffer.from([0]),N4t=Buffer.from([1]);function _4t(t,e){let r=t.inclusionProof,n;try{n=BigInt(r.logIndex)}catch{throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let i=BigInt(e.logSize);if(n<0n||n>=i)throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=T4t(n,i);if(r.hashes.length!==s+a)throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),l=r.hashes.slice(s),u=O4t(t.canonicalizedBody),d=D4t(R4t(u,c,n),l);if(!OX.crypto.bufferEqual(d,e.logHash))throw new UO.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(_4t,"verifyMerkleInclusion");function T4t(t,e){let r=Q4t(t,e),n=k4t(t>>BigInt(r));return{inner:r,border:n}}o(T4t,"decompInclProof");function R4t(t,e,r){return e.reduce((n,i,s)=>r>>BigInt(s)&BigInt(1)?PX(i,n):PX(n,i),t)}o(R4t,"chainInner");function D4t(t,e){return e.reduce((r,n)=>PX(n,r),t)}o(D4t,"chainBorderRight");function Q4t(t,e){return P4t(t^e-BigInt(1))}o(Q4t,"innerProofSize");function k4t(t){return t.toString(2).split("1").length-1}o(k4t,"onesCount");function P4t(t){return t===0n?0:t.toString(2).length}o(P4t,"bitLength");function PX(t,e){return OX.crypto.digest("sha256",N4t,t,e)}o(PX,"hashChildren");function O4t(t){return OX.crypto.digest("sha256",v4t,t)}o(O4t,"hashLeaf")});var MMe=A(FX=>{"use strict";Object.defineProperty(FX,"__esModule",{value:!0});FX.verifyTLogSET=M4t;var FMe=bc(),L4t=Li(),F4t=NC();function M4t(t,e){if(!(0,F4t.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(i=>{let s=U4t(t),a=Buffer.from(FMe.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return FMe.crypto.verify(a,i.publicKey,c)}))throw new L4t.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(M4t,"verifyTLogSET");function U4t(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:i}=t;return{body:i.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}o(U4t,"toVerificationPayload")});var qMe=A(GO=>{"use strict";Object.defineProperty(GO,"__esModule",{value:!0});GO.verifyTLogBody=z4t;GO.verifyTLogInclusion=$4t;var UMe=RMe(),qO=Li(),MX=DMe(),UX=QMe(),q4t=kMe(),G4t=OMe(),H4t=LMe(),V4t=MMe();function z4t(t,e){let{kind:r,version:n}=t.kindVersion,i;try{i=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==i.kind||n!==i.apiVersion)throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${i.kind}/${i.apiVersion}`});switch(r){case"dsse":if(n==MX.DSSE_API_VERSION_V1)return(0,MX.verifyDSSETLogBody)(i,e);{let s=UMe.Entry.fromJSON(i);return(0,MX.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,q4t.verifyIntotoTLogBody)(i,e);case"hashedrekord":if(n==UX.HASHEDREKORD_API_VERSION_V1)return(0,UX.verifyHashedRekordTLogBody)(i,e);{let s=UMe.Entry.fromJSON(i);return(0,UX.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new qO.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(z4t,"verifyTLogBody");function $4t(t,e){let r=!1;if(j4t(t)&&((0,V4t.verifyTLogSET)(t,e),r=!0),W4t(t)){let n=(0,G4t.verifyCheckpoint)(t,e);(0,H4t.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new qO.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o($4t,"verifyTLogInclusion");function j4t(t){return t.inclusionPromise!==void 0}o(j4t,"isTLogEntryWithInclusionPromise");function W4t(t){return t.inclusionProof!==void 0}o(W4t,"isTLogEntryWithInclusionProof")});var zMe=A(HO=>{"use strict";Object.defineProperty(HO,"__esModule",{value:!0});HO.Verifier=void 0;var J4t=require("util"),em=Li(),GMe=EMe(),qX=CMe(),HMe=wMe(),VMe=qMe(),HX=class{static{o(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),i=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,i),r&&this.verifyPolicy(r,i.identity||{}),i}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"time Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(tp,"getBooleanInput");function Rce(t,e){if(process.env.GITHUB_OUTPUT||"")return Cx("OUTPUT",gL(t,e));process.stdout.write(aq.EOL),hu("set-output",{name:t},fu(e))}o(Rce,"setOutput");function IN(t){process.exitCode=oq.Failure,lg(t)}o(IN,"setFailed");function rp(){return process.env.RUNNER_DEBUG==="1"}o(rp,"isDebug");function D(t){hu("debug",{},t)}o(D,"debug");function lg(t,e={}){hu("error",pL(e),t instanceof Error?t.toString():t)}o(lg,"error");function Ht(t,e={}){hu("warning",pL(e),t instanceof Error?t.toString():t)}o(Ht,"warning");function O(t){process.stdout.write(t+aq.EOL)}o(O,"info");function KJe(t){mL("group",t)}o(KJe,"startGroup");function XJe(){mL("endgroup")}o(XJe,"endGroup");function Qr(t,e){return YJe(this,void 0,void 0,function*(){KJe(t);let r;try{r=yield e()}finally{XJe()}return r})}o(Qr,"group");function Uo(t,e){if(process.env.GITHUB_STATE||"")return Cx("STATE",gL(t,e));hu("save-state",{name:t},fu(e))}o(Uo,"saveState");function Dce(t){return process.env[`STATE_${t}`]||""}o(Dce,"getState");var WI=N(require("fs"),1),I$=N(require("os"),1),w$=N(require("path"),1);var kce=N(require("os"),1);function n0(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(n0,"toCommandValue");function Pce(t,e,r){let n=new cq(t,e,r);process.stdout.write(n.toString()+kce.EOL)}o(Pce,"issueCommand");var Qce="::",cq=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=Qce+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 i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${e9e(i)}`)}}return e+=`${Qce}${ZJe(this.message)}`,e}};function ZJe(t){return n0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(ZJe,"escapeData");function e9e(t){return n0(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(e9e,"escapeProperty");var Mce=N(require("os"),1);var Lce=require("os"),i0=require("fs");var lq=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:t9e,appendFile:r9e,writeFile:n9e}=i0.promises,Oce="GITHUB_STEP_SUMMARY";var uq=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return lq(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[Oce];if(!e)throw new Error(`Unable to find environment variable for $${Oce}. Check if your runtime environment supports job summaries.`);try{yield t9e(e,i0.constants.R_OK|i0.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 i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return lq(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?n9e:r9e)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return lq(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(Lce.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).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:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).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}),i=this.wrap("blockquote",e,n);return this.adLine truncated
`),e=e.replace(/\r/g,`
`));let i=e.split(`
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new y0(s));return n.searchPaths.push(...Vq(n.patterns)),n})}static stat(e,r,n){return Xq(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Ag.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){zo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Ag.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Ag.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){zo(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var $7e=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function mde(t,e){return $7e(this,void 0,void 0,function*(){return yield GN.create(t,e)})}o(mde,"create");var s_=N(require("crypto"),1),Eg=N(require("fs"),1),op=N(require("path"),1),lhe=N(ahe(),1),uhe=N(require("util"),1);var B0;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(B0||(B0={}));var $i;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})($i||($i={}));var no;(function(t){t.GNU="gnu",t.BSD="bsd"})(no||(no={}));var r_=2,n_=5e3,E3=5e3,C3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,che=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,x0="cache.tar",b3="manifest.txt",WYt=10*Math.pow(1024,3),i_="cache read denied:";var yg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},ttt=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(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},rtt="1.0";function v0(){return yg(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=op.join(n,"actions","temp")}let r=op.join(e,s_.randomUUID());return yield _u(r),r})}o(v0,"createTempDirectory");function qc(t){return Eg.statSync(t).size}o(qc,"getArchiveFileSizeInBytes");function I3(t){return yg(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield mde(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=ttt(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=op.relative(c,i).replace(new RegExp(`\\${op.sep}`,"g"),"/");D(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(I3,"resolvePaths");function N0(t){return yg(this,void 0,void 0,function*(){return uhe.promisify(Eg.unlink)(t)})}o(N0,"unlinkFile");function dhe(t){return yg(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),D(`Checking ${e} ${r.join(" ")}`);try{yield to(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){D(i.message)}return n=n.trim(),D(n),n})}o(dhe,"getVersion");function _0(){return yg(this,void 0,void 0,function*(){let t=yield dhe("zstd",["--quiet"]),e=lhe.clean(t);return D(`zstd version: ${e}`),t===""?$i.Gzip:$i.ZstdWithoutLong})}o(_0,"getCompressionMethod");function cf(t){return t===$i.Gzip?B0.Gzip:B0.Zstd}o(cf,"getCacheFileName");function fhe(){return yg(this,void 0,void 0,function*(){return Eg.existsSync(C3)?C3:(yield dhe("tar")).toLowerCase().includes("gnu tar")?oi("tar"):""})}o(fhe,"getGnuTarPathOnWindows");function w3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(w3,"assertDefined");function Cg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(rtt),s_.createHash("sha256").update(n.join("|")).digest("hex")}o(Cg,"getCacheVersion");function hhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(hhe,"getRuntimeToken");var R0=N(require("http"),1),x3=N(require("https"),1);function S3(t){let e=t.protocol==="https:";if(ntt(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 a_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new a_(`http://${r}`)}else return}o(S3,"getProxyUrl");function ntt(t){if(!t.hostname)return!1;let e=t.hostname;if(itt(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 i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(ntt,"checkBypass");function itt(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(itt,"isLoopbackAddress");var a_=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 lf=N(cm(),1),phe=N(Kd(),1);var Xr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},kr;(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"})(kr||(kr={}));var ji;(function(t){t.Accept="accept",t.ContentType="content-type"})(ji||(ji={}));var Qu;(function(t){t.ApplicationJson="application/json"})(Qu||(Qu={}));var ott=[kr.MovedPermanently,kr.ResourceMoved,kr.SeeOther,kr.TemporaryRedirect,kr.PermanentRedirect],att=[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout],ctt=["OPTIONS","GET","DELETE","HEAD"],ltt=10,utt=5,Gc=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${Ett.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function h_(t){return t instanceof Wi?!0:cp(t)&&t.name==="RestError"}o(h_,"isRestError");function Cs(t,e){return Buffer.from(t,e)}o(Cs,"stringToUint8Array");var p_=N(require("node:http"),1),A_=N(require("node:https"),1),O3=N(require("node:zlib"),1),Dhe=require("node:stream");var Wo=D0("ts-http-runtime");var Ctt={};function Q0(t){return t&&typeof t.pipe=="function"}o(Q0,"isReadableStream");function Rhe(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(Rhe,"isStreamComplete");function Qhe(t){return t&&typeof t.byteLength=="number"}o(Qhe,"isArrayBuffer");var m_=class extends Dhe.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(i){n(i)}}constructor(e){super(),this.progressCallback=e}},L3=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 Hc("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Ya;Wo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=Stt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let g=e.onUploadProgress,m=new m_(g);m.on("error",E=>{Wo.error("Error in upload progress",E)}),Q0(c)?c.pipe(m):m.end(c),c=m}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=btt(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?Itt(u,d):u;let p=e.onDownloadProgress;if(p){let g=new m_(p);g.on("error",m=>{Wo.error("Error in download progress",m)}),l.pipe(g),l=g}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await wtt(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();Q0(c)&&(u=Rhe(c));let d=Promise.resolve();Q0(l)&&(d=Rhe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{Wo.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?p_.default.request(c,l):A_.default.request(c,l);d.once("error",f=>{u(new Wi(f.message,{code:f.code??Wi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&Q0(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Qhe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Wo.error("Unrecognized body type",n),u(new Wi("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?p_.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new p_.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return A_.default.globalAgent;let i=e.tlsSettings??Ctt,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(Wo.info("No cached TLS Agent exist, creating a new Agent"),s=new A_.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function btt(t){let e=io();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(btt,"getResponseHeaders");function Itt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=O3.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=O3.default.createInflate();return t.pipe(n),n}return t}o(Itt,"getDecodedResponseStream");function wtt(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Wi(`Error reading response as text: ${i.message}`,{code:Wi.PARSE_ERROR}))})})}o(wtt,"streamToText");function Stt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(tnt,"encodeHeaders");function rnt(t){return t instanceof Uint8Array?t.byteLength:U_(t)?t.size===-1?void 0:t.size:void 0}o(rnt,"getLength");function nnt(t){let e=0;for(let r of t){let n=rnt(r);if(n===void 0)return;e+=n}return e}o(nnt,"getTotalLength");async function int(t,e,r){let n=[Cs(`--${r}`,"utf-8"),...e.flatMap(s=>[Cs(`\r
`,"utf-8"),Cs(tnt(s.headers),"utf-8"),Cs(`\r
`).map(s=>s.trim());for(let s of i)!s||s.startsWith("#")||n.patterns.push(new y0(s));return n.searchPaths.push(...Vq(n.patterns)),n})}static stat(e,r,n){return Zq(this,void 0,void 0,function*(){let i;if(r.followSymbolicLinks)try{i=yield Ag.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){zo(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else i=yield Ag.promises.lstat(e.path);if(i.isDirectory()&&r.followSymbolicLinks){let s=yield Ag.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){zo(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return i})}};var J7e=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function mde(t,e){return J7e(this,void 0,void 0,function*(){return yield GN.create(t,e)})}o(mde,"create");var s_=N(require("crypto"),1),Eg=N(require("fs"),1),op=N(require("path"),1),lhe=N(ahe(),1),uhe=N(require("util"),1);var B0;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(B0||(B0={}));var $i;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})($i||($i={}));var no;(function(t){t.GNU="gnu",t.BSD="bsd"})(no||(no={}));var r_=2,n_=5e3,C3=5e3,b3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,che=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,x0="cache.tar",I3="manifest.txt",KYt=10*Math.pow(1024,3),i_="cache read denied:";var yg=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},itt=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(s){r[s]=t[s]&&function(a){return new Promise(function(c,l){a=t[s](a),i(c,l,a.done,a.value)})}}function i(s,a,c,l){Promise.resolve(l).then(function(u){s({value:u,done:c})},a)}},stt="1.0";function v0(){return yg(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=op.join(n,"actions","temp")}let r=op.join(e,s_.randomUUID());return yield _u(r),r})}o(v0,"createTempDirectory");function qc(t){return Eg.statSync(t).size}o(qc,"getArchiveFileSizeInBytes");function w3(t){return yg(this,void 0,void 0,function*(){var e,r,n,i,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),l=yield mde(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=itt(l.globGenerator()),f;f=yield d.next(),e=f.done,!e;u=!0){i=f.value,u=!1;let p=op.relative(c,i).replace(new RegExp(`\\${op.sep}`,"g"),"/");D(`Matched: ${p}`),p===""?a.push("."):a.push(`${p}`)}}catch(h){r={error:h}}finally{try{!u&&!e&&(n=d.return)&&(yield n.call(d))}finally{if(r)throw r.error}}return a})}o(w3,"resolvePaths");function N0(t){return yg(this,void 0,void 0,function*(){return uhe.promisify(Eg.unlink)(t)})}o(N0,"unlinkFile");function dhe(t){return yg(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),D(`Checking ${e} ${r.join(" ")}`);try{yield to(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(i=>n+=i.toString(),"stdout"),stderr:o(i=>n+=i.toString(),"stderr")}})}catch(i){D(i.message)}return n=n.trim(),D(n),n})}o(dhe,"getVersion");function _0(){return yg(this,void 0,void 0,function*(){let t=yield dhe("zstd",["--quiet"]),e=lhe.clean(t);return D(`zstd version: ${e}`),t===""?$i.Gzip:$i.ZstdWithoutLong})}o(_0,"getCompressionMethod");function cf(t){return t===$i.Gzip?B0.Gzip:B0.Zstd}o(cf,"getCacheFileName");function fhe(){return yg(this,void 0,void 0,function*(){return Eg.existsSync(b3)?b3:(yield dhe("tar")).toLowerCase().includes("gnu tar")?oi("tar"):""})}o(fhe,"getGnuTarPathOnWindows");function S3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(S3,"assertDefined");function Cg(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(stt),s_.createHash("sha256").update(n.join("|")).digest("hex")}o(Cg,"getCacheVersion");function hhe(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(hhe,"getRuntimeToken");var R0=N(require("http"),1),v3=N(require("https"),1);function B3(t){let e=t.protocol==="https:";if(ott(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 a_(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new a_(`http://${r}`)}else return}o(B3,"getProxyUrl");function ott(t){if(!t.hostname)return!1;let e=t.hostname;if(att(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 i=[t.hostname.toUpperCase()];typeof n=="number"&&i.push(`${i[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||i.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}o(ott,"checkBypass");function att(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(att,"isLoopbackAddress");var a_=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 lf=N(cm(),1),phe=N(Kd(),1);var Xr=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},kr;(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"})(kr||(kr={}));var ji;(function(t){t.Accept="accept",t.ContentType="content-type"})(ji||(ji={}));var Qu;(function(t){t.ApplicationJson="application/json"})(Qu||(Qu={}));var ltt=[kr.MovedPermanently,kr.ResourceMoved,kr.SeeOther,kr.TemporaryRedirect,kr.PermanentRedirect],utt=[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout],dtt=["OPTIONS","GET","DELETE","HEAD"],ftt=10,htt=5,Gc=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${Itt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function h_(t){return t instanceof Wi?!0:cp(t)&&t.name==="RestError"}o(h_,"isRestError");function Cs(t,e){return Buffer.from(t,e)}o(Cs,"stringToUint8Array");var p_=N(require("node:http"),1),A_=N(require("node:https"),1),L3=N(require("node:zlib"),1),Dhe=require("node:stream");var Wo=D0("ts-http-runtime");var wtt={};function Q0(t){return t&&typeof t.pipe=="function"}o(Q0,"isReadableStream");function Rhe(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(Rhe,"isStreamComplete");function Qhe(t){return t&&typeof t.byteLength=="number"}o(Qhe,"isArrayBuffer");var m_=class extends Dhe.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(i){n(i)}}constructor(e){super(),this.progressCallback=e}},F3=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 Hc("The operation was aborted. Request has already been canceled.");n=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let i;e.timeout>0&&(i=setTimeout(()=>{let u=new Ya;Wo.info(`request to '${u.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let u=vtt(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,g=new m_(m);g.on("error",E=>{Wo.error("Error in upload progress",E)}),Q0(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);i!==void 0&&clearTimeout(i);let d=Stt(u),h={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),h;l=a?Btt(u,d):u;let p=e.onDownloadProgress;if(p){let m=new m_(p);m.on("error",g=>{Wo.error("Error in download progress",g)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(h.status)?h.readableStreamBody=l:h.bodyAsText=await xtt(l),h}finally{if(e.abortSignal&&n){let u=Promise.resolve();Q0(c)&&(u=Rhe(c));let d=Promise.resolve();Q0(l)&&(d=Rhe(l)),Promise.all([u,d]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(f=>{Wo.warning("Error when cleaning up abortListener on httpRequest",f)})}}}makeRequest(e,r,n){let i=new URL(e.url),s=i.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:i.hostname,path:`${i.pathname}${i.search}`,port:i.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let d=s?p_.default.request(c,l):A_.default.request(c,l);d.once("error",f=>{u(new Wi(f.message,{code:f.code??Wi.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let f=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(f),u(f)}),n&&Q0(n)?n.pipe(d):n?typeof n=="string"||Buffer.isBuffer(n)?d.end(n):Qhe(n)?d.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Wo.error("Unrecognized body type",n),u(new Wi("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?p_.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new p_.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return A_.default.globalAgent;let i=e.tlsSettings??wtt,s=this.cachedHttpsAgents.get(i);return s&&s.options.keepAlive===!n||(Wo.info("No cached TLS Agent exist, creating a new Agent"),s=new A_.default.Agent({keepAlive:!n,...i}),this.cachedHttpsAgents.set(i,s)),s}}};function Stt(t){let e=io();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(Stt,"getResponseHeaders");function Btt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=L3.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=L3.default.createInflate();return t.pipe(n),n}return t}o(Btt,"getDecodedResponseStream");function xtt(t){return new Promise((e,r)=>{let n=[];t.on("data",i=>{Buffer.isBuffer(i)?n.push(i):n.push(Buffer.from(i))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",i=>{i&&i?.name==="AbortError"?r(i):r(new Wi(`Error reading response as text: ${i.message}`,{code:Wi.PARSE_ERROR}))})})}o(xtt,"streamToText");function vtt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(int,"encodeHeaders");function snt(t){return t instanceof Uint8Array?t.byteLength:U_(t)?t.size===-1?void 0:t.size:void 0}o(snt,"getLength");function ont(t){let e=0;for(let r of t){let n=snt(r);if(n===void 0)return;e+=n}return e}o(ont,"getTotalLength");async function ant(t,e,r){let n=[Cs(`--${r}`,"utf-8"),...e.flatMap(s=>[Cs(`\r
`,"utf-8"),Cs(int(s.headers),"utf-8"),Cs(`\r
`,"utf-8"),s.body,Cs(`\r
--${r}`,"utf-8")]),Cs(`--\r
\r
`,"utf-8")],i=nnt(n);i&&t.headers.set("Content-Length",i),t.body=await Lpe(n)}o(int,"buildRequestBody");var O0="multipartPolicy",snt=70,ont=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ant(t){if(t.length>snt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ont.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(ant,"assertValidBoundary");function G_(){return{name:O0,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",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;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?ant(r):r=ent(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await int(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(G_,"multipartPolicy");function H_(){return f_()}o(H_,"createEmptyPipeline");var Fpe=l_({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),$er=Fpe.logger;function $c(t){return Fpe.createClientLogger(t)}o($c,"createClientLogger");var jc=$c("core-rest-pipeline");function rG(t={}){return y_({logger:jc.info,...t})}o(rG,"logPolicy");var nG=E_;function iG(t={}){return C_(t)}o(iG,"redirectPolicy");var V_=N(require("node:os"),1),z_=N(require("node:process"),1);function Mpe(){return"User-Agent"}o(Mpe,"getHeaderName");async function Upe(t){if(z_.default&&z_.default.versions){let e=`${V_.default.type()} ${V_.default.release()}; ${V_.default.arch()}`,r=z_.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(Upe,"setPlatformSpecificData");var $_="1.22.2";function Ant(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(Ant,"getUserAgentString");function qpe(){return Mpe()}o(qpe,"getUserAgentHeaderName");async function j_(t){let e=new Map;e.set("core-rest-pipeline",$_),await Upe(e);let r=Ant(e);return t?`${t} ${r}`:r}o(j_,"getUserAgentValue");var Gpe=qpe(),Hpe="userAgentPolicy";function sG(t={}){let e=j_(t.userAgentPrefix);return{name:Hpe,async sendRequest(r,n){return r.headers.has(Gpe)||r.headers.set(Gpe,await e),n(r)}}}o(sG,"userAgentPolicy");var co=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function oG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new co(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(oG,"createAbortablePromise");var Cnt="The delay was aborted.";function L0(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return oG(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??Cnt})}o(L0,"delay");function df(t){if(cp(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(df,"getErrorMessage");function Vpe(t){return cp(t)}o(Vpe,"isError");function _g(){return ap()}o(_g,"randomUUID");var Ot=dp;var zpe=Symbol("rawContent");function cG(t){return typeof t[zpe]=="function"}o(cG,"hasRawContent");function $pe(t){return cG(t)?t[zpe]():t}o($pe,"getRawContent");var W_=O0;function lG(){let t=G_();return{name:W_,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)cG(n.body)&&(n.body=$pe(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(lG,"multipartPolicy");var uG=b_;function dG(){return I_()}o(dG,"decompressResponsePolicy");function fG(t={}){return B_(t)}o(fG,"defaultRetryPolicy");function hG(){return x_()}o(hG,"formDataPolicy");function ff(t){return K3(t)}o(ff,"getDefaultProxySettings");function pG(t,e){return L_(t,e)}o(pG,"proxyPolicy");var jpe="setClientRequestIdPolicy";function AG(t="x-ms-client-request-id"){return{name:jpe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(AG,"setClientRequestIdPolicy");function mG(t){return F_(t)}o(mG,"agentPolicy");function gG(t){return M_(t)}o(gG,"tlsPolicy");var Tg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Wpe(t={}){let e=new yG(t.parentContext);return t.span&&(e=e.setValue(Tg.span,t.span)),t.namespace&&(e=e.setValue(Tg.namespace,t.namespace)),e}o(Wpe,"createTracingContext");var yG=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!Vit(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",Zr("InvalidTag",f,Ji(t,s))}let u=Mit(t,s);if(u===!1)return Zr("InvalidAttr","Attributes for '"+l+"' have open quote.",Ji(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=RAe(d,e);if(h===!0)n=!0;else return Zr(h.err.code,h.err.msg,Ji(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Zr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ji(t,a));if(r.length===0)return Zr("InvalidTag","Closing tag '"+l+"' has not been opened.",Ji(t,a));{let f=r.pop();if(l!==f.tagName){let h=Ji(t,f.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Ji(t,a))}r.length==0&&(i=!0)}}else return Zr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ji(t,s));else{let f=RAe(d,e);if(f!==!0)return Zr(f.err.code,f.err.msg,Ji(t,s-d.length+f.err.line));if(i===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Ji(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=TAe(t,s);continue}else if(t[s+1]==="?"){if(s=_Ae(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=Git(t,s);if(f==-1)return Zr("InvalidChar","char '&' is not expected.",Ji(t,s));s=f}else if(i===!0&&!NAe(t[s]))return Zr("InvalidXml","Extra text at the end",Ji(t,s));t[s]==="<"&&s--}}else{if(NAe(t[s]))continue;return Zr("InvalidChar","char '"+t[s]+"' is not expected.",Ji(t,s))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ji(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}o(aT,"validate");function NAe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(NAe,"isWhiteSpace");function _Ae(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",Ji(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(_Ae,"readPI");function TAe(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(TAe,"readCommentAndCDATA");var Lit='"',Fit="'";function Mit(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Lit||t[e]===Fit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(Mit,"readAttributeStr");var Uit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function RAe(t,e){let r=sT(t,Uit),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",J0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",J0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",J0(r[i]));let s=r[i][2];if(!Hit(s))return Zr("InvalidAttr","Attribute '"+s+"' is an invalid name.",J0(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return Zr("InvalidAttr","Attribute '"+s+"' is repeated.",J0(r[i]))}return!0}o(RAe,"validateAttributeString");function qit(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(qit,"validateNumberAmpersand");function Git(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,qit(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(Git,"validateAmpersand");function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Zr,"getErrorObject");function Hit(t){return OG(t)}o(Hit,"validateAttrName");function Vit(t){return OG(t)}o(Vit,"validateTagName");function Ji(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Ji,"getLineNumberForPosition");function J0(t){return t.startIndex+t[1].length}o(J0,"getPositionFromMatch");var DAe={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"},QAe={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"},kAe={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:"\Line truncated
`);let e=new Ss("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new X0(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=Pg(t,">",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=VG(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=zG(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new Ss(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Pg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Pg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=zG(t,c,i.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,g=d.attrExpPresent,m=d.closeIndex;if({tagName:f,tagExp:p}=VG(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),g=f!==p);let C=null,I={},B;B=hst(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&g&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(I=fst(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Q=c;if(this.isCurrentNodeStopNode){let M="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let $=this.readStopNodeData(t,h,m+1);if(!$)throw new Error(`Unexpected end of ${h}`);c=$.i,M=$.tagContent}let v=new Ss(f);C&&(v[":@"]=C),v.add(i.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,Q)}else{if(y){({tagName:f,tagExp:p}=VG(i.transformTagName,f,p,i));let M=new Ss(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let M=new Ss(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new Ss(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),r=M}n="",c=m}}}else n+=t[c];return e.child},"parseXml");function Est(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(Est,"addChild");function Cst(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(Cst,"replaceEntitiesValue");function bst(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(bst,"saveTextToParentTag");function Ist(){return this.stopNodeExpressionsSet.Line truncated
`;function Rst(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(KG(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(Rst,"detectXmlVersionFromArray");function eme(t,e,r,n,i){return!r.sanitizeName||mp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(eme,"resolveTagName");function YG(t,e){let r="";e.format&&(r=Tst);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 fo(c)):c instanceof fo&&n.push(c)}let i=Rst(t,e),s=new Yc;return tme(t,e,r,s,n,i)}o(YG,"toXml");function tme(t,e,r,n,i,s){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=JG(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=KG(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:eme(d,!1,e,n,s),p=Dst(u[":@"],e);n.push(h,p);let g=kst(n,i);if(h===e.textNodeName){let I=u[d];g||(I=e.tagValueProcessor(h,I),I=JG(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(h===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],B=fT(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let I=u[d][0][e.textNodeName],B=dT(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let I=ZAe(u[":@"],e,g,n,s);a+=(h==="?xml"?"":r)+`<${h}${I}?>`,c=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=ZAe(u[":@"],e,g,n,s),y=r+`<${h}${E}`,C;g?C=rme(u[d],e):C=tme(u[d],e,m,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}</${h}>`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${h}>`),c=!0,n.pop()}return a}o(tme,"arrToStr");function Dst(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Af(t[i]),n=!0}return n?r:null}o(Dst,"extractAttributeValues");function rme(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=KG(i);if(s===e.textNodeName)r+=i[s];else if(s===e.cdataPropName)r+=i[s][0][e.textNodeName];else if(s===e.commentPropName)r+=i[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=Qst(i[":@"],e),c=rme(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(rme,"getRawContent");function Qst(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Af(i)}"`}return r}o(Qst,"attr_to_str_raw");function KG(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(KG,"propName");function ZAe(t,e,r,n,i){let s="";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:eme(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=JG(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Af(u)}"`}return s}o(ZAe,"attr_to_str");function kst(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(kst,"checkStopNode");function JG(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(JG,"replaceEntitiesValue");function XG(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(XG,"getIgnoreAttributesFn");var Pst={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 xs(t){if(this.options=Object.assign({},Pst,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&&ArraLine truncated
`,"utf-8")],i=ont(n);i&&t.headers.set("Content-Length",i),t.body=await Lpe(n)}o(ant,"buildRequestBody");var O0="multipartPolicy",cnt=70,lnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function unt(t){if(t.length>cnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!lnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(unt,"assertValidBoundary");function G_(){return{name:O0,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",i=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!i)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=i;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?unt(r):r=nnt(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await ant(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(G_,"multipartPolicy");function H_(){return f_()}o(H_,"createEmptyPipeline");var Fpe=l_({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Jer=Fpe.logger;function $c(t){return Fpe.createClientLogger(t)}o($c,"createClientLogger");var jc=$c("core-rest-pipeline");function nG(t={}){return y_({logger:jc.info,...t})}o(nG,"logPolicy");var iG=E_;function sG(t={}){return C_(t)}o(sG,"redirectPolicy");var V_=N(require("node:os"),1),z_=N(require("node:process"),1);function Mpe(){return"User-Agent"}o(Mpe,"getHeaderName");async function Upe(t){if(z_.default&&z_.default.versions){let e=`${V_.default.type()} ${V_.default.release()}; ${V_.default.arch()}`,r=z_.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(Upe,"setPlatformSpecificData");var $_="1.22.2";function ynt(t){let e=[];for(let[r,n]of t){let i=n?`${r}/${n}`:r;e.push(i)}return e.join(" ")}o(ynt,"getUserAgentString");function qpe(){return Mpe()}o(qpe,"getUserAgentHeaderName");async function j_(t){let e=new Map;e.set("core-rest-pipeline",$_),await Upe(e);let r=ynt(e);return t?`${t} ${r}`:r}o(j_,"getUserAgentValue");var Gpe=qpe(),Hpe="userAgentPolicy";function oG(t={}){let e=j_(t.userAgentPrefix);return{name:Hpe,async sendRequest(r,n){return r.headers.has(Gpe)||r.headers.set(Gpe,await e),n(r)}}}o(oG,"userAgentPolicy");var co=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function aG(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:i}=e??{};return new Promise((s,a)=>{function c(){a(new co(i??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){n?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),n?.aborted)return c();try{t(d=>{l(),s(d)},d=>{l(),a(d)})}catch(d){a(d)}n?.addEventListener("abort",u)})}o(aG,"createAbortablePromise");var wnt="The delay was aborted.";function L0(t,e){let r,{abortSignal:n,abortErrorMsg:i}=e??{};return aG(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:i??wnt})}o(L0,"delay");function df(t){if(cp(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(df,"getErrorMessage");function Vpe(t){return cp(t)}o(Vpe,"isError");function _g(){return ap()}o(_g,"randomUUID");var Ot=dp;var zpe=Symbol("rawContent");function lG(t){return typeof t[zpe]=="function"}o(lG,"hasRawContent");function $pe(t){return lG(t)?t[zpe]():t}o($pe,"getRawContent");var W_=O0;function uG(){let t=G_();return{name:W_,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)lG(n.body)&&(n.body=$pe(n.body));return t.sendRequest(e,r)},"sendRequest")}}o(uG,"multipartPolicy");var dG=b_;function fG(){return I_()}o(fG,"decompressResponsePolicy");function hG(t={}){return B_(t)}o(hG,"defaultRetryPolicy");function pG(){return x_()}o(pG,"formDataPolicy");function ff(t){return X3(t)}o(ff,"getDefaultProxySettings");function AG(t,e){return L_(t,e)}o(AG,"proxyPolicy");var jpe="setClientRequestIdPolicy";function mG(t="x-ms-client-request-id"){return{name:jpe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(mG,"setClientRequestIdPolicy");function gG(t){return F_(t)}o(gG,"agentPolicy");function yG(t){return M_(t)}o(yG,"tlsPolicy");var Tg={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Wpe(t={}){let e=new EG(t.parentContext);return t.span&&(e=e.setValue(Tg.span,t.span)),t.namespace&&(e=e.setValue(Tg.namespace,t.namespace)),e}o(Wpe,"createTracingContext");var EG=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)l+=t[s];if(l=l.trim(),l[l.length-1]==="/"&&(l=l.substring(0,l.length-1),s--),!jit(l)){let f;return l.trim().length===0?f="Invalid space after '<'.":f="Tag '"+l+"' is an invalid name.",Zr("InvalidTag",f,Ji(t,s))}let u=Git(t,s);if(u===!1)return Zr("InvalidAttr","Attributes for '"+l+"' have open quote.",Ji(t,s));let d=u.value;if(s=u.index,d[d.length-1]==="/"){let f=s-d.length;d=d.substring(0,d.length-1);let h=RAe(d,e);if(h===!0)n=!0;else return Zr(h.err.code,h.err.msg,Ji(t,f+h.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Zr("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Ji(t,a));if(r.length===0)return Zr("InvalidTag","Closing tag '"+l+"' has not been opened.",Ji(t,a));{let f=r.pop();if(l!==f.tagName){let h=Ji(t,f.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+f.tagName+"' (opened in line "+h.line+", col "+h.col+") instead of closing tag '"+l+"'.",Ji(t,a))}r.length==0&&(i=!0)}}else return Zr("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Ji(t,s));else{let f=RAe(d,e);if(f!==!0)return Zr(f.err.code,f.err.msg,Ji(t,s-d.length+f.err.line));if(i===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Ji(t,s));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=TAe(t,s);continue}else if(t[s+1]==="?"){if(s=_Ae(t,++s),s.err)return s}else break;else if(t[s]==="&"){let f=zit(t,s);if(f==-1)return Zr("InvalidChar","char '&' is not expected.",Ji(t,s));s=f}else if(i===!0&&!NAe(t[s]))return Zr("InvalidXml","Extra text at the end",Ji(t,s));t[s]==="<"&&s--}}else{if(NAe(t[s]))continue;return Zr("InvalidChar","char '"+t[s]+"' is not expected.",Ji(t,s))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Ji(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}o(aT,"validate");function NAe(t){return t===" "||t===" "||t===`
`||t==="\r"}o(NAe,"isWhiteSpace");function _Ae(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 Zr("InvalidXml","XML declaration allowed only at the start of the document.",Ji(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(_Ae,"readPI");function TAe(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(TAe,"readCommentAndCDATA");var Uit='"',qit="'";function Git(t,e){let r="",n="",i=!1;for(;e<t.length;e++){if(t[e]===Uit||t[e]===qit)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){i=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:i}}o(Git,"readAttributeStr");var Hit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function RAe(t,e){let r=sT(t,Hit),n={};for(let i=0;i<r.length;i++){if(r[i][1].length===0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' has no space in starting.",J0(r[i]));if(r[i][3]!==void 0&&r[i][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[i][2]+"' is without value.",J0(r[i]));if(r[i][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[i][2]+"' is not allowed.",J0(r[i]));let s=r[i][2];if(!$it(s))return Zr("InvalidAttr","Attribute '"+s+"' is an invalid name.",J0(r[i]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return Zr("InvalidAttr","Attribute '"+s+"' is repeated.",J0(r[i]))}return!0}o(RAe,"validateAttributeString");function Vit(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(Vit,"validateNumberAmpersand");function zit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Vit(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(zit,"validateAmpersand");function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Zr,"getErrorObject");function $it(t){return LG(t)}o($it,"validateAttrName");function jit(t){return LG(t)}o(jit,"validateTagName");function Ji(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Ji,"getLineNumberForPosition");function J0(t){return t.startIndex+t[1].length}o(J0,"getPositionFromMatch");var DAe={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"},QAe={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"},kAe={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:"\Line truncated
`);let e=new Ss("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let i=this.options,s=new X0(i.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let d=Pg(t,">",c,"Closing Tag is not closed."),f=t.substring(c+2,d).trim();if(i.removeNSPrefix){let p=f.indexOf(":");p!==-1&&(f=f.substr(p+1))}f=zG(i.transformTagName,f,"",i).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let h=this.matcher.getCurrentTag();if(f&&i.unpairedTagsSet.has(f))throw new Error(`Unpaired tag can not be used as closing tag: </${f}>`);h&&i.unpairedTagsSet.has(h)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=d}else if(u===63){let d=$G(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let f=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(f){let h=f[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(h)||1),s.setXmlVersion(Number(h)||1)}if(!(i.ignoreDeclaration&&d.tagName==="?xml"||i.ignorePiTags)){let h=new Ss(d.tagName);h.add(i.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&i.ignoreAttributes!==!0&&(h[":@"]=f),this.addChild(r,h,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=Pg(t,"-->",c+4,"Comment is not closed.");if(i.commentPropName){let f=t.substring(c+4,d-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(i.commentPropName,[{[i.textNodeName]:f}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=s.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=Pg(t,"]]>",c,"CDATA is not closed.")-2,f=t.substring(c+9,d);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let h=this.parseTextData(f,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);h==null&&(h=""),i.cdataPropName?r.add(i.cdataPropName,[{[i.textNodeName]:f}]):r.add(i.textNodeName,h),c=d+2}else{let d=$G(t,c,i.removeNSPrefix);if(!d){let M=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${M}"`)}let f=d.tagName,h=d.rawTagName,p=d.tagExp,m=d.attrExpPresent,g=d.closeIndex;if({tagName:f,tagExp:p}=zG(i.transformTagName,f,p,i),i.strictReservedNames&&(f===i.commentPropName||f===i.cdataPropName||f===i.textNodeName||f===i.attributesGroupName))throw new Error(`Invalid tag name: ${f}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&i.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let y=!1;p.length>0&&p.lastIndexOf("/")===p.length-1&&(y=!0,f[f.length-1]==="/"?(f=f.substr(0,f.length-1),p=f):p=p.substr(0,p.length-1),m=f!==p);let C=null,I={},B;B=mst(h),f!==e.tagname&&this.matcher.push(f,{},B),f!==p&&m&&(C=this.buildAttributesMap(p,this.matcher,f),C&&(I=Ast(C,i))),f!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let Q=c;if(this.isCurrentNodeStopNode){let M="";if(y)c=d.closeIndex;else if(i.unpairedTagsSet.has(f))c=d.closeIndex;else{let j=this.readStopNodeData(t,h,g+1);if(!j)throw new Error(`Unexpected end of ${h}`);c=j.i,M=j.tagContent}let v=new Ss(f);C&&(v[":@"]=C),v.add(i.textNodeName,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,v,this.readonlyMatcher,Q)}else{if(y){({tagName:f,tagExp:p}=zG(i.transformTagName,f,p,i));let M=new Ss(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(i.unpairedTagsSet.has(f)){let M=new Ss(f);C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let M=new Ss(f);if(this.tagsNodeStack.length>i.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(M[":@"]=C),this.addChild(r,M,this.readonlyMatcher,Q),r=M}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function Ist(t,e,r,n){this.options.captureMetaData||(n=void 0);let i=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,i,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}o(Ist,"addChild");function wst(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let i=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,i)))return t}if(n.tagFilter){let i=this.options.jPath?r.toString():r;if(!n.tagFilter(e,i))return t}return this.entityDecoder.decode(t)}o(wst,"replaceEntitiesValue");function Sst(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(Sst,"saveTextToParentTag");function Bst(){return this.stopNodeExpressionsSet.Line truncated
`;function kst(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(XG(r)==="?xml"){let i=r[":@"];if(i){let s=e.attributeNamePrefix+"version";if(i[s])return i[s]}}return"1.0"}o(kst,"detectXmlVersionFromArray");function eme(t,e,r,n,i){return!r.sanitizeName||mp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(eme,"resolveTagName");function KG(t,e){let r="";e.format&&(r=Qst);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 fo(c)):c instanceof fo&&n.push(c)}let i=kst(t,e),s=new Yc;return tme(t,e,r,s,n,i)}o(KG,"toXml");function tme(t,e,r,n,i,s){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=YG(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=XG(u);if(d===void 0)continue;let h=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:eme(d,!1,e,n,s),p=Pst(u[":@"],e);n.push(h,p);let m=Lst(n,i);if(h===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(h,I),I=YG(I,e)),c&&(a+=r),a+=I,c=!1,n.pop();continue}else if(h===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],B=fT(I);a+=`<![CDATA[${B}]]>`,c=!1,n.pop();continue}else if(h===e.commentPropName){let I=u[d][0][e.textNodeName],B=dT(I);a+=r+`<!--${B}-->`,c=!0,n.pop();continue}else if(h[0]==="?"){let I=ZAe(u[":@"],e,m,n,s);a+=(h==="?xml"?"":r)+`<${h}${I}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=ZAe(u[":@"],e,m,n,s),y=r+`<${h}${E}`,C;m?C=rme(u[d],e):C=tme(u[d],e,g,n,i,s),e.unpairedTags.indexOf(h)!==-1?e.suppressUnpairedNode?a+=y+">":a+=y+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=y+"/>":C&&C.endsWith(">")?a+=y+`>${C}${r}</${h}>`:(a+=y+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${h}>`),c=!0,n.pop()}return a}o(tme,"arrToStr");function Pst(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let i in t){if(!Object.prototype.hasOwnProperty.call(t,i))continue;let s=i.startsWith(e.attributeNamePrefix)?i.substr(e.attributeNamePrefix.length):i;r[s]=Af(t[i]),n=!0}return n?r:null}o(Pst,"extractAttributeValues");function rme(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let i=t[n],s=XG(i);if(s===e.textNodeName)r+=i[s];else if(s===e.cdataPropName)r+=i[s][0][e.textNodeName];else if(s===e.commentPropName)r+=i[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=Ost(i[":@"],e),c=rme(i[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}o(rme,"getRawContent");function Ost(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=t[n];i===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${Af(i)}"`}return r}o(Ost,"attr_to_str_raw");function XG(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(XG,"propName");function ZAe(t,e,r,n,i){let s="";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:eme(c,!0,e,n,i),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=YG(u,e)),u===!0&&e.suppressBooleanAttributes?s+=` ${l}`:s+=` ${l}="${Af(u)}"`}return s}o(ZAe,"attr_to_str");function Lst(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(Lst,"checkStopNode");function YG(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(YG,"replaceEntitiesValue");function ZG(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(ZG,"getIgnoreAttributesFn");var Fst={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 xs(t){if(this.options=Object.assign({},Fst,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&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(xs,"Builder");function Ost(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Ost,"detectXmlVersionFromObj");function ZG(t,e,r,n,i){return!r.sanitizeName||mp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(ZG,"resolveTagName");xs.prototype.build=function(t){if(this.options.preserveOrder)return YG(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=Ost(t,this.options);return this.j2x(t,0,e,r).val}};xs.prototype.j2x=function(t,e,r,n){let i="",s="";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 d=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:ZG(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=ZG(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+"</"+d+this.tagEndChar}else s+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let f=t[l].length,h="",p="";for(let g=0;g<f;g++){let m=t[l][g];if(!(typeof m>"u"))if(m===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof m=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(m,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&m.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(m,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,m);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+m;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"</"+d+this.tagEndChar}else h+=this.buildTextValNode(m,d,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,d,p,e)),s+=h}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let f=Object.keys(t[l]),h=f.length;for(let p=0;p<h;p++){let g=ZG(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(g,""+t[l][f[p]],c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};xs.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+'="'+Af(e)+'"'};function Lst(t,e,r,n,i){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,i);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(Lst,"processTextOrObjNode");xs.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 i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[s]=Af(n[i]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=this.isAttribute(n);i&&(e[i]=Af(t[n]),r=!0)}return r?e:null};xs.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(xs,"Builder");function Mst(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let i=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(i)return i}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}o(Mst,"detectXmlVersionFromObj");function eH(t,e,r,n,i){return!r.sanitizeName||mp(t,{xmlVersion:i})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}o(eH,"resolveTagName");xs.prototype.build=function(t){if(this.options.preserveOrder)return KG(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Yc,r=Mst(t,this.options);return this.j2x(t,0,e,r).val}};xs.prototype.j2x=function(t,e,r,n){let i="",s="";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 d=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:eH(l,!1,this.options,r,n);if(typeof t[l]>"u")this.isAttribute(l)&&(s+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?s+="":d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)s+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let f=this.isAttribute(l);if(f&&!this.ignoreAttributesFn(f,a)){let h=eH(f,!0,this.options,r,n);i+=this.buildAttrPairStr(h,""+t[l],c)}else if(!f)if(l===this.options.textNodeName){let h=this.options.tagValueProcessor(l,""+t[l]);s+=this.replaceEntitiesValue(h)}else{r.push(d);let h=this.checkStopNode(r);if(r.pop(),h){let p=""+t[l];p===""?s+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:s+=this.indentate(e)+"<"+d+">"+p+"</"+d+this.tagEndChar}else s+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let f=t[l].length,h="",p="";for(let m=0;m<f;m++){let g=t[l][m];if(!(typeof g>"u"))if(g===null)d[0]==="?"?s+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let E=this.j2x(g,e+1,r,n);r.pop(),h+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(p+=E.attrStr)}else h+=this.processTextOrObjNode(g,d,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(d,g);E=this.replaceEntitiesValue(E),h+=E}else{r.push(d);let E=this.checkStopNode(r);if(r.pop(),E){let y=""+g;y===""?h+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:h+=this.indentate(e)+"<"+d+">"+y+"</"+d+this.tagEndChar}else h+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(h=this.buildObjectNode(h,d,p,e)),s+=h}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let f=Object.keys(t[l]),h=f.length;for(let p=0;p<h;p++){let m=eH(f[p],!0,this.options,r,n);i+=this.buildAttrPairStr(m,""+t[l][f[p]],c)}}else s+=this.processTextOrObjNode(t[l],d,e,r,n)}return{attrStr:i,val:s}};xs.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+'="'+Af(e)+'"'};function Ust(t,e,r,n,i){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,n,i);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(Ust,"processTextOrObjNode");xs.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 i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;let s=i.startsWith(this.options.attributeNamePrefix)?i.substring(this.options.attributeNamePrefix.length):i;e[s]=Af(n[i]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=this.isAttribute(n);i&&(e[i]=Af(t[n]),r=!0)}return r?e:null};xs.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(Ve.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Ve.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(i=>i.name.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE));r.sort((i,s)=>wT(i.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((i,s,a)=>!(s>0&&i.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(i=>{n+=`${i.name.toLowerCase().trimRight()}:${i.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=CT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let i=bT(e.url),s={};if(i){let a=[];for(let c in i)if(Object.prototype.hasOwnProperty.call(i,c)){let l=c.toLowerCase();s[l]=i[c],a.push(l)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var Pr=class extends Ep{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nI(e,r,this)}computeHMACSHA256(e){return(0,ume.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xn=$c("storage-common");var Xo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Xo||(Xo={}));var gf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$st=new co("The operation was aborted."),iI=class extends Kc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=gf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:gf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):gf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:gf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:gf.maxRetryDelayInMs):gf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:gf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:gf.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=ET(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=mf(i.url,Fu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(xn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return xn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return xn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return xn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ve.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(xn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Xo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Xo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return xn.info(`RetryPolicy: Delay for ${i}ms`),IT(i,n,$st)}};var sI=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new iI(e,r,this.retryOptions)}};var jst="storageBrowserPolicy";function dme(){return{name:jst,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=mf(t.url,Fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ve.COOKIE),t.headers.delete(Ve.CONTENT_LENGTH)),e(t)}}}o(dme,"storageBrowserPolicy");var Wst="StorageCorrectContentLengthPolicy";function fme(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Wst,async sendRequest(e,r){return t(e),r(e)}}}o(fme,"storageCorrectContentLengthPolicy");var Jst="storageRetryPolicy",Lg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kst=new co("The operation was aborted.");function hme(t={}){let e=t.retryPolicyType??Lg.retryPolicyType,r=t.maxTries??Lg.maxTries,n=t.retryDelayInMs??Lg.retryDelayInMs,i=t.maxRetryDelayInMs??Lg.maxRetryDelayInMs,s=t.secondaryHost??Lg.secondaryHost,a=t.tryTimeoutInMs??Lg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return Line truncated
${c}:${decodeURIComponent(s[c])}`}return n}};var Pr=class extends Ep{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new nI(e,r,this)}computeHMACSHA256(e){return(0,ume.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xn=$c("storage-common");var Xo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Xo||(Xo={}));var gf={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Jst=new co("The operation was aborted."),iI=class extends Kc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=gf){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:gf.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):gf.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:gf.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:gf.maxRetryDelayInMs):gf.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:gf.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:gf.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let i=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(i.url=ET(i.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(i.url=mf(i.url,Fu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xn.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(i),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(xn.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,i){if(r>=this.retryOptions.maxTries)return xn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(i){for(let a of s)if(i.name.toUpperCase().includes(a)||i.message.toUpperCase().includes(a)||i.code&&i.code.toString().toUpperCase()===a)return xn.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||i){let a=n?n.status:i?i.statusCode:0;if(!e&&a===404)return xn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xn.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Ve.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return i?.code==="PARSE_ERROR"&&i?.message.startsWith('Error "Error: Unclosed root tag')?(xn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let i=0;if(e)switch(this.retryOptions.retryPolicyType){case Xo.EXPONENTIAL:i=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Xo.FIXED:i=this.retryOptions.retryDelayInMs;break}else i=Math.random()*1e3;return xn.info(`RetryPolicy: Delay for ${i}ms`),IT(i,n,Jst)}};var sI=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new iI(e,r,this.retryOptions)}};var Yst="storageBrowserPolicy";function dme(){return{name:Yst,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=mf(t.url,Fu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ve.COOKIE),t.headers.delete(Ve.CONTENT_LENGTH)),e(t)}}}o(dme,"storageBrowserPolicy");var Kst="StorageCorrectContentLengthPolicy";function fme(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Kst,async sendRequest(e,r){return t(e),r(e)}}}o(fme,"storageCorrectContentLengthPolicy");var Xst="storageRetryPolicy",Lg={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Xo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Zst=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],eot=new co("The operation was aborted.");function hme(t={}){let e=t.retryPolicyType??Lg.retryPolicyType,r=t.maxTries??Lg.maxTries,n=t.retryDelayInMs??Lg.retryDelayInMs,i=t.maxRetryDelayInMs??Lg.maxRetryDelayInMs,s=t.secondaryHost??Lg.secondaryHost,a=t.tryTimeoutInMs??Lg.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:f,error:h}){if(d>=r)return Line truncated
`)+`
`+n(s)+i(s),c=(0,pme.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Ve.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Ve.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function n(s){let a=[];for(let[l,u]of s.headers)l.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>wT(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,d)=>!(u>0&&l.name.toLowerCase()===d[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(n,"getCanonicalizedHeadersString");function i(s){let a=CT(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=bT(s.url),u={};if(l){let d=[];for(let f in l)if(Object.prototype.hasOwnProperty.call(l,f)){let h=f.toLowerCase();u[h]=l[f],d.push(h)}d.sort();for(let f of d)c+=`
${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:Xst,async sendRequest(s,a){return e(s),a(s)}}}o(iH,"storageSharedKeyCredentialPolicy");var Zst="storageRequestFailureDetailsParserPolicy";function Ame(){return{name:Zst,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(Ame,"storageRequestFailureDetailsParserPolicy");var mme=require("node:crypto");var ST=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,mme.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var BT="12.31.0",xT="2026-02-06";var vT="https://storage.azure.com/.default",Mu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ka="",sH="*",eot=1*1024*1024;var tot=4*eot;var gme="AES256",yme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Eme=["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"],Cme=["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"],bme="BlobUsesCustomerSpecifiedEncryption",Ime="BlobDoesNotUseCustomerSpecifiedEncryption",wme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Uu(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(Uu,"isPipelineLike");var oI=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 en(t,e={}){t||(t=new yr);let r=new oI([],e);return r._credential=t,r}o(en,"newPipeline");function rot(t){let e=[not,Sme,iot,sot,oot,aot,lot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>cot(i));return{wrappedPolicies:kG(r),afterRetry:n}}}}o(rot,"processDownlevelPipeline");function oH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?PG(e):nH(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${BT}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=G0({...r,loggingOptions:{additionalAllowedHeaderNames:Eme,additionalAllowedQueryParameters:Cme,logger:pT.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:hT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:tH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:uG}),i.addPolicy(fme()),i.addPolicy(hme(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new rc(t.version,s,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:i}}o(rct,"generateBlobSASQueryParameters20150405");function nct(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(nct,"generateBlobSASQueryParameters20181109");function ict(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(ict,"generateBlobSASQueryParameters20201206");function sct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(sct,"generateBlobSASQueryParametersUDK20181109");function oct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(oct,"generateBlobSASQueryParametersUDK20200210");function act(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(act,"generateBlobSASQueryParametersUDK20201206");function cct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(cct,"generateBlobSASQueryParametersUDK20250705");function vp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(vp,"getCanonicalName");function Np(t){let e=t.version?t.version:xT;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(Np,"SASSignatureValuesSanityCheckAndAutofill");var yI=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=_g()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ka||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ne(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!==Ka||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=Ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ka||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ne(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!==Ka||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ka||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 val Line truncated
${f}:${decodeURIComponent(u[f])}`}return c}return o(i,"getCanonicalizedResourceString"),{name:tot,async sendRequest(s,a){return e(s),a(s)}}}o(sH,"storageSharedKeyCredentialPolicy");var rot="storageRequestFailureDetailsParserPolicy";function Ame(){return{name:rot,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(Ame,"storageRequestFailureDetailsParserPolicy");var mme=require("node:crypto");var ST=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,mme.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var BT="12.31.0",xT="2026-02-06";var vT="https://storage.azure.com/.default",Mu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ka="",oH="*",not=1*1024*1024;var iot=4*not;var gme="AES256",yme="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Eme=["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"],Cme=["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"],bme="BlobUsesCustomerSpecifiedEncryption",Ime="BlobDoesNotUseCustomerSpecifiedEncryption",wme=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Uu(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(Uu,"isPipelineLike");var oI=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 en(t,e={}){t||(t=new yr);let r=new oI([],e);return r._credential=t,r}o(en,"newPipeline");function sot(t){let e=[oot,Sme,aot,cot,lot,uot,fot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(i=>i(n)));if(r.length){let n=r.some(i=>dot(i));return{wrappedPolicies:PG(r),afterRetry:n}}}}o(sot,"processDownlevelPipeline");function aH(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?OG(e):iH(),t._coreHttpClient=n);let i=t._corePipeline;if(!i){let s=`azsdk-js-azure-storage-blob/${BT}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;i=G0({...r,loggingOptions:{additionalAllowedHeaderNames:Eme,additionalAllowedQueryParameters:Cme,logger:pT.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:hT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:rH,serializerOptions:{xml:{xmlCharKey:"#"}}}}),i.removePolicy({phase:"Retry"}),i.removePolicy({name:dG}),i.addPolicy(fme()),i.addPolicy(hme(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(i);return{sasQueryParameters:new rc(t.version,s,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:i}}o(sct,"generateBlobSASQueryParameters20150405");function oct(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}o(oct,"generateBlobSASQueryParameters20181109");function act(t,e){if(t=Np(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}o(act,"generateBlobSASQueryParameters20201206");function cct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}o(cct,"generateBlobSASQueryParametersUDK20181109");function lct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}o(lct,"generateBlobSASQueryParametersUDK20200210");function uct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}o(uct,"generateBlobSASQueryParametersUDK20201206");function dct(t,e){if(t=Np(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let i;t.permissions&&(t.blobName?i=pl.parse(t.permissions.toString()).toString():i=Al.parse(t.permissions.toString()).toString());let s=[i||"",t.startsOn?Lt(t.startsOn,!1):"",t.expiresOn?Lt(t.expiresOn,!1):"",vp(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Lt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Lt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?tc(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new rc(t.version,a,i,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}o(dct,"generateBlobSASQueryParametersUDK20250705");function vp(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}o(vp,"getCanonicalName");function Np(t){let e=t.version?t.version:xT;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(Np,"SASSignatureValuesSanityCheckAndAutofill");var yI=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=_g()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ka||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ne(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!==Ka||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-changeLease",r,async n=>{let i=Ne(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,i})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Ka||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ka||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 Ee.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ne(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!==Ka||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ka||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 val 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"}};Jg.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Dp=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"}};Dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var ylt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},Y5=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,i=(e/(1024*1024)/(n/1e3)).toFixed(1);O(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=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 vye(t,e,r){return ylt(this,void 0,void 0,function*(){var n;let i=new nc(t),s=i.getBlockBlobClient(),a=new Y5((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(),D(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new RR(`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(vye,"uploadCacheArchiveSDK");var _ye=N(require("buffer"),1),ml=N(require("fs"),1),Tye=N(require("stream"),1),Rye=N(require("util"),1);var DR=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function QR(t){return t?t>=200&&t<300:!1}o(QR,"isSuccessStatusCode");function Elt(t){return t?t>=500:!0}o(Elt,"isServerErrorStatusCode");function Clt(t){return t?[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout].includes(t):!1}o(Clt,"isRetryableStatusCode");function blt(t){return DR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(blt,"sleep");function Nye(t,e,r){return DR(this,arguments,void 0,function*(n,i,s,a=r_,c=n_,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(g){l&&(f=l(g)),p=!0,u=g.message}if(f&&(h=s(f),!Elt(h)))return f;if(h&&(p=Clt(h),u=`Cache service responded with ${h}`),D(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){D(`${n} - Error is not retryable`);break}yield blt(c),d++}throw Error(`${n} failed: ${u}`)})}o(Nye,"retry");function _I(t,e){return DR(this,arguments,void 0,function*(r,n,i=r_,s=n_){return yield Nye(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof Gc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(_I,"retryTypedResponse");function Yg(t,e){return DR(this,arguments,void 0,function*(r,n,i=r_,s=n_){return yield Nye(r,n,a=>a.message.statusCode,i,s)})}o(Yg,"retryHttpClientResponse");var na=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ilt(t,e){return na(this,void 0,void 0,function*(){yield Rye.promisify(Tye.pipeline)(t.message,e)})}o(Ilt,"pipeResponseToStream");var kR=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,D(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])D(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(_lt,"printCachesListForDiagnostics");function tz(t,e,r){return Ns(this,void 0,void 0,function*(){let n=new Vye.URL(t),i=Pye(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Qye(t,e,i):i.concurrentBlobDownloads?yield Dye(t,e,i):yield PR(t,e):yield PR(t,e)})}o(tz,"downloadCache");function $ye(t,e,r){return Ns(this,void 0,void 0,function*(){let n=ez(),i=Cg(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield _I("reserveCache",()=>Ns(this,void 0,void 0,function*(){return n.postJson(RI("caches"),s)}))})}o($ye,"reserveCache");function Hye(t,e){return`bytes ${t}-${e}/*`}o(Hye,"getContentRange");function Tlt(t,e,r,n,i){return Ns(this,void 0,void 0,function*(){D(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${Hye(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":Hye(n,i)},a=yield Yg(`uploadChunk (start: ${n}, end: ${i})`,()=>Ns(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!QR(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Tlt,"uploadChunk");function Rlt(t,e,r,n){return Ns(this,void 0,void 0,function*(){let i=qc(r),s=RI(`caches/${e.toString()}`),a=Kg.openSync(r,"r"),c=K5(n),l=w3("uploadConcurrency",c.uploadConcurrency),u=w3("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];D("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>Ns(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,g=f+h-1;f+=u,yield Tlt(t,s,()=>Kg.createReadStream(r,{fd:a,start:p,end:g,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),p,g)}})))}finally{Kg.closeSync(a)}})}o(Rlt,"uploadFile");function Dlt(t,e,r){return Ns(this,void 0,void 0,function*(){let n={size:r};return yield _I("commitCache",()=>Ns(this,void 0,void 0,function*(){return t.postJson(RI(`caches/${e.toString()}`),n)}))})}o(Dlt,"commitCache");function rz(t,e,r,n){return Ns(this,void 0,void 0,function*(){if(K5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vye(r,e,n)}else{let s=ez();D("Upload cache"),yield Rlt(s,t,e,n),D("Commiting cache");let a=qc(e);O(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Dlt(s,t,a);if(!QR(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);O("Cache saved successfully")}})}o(rz,"saveCache");var UEe=N(QEe(),1),nn=N(rn(),1),Ao=N(rn(),1),Lp=N(rn(),1),Fp=N(rn(),1),Mp=N(rn(),1);var Yz=N(rn(),1),Kz=N(rn(),1),LEe=N(rn(),1),FEe=N(rn(),1),MEe=N(rn(),1);var jz=N(rn(),1),Wz=N(rn(),1),kEe=N(rn(),1),PEe=N(rn(),1),OEe=N(rn(),1);var Jz=class extends OEe.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,PEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,kEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Wz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,jz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,jz.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Wz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},I2=new Jz;var Xz=class extends MEe.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(()=>I2,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,FEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,LEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(I2.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Kz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield h$(r,"create");yield p$(n,t)})}o(m$,"createTar");var hy=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},oc=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Up=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},g$="cache write denied:",x2=class t extends Up{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},VEe=i_,v2=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},N2=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function zEe(t){if(!t||t.length===0)throw new oc("Path Validation Error: At least one directory or file path is required")}o(zEe,"checkPaths");function y$(t){if(t.length>512)throw new oc(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new oc(`Key Validation Error: ${t} cannot contain commas.`)}o(y$,"checkKey");function E$(){return TI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(E$,"isFeatureAvailable");function $Ee(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=TI();D(`Cache service version: ${u}`),zEe(i);let d=Z5();if(!Lye(d)){O(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),D(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield jdt(i,s,a,c,l):yield $dt(i,s,a,c,l)})}o($Ee,"restoreCache");function $dt(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)y$(p);let f=yield _0(),h="";try{let p;try{p=yield zye(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(m){let E=(u=m?.message)!==null&&u!==void 0?u:"";throw E.includes(VEe)?new v2(E):m}if(!p?.archiveLocation)return;if(c?.lookupOnly)return O("Lookup only - skipping download"),p.cacheKey;h=jI.join(yield v0(),cf(f)),D(`Archive Path: ${h}`),yield tz(p.archiveLocation,h,c),rp()&&(yield $I(h,f));let g=qc(h);return O(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),yield A$(h,f),O("Cache restored successfully"),p.cacheKey}catch(p){let g=p;if(g.name===oc.name)throw p;g instanceof Gc&&typeof g.statusCode=="number"&&g.statusCode>=500?lg(`Failed to restore: ${p.message}`):Ht(`Failed to restore: ${p.message}`)}finally{try{yield N0(h)}catch(p){D(`Failed to delete archive: ${p}`)}}})}o($dt,"restoreCacheV1");function jdt(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)y$(h);let f="";try{let h=f$(),p=yield _0(),g={key:s,restoreKeys:a,version:Cg(i,p,l)},m;try{m=yield h.GetCacheEntryDownloadURL(g)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(VEe)?new v2(I):C}if(!m.ok){D(`Cache not found for version ${g.version} of keys: ${d.join(", ")}`);return}if(g.key!==m.matchedKey?O(`Cache hit for restore-key: ${m.matchedKey}`):O(`Cache hit for: ${m.matchedKey}`),c?.lookupOnly)return O("Lookup only - skipping download"),m.matchedKey;f=jI.join(yield v0(),cf(p)),D(`Archive path: ${f}`),D(`Starting download of archive to: ${f}`),yield tz(m.signedDownloadUrl,f,c);let y=qc(f);return O(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),rp()&&(yield $I(f,p)),yield A$(f,p),O("Cache restored successfully"),m.matchedKey}catch(h){let p=h;if(p.name===oc.name)throw h;p instanceof Gc&&typeof p.statusCode=="number"&&p.statusCode>=500?lg(`Failed to restore: ${h.message}`):Ht(`Failed to restore: ${h.message}`)}finally{try{f&&(yield N0(f))}catch(h){D(`Failed to delete archive: ${h}`)}}})}o(jdt,"restoreCacheV2");function C$(t,e,r){return hy(this,arguments,void 0,function*(n,i,s,a=!1){let c=TI();D(`Cache service version: ${c}`),zEe(n),y$(i);let l=Z5();return Fye(l)?c==="v2"?yield Jdt(n,i,s,a):yield Wdt(n,i,s,a):(O(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),D(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(C$,"saveCache");function Wdt(t,e,r){return hy(this,arguments,void Line truncated
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:g,relax_quotes:m,rtrim:E,skip_empty_lines:y,to:C,to_line:I}=this.options,{comment:B,escape:Q,quote:M,record_delimiter:v}=this.options,{bomSkipped:$,delimiterDiscovered:R,delimiterBufPrevious:H,rawBuffer:V,escapeIsQuote:J}=this.state;if(!R&&u){let z;if(H===void 0?z=n:H!==void 0&&n===void 0?z=H:z=Buffer.concat([H,n]),n=void 0,i||z.length>u.size)this.options.delimiter=[Buffer.from(swe(z,this.options.delimiter_auto))],this.state.previousBuf=z,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=z;return}}let{previousBuf:ee}=this.state,oe;if(ee===void 0)if(n===void 0){a();return}else oe=n;else ee!==void 0&&n===void 0?oe=ee:oe=Buffer.concat([ee,n]);if($===!1)if(c===!1)this.state.bomSkipped=!0;else if(oe.length<3){if(i===!1){this.state.previousBuf=oe;return}}else{for(let z in _y)if(_y[z].compare(oe,0,_y[z].length)===0){let Ie=_y[z].length;this.state.bufBytesStart+=Ie,oe=oe.slice(Ie);let Se=Ny({...this.original_options,encoding:z});for(let st in Se)this.options[st]=Se[st];({comment:B,escape:Q,quote:M}=this.options);break}this.state.bomSkipped=!0}let pe=oe.length,Y;for(Y=0;Y<pe&&!this.__needMoreData(Y,pe,i);Y++){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&&v.length===0&&this.__autoDiscoverRecordDelimiter(oe,Y)&&(v=this.options.record_delimiter);let z=oe[Y];if(g===!0&&V.append(z),(z===Cyt||z===byt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(oe,Y,z)&&Y+Q.length<pe)if(J){if(this.__isQuote(oe,Y+Q.length)){this.state.escaping=!0,Y+=Q.length-1;continue}}else{this.state.escaping=!0,Y+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(oe,Y))if(this.state.quoting===!0){let st=oe[Y+M.length],Ct=E&&this.__isCharTrimable(oe,Y+M.length),fr=B!==null&&this.__compareBytes(B,oe,Y+M.length,st),fn=this.__isDelimiter(oe,Y+M.length,st),ii=v.length===0?this.__autoDiscoverRecordDelimiter(oe,Y+M.length):this.__isRecordDelimiter(st,oe,Y+M.length);if(Q!==null&&this.__isEscape(oe,Y,z)&&this.__isQuote(oe,Y+Q.length))Y+=Q.length-1;else if(!st||fn||ii||fr||Ct){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=M.length-1;continue}else if(m===!1){let hr=this.__error(new dt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(st)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hr!==void 0)return hr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(M),Y+=M.length-1}else if(this.state.field.length!==0){if(m===!1){let st=this.__infoField(),Ct=Object.keys(_y).map(fn=>_y[fn].equals(this.state.field.toString())?fn:!1).filter(Boolean)[0],fr=this.__error(new dt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(st.column)} at line ${st.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ct?`(${Ct} bom)`:void 0],this.options,st,{field:this.state.field}));if(fr!==void 0)return fr}}else{this.state.quoting=!0,Y+=M.length-1;continue}if(this.state.quoting===!1){let st=this.__isRecordDelimiter(z,oe,Y);if(st!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=st-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=st-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let fn=this.__onField();if(fn!==void 0)return fn;this.info.bytes=this.state.bufBytesStart+Y+st;let ii=this.__onRecord(s);if(ii!==void 0)return ii;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=st-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,oe,Y,z)!==0){this.state.commenting=!0;continue}let Ct=this.__isDelimiter(oe,Y,z);if(Ct!==0){this.info.bytes=this.state.bufBytesStart+Y;let fr=this.__onField();if(fr!==void 0)return fr;Y+=Ct-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new dt("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 Ie=h===!1||this.state.quoting===!0||this.state.f Line truncated
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"}};Dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var NI=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var blt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},K5=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,i=(e/(1024*1024)/(n/1e3)).toFixed(1);O(`Sent ${e} of ${this.contentLength} (${r}%), ${i} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=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 vye(t,e,r){return blt(this,void 0,void 0,function*(){var n;let i=new nc(t),s=i.getBlockBlobClient(),a=new K5((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(),D(`BlobClient: ${i.name}:${i.accountName}:${i.containerName}`);let l=yield s.uploadFile(e,c);if(l._response.status>=400)throw new RR(`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(vye,"uploadCacheArchiveSDK");var _ye=N(require("buffer"),1),ml=N(require("fs"),1),Tye=N(require("stream"),1),Rye=N(require("util"),1);var DR=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function QR(t){return t?t>=200&&t<300:!1}o(QR,"isSuccessStatusCode");function Ilt(t){return t?t>=500:!0}o(Ilt,"isServerErrorStatusCode");function wlt(t){return t?[kr.BadGateway,kr.ServiceUnavailable,kr.GatewayTimeout].includes(t):!1}o(wlt,"isRetryableStatusCode");function Slt(t){return DR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Slt,"sleep");function Nye(t,e,r){return DR(this,arguments,void 0,function*(n,i,s,a=r_,c=n_,l=void 0){let u="",d=1;for(;d<=a;){let f,h,p=!1;try{f=yield i()}catch(m){l&&(f=l(m)),p=!0,u=m.message}if(f&&(h=s(f),!Ilt(h)))return f;if(h&&(p=wlt(h),u=`Cache service responded with ${h}`),D(`${n} - Attempt ${d} of ${a} failed with error: ${u}`),!p){D(`${n} - Error is not retryable`);break}yield Slt(c),d++}throw Error(`${n} failed: ${u}`)})}o(Nye,"retry");function _I(t,e){return DR(this,arguments,void 0,function*(r,n,i=r_,s=n_){return yield Nye(r,n,a=>a.statusCode,i,s,a=>{if(a instanceof Gc)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(_I,"retryTypedResponse");function Yg(t,e){return DR(this,arguments,void 0,function*(r,n,i=r_,s=n_){return yield Nye(r,n,a=>a.message.statusCode,i,s)})}o(Yg,"retryHttpClientResponse");var na=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Blt(t,e){return na(this,void 0,void 0,function*(){yield Rye.promisify(Tye.pipeline)(t.message,e)})}o(Blt,"pipeResponseToStream");var kR=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,D(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])D(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(Dlt,"printCachesListForDiagnostics");function rz(t,e,r){return Ns(this,void 0,void 0,function*(){let n=new Vye.URL(t),i=Pye(r);n.hostname.endsWith(".blob.core.windows.net")?i.useAzureSdk?yield Qye(t,e,i):i.concurrentBlobDownloads?yield Dye(t,e,i):yield PR(t,e):yield PR(t,e)})}o(rz,"downloadCache");function $ye(t,e,r){return Ns(this,void 0,void 0,function*(){let n=tz(),i=Cg(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:i,cacheSize:r?.cacheSize};return yield _I("reserveCache",()=>Ns(this,void 0,void 0,function*(){return n.postJson(RI("caches"),s)}))})}o($ye,"reserveCache");function Hye(t,e){return`bytes ${t}-${e}/*`}o(Hye,"getContentRange");function Qlt(t,e,r,n,i){return Ns(this,void 0,void 0,function*(){D(`Uploading chunk of size ${i-n+1} bytes at offset ${n} with content range: ${Hye(n,i)}`);let s={"Content-Type":"application/octet-stream","Content-Range":Hye(n,i)},a=yield Yg(`uploadChunk (start: ${n}, end: ${i})`,()=>Ns(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!QR(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(Qlt,"uploadChunk");function klt(t,e,r,n){return Ns(this,void 0,void 0,function*(){let i=qc(r),s=RI(`caches/${e.toString()}`),a=Kg.openSync(r,"r"),c=X5(n),l=S3("uploadConcurrency",c.uploadConcurrency),u=S3("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];D("Awaiting all uploads");let f=0;try{yield Promise.all(d.map(()=>Ns(this,void 0,void 0,function*(){for(;f<i;){let h=Math.min(i-f,u),p=f,m=f+h-1;f+=u,yield Qlt(t,s,()=>Kg.createReadStream(r,{fd:a,start:p,end:m,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),p,m)}})))}finally{Kg.closeSync(a)}})}o(klt,"uploadFile");function Plt(t,e,r){return Ns(this,void 0,void 0,function*(){let n={size:r};return yield _I("commitCache",()=>Ns(this,void 0,void 0,function*(){return t.postJson(RI(`caches/${e.toString()}`),n)}))})}o(Plt,"commitCache");function nz(t,e,r,n){return Ns(this,void 0,void 0,function*(){if(X5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vye(r,e,n)}else{let s=tz();D("Upload cache"),yield klt(s,t,e,n),D("Commiting cache");let a=qc(e);O(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield Plt(s,t,a);if(!QR(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);O("Cache saved successfully")}})}o(nz,"saveCache");var UEe=N(QEe(),1),nn=N(rn(),1),Ao=N(rn(),1),Lp=N(rn(),1),Fp=N(rn(),1),Mp=N(rn(),1);var Kz=N(rn(),1),Xz=N(rn(),1),LEe=N(rn(),1),FEe=N(rn(),1),MEe=N(rn(),1);var Wz=N(rn(),1),Jz=N(rn(),1),kEe=N(rn(),1),PEe=N(rn(),1),OEe=N(rn(),1);var Yz=class extends OEe.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,PEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,kEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Jz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,Wz.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,Wz.WireType.Varint).int64(e.permission);let i=n.writeUnknownFields;return i!==!1&&(i==!0?Jz.UnknownFieldHandler.onWrite:i)(this.typeName,e,r),r}},I2=new Yz;var Zz=class extends MEe.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(()=>I2,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,FEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,LEe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,i){let s=i??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,l]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(I2.internalBinaryRead(e,e.uint32(),n));break;default:let u=n.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let d=e.skip(l);u!==!1&&(u===!0?Xz.UnknownFieldHandler.onRead:u)(this.typeName,s,c,l,d)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield p$(r,"create");yield A$(n,t)})}o(g$,"createTar");var hy=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},oc=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Up=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},y$="cache write denied:",x2=class t extends Up{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},VEe=i_,v2=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},N2=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function zEe(t){if(!t||t.length===0)throw new oc("Path Validation Error: At least one directory or file path is required")}o(zEe,"checkPaths");function E$(t){if(t.length>512)throw new oc(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new oc(`Key Validation Error: ${t} cannot contain commas.`)}o(E$,"checkKey");function C$(){return TI()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(C$,"isFeatureAvailable");function $Ee(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){let u=TI();D(`Cache service version: ${u}`),zEe(i);let d=ez();if(!Lye(d)){O(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),D(`Skipped restore for paths [${i.join(", ")}] with primary key '${s}'.`);return}return u==="v2"?yield Ydt(i,s,a,c,l):yield Jdt(i,s,a,c,l)})}o($Ee,"restoreCache");function Jdt(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)E$(p);let f=yield _0(),h="";try{let p;try{p=yield zye(d,i,{compressionMethod:f,enableCrossOsArchive:l})}catch(g){let E=(u=g?.message)!==null&&u!==void 0?u:"";throw E.includes(VEe)?new v2(E):g}if(!p?.archiveLocation)return;if(c?.lookupOnly)return O("Lookup only - skipping download"),p.cacheKey;h=jI.join(yield v0(),cf(f)),D(`Archive Path: ${h}`),yield rz(p.archiveLocation,h,c),rp()&&(yield $I(h,f));let m=qc(h);return O(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield m$(h,f),O("Cache restored successfully"),p.cacheKey}catch(p){let m=p;if(m.name===oc.name)throw p;m instanceof Gc&&typeof m.statusCode=="number"&&m.statusCode>=500?lg(`Failed to restore: ${p.message}`):Ht(`Failed to restore: ${p.message}`)}finally{try{yield N0(h)}catch(p){D(`Failed to delete archive: ${p}`)}}})}o(Jdt,"restoreCacheV1");function Ydt(t,e,r,n){return hy(this,arguments,void 0,function*(i,s,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[s,...a];if(D("Resolved Keys:"),D(JSON.stringify(d)),d.length>10)throw new oc("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of d)E$(h);let f="";try{let h=h$(),p=yield _0(),m={key:s,restoreKeys:a,version:Cg(i,p,l)},g;try{g=yield h.GetCacheEntryDownloadURL(m)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(VEe)?new v2(I):C}if(!g.ok){D(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==g.matchedKey?O(`Cache hit for restore-key: ${g.matchedKey}`):O(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return O("Lookup only - skipping download"),g.matchedKey;f=jI.join(yield v0(),cf(p)),D(`Archive path: ${f}`),D(`Starting download of archive to: ${f}`),yield rz(g.signedDownloadUrl,f,c);let y=qc(f);return O(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),rp()&&(yield $I(f,p)),yield m$(f,p),O("Cache restored successfully"),g.matchedKey}catch(h){let p=h;if(p.name===oc.name)throw h;p instanceof Gc&&typeof p.statusCode=="number"&&p.statusCode>=500?lg(`Failed to restore: ${h.message}`):Ht(`Failed to restore: ${h.message}`)}finally{try{f&&(yield N0(f))}catch(h){D(`Failed to delete archive: ${h}`)}}})}o(Ydt,"restoreCacheV2");function b$(t,e,r){return hy(this,arguments,void 0,function*(n,i,s,a=!1){let c=TI();D(`Cache service version: ${c}`),zEe(n),E$(i);let l=ez();return Fye(l)?c==="v2"?yield Xdt(n,i,s,a):yield Kdt(n,i,s,a):(O(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),D(`Skipped save for paths [${n.join(", ")}] with key '${i}'.`),-1)})}o(b$,"saveCache");function Kdt(t,e,r){return hy(this,arguments,void Line truncated
`,a).length:f,u?(c===null?0:c.length)+l.length:0,u?l.length+f:0);return h<p},"__needMoreData"),parse:o(function(n,i,s,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:f,ltrim:h,max_record_size:p,raw:m,relax_quotes:g,rtrim:E,skip_empty_lines:y,to:C,to_line:I}=this.options,{comment:B,escape:Q,quote:M,record_delimiter:v}=this.options,{bomSkipped:j,delimiterDiscovered:R,delimiterBufPrevious:G,rawBuffer:H,escapeIsQuote:W}=this.state;if(!R&&u){let z;if(G===void 0?z=n:G!==void 0&&n===void 0?z=G:z=Buffer.concat([G,n]),n=void 0,i||z.length>u.size)this.options.delimiter=[Buffer.from(swe(z,this.options.delimiter_auto))],this.state.previousBuf=z,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=z;return}}let{previousBuf:ee}=this.state,oe;if(ee===void 0)if(n===void 0){a();return}else oe=n;else ee!==void 0&&n===void 0?oe=ee:oe=Buffer.concat([ee,n]);if(j===!1)if(c===!1)this.state.bomSkipped=!0;else if(oe.length<3){if(i===!1){this.state.previousBuf=oe;return}}else{for(let z in _y)if(_y[z].compare(oe,0,_y[z].length)===0){let Ie=_y[z].length;this.state.bufBytesStart+=Ie,oe=oe.slice(Ie);let Se=Ny({...this.original_options,encoding:z});for(let st in Se)this.options[st]=Se[st];({comment:B,escape:Q,quote:M}=this.options);break}this.state.bomSkipped=!0}let pe=oe.length,Y;for(Y=0;Y<pe&&!this.__needMoreData(Y,pe,i);Y++){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&&v.length===0&&this.__autoDiscoverRecordDelimiter(oe,Y)&&(v=this.options.record_delimiter);let z=oe[Y];if(m===!0&&H.append(z),(z===wyt||z===Syt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(Q!==null&&this.state.quoting===!0&&this.__isEscape(oe,Y,z)&&Y+Q.length<pe)if(W){if(this.__isQuote(oe,Y+Q.length)){this.state.escaping=!0,Y+=Q.length-1;continue}}else{this.state.escaping=!0,Y+=Q.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(oe,Y))if(this.state.quoting===!0){let st=oe[Y+M.length],Ct=E&&this.__isCharTrimable(oe,Y+M.length),fr=B!==null&&this.__compareBytes(B,oe,Y+M.length,st),fn=this.__isDelimiter(oe,Y+M.length,st),ii=v.length===0?this.__autoDiscoverRecordDelimiter(oe,Y+M.length):this.__isRecordDelimiter(st,oe,Y+M.length);if(Q!==null&&this.__isEscape(oe,Y,z)&&this.__isQuote(oe,Y+Q.length))Y+=Q.length-1;else if(!st||fn||ii||fr||Ct){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=M.length-1;continue}else if(g===!1){let hr=this.__error(new dt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(st)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(hr!==void 0)return hr}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(M),Y+=M.length-1}else if(this.state.field.length!==0){if(g===!1){let st=this.__infoField(),Ct=Object.keys(_y).map(fn=>_y[fn].equals(this.state.field.toString())?fn:!1).filter(Boolean)[0],fr=this.__error(new dt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(st.column)} at line ${st.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,Ct?`(${Ct} bom)`:void 0],this.options,st,{field:this.state.field}));if(fr!==void 0)return fr}}else{this.state.quoting=!0,Y+=M.length-1;continue}if(this.state.quoting===!1){let st=this.__isRecordDelimiter(z,oe,Y);if(st!==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)>=f){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=st-1;continue}if(y===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=st-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let fn=this.__onField();if(fn!==void 0)return fn;this.info.bytes=this.state.bufBytesStart+Y+st;let ii=this.__onRecord(s);if(ii!==void 0)return ii;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=st-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,oe,Y,z)!==0){this.state.commenting=!0;continue}let Ct=this.__isDelimiter(oe,Y,z);if(Ct!==0){this.info.bytes=this.state.bufBytesStart+Y;let fr=this.__onField();if(fr!==void 0)return fr;Y+=Ct-1;continue}}}if(this.state.commenting===!1&&p!==0&&this.state.record_length+this.state.field.length>p)return this.__error(new dt("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 Ie=h===!1||this.state.quoting===!0||this.state.f Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[i+u])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:i,raw:s,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,s?this.state.rawBuffer.toString(i):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:i,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,i=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:i===!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 Co=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=ND(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Me=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Mo(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=Co(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Mo(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 oi("powershell",!0),i=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${i}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return awe.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 Vj.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"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return Vj.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return cwe.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=Aw.default.resolve(e);return Aw.default.resolve(r).startsWith(n.endsWith(Aw.default.sep)?n:`${n}${Aw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var sn=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||mw.default.join(lwe.default.homedir(),".docker")}static configFile(){let e=mw.default.join(t.configDir,"config.json");if(zj.default.existsSync(e))return JSON.parse(zj.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await oi("docker",!0).then(e=>(D(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(D(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 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)}};var lSe=N(require("crypto"),1);var _D=require("fs"),fwe=require("os");var Ty=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,_D.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,_D.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${fwe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var Jj=N(gwe(),1),ywe=N(Kd(),1);var kyt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ewe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Ewe,"getAuthString");function Cwe(t){return new Jj.HttpClient().getAgent(t)}o(Cwe,"getProxyAgent");function Pyt(t){return new Jj.HttpClient().getAgentDispatcher(t)}o(Pyt,"getProxyAgentDispatcher");function bwe(t){let e=Pyt(t);return o((n,i)=>kyt(this,void 0,void 0,function*(){return(0,ywe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(bwe,"getProxyFetch");function Iwe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Iwe,"getApiBaseUrl");function Yj(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(Yj,"getUserAgentWithOrchestrationId");function _f(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(_f,"getUserAgent");function OD(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>OD.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(OD,"register");function wwe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(wwe,"addHook");function Swe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(Swe,"removeHook");var Bwe=Function.bind,xwe=Bwe.bind(Bwe);function vwe(t,e,r){let n=xwe(Swe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=xwe(wwe,null).apply(null,s)})}o(vwe,"bindApi");function Lyt(){let t=Symbol("Singular"),e={registry:{}},r=OD.bind(null,e,t);return vwe(r,e,t),r}o(Lyt,"Singular");function Fyt(){let t={registry:{}},e=OD.bind(null, Line truncated
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[i+u])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:i,raw:s,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,s?this.state.rawBuffer.toString(i):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:i,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:i?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,i=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:i===!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 Co=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=ND(e),i=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=o(()=>{},"close"),a=n.parse(t,!0,i,s);if(a!==void 0)throw a;return r},"parse");var Me=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Mo(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let i=Co(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of i)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=Mo(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 oi("powershell",!0),i=e.replace(/'/g,"''"),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${i}' ${s.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return awe.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 zj.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"],i=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,i)).toFixed(2))+" "+n[i]}static generateRandomString(e=10){return zj.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return cwe.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=Aw.default.resolve(e);return Aw.default.resolve(r).startsWith(n.endsWith(Aw.default.sep)?n:`${n}${Aw.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),i=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),i&&a.push(`${i}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var sn=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||mw.default.join(lwe.default.homedir(),".docker")}static configFile(){let e=mw.default.join(t.configDir,"config.json");if($j.default.existsSync(e))return JSON.parse($j.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await oi("docker",!0).then(e=>(D(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(D(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0 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)}};var lSe=N(require("crypto"),1);var _D=require("fs"),fwe=require("os");var Ty=class{static{o(this,"Context")}constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,_D.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,_D.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let i=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${i} does not exist${fwe.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var Yj=N(gwe(),1),ywe=N(Kd(),1);var Lyt=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Ewe(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(Ewe,"getAuthString");function Cwe(t){return new Yj.HttpClient().getAgent(t)}o(Cwe,"getProxyAgent");function Fyt(t){return new Yj.HttpClient().getAgentDispatcher(t)}o(Fyt,"getProxyAgentDispatcher");function bwe(t){let e=Fyt(t);return o((n,i)=>Lyt(this,void 0,void 0,function*(){return(0,ywe.fetch)(n,Object.assign(Object.assign({},i),{dispatcher:e}))}),"proxyFetch")}o(bwe,"getProxyFetch");function Iwe(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(Iwe,"getApiBaseUrl");function Kj(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let i=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(i)?t:`${t?`${t} `:""}${i}`}return t}o(Kj,"getUserAgentWithOrchestrationId");function _f(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(_f,"getUserAgent");function OD(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((i,s)=>OD.bind(null,t,s,i,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((i,s)=>s.hook.bind(null,i,n),r)():r(n))}o(OD,"register");function wwe(t,e,r,n){let i=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=o((s,a)=>Promise.resolve().then(i.bind(null,a)).then(s.bind(null,a)),"hook")),e==="after"&&(n=o((s,a)=>{let c;return Promise.resolve().then(s.bind(null,a)).then(l=>(c=l,i(c,a))).then(()=>c)},"hook")),e==="error"&&(n=o((s,a)=>Promise.resolve().then(s.bind(null,a)).catch(c=>i(c,a)),"hook")),t.registry[r].push({hook:n,orig:i})}o(wwe,"addHook");function Swe(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(i=>i.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}o(Swe,"removeHook");var Bwe=Function.bind,xwe=Bwe.bind(Bwe);function vwe(t,e,r){let n=xwe(Swe,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(i=>{let s=r?[e,i,r]:[e,i];t[i]=t.api[i]=xwe(wwe,null).apply(null,s)})}o(vwe,"bindApi");function Uyt(){let t=Symbol("Singular"),e={registry:{}},r=OD.bind(null,e,t);return vwe(r,e,t),r}o(Uyt,"Singular");function qyt(){let t={registry:{}},e=OD.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(hEt,"_buildMessageForResponseErrors");var pEt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(hEt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},AEt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],mEt=["query","method","url"],Jwe=/\/api\/v3\/?$/;function gEt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(mEt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>AEt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Jwe.test(s)&&(i.url=s.replace(Jwe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new pEt(i,c,a.data)}return a.data.data})}o(gEt,"graphql");function r8(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>gEt(r,i,s),"newApi"),{defaults:r8.bind(null,r),endpoint:r.endpoint})}o(r8,"withDefaults");var Ewr=r8(Cw,{headers:{"user-agent":`octokit-graphql.js/${fEt} ${_f()}`},method:"POST",url:"/graphql"});function Ywe(t){return r8(t,{method:"POST",url:"/graphql"})}o(Ywe,"withCustomRequest");var n8="(?:[a-zA-Z0-9_-]+)",Kwe="\\.",Xwe=new RegExp(`^${n8}${Kwe}${n8}${Kwe}${n8}$`),yEt=Xwe.test.bind(Xwe);async function EEt(t){let e=yEt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(EEt,"auth");function CEt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(CEt,"withAuthorizationPrefix");async function bEt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=CEt(t),e(i)}o(bEt,"hook");var Zwe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(EEt.bind(null,e),{hook:bEt.bind(null,e)})},"createTokenAuth2");var i8="7.0.6";var eSe=o(()=>{},"noop"),IEt=console.warn.bind(console),wEt=console.error.bind(console);function SEt(t={}){return typeof t.debug!="function"&&(t.debug=eSe),typeof t.info!="function"&&(t.info=eSe),typeof t.warn!="function"&&(t.warn=IEt),typeof t.error!="function"&&(t.error=wEt),t}o(SEt,"createLogger");var tSe=`octokit-core.js/${i8} ${_f()}`,Qy=class{static{o(this,"Octokit")}static VERSION=i8;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Nwe.Collection,n={baseUrl:Cw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${tSe}`:tSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Cw.defaults(n),this.graphql=Ywe(this.request).defaults(n),this.log=SEt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=Zwe(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)Object.assign(this,i.plugins[s](this,e))}request;graphql;log;hook;auth};var s8="17.0.0";var BEt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,g=!1;for(let m of a)if(m.remote||m.path.endsWith(u)&&m.content===d){c.push({title:f,message:h,file:m.path,startLine:p}),g=!0;break}g||D(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var p8=N(require("fs"),1),A8=N(require("path"),1);var zD=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await xe.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=A8.default.join(mt.tmpDir(),"export");O(`exporting build record to ${s}`),p8.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Me.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Me.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=A8.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await xe.getExecOutput(u.command,u.args);let d=p8.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ze.context.repo.owner}~${Ze.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var nOe=N(require("fs"),1),KY=N(require("path"),1);var pSe=N(require("os"),1);function Bw(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Bw,"toCommandValue");function m8(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(m8,"toCommandProperties");function xw(t,e,r){let n=new g8(t,e,r);process.stdout.write(n.toString()+pSe.EOL)}o(xw,"issueCommand");var hSe="::",g8=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=hSe+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 i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${VEt(i)}`)}}return e+=`${hSe}${HEt(this.message)}`,e}};function HEt(t){return Bw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(HEt,"escapeData");function VEt(t){return Bw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(VEt,"escapeProperty");var ySe=N(require("os"),1);var mSe=require("os"),vw=require("fs");var y8=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:zEt,appendFile:$Et,writeFile:jEt}=vw.promises,ASe="GITHUB_STEP_SUMMARY";var E8=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return y8(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ASe];if(!e)throw new Error(`Unable to find environment variable for $${ASe}. Check if your runtime environment supports job summaries.`);try{yield zEt(e,vw.constants.R_OK|vw.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 i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return y8(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?jEt:$Et)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return y8(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(mSe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).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:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).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}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},LSr=new E8;var C8=N(require("os"),1);var GSr=C8.default.platform(),HSr=C8.Line truncated
`," Line feed \\n"]]),gBe=new Map([...$6,["\\"," Backslash \\"],["/"," Forward slash /"]]);function yBe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of gBe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`)}o(mEt,"_buildMessageForResponseErrors");var gEt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(mEt(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},yEt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],EEt=["query","method","url"],Jwe=/\/api\/v3\/?$/;function CEt(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(EEt.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,i=Object.keys(n).reduce((a,c)=>yEt.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Jwe.test(s)&&(i.url=s.replace(Jwe,"/api/graphql")),t(i).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new gEt(i,c,a.data)}return a.data.data})}o(CEt,"graphql");function n8(t,e){let r=t.defaults(e);return Object.assign(o((i,s)=>CEt(r,i,s),"newApi"),{defaults:n8.bind(null,r),endpoint:r.endpoint})}o(n8,"withDefaults");var Iwr=n8(Cw,{headers:{"user-agent":`octokit-graphql.js/${AEt} ${_f()}`},method:"POST",url:"/graphql"});function Ywe(t){return n8(t,{method:"POST",url:"/graphql"})}o(Ywe,"withCustomRequest");var i8="(?:[a-zA-Z0-9_-]+)",Kwe="\\.",Xwe=new RegExp(`^${i8}${Kwe}${i8}${Kwe}${i8}$`),bEt=Xwe.test.bind(Xwe);async function IEt(t){let e=bEt(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(IEt,"auth");function wEt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(wEt,"withAuthorizationPrefix");async function SEt(t,e,r,n){let i=e.endpoint.merge(r,n);return i.headers.authorization=wEt(t),e(i)}o(SEt,"hook");var Zwe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(IEt.bind(null,e),{hook:SEt.bind(null,e)})},"createTokenAuth2");var s8="7.0.6";var eSe=o(()=>{},"noop"),BEt=console.warn.bind(console),xEt=console.error.bind(console);function vEt(t={}){return typeof t.debug!="function"&&(t.debug=eSe),typeof t.info!="function"&&(t.info=eSe),typeof t.warn!="function"&&(t.warn=BEt),typeof t.error!="function"&&(t.error=xEt),t}o(vEt,"createLogger");var tSe=`octokit-core.js/${s8} ${_f()}`,Qy=class{static{o(this,"Octokit")}static VERSION=s8;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let i=n[0]||{};if(typeof e=="function"){super(e(i));return}super(Object.assign({},e,i,i.userAgent&&e.userAgent?{userAgent:`${i.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(i=>!r.includes(i)))}}constructor(e={}){let r=new Nwe.Collection,n={baseUrl:Cw.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${tSe}`:tSe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Cw.defaults(n),this.graphql=Ywe(this.request).defaults(n),this.log=vEt(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=Zwe(e.auth);r.wrap("request",s.hook),this.auth=s}let i=this.constructor;for(let s=0;s<i.plugins.length;++s)Object.assign(this,i.plugins[s](this,e))}request;graphql;log;hook;auth};var o8="17.0.0";var NEt={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables" Line truncated
More info: ${l.url}`);let p=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,m=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:f,message:h,file:g.path,startLine:p}),m=!0;break}m||D(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${f}`)}return c}};var A8=N(require("fs"),1),m8=N(require("path"),1);var zD=class t{static{o(this,"History")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["history",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getExportCommand(e){return await this.getCommand(["export",...e])}async inspect(e){let r=["--format","json"];e.builder&&r.push("--builder",e.builder),e.ref&&r.push(e.ref);let n=await this.getInspectCommand(r);return await xe.getExecOutput(n.command,n.args,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return JSON.parse(i.stdout)})}async export(e){if(!await this.buildx.versionSatisfies(">=0.23.0"))throw new Error("Buildx >= 0.23.0 is required to export a build record");let r="",n="",i=[];for(let f of e.refs){let h=f.split("/");if(h.length!=3)throw new Error(`Invalid build ref: ${f}`);i.push(h[2]),r||(r=h[0]),n||(n=h[1])}if(i.length===0)throw new Error("No build refs provided");let s=m8.default.join(mt.tmpDir(),"export");O(`exporting build record to ${s}`),A8.default.mkdirSync(s,{recursive:!0}),await this.buildx.versionSatisfies("<0.24.0")&&await Me.sleep(3);let a={};if(!e.noSummaries)for(let f of i)await this.inspect({ref:f,builder:r}).then(h=>{let p="";h.Error&&h.Status!=="canceled"&&(h.Error.Message?p=h.Error.Message:h.Error.Name&&h.Error.Logs&&(p=`=> ${h.Error.Name}
${h.Error.Logs}`)),a[f]={name:h.Name,status:h.Status,duration:Me.formatDuration(h.Duration),numCachedSteps:h.NumCachedSteps,numTotalSteps:h.NumTotalSteps,numCompletedSteps:h.NumCompletedSteps,defaultPlatform:h.Platform?.[0],error:p}});let c=m8.default.join(s,`${t.exportFilename(i)}.dockerbuild`),l=["--builder",r,"--output",c,...i];await this.buildx.versionSatisfies(">=0.24.0")&&l.push("--finalize");let u=await this.getExportCommand(l);await xe.getExecOutput(u.command,u.args);let d=A8.default.statSync(c);return{dockerbuildFilename:c,dockerbuildSize:d.size,builderName:r,nodeName:n,refs:i,summaries:a}}static exportFilename(e){let r=`${Ze.context.repo.owner}~${Ze.context.repo.repo}~${e[0].substring(0,6).toUpperCase()}`;return e.length>1&&(r+=`+${e.length-1}`),r}};var nOe=N(require("fs"),1),XY=N(require("path"),1);var pSe=N(require("os"),1);function Bw(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(Bw,"toCommandValue");function g8(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(g8,"toCommandProperties");function xw(t,e,r){let n=new y8(t,e,r);process.stdout.write(n.toString()+pSe.EOL)}o(xw,"issueCommand");var hSe="::",y8=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=hSe+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 i=this.properties[n];i&&(r?r=!1:e+=",",e+=`${n}=${jEt(i)}`)}}return e+=`${hSe}${$Et(this.message)}`,e}};function $Et(t){return Bw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o($Et,"escapeData");function jEt(t){return Bw(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(jEt,"escapeProperty");var ySe=N(require("os"),1);var mSe=require("os"),vw=require("fs");var E8=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},{access:WEt,appendFile:JEt,writeFile:YEt}=vw.promises,ASe="GITHUB_STEP_SUMMARY";var C8=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return E8(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[ASe];if(!e)throw new Error(`Unable to find environment variable for $${ASe}. Check if your runtime environment supports job summaries.`);try{yield WEt(e,vw.constants.R_OK|vw.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 i=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${i}>${r}</${e}>`:`<${e}${i}>`}write(e){return E8(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?YEt:JEt)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return E8(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(mSe.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),i=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(i).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",i=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,i);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(i=>{let s=i.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,f=c?"th":"td",h=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(f,l,h)}).join("");return this.wrap("tr",s)}).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:i,height:s}=n||{},a=Object.assign(Object.assign({},i&&{width:i}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,i=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(i,e);return this.addRaw(s).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}),i=this.wrap("blockquote",e,n);return this.addRaw(i).addEOL()}addLink(e,r){let n=this.wrap("a",e,{href:r});return this.addRaw(n).addEOL()}},USr=new C8;var b8=N(require("os"),1);var zSr=b8.default.platform(),$Sr=b8.Line truncated
`," Line feed \\n"]]),gBe=new Map([...j6,["\\"," Backslash \\"],["/"," Forward slash /"]]);function yBe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of gBe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(gBe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ct("Artifact name is valid!")}o(yBe,"validateArtifactName");function j6(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of $6)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ct("Artifact name is valid!")}o(yBe,"validateArtifactName");function W6(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of j6)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from($6.values()).toString()}
Invalid characters include: ${Array.from(j6.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}o(j6,"validateFilePath");var IBe=N(bBe(),1);function kl(){return`@actions/artifact-${IBe.version}`}o(kl,"getUserAgentString");var Xy=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},dc=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},id=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},kf=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},sd=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
`)}o(W6,"validateFilePath");var IBe=N(bBe(),1);function kl(){return`@actions/artifact-${IBe.version}`}o(kl,"getUserAgentString");var Xy=class extends Error{static{o(this,"FilesNotFoundError")}constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},dc=class extends Error{static{o(this,"InvalidResponseError")}constructor(e){super(e),this.name="InvalidResponseError"}},id=class extends Error{static{o(this,"ArtifactNotFoundError")}constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},kf=class extends Error{static{o(this,"GHESNotSupportedError")}constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},sd=class extends Error{static{o(this,"NetworkError")}constructor(e){let r=`Unable to make request: ${e}
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"}};sd.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var rA=class extends Error{static{o(this,"UsageError")}constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
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"}};rA.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QQ=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Pl(){let t=jD(),e=HD(t);if(!e.scp)throw QQ;let r=e.scp.split(" ");if(r.length===0)throw QQ;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw QQ;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return Xe(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),Xe(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw QQ}o(Pl,"getBackendIdsFromToken");function wBe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&($D(r),$D(encodeURIComponent(r)))}catch(e){Xe(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(wBe,"maskSigUrl");function SBe(t){if(typeof t!="object"||t===null){Xe("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&wBe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&wBe(t.signed_url)}o(SBe,"maskSecretUrls");var kQ=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},W6=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=jD();this.baseUrl=CSe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new Fo(e,[new Zd(s)])}request(e,r,n,i){return kQ(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Xe(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>kQ(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return kQ(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),l=c.message.statusCode;i=yield c.readBody(),Xe(`[Response] - ${c.message.statusCode}`),Xe(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(i);if(SBe(u),Xe(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(s=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(rA.isUsageErrorMessage(u.msg))throw new rA;n=`${n}: ${u.msg}`}}catch(c){if(c instanceof SyntaxError&&Xe(`Raw Body: ${i}`),c instanceof rA)throw c;if(sd.isNetworkErrorCode(c?.code))throw new sd(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[qn.BadGateway,qn.GatewayTimeout,qn.InternalServerError,qn.ServiceUnavailable,qn.TooManyRequests].includes(e):!1}sleep(e){return kQ(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Ol(t){let e=new W6(kl(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new DQ(e)}o(Ol,"internalArtifactTwirpClient");var eE=N(require("fs"),1);var Zy=require("path");function BBe(t){if(!eE.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!eE.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);ct("Root directory input is valid!")}o(BBe,"validateRootDirectory");function xBe(t,e){let r=[];e=(0,Zy.normalize)(e),e=(0,Zy.resolve)(e);for(let n of t){let i=eE.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");j6(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,Zy.normalize)(n),n=(0,Zy.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");j6(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&pi("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);ct(`Redirecting to blob download url: ${MPe(d)}`);try{ct(`Starting download of artifact to: ${r}`);let f=yield UPe(d,r,e?.skipDecompress);ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,Xe(`Computed digest: ${f.sha256Digest}`),Xe(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(GPe,"downloadArtifactInternal");function HPe(){return KE(this,arguments,void 0,function*(t=bSe()){return(yield gLt(t))?Xe(`Artifact destination folder already exists: ${t}`):(Xe(`Artifact destination folder does not exist, creating: ${t}`),yield WY.default.mkdir(t,{recursive:!0})),t})}o(HPe,"resolveOrCreateDirectory");var ELt=5,CLt=[400,401,403,404,422];function XE(t,e=ELt,r=CLt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return Xe(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(XE,"getRetryOptions");var VPe="6.0.0";function QA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(QA,"requestLog");QA.VERSION=VPe;var jPe=N(zPe(),1);var bLt="0.0.0-development";function ILt(t){return t.request!==void 0}o(ILt,"isRequestError");async function $Pe(t,e,r,n){if(!ILt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o($Pe,"errorRequest");async function wLt(t,e,r,n){let i=new jPe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(SLt.bind(null,t,e,r),n)}o(wLt,"wrapRequest");async function SLt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new ed(i.data.errors[0].message,500,{request:n,response:i});return $Pe(t,e,s,n)}return i}o(SLt,"requestWithGraphqlErrorHandling");function kA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",$Pe.bind(null,r,n)),t.hook.wrap("request",wLt.bind(null,r,n))),n}o(kA,"retry");kA.VERSION=bLt;var WPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Zk(t,e,r,n,i){return WPe(this,void 0,void 0,function*(){var s;let[a,c]=XE(TA),l={log:void 0,userAgent:kl(),previews:void 0,retry:a,request:c},d=yield th(i,l,kA,QA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new dc(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new id(`Artifact not found for name: ${t}
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"}};rA.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var QQ=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Pl(){let t=jD(),e=HD(t);if(!e.scp)throw QQ;let r=e.scp.split(" ");if(r.length===0)throw QQ;for(let n of r){let i=n.split(":");if(i?.[0]!=="Actions.Results")continue;if(i.length!==3)throw QQ;let s={workflowRunBackendId:i[1],workflowJobRunBackendId:i[2]};return Xe(`Workflow Run Backend ID: ${s.workflowRunBackendId}`),Xe(`Workflow Job Run Backend ID: ${s.workflowJobRunBackendId}`),s}throw QQ}o(Pl,"getBackendIdsFromToken");function wBe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&($D(r),$D(encodeURIComponent(r)))}catch(e){Xe(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}o(wBe,"maskSigUrl");function SBe(t){if(typeof t!="object"||t===null){Xe("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&wBe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&wBe(t.signed_url)}o(SBe,"maskSecretUrls");var kQ=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},J6=class{static{o(this,"ArtifactHttpClient")}constructor(e,r,n,i){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let s=jD();this.baseUrl=CSe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),i&&(this.retryMultiplier=i),this.httpClient=new Fo(e,[new Zd(s)])}request(e,r,n,i){return kQ(this,void 0,void 0,function*(){let s=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;Xe(`[Request] ${r} ${s}`);let a={"Content-Type":n};try{let{body:c}=yield this.retryableRequest(()=>kQ(this,void 0,void 0,function*(){return this.httpClient.post(s,JSON.stringify(i),a)}));return c}catch(c){throw new Error(`Failed to ${r}: ${c.message}`)}})}retryableRequest(e){return kQ(this,void 0,void 0,function*(){let r=0,n="",i="";for(;r<this.maxAttempts;){let s=!1;try{let c=yield e(),l=c.message.statusCode;i=yield c.readBody(),Xe(`[Response] - ${c.message.statusCode}`),Xe(`Headers: ${JSON.stringify(c.message.headers,null,2)}`);let u=JSON.parse(i);if(SBe(u),Xe(`Body: ${JSON.stringify(u,null,2)}`),this.isSuccessStatusCode(l))return{response:c,body:u};if(s=this.isRetryableHttpStatusCode(l),n=`Failed request: (${l}) ${c.message.statusMessage}`,u.msg){if(rA.isUsageErrorMessage(u.msg))throw new rA;n=`${n}: ${u.msg}`}}catch(c){if(c instanceof SyntaxError&&Xe(`Raw Body: ${i}`),c instanceof rA)throw c;if(sd.isNetworkErrorCode(c?.code))throw new sd(c?.code);s=!0,n=c.message}if(!s)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let a=this.getExponentialRetryTimeMilliseconds(r);ct(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${a} ms...`),yield this.sleep(a),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[qn.BadGateway,qn.GatewayTimeout,qn.InternalServerError,qn.ServiceUnavailable,qn.TooManyRequests].includes(e):!1}sleep(e){return kQ(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Ol(t){let e=new J6(kl(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new DQ(e)}o(Ol,"internalArtifactTwirpClient");var eE=N(require("fs"),1);var Zy=require("path");function BBe(t){if(!eE.existsSync(t))throw new Error(`The provided rootDirectory ${t} does not exist`);if(!eE.statSync(t).isDirectory())throw new Error(`The provided rootDirectory ${t} is not a valid directory`);ct("Root directory input is valid!")}o(BBe,"validateRootDirectory");function xBe(t,e){let r=[];e=(0,Zy.normalize)(e),e=(0,Zy.resolve)(e);for(let n of t){let i=eE.lstatSync(n,{throwIfNoEntry:!1});if(!i)throw new Error(`File ${n} does not exist`);if(i.isDirectory()){let s=n.replace(e,"");W6(s),r.push({sourcePath:null,destinationPath:s,stats:i})}else{if(n=(0,Zy.normalize)(n),n=(0,Zy.resolve)(n),!n.startsWith(e))throw new Error(`The rootDirectory: ${e} is not a parent directory of the file: ${n}`);let s=n.replace(e,"");W6(s),r.push({sourcePath:n,destinationPath:s,stats:i})}}return Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);l.length>1&&pi("Multiple artifacts found, defaulting to first.");let u={workflowRunBackendId:l[0].workflowRunBackendId,workflowJobRunBackendId:l[0].workflowJobRunBackendId,name:l[0].name},{signedUrl:d}=yield n.GetSignedArtifactURL(u);ct(`Redirecting to blob download url: ${MPe(d)}`);try{ct(`Starting download of artifact to: ${r}`);let f=yield UPe(d,r,e?.skipDecompress);ct("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==f.sha256Digest&&(i=!0,Xe(`Computed digest: ${f.sha256Digest}`),Xe(`Expected digest: ${e.expectedHash}`))}catch(f){throw new Error(`Unable to download and extract artifact: ${f.message}`)}return{downloadPath:r,digestMismatch:i}})}o(GPe,"downloadArtifactInternal");function HPe(){return KE(this,arguments,void 0,function*(t=bSe()){return(yield CLt(t))?Xe(`Artifact destination folder already exists: ${t}`):(Xe(`Artifact destination folder does not exist, creating: ${t}`),yield JY.default.mkdir(t,{recursive:!0})),t})}o(HPe,"resolveOrCreateDirectory");var ILt=5,wLt=[400,401,403,404,422];function XE(t,e=ILt,r=wLt){var n;if(e<=0)return[{enabled:!1},t.request];let i={enabled:!0};r.length>0&&(i.doNotRetry=r);let s=Object.assign(Object.assign({},t.request),{retries:e});return Xe(`GitHub client configured with: (retries: ${s.retries}, retry-exempt-status-code: ${(n=i.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[i,s]}o(XE,"getRetryOptions");var VPe="6.0.0";function QA(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),i=t.request.endpoint.parse(r),s=i.url.replace(r.baseUrl,"");return e(r).then(a=>{let c=a.headers["x-github-request-id"];return t.log.info(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a}).catch(a=>{let c=a.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${i.method} ${s} - ${a.status} with id ${c} in ${Date.now()-n}ms`),a})})}o(QA,"requestLog");QA.VERSION=VPe;var jPe=N(zPe(),1);var SLt="0.0.0-development";function BLt(t){return t.request!==void 0}o(BLt,"isRequestError");async function $Pe(t,e,r,n){if(!BLt(r)||!r?.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let i=n.request.retries!=null?n.request.retries:t.retries,s=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,i,s)}throw r}o($Pe,"errorRequest");async function xLt(t,e,r,n){let i=new jPe.default;return i.on("failed",function(s,a){let c=~~s.request.request?.retries,l=~~s.request.request?.retryAfter;if(n.request.retryCount=a.retryCount+1,c>a.retryCount)return l*t.retryAfterBaseValue}),i.schedule(vLt.bind(null,t,e,r),n)}o(xLt,"wrapRequest");async function vLt(t,e,r,n){let i=await r(n);if(i.data&&i.data.errors&&i.data.errors.length>0&&/Something went wrong while executing your query/.test(i.data.errors[0].message)){let s=new ed(i.data.errors[0].message,500,{request:n,response:i});return $Pe(t,e,s,n)}return i}o(vLt,"requestWithGraphqlErrorHandling");function kA(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry),n={retry:{retryRequest:o((i,s,a)=>(i.request.request=Object.assign({},i.request.request,{retries:s,retryAfter:a}),i),"retryRequest")}};return r.enabled&&(t.hook.error("request",$Pe.bind(null,r,n)),t.hook.wrap("request",xLt.bind(null,r,n))),n}o(kA,"retry");kA.VERSION=SLt;var WPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function Zk(t,e,r,n,i){return WPe(this,void 0,void 0,function*(){var s;let[a,c]=XE(TA),l={log:void 0,userAgent:kl(),previews:void 0,retry:a,request:c},d=yield th(i,l,kA,QA).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(d.status!==200)throw new dc(`Invalid response from GitHub API: ${d.status} (${(s=d?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);if(d.data.artifacts.length===0)throw new id(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let f=d.data.artifacts[0];return d.data.artifacts.length>1&&(f=d.data.artifacts.sort((h,p)=>p.id-h.id)[0],Xe(`More than one artifact found for a single name, returning newest (id: ${f.id})`)),{artifact:{name:f.name,id:f.id,size:f.size_in_bytes,createdAt:f.created_at?new Date(f.created_at):void 0,digest:f.digest}}})}o(Zk,"getArtifactPublic");function JPe(t){return WPe(this,void 0,void 0,function*(){var e;let r=Ol(),{workflowRunBackendId:n,workflowJobRunBackendId:i}=Pl(),s={workflowRunBackendId:n,workflowJobRunBackendId:i,nameFilter:En.create({value:t})},a=yield r.ListArtifacts(s);if(a.artifacts.length===0)throw new id(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Io.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(JPe,"getArtifactInternal");var YPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function KPe(t,e,r,n,i){return YPe(this,void 0,void 0,function*(){var s;let[a,c]=XE(TA),l={log:void 0,userAgent:kl(),previews:void 0,retry:a,request:c},u=th(i,l,kA,QA),d=yield Zk(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new dc(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(KPe,"deleteArtifactPublic");function XPe(t){return YPe(this,void 0,void 0,function*(){let e=Ol(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:En.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new id(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return ct(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(XPe,"deleteArtifactInternal");var ZPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},eP=SSe(),tP=100,BLt=Math.ceil(eP/tP);function eOe(t,e,r,n){return ZPe(this,arguments,void 0,function*(i,s,a,c,l=!1){ct(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=XE(TA),h={log:void 0,userAgent:kl(),previews:void 0,retry:d,request:f},p=th(c,h,kA,QA),g=1,{data:m}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:tP,page:g}),E=Math.ceil(m.total_count/tP),y=m.total_count;y>eP&&(pi(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${eP}. Results will be incomplete as only the first ${eP} artifacts will be returned`),E=BLt);for(let C of m.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(g++,g;g<=E;g++){Xe(`Fetching page ${g} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:tP,page:g});for(let I of C.artifacts)u.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return l&&(u=rOe(u)),ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(eOe,"listArtifactsPublic");function tOe(){return ZPe(this,arguments,void 0,function*(t=!1){let e=Ol(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Io.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=rOe(a)),ct(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(tOe,"listArtifactsInternal");function rOe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(rOe,"filterLatest");var hB=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},xLt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i Line truncated
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let c=a.artifacts[0];return a.artifacts.length>1&&(c=a.artifacts.sort((l,u)=>Number(u.databaseId)-Number(l.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${c.databaseId})`)),{artifact:{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Io.toDate(c.createdAt):void 0,digest:(e=c.digest)===null||e===void 0?void 0:e.value}}})}o(JPe,"getArtifactInternal");var YPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})};function KPe(t,e,r,n,i){return YPe(this,void 0,void 0,function*(){var s;let[a,c]=XE(TA),l={log:void 0,userAgent:kl(),previews:void 0,retry:a,request:c},u=th(i,l,kA,QA),d=yield Zk(t,e,r,n,i),f=yield u.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:d.artifact.id});if(f.status!==204)throw new dc(`Invalid response from GitHub API: ${f.status} (${(s=f?.headers)===null||s===void 0?void 0:s["x-github-request-id"]})`);return{id:d.artifact.id}})}o(KPe,"deleteArtifactPublic");function XPe(t){return YPe(this,void 0,void 0,function*(){let e=Ol(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:En.create({value:t})},s=yield e.ListArtifacts(i);if(s.artifacts.length===0)throw new id(`Artifact not found for name: ${t}`);let a=s.artifacts[0];s.artifacts.length>1&&(a=s.artifacts.sort((u,d)=>Number(d.databaseId)-Number(u.databaseId))[0],Xe(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`));let c={workflowRunBackendId:a.workflowRunBackendId,workflowJobRunBackendId:a.workflowJobRunBackendId,name:a.name},l=yield e.DeleteArtifact(c);return ct(`Artifact '${t}' (ID: ${l.artifactId}) deleted`),{id:Number(l.artifactId)}})}o(XPe,"deleteArtifactInternal");var ZPe=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},eP=SSe(),tP=100,NLt=Math.ceil(eP/tP);function eOe(t,e,r,n){return ZPe(this,arguments,void 0,function*(i,s,a,c,l=!1){ct(`Fetching artifact list for workflow run ${i} in repository ${s}/${a}`);let u=[],[d,f]=XE(TA),h={log:void 0,userAgent:kl(),previews:void 0,retry:d,request:f},p=th(c,h,kA,QA),m=1,{data:g}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:tP,page:m}),E=Math.ceil(g.total_count/tP),y=g.total_count;y>eP&&(pi(`Workflow run ${i} has ${y} artifacts, exceeding the limit of ${eP}. Results will be incomplete as only the first ${eP} artifacts will be returned`),E=NLt);for(let C of g.artifacts)u.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(m++,m;m<=E;m++){Xe(`Fetching page ${m} of artifact list`);let{data:C}=yield p.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:s,repo:a,run_id:i,per_page:tP,page:m});for(let I of C.artifacts)u.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest})}return l&&(u=rOe(u)),ct(`Found ${u.length} artifact(s)`),{artifacts:u}})}o(eOe,"listArtifactsPublic");function tOe(){return ZPe(this,arguments,void 0,function*(t=!1){let e=Ol(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Pl(),i={workflowRunBackendId:r,workflowJobRunBackendId:n},a=(yield e.ListArtifacts(i)).artifacts.map(c=>{var l;return{name:c.name,id:Number(c.databaseId),size:Number(c.size),createdAt:c.createdAt?Io.toDate(c.createdAt):void 0,digest:(l=c.digest)===null||l===void 0?void 0:l.value}});return t&&(a=rOe(a)),ct(`Found ${a.length} artifact(s)`),{artifacts:a}})}o(tOe,"listArtifactsInternal");function rOe(t){t.sort((n,i)=>i.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}o(rOe,"filterLatest");var hB=function(t,e,r,n){function i(s){return s instanceof r?s:new r(function(a){a(s)})}return o(i,"adopt"),new(r||(r=Promise))(function(s,a){function c(d){try{u(n.next(d))}catch(f){a(f)}}o(c,"fulfilled");function l(d){try{u(n.throw(d))}catch(f){a(f)}}o(l,"rejected");function u(d){d.done?s(d.value):i(d.value).then(c,l)}o(u,"step"),u((n=n.apply(t,e||[])).next())})},_Lt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i Line truncated
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return hB(this,void 0,void 0,function*(){try{if(ky())throw new kf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=xLt(r,["findBy"]);return qPe(e,n,i,s,a)}return GPe(e,r)}catch(n){throw pi(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),s}})}downloadArtifact(e,r){return hB(this,void 0,void 0,function*(){try{if(ky())throw new kf;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:i,token:s}}=r,a=_Lt(r,["findBy"]);return qPe(e,n,i,s,a)}return GPe(e,r)}catch(n){throw pi(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
@@ -194,62 +194,62 @@ If the error persists, please check whether Actions and API requests are operati
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var uPr=new ZE;var rP=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ze.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=KY.default.basename(e.filename),n=new ZE;O(`Uploading ${r} as an artifact`);let i=KY.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new dc("Cannot upload artifact");let a=s.size??nOe.default.statSync(e.filename).size,c=`${Ze.workflowRunURL()}/artifacts/${s.id}`;return O(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var AK=N(iOe(),1);var kt=Symbol("NOT_RESOLVED");function ki(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(ki,"defineScalarTag");function lK(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(lK,"defineSequenceTag");function oP(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(oP,"defineMappingTag");var vLt=ki("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),NLt=["","~","null","Null","NULL"],_Lt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>NLt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),TLt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),RLt=["","~","null","Null","NULL"],DLt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>RLt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),QLt=["true","True","TRUE"],kLt=["false","False","FALSE"],PLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>QLt.indexOf(t)!==-1?!0:kLt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),OLt=["true"],LLt=["false"],FLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>OLt.indexOf(t)!==-1?!0:LLt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),MLt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],ULt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],qLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>MLt.indexOf(t)!==-1?!0:ULt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),GLt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),HLt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function VLt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(VLt,"parseYamlInteger$2");function zLt(t,e){if(e){if(!HLt.test(t))return kt}else if(!GLt.test(t))return kt;let r=VLt(t);return Number.isFinite(r)?r:kt}o(zLt,"resolveYamlInteger$2");var hOe=ki("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:zLt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),$Lt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),jLt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function WLt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(WLt,"parseYamlInteger$1");function JLt(t,e){if(e){if(!jLt.test(t))return kt}else if(!$Lt.tes Line truncated
${l}`}let f=XY(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${ZY((t.line+1).toString(),u)} | ${f.str}
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var hPr=new ZE;var rP=class{static{o(this,"GitHubArtifact")}static async upload(e){if(Ze.isGHES)throw new Error("@actions/artifact v2.0.0+ is currently not supported on GHES.");let r=XY.default.basename(e.filename),n=new ZE;O(`Uploading ${r} as an artifact`);let i=XY.default.dirname(e.filename),s=await n.uploadArtifact(r,[e.filename],i,{retentionDays:e.retentionDays,skipArchive:!0});if(!s.id)throw new dc("Cannot upload artifact");let a=s.size??nOe.default.statSync(e.filename).size,c=`${Ze.workflowRunURL()}/artifacts/${s.id}`;return O(`Artifact download URL: ${c}`),{id:s.id,filename:r,digest:s.digest||"",size:a,url:c}}};var mK=N(iOe(),1);var kt=Symbol("NOT_RESOLVED");function ki(t,e){return{tagName:t,nodeKind:"scalar",implicit:e.implicit??!1,matchByTagPrefix:e.matchByTagPrefix??!1,implicitFirstChars:e.implicitFirstChars??null,resolve:e.resolve,identify:e.identify,represent:e.represent??(r=>String(r)),representTagName:e.representTagName??(()=>t)}}o(ki,"defineScalarTag");function uK(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"sequence",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addItem:e.addItem,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(uK,"defineSequenceTag");function oP(t,e){let r=e.finalize===void 0;return{tagName:t,nodeKind:"mapping",implicit:!1,matchByTagPrefix:e.matchByTagPrefix??!1,create:e.create,addPair:e.addPair,has:e.has,keys:e.keys,get:e.get,finalize:e.finalize??(n=>n),carrierIsResult:r,identify:e.identify,represent:e.represent??(n=>n),representTagName:e.representTagName??(()=>t)}}o(oP,"defineMappingTag");var TLt=ki("tag:yaml.org,2002:str",{resolve:o(t=>t,"resolve"),identify:o(t=>typeof t=="string","identify")}),RLt=["","~","null","Null","NULL"],DLt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>RLt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),QLt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:o((t,e)=>t==="null"||e&&t===""?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),kLt=["","~","null","Null","NULL"],PLt=ki("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:o(t=>kLt.indexOf(t)!==-1?null:kt,"resolve"),identify:o(t=>t===null,"identify"),represent:o(()=>"null","represent")}),OLt=["true","True","TRUE"],LLt=["false","False","FALSE"],FLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:o(t=>OLt.indexOf(t)!==-1?!0:LLt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),MLt=["true"],ULt=["false"],qLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:o(t=>MLt.indexOf(t)!==-1?!0:ULt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),GLt=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],HLt=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],VLt=ki("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:o(t=>GLt.indexOf(t)!==-1?!0:HLt.indexOf(t)!==-1?!1:kt,"resolve"),identify:o(t=>Object.prototype.toString.call(t)==="[object Boolean]","identify"),represent:o(t=>t?"true":"false","represent")}),zLt=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),$Lt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function jLt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(jLt,"parseYamlInteger$2");function WLt(t,e){if(e){if(!$Lt.test(t))return kt}else if(!zLt.test(t))return kt;let r=jLt(t);return Number.isFinite(r)?r:kt}o(WLt,"resolveYamlInteger$2");var hOe=ki("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:WLt,identify:o(t=>Number.isInteger(t)&&!Object.is(t,-0)&&t.toString(10).indexOf("e")<0,"identify"),represent:o(t=>t.toString(10),"represent")}),JLt=new RegExp("^-?(?:0|[1-9][0-9]*)$"),YLt=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function KLt(t){let e=t,r=1;return(e[0]==="-"||e[0]==="+")&&(e[0]==="-"&&(r=-1),e=e.slice(1)),e.startsWith("0b")?r*parseInt(e.slice(2),2):e.startsWith("0o")?r*parseInt(e.slice(2),8):e.startsWith("0x")?r*parseInt(e.slice(2),16):r*parseInt(e,10)}o(KLt,"parseYamlInteger$1");function XLt(t,e){if(e){if(!YLt.test(t))return kt}else if(!JLt.tes Line truncated
${l}`}let f=ZY(t.buffer,i[c],s[c],t.position,d);l+=`${" ".repeat(r.indent)}${eK((t.line+1).toString(),u)} | ${f.str}
`,l+=`${"-".repeat(r.indent+u+3+f.pos)}^
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=XY(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${ZY((t.line+h+1).toString(),u)} | ${p.str}
`}return l.replace(/\n$/,"")}o(PFt,"makeSnippet");function aOe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
`;for(let h=1;h<=r.linesAfter&&!(c+h>=s.length);h++){let p=ZY(t.buffer,i[c+h],s[c+h],t.position-(i[c]-i[c+h]),d);l+=`${" ".repeat(r.indent)}${eK((t.line+h+1).toString(),u)} | ${p.str}
`}return l.replace(/\n$/,"")}o(FFt,"makeSnippet");function aOe(t,e){let r="";return t.mark?(t.mark.name&&(r+=`in "${t.mark.name}" `),r+=`(${t.mark.line+1}:${t.mark.column+1})`,!e&&t.mark.snippet&&(r+=`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(aOe,"formatError");var OFt=class mOe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=aOe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${aOe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(s++,a=l+1):u===13&&(s++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:i,buffer:e,position:r,line:s,column:r-a};throw c.snippet=PFt(c),new mOe(n,c)}},eC={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},it={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sh={BLOCK:1,FLOW:2},dK={CLIP:1,STRIP:2,KEEP:3};function cOe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(cOe,"simpleEscapeSequence");var LFt=new Array(256),FFt=new Array(256);for(let t=0;t<256;t++)LFt[t]=cOe(t)?1:0,FFt[t]=cOe(t);var wPr=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function eK(t){return encodeURI(t).replace(/!/g,"%21")}o(eK,"tagPercentEncode");function gOe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${eK(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${eK(e.slice(18))}`:`!<${eK(e)}>`}o(gOe,"tagNameShort");var MFt={filename:"",schema:RFt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var nK=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,yOe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,SPr=new RegExp(`^(?:${nK})*$`),BPr=new RegExp(`^(?:${yOe})+$`),xPr=new RegExp(`^(?:!(?:${nK})*|${yOe}(?:${nK})*)$`),UFt={filename:"",maxDepth:100};var vPr={...UFt,...MFt};var PA=Symbol("INVALID");function qFt(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(qFt,"buildRepresentTypes");function GFt(t,e){for(let r=0,n=t.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:s}=t.representTypes[r];if(i.identify(e)){let a;return i.matchByTagPrefix?a=i.representTagName(e):a=i.tagName,{tag:i,tagName:a,implicitTag:s}}}return null}o(GFt,"matchTag");function mB(t,e){if(!t.noRefs&&e!==null&&typeof e=="object"){let u=t.refs.get(e);if(u)return u.anchor===void 0&&(u.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:u.anchor}}let r=GFt(t,e);if(!r){if(e===void 0||t.skipInvalid)return PA;throw new OFt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:gOe(i);if(n.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!s,style:it.PLAIN,value:n.represent(e)};if(n.nodeKind==="sequence"){let u=n.represent(e),d={kind:"sequence",tag:a,tagged:!s,style:sh.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=mB(t,u[f]);p===PA&&u[f]===void 0&&(p=mB(t,null)),p!==PA&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:sh.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=mB(t,u);if(f===PA)continue;let h=mB(t,d);h!==PA&&l.items.push({key:f,value:h})}return l}o(mB,"build");function HFt(t,e,r={}){let n=mB({representTypes:qFt(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===PA?null:n,directives:[]}]}o(HFt,"jsToAst");var VFt=Symbol("visit:break"),EOe=Symbol("visit:skip");function iP(t,e,r){let n=e(t,r);if(n===VFt)return!0;if(n===EOe)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(iP(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(iP(s,e,{depth:i,parent:t,isKey:!0})||iP(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(iP,"visitNode");function lOe(t,e){for(let r of t)if(r.contents&&iP(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(lOe,"visit");function lP(t,e){return(t&1<<e)!==0}o(lP,"hasBit");var uOe={applyQuoteFlowKeysOption:zFt,doubleQuoteForInvisibles:$Ft,doubleQuoteWhitespaceOnly:jFt,applyForceQuotesOption:WFt,tryLongOrMultilineAsBlock:JFt,quoteInvalidPlain:YFt,fallbackToDoubleQuoted:KFt};function COe(t){return t.presenterOptions.quoteStyle==="single"&&lP(t.allowedStylesMask,it.SINGLE_QUOTED)?it.SINGLE_QUOTED:it.DOUBLE_QUOTED}o(COe,"_preferredQuotedStyle");function zFt(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==it.PLAIN||(t.style=it.DOUBLE_QUOTED))}o(zFt,"applyQuoteFlowKeysOption");function $Ft(t){t.style===it.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o($Ft,"doubleQuoteForInvisibles");function jFt(t){t.style===it.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(jFt,"doubleQuoteWhitespaceOnly");function WFt(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==it.PLAIN||(t.style=t.node.value.includes(`
`)?it.DOUBLE_QUOTED:COe(t)))}o(WFt,"applyForceQuotesOption");function JFt(t){if(t.style!==it.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(aOe,"formatError");var MFt=class mOe extends Error{static{o(this,"YAMLException")}reason;mark;constructor(e,r){super(),this.name="YAMLException",this.reason=e,this.mark=r,this.message=aOe(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${aOe(this,e)}`}static throwAt(e,r,n,i=""){let s=0,a=0;for(let l=0;l<r;l++){let u=e.charCodeAt(l);u===10?(s++,a=l+1):u===13&&(s++,e.charCodeAt(l+1)===10&&l++,a=l+1)}let c={name:i,buffer:e,position:r,line:s,column:r-a};throw c.snippet=FFt(c),new mOe(n,c)}},eC={DOCUMENT:1,SEQUENCE:2,MAPPING:3,SCALAR:4,ALIAS:5,POP:6},it={PLAIN:1,SINGLE_QUOTED:2,DOUBLE_QUOTED:3,LITERAL_BLOCK:4,FOLDED_BLOCK:5},sh={BLOCK:1,FLOW:2},fK={CLIP:1,STRIP:2,KEEP:3};function cOe(t){switch(t){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}o(cOe,"simpleEscapeSequence");var UFt=new Array(256),qFt=new Array(256);for(let t=0;t<256;t++)UFt[t]=cOe(t)?1:0,qFt[t]=cOe(t);var xPr=Object.assign(Object.create(null),{"!":"!","!!":"tag:yaml.org,2002:"});function tK(t){return encodeURI(t).replace(/!/g,"%21")}o(tK,"tagPercentEncode");function gOe(t){let e=t;return e.charCodeAt(0)===33?(e=e.slice(1),`!${tK(e)}`):e.slice(0,18)==="tag:yaml.org,2002:"?`!!${tK(e.slice(18))}`:`!<${tK(e)}>`}o(gOe,"tagNameShort");var GFt={filename:"",schema:kFt,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};var iK=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,yOe=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,vPr=new RegExp(`^(?:${iK})*$`),NPr=new RegExp(`^(?:${yOe})+$`),_Pr=new RegExp(`^(?:!(?:${iK})*|${yOe}(?:${iK})*)$`),HFt={filename:"",maxDepth:100};var TPr={...HFt,...GFt};var PA=Symbol("INVALID");function VFt(t){let e=new Set([t.defaultScalarTag,t.defaultSequenceTag,t.defaultMappingTag].filter(s=>s!==void 0)),r=t.implicitScalarTags,n=t.tags.filter(s=>!(s.nodeKind==="scalar"&&s.implicit)&&!e.has(s)),i=t.tags.filter(s=>e.has(s));return[...r.map(s=>({tag:s,implicitTag:!0})),...n.map(s=>({tag:s,implicitTag:!1})),...i.map(s=>({tag:s,implicitTag:!0}))]}o(VFt,"buildRepresentTypes");function zFt(t,e){for(let r=0,n=t.representTypes.length;r<n;r+=1){let{tag:i,implicitTag:s}=t.representTypes[r];if(i.identify(e)){let a;return i.matchByTagPrefix?a=i.representTagName(e):a=i.tagName,{tag:i,tagName:a,implicitTag:s}}}return null}o(zFt,"matchTag");function mB(t,e){if(!t.noRefs&&e!==null&&typeof e=="object"){let u=t.refs.get(e);if(u)return u.anchor===void 0&&(u.anchor=`ref_${t.refCounter++}`),{kind:"alias",anchor:u.anchor}}let r=zFt(t,e);if(!r){if(e===void 0||t.skipInvalid)return PA;throw new MFt(`unacceptable kind of an object to dump ${Object.prototype.toString.call(e)}`)}let{tag:n,tagName:i,implicitTag:s}=r,a=s?i:gOe(i);if(n.nodeKind==="scalar")return{kind:"scalar",tag:a,tagged:!s,style:it.PLAIN,value:n.represent(e)};if(n.nodeKind==="sequence"){let u=n.represent(e),d={kind:"sequence",tag:a,tagged:!s,style:sh.BLOCK,items:[]};t.noRefs||t.refs.set(e,d);for(let f=0,h=u.length;f<h;f+=1){let p=mB(t,u[f]);p===PA&&u[f]===void 0&&(p=mB(t,null)),p!==PA&&d.items.push(p)}return d}let c=n.represent(e),l={kind:"mapping",tag:a,tagged:!s,style:sh.BLOCK,items:[]};t.noRefs||t.refs.set(e,l);for(let[u,d]of c){let f=mB(t,u);if(f===PA)continue;let h=mB(t,d);h!==PA&&l.items.push({key:f,value:h})}return l}o(mB,"build");function $Ft(t,e,r={}){let n=mB({representTypes:VFt(e),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},t);return[{contents:n===PA?null:n,directives:[]}]}o($Ft,"jsToAst");var jFt=Symbol("visit:break"),EOe=Symbol("visit:skip");function iP(t,e,r){let n=e(t,r);if(n===jFt)return!0;if(n===EOe)return!1;let i=r.depth+1;switch(t.kind){case"sequence":for(let s of t.items)if(iP(s,e,{depth:i,parent:t,isKey:!1}))return!0;break;case"mapping":for(let{key:s,value:a}of t.items)if(iP(s,e,{depth:i,parent:t,isKey:!0})||iP(a,e,{depth:i,parent:t,isKey:!1}))return!0;break}return!1}o(iP,"visitNode");function lOe(t,e){for(let r of t)if(r.contents&&iP(r.contents,e,{depth:0,parent:null,isKey:!1}))return}o(lOe,"visit");function lP(t,e){return(t&1<<e)!==0}o(lP,"hasBit");var uOe={applyQuoteFlowKeysOption:WFt,doubleQuoteForInvisibles:JFt,doubleQuoteWhitespaceOnly:YFt,applyForceQuotesOption:KFt,tryLongOrMultilineAsBlock:XFt,quoteInvalidPlain:ZFt,fallbackToDoubleQuoted:eMt};function COe(t){return t.presenterOptions.quoteStyle==="single"&&lP(t.allowedStylesMask,it.SINGLE_QUOTED)?it.SINGLE_QUOTED:it.DOUBLE_QUOTED}o(COe,"_preferredQuotedStyle");function WFt(t){t.presenterOptions.quoteFlowKeys&&(!t.isKey||!t.flowOnly||t.style!==it.PLAIN||(t.style=it.DOUBLE_QUOTED))}o(WFt,"applyQuoteFlowKeysOption");function JFt(t){t.style===it.PLAIN&&/[\t\x7F-\xA0\u2028\u2029\uFEFF\uFFFE\uFFFF]/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(JFt,"doubleQuoteForInvisibles");function YFt(t){t.style===it.PLAIN&&/^\s+$/.test(t.node.value)&&(t.style=it.DOUBLE_QUOTED)}o(YFt,"doubleQuoteWhitespaceOnly");function KFt(t){t.presenterOptions.forceQuotes&&(t.isKey||t.style!==it.PLAIN||(t.style=t.node.value.includes(`
`)?it.DOUBLE_QUOTED:COe(t)))}o(KFt,"applyForceQuotesOption");function XFt(t){if(t.style!==it.PLAIN||t.isKey)return;let e=t.node.value,r=e.indexOf(`
`)!==-1;if(!lP(t.allowedStylesMask,it.LITERAL_BLOCK)){r&&(t.style=it.DOUBLE_QUOTED);return}let n=t.presenterOptions.lineWidth;if(n===-1){r&&(t.style=it.LITERAL_BLOCK);return}let i=Math.max(Math.min(n,40),n-t.shiftOfContent),s=0,a=!1;for(;s<=e.length;){let c=e.length,l=e.indexOf(`
`,s);l!==-1&&(c=l);let u=e.slice(s,c);if(u.length>i&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=it.FOLDED_BLOCK:r&&(t.style=it.LITERAL_BLOCK)}o(JFt,"tryLongOrMultilineAsBlock");function YFt(t){t.style===it.PLAIN&&!lP(t.allowedStylesMask,it.PLAIN)&&(t.style=COe(t))}o(YFt,"quoteInvalidPlain");function KFt(t){lP(t.allowedStylesMask,t.style)||(t.style=it.DOUBLE_QUOTED)}o(KFt,"fallbackToDoubleQuoted");function AB(t,e){return t|1<<e}o(AB,"setBit");var XFt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",ZFt="[\\n\\r]",eMt="\\uFEFF",fK="[ \\t]",bOe=`(?:(?!(?:${ZFt}|${eMt}))${XFt})`,uP=`(?:(?!${fK})${bOe})`,IOe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",wOe="[-?:,\\[\\]{}#&*!|>'\"%@`]",tMt="[,\\[\\]{}]",iK=uP,sK=`(?:(?!${tMt})${uP})`,rMt=`(?:(?:(?!${wOe})${uP})|[?:-](?=${iK}))`,nMt=`(?:(?:(?!${wOe})${uP})|[?:-](?=${sK}))`,SOe=`(?:(?:(?![:#])${iK})|:(?=${iK}))#*`,BOe=`(?:(?:(?![:#])${sK})|:(?=${sK}))#*`,xOe=`(?:${fK}*${SOe})*`,vOe=`(?:${fK}*${BOe})*`,NOe=`${rMt}#*${xOe}`,_Oe=`${nMt}#*${vOe}`,iMt=NOe,sMt=_Oe,oMt=`\\n+${SOe}${xOe}`,aMt=`\\n+${BOe}${vOe}`,cMt=`${NOe}(?:${oMt})*`,lMt=`${_Oe}(?:${aMt})*`,uMt=new RegExp(`^(?:${cMt})$`,"u"),dMt=new RegExp(`^(?:${lMt})$`,"u"),fMt=new RegExp(`^(?:${iMt})$`,"u"),hMt=new RegExp(`^(?:${sMt})$`,"u"),pMt=new RegExp(`^(?:${IOe})*$`,"u"),AMt=new RegExp(`^(?:${IOe}|\\n)*$`,"u"),mMt=new RegExp(`^(?:${bOe}|\\n)*$`,"u"),gMt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,hK=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function yMt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?hMt:fMt:t.flowOnly?dMt:uMt).test(e)||t.shiftOfFirstLine===0&&gMt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
`);if(n!==-1){let i=e.slice(n+1);if(hK.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(yMt,"canUsePlain");function EMt(t){let e=t.node.value;if(!(t.isKey?pMt:AMt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
`);if(r!==-1&&hK.test(e.slice(r+1)))return!1}return!0}o(EMt,"canUseSingleQuoted");function CMt(t){if(t.flowOnly||!mMt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&hK.test(t.node.value))}o(CMt,"canUseBlock");function bMt(t){let e=AB(0,it.DOUBLE_QUOTED);yMt(t)&&(e=AB(e,it.PLAIN)),EMt(t)&&(e=AB(e,it.SINGLE_QUOTED)),CMt(t)&&(e=AB(AB(e,it.LITERAL_BLOCK),it.FOLDED_BLOCK)),t.allowedStylesMask=e}o(bMt,"detectAllowedStyles");function IMt(t){switch(t.style){case it.PLAIN:return wMt(t);case it.SINGLE_QUOTED:return SMt(t);case it.LITERAL_BLOCK:return BMt(t);case it.FOLDED_BLOCK:return xMt(t);case it.DOUBLE_QUOTED:return vMt(t)}}o(IMt,"renderScalar");function wMt(t){return TOe(t.node.value,t.shiftOfContent)}o(wMt,"renderPlain");function SMt(t){return`'${TOe(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(SMt,"renderSingleQuoted");function BMt(t){let e=t.node.value;return"|"+DOe(e,t.shiftOfParent,t.shiftOfContent)+QOe(ROe(e,t.shiftOfContent))}o(BMt,"renderLiteralBlock");function xMt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+DOe(e,t.shiftOfParent,t.shiftOfContent)+QOe(ROe(_Mt(e,n),t.shiftOfContent))}o(xMt,"renderFoldedBlock");function vMt(t){return`"${DMt(t.node.value)}"`}o(vMt,"renderDoubleQuoted");function TOe(t,e){let r=t.indexOf(`
`,s);l!==-1&&(c=l);let u=e.slice(s,c);if(u.length>i&&u[0]!==" "&&/ [^ \t]/.test(u)&&(a=!0),l===-1)break;s=l+1}a?t.style=it.FOLDED_BLOCK:r&&(t.style=it.LITERAL_BLOCK)}o(XFt,"tryLongOrMultilineAsBlock");function ZFt(t){t.style===it.PLAIN&&!lP(t.allowedStylesMask,it.PLAIN)&&(t.style=COe(t))}o(ZFt,"quoteInvalidPlain");function eMt(t){lP(t.allowedStylesMask,t.style)||(t.style=it.DOUBLE_QUOTED)}o(eMt,"fallbackToDoubleQuoted");function AB(t,e){return t|1<<e}o(AB,"setBit");var tMt="[\\x09\\x0A\\x0D\\x20-\\x7E\\x85\\xA0-\\uD7FF\\uE000-\\uFFFD\\u{10000}-\\u{10FFFF}]",rMt="[\\n\\r]",nMt="\\uFEFF",hK="[ \\t]",bOe=`(?:(?!(?:${rMt}|${nMt}))${tMt})`,uP=`(?:(?!${hK})${bOe})`,IOe="[\\x09\\x20-\\uD7FF\\uE000-\\uFFFF\\u{10000}-\\u{10FFFF}]",wOe="[-?:,\\[\\]{}#&*!|>'\"%@`]",iMt="[,\\[\\]{}]",sK=uP,oK=`(?:(?!${iMt})${uP})`,sMt=`(?:(?:(?!${wOe})${uP})|[?:-](?=${sK}))`,oMt=`(?:(?:(?!${wOe})${uP})|[?:-](?=${oK}))`,SOe=`(?:(?:(?![:#])${sK})|:(?=${sK}))#*`,BOe=`(?:(?:(?![:#])${oK})|:(?=${oK}))#*`,xOe=`(?:${hK}*${SOe})*`,vOe=`(?:${hK}*${BOe})*`,NOe=`${sMt}#*${xOe}`,_Oe=`${oMt}#*${vOe}`,aMt=NOe,cMt=_Oe,lMt=`\\n+${SOe}${xOe}`,uMt=`\\n+${BOe}${vOe}`,dMt=`${NOe}(?:${lMt})*`,fMt=`${_Oe}(?:${uMt})*`,hMt=new RegExp(`^(?:${dMt})$`,"u"),pMt=new RegExp(`^(?:${fMt})$`,"u"),AMt=new RegExp(`^(?:${aMt})$`,"u"),mMt=new RegExp(`^(?:${cMt})$`,"u"),gMt=new RegExp(`^(?:${IOe})*$`,"u"),yMt=new RegExp(`^(?:${IOe}|\\n)*$`,"u"),EMt=new RegExp(`^(?:${bOe}|\\n)*$`,"u"),CMt=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/,pK=/^(?:---|\.\.\.)(?=$|[ \t\n\r])/m;function bMt(t){let e=t.node.value;if(e!==""){if(!(t.isKey?t.flowOnly?mMt:AMt:t.flowOnly?pMt:hMt).test(e)||t.shiftOfFirstLine===0&&CMt.test(e))return!1;if(t.shiftOfContent===0){let n=e.indexOf(`
`);if(n!==-1){let i=e.slice(n+1);if(pK.test(i))return!1}}}let r=t.presenterOptions.schema.resolveImplicitScalarTag(e).tag.tagName;return!(!t.node.tagged&&r!==t.node.tag||!t.node.tagged&&e==="="&&r===t.presenterOptions.schema.defaultScalarTag.tagName)}o(bMt,"canUsePlain");function IMt(t){let e=t.node.value;if(!(t.isKey?gMt:yMt).test(e)||/[ \t]\n|\n[ \t]/.test(e))return!1;if(!t.isKey&&t.shiftOfContent===0){let r=e.indexOf(`
`);if(r!==-1&&pK.test(e.slice(r+1)))return!1}return!0}o(IMt,"canUseSingleQuoted");function wMt(t){if(t.flowOnly||!EMt.test(t.node.value))return!1;let e=t.shiftOfContent-t.shiftOfParent;return!(e<1||e>9&&/^\n* /.test(t.node.value)||t.shiftOfContent===0&&pK.test(t.node.value))}o(wMt,"canUseBlock");function SMt(t){let e=AB(0,it.DOUBLE_QUOTED);bMt(t)&&(e=AB(e,it.PLAIN)),IMt(t)&&(e=AB(e,it.SINGLE_QUOTED)),wMt(t)&&(e=AB(AB(e,it.LITERAL_BLOCK),it.FOLDED_BLOCK)),t.allowedStylesMask=e}o(SMt,"detectAllowedStyles");function BMt(t){switch(t.style){case it.PLAIN:return xMt(t);case it.SINGLE_QUOTED:return vMt(t);case it.LITERAL_BLOCK:return NMt(t);case it.FOLDED_BLOCK:return _Mt(t);case it.DOUBLE_QUOTED:return TMt(t)}}o(BMt,"renderScalar");function xMt(t){return TOe(t.node.value,t.shiftOfContent)}o(xMt,"renderPlain");function vMt(t){return`'${TOe(t.node.value,t.shiftOfContent).replace(/'/g,"''")}'`}o(vMt,"renderSingleQuoted");function NMt(t){let e=t.node.value;return"|"+DOe(e,t.shiftOfParent,t.shiftOfContent)+QOe(ROe(e,t.shiftOfContent))}o(NMt,"renderLiteralBlock");function _Mt(t){let e=t.node.value,r=t.presenterOptions.lineWidth,n=1/0;return r!==-1&&(n=Math.max(Math.min(r,40),r-t.shiftOfContent)),">"+DOe(e,t.shiftOfParent,t.shiftOfContent)+QOe(ROe(DMt(e,n),t.shiftOfContent))}o(_Mt,"renderFoldedBlock");function TMt(t){return`"${PMt(t.node.value)}"`}o(TMt,"renderDoubleQuoted");function TOe(t,e){let r=t.indexOf(`
`);if(r===-1)return t;let n=" ".repeat(e),i=t.slice(0,r),s=/(\n+)([^\n]*)/g;s.lastIndex=r;let a;for(;a=s.exec(t);){let c=a[1].length,l=a[2];i+=`
`.repeat(c+1)+n+l}return i}o(TOe,"encodeFlowBreaks");function ROe(t,e){let r=" ".repeat(e),n=0,i="",s=t.length;for(;n<s;){let a,c=t.indexOf(`
`,n);c===-1?(a=t.slice(n),n=s):(a=t.slice(n,c+1),n=c+1),a.length&&a!==`
`&&(i+=r),i+=a}return i}o(ROe,"indentString");function NMt(t){return/^\n* /.test(t)}o(NMt,"needIndentIndicator");function DOe(t,e,r){let n=NMt(t)?String(r-e):"",i=t[t.length-1]===`
`&&(i+=r),i+=a}return i}o(ROe,"indentString");function RMt(t){return/^\n* /.test(t)}o(RMt,"needIndentIndicator");function DOe(t,e,r){let n=RMt(t)?String(r-e):"",i=t[t.length-1]===`
`;return`${n}${i&&(t[t.length-2]===`
`||t===`
`)?"+":i?"":"-"}
`}o(DOe,"blockHeader");function QOe(t){return t[t.length-1]===`
`?t.slice(0,-1):t}o(QOe,"dropEndingNewline");function oK(t){return t===" "||t===" "}o(oK,"isMoreIndented");function dOe(t,e){if(t===""||oK(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=`
`?t.slice(0,-1):t}o(QOe,"dropEndingNewline");function aK(t){return t===" "||t===" "}o(aK,"isMoreIndented");function dOe(t,e){if(t===""||aK(t[0]))return t;let r=/ [^ \t]/g,n,i=0,s,a=0,c=0,l="";for(;n=r.exec(t);)c=n.index,c-i>e&&(s=a>i?a:c,l+=`
${t.slice(i,s)}`,i=s+1),a=c;return l+=`
`,t.length-i>e&&a>i?l+=`${t.slice(i,a)}
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(dOe,"foldLine");function _Mt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
${t.slice(a+1)}`:l+=t.slice(i),l.slice(1)}o(dOe,"foldLine");function DMt(t,e){let r=/(\n+)([^\n]*)/g,n=t.indexOf(`
`);n===-1&&(n=t.length),r.lastIndex=n;let i=dOe(t.slice(0,n),e),s=t[0]===`
`||oK(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&oK(u[0]),i+=l+(!s&&!a&&u!==""?`
`:"")+dOe(u,e),s=a}return i}o(_Mt,"foldBlockScalar");var TMt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function RMt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(RMt,"escapeCharacter");function DMt(t){return t.replace(TMt,RMt)}o(DMt,"escapeString");var sP=10,pK={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(uOe).map(t=>Reflect.get(uOe,t)),tagBeforeAnchor:!1};function QMt(t){return t.tagged?t.tag:gOe(t.tag)}o(QMt,"nodeTagShort");function kMt(t){let e={...pK,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(kMt,"createPresenterState");function aK(t,e){return`
${" ".repeat(t.indent*e)}`}o(aK,"generateNextLine");function PMt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(PMt,"scalarLayout");function OMt(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Cd(t,e,r.items[s],r,{}).text;s>0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(OMt,"writeFlowSequence");function fOe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Cd(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=aK(t,e)),c===""||sP===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(fOe,"writeBlockSequence");function LMt(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=Cd(t,e,s,r,{iskey:!0}),u=l.text,d=Cd(t,e,a,r,{}).text,f=t.flowSkipColonSpace||d===""?"":" ",h=s.kind==="scalar"&&l.noBody&&(s.tagged||s.anchor!==void 0),p=s.kind==="alias"||h?" ":"";c+=`${u}${p}:${f}${d}`,n+=c}let i=t.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}o(LMt,"writeFlowMapping");function FMt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=aK(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===sh.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===it.LITERAL_BLOCK||l.style===it.FOLDED_BLOCK),f=d?Cd(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!cK(t,l,e+1)}):Cd(t,e+1,l,r,{block:!0,compact:!0,iskey:!0}),h=f.text,p=l.kind==="scalar"&&l.value.indexOf(`
`)!==-1,g=h.length>1024&&/^[\s\S]{1025}/u.test(h),m=d||p||g;m&&(h&&sP===h.charCodeAt(0)?c+="?":c+="? "),c+=h,m&&(c+=aK(t,e));let E=Cd(t,e+1,u,r,{block:!0,compact:m,isblockseq:m&&!cK(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!m&&(l.kind==="alias"||y)?" ":"";E===""||sP===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(FMt,"writeBlockMapping");function cK(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(cK,"cannotBeCompact");function Cd(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;cK(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===sh.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=FMt(t,e,r,l):d=LMt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=fOe(t,e-1,r,l):d=fOe(t,e,r,l):d=OMt(t,e,r);else{let m=PMt(t,r,n,e,a,!s);bMt(m);for(let E of t.scalarStyleRules)E(m);d=IMt(m),t.openEnded=(m.style===it.LITERAL_BLOCK||m.style===it.FOLDED_BLOCK)&&(r.value===`
`||aK(t[0]),a,c;for(;c=r.exec(t);){let l=c[1],u=c[2];a=u!==""&&aK(u[0]),i+=l+(!s&&!a&&u!==""?`
`:"")+dOe(u,e),s=a}return i}o(DMt,"foldBlockScalar");var QMt=/["\\\x00-\x1F\x7F-\xA0\u2028\u2029\uD800-\uDFFF\uFEFF\uFFFE\uFFFF]/gu;function kMt(t){switch(t){case"\0":return"\\0";case"\x07":return"\\a";case"\b":return"\\b";case" ":return"\\t";case`
`:return"\\n";case"\v":return"\\v";case"\f":return"\\f";case"\r":return"\\r";case"\x1B":return"\\e";case'"':return'\\"';case"\\":return"\\\\";case"\x85":return"\\N";case"\xA0":return"\\_";case"\u2028":return"\\L";case"\u2029":return"\\P"}let e=t.charCodeAt(0),r=e.toString(16).toUpperCase();return e<=255?`\\x${"0".repeat(2-r.length)}${r}`:`\\u${"0".repeat(4-r.length)}${r}`}o(kMt,"escapeCharacter");function PMt(t){return t.replace(QMt,kMt)}o(PMt,"escapeString");var sP=10,AK={indent:2,seqNoIndent:!1,seqInlineFirst:!0,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,scalarStyleRules:Object.keys(uOe).map(t=>Reflect.get(uOe,t)),tagBeforeAnchor:!1};function OMt(t){return t.tagged?t.tag:gOe(t.tag)}o(OMt,"nodeTagShort");function LMt(t){let e={...AK,...t};return e.flowSkipColonSpace&&(e.quoteFlowKeys=!0),{...e,defaultScalarTagName:e.schema.defaultScalarTag.tagName,openEnded:!1}}o(LMt,"createPresenterState");function cK(t,e){return`
${" ".repeat(t.indent*e)}`}o(cK,"generateNextLine");function FMt(t,e,r,n,i,s){return{node:e,parent:r,level:n,isKey:i,flowOnly:s,shiftOfParent:n===0?-1:t.indent*(n-1),shiftOfContent:t.indent*Math.max(1,n),shiftOfFirstLine:n===0?0:t.indent*n,presenterOptions:t,allowedStylesMask:0,style:e.style}}o(FMt,"scalarLayout");function MMt(t,e,r){let n="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Cd(t,e,r.items[s],r,{}).text;s>0&&(n+=`,${t.flowSkipCommaSpace?"":" "}`),n+=c}let i=t.flowBracketPadding&&r.items.length>0?" ":"";return`[${i}${n}${i}]`}o(MMt,"writeFlowSequence");function fOe(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c=Cd(t,e+1,r.items[s],r,{block:!0,compact:t.seqInlineFirst,isblockseq:!0}).text;(!n||i!=="")&&(i+=cK(t,e)),c===""||sP===c.charCodeAt(0)?i+="-":i+="- ",i+=c}return i}o(fOe,"writeBlockSequence");function UMt(t,e,r){let n="";for(let{key:s,value:a}of r.items){let c="";n!==""&&(c+=`,${t.flowSkipCommaSpace?"":" "}`);let l=Cd(t,e,s,r,{iskey:!0}),u=l.text,d=Cd(t,e,a,r,{}).text,f=t.flowSkipColonSpace||d===""?"":" ",h=s.kind==="scalar"&&l.noBody&&(s.tagged||s.anchor!==void 0),p=s.kind==="alias"||h?" ":"";c+=`${u}${p}:${f}${d}`,n+=c}let i=t.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}o(UMt,"writeFlowMapping");function qMt(t,e,r,n){let i="";for(let s=0,a=r.items.length;s<a;s+=1){let c="";(!n||i!=="")&&(c+=cK(t,e));let{key:l,value:u}=r.items[s],d=(l.kind==="mapping"||l.kind==="sequence")&&l.style===sh.BLOCK&&l.items.length!==0||l.kind==="scalar"&&(l.style===it.LITERAL_BLOCK||l.style===it.FOLDED_BLOCK),f=d?Cd(t,e+1,l,r,{block:!0,compact:!0,isblockseq:!lK(t,l,e+1)}):Cd(t,e+1,l,r,{block:!0,compact:!0,iskey:!0}),h=f.text,p=l.kind==="scalar"&&l.value.indexOf(`
`)!==-1,m=h.length>1024&&/^[\s\S]{1025}/u.test(h),g=d||p||m;g&&(h&&sP===h.charCodeAt(0)?c+="?":c+="? "),c+=h,g&&(c+=cK(t,e));let E=Cd(t,e+1,u,r,{block:!0,compact:g,isblockseq:g&&!lK(t,u,e+1)}).text,y=l.kind==="scalar"&&f.noBody&&(l.tagged||l.anchor!==void 0),C=!g&&(l.kind==="alias"||y)?" ":"";E===""||sP===E.charCodeAt(0)?c+=`${C}:`:c+=`${C}: `,c+=E,i+=c}return i}o(qMt,"writeBlockMapping");function lK(t,e,r){return e.kind==="alias"?!0:e.tagged||e.anchor!==void 0||t.indent<2&&r>0}o(lK,"cannotBeCompact");function Cd(t,e,r,n,i){if(r.kind==="alias")return t.openEnded=!1,{text:`*${r.anchor}`,noBody:!1};let{block:s=!1,iskey:a=!1,isblockseq:c=!1}=i,l=i.compact??!1,u=r.anchor!==void 0;lK(t,r,e)&&(l=!1);let d,f=r.tagged,h=s&&(r.kind==="mapping"||r.kind==="sequence")&&r.style===sh.BLOCK&&r.items.length!==0;if(r.kind==="mapping")h?d=qMt(t,e,r,l):d=UMt(t,e,r);else if(r.kind==="sequence")h?t.seqNoIndent&&!c&&e>0?d=fOe(t,e-1,r,l):d=fOe(t,e,r,l):d=MMt(t,e,r);else{let g=FMt(t,r,n,e,a,!s);SMt(g);for(let E of t.scalarStyleRules)E(g);d=BMt(g),t.openEnded=(g.style===it.LITERAL_BLOCK||g.style===it.FOLDED_BLOCK)&&(r.value===`
`||r.value.endsWith(`
`)),f=r.tagged||d===""&&m.flowOnly&&n?.kind==="sequence"&&!u||m.style!==it.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",g=d;if(f||u){let m=[],E=f?QMt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&m.push(E),y!==null&&m.push(y)):(y!==null&&m.push(y),E!==null&&m.push(E));let C=d===""||d.charCodeAt(0)===sP?"":" ";g=`${m.join(" ")}${C}${d}`}return{text:g,noBody:p}}o(Cd,"writeNode");function MMt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===sh.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(MMt,"rootStartsOwnLine");function UMt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version}
`)),f=r.tagged||d===""&&g.flowOnly&&n?.kind==="sequence"&&!u||g.style!==it.PLAIN&&r.tag!==t.defaultScalarTagName}(r.kind==="mapping"||r.kind==="sequence")&&!h&&(t.openEnded=!1),h&&l&&e>0&&t.indent>2&&(d=`${" ".repeat(t.indent-2)}${d}`);let p=d==="",m=d;if(f||u){let g=[],E=f?OMt(r):null,y=u?`&${r.anchor}`:null;t.tagBeforeAnchor?(E!==null&&g.push(E),y!==null&&g.push(y)):(y!==null&&g.push(y),E!==null&&g.push(E));let C=d===""||d.charCodeAt(0)===sP?"":" ";m=`${g.join(" ")}${C}${d}`}return{text:m,noBody:p}}o(Cd,"writeNode");function GMt(t){return(t.kind==="sequence"||t.kind==="mapping")&&t.style===sh.BLOCK&&t.items.length!==0&&!t.tagged&&t.anchor===void 0}o(GMt,"rootStartsOwnLine");function HMt(t){let e="";for(let r of t.directives){if(r.kind==="yaml"){e+=`%YAML ${r.version}
`;continue}let{handle:n,prefix:i}=r;e+=`%TAG ${n} ${i}
`}return e}o(UMt,"writeDocumentDirectives");function qMt(t,e){let r=kMt(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=UMt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
`);else if(u){let d=Cd(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||MMt(a.contents)?`
`}return e}o(HMt,"writeDocumentDirectives");function VMt(t,e){let r=LMt(e),n="",i=!1;for(let s=0;s<t.length;s+=1){let a=t[s];r.openEnded=!1;let c=HMt(a),l=c!=="",u=a.explicitStart||l||s>0&&!i;if(n+=c,a.contents===null)u&&(n+=`---
`);else if(u){let d=Cd(r,0,a.contents,null,{block:!0,compact:!0}).text,f=d===""?"":l||GMt(a.contents)?`
`:" ";n+=`---${f}${d}
`}else n+=Cd(r,0,a.contents,null,{block:!0,compact:!0}).text+`
`;i=a.explicitEnd||r.openEnded,i&&(n+=`...
`)}return n}o(qMt,"present");var GMt={...pK,schema:QFt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function HMt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o(HMt,"defaultCompareFn");function kOe(t,e={}){let r={...GMt,...e},n=HFt(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&lOe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=sh.FLOW),EOe}),r.sortKeys){let i=r.sortKeys===!0?HMt:r.sortKeys;lOe(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),qMt(n,{...wFt(r,Object.keys(pK)),schema:r.schema})}o(kOe,"dump");var NPr=eC.DOCUMENT,_Pr=eC.SEQUENCE,TPr=eC.MAPPING,RPr=eC.SCALAR,DPr=eC.ALIAS,QPr=eC.POP,kPr=it.PLAIN,PPr=it.SINGLE_QUOTED,OPr=it.DOUBLE_QUOTED,LPr=it.LITERAL_BLOCK,FPr=it.FOLDED_BLOCK,MPr=sh.BLOCK,UPr=sh.FLOW,qPr=dK.CLIP,GPr=dK.STRIP,HPr=dK.KEEP;var POe=N(require("os"),1);var dP=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?POe.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=YU.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Ze.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Me.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${Me.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Me.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("</p>"),u&&(c.addRaw("<blockquote>"),Me.countLines(u)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(AK.default.encode(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(AK.default.encode(u),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(kOe(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><str Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=Co(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Co(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Me.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Pc(s),[i,s]}};var gK=N(require("fs"),1),OOe=N(require("path"),1);var tC=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new gt,this.metadataFilename=`bake-metadata-${Me.generateRandomString()}.json`}getMetadataFilePath(){return OOe.default.join(mt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!gK.default.existsSync(e))return;let r=gK.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Me.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await xe.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${gt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Me.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r} Line truncated
`)}return n}o(VMt,"present");var zMt={...AK,schema:OFt,skipInvalid:!1,noRefs:!1,flowLevel:-1,sortKeys:!1,transform:o(()=>{},"transform")};function $Mt(t,e){let r=String(t),n=String(e);return r<n?-1:r>n?1:0}o($Mt,"defaultCompareFn");function kOe(t,e={}){let r={...zMt,...e},n=$Ft(t,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});if(r.flowLevel>=0&&lOe(n,(i,s)=>{if(!(s.depth<r.flowLevel))return(i.kind==="sequence"||i.kind==="mapping")&&(i.style=sh.FLOW),EOe}),r.sortKeys){let i=r.sortKeys===!0?$Mt:r.sortKeys;lOe(n,s=>{s.kind==="mapping"&&s.items.sort((a,c)=>i(a.key.kind==="scalar"?a.key.value:"",c.key.kind==="scalar"?c.key.value:""))})}return r.transform(n),VMt(n,{...xFt(r,Object.keys(AK)),schema:r.schema})}o(kOe,"dump");var RPr=eC.DOCUMENT,DPr=eC.SEQUENCE,QPr=eC.MAPPING,kPr=eC.SCALAR,PPr=eC.ALIAS,OPr=eC.POP,LPr=it.PLAIN,FPr=it.SINGLE_QUOTED,MPr=it.DOUBLE_QUOTED,UPr=it.LITERAL_BLOCK,qPr=it.FOLDED_BLOCK,GPr=sh.BLOCK,HPr=sh.FLOW,VPr=fK.CLIP,zPr=fK.STRIP,$Pr=fK.KEEP;var POe=N(require("os"),1);var dP=class t{static{o(this,"GitHubSummary")}static async writeBuildSummary(e){let r=o(function(l,u,d=!1){return`<a href="${u}">${l}</a>`+(d?POe.default.EOL:"")},"addLink"),n=e.exportRes.refs.length,i=n>0?e.exportRes.refs?.[0]:void 0,s=i?e.exportRes.summaries?.[i]:void 0,a=e.driver==="cloud"&&e.endpoint?e.endpoint?.replace(/^cloud:\/\//,"").split("/")[0]:void 0,c=YU.addHeading("Docker Build summary",2);if(a&&n===1&&i&&s){let l=t.formatDBCBuildURL(a,i,s.defaultPlatform);c.addRaw("<p>").addRaw("For a detailed look at the build, you can check the results at:").addRaw("</p>").addRaw("<p>").addRaw(`:whale: ${r(`<strong>${l}</strong>`,l)}`).addRaw("</p>")}if(e.uploadRes){let l=`./${Ze.runId}/${e.uploadRes.url.split("/").slice(-2).join("/")}`;a&&n===1?c.addRaw("<p>").addRaw("You can also download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"):c.addRaw("<p>").addRaw("For a detailed look at the build, download the following build record archive and import it into Docker Desktop's Builds view. ").addBreak().addRaw("Build records include details such as timing, dependencies, results, logs, traces, and other information about a build. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>"),c.addRaw("<p>").addRaw(`:arrow_down: ${r(`<strong>${Me.stringToUnicodeEntities(e.uploadRes.filename)}</strong>`,l)} (${Me.formatFileSize(e.uploadRes.size)} - includes <strong>${n} build record${n>1?"s":""}</strong>)`).addRaw("</p>")}else e.exportRes.summaries&&c.addRaw("<p>").addRaw("The following table provides a brief summary of your build.").addBreak().addRaw("For a detailed look at the build, including timing, dependencies, results, logs, traces, and other information, consider enabling the export of the build record so you can import it into Docker Desktop's Builds view. ").addRaw(r("Learn more","https://www.docker.com/blog/new-beta-feature-deep-dive-into-github-actions-docker-builds-with-docker-desktop/?utm_source=github&utm_medium=actions")).addRaw("</p>");if(c.addRaw("<p>").addRaw("Find this useful? ").addRaw(r("Let us know","https://docs.docker.com/feedback/gha-build-summary")).addRaw("</p>"),e.exportRes.summaries){c.addRaw("<p>");let l=[[{header:!0,data:"ID"},{header:!0,data:"Name"},{header:!0,data:"Status"},{header:!0,data:"Cached"},{header:!0,data:"Duration"},...a&&n>1?[{header:!0,data:"Build result URL"}]:[]]],u;for(let d in e.exportRes.summaries)if(Object.prototype.hasOwnProperty.call(e.exportRes.summaries,d)){let f=e.exportRes.summaries[d];l.push([{data:`<code>${d.substring(0,6).toUpperCase()}</code>`},{data:`<strong>${Me.stringToUnicodeEntities(f.name)}</strong>`},{data:`${f.status==="completed"?":white_check_mark:":f.status==="canceled"?":no_entry_sign:":":x:"} ${f.status}`},{data:`${f.numCachedSteps>0?Math.round(f.numCachedSteps/f.numTotalSteps*100):0}%`},{data:f.duration},...a&&n>1?[{data:r(":whale: Open",t.formatDBCBuildURL(a,d,f.defaultPlatform))}]:[]]),f.error&&(u=f.error)}c.addTable([...l]),c.addRaw("</p>"),u&&(c.addRaw("<blockquote>"),Me.countLines(u)>10?c.addRaw("<details><summary><strong>Error</strong></summary>").addCodeBlock(mK.default.encode(u),"text").addRaw("</details>"):c.addRaw("<strong>Error</strong>").addBreak().addRaw("<p>").addCodeBlock(mK.default.encode(u),"text").addRaw("</p>"),c.addRaw("</blockquote>"))}e.inputs&&c.addRaw("<details><summary><strong>Build inputs</strong></summary>").addCodeBlock(kOe(e.inputs,{indent:2,lineWidth:-1}),"yaml").addRaw("</details>"),e.bakeDefinition&&c.addRaw("<details><summary><str Line truncated
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n){if(i.length==1&&!i[0].startsWith("type="))return e=="local";for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=Co(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let i of n)for(let[s,a]of i.map(c=>c.split("=").map(l=>l.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=Co(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let i of r)for(let s of i)try{let a=Me.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),i=e.substring(0,n),s=e.substring(n+1);if(i.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&Pc(s),[i,s]}};var yK=N(require("fs"),1),OOe=N(require("path"),1);var tC=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new gt,this.metadataFilename=`bake-metadata-${Me.generateRandomString()}.json`}getMetadataFilePath(){return OOe.default.join(mt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!yK.default.existsSync(e))return;let r=yK.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],i,s=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!Me.isValidRef(l)){s.push(l);continue}if(i)throw new Error("Only one remote bake definition can be defined");i=l}}i&&n.push(i);for(let l of s)n.push("--file",l);if(e.overrides)for(let l of e.overrides)n.push("--set",l);if(e.vars)for(let l of e.vars)n.push("--var",l);if(e.allow)for(let l of e.allow)n.push("--allow",l);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await xe.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${gt.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let i=r.target[n];i.attest&&Array.isArray(i.attest)&&(i.attest=i.attest.map(s=>t.parseAttestEntry(s))),i["cache-from"]&&Array.isArray(i["cache-from"])&&(i["cache-from"]=i["cache-from"].map(s=>t.parseCacheEntry(s))),i["cache-to"]&&Array.isArray(i["cache-to"])&&(i["cache-to"]=i["cache-to"].map(s=>t.parseCacheEntry(s))),i.output&&Array.isArray(i.output)&&(i.output=i.output.map(s=>t.parseExportEntry(s))),i.secret&&Array.isArray(i.secret)&&(i.secret=i.secret.map(s=>t.parseSecretEntry(s))),i.ssh&&Array.isArray(i.ssh)&&(i.ssh=i.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=Me.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let i of n){let[s,a]=i.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=Co(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],i="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":i=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return i==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,i]=e.split("=",2);return r.id=n,i&&(r.paths=i.split(",")),r} Line truncated
`)[0])}static async isHeadDetached(e){return await t.exec(["branch","--show-current"],e).then(r=>r.length==0)}static async getDetachedRef(e){let r=await t.exec(["show","-s","--pretty=%D"],e);D(`detached HEAD ref: ${r}`);let n=r.replace(/^grafted, /,"").trim();if(n==="HEAD")return await t.inferRefFromHead(e);let i=n.match(/^HEAD, (.*)$/);if(!i||!i[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let s=i[1].trim();if(s.startsWith("tag: "))return await t.findDetachedTagRef(s,r,e);if(s.match(/^pull\/\d+\/(head|merge)$/))return`refs/${s}`;let c=s.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=s.match(/^[^/]+\/(.+)$/);if(l)return`refs/heads/${l[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${r}"`)}static async exec(e=[],r){return await xe.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr);return n.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let n=await t.findContainingRef("refs/remotes/",e);if(n){let a=n.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:n}let i=await t.exec(["tag","--contains","HEAD"],e),[s]=i.split(`
`).map(a=>a.trim()).filter(a=>a.length>0);return s?`refs/tags/${s}`:""}static async findDetachedTagRef(e,r,n){let s=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],n)).split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of s){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(s.length===1)return s[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let n=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[i]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var XMe=require("crypto"),ou=N(require("fs"),1),au=N(require("path"),1);var kC=N(BK(),1),ZMe=N(U7(),1),PC=N(jMe(),1);var JMe=require("util");var HX=N(BK(),1);var YMe=N(ac(),1);var WMe="application/vnd.oci.empty.v1+json";var Gs=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await xe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(D(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(D(`Cosign.isAvailable error: ${r}`),!1));return D(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await xe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await xe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,JMe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return D("Cosign.versionSatisfies false: undefined version"),!1;let i=YMe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return D(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===HX.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===WMe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===HX.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var VX=N(require("fs"),1);var VO=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=mt.tmpName({tmpdir:mt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){O(`[command]${a.command} ${a.args.join(" ")}`),O("Skipped create command");return}return await xe.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!VX.default.existsSync(n))return;let l=VX.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand([e Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await xe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var QC="https://search.sigstore.dev";var KMe="slsaprovenance1",bh=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Gs,this.imageTools=e?.imageTools||new VO}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Qr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];O(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await xe.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Gs.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`).map(s=>s.trim()).filter(s=>s.length>0);return i}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var XMe=require("crypto"),ou=N(require("fs"),1),au=N(require("path"),1);var kC=N(xK(),1),ZMe=N(q7(),1),PC=N(jMe(),1);var JMe=require("util");var VX=N(xK(),1);var YMe=N(ac(),1);var WMe="application/vnd.oci.empty.v1+json";var Gs=class{static{o(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await xe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(D(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(D(`Cosign.isAvailable error: ${r}`),!1));return D(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await xe.getExecOutput(this.binPath,["version","--json"],{ignoreReturnCode:!0,silent:!0}).then(e=>{if(e.stderr.length>0&&e.exitCode!=0)throw new Error(e.stderr.trim());return JSON.parse(e.stdout.trim()).gitVersion}),this._version)}async printVersion(){await xe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,JMe.stripVTControlCharacters)(e).split(/[\r\n]/);for(let n=r.length-1;n>=0;n--){let i=r[n].trim();if(i)return i}return"unknown error"}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return D("Cosign.versionSatisfies false: undefined version"),!1;let i=YMe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return D(`Cosign.versionSatisfies ${n} statisfies ${e}: ${i}`),i}static parseCommandOutput(e){let r,n,i,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let l;try{l=JSON.parse(c)}catch{continue}if(l&&Array.isArray(l.errors)&&l.errors.length>0&&(s=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===VX.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===WMe&&typeof u.digest=="string"&&(n=u.digest)}if(!i&&l&&l.mediaType===VX.BUNDLE_V03_MEDIA_TYPE&&(i=l),i&&(r||n)){s=void 0;break}}return{bundle:i,signatureManifestDigest:r||n,errors:s}}};var zX=N(require("fs"),1);var VO=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new gt}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let i=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=s.get(c);return l?l.platform?.os===i.os&&l.platform?.architecture===i.architecture&&(l.platform?.variant??"")===(i.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=mt.tmpName({tmpdir:mt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),i=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&i.push(l);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of i)r.push("--file",c);for(let c of s)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){O(`[command]${a.command} ${a.args.join(" ")}`),O("Skipped create command");return}return await xe.getExecOutput(a.command,a.args,{ignoreReturnCode:!0,silent:e.silent}).then(c=>{if(c.stderr.length>0&&c.exitCode!=0)throw new Error(c.stderr.trim());if(!e.dryRun){if(!zX.default.existsSync(n))return;let l=zX.default.readFileSync(n,{encoding:"utf-8"}).trim();if(l===""||l==="null")return;let u=JSON.parse(l),d=u["containerimage.descriptor"];return d?{digest:u["containerimage.digest"]||d.digest,descriptor:d,imageNames:u["image.name"]?u["image.name"].split(",").map(f=>f.trim()):[]}:void 0}})}async inspect(e,r,n){let i=await this.getInspectCommand([e Line truncated
${a.message}`),await new Promise(u=>setTimeout(u,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await xe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(i=>{if(i.stderr.length>0&&i.exitCode!=0)throw new Error(i.stderr.trim());return n(JSON.parse(i.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var QC="https://search.sigstore.dev";var KMe="slsaprovenance1",bh=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Gs,this.imageTools=e?.imageTools||new VO}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n);for(let s of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${s}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${s}@${c}`;await Qr(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...i];O(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await xe.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Gs.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(f.errors&&f.errors.length>0){let p=f.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${p}`)}else throw new Error(`Cosign sign command failed with: ${Gs.getErrorMessage(d.stderr)}`);let h=t.parseBundle((0,kC.bundleFromJSON)(f.bundle));h.tlogID&&await this.logTransparencyUpload(h.tlogID,n),O(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...h,imageName:s}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[i,s]of Object.entries(e))await Qr(`Verifying signature of ${i}`,async()=>{let a=await this.verifyImageAttestation(i,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});O(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[i]=a});return n}async verifyImageAttestations(e,r){let n={},i=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(i.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of i){let c=`${s}@${a}`,l=await this.verifyImageAttestation(c,r);O(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${l.signatureManifestDigest}`),n[c]=l}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await xe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${Gs.getErrorMessage(a.stderr)}`);let c=Gs.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let i=r.retryLimit??15,s;O(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<i;a++){let c=await xe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Gs.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))O(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${i}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Gs.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Qr(`Signing ${a}`,async()=>{let c=s[a],l=au.default.join(au.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ht(`No subjects found in provenance ${a}, skip signing.`);return}let d=au.default.join(au.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",KMe,"--bundle",l,...i];O(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await xe.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Gs.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let m=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${Gs.getErrorMessage(c.stderr)}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},i=await this.cosignSigningConfigArgs(n),s=t.getProvenanceBlobs(e);for(let a of Object.keys(s))await Qr(`Signing ${a}`,async()=>{let c=s[a],l=au.default.join(au.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){Ht(`No subjects found in provenance ${a}, skip signing.`);return}let d=au.default.join(au.default.dirname(a),u[0].name),f=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",KMe,"--bundle",l,...i];O(`[command]${this.cosign.binPath} ${[...f,d].join(" ")}`);let h=await xe.getExecOutput(this.cosign.binPath,["--verbose",...f,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),p=Gs.parseCommandOutput(h.stderr.trim());if(h.exitCode!=0)if(p.errors&&p.errors.length>0){let g=p.errors.map(E=>`- [${E.code}] ${E.message} : ${E.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${m}`)}else throw new Error(`Cosign attest-blob command failed with: ${Gs.getErrorMessage(h.stderr)}`);let g=t.parseBundle((0,kC.bundleFromJSON)(JSON.parse(ou.default.readFileSync(l,{encoding:"utf-8"}))));O("Provenance blob signed for:");for(let m of u){let[E,y]=Object.entries(m.digest)[0]||[];O(` - ${m.name} (${E}:${y})`)}g.tlogID&&await this.logTransparencyUpload(g.tlogID,n),O(`Sigstore bundle written to: ${l}`),r[a]={...g,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=au.default.dirname(i);await Qr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=au.default.join(a,c.name);O(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??KMe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await xe.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){O("Verifying keyless verification bundle signature");let i=JSON.parse(ou.default.readFileSync(r,"utf-8")),s=(0,kC.bundleFromJSON)(i);O("Fetching Sigstore TUF trusted root metadata");let a=await ZMe.getTrustedRoot({retry:{retries:5}}),c=(0,PC.toTrustMaterial)(a);try{O("Verifying artifact signature");let l=(0,PC.toSignedEntity)(s,ou.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new PC.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return D(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ze.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(O(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Qr("Creating Sigstore protobuf signing config",async()=>{let s=mt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:mt.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await xe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),O(JSON.stringify(JSON.parse(ou.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){O(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}O(`Attestation signature uploaded to Rekor transparency log: ${QC}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=au.default.join(e.localExportDir,"provenance.json");if(ou.default.existsSync(r))return{[r]:ou.default.readFileSync(r)};let n=ou.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>ou.default.existsSync(au.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=au.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ou.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,kC.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new XMe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var zO=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let g of h.split(", "))g.includes("*")&&p.push(g.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var eUe=N(ac(),1);var $O=N(require("fs"),1);var jO=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!$O.default.existsSync(e))throw new Error(`config file ${e} not found`);e=$O.default.readFileSync(e,{encoding:"utf-8"})}let n=mt.tmpName({tmpdir:mt.tmpDir()});return $O.default.writeFileSync(n,e),n}};var WO=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new jO,this.buildx=e?.buildx||new gt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ht(r)}return e.buildkit}async getVersionWithinImage(e){return D(`BuildKit.getVersionWithinImage nodeName: ${e}`),sn.getExecOutput(["inspect","--format","{{.Config.Image}}",`${gt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return D(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),sn.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new LC({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(D(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return D(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(D(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!eUe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var JO=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await sn.isAvailable();return D(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(D(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(D(`Compose.isAvailable error: ${n}`),!1));return D(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await xe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var _d=N(require("fs"),1),lu=N(require("os"),1),FC=N(require("path"),1);var KO=N(ac(),1),$X=N(require("util"),1);var YO=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);D(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);D(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);D(`Install.download vspec: ${s}`);let a=KO.clean(s)||"";if(!KO.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Wn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:FC.default.join(lu.default.homedir(),".bin","docker-compose"),cacheFile:lu.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return O(`Compose binary found in ${l}`),l;let u=$X.format(n.downloadURL,s,this.filename());O(`Downloading ${u}`);let d=await Vo(u,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return O(`Cached to ${f}`),f}async installStandalone(e,r){O("Standalone mode"),r=r||mt.tmpDir();let n=FC.default.join(r,"compose-bin-standalone");_d.default.existsSync(n)||_d.default.mkdirSync(n,{recursive:!0});let i=lu.default.platform()=="win32"?"compose.exe":"compose",s=FC.default.join(n,i);return _d.default.copyFileSync(e,s),O("Fixing perms"),_d.default.chmodSync(s,"0755"),Lc(n),O("Added Compose to PATH"),O(`Binary path: ${s}`),s}async installPlugin(e,r){O("Docker plugin mode"),r=r||sn.configDir;let n=FC.default.join(r,"cli-plugins");_d.default.existsSync(n)||_d.default.mkdirSync(n,{recursive:!0});let i=lu.default Line truncated
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${Gs.getErrorMessage(h.stderr)}`);let m=t.parseBundle((0,kC.bundleFromJSON)(JSON.parse(ou.default.readFileSync(l,{encoding:"utf-8"}))));O("Provenance blob signed for:");for(let g of u){let[E,y]=Object.entries(g.digest)[0]||[];O(` - ${g.name} (${E}:${y})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,n),O(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[i,s]of Object.entries(e)){let a=au.default.dirname(i);await Qr(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let l=au.default.join(a,c.name);O(`Verifying signed artifact ${l}`);let u=["verify-blob-attestation",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??KMe];(r.noTransparencyLog||!s.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await xe.getExecOutput(this.cosign.binPath,[...u,"--bundle",s.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);n[l]={bundlePath:s.bundlePath,cosignArgs:u}}})}return n}async verifyArtifact(e,r,n){O("Verifying keyless verification bundle signature");let i=JSON.parse(ou.default.readFileSync(r,"utf-8")),s=(0,kC.bundleFromJSON)(i);O("Fetching Sigstore TUF trusted root metadata");let a=await ZMe.getTrustedRoot({retry:{retries:5}}),c=(0,PC.toTrustMaterial)(a);try{O("Verifying artifact signature");let l=(0,PC.toSignedEntity)(s,ou.default.readFileSync(e)),u=t.parseCertificate(s),d=s.verificationMaterial.tlogEntries,f=d.length>0?d[0].logIndex:void 0,p=new PC.Verifier(c).verify(l,{subjectAlternativeName:n?.subjectAlternativeName,extensions:n?.issuer?{issuer:n.issuer}:void 0});return D(`Sigstore.verifyArtifact signer: ${JSON.stringify(p)}`),{payload:i,certificate:u.toString(),tlogID:f}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ze.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e.noTransparencyLog);if(O(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let i=await this.useRekorV2(e);await Qr("Creating Sigstore protobuf signing config",async()=>{let s=mt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:mt.tmpDir()}),a=["signing-config","create",i?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${s}`];n&&a.push("--no-default-rekor=true"),await xe.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),O(JSON.stringify(JSON.parse(ou.default.readFileSync(s,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${s}`)})}else r.push("--use-signing-config"),n&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){O(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}O(`Attestation signature uploaded to Rekor transparency log: ${QC}?logIndex=${e}`)}async useRekorV2(e){return e.rekorV2===!0&&!t.noTransparencyLog(e.noTransparencyLog)&&await this.cosign.versionSatisfies(">=3.1.1")}static getProvenanceBlobs(e){let r=au.default.join(e.localExportDir,"provenance.json");if(ou.default.existsSync(r))return{[r]:ou.default.readFileSync(r)};let n=ou.default.readdirSync(e.localExportDir,{withFileTypes:!0}),i=n.filter(s=>s.isDirectory());if(i.length>0&&i.length===n.length&&i.every(s=>ou.default.existsSync(au.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of i){let c=au.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ou.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,i=n.length>0?n[0].logIndex:void 0;return{payload:(0,kC.bundleToJSON)(e),certificate:r.toString(),tlogID:i}}static parseCertificate(e){let r;switch(e.verificationMaterial.content.$case){case"x509CertificateChain":r=e.verificationMaterial.content.x509CertificateChain.certificates[0].rawBytes;break;case"certificate":r=e.verificationMaterial.content.certificate.rawBytes;break;default:throw new Error("Bundle must contain an x509 certificate")}return new XMe.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var zO=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[u,...d]=l.split(":"),f=u.toLowerCase(),h=d.map(p=>p.trim()).join(":");if(u.length!=0)switch(!0){case f=="name":n=void 0,r.name==null?r.name=h:(s&&i.gcPolicy&&(i.gcPolicy.push(s),s=void 0),i.name&&r.nodes.push(i),i={name:h});break;case f=="driver":n=void 0,r.driver=h;break;case f=="last activity":n=void 0,r.lastActivity=new Date(h);break;case f=="endpoint":n=void 0,i.endpoint=h;break;case f=="driver options":n=void 0,i["driver-opts"]=(h.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(p=>p.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case f=="status":n=void 0,i.status=h;break;case f=="buildkit daemon flags":case f=="flags":n=void 0,i["buildkitd-flags"]=h;break;case f=="buildkit version":case f=="buildkit":n=void 0,i.buildkit=h;break;case f=="platforms":{if(n=void 0,!h)break;let p=[];if(h.includes("*"))for(let m of h.split(", "))m.includes("*")&&p.push(m.replace(/\*/g,""));else p=h.split(", ");i.platforms=p.join(",");break}case f=="features":n="features",i.features={};break;case f=="labels":n="label",i.labels={};break;case f=="devices":n="devices",i.devices=i.devices||[];break;case f.startsWith("gc policy rule#"):n="gcpolicy",i.gcPolicy&&s&&(i.gcPolicy.push(s),s=void 0);break;case f.startsWith("file#"):n="file",c=u.split("#")[1],i.files=i.files||{},i.files[c]="";break;default:switch(n&&n!=="devices"&&i.devices&&a&&(i.devices.push(a),a=void 0),n||""){case"features":{i.features=i.features||{},i.features[u.trim()]=!!h;break}case"label":{i.labels=i.labels||{},i.labels[u.trim()]=h;break}case"devices":{switch(f.trim()){case"name":{i.devices&&a&&i.devices.push(a),a={},a.name=h;break}case"on-demand":{a&&h&&(a.onDemand=h=="true");break}case"automatically allowed":{a&&h&&(a.autoAllow=h=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=h)}break}case"gcpolicy":{switch(i.gcPolicy=i.gcPolicy||[],s=s||{},f.trim()){case"all":{s.all=h=="true";break}case"filters":{h&&(s.filter=h.split(","));break}case"keep duration":{s.keepDuration=h;break}case"keep bytes":{s.keepBytes=h;break}case"reserved space":{s.reservedSpace=h;break}case"max used space":{s.maxUsedSpace=h;break}case"min free space":{s.minFreeSpace=h;break}}break}case"file":{c&&i.files&&(i.files[c].length>0&&(i.files[c]+=`
`),i.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&i.devices&&i.devices.push(a),s&&i.gcPolicy&&i.gcPolicy.push(s),i.name&&r.nodes.push(i),r}};var eUe=N(ac(),1);var $O=N(require("fs"),1);var jO=class{static{o(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!$O.default.existsSync(e))throw new Error(`config file ${e} not found`);e=$O.default.readFileSync(e,{encoding:"utf-8"})}let n=mt.tmpName({tmpdir:mt.tmpDir()});return $O.default.writeFileSync(n,e),n}};var WO=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new jO,this.buildx=e?.buildx||new gt}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ht(r)}return e.buildkit}async getVersionWithinImage(e){return D(`BuildKit.getVersionWithinImage nodeName: ${e}`),sn.getExecOutput(["inspect","--format","{{.Config.Image}}",`${gt.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return D(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),sn.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new LC({buildx:this.buildx}).inspect(e));for(let i of n.nodes){let s=i.buildkit;if(D(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(i.name||"")}catch{return D(`BuildKit.versionSatisfies ${i.name}: can't get version`),!1}if(D(`BuildKit.versionSatisfies ${i.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!eUe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var JO=class t{static{o(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await sn.isAvailable();return D(`Compose.isStandalone: ${e}`),e}async getCommand(e){let r=await this.isStandalone();return{command:r?"compose":"docker",args:r?e:["compose",...e]}}async isAvailable(){let e=await this.getCommand([]),r=await xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(D(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(D(`Compose.isAvailable error: ${n}`),!1));return D(`Compose.isAvailable: ${r}`),r}async version(){if(this._versionOnce)return this._version;this._versionOnce=!0;let e=await this.getCommand(["version"]);return this._version=await xe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr.trim());return t.parseVersion(r.stdout.trim())}),this._version}async printVersion(){let e=await this.getCommand(["version"]);await xe.exec(e.command,e.args,{failOnStdErr:!1})}static parseVersion(e){let r=/\sv?([0-9a-f]{7}|[0-9.]+)/.exec(e);if(!r)throw new Error("Cannot parse compose version");return r[1]}};var _d=N(require("fs"),1),lu=N(require("os"),1),FC=N(require("path"),1);var KO=N(ac(),1),jX=N(require("util"),1);var YO=class t{static{o(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);D(`Install.download version: ${n.version}`);let i=await t.getRelease(n,this.githubToken);D(`Install.download release tag name: ${i.tag_name}`);let s=await this.vspec(i.tag_name);D(`Install.download vspec: ${s}`);let a=KO.clean(s)||"";if(!KO.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new Wn({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:FC.default.join(lu.default.homedir(),".bin","docker-compose"),cacheFile:lu.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return O(`Compose binary found in ${l}`),l;let u=jX.format(n.downloadURL,s,this.filename());O(`Downloading ${u}`);let d=await Vo(u,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${d}`);let f=await c.save(d);return O(`Cached to ${f}`),f}async installStandalone(e,r){O("Standalone mode"),r=r||mt.tmpDir();let n=FC.default.join(r,"compose-bin-standalone");_d.default.existsSync(n)||_d.default.mkdirSync(n,{recursive:!0});let i=lu.default.platform()=="win32"?"compose.exe":"compose",s=FC.default.join(n,i);return _d.default.copyFileSync(e,s),O("Fixing perms"),_d.default.chmodSync(s,"0755"),Lc(n),O("Added Compose to PATH"),O(`Binary path: ${s}`),s}async installPlugin(e,r){O("Docker plugin mode"),r=r||sn.configDir;let n=FC.default.join(r,"cli-plugins");_d.default.existsSync(n)||_d.default.mkdirSync(n,{recursive:!0});let i=lu.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -293,8 +293,8 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var XO=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new gt,this.sigstore=e?.sigstore||new bh}async download(e){let r=await t.getDownloadVersion(e.version);D(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);D(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);D(`Install.download vspec: ${i}`);let s=UC.clean(i)||"";if(!UC.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Wn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:MC.default.join(Ic.default.homedir(),".bin"),cacheFile:Ic.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return O(`Cosign binary found in ${c}`),c;let l=jX.format(r.downloadURL,i,this.filename());O(`Downloading ${l}`);let u=await Vo(l,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&UC.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return O(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);D(`Install.build vspec: ${i}`);let s=new Wn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:MC.default.join(Ic.default.homedir(),".bin"),cacheFile:Ic.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return O(`Cosign binary found in ${a}`),a;let c=MC.default.join(mt.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await xe.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(tUe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${gt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return O(`Cached to ${d}`),d}async install(e,r){r=r||mt.tmpDir();let n=MC.default.join(r,"cosign-bin");GB.default.existsSync(n)||GB.default.mkdirSync(n,{recursive:!0});let i=Ic.default.platform()=="win32"?"cosign.exe":"cosign",s=MC.default.join(n,i);return GB.default.copyFileSync(e,s),O("Fixing perms"),GB.default.chmodSync(s,"0755"),Lc(n),O("Added Cosign to PATH"),O(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new gt({standalone:!0}).isAvailable(),i=await new gt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)D("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)D("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)D("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)D("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new gt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;O(`Downloading keyless verification bundle at ${n}`);let i=await Vo(n,void 0,this.githubToken);D(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});O(`Cosign binary signature verified! ${s.tlogID?`${QC}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Ic.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ic.default.arch();break}}let r=Ic.default.platform()=="win32"?"windows":Ic.default.platform(),n=Ic.default.platform()=="win32"?".exe":"";return jX.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Me.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return O(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await rC.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Me.trimSuffix(a,".git")}/${i}`,l=Me.hash(c);return O(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ze({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var rUe=N(ac(),1);var ZO=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await xe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`)[0]?.trim())}else u=Error(`buildx bake failed with: ${gt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Qr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ze.printUntrusted(h),Tce("metadata",h)});let f=[];if(await Qr("Build references",async()=>{if(f=await r5t(r,t,e.builder),f.length>0){for(let h of f)O(h);yUe(f)}else O("No build references found")}),n5t()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await gt.convertWarningsToGitHubAnnotations(h,f);D(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Qr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let g of p)Ht(g.message,g)})}}if(await Qr("Check build summary support",async()=>{i5t()?e.call&&e.call!=="build"?O(`Build summary skipped for ${e.call} subrequest`):Ze.isGHES?O("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?O("Build summary requires at least one build reference"):(O("Build summary supported!"),EUe()):O("Build summary requires Buildx >= 0.23.0"):O("Build summary disabled")}),u)throw u},async()=>{hUe&&await Qr("Generating build summary",async()=>{try{let t=s5t(),e;t&&(e=o5t());let n=await new zD().export({refs:fUe});O(`Build records written to ${n.dockerbuildFilename} (${Me.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await rP.upload({filename:n.dockerbuildFilename,retentionDays:e})),await dP.writeBuildSummary({exportRes:n,uploadRes:i,inputs:uUe,bakeDefinition:dUe,driver:cUe,endpoint:lUe})}catch(t){Ht(t.message)}}),aL.length>0&&await Qr(`Removing temp folder ${aL}`,async()=>{bUe.rmSync(aL,{recursive:!0})})});async function r5t(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=gt.refs({dir:gt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(r5t,"buildRefs");function n5t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Me.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(n5t,"buildChecksAnnotationsEnabled");function i5t(){return process.env.DOCKER_BUILD_SUMMARY?Me.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(i5t,"buildSummaryEnabled");function s5t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Me.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(s5t,"buildRecordUploadEnabled");function o5t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(o5t,"buildRecordRetentionDays");
`;var XO=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new gt,this.sigstore=e?.sigstore||new bh}async download(e){let r=await t.getDownloadVersion(e.version);D(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);D(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);D(`Install.download vspec: ${i}`);let s=UC.clean(i)||"";if(!UC.valid(s))throw new Error(`Invalid Cosign version "${i}".`);let a=new Wn({htcName:"cosign-dl-bin",htcVersion:i,baseCacheDir:MC.default.join(Ic.default.homedir(),".bin"),cacheFile:Ic.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return O(`Cosign binary found in ${c}`),c;let l=WX.format(r.downloadURL,i,this.filename());O(`Downloading ${l}`);let u=await Vo(l,void 0,this.githubToken);D(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&UC.satisfies(i,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return O(`Cached to ${d}`),d}async build(e,r,n){let i=await this.vspec(e);D(`Install.build vspec: ${i}`);let s=new Wn({htcName:"cosign-build-bin",htcVersion:i,baseCacheDir:MC.default.join(Ic.default.homedir(),".bin"),cacheFile:Ic.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return O(`Cosign binary found in ${a}`),a;let c=MC.default.join(mt.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await xe.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(tUe)}).then(f=>{if(f.stderr.length>0&&f.exitCode!=0)throw new Error(`build failed with: ${gt.getErrorMessage(f.stderr)}`);return`${c}/cosign`}),d=await s.save(u,n);return O(`Cached to ${d}`),d}async install(e,r){r=r||mt.tmpDir();let n=MC.default.join(r,"cosign-bin");GB.default.existsSync(n)||GB.default.mkdirSync(n,{recursive:!0});let i=Ic.default.platform()=="win32"?"cosign.exe":"cosign",s=MC.default.join(n,i);return GB.default.copyFileSync(e,s),O("Fixing perms"),GB.default.chmodSync(s,"0755"),Lc(n),O("Added Cosign to PATH"),O(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new gt({standalone:!0}).isAvailable(),i=await new gt({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)D("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&i)D("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)D("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(i)D("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new gt({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;O(`Downloading keyless verification bundle at ${n}`);let i=await Vo(n,void 0,this.githubToken);D(`Install.verifySignature bundlePath: ${i}`);let s=await this.sigstore.verifyArtifact(e,i,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});O(`Cosign binary signature verified! ${s.tlogID?`${QC}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(Ic.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ic.default.arch();break}}let r=Ic.default.platform()=="win32"?"windows":Ic.default.platform(),n=Ic.default.platform()=="win32"?".exe":"";return WX.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!Me.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return O(`Use ${u} version spec cache key for ${e}`),u}let[r,n]=e.split("#");n.length==0&&(n="master");let i;n.match(/^[0-9a-fA-F]{40}$/)?i=n:i=await rC.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${Me.trimSuffix(a,".git")}/${i}`,l=Me.hash(c);return O(`Use ${l} version spec cache key for ${c}`),l}static async getDownloadVersion(e){return{version:e,downloadURL:"https://github.com/sigstore/cosign/releases/download/v%s/%s",contentOpts:{owner:"docker",repo:"actions-toolkit",ref:"main",path:".github/cosign-releases.json"}}}static async getRelease(e,r){let i=await new Ze({token:r}).releases("Cosign",e.contentOpts);if(!i[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return i[e.version]}};var rUe=N(ac(),1);var ZO=class{static{o(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await xe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`)[0]?.trim())}else u=Error(`buildx bake failed with: ${gt.getErrorMessage(h.stderr)}`)});let d=r.buildxBake.resolveMetadata();d&&await Qr("Metadata",async()=>{let h=JSON.stringify(d,null,2);Ze.printUntrusted(h),Rce("metadata",h)});let f=[];if(await Qr("Build references",async()=>{if(f=await s5t(r,t,e.builder),f.length>0){for(let h of f)O(h);yUe(f)}else O("No build references found")}),o5t()){let h=r.buildxBake.resolveWarnings(d);if(f.length>0&&h&&h.length>0){let p=await gt.convertWarningsToGitHubAnnotations(h,f);D(`annotations: ${JSON.stringify(p,null,2)}`),p&&p.length>0&&await Qr(`Generating GitHub annotations (${p.length} build checks found)`,async()=>{for(let m of p)Ht(m.message,m)})}}if(await Qr("Check build summary support",async()=>{a5t()?e.call&&e.call!=="build"?O(`Build summary skipped for ${e.call} subrequest`):Ze.isGHES?O("Build summary is not yet supported on GHES"):await r.buildx.versionSatisfies(">=0.23.0")?f.length==0?O("Build summary requires at least one build reference"):(O("Build summary supported!"),EUe()):O("Build summary requires Buildx >= 0.23.0"):O("Build summary disabled")}),u)throw u},async()=>{hUe&&await Qr("Generating build summary",async()=>{try{let t=c5t(),e;t&&(e=l5t());let n=await new zD().export({refs:fUe});O(`Build records written to ${n.dockerbuildFilename} (${Me.formatFileSize(n.dockerbuildSize)})`);let i;t&&(i=await rP.upload({filename:n.dockerbuildFilename,retentionDays:e})),await dP.writeBuildSummary({exportRes:n,uploadRes:i,inputs:uUe,bakeDefinition:dUe,driver:cUe,endpoint:lUe})}catch(t){Ht(t.message)}}),aL.length>0&&await Qr(`Removing temp folder ${aL}`,async()=>{bUe.rmSync(aL,{recursive:!0})})});async function s5t(t,e,r){let n=t.buildxBake.resolveRefs();if(n)return n;r||(r=(await t.builder.inspect()).name);let i=gt.refs({dir:gt.refsDir,builderName:r,since:e}),s=[];for(let a in i)Object.prototype.hasOwnProperty.call(i,a)&&s.push(a);return s}o(s5t,"buildRefs");function o5t(){return process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS?Me.parseBool(process.env.DOCKER_BUILD_CHECKS_ANNOTATIONS):!0}o(o5t,"buildChecksAnnotationsEnabled");function a5t(){return process.env.DOCKER_BUILD_SUMMARY?Me.parseBool(process.env.DOCKER_BUILD_SUMMARY):!0}o(a5t,"buildSummaryEnabled");function c5t(){return process.env.DOCKER_BUILD_RECORD_UPLOAD?Me.parseBool(process.env.DOCKER_BUILD_RECORD_UPLOAD):!0}o(c5t,"buildRecordUploadEnabled");function l5t(){let t=process.env.DOCKER_BUILD_RECORD_RETENTION_DAYS;if(t){let e=parseInt(t);if(isNaN(e))throw Error(`Invalid build record retention days: ${t}`);return e}}o(l5t,"buildRecordRetentionDays");
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,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,IAAK,SAASO,GAAgBT,IAAO,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,IAAI,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
"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": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,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,IAAK,SAASO,GAAgBT,IAAO,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,IAAI,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
+1 -1
View File
@@ -3289,7 +3289,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm packages may be included in this product:
- brace-expansion@1.1.18
- brace-expansion@1.1.21
- brace-expansion@2.0.2
These packages each contain the following license:
+63 -63
View File
@@ -1,8 +1,8 @@
var UX=Object.create;var Om=Object.defineProperty;var qX=Object.getOwnPropertyDescriptor;var GX=Object.getOwnPropertyNames;var HX=Object.getPrototypeOf,zX=Object.prototype.hasOwnProperty;var o=(t,e)=>Om(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),VX=(t,e)=>{for(var r in e)Om(t,r,{get:e[r],enumerable:!0})},YX=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of GX(e))!zX.call(t,n)&&n!==r&&Om(t,n,{get:()=>e[n],enumerable:!(s=qX(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?UX(HX(t)):{},YX(e||!t||!t.__esModule?Om(r,"default",{value:t,enumerable:!0}):r,t));var l_=f(Lc=>{"use strict";var SLe=require("net"),jX=require("tls"),fB=require("http"),o_=require("https"),KX=require("events"),RLe=require("assert"),XX=require("util");Lc.httpOverHttp=ZX;Lc.httpsOverHttp=eZ;Lc.httpOverHttps=tZ;Lc.httpsOverHttps=rZ;function ZX(t){var e=new Bi(t);return e.request=fB.request,e}o(ZX,"httpOverHttp");function eZ(t){var e=new Bi(t);return e.request=fB.request,e.createSocket=a_,e.defaultPort=443,e}o(eZ,"httpsOverHttp");function tZ(t){var e=new Bi(t);return e.request=o_.request,e}o(tZ,"httpOverHttps");function rZ(t){var e=new Bi(t);return e.request=o_.request,e.createSocket=a_,e.defaultPort=443,e}o(rZ,"httpsOverHttps");function Bi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||fB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=c_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Bi,"TunnelingAgent");XX.inherits(Bi,KX.EventEmitter);Bi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=gB({request:e},i.options,c_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Bi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=gB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),po("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){po("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){po("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return po("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),po(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Bi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function a_(t,e){var r=this;Bi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=gB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=jX.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(a_,"createSecureSocket");function c_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(c_,"toOptions");function gB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(gB,"mergeOptions");var po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?po=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"):po=o(function(){},"debug");Lc.debug=po});var AA=f((PLe,u_)=>{u_.exports=l_()});var ze=f((kLe,A_)=>{A_.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 Ie=f((DLe,L_)=>{"use strict";var d_=Symbol.for("undici.error.UND_ERR"),Ve=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[d_]===!0}[d_]=!0},p_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),EB=class extends Ve{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[p_]===!0}[p_]=!0},m_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),yB=class extends Ve{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[m_]===!0}[m_]=!0},h_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),CB=class extends Ve{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[h_]===!0}[h_]=!0},f_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),IB=class extends Ve{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(WL,"isValidHeaderValue");function Eee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(ree.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Eee,"setRequestReferrerPolicyOnRedirect");function yee(){return"allowed"}o(yee,"crossOriginResourcePolicyCheck");function Cee(){return"success"}o(Cee,"corsCheck");function Iee(){return"success"}o(Iee,"TAOCheck");function Bee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Bee,"appendFetchMetadata");function wee(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&&pw(t.origin)&&!pw(IA(t))&&(e=null);break;case"same-origin":ch(t,IA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(wee,"appendRequestOriginHeader");function Yc(t,e){return t}o(Yc,"coarsenTime");function bee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Yc(t.domainLookupStartTime,r),domainLookupEndTime:Yc(t.domainLookupEndTime,r),connectionStartTime:Yc(t.connectionStartTime,r),connectionEndTime:Yc(t.connectionEndTime,r),secureConnectionStartTime:Yc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(bee,"clampAndCoarsenConnectionTimingInfo");function Qee(t){return Yc(aee.now(),t)}o(Qee,"coarsenedSharedCurrentTime");function xee(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(xee,"createOpaqueTimingInfo");function jL(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(jL,"makePolicyContainer");function Nee(t){return{referrerPolicy:t.referrerPolicy}}o(Nee,"clonePolicyContainer");function See(t){let e=t.referrerPolicy;pa(e);let r=null;if(t.referrer==="client"){let c=zL();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=dw(r),n=dw(r,!0);s.toString().length>4096&&(s=n);let i=ch(t,s),a=CA(s)&&!CA(t.url);switch(e){case"origin":return n??dw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=IA(t);return ch(s,c)?s:CA(s)&&!CA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(See,"determineRequestsReferrer");function dw(t,e){return pa(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(dw,"stripURLForReferrer");function CA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(CA,"isURLPotentiallyTrustworthy");function Ree(t,e){if(ah===void 0)return!0;let r=KL(e);if(r==="no metadata"||r.length===0)return!0;let s=vee(r),n=Pee(r,s);for(let i of n){let a=i.algo,c=i.hash,l=ah.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)),kee(l,c))return!0}return!1}o(Ree,"bytesMatch");var Tee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function KL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Tee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();YL.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(KL,"parseMetadata");function vee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(vee,"getStrongestMetadata");function Pee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(Pee,"filterMetadataListByAlgorithm");function kee(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(kee,"compareBase64Mixed");function Dee(t){}o(Dee,"tryUpgradeReque Line truncated
`);function fte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(fte,"isAsciiString");function gte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(gte,"validateBoundary");function Ete(t,e){uh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],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+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Ah(t,mte,i)||i.position===t.length-4&&Ah(t,hte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=yte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",fte(A)||(A=""),m=new dte([p],u,{type:A})):m=ate(Buffer.from(p)),uh(uM(l)),uh(typeof m=="string"&&uM(m)||lte(m)),n.push(ute(l,m,u))}}o(Ete,"multipartFormDataParser");function yte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=Jc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Cw(a,!0,!0,c=>c===9||c===32),!cte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Jc(c=>c===32||c===9,t,e),ote(a)){case"content-disposition":{if(r=s=null,!Ah(t,pte,e)||(e.position+=17,r=pM(t,e),r===null))return"failure";if(Ah(t,dM,e)){let c=e.position+dM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=pM(t,e),s===null))return"failure"}break}case"content-type":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),n=AM(c);break}case"content-transfer-encoding":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),i=AM(c);break}default:Jc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(yte,"parseMultipartFormDataHeaders");function pM(t,e){uh(t[e.position-1]===34);let r=Jc(s=>s!==10&&s!==13&&s!==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(pM,"parseMultipartFormDataName");function Jc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(Jc,"collectASequenceOfBytes");function Cw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(Cw,"removeChars");function Ah(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(Ah,"bufferStartsWith");mM.exports={multipartFormDataParser:Ete,validateBoundary:gte}});var Kc=f((CMe,QM)=>{"use strict";var bA=de(),{ReadableStreamFrom:Cte,isBlobLike:fM,isReadableStreamLike:Ite,readableStreamClose:Bte,createDeferredPromise:wte,fullyReadBody:bte,extractMimeType:Qte,utf8DecodeBytes:yM}=Hr(),{FormData:gM}=wA(),{kState:jc}=mo(),{webidl:xte}=qt(),{Blob:Nte}=require("node:buffer"),Iw=require("node:assert"),{isErrored:CM,isDisturbed:Ste}=require("node:stream"),{isArrayBuffer:Rte}=require("node:util/types"),{serializeAMimeType:Tte}=Ir(),{multipartFormDataParser:vte}=hM(),Bw;try{let t=require("node:crypto");Bw=o(e=>t.randomInt(0,e),"random")}catch{Bw=o(t=>Math.floor(Math.random(t)),"random")}var dh=new TextEncoder;function Pte(){}o(Pte,"noop");var IM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,BM;IM&&(BM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ste(e)&&!CM(e)&&e.cancel("Response object has been garbage collected").catch(Pte)}));function wM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:fM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?dh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Bte(l))},start(){},type:"bytes"}),Iw(Ite(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Rte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(bA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Bw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var UX=Object.create;var Om=Object.defineProperty;var qX=Object.getOwnPropertyDescriptor;var GX=Object.getOwnPropertyNames;var HX=Object.getPrototypeOf,zX=Object.prototype.hasOwnProperty;var o=(t,e)=>Om(t,"name",{value:e,configurable:!0});var f=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),VX=(t,e)=>{for(var r in e)Om(t,r,{get:e[r],enumerable:!0})},YX=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of GX(e))!zX.call(t,n)&&n!==r&&Om(t,n,{get:()=>e[n],enumerable:!(s=qX(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?UX(HX(t)):{},YX(e||!t||!t.__esModule?Om(r,"default",{value:t,enumerable:!0}):r,t));var u_=f(Lc=>{"use strict";var vLe=require("net"),jX=require("tls"),fB=require("http"),a_=require("https"),KX=require("events"),PLe=require("assert"),XX=require("util");Lc.httpOverHttp=ZX;Lc.httpsOverHttp=eZ;Lc.httpOverHttps=tZ;Lc.httpsOverHttps=rZ;function ZX(t){var e=new Bi(t);return e.request=fB.request,e}o(ZX,"httpOverHttp");function eZ(t){var e=new Bi(t);return e.request=fB.request,e.createSocket=c_,e.defaultPort=443,e}o(eZ,"httpsOverHttp");function tZ(t){var e=new Bi(t);return e.request=a_.request,e}o(tZ,"httpOverHttps");function rZ(t){var e=new Bi(t);return e.request=a_.request,e.createSocket=c_,e.defaultPort=443,e}o(rZ,"httpsOverHttps");function Bi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||fB.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=l_(n,i,a),l=0,u=e.requests.length;l<u;++l){var A=e.requests[l];if(A.host===c.host&&A.port===c.port){e.requests.splice(l,1),A.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Bi,"TunnelingAgent");XX.inherits(Bi,KX.EventEmitter);Bi.prototype.addRequest=o(function(e,r,s,n){var i=this,a=gB({request:e},i.options,l_(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",l),c.on("close",u),c.on("agentRemove",u),e.onSocket(c);function l(){i.emit("free",c,a)}o(l,"onFree");function u(A){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Bi.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=gB({},s.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),po("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",l),a.once("connect",u),a.once("error",A),a.end();function c(d){d.upgrade=!0}o(c,"onResponse");function l(d,p,m){process.nextTick(function(){u(d,p,m)})}o(l,"onUpgrade");function u(d,p,m){if(a.removeAllListeners(),p.removeAllListeners(),d.statusCode!==200){po("tunneling socket could not be established, statusCode=%d",d.statusCode),p.destroy();var h=new Error("tunneling socket could not be established, statusCode="+d.statusCode);h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}if(m.length>0){po("got illegal response body from proxy"),p.destroy();var h=new Error("got illegal response body from proxy");h.code="ECONNRESET",e.request.emit("error",h),s.removeSocket(n);return}return po("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function A(d){a.removeAllListeners(),po(`tunneling socket could not be established, cause=%s
`,d.message,d.stack);var p=new Error("tunneling socket could not be established, cause="+d.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(A,"onError")},"createSocket");Bi.prototype.removeSocket=o(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var s=this.requests.shift();s&&this.createSocket(s,function(n){s.request.onSocket(n)})}},"removeSocket");function c_(t,e){var r=this;Bi.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=gB({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=jX.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(c_,"createSecureSocket");function l_(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(l_,"toOptions");function gB(t){for(var e=1,r=arguments.length;e<r;++e){var s=arguments[e];if(typeof s=="object")for(var n=Object.keys(s),i=0,a=n.length;i<a;++i){var c=n[i];s[c]!==void 0&&(t[c]=s[c])}}return t}o(gB,"mergeOptions");var po;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?po=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"):po=o(function(){},"debug");Lc.debug=po});var AA=f((_Le,A_)=>{A_.exports=u_()});var ze=f((LLe,d_)=>{d_.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 we=f((MLe,M_)=>{"use strict";var p_=Symbol.for("undici.error.UND_ERR"),Ve=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[p_]===!0}[p_]=!0},m_=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),EB=class extends Ve{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[m_]===!0}[m_]=!0},h_=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),yB=class extends Ve{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[h_]===!0}[h_]=!0},f_=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),CB=class extends Ve{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[f_]===!0}[f_]=!0},g_=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),IB=class extends Ve{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(jL,"isValidHeaderValue");function Eee(t,e){let{headersList:r}=e,s=(r.get("referrer-policy",!0)??"").split(","),n="";if(s.length>0)for(let i=s.length;i!==0;i--){let a=s[i-1].trim();if(ree.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Eee,"setRequestReferrerPolicyOnRedirect");function yee(){return"allowed"}o(yee,"crossOriginResourcePolicyCheck");function Cee(){return"success"}o(Cee,"corsCheck");function Iee(){return"success"}o(Iee,"TAOCheck");function Bee(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Bee,"appendFetchMetadata");function wee(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&&pw(t.origin)&&!pw(IA(t))&&(e=null);break;case"same-origin":ch(t,IA(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(wee,"appendRequestOriginHeader");function Yc(t,e){return t}o(Yc,"coarsenTime");function bee(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Yc(t.domainLookupStartTime,r),domainLookupEndTime:Yc(t.domainLookupEndTime,r),connectionStartTime:Yc(t.connectionStartTime,r),connectionEndTime:Yc(t.connectionEndTime,r),secureConnectionStartTime:Yc(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(bee,"clampAndCoarsenConnectionTimingInfo");function Qee(t){return Yc(aee.now(),t)}o(Qee,"coarsenedSharedCurrentTime");function xee(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(xee,"createOpaqueTimingInfo");function KL(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(KL,"makePolicyContainer");function Nee(t){return{referrerPolicy:t.referrerPolicy}}o(Nee,"clonePolicyContainer");function See(t){let e=t.referrerPolicy;pa(e);let r=null;if(t.referrer==="client"){let c=VL();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=dw(r),n=dw(r,!0);s.toString().length>4096&&(s=n);let i=ch(t,s),a=CA(s)&&!CA(t.url);switch(e){case"origin":return n??dw(r,!0);case"unsafe-url":return s;case"same-origin":return i?n:"no-referrer";case"origin-when-cross-origin":return i?s:n;case"strict-origin-when-cross-origin":{let c=IA(t);return ch(s,c)?s:CA(s)&&!CA(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(See,"determineRequestsReferrer");function dw(t,e){return pa(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(dw,"stripURLForReferrer");function CA(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 s=new URL(r);return!!(s.protocol==="https:"||s.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(s.hostname)||s.hostname==="localhost"||s.hostname.includes("localhost.")||s.hostname.endsWith(".localhost"))}}o(CA,"isURLPotentiallyTrustworthy");function Ree(t,e){if(ah===void 0)return!0;let r=XL(e);if(r==="no metadata"||r.length===0)return!0;let s=vee(r),n=Pee(r,s);for(let i of n){let a=i.algo,c=i.hash,l=ah.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)),kee(l,c))return!0}return!1}o(Ree,"bytesMatch");var Tee=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function XL(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=Tee.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();$L.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(XL,"parseMetadata");function vee(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let s=t[r];if(s.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;s.algo[3]==="3"&&(e="sha384")}}return e}o(vee,"getStrongestMetadata");function Pee(t,e){if(t.length===1)return t;let r=0;for(let s=0;s<t.length;++s)t[s].algo===e&&(t[r++]=t[s]);return t.length=r,t}o(Pee,"filterMetadataListByAlgorithm");function kee(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(kee,"compareBase64Mixed");function Dee(t){}o(Dee,"tryUpgradeReque Line truncated
`);function fte(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(fte,"isAsciiString");function gte(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let s=t.charCodeAt(r);if(!(s>=48&&s<=57||s>=65&&s<=90||s>=97&&s<=122||s===39||s===45||s===95))return!1}return!0}o(gte,"validateBoundary");function Ete(t,e){uh(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let s=Buffer.from(`--${r}`,"utf8"),n=[],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+s.length).equals(s))i.position+=s.length;else return"failure";if(i.position===t.length-2&&Ah(t,mte,i)||i.position===t.length-4&&Ah(t,hte,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=yte(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:A,encoding:d}=c;i.position+=2;let p;{let h=t.indexOf(s.subarray(2),i.position);if(h===-1)return"failure";p=t.subarray(i.position,h-4),i.position+=p.length,d==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let m;u!==null?(A??="text/plain",fte(A)||(A=""),m=new dte([p],u,{type:A})):m=ate(Buffer.from(p)),uh(AM(l)),uh(typeof m=="string"&&AM(m)||lte(m)),n.push(ute(l,m,u))}}o(Ete,"multipartFormDataParser");function yte(t,e){let r=null,s=null,n=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:s,contentType:n,encoding:i};let a=Jc(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Cw(a,!0,!0,c=>c===9||c===32),!cte.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Jc(c=>c===32||c===9,t,e),ote(a)){case"content-disposition":{if(r=s=null,!Ah(t,pte,e)||(e.position+=17,r=mM(t,e),r===null))return"failure";if(Ah(t,pM,e)){let c=e.position+pM.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=mM(t,e),s===null))return"failure"}break}case"content-type":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),n=dM(c);break}case"content-transfer-encoding":{let c=Jc(l=>l!==10&&l!==13,t,e);c=Cw(c,!1,!0,l=>l===9||l===32),i=dM(c);break}default:Jc(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(yte,"parseMultipartFormDataHeaders");function mM(t,e){uh(t[e.position-1]===34);let r=Jc(s=>s!==10&&s!==13&&s!==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(mM,"parseMultipartFormDataName");function Jc(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(Jc,"collectASequenceOfBytes");function Cw(t,e,r,s){let n=0,i=t.length-1;if(e)for(;n<t.length&&s(t[n]);)n++;if(r)for(;i>0&&s(t[i]);)i--;return n===0&&i===t.length-1?t:t.subarray(n,i+1)}o(Cw,"removeChars");function Ah(t,e,r){if(t.length<e.length)return!1;for(let s=0;s<e.length;s++)if(e[s]!==t[r.position+s])return!1;return!0}o(Ah,"bufferStartsWith");hM.exports={multipartFormDataParser:Ete,validateBoundary:gte}});var Kc=f((wMe,xM)=>{"use strict";var bA=de(),{ReadableStreamFrom:Cte,isBlobLike:gM,isReadableStreamLike:Ite,readableStreamClose:Bte,createDeferredPromise:wte,fullyReadBody:bte,extractMimeType:Qte,utf8DecodeBytes:CM}=Hr(),{FormData:EM}=wA(),{kState:jc}=mo(),{webidl:xte}=qt(),{Blob:Nte}=require("node:buffer"),Iw=require("node:assert"),{isErrored:IM,isDisturbed:Ste}=require("node:stream"),{isArrayBuffer:Rte}=require("node:util/types"),{serializeAMimeType:Tte}=Ir(),{multipartFormDataParser:vte}=fM(),Bw;try{let t=require("node:crypto");Bw=o(e=>t.randomInt(0,e),"random")}catch{Bw=o(t=>Math.floor(Math.random(t)),"random")}var dh=new TextEncoder;function Pte(){}o(Pte,"noop");var BM=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,wM;BM&&(wM=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Ste(e)&&!IM(e)&&e.cancel("Response object has been garbage collected").catch(Pte)}));function bM(t,e=!1){let r=null;t instanceof ReadableStream?r=t:gM(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?dh.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>Bte(l))},start(){},type:"bytes"}),Iw(Ite(r));let s=null,n=null,i=null,a=null;if(typeof t=="string")n=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)n=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Rte(t))n=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))n=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(bA.isFormDataLike(t)){let l=`----formdata-undici-0${`${Bw(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let A=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"),p=[],m=new Uint8Array([13,10]);i=0;let h=!1;for(let[C,E]of t)if(typeof E=="string"){let y=dh.encode(u+`; name="${A(d(C))}"\r
\r
@@ -11,7 +11,7 @@ ${d(E)}\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(y,E,m),typeof E.size=="number"?i+=y.byteLength+E.size+m.byteLength:h=!0}let g=dh.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(fM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(bA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Cte(t)}if((typeof n=="string"||bA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!CM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(wM,"extractBody");function kte(t,e=!1){return t instanceof ReadableStream&&(Iw(!bA.isDisturbed(t),"The body has already been consumed."),Iw(!t.locked,"The stream is locked.")),wM(t,e)}o(kte,"safelyExtractBody");function Dte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Dte,"cloneBody");function _te(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(_te,"throwIfAborted");function Lte(t){return{blob(){return Wc(this,r=>{let s=EM(this);return s===null?s="":s&&(s=Tte(s)),new Nte([r],{type:s})},t)},arrayBuffer(){return Wc(this,r=>new Uint8Array(r).buffer,t)},text(){return Wc(this,yM,t)},json(){return Wc(this,Fte,t)},formData(){return Wc(this,r=>{let s=EM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new gM;return i[jc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new gM;for(let[a,c]of n)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 Wc(this,r=>new Uint8Array(r),t)}}}o(Lte,"bodyMixinMethods");function Mte(t){Object.assign(t.prototype,Lte(t))}o(Mte,"mixinBody");async function Wc(t,e,r){if(xte.brandCheck(t,r),bM(t))throw new TypeError("Body is unusable: Body has already been read");_te(t[jc]);let s=wte(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[jc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await bte(t[jc].body,i,n),s.promise)}o(Wc,"consumeBody");function bM(t){let e=t[jc].body;return e!=null&&(e.stream.locked||bA.isDisturbed(e.stream))}o(bM,"bodyUnusable");function Fte(t){return JSON.parse(yM(t))}o(Fte,"parseJSONFromBytes");function EM(t){let e=t[jc].headersList,r=Qte(e);return r==="failure"?null:r}o(EM,"bodyMimeType");QM.exports={extractBody:wM,safelyExtractBody:kte,cloneBody:Dte,mixinBody:Mte,streamRegistry:BM,hasFinalizationRegistry:IM,bodyUnusable:bM}});var qM=f((BMe,UM)=>{"use strict";var J=require("node:assert"),K=de(),{channels:xM}=Fc(),ww=nw(),{RequestContentLengthMismatchError:ma,ResponseContentLengthMismatchError:NM,RequestAbortedError:_M,InvalidArgumentError:Ote,HeadersTimeoutError:Ute,HeadersOverflowError:qte,SocketError:Xc,InformationalError:Zc,BodyTimeoutError:Gte,HTTPParserError:Hte,ResponseExceededMaxSizeError:zte}=Ie(),{kUrl:LM,kReset:Br,kClient:fh,kParser:Fe,kBlocking:NA,kRunning:yt,kPending:MM,kSize:SM,kWriting:ho,kQueue:js,kNoRef:QA,kKeepAliveDefaultTimeout:Vte,kHostHeader:Yte,kPendingIdx:$te,kRunningIdx:Es,kError:sr,kPipelining:gh,kSocket:ha,kKeepAliveTimeoutValue:yh,kMaxHeadersSize:bw,kKeepAliveMaxTimeout:Jte,kKeepAliveTimeoutThreshold:Wte,kHeadersTimeout:jte,kBodyTimeout:Kte,kStrictContentLength:Nw,kMaxRequests:RM,kCounter:Xte,kMaxResponseSize:Zte,kOnError:TM,kResume:Si,kHTTPContext:FM}=ze(),zr=BL(),vM=Buffer.alloc(0),ph=Buffer[Symbol.species],mh=K.addListener,ere=K.removeAllListeners,fa=Symbol("kIdleSocketValidation"),el=Symbol("kIdleSocketValidationTimeout"),vw=Symbol("kSocketUsed"),Qw;async function tre(){let t=process.env.JEST_WORKER_ID?aw():void 0,e;try{e=await WebAssembly.compile(QL())}catch{e=await WebAssembly.compile(t||aw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onStatus(new ph(Qn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(J(Ze.ptr===r),Ze.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderField(new ph(Qn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderValue(new ph(Qn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(J(Ze.ptr===r),Ze.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onBo Line truncated
`);p.push(g),i+=g.byteLength,h&&(i=null),n=t,s=o(async function*(){for(let C of p)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${l}`}else if(gM(t))n=t,i=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(bA.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:Cte(t)}if((typeof n=="string"||bA.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let l;r=new ReadableStream({async start(){l=s(t)[Symbol.asyncIterator]()},async pull(u){let{value:A,done:d}=await l.next();if(d)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!IM(r)){let p=new Uint8Array(A);p.byteLength&&u.enqueue(p)}return u.desiredSize>0},async cancel(u){await l.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(bM,"extractBody");function kte(t,e=!1){return t instanceof ReadableStream&&(Iw(!bA.isDisturbed(t),"The body has already been consumed."),Iw(!t.locked,"The stream is locked.")),bM(t,e)}o(kte,"safelyExtractBody");function Dte(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(Dte,"cloneBody");function _te(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(_te,"throwIfAborted");function Lte(t){return{blob(){return Wc(this,r=>{let s=yM(this);return s===null?s="":s&&(s=Tte(s)),new Nte([r],{type:s})},t)},arrayBuffer(){return Wc(this,r=>new Uint8Array(r).buffer,t)},text(){return Wc(this,CM,t)},json(){return Wc(this,Fte,t)},formData(){return Wc(this,r=>{let s=yM(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=vte(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new EM;return i[jc]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new EM;for(let[a,c]of n)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 Wc(this,r=>new Uint8Array(r),t)}}}o(Lte,"bodyMixinMethods");function Mte(t){Object.assign(t.prototype,Lte(t))}o(Mte,"mixinBody");async function Wc(t,e,r){if(xte.brandCheck(t,r),QM(t))throw new TypeError("Body is unusable: Body has already been read");_te(t[jc]);let s=wte(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[jc].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await bte(t[jc].body,i,n),s.promise)}o(Wc,"consumeBody");function QM(t){let e=t[jc].body;return e!=null&&(e.stream.locked||bA.isDisturbed(e.stream))}o(QM,"bodyUnusable");function Fte(t){return JSON.parse(CM(t))}o(Fte,"parseJSONFromBytes");function yM(t){let e=t[jc].headersList,r=Qte(e);return r==="failure"?null:r}o(yM,"bodyMimeType");xM.exports={extractBody:bM,safelyExtractBody:kte,cloneBody:Dte,mixinBody:Mte,streamRegistry:wM,hasFinalizationRegistry:BM,bodyUnusable:QM}});var GM=f((QMe,qM)=>{"use strict";var J=require("node:assert"),K=de(),{channels:NM}=Fc(),ww=nw(),{RequestContentLengthMismatchError:ma,ResponseContentLengthMismatchError:SM,RequestAbortedError:LM,InvalidArgumentError:Ote,HeadersTimeoutError:Ute,HeadersOverflowError:qte,SocketError:Xc,InformationalError:Zc,BodyTimeoutError:Gte,HTTPParserError:Hte,ResponseExceededMaxSizeError:zte}=we(),{kUrl:MM,kReset:Br,kClient:fh,kParser:Fe,kBlocking:NA,kRunning:yt,kPending:FM,kSize:RM,kWriting:ho,kQueue:js,kNoRef:QA,kKeepAliveDefaultTimeout:Vte,kHostHeader:Yte,kPendingIdx:$te,kRunningIdx:Es,kError:sr,kPipelining:gh,kSocket:ha,kKeepAliveTimeoutValue:yh,kMaxHeadersSize:bw,kKeepAliveMaxTimeout:Jte,kKeepAliveTimeoutThreshold:Wte,kHeadersTimeout:jte,kBodyTimeout:Kte,kStrictContentLength:Nw,kMaxRequests:TM,kCounter:Xte,kMaxResponseSize:Zte,kOnError:vM,kResume:Si,kHTTPContext:OM}=ze(),zr=wL(),PM=Buffer.alloc(0),ph=Buffer[Symbol.species],mh=K.addListener,ere=K.removeAllListeners,fa=Symbol("kIdleSocketValidation"),el=Symbol("kIdleSocketValidationTimeout"),vw=Symbol("kSocketUsed"),Qw;async function tre(){let t=process.env.JEST_WORKER_ID?aw():void 0,e;try{e=await WebAssembly.compile(xL())}catch{e=await WebAssembly.compile(t||aw())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onStatus(new ph(Qn.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(J(Ze.ptr===r),Ze.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderField(new ph(Qn.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onHeaderValue(new ph(Qn.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(J(Ze.ptr===r),Ze.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{J(Ze.ptr===r);let i=s-xn+Qn.byteOffset;return Ze.onBo Line truncated
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[Yte],i?g+=`connection: upgrade\r
upgrade: ${i}\r
@@ -19,14 +19,14 @@ upgrade: ${i}\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let C=0;C<u.length;C+=2){let E=u[C+0],y=u[C+1];if(Array.isArray(y))for(let I=0;I<y.length;I++)g+=`${E}: ${y[I]}\r
`;else g+=`${E}: ${y}\r
`}return xM.sendHeaders.hasSubscribers&&xM.sendHeaders.publish({request:e,headers:g,socket:m}),!l||p===0?kM(h,null,t,e,m,A,g,d):K.isBuffer(l)?kM(h,l,t,e,m,A,g,d):K.isBlobLike(l)?typeof l.stream=="function"?DM(h,l.stream(),t,e,m,A,g,d):lre(h,l,t,e,m,A,g,d):K.isStream(l)?cre(h,l,t,e,m,A,g,d):K.isIterable(l)?DM(h,l,t,e,m,A,g,d):J(!1),!0}o(are,"writeH1");function cre(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"stream body cannot be pipelined");let l=!1,u=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){K.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new _M;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,J(n.destroyed||n[ho]&&r[yt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?K.destroy(e,h):K.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(cre,"writeStream");function kM(t,e,r,s,n,i,a,c){try{e?K.isBuffer(e)&&(J(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`}return NM.sendHeaders.hasSubscribers&&NM.sendHeaders.publish({request:e,headers:g,socket:m}),!l||p===0?DM(h,null,t,e,m,A,g,d):K.isBuffer(l)?DM(h,l,t,e,m,A,g,d):K.isBlobLike(l)?typeof l.stream=="function"?_M(h,l.stream(),t,e,m,A,g,d):lre(h,l,t,e,m,A,g,d):K.isStream(l)?cre(h,l,t,e,m,A,g,d):K.isIterable(l)?_M(h,l,t,e,m,A,g,d):J(!1),!0}o(are,"writeH1");function cre(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"stream body cannot be pipelined");let l=!1,u=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),A=o(function(h){if(!l)try{!u.write(h)&&this.pause&&this.pause()}catch(g){K.destroy(this,g)}},"onData"),d=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",m)}),!l){let h=new LM;queueMicrotask(()=>m(h))}},"onClose"),m=o(function(h){if(!l){if(l=!0,J(n.destroyed||n[ho]&&r[yt]<=1),n.off("drain",d).off("error",m),e.removeListener("data",A).removeListener("end",m).removeListener("close",p),!h)try{u.end()}catch(g){h=g}u.destroy(h),h&&(h.code!=="UND_ERR_INFO"||h.message!=="reset")?K.destroy(e,h):K.destroy(e)}},"onFinished");e.on("data",A).on("end",m).on("error",m).on("close",p),e.resume&&e.resume(),n.on("drain",d).on("error",m),e.errorEmitted??e.errored?setImmediate(()=>m(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>m(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(cre,"writeStream");function DM(t,e,r,s,n,i,a,c){try{e?K.isBuffer(e)&&(J(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[Br]=!0)):i===0?n.write(`${a}content-length: 0\r
\r
`,"latin1"):(J(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Si]()}catch(l){t(l)}}o(kM,"writeBuffer");async function lre(t,e,r,s,n,i,a,c){J(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ma;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Si]()}catch(l){t(l)}}o(DM,"writeBuffer");async function lre(t,e,r,s,n,i,a,c){J(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new ma;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Br]=!0),r[Si]()}catch(l){t(l)}}o(lre,"writeBlob");async function DM(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{J(l===null),n[sr]?m(n[sr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[sr])throw n[sr];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(DM,"writeIterable");var Ch=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ho]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[sr])throw r[sr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Nw])throw new ma;process.emitWarning(new ma)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Br]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"),n.write(l),n.uncork(),s.onBodySent(l),s.onRequestSent(),!c&&s.reset!==!1&&(n[Br]=!0),r[Si]()}catch(l){t(l)}}o(lre,"writeBlob");async function _M(t,e,r,s,n,i,a,c){J(i!==0||r[yt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let A=o(()=>new Promise((p,m)=>{J(l===null),n[sr]?m(n[sr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let d=new Ch({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[sr])throw n[sr];d.write(p)||await A()}d.end()}catch(p){d.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(_M,"writeIterable");var Ch=class{static{o(this,"AsyncWriter")}constructor({abort:e,socket:r,request:s,contentLength:n,client:i,expectsPayload:a,header:c}){this.socket=r,this.request=s,this.contentLength=n,this.client=i,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[ho]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[sr])throw r[sr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Nw])throw new ma;process.emitWarning(new ma)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[Br]=!0),n===null?r.write(`${l}transfer-encoding: chunked\r
`,"latin1"):r.write(`${l}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
@@ -37,44 +37,44 @@ ${u.toString(16)}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[Nw])throw new ma;process.emitWarning(new ma)}e[Fe].timeout&&e[Fe].timeoutType===tl&&e[Fe].timeout.refresh&&e[Fe].timeout.refresh(),s[Si]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ho]=!1,e&&(J(s[yt]<=1,"pipeline should only contain this request"),n(e))}};UM.exports=sre});var WM=f((bMe,JM)=>{"use strict";var ys=require("node:assert"),{pipeline:ure}=require("node:stream"),fe=de(),{RequestContentLengthMismatchError:Pw,RequestAbortedError:GM,SocketError:SA,InformationalError:kw}=Ie(),{kUrl:Ih,kReset:wh,kClient:rl,kRunning:bh,kPending:Are,kQueue:fo,kPendingIdx:Dw,kRunningIdx:Ks,kError:Zs,kSocket:Dt,kStrictContentLength:dre,kOnError:_w,kMaxConcurrentStreams:$M,kHTTP2Session:Xs,kResume:go,kSize:pre,kHTTPContext:mre}=ze(),Ri=Symbol("open streams"),HM,zM=!1,Bh;try{Bh=require("node:http2")}catch{Bh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:hre,HTTP2_HEADER_METHOD:fre,HTTP2_HEADER_PATH:gre,HTTP2_HEADER_SCHEME:Ere,HTTP2_HEADER_CONTENT_LENGTH:yre,HTTP2_HEADER_EXPECT:Cre,HTTP2_HEADER_STATUS:Ire}}=Bh;function Bre(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(Bre,"parseH2Headers");async function wre(t,e){t[Dt]=e,zM||(zM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Bh.connect(t[Ih],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[$M]});r[Ri]=0,r[rl]=t,r[Dt]=e,fe.addListener(r,"error",Qre),fe.addListener(r,"frameError",xre),fe.addListener(r,"end",Nre),fe.addListener(r,"goaway",Sre),fe.addListener(r,"close",function(){let{[rl]:n}=this,{[Dt]:i}=n,a=this[Dt][Zs]||this[Zs]||new SA("closed",fe.getSocketInfo(i));if(n[Xs]=null,n.destroyed){ys(n[Are]===0);let c=n[fo].splice(n[Ks]);for(let l=0;l<c.length;l++){let u=c[l];fe.errorRequest(n,u,a)}}}),r.unref(),t[Xs]=r,e[Xs]=r,fe.addListener(e,"error",function(n){ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zs]=n,this[rl][_w](n)}),fe.addListener(e,"end",function(){fe.destroy(this,new SA("other side closed",fe.getSocketInfo(this)))}),fe.addListener(e,"close",function(){let n=this[Zs]||new SA("closed",fe.getSocketInfo(this));t[Dt]=null,this[Xs]!=null&&this[Xs].destroy(n),t[Dw]=t[Ks],ys(t[bh]===0),t.emit("disconnect",t[Ih],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Tre(t,...n)},resume(){bre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(wre,"connectH2");function bre(t){let e=t[Dt];e?.destroyed===!1&&(t[pre]===0&&t[$M]===0?(e.unref(),t[Xs].unref()):(e.ref(),t[Xs].ref()))}o(bre,"resumeH2");function Qre(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dt][Zs]=t,this[rl][_w](t)}o(Qre,"onHttp2SessionError");function xre(t,e,r){if(r===0){let s=new kw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dt][Zs]=s,this[rl][_w](s)}}o(xre,"onHttp2FrameError");function Nre(){let t=new SA("other side closed",fe.getSocketInfo(this[Dt]));this.destroy(t),fe.destroy(this[Dt],t)}o(Nre,"onHttp2SessionEnd");function Sre(t){let e=this[Zs]||new SA(`HTTP/2: "GOAWAY" frame received with code ${t}`,fe.getSocketInfo(this)),r=this[rl];if(r[Dt]=null,r[mre]=null,this[Xs]!=null&&(this[Xs].destroy(e),this[Xs]=null),fe.destroy(this[Dt],e),r[Ks]<r[fo].length){let s=r[fo][r[Ks]];r[fo][r[Ks]++]=null,fe.errorRequest(r,s,e),r[Dw]=r[Ks]}ys(r[bh]===0),r.emit("disconnect",r[Ih],[r],e),r[go]()}o(Sre,"onHTTP2GoAway");function Rre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Rre,"shouldSendContentLength");function Tre(t,e){let r=t[Xs],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return fe.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let N=u[B+0],S=u[B+1];if(Array.isArray(S))for(let U=0;U<S.length;U++)d[N]?d[N]+=`,${S[U]}`:d[N]=S[U];else d[N]=S}let p,{hostname:m,port:h}=t[Ih];d[hre]=i||`${m}${h?`:${h}`:""}`,d[fre]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new GM,fe.errorRequest(t,e,B),p!=null&&fe.destroy(p,B),fe.destroy(A,B),t[fo][t[Ks]++]=null,t[go]())},"abort");try{e.onConnect(g)}catch(B){fe.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null}),p.once("close",()=>{r[Ri]-=1,r[Ri]===0&&r.unref()}),!0;d[gre]=n,d[Ere]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=fe.bodyLength(A);if(fe.isFormDataLike(A)){HM??=Kc().extractBody;let[B,N]=HM(A);d["content-type"]=N,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Rre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[dre])return fe.errorRequest(t,e,n Line truncated
`,this[rse]=l??3e5,this[tse]=n??3e5,this[sse]=y??!0,this[nse]=B,this[Ow]=S,this[yo]=null,this[lse]=he>-1?he:-1,this[Ase]=Te??100,this[ut]=null,this[en]=[],this[vi]=0,this[tn]=0,this[PA]=se=>qw(this,se),this[use]=se=>aF(this,se)}get pipelining(){return this[Sh]}set pipelining(e){this[Sh]=e,this[PA](!0)}get[_A](){return this[en].length-this[tn]}get[DA](){return this[tn]-this[vi]}get[kA](){return this[en].length-this[vi]}get[Jre](){return!!this[ut]&&!this[nl]&&!this[ut].destroyed}get[Fw](){return!!(this[ut]?.busy(null)||this[kA]>=(oF(this)||1)||this[_A]>0)}[$re](e){cF(this),this.once("connect",e)}[cse](e,r){let s=e.origin||this[Sn].origin,n=new qre(s,e,r);return this[en].push(n),this[Ea]||(ga.bodyLength(n.body)==null&&ga.isIterable(n.body)?(this[Ea]=1,queueMicrotask(()=>qw(this))):this[PA](!0)),this[Ea]&&this[Co]!==2&&this[Fw]&&(this[Co]=2),this[Co]<2}async[ose](){return new Promise(e=>{this[kA]?this[yo]=e:e(null)})}async[ase](e){return new Promise(r=>{let s=this[en].splice(this[tn]);for(let i=0;i<s.length;i++){let a=s[i];ga.errorRequest(this,a,e)}let n=o(()=>{this[yo]&&(this[yo](),this[yo]=null),r(null)},"callback");this[ut]?(this[ut].destroy(e,n),this[ut]=null):queueMicrotask(n),this[PA]()})}},mse=Nh();function aF(t,e){if(t[DA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ti(t[tn]===t[vi]);let r=t[en].splice(t[vi]);for(let s=0;s<r.length;s++){let n=r[s];ga.errorRequest(t,n,e)}Ti(t[kA]===0)}}o(aF,"onError");async function cF(t){Ti(!t[nl]),Ti(!t[ut]);let{host:e,hostname:r,protocol:s,port:n}=t[Sn];if(r[0]==="["){let i=r.indexOf("]");Ti(i!==-1);let a=r.substring(1,i);Ti(iF.isIP(a)),r=a}t[nl]=!0,sl.beforeConnect.hasSubscribers&&sl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA]});try{let i=await new Promise((a,c)=>{t[TA]({host:e,hostname:r,protocol:s,port:n,servername:t[Eo],localAddress:t[vA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){ga.destroy(i.on("error",sF),new zre);return}Ti(i);try{t[ut]=i.alpnProtocol==="h2"?await pse(t,i):await dse(t,i)}catch(a){throw i.destroy().on("error",sF),a}t[nl]=!1,i[ise]=0,i[Ow]=t[Ow],i[Yre]=t,i[jre]=null,sl.connected.hasSubscribers&&sl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],socket:i}),t.emit("connect",t[Sn],[t])}catch(i){if(t.destroyed)return;if(t[nl]=!1,sl.connectError.hasSubscribers&&sl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ti(t[DA]===0);t[_A]>0&&t[en][t[tn]].servername===t[Eo];){let a=t[en][t[tn]++];ga.errorRequest(t,a,i)}else aF(t,i);t.emit("connectionError",t[Sn],[t],i)}t[PA]()}o(cF,"connect");function nF(t){t[Co]=0,t.emit("drain",t[Sn],[t])}o(nF,"emitDrain");function qw(t,e){t[Ea]!==2&&(t[Ea]=2,hse(t,e),t[Ea]=0,t[vi]>256&&(t[en].splice(0,t[vi]),t[tn]-=t[vi],t[vi]=0))}o(qw,"resume");function hse(t,e){for(;;){if(t.destroyed){Ti(t[_A]===0);return}if(t[yo]&&!t[kA]){t[yo](),t[yo]=null;return}if(t[ut]&&t[ut].resume(),t[Fw])t[Co]=2;else if(t[Co]===2){e?(t[Co]=1,queueMicrotask(()=>nF(t))):nF(t);continue}if(t[_A]===0||t[DA]>=(oF(t)||1))return;let r=t[en][t[tn]];if(t[Sn].protocol==="https:"&&t[Eo]!==r.servername){if(t[DA]>0)return;t[Eo]=r.servername,t[ut]?.destroy(new Hre("servername changed"),()=>{t[ut]=null,qw(t)})}if(t[nl])return;if(!t[ut]){cF(t);return}if(t[ut].destroyed||t[ut].busy(r))return;!r.aborted&&t[ut].write(r)?t[tn]++:t[en].splice(t[tn],1)}}o(hse,"_resume");lF.exports=Uw});var Gw=f((kMe,uF)=>{"use strict";var Rh=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)}};uF.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Rh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Rh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var dF=f((_Me,AF)=>{var{kFree:fse,kConnected:gse,kPending:Ese,kQueued:yse,kRunning:Cse,kSize:Ise}=ze(),ya=Symbol("pool"),Hw=class{static{o(this,"PoolStats")}constructor(e){this[ya]=e}get connected(){return this[ya][gse]}get free(){return this[ya][fse]}get pending(){return this[ya][Ese]}get queued(){return this[ya][yse]}get running(){return this[ya][Cse]}get size(){return this[ya][Ise]}};AF.exports=Hw});var Ww=f((MMe,BF)=>{"use strict";var Bse=Gc(),wse=Gw(),{kConnected:zw,kSize:pF,kRunning:mF,kPending:hF,kQueued:LA,kBusy:bse,kFree:Qse,kUrl:xse,kClose:Nse,kDestroy:Sse,kDispatch:Rse}=ze(),Tse=dF(),wr=Symbol("cl Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Nw])throw new ma;process.emitWarning(new ma)}e[Fe].timeout&&e[Fe].timeoutType===tl&&e[Fe].timeout.refresh&&e[Fe].timeout.refresh(),s[Si]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[ho]=!1,e&&(J(s[yt]<=1,"pipeline should only contain this request"),n(e))}};qM.exports=sre});var jM=f((NMe,WM)=>{"use strict";var ys=require("node:assert"),{pipeline:ure}=require("node:stream"),he=de(),{RequestContentLengthMismatchError:Pw,RequestAbortedError:HM,SocketError:SA,InformationalError:kw}=we(),{kUrl:Ih,kReset:wh,kClient:rl,kRunning:bh,kPending:Are,kQueue:fo,kPendingIdx:Dw,kRunningIdx:Ks,kError:Zs,kSocket:Dt,kStrictContentLength:dre,kOnError:_w,kMaxConcurrentStreams:JM,kHTTP2Session:Xs,kResume:go,kSize:pre,kHTTPContext:mre}=ze(),Ri=Symbol("open streams"),zM,VM=!1,Bh;try{Bh=require("node:http2")}catch{Bh={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:hre,HTTP2_HEADER_METHOD:fre,HTTP2_HEADER_PATH:gre,HTTP2_HEADER_SCHEME:Ere,HTTP2_HEADER_CONTENT_LENGTH:yre,HTTP2_HEADER_EXPECT:Cre,HTTP2_HEADER_STATUS:Ire}}=Bh;function Bre(t){let e=[];for(let[r,s]of Object.entries(t))if(Array.isArray(s))for(let n of s)e.push(Buffer.from(r),Buffer.from(n));else e.push(Buffer.from(r),Buffer.from(s));return e}o(Bre,"parseH2Headers");async function wre(t,e){t[Dt]=e,VM||(VM=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Bh.connect(t[Ih],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[JM]});r[Ri]=0,r[rl]=t,r[Dt]=e,he.addListener(r,"error",Qre),he.addListener(r,"frameError",xre),he.addListener(r,"end",Nre),he.addListener(r,"goaway",Sre),he.addListener(r,"close",function(){let{[rl]:n}=this,{[Dt]:i}=n,a=this[Dt][Zs]||this[Zs]||new SA("closed",he.getSocketInfo(i));if(n[Xs]=null,n.destroyed){ys(n[Are]===0);let c=n[fo].splice(n[Ks]);for(let l=0;l<c.length;l++){let u=c[l];he.errorRequest(n,u,a)}}}),r.unref(),t[Xs]=r,e[Xs]=r,he.addListener(e,"error",function(n){ys(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Zs]=n,this[rl][_w](n)}),he.addListener(e,"end",function(){he.destroy(this,new SA("other side closed",he.getSocketInfo(this)))}),he.addListener(e,"close",function(){let n=this[Zs]||new SA("closed",he.getSocketInfo(this));t[Dt]=null,this[Xs]!=null&&this[Xs].destroy(n),t[Dw]=t[Ks],ys(t[bh]===0),t.emit("disconnect",t[Ih],[t],n),t[go]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Tre(t,...n)},resume(){bre(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(wre,"connectH2");function bre(t){let e=t[Dt];e?.destroyed===!1&&(t[pre]===0&&t[JM]===0?(e.unref(),t[Xs].unref()):(e.ref(),t[Xs].ref()))}o(bre,"resumeH2");function Qre(t){ys(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dt][Zs]=t,this[rl][_w](t)}o(Qre,"onHttp2SessionError");function xre(t,e,r){if(r===0){let s=new kw(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dt][Zs]=s,this[rl][_w](s)}}o(xre,"onHttp2FrameError");function Nre(){let t=new SA("other side closed",he.getSocketInfo(this[Dt]));this.destroy(t),he.destroy(this[Dt],t)}o(Nre,"onHttp2SessionEnd");function Sre(t){let e=this[Zs]||new SA(`HTTP/2: "GOAWAY" frame received with code ${t}`,he.getSocketInfo(this)),r=this[rl];if(r[Dt]=null,r[mre]=null,this[Xs]!=null&&(this[Xs].destroy(e),this[Xs]=null),he.destroy(this[Dt],e),r[Ks]<r[fo].length){let s=r[fo][r[Ks]];r[fo][r[Ks]++]=null,he.errorRequest(r,s,e),r[Dw]=r[Ks]}ys(r[bh]===0),r.emit("disconnect",r[Ih],[r],e),r[go]()}o(Sre,"onHTTP2GoAway");function Rre(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(Rre,"shouldSendContentLength");function Tre(t,e){let r=t[Xs],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:A}=e;if(a)return he.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let d={};for(let B=0;B<u.length;B+=2){let x=u[B+0],S=u[B+1];if(Array.isArray(S))for(let U=0;U<S.length;U++)d[x]?d[x]+=`,${S[U]}`:d[x]=S[U];else d[x]=S}let p,{hostname:m,port:h}=t[Ih];d[hre]=i||`${m}${h?`:${h}`:""}`,d[fre]=s;let g=o(B=>{e.aborted||e.completed||(B=B||new HM,he.errorRequest(t,e,B),p!=null&&he.destroy(p,B),he.destroy(A,B),t[fo][t[Ks]++]=null,t[go]())},"abort");try{e.onConnect(g)}catch(B){he.errorRequest(t,e,B)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(d,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[Ri],t[fo][t[Ks]++]=null}),p.once("close",()=>{r[Ri]-=1,r[Ri]===0&&r.unref()}),!0;d[gre]=n,d[Ere]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=he.bodyLength(A);if(he.isFormDataLike(A)){zM??=Kc().extractBody;let[B,x]=zM(A);d["content-type"]=x,A=B.stream,E=B.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),Rre(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[dre])return he.errorRequest(t,e,n Line truncated
`,this[rse]=l??3e5,this[tse]=n??3e5,this[sse]=y??!0,this[nse]=B,this[Ow]=S,this[yo]=null,this[lse]=ge>-1?ge:-1,this[Ase]=be??100,this[ut]=null,this[en]=[],this[vi]=0,this[tn]=0,this[PA]=ne=>qw(this,ne),this[use]=ne=>cF(this,ne)}get pipelining(){return this[Sh]}set pipelining(e){this[Sh]=e,this[PA](!0)}get[_A](){return this[en].length-this[tn]}get[DA](){return this[tn]-this[vi]}get[kA](){return this[en].length-this[vi]}get[Jre](){return!!this[ut]&&!this[nl]&&!this[ut].destroyed}get[Fw](){return!!(this[ut]?.busy(null)||this[kA]>=(aF(this)||1)||this[_A]>0)}[$re](e){lF(this),this.once("connect",e)}[cse](e,r){let s=e.origin||this[Sn].origin,n=new qre(s,e,r);return this[en].push(n),this[Ea]||(ga.bodyLength(n.body)==null&&ga.isIterable(n.body)?(this[Ea]=1,queueMicrotask(()=>qw(this))):this[PA](!0)),this[Ea]&&this[Co]!==2&&this[Fw]&&(this[Co]=2),this[Co]<2}async[ose](){return new Promise(e=>{this[kA]?this[yo]=e:e(null)})}async[ase](e){return new Promise(r=>{let s=this[en].splice(this[tn]);for(let i=0;i<s.length;i++){let a=s[i];ga.errorRequest(this,a,e)}let n=o(()=>{this[yo]&&(this[yo](),this[yo]=null),r(null)},"callback");this[ut]?(this[ut].destroy(e,n),this[ut]=null):queueMicrotask(n),this[PA]()})}},mse=Nh();function cF(t,e){if(t[DA]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ti(t[tn]===t[vi]);let r=t[en].splice(t[vi]);for(let s=0;s<r.length;s++){let n=r[s];ga.errorRequest(t,n,e)}Ti(t[kA]===0)}}o(cF,"onError");async function lF(t){Ti(!t[nl]),Ti(!t[ut]);let{host:e,hostname:r,protocol:s,port:n}=t[Sn];if(r[0]==="["){let i=r.indexOf("]");Ti(i!==-1);let a=r.substring(1,i);Ti(oF.isIP(a)),r=a}t[nl]=!0,sl.beforeConnect.hasSubscribers&&sl.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA]});try{let i=await new Promise((a,c)=>{t[TA]({host:e,hostname:r,protocol:s,port:n,servername:t[Eo],localAddress:t[vA]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){ga.destroy(i.on("error",nF),new zre);return}Ti(i);try{t[ut]=i.alpnProtocol==="h2"?await pse(t,i):await dse(t,i)}catch(a){throw i.destroy().on("error",nF),a}t[nl]=!1,i[ise]=0,i[Ow]=t[Ow],i[Yre]=t,i[jre]=null,sl.connected.hasSubscribers&&sl.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],socket:i}),t.emit("connect",t[Sn],[t])}catch(i){if(t.destroyed)return;if(t[nl]=!1,sl.connectError.hasSubscribers&&sl.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[ut]?.version,servername:t[Eo],localAddress:t[vA]},connector:t[TA],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ti(t[DA]===0);t[_A]>0&&t[en][t[tn]].servername===t[Eo];){let a=t[en][t[tn]++];ga.errorRequest(t,a,i)}else cF(t,i);t.emit("connectionError",t[Sn],[t],i)}t[PA]()}o(lF,"connect");function iF(t){t[Co]=0,t.emit("drain",t[Sn],[t])}o(iF,"emitDrain");function qw(t,e){t[Ea]!==2&&(t[Ea]=2,hse(t,e),t[Ea]=0,t[vi]>256&&(t[en].splice(0,t[vi]),t[tn]-=t[vi],t[vi]=0))}o(qw,"resume");function hse(t,e){for(;;){if(t.destroyed){Ti(t[_A]===0);return}if(t[yo]&&!t[kA]){t[yo](),t[yo]=null;return}if(t[ut]&&t[ut].resume(),t[Fw])t[Co]=2;else if(t[Co]===2){e?(t[Co]=1,queueMicrotask(()=>iF(t))):iF(t);continue}if(t[_A]===0||t[DA]>=(aF(t)||1))return;let r=t[en][t[tn]];if(t[Sn].protocol==="https:"&&t[Eo]!==r.servername){if(t[DA]>0)return;t[Eo]=r.servername,t[ut]?.destroy(new Hre("servername changed"),()=>{t[ut]=null,qw(t)})}if(t[nl])return;if(!t[ut]){lF(t);return}if(t[ut].destroyed||t[ut].busy(r))return;!r.aborted&&t[ut].write(r)?t[tn]++:t[en].splice(t[tn],1)}}o(hse,"_resume");uF.exports=Uw});var Gw=f((LMe,AF)=>{"use strict";var Rh=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)}};AF.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new Rh}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Rh),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var pF=f((FMe,dF)=>{var{kFree:fse,kConnected:gse,kPending:Ese,kQueued:yse,kRunning:Cse,kSize:Ise}=ze(),ya=Symbol("pool"),Hw=class{static{o(this,"PoolStats")}constructor(e){this[ya]=e}get connected(){return this[ya][gse]}get free(){return this[ya][fse]}get pending(){return this[ya][Ese]}get queued(){return this[ya][yse]}get running(){return this[ya][Cse]}get size(){return this[ya][Ise]}};dF.exports=Hw});var Ww=f((UMe,wF)=>{"use strict";var Bse=Gc(),wse=Gw(),{kConnected:zw,kSize:mF,kRunning:hF,kPending:fF,kQueued:LA,kBusy:bse,kFree:Qse,kUrl:xse,kClose:Nse,kDestroy:Sse,kDispatch:Rse}=ze(),Tse=pF(),wr=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};RU.exports=Wb});var $h=f((_Fe,DU)=>{"use strict";var vU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:roe}=Ie(),soe=al();kU()===void 0&&PU(new soe);function PU(t){if(!t||typeof t.dispatch!="function")throw new roe("Argument agent must implement Agent");Object.defineProperty(globalThis,vU,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(PU,"setGlobalDispatcher");function kU(){return globalThis[vU]}o(kU,"getGlobalDispatcher");DU.exports={setGlobalDispatcher:PU,getGlobalDispatcher:kU}});var Jh=f((FFe,_U)=>{"use strict";_U.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 MU=f((UFe,LU)=>{"use strict";var noe=xh();LU.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new noe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var OU=f((GFe,FU)=>{"use strict";var ioe=Mh();FU.exports=t=>e=>o(function(s,n){return e(s,new ioe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var qU=f((zFe,UU)=>{"use strict";var ooe=de(),{InvalidArgumentError:aoe,RequestAbortedError:coe}=Ie(),loe=Jh(),jb=class extends loe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aoe("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.#s=e}onHeaders(e,r,s,n){let a=ooe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new coe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function uoe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new jb({maxSize:i},n);return e(s,a)},"Intercept")}o(uoe,"createDumpInterceptor");UU.exports=uoe});var zU=f((YFe,HU)=>{"use strict";var{isIP:Aoe}=require("node:net"),{lookup:doe}=require("node:dns"),poe=Jh(),{InvalidArgumentError:fl,InformationalError:moe}=Ie(),GU=Math.pow(2,31)-1,Kb=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.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new moe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,s){doe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===GU?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===GU?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#r.set(e.hostname,n)}getHandler(e,r){return new Xb(this,e,r)}},Xb=class extends poe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null Line truncated
${a}`;return}if(_f(e,n,Nue)){Sue(e,i)&&(r.retry=e.toString("utf8",i));return}if(_f(e,n,xue)){Rue(e,i)&&(r.id=e.toString("utf8",i));return}if(_f(e,n,Que)){let a=e.toString("utf8",i);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&Cue(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iue(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Tl[0]||(this.checkBOM=!1),!0):s===void 0?e===Tl[0]&&r===Tl[1]?!0:(this.checkBOM=!1,!1):(e===Tl[0]&&r===Tl[1]&&s===Tl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Bq.exports={EventSourceStream:qQ}});var vq=f((WOe,Tq)=>{"use strict";var{pipeline:Tue}=require("node:stream"),{fetching:vue}=jA(),{makeRequest:Pue}=yl(),{webidl:_i}=qt(),{EventSourceStream:kue}=wq(),{parseMIMEType:Due}=Ir(),{createFastMessageEvent:_ue}=Ql(),{isNetworkError:bq}=JA(),{delay:Lue}=OQ(),{kEnumerableProperty:_a}=de(),{environmentSettingsObject:Qq}=Hr(),xq=!1,Nq=3e3,ud=0,Sq=1,Ad=2,Mue="anonymous",Fue="use-credentials",vl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=ud;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),_i.util.markAsUncloneable(this);let s="EventSource constructor";_i.argumentLengthCheck(arguments,1,s),xq||(xq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=_i.converters.USVString(e,s,"url"),r=_i.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Nq};let n=Qq,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Mue;r.withCredentials&&(a=Fue,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=Qq.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Pue(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===Ad)return;this.#i=ud;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{bq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(bq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Due(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=Sq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new kue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(_ue(l.type,l.options))},"push")});Tue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=vu Line truncated
%s`,N,N,y,s);var S=y.type==="*"?Ox:y.type==="?"?Fx:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+S+"\\("+N}h(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var he=c.length-1;he>-1;he--){var Se=c[he],Qe=s.slice(0,Se.reStart),Te=s.slice(Se.reStart,Se.reEnd-8),Ae=s.slice(Se.reEnd-8,Se.reEnd),_e=s.slice(Se.reEnd);Ae+=_e;var se=Qe.split("(").length-1,tr=_e;for(g=0;g<se;g++)tr=tr.replace(/\)[+*?]?/,"");_e=tr;var z="";_e===""&&e!==ig&&(z="$");var xe=Qe+Te+_e+z+Ae;s=xe}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=p+s),e===ig)return[s,n];if(!n)return mhe(t);var Cn=r.nocase?"i":"";try{var uo=new RegExp("^"+s+"$",Cn)}catch{return new RegExp("$.")}return uo._glob=t,uo._src=s,uo}o(dhe,"parse");es.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=phe;function phe(){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?Ox:e.dot?ihe:ohe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===Ux?r:typeof a=="string"?hhe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(phe,"makeRe");es.match=function(t,e,r){r=r||{};var s=new Gt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Gt.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 s=this.options;vd.sep!=="/"&&(e=e.split(vd.sep).join("/")),e=e.split(Pz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Gt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var l=e[i],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===Ux){this.debug("GLOBSTAR",[e,l,u]);var A=n,d=i+1;if(d===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<a;){var p=t[A];if(this.debug(`
`.trim())}};TU.exports=Wb});var $h=f((FFe,_U)=>{"use strict";var PU=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:roe}=we(),soe=al();DU()===void 0&&kU(new soe);function kU(t){if(!t||typeof t.dispatch!="function")throw new roe("Argument agent must implement Agent");Object.defineProperty(globalThis,PU,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(kU,"setGlobalDispatcher");function DU(){return globalThis[PU]}o(DU,"getGlobalDispatcher");_U.exports={setGlobalDispatcher:kU,getGlobalDispatcher:DU}});var Jh=f((qFe,LU)=>{"use strict";LU.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 FU=f((HFe,MU)=>{"use strict";var noe=xh();MU.exports=t=>{let e=t?.maxRedirections;return r=>o(function(n,i){let{maxRedirections:a=e,...c}=n;if(!a)return r(n,i);let l=new noe(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var UU=f((VFe,OU)=>{"use strict";var ioe=Mh();OU.exports=t=>e=>o(function(s,n){return e(s,new ioe({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var GU=f(($Fe,qU)=>{"use strict";var ooe=de(),{InvalidArgumentError:aoe,RequestAbortedError:coe}=we(),loe=Jh(),jb=class extends loe{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#r=!1;#i=!1;#n=0;#s=null;#o=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aoe("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.#s=e}onHeaders(e,r,s,n){let a=ooe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new coe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#i?!0:this.#o.onHeaders(e,r,s,n)}onError(e){this.#r||(e=this.#s??e,this.#o.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#r=!0,this.#i?this.#o.onError(this.#s):this.#o.onComplete([])),!0}onComplete(e){if(!this.#r){if(this.#i){this.#o.onError(this.reason);return}this.#o.onComplete(e)}}};function uoe({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new jb({maxSize:i},n);return e(s,a)},"Intercept")}o(uoe,"createDumpInterceptor");qU.exports=uoe});var VU=f((WFe,zU)=>{"use strict";var{isIP:Aoe}=require("node:net"),{lookup:doe}=require("node:dns"),poe=Jh(),{InvalidArgumentError:fl,InformationalError:moe}=we(),HU=Math.pow(2,31)-1,Kb=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.#n}get full(){return this.#r.size===this.#t}runLookup(e,r,s){let n=this.#r.get(e.hostname);if(n==null&&this.full){s(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(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new moe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#r.get(e.hostname),u=this.pick(e,l,i.affinity),A;typeof u.port=="number"?A=`:${u.port}`:e.port!==""?A=`:${e.port}`:A="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${A}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#r.delete(e.hostname),this.runLookup(e,r,s);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",s(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#i(e,r,s){doe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(n,i)=>{if(n)return s(n);let a=new Map;for(let c of i)a.set(`${c.address}:${c.family}`,c);s(null,a.values())})}#n(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===HU?(r.offset=0,s=4):(r.offset++,s=(r.offset&1)===1?6:4)),i[s]!=null&&i[s].ips.length>0?c=i[s]:c=i[s===4?6:4]):c=i[s],c==null||c.ips.length===0)return n;c.offset==null||c.offset===HU?c.offset=0:c.offset++;let l=c.offset%c.ips.length;return n=c.ips[l]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(l,1),this.pick(e,r,s)):n}setRecords(e,r){let s=Date.now(),n={records:{4:null,6:null}};for(let i of r){i.timestamp=s,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let a=n.records[i.family]??{ips:[]};a.ips.push(i),n.records[i.family]=a}this.#r.set(e.hostname,n)}getHandler(e,r){return new Xb(this,e,r)}},Xb=class extends poe{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#r=null Line truncated
${a}`;return}if(_f(e,n,Nue)){Sue(e,i)&&(r.retry=e.toString("utf8",i));return}if(_f(e,n,xue)){Rue(e,i)&&(r.id=e.toString("utf8",i));return}if(_f(e,n,Que)){let a=e.toString("utf8",i);a.length>0&&(r.event=a)}}processEvent(e){e.retry&&Cue(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Iue(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let s=this.lineChunkIndex;s<=this.chunkIndex;s++){let n=this.chunks[s],i=s===this.lineChunkIndex?this.linePos:0,a=s===this.chunkIndex?this.pos:n.length,c=n.subarray(i,a);r+=c.length,e.push(c)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,s=this.linePos;for(;r<this.chunks.length;){let n=this.chunks[r],i=n.length-s;if(e<i)return n[s+e];e-=i,r++,s=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let s=this.chunks[this.lineChunkIndex].length-this.linePos;e<s?(this.linePos+=e,e=0):(e-=s,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),s=this.peekBufferedByte(2);return r===void 0?(e===Tl[0]||(this.checkBOM=!1),!0):s===void 0?e===Tl[0]&&r===Tl[1]?!0:(this.checkBOM=!1,!1):(e===Tl[0]&&r===Tl[1]&&s===Tl[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};wq.exports={EventSourceStream:qQ}});var Pq=f((XOe,vq)=>{"use strict";var{pipeline:Tue}=require("node:stream"),{fetching:vue}=jA(),{makeRequest:Pue}=yl(),{webidl:_i}=qt(),{EventSourceStream:kue}=bq(),{parseMIMEType:Due}=Ir(),{createFastMessageEvent:_ue}=Ql(),{isNetworkError:Qq}=JA(),{delay:Lue}=OQ(),{kEnumerableProperty:_a}=de(),{environmentSettingsObject:xq}=Hr(),Nq=!1,Sq=3e3,ud=0,Rq=1,Ad=2,Mue="anonymous",Fue="use-credentials",vl=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#r=!1;#i=ud;#n=null;#s=null;#o;#a;constructor(e,r={}){super(),_i.util.markAsUncloneable(this);let s="EventSource constructor";_i.argumentLengthCheck(arguments,1,s),Nq||(Nq=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=_i.converters.USVString(e,s,"url"),r=_i.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#o=r.dispatcher,this.#a={lastEventId:"",reconnectionTime:Sq};let n=xq,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#a.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=Mue;r.withCredentials&&(a=Fue,this.#r=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=xq.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#n=Pue(c),this.#l()}get readyState(){return this.#i}get url(){return this.#t}get withCredentials(){return this.#r}#l(){if(this.#i===Ad)return;this.#i=ud;let e={request:this.#n,dispatcher:this.#o},r=o(s=>{Qq(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(Qq(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let n=s.headersList.get("content-type",!0),i=n!==null?Due(n):"failure",a=i!=="failure"&&i.essence==="text/event-stream";if(s.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#i=Rq,this.dispatchEvent(new Event("open")),this.#a.origin=s.urlList[s.urlList.length-1].origin;let c=new kue({eventSourceSettings:this.#a,push:o(l=>{this.dispatchEvent(_ue(l.type,l.options))},"push")});Tue(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=vu Line truncated
%s`,x,x,y,s);var S=y.type==="*"?Ux:y.type==="?"?Ox:"\\"+y.type;n=!0,s=s.slice(0,y.reStart)+S+"\\("+x}h(),i&&(s+="\\\\");var U=!1;switch(s.charAt(0)){case"[":case".":case"(":U=!0}for(var ge=c.length-1;ge>-1;ge--){var Ie=c[ge],Be=s.slice(0,Ie.reStart),be=s.slice(Ie.reStart,Ie.reEnd-8),re=s.slice(Ie.reEnd-8,Ie.reEnd),_e=s.slice(Ie.reEnd);re+=_e;var ne=Be.split("(").length-1,tr=_e;for(g=0;g<ne;g++)tr=tr.replace(/\)[+*?]?/,"");_e=tr;var z="";_e===""&&e!==ig&&(z="$");var Se=Be+be+_e+z+re;s=Se}if(s!==""&&n&&(s="(?=.)"+s),U&&(s=p+s),e===ig)return[s,n];if(!n)return ghe(t);var Cn=r.nocase?"i":"";try{var uo=new RegExp("^"+s+"$",Cn)}catch{return new RegExp("$.")}return uo._glob=t,uo._src=s,uo}o(hhe,"parse");es.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=fhe;function fhe(){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?Ux:e.dot?che:lhe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===qx?r:typeof a=="string"?Ehe(a):a._src}).join("\\/")}).join("|");n="^(?:"+n+")$",this.negate&&(n="^(?!"+n+").*$");try{this.regexp=new RegExp(n,s)}catch{this.regexp=!1}return this.regexp}o(fhe,"makeRe");es.match=function(t,e,r){r=r||{};var s=new Gt(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};Gt.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 s=this.options;vd.sep!=="/"&&(e=e.split(vd.sep).join("/")),e=e.split(Pz),this.debug(this.pattern,"split",e);var n=this.set;this.debug(this.pattern,"set",n);var i,a;for(a=e.length-1;a>=0&&(i=e[a],!i);a--);for(a=0;a<n.length;a++){var c=n[a],l=e;s.matchBase&&c.length===1&&(l=[i]);var u=this.matchOne(l,c,r);if(u)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");Gt.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var l=e[i],u=t[n];if(this.debug(e,l,u),l===!1)return!1;if(l===qx){this.debug("GLOBSTAR",[e,l,u]);var A=n,d=i+1;if(d===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;A<a;){var p=t[A];if(this.debug(`
globstar while`,t,A,e,d,p),this.matchOne(t.slice(A),e.slice(d),r))return this.debug("globstar found match!",A,a,p),!0;if(p==="."||p===".."||!s.dot&&p.charAt(0)==="."){this.debug("dot detected!",t,A,e,d);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,d),A===a))}var m;if(typeof l=="string"?(m=u===l,this.debug("string match",l,u,m)):(m=u.match(l),this.debug("pattern match",l,u,m)),!m)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function mhe(t){return t.replace(/\\(.)/g,"$1")}o(mhe,"globUnescape");function hhe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(hhe,"regExpEscape")});var Vl=f((_Ge,Oz)=>{"use strict";var whe="2.0.0",bhe=Number.MAX_SAFE_INTEGER||9007199254740991,Qhe=16,xhe=250,Nhe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:Qhe,MAX_SAFE_BUILD_LENGTH:xhe,MAX_SAFE_INTEGER:bhe,RELEASE_TYPES:Nhe,SEMVER_SPEC_VERSION:whe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dd=f((LGe,Uz)=>{"use strict";var She=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Uz.exports=She});var Yl=f((_n,qz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Gx,MAX_SAFE_BUILD_LENGTH:Rhe,MAX_LENGTH:The}=Vl(),vhe=Dd();_n=qz.exports={};var Phe=_n.re=[],khe=_n.safeRe=[],L=_n.src=[],Dhe=_n.safeSrc=[],M=_n.t={},_he=0,Hx="[a-zA-Z0-9-]",Lhe=[["\\s",1],["\\d",The],[Hx,Rhe]],Mhe=o(t=>{for(let[e,r]of Lhe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),ie=o((t,e,r)=>{let s=Mhe(e),n=_he++;vhe(t,n,e),M[t]=n,L[n]=e,Dhe[n]=s,Phe[n]=new RegExp(e,r?"g":void 0),khe[n]=new RegExp(s,r?"g":void 0)},"createToken");ie("NUMERICIDENTIFIER","0|[1-9]\\d*");ie("NUMERICIDENTIFIERLOOSE","\\d+");ie("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Hx}*`);ie("MAINVERSION",`(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})`);ie("MAINVERSIONLOOSE",`(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASEIDENTIFIER",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIER]})`);ie("PRERELEASEIDENTIFIERLOOSE",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIERLOOSE]})`);ie("PRERELEASE",`(?:-(${L[M.PRERELEASEIDENTIFIER]}(?:\\.${L[M.PRERELEASEIDENTIFIER]})*))`);ie("PRERELEASELOOSE",`(?:-?(${L[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[M.PRERELEASEIDENTIFIERLOOSE]})*))`);ie("BUILDIDENTIFIER",`${Hx}+`);ie("BUILD",`(?:\\+(${L[M.BUILDIDENTIFIER]}(?:\\.${L[M.BUILDIDENTIFIER]})*))`);ie("FULLPLAIN",`v?${L[M.MAINVERSION]}${L[M.PRERELEASE]}?${L[M.BUILD]}?`);ie("FULL",`^${L[M.FULLPLAIN]}$`);ie("LOOSEPLAIN",`[v=\\s]*${L[M.MAINVERSIONLOOSE]}${L[M.PRERELEASELOOSE]}?${L[M.BUILD]}?`);ie("LOOSE",`^${L[M.LOOSEPLAIN]}$`);ie("GTLT","((?:<|>)?=?)");ie("XRANGEIDENTIFIERLOOSE",`${L[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);ie("XRANGEIDENTIFIER",`${L[M.NUMERICIDENTIFIER]}|x|X|\\*`);ie("XRANGEPLAIN",`[v=\\s]*(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:${L[M.PRERELEASE]})?${L[M.BUILD]}?)?)?`);ie("XRANGEPLAINLOOSE",`[v=\\s]*(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:${L[M.PRERELEASELOOSE]})?${L[M.BUILD]}?)?)?`);ie("XRANGE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAIN]}$`);ie("XRANGELOOSE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAINLOOSE]}$`);ie("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Gx}})(?:\\.(\\d{1,${Gx}}))?(?:\\.(\\d{1,${Gx}}))?`);ie("COERCE",`${L[M.COERCEPLAIN]}(?:$|[^\\d])`);ie("COERCEFULL",L[M.COERCEPLAIN]+`(?:${L[M.PRERELEASE]})?(?:${L[M.BUILD]})?(?:$|[^\\d])`);ie("COERCERTL",L[M.COERCE],!0);ie("COERCERTLFULL",L[M.COERCEFULL],!0);ie("LONETILDE","(?:~>?)");ie("TILDETRIM",`(\\s*)${L[M.LONETILDE]}\\s+`,!0);_n.tildeTrimReplace="$1~";ie("TILDE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAIN]}$`);ie("TILDELOOSE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAINLOOSE]}$`);ie("LONECARET","(?:\\^)");ie("CARETTRIM",`(\\s*)${L[M.LONECARET]}\\s+`,!0);_n.caretTrimReplace="$1^";ie("CARET",`^${L[M.LONECARET]}${L[M.XRANGEPLAIN]}$`);ie("CARETLOOSE",`^${L[M.LONECARET]}${L[M.XRANGEPLAINLOOSE]}$`);ie("COMPARATORLOOSE",`^${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]})$|^$`);ie("COMPARATOR",`^${L[M.GTLT]}\\s*(${L[M.FULLPLAIN]})$|^$`);ie("COMPARATORTRIM",`(\\s*)${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]}|${L[M.XRANGEPLAIN]})`,!0);_n.comparatorTrimReplace="$1$2$3";ie("HYPHENRANGE",`^\\s*(${L[M.XRANGEPLAIN]})\\s+-\\s+(${L[M.XRANGEPLAIN]})\\s*$`);ie("HYPHENRANGELOOSE",`^\\s*(${L[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[M.XRANGEPLAINLOOSE]})\\s*$`);ie("STAR","(<|>)?=?\\s*\\*");ie("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");ie("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var lg=f((FGe,Gz)=>{"use strict";var Fhe=Object.freeze({loose:!0}),Ohe=Object.freeze({}),Uhe=o(t=>t?typeof t!="object"?Fhe:t:Ohe,"parseOptions");Gz.exports=Uhe});var zx=f((UGe,Vz)=>{"use strict";var Hz=/^[0-9]+$/,zz=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Hz.test(t),s=Hz.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),qhe=o((t,e)=>zz(e,t),"rcompareIdentifiers");Vz Line truncated
>>> no match, partial?`,t,A,e,d),A===a))}var m;if(typeof l=="string"?(m=u===l,this.debug("string match",l,u,m)):(m=u.match(l),this.debug("pattern match",l,u,m)),!m)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function ghe(t){return t.replace(/\\(.)/g,"$1")}o(ghe,"globUnescape");function Ehe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(Ehe,"regExpEscape")});var Vl=f((FGe,Oz)=>{"use strict";var xhe="2.0.0",Nhe=Number.MAX_SAFE_INTEGER||9007199254740991,She=16,Rhe=250,The=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Oz.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:She,MAX_SAFE_BUILD_LENGTH:Rhe,MAX_SAFE_INTEGER:Nhe,RELEASE_TYPES:The,SEMVER_SPEC_VERSION:xhe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dd=f((OGe,Uz)=>{"use strict";var vhe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Uz.exports=vhe});var Yl=f((_n,qz)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Hx,MAX_SAFE_BUILD_LENGTH:Phe,MAX_LENGTH:khe}=Vl(),Dhe=Dd();_n=qz.exports={};var _he=_n.re=[],Lhe=_n.safeRe=[],L=_n.src=[],Mhe=_n.safeSrc=[],M=_n.t={},Fhe=0,zx="[a-zA-Z0-9-]",Ohe=[["\\s",1],["\\d",khe],[zx,Phe]],Uhe=o(t=>{for(let[e,r]of Ohe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),oe=o((t,e,r)=>{let s=Uhe(e),n=Fhe++;Dhe(t,n,e),M[t]=n,L[n]=e,Mhe[n]=s,_he[n]=new RegExp(e,r?"g":void 0),Lhe[n]=new RegExp(s,r?"g":void 0)},"createToken");oe("NUMERICIDENTIFIER","0|[1-9]\\d*");oe("NUMERICIDENTIFIERLOOSE","\\d+");oe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${zx}*`);oe("MAINVERSION",`(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})\\.(${L[M.NUMERICIDENTIFIER]})`);oe("MAINVERSIONLOOSE",`(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})\\.(${L[M.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASEIDENTIFIER",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIER]})`);oe("PRERELEASEIDENTIFIERLOOSE",`(?:${L[M.NONNUMERICIDENTIFIER]}|${L[M.NUMERICIDENTIFIERLOOSE]})`);oe("PRERELEASE",`(?:-(${L[M.PRERELEASEIDENTIFIER]}(?:\\.${L[M.PRERELEASEIDENTIFIER]})*))`);oe("PRERELEASELOOSE",`(?:-?(${L[M.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${L[M.PRERELEASEIDENTIFIERLOOSE]})*))`);oe("BUILDIDENTIFIER",`${zx}+`);oe("BUILD",`(?:\\+(${L[M.BUILDIDENTIFIER]}(?:\\.${L[M.BUILDIDENTIFIER]})*))`);oe("FULLPLAIN",`v?${L[M.MAINVERSION]}${L[M.PRERELEASE]}?${L[M.BUILD]}?`);oe("FULL",`^${L[M.FULLPLAIN]}$`);oe("LOOSEPLAIN",`[v=\\s]*${L[M.MAINVERSIONLOOSE]}${L[M.PRERELEASELOOSE]}?${L[M.BUILD]}?`);oe("LOOSE",`^${L[M.LOOSEPLAIN]}$`);oe("GTLT","((?:<|>)?=?)");oe("XRANGEIDENTIFIERLOOSE",`${L[M.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);oe("XRANGEIDENTIFIER",`${L[M.NUMERICIDENTIFIER]}|x|X|\\*`);oe("XRANGEPLAIN",`[v=\\s]*(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:\\.(${L[M.XRANGEIDENTIFIER]})(?:${L[M.PRERELEASE]})?${L[M.BUILD]}?)?)?`);oe("XRANGEPLAINLOOSE",`[v=\\s]*(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:\\.(${L[M.XRANGEIDENTIFIERLOOSE]})(?:${L[M.PRERELEASELOOSE]})?${L[M.BUILD]}?)?)?`);oe("XRANGE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAIN]}$`);oe("XRANGELOOSE",`^${L[M.GTLT]}\\s*${L[M.XRANGEPLAINLOOSE]}$`);oe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${Hx}})(?:\\.(\\d{1,${Hx}}))?(?:\\.(\\d{1,${Hx}}))?`);oe("COERCE",`${L[M.COERCEPLAIN]}(?:$|[^\\d])`);oe("COERCEFULL",L[M.COERCEPLAIN]+`(?:${L[M.PRERELEASE]})?(?:${L[M.BUILD]})?(?:$|[^\\d])`);oe("COERCERTL",L[M.COERCE],!0);oe("COERCERTLFULL",L[M.COERCEFULL],!0);oe("LONETILDE","(?:~>?)");oe("TILDETRIM",`(\\s*)${L[M.LONETILDE]}\\s+`,!0);_n.tildeTrimReplace="$1~";oe("TILDE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAIN]}$`);oe("TILDELOOSE",`^${L[M.LONETILDE]}${L[M.XRANGEPLAINLOOSE]}$`);oe("LONECARET","(?:\\^)");oe("CARETTRIM",`(\\s*)${L[M.LONECARET]}\\s+`,!0);_n.caretTrimReplace="$1^";oe("CARET",`^${L[M.LONECARET]}${L[M.XRANGEPLAIN]}$`);oe("CARETLOOSE",`^${L[M.LONECARET]}${L[M.XRANGEPLAINLOOSE]}$`);oe("COMPARATORLOOSE",`^${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]})$|^$`);oe("COMPARATOR",`^${L[M.GTLT]}\\s*(${L[M.FULLPLAIN]})$|^$`);oe("COMPARATORTRIM",`(\\s*)${L[M.GTLT]}\\s*(${L[M.LOOSEPLAIN]}|${L[M.XRANGEPLAIN]})`,!0);_n.comparatorTrimReplace="$1$2$3";oe("HYPHENRANGE",`^\\s*(${L[M.XRANGEPLAIN]})\\s+-\\s+(${L[M.XRANGEPLAIN]})\\s*$`);oe("HYPHENRANGELOOSE",`^\\s*(${L[M.XRANGEPLAINLOOSE]})\\s+-\\s+(${L[M.XRANGEPLAINLOOSE]})\\s*$`);oe("STAR","(<|>)?=?\\s*\\*");oe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");oe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var lg=f((qGe,Gz)=>{"use strict";var qhe=Object.freeze({loose:!0}),Ghe=Object.freeze({}),Hhe=o(t=>t?typeof t!="object"?qhe:t:Ghe,"parseOptions");Gz.exports=Hhe});var Vx=f((HGe,Vz)=>{"use strict";var Hz=/^[0-9]+$/,zz=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Hz.test(t),s=Hz.test(e);return r&&s&&(t=+t,e=+e),t===e?0:r&&!s?-1:s&&!r?1:t<e?-1:1},"compareIdentifiers"),zhe=o((t,e)=>zz(e,t),"rcompareIdentifiers");Vz Line truncated
`).join(`
`+i),t.push(n+"m+"+Wg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=xye()+e+" "+t[0]}o(Qye,"formatArgs");function xye(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(xye,"getDate");function Nye(...t){return process.stderr.write(Jg.format(...t)+`
`)}o(Nye,"log");function Sye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Sye,"save");function Rye(){return process.env.DEBUG}o(Rye,"load");function Tye(t){t.inspectOpts={};let e=Object.keys(Vt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vt.inspectOpts[e[r]]}o(Tye,"init");Wg.exports=P0()(Vt);var{formatters:Q$}=Wg.exports;Q$.o=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Q$.O=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts)}});var jg=f((NYe,_0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?_0.exports=y$():_0.exports=x$()});var R$=f(Tr=>{"use strict";var vye=Tr&&Tr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Pye=Tr&&Tr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N$=Tr&&Tr.__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)&&vye(e,t,r);return Pye(e,t),e};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.req=Tr.json=Tr.toBuffer=void 0;var kye=N$(require("http")),Dye=N$(require("https"));async function S$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(S$,"toBuffer");Tr.toBuffer=S$;async function _ye(t){let r=(await S$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(_ye,"json");Tr.json=_ye;function Lye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Dye:kye).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(Lye,"req");Tr.req=Lye});var k$=f(ns=>{"use strict";var v$=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Mye=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P$=ns&&ns.__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)&&v$(e,t,r);return Mye(e,t),e},Fye=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v$(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var Oye=P$(require("net")),T$=P$(require("http")),Uye=require("https");Fye(R$(),ns);var On=Symbol("AgentBaseInternalState"),L0=class extends T$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[On]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 Oye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Uye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof T$.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[On].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[On].currentSocket;if(this[On].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[On].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[On]&&(this[On].defaultPort=e)}get protocol(){return this[On].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[On]&&(this[On].protocol=e)}};ns.Agent=L0});var D$=f(ru=>{"use strict";var qye=ru&&ru.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ru,"__esModule",{value:!0});ru.parseProxyResponse=void 0;var Gye=qye(jg()),Kg=(0,Gye.default)("https-proxy-agent:parse-proxy-response");function Hye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):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(),Kg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),Kg("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
`+i),t.push(n+"m+"+Wg.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Rye()+e+" "+t[0]}o(Sye,"formatArgs");function Rye(){return Vt.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Rye,"getDate");function Tye(...t){return process.stderr.write(Jg.format(...t)+`
`)}o(Tye,"log");function vye(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(vye,"save");function Pye(){return process.env.DEBUG}o(Pye,"load");function kye(t){t.inspectOpts={};let e=Object.keys(Vt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Vt.inspectOpts[e[r]]}o(kye,"init");Wg.exports=k0()(Vt);var{formatters:Q$}=Wg.exports;Q$.o=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Q$.O=function(t){return this.inspectOpts.colors=this.useColors,Jg.inspect(t,this.inspectOpts)}});var jg=f((TYe,L0)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?L0.exports=y$():L0.exports=x$()});var R$=f(Tr=>{"use strict";var Dye=Tr&&Tr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),_ye=Tr&&Tr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),N$=Tr&&Tr.__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)&&Dye(e,t,r);return _ye(e,t),e};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.req=Tr.json=Tr.toBuffer=void 0;var Lye=N$(require("http")),Mye=N$(require("https"));async function S$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(S$,"toBuffer");Tr.toBuffer=S$;async function Fye(t){let r=(await S$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(Fye,"json");Tr.json=Fye;function Oye(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Mye:Lye).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(Oye,"req");Tr.req=Oye});var k$=f(ns=>{"use strict";var v$=ns&&ns.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Uye=ns&&ns.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),P$=ns&&ns.__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)&&v$(e,t,r);return Uye(e,t),e},qye=ns&&ns.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&v$(e,t,r)};Object.defineProperty(ns,"__esModule",{value:!0});ns.Agent=void 0;var Gye=P$(require("net")),T$=P$(require("http")),Hye=require("https");qye(R$(),ns);var On=Symbol("AgentBaseInternalState"),M0=class extends T$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[On]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 Gye.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Hye.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof T$.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[On].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[On].currentSocket;if(this[On].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[On].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[On]&&(this[On].defaultPort=e)}get protocol(){return this[On].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[On]&&(this[On].protocol=e)}};ns.Agent=M0});var D$=f(ru=>{"use strict";var zye=ru&&ru.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ru,"__esModule",{value:!0});ru.parseProxyResponse=void 0;var Vye=zye(jg()),Kg=(0,Vye.default)("https-proxy-agent:parse-proxy-response");function Yye(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let A=t.read();A?u(A):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(),Kg("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(A){a(),Kg("onerror %o",A),r(A)}o(l,"onerror");function u(A){n.push(A),s+=A.length;let d=Buffer.concat(n,s),p=d.indexOf(`\r
\r
`);if(p===-1){Kg("have not received end of HTTP headers yet..."),i();return}let m=d.slice(0,p).toString("ascii").split(`\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],E=g.slice(2).join(" "),y={};for(let I of m){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(),U=y[N];typeof U=="string"?y[N]=[U,S]:Array.isArray(U)?U.push(S):y[N]=S}Kg("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Hye,"parseProxyResponse");ru.parseProxyResponse=Hye});var U$=f(vs=>{"use strict";var zye=vs&&vs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Vye=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F$=vs&&vs.__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)&&zye(e,t,r);return Vye(e,t),e},O$=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.HttpsProxyAgent=void 0;var Xg=F$(require("net")),_$=F$(require("tls")),Yye=O$(require("assert")),$ye=O$(jg()),Jye=k$(),Wye=require("url"),jye=D$(),Wd=(0,$ye.default)("https-proxy-agent"),L$=o(t=>t.servername===void 0&&t.host&&!Xg.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Zg=class extends Jye.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Wye.URL(e):e,this.proxyHeaders=r?.headers??{},Wd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?M$(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Wd("Creating `tls.Socket`: %o",this.connectOpts),n=_$.connect(L$(this.connectOpts))):(Wd("Creating `net.Socket`: %o",this.connectOpts),n=Xg.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Xg.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`),h=m.shift();if(!h)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=h.split(" "),C=+g[1],E=g.slice(2).join(" "),y={};for(let I of m){if(!I)continue;let B=I.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let x=I.slice(0,B).toLowerCase(),S=I.slice(B+1).trimStart(),U=y[x];typeof U=="string"?y[x]=[U,S]:Array.isArray(U)?U.push(S):y[x]=S}Kg("got proxy server response: %o %o",h,y),a(),e({connect:{statusCode:C,statusText:E,headers:y},buffered:d})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(Yye,"parseProxyResponse");ru.parseProxyResponse=Yye});var U$=f(vs=>{"use strict";var $ye=vs&&vs.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Jye=vs&&vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),F$=vs&&vs.__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)&&$ye(e,t,r);return Jye(e,t),e},O$=vs&&vs.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vs,"__esModule",{value:!0});vs.HttpsProxyAgent=void 0;var Xg=F$(require("net")),_$=F$(require("tls")),Wye=O$(require("assert")),jye=O$(jg()),Kye=k$(),Xye=require("url"),Zye=D$(),Wd=(0,jye.default)("https-proxy-agent"),L$=o(t=>t.servername===void 0&&t.host&&!Xg.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),Zg=class extends Kye.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Xye.URL(e):e,this.proxyHeaders=r?.headers??{},Wd("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?M$(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;s.protocol==="https:"?(Wd("Creating `tls.Socket`: %o",this.connectOpts),n=_$.connect(L$(this.connectOpts))):(Wd("Creating `net.Socket`: %o",this.connectOpts),n=Xg.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=Xg.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(i))c+=`${p}: ${i[p]}\r
`;let l=(0,jye.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",Kye),r.secureEndpoint?(Wd("Upgrading socket connection to TLS"),_$.connect({...M$(L$(r),"host","path","port"),socket:n})):n;n.destroy();let d=new Xg.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{Wd("Replaying proxy buffer for failed request"),(0,Yye.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};Zg.protocols=["http","https"];vs.HttpsProxyAgent=Zg;function Kye(t){t.resume()}o(Kye,"resume");function M$(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(M$,"omit")});var H$=f(vr=>{"use strict";var Xye=vr&&vr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Zye=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q$=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)&&Xye(e,t,r);return Zye(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var eCe=q$(require("http")),tCe=q$(require("https"));async function G$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(G$,"toBuffer");vr.toBuffer=G$;async function rCe(t){let r=(await G$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(rCe,"json");vr.json=rCe;function sCe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?tCe:eCe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(sCe,"req");vr.req=sCe});var $$=f(is=>{"use strict";var V$=is&&is.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),nCe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Y$=is&&is.__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)&&V$(e,t,r);return nCe(e,t),e},iCe=is&&is.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V$(e,t,r)};Object.defineProperty(is,"__esModule",{value:!0});is.Agent=void 0;var oCe=Y$(require("net")),z$=Y$(require("http")),aCe=require("https");iCe(H$(),is);var Un=Symbol("AgentBaseInternalState"),M0=class extends z$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Un]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 oCe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?aCe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof z$.Agent)return c.addRequest(e,n);this[Un].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Un].currentSocket;if(this[Un].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Un].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Un]&&(this[Un].defaultPort=e)}get protocol(){return this[Un].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Un]&&(this[Un].protocol=e)}};is.Agent=M0});var j$=f(Ps=>{"use strict";var cCe=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),lCe=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W$=Ps&&Ps.__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)&&cCe(e,t,r);return lCe(e,t),e},uCe=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpProxyAgent=void 0;var ACe=W$(require("net")),dCe=W$(require("tls")),pCe=uCe(jg()),mCe=require("events"),hCe=$$(),J$=require("url"),su=(0,pCe.default)("http-proxy-agent"),eE=class extends hCe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new J$.URL(e):e,this.proxyHeaders=r?.headers??{},su("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?fCe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new J$.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(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;su("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(su("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let l=(0,Zye.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:u,buffered:A}=await l;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200)return e.once("socket",eCe),r.secureEndpoint?(Wd("Upgrading socket connection to TLS"),_$.connect({...M$(L$(r),"host","path","port"),socket:n})):n;n.destroy();let d=new Xg.Socket({writable:!1});return d.readable=!0,e.once("socket",p=>{Wd("Replaying proxy buffer for failed request"),(0,Wye.default)(p.listenerCount("data")>0),p.push(A),p.push(null)}),d}};Zg.protocols=["http","https"];vs.HttpsProxyAgent=Zg;function eCe(t){t.resume()}o(eCe,"resume");function M$(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(M$,"omit")});var H$=f(vr=>{"use strict";var tCe=vr&&vr.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),rCe=vr&&vr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),q$=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)&&tCe(e,t,r);return rCe(e,t),e};Object.defineProperty(vr,"__esModule",{value:!0});vr.req=vr.json=vr.toBuffer=void 0;var sCe=q$(require("http")),nCe=q$(require("https"));async function G$(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(G$,"toBuffer");vr.toBuffer=G$;async function iCe(t){let r=(await G$(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(iCe,"json");vr.json=iCe;function oCe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?nCe:sCe).request(t,e),n=new Promise((i,a)=>{s.once("response",i).once("error",a).end()});return s.then=n.then.bind(n),s}o(oCe,"req");vr.req=oCe});var $$=f(is=>{"use strict";var V$=is&&is.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),aCe=is&&is.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Y$=is&&is.__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)&&V$(e,t,r);return aCe(e,t),e},cCe=is&&is.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&V$(e,t,r)};Object.defineProperty(is,"__esModule",{value:!0});is.Agent=void 0;var lCe=Y$(require("net")),z$=Y$(require("http")),uCe=require("https");cCe(H$(),is);var Un=Symbol("AgentBaseInternalState"),F0=class extends z$.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Un]={}}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(s=>s.indexOf("(https.js:")!==-1||s.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 lCe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let s=this.sockets[e],n=s.indexOf(r);n!==-1&&(s.splice(n,1),this.totalSocketCount--,s.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?uCe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,s){let n={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(n),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,n)).then(c=>{if(this.decrementSockets(i,a),c instanceof z$.Agent)return c.addRequest(e,n);this[Un].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Un].currentSocket;if(this[Un].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Un].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Un]&&(this[Un].defaultPort=e)}get protocol(){return this[Un].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Un]&&(this[Un].protocol=e)}};is.Agent=F0});var j$=f(Ps=>{"use strict";var ACe=Ps&&Ps.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),dCe=Ps&&Ps.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W$=Ps&&Ps.__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)&&ACe(e,t,r);return dCe(e,t),e},pCe=Ps&&Ps.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ps,"__esModule",{value:!0});Ps.HttpProxyAgent=void 0;var mCe=W$(require("net")),hCe=W$(require("tls")),fCe=pCe(jg()),gCe=require("events"),ECe=$$(),J$=require("url"),su=(0,fCe.default)("http-proxy-agent"),eE=class extends ECe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new J$.URL(e):e,this.proxyHeaders=r?.headers??{},su("Creating new HttpProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?yCe(r,"headers"):null,host:s,port:n}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:s}=this,n=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${n}//${i}`,c=new J$.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(s.username||s.password){let u=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let A=l[u];A&&e.setHeader(u,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;su("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(su("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),su("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(su("Creating `tls.Socket`: %o",this.connectOpts),i=dCe.connect(this.connectOpts)):(su("Creating `net.Socket`: %o",this.connectOpts),i=ACe.connect(this.connectOpts)),await(0,mCe.once)(i,"connect"),i}};eE.protocols=["http","https"];Ps.HttpProxyAgent=eE;function fCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(fCe,"omit")});var EJ=f(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.state=void 0;mE.state={instrumenterImplementation:void 0}});var _J=f(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.state=void 0;yE.state={operationRequestMap:new WeakMap}});var p4=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var LQe=require("os"),MQe=require("util");function FQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(FQe,"_interopDefaultLegacy");var OQe=FQe(MQe);function UQe(t,...e){process.stderr.write(`${OQe.default.format(t,...e)}${LQe.EOL}`)}o(UQe,"log");var s4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,i4,hv=[],fv=[],Fy=[];s4&&gv(s4);var o4=Object.assign(t=>a4(t),{enable:gv,enabled:Ev,disable:qQe,log:UQe});function gv(t){i4=t,hv=[],fv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?fv.push(new RegExp(`^${s.substr(1)}$`)):hv.push(new RegExp(`^${s}$`));for(let s of Fy)s.enabled=Ev(s.namespace)}o(gv,"enable");function Ev(t){if(t.endsWith("*"))return!0;for(let e of fv)if(e.test(t))return!1;for(let e of hv)if(e.test(t))return!0;return!1}o(Ev,"enabled");function qQe(){let t=i4||"";return gv(""),t}o(qQe,"disable");function a4(t){let e=Object.assign(r,{enabled:Ev(t),destroy:GQe,log:o4.log,namespace:t,extend:HQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),Fy.push(e),e}o(a4,"createDebugger");function GQe(){let t=Fy.indexOf(this);return t>=0?(Fy.splice(t,1),!0):!1}o(GQe,"destroy");function HQe(t){let e=a4(`${this.namespace}:${t}`);return e.log=this.log,e}o(HQe,"extend");var Lp=o4,c4=new Set,Ly=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Oy,Uy=Lp("azure");Uy.log=(...t)=>{Lp.log(...t)};var yv=["verbose","info","warning","error"];Ly&&(d4(Ly)?l4(Ly):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Ly}'; logging is not enabled. Acceptable values: ${yv.join(", ")}.`));function l4(t){if(t&&!d4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${yv.join(",")}`);Oy=t;let e=[];for(let r of c4)A4(r)&&e.push(r.namespace);Lp.enable(e.join(","))}o(l4,"setLogLevel");function zQe(){return Oy}o(zQe,"getLogLevel");var n4={verbose:400,info:300,warning:200,error:100};function VQe(t){let e=Uy.extend(t);return u4(Uy,e),{error:My(e,"error"),warning:My(e,"warning"),info:My(e,"info"),verbose:My(e,"verbose")}}o(VQe,"createClientLogger");function u4(t,e){e.log=(...r)=>{t.log(...r)}}o(u4,"patchLogMethod");function My(t,e){let r=Object.assign(t.extend(e),{level:e});if(u4(t,r),A4(r)){let s=Lp.disable();Lp.enable(s+","+r.namespace)}return c4.add(r),r}o(My,"createLogger");function A4(t){return!!(Oy&&n4[t.level]<=n4[Oy])}o(A4,"shouldEnable");function d4(t){return yv.includes(t)}o(d4,"isAzureLogLevel");Iu.AzureLogger=Uy;Iu.createClientLogger=VQe;Iu.getLogLevel=zQe;Iu.setLogLevel=l4});var Bv=f(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var Bu=new WeakMap,qy=new WeakMap,Mp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Bu.set(this,[]),qy.set(this,!1)}get aborted(){if(!qy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return qy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Bu.get(this).push(r)}removeEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Bu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function m4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Bu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),qy.set(t,!0)}o(m4,"abortSignal");var Cv=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Iv=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Mp,!!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(){m4(this._signal)}static timeout(e){let r=new Mp,s=setTimeout(m4,e,r);return typeof s.unref=="function"&&s.unref(),r}};Fp.AbortController=Iv;Fp.AbortError=Cv;Fp.AbortSignal=Mp});var y4=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var YQe Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),su("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(su("Creating `tls.Socket`: %o",this.connectOpts),i=hCe.connect(this.connectOpts)):(su("Creating `net.Socket`: %o",this.connectOpts),i=mCe.connect(this.connectOpts)),await(0,gCe.once)(i,"connect"),i}};eE.protocols=["http","https"];Ps.HttpProxyAgent=eE;function yCe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(yCe,"omit")});var EJ=f(mE=>{"use strict";Object.defineProperty(mE,"__esModule",{value:!0});mE.state=void 0;mE.state={instrumenterImplementation:void 0}});var _J=f(yE=>{"use strict";Object.defineProperty(yE,"__esModule",{value:!0});yE.state=void 0;yE.state={operationRequestMap:new WeakMap}});var p4=f(Iu=>{"use strict";Object.defineProperty(Iu,"__esModule",{value:!0});var OQe=require("os"),UQe=require("util");function qQe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(qQe,"_interopDefaultLegacy");var GQe=qQe(UQe);function HQe(t,...e){process.stderr.write(`${GQe.default.format(t,...e)}${OQe.EOL}`)}o(HQe,"log");var s4=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,i4,fv=[],gv=[],Fy=[];s4&&Ev(s4);var o4=Object.assign(t=>a4(t),{enable:Ev,enabled:yv,disable:zQe,log:HQe});function Ev(t){i4=t,fv=[],gv=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?gv.push(new RegExp(`^${s.substr(1)}$`)):fv.push(new RegExp(`^${s}$`));for(let s of Fy)s.enabled=yv(s.namespace)}o(Ev,"enable");function yv(t){if(t.endsWith("*"))return!0;for(let e of gv)if(e.test(t))return!1;for(let e of fv)if(e.test(t))return!0;return!1}o(yv,"enabled");function zQe(){let t=i4||"";return Ev(""),t}o(zQe,"disable");function a4(t){let e=Object.assign(r,{enabled:yv(t),destroy:VQe,log:o4.log,namespace:t,extend:YQe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),Fy.push(e),e}o(a4,"createDebugger");function VQe(){let t=Fy.indexOf(this);return t>=0?(Fy.splice(t,1),!0):!1}o(VQe,"destroy");function YQe(t){let e=a4(`${this.namespace}:${t}`);return e.log=this.log,e}o(YQe,"extend");var Lp=o4,c4=new Set,Ly=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,Oy,Uy=Lp("azure");Uy.log=(...t)=>{Lp.log(...t)};var Cv=["verbose","info","warning","error"];Ly&&(d4(Ly)?l4(Ly):console.error(`AZURE_LOG_LEVEL set to unknown log level '${Ly}'; logging is not enabled. Acceptable values: ${Cv.join(", ")}.`));function l4(t){if(t&&!d4(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Cv.join(",")}`);Oy=t;let e=[];for(let r of c4)A4(r)&&e.push(r.namespace);Lp.enable(e.join(","))}o(l4,"setLogLevel");function $Qe(){return Oy}o($Qe,"getLogLevel");var n4={verbose:400,info:300,warning:200,error:100};function JQe(t){let e=Uy.extend(t);return u4(Uy,e),{error:My(e,"error"),warning:My(e,"warning"),info:My(e,"info"),verbose:My(e,"verbose")}}o(JQe,"createClientLogger");function u4(t,e){e.log=(...r)=>{t.log(...r)}}o(u4,"patchLogMethod");function My(t,e){let r=Object.assign(t.extend(e),{level:e});if(u4(t,r),A4(r)){let s=Lp.disable();Lp.enable(s+","+r.namespace)}return c4.add(r),r}o(My,"createLogger");function A4(t){return!!(Oy&&n4[t.level]<=n4[Oy])}o(A4,"shouldEnable");function d4(t){return Cv.includes(t)}o(d4,"isAzureLogLevel");Iu.AzureLogger=Uy;Iu.createClientLogger=JQe;Iu.getLogLevel=$Qe;Iu.setLogLevel=l4});var wv=f(Fp=>{"use strict";Object.defineProperty(Fp,"__esModule",{value:!0});var Bu=new WeakMap,qy=new WeakMap,Mp=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Bu.set(this,[]),qy.set(this,!1)}get aborted(){if(!qy.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return qy.get(this)}static get none(){return new t}addEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Bu.get(this).push(r)}removeEventListener(e,r){if(!Bu.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Bu.get(this),n=s.indexOf(r);n>-1&&s.splice(n,1)}dispatchEvent(e){throw new Error("This is a stub dispatchEvent implementation that should not be used. It only exists for type-checking purposes.")}};function m4(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Bu.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),qy.set(t,!0)}o(m4,"abortSignal");var Iv=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},Bv=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Mp,!!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(){m4(this._signal)}static timeout(e){let r=new Mp,s=setTimeout(m4,e,r);return typeof s.unref=="function"&&s.unref(),r}};Fp.AbortController=Bv;Fp.AbortError=Iv;Fp.AbortSignal=Mp});var y4=f(it=>{"use strict";Object.defineProperty(it,"__esModule",{value:!0});var WQe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${A}
Polling status: ${w4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(I4({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(Ixe,"pollOperationHelper");async function N4(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await Ixe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(Q4({status:I,response:y,state:r,stateProxy:s,isDone:g,processResult:d,getError:p,setErrorAsResult:C}),!w4.includes(I)){let B=A?.(y);B&&h(B);let N=c?.(y,r);if(N!==void 0){let S=E!==N;r.config.operationLocation=N,u?.(N,S)}else u?.(E,!1)}m?.(r,y)}}o(N4,"pollOperation");function S4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(S4,"getOperationLocationPollingUrl");function R4(t){return t.headers.location}o(R4,"getLocationHeader");function T4(t){return t.headers["operation-location"]}o(T4,"getOperationLocationHeader");function v4(t){return t.headers["azure-asyncoperation"]}o(v4,"getAzureAsyncOperationHeader");function Bxe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(Bxe,"findResourceLocation");function P4(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=T4(e),a=v4(e),c=S4({operationLocation:i,azureAsyncOperation:a}),l=R4(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Bxe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(P4,"inferLroMode");function k4(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 kv(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 mc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(k4,"transformStatus");function wxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return k4({status:r,statusCode:t.statusCode})}o(wxe,"getStatus");function bxe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return k4({status:i,statusCode:t.statusCode})}o(bxe,"getProvisioningState");function kv(t){return t===202?"running":t<300?"succeeded":"failed"}o(kv,"toOperationStatus");function D4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Qxe(new Date(e)):r*1e3}}o(D4,"parseRetryAfter");function _4(t){let e=t.flatResponse.error;if(!e){mc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){mc.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(_4,"getErrorFromResponse");function Qxe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Qxe,"calculatePollingIntervalFromDate");function L4(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return kv(e.rawResponse.statusCode);case"Body":return Dv(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(L4,"getStatusFromInitialResponse");async function xxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return x4({init:o(async()=>{let a=await n.sendInitialRequest(),c=P4({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:L4,setErrorAsResult:i})}o(xxe,"initHttpOperation");function M4({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(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(l0e,"base64decode");Su.base64decode=l0e;function u0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=eo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=eo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=eo[n|s>>6],e+=eo[s&63],r=0;break}return r&&(e+=eo[n],e+="=",r==1&&(e+="=")),e}o(u0e,"base64encode");Su.base64encode=u0e});var f8=f(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.utf8read=void 0;var Vv=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function A0e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Vv(s)),n=0);return r.length?(n&&r.push(Vv(s.slice(0,n))),r.join("")):Vv(s.slice(0,n))}o(A0e,"utf8read");oC.utf8read=A0e});var Yp=f(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var d0e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(d0e=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function p0e(t,e){return Object.assign(Object.assign({},t),e)}o(p0e,"mergeBinaryOptions");di.mergeBinaryOptions=p0e;var m0e;(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"})(m0e=di.WireType||(di.WireType={}))});var cC=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.varint32read=Fr.varint32write=Fr.int64toString=Fr.int64fromString=Fr.varint64write=Fr.varint64read=void 0;function h0e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(h0e,"varint64read");Fr.varint64read=h0e;function f0e(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 s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){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(f0e,"varint64write");Fr.varint64write=f0e;var aC=65536*65536;function g0e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=aC&&(n=n+(s/aC|0),s=s%aC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(g0e,"int64fromString");Fr.int64fromString=g0e;function E0e(t,e){if(e>>>0<=2097151)return""+(aC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(E0e,"int64toString");Fr.int64toString=E0e;function y0e(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(y0e,"varint32write");Fr.varint32write=y0e;function C0e(){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(C0e,"varint32read");Fr.varint32read=C0e});var ta=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.PbLong=ea.PbULong=ea.detectBi=void 0;var $p=cC(),De;function g8(){let t=new DataView(new ArrayBuffer(8));De=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
`)}};_C.RpcError=EP});var CP=f(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.mergeRpcOptions=void 0;var W8=ht();function GNe(t,e){if(!e)return t;let r={};LC(t,r),LC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=W8.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=W8.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LC(t.meta,r.meta),LC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(GNe,"mergeRpcOptions");MC.mergeRpcOptions=GNe;function LC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(LC,"copy")});var BP=f(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Deferred=yc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=yc.DeferredState||(yc.DeferredState={}));var IP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=hi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};yc.Deferred=IP});var bP=f(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.RpcOutputStreamController=void 0;var j8=BP(),Cc=ht(),wP=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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Cc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Cc.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){Cc.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(){Cc.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;Cc.assert(e,"bad state"),Cc.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 j8.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Cc.assert(s.state==j8.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};FC.RpcOutputStreamController=wP});var xP=f(_u=>{"use strict";var HNe=_u&&_u.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(_u,"__esModule",{value:!0});_u.UnaryCall=void 0;var QP=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return HNe(this,void 0,void 0,function*(){let[e,r,s,n]=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:s,trailers:n}})}};_u.UnaryCall=QP});var SP=f(Lu=>{"use strict";var zNe=Lu&&Lu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){t Line truncated
Polling status: ${w4.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let d=a(u,r);if(d!==void 0)return{response:await e(d).catch(I4({state:r,stateProxy:s,isOperationError:c})),status:A}}return{response:u,status:A}}o(bxe,"pollOperationHelper");async function N4(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:A,processResult:d,getError:p,updateState:m,setDelay:h,isDone:g,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:y,status:I}=await bxe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(Q4({status:I,response:y,state:r,stateProxy:s,isDone:g,processResult:d,getError:p,setErrorAsResult:C}),!w4.includes(I)){let B=A?.(y);B&&h(B);let x=c?.(y,r);if(x!==void 0){let S=E!==x;r.config.operationLocation=x,u?.(x,S)}else u?.(E,!1)}m?.(r,y)}}o(N4,"pollOperation");function S4(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(S4,"getOperationLocationPollingUrl");function R4(t){return t.headers.location}o(R4,"getLocationHeader");function T4(t){return t.headers["operation-location"]}o(T4,"getOperationLocationHeader");function v4(t){return t.headers["azure-asyncoperation"]}o(v4,"getAzureAsyncOperationHeader");function Qxe(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(Qxe,"findResourceLocation");function P4(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=T4(e),a=v4(e),c=S4({operationLocation:i,azureAsyncOperation:a}),l=R4(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Qxe({requestMethod:u,location:l,requestPath:s,resourceLocationConfig:n})}:l!==void 0?{mode:"ResourceLocation",operationLocation:l}:u==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(P4,"inferLroMode");function k4(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 Dv(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 mc.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(k4,"transformStatus");function xxe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return k4({status:r,statusCode:t.statusCode})}o(xxe,"getStatus");function Nxe(t){var e,r;let{properties:s,provisioningState:n}=(e=t.body)!==null&&e!==void 0?e:{},i=(r=s?.provisioningState)!==null&&r!==void 0?r:n;return k4({status:i,statusCode:t.statusCode})}o(Nxe,"getProvisioningState");function Dv(t){return t===202?"running":t<300?"succeeded":"failed"}o(Dv,"toOperationStatus");function D4({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?Sxe(new Date(e)):r*1e3}}o(D4,"parseRetryAfter");function _4(t){let e=t.flatResponse.error;if(!e){mc.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){mc.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(_4,"getErrorFromResponse");function Sxe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(Sxe,"calculatePollingIntervalFromDate");function L4(t){let{response:e,state:r,operationLocation:s}=t;function n(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return Dv(e.rawResponse.statusCode);case"Body":return _v(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(L4,"getStatusFromInitialResponse");async function Rxe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return x4({init:o(async()=>{let a=await n.sendInitialRequest(),c=P4({rawResponse:a.rawResponse,requestPath:n.requestPath,requestMethod:n.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:s?({flatResponse:a},c)=>s(a,c):({flatResponse:a})=>a,getOperationStatus:L4,setErrorAsResult:i})}o(Rxe,"initHttpOperation");function M4({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(n){case 0:a=i,n=1;break;case 1:r[s++]=a<<2|(i&48)>>4,a=i,n=2;break;case 2:r[s++]=(a&15)<<4|(i&60)>>2,a=i,n=3;break;case 3:r[s++]=(a&3)<<6|i,n=0;break}}if(n==1)throw Error("invalid base64 string.");return r.subarray(0,s)}o(d0e,"base64decode");Su.base64decode=d0e;function p0e(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=eo[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=eo[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=eo[n|s>>6],e+=eo[s&63],r=0;break}return r&&(e+=eo[n],e+="=",r==1&&(e+="=")),e}o(p0e,"base64encode");Su.base64encode=p0e});var f8=f(oC=>{"use strict";Object.defineProperty(oC,"__esModule",{value:!0});oC.utf8read=void 0;var Yv=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function m0e(t){if(t.length<1)return"";let e=0,r=[],s=[],n=0,i,a=t.length;for(;e<a;)i=t[e++],i<128?s[n++]=i:i>191&&i<224?s[n++]=(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,s[n++]=55296+(i>>10),s[n++]=56320+(i&1023)):s[n++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,n>8191&&(r.push(Yv(s)),n=0);return r.length?(n&&r.push(Yv(s.slice(0,n))),r.join("")):Yv(s.slice(0,n))}o(m0e,"utf8read");oC.utf8read=m0e});var Yp=f(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.WireType=di.mergeBinaryOptions=di.UnknownFieldHandler=void 0;var h0e;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,s,n,i,a)=>{(e(s)?s[t.symbol]:s[t.symbol]=[]).push({no:n,wireType:i,data:a})},t.onWrite=(r,s,n)=>{for(let{no:i,wireType:a,data:c}of t.list(s))n.tag(i,a).raw(c)},t.list=(r,s)=>{if(e(r)){let n=r[t.symbol];return s?n.filter(i=>i.no==s):n}return[]},t.last=(r,s)=>t.list(r,s).slice(-1)[0];let e=o(r=>r&&Array.isArray(r[t.symbol]),"is")})(h0e=di.UnknownFieldHandler||(di.UnknownFieldHandler={}));function f0e(t,e){return Object.assign(Object.assign({},t),e)}o(f0e,"mergeBinaryOptions");di.mergeBinaryOptions=f0e;var g0e;(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"})(g0e=di.WireType||(di.WireType={}))});var cC=f(Fr=>{"use strict";Object.defineProperty(Fr,"__esModule",{value:!0});Fr.varint32read=Fr.varint32write=Fr.int64toString=Fr.int64fromString=Fr.varint64write=Fr.varint64read=void 0;function E0e(){let t=0,e=0;for(let s=0;s<28;s+=7){let n=this.buf[this.pos++];if(t|=(n&127)<<s,(n&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 s=3;s<=31;s+=7){let n=this.buf[this.pos++];if(e|=(n&127)<<s,(n&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}o(E0e,"varint64read");Fr.varint64read=E0e;function y0e(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 s=t>>>28&15|(e&7)<<4,n=e>>3!=0;if(r.push((n?s|128:s)&255),!!n){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(y0e,"varint64write");Fr.varint64write=y0e;var aC=65536*65536;function C0e(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let l=Number(t.slice(a,c));n*=r,s=s*r+l,s>=aC&&(n=n+(s/aC|0),s=s%aC)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(C0e,"int64fromString");Fr.int64fromString=C0e;function I0e(t,e){if(e>>>0<=2097151)return""+(aC*e+(t>>>0));let r=t&16777215,s=(t>>>24|e<<8)>>>0&16777215,n=e>>16&65535,i=r+s*6777216+n*6710656,a=s+n*8147497,c=n*2,l=1e7;i>=l&&(a+=Math.floor(i/l),i%=l),a>=l&&(c+=Math.floor(a/l),a%=l);function u(A,d){let p=A?String(A):"";return d?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(I0e,"int64toString");Fr.int64toString=I0e;function B0e(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(B0e,"varint32write");Fr.varint32write=B0e;function w0e(){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(w0e,"varint32read");Fr.varint32read=w0e});var ta=f(ea=>{"use strict";Object.defineProperty(ea,"__esModule",{value:!0});ea.PbLong=ea.PbULong=ea.detectBi=void 0;var $p=cC(),De;function g8(){let t=new DataView(new ArrayBuffer(8));De=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
`)}};_C.RpcError=yP});var IP=f(MC=>{"use strict";Object.defineProperty(MC,"__esModule",{value:!0});MC.mergeRpcOptions=void 0;var W8=ht();function VNe(t,e){if(!e)return t;let r={};LC(t,r),LC(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=W8.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=W8.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},LC(t.meta,r.meta),LC(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(VNe,"mergeRpcOptions");MC.mergeRpcOptions=VNe;function LC(t,e){if(!t)return;let r=e;for(let[s,n]of Object.entries(t))n instanceof Date?r[s]=new Date(n.getTime()):Array.isArray(n)?r[s]=n.concat():r[s]=n}o(LC,"copy")});var wP=f(yc=>{"use strict";Object.defineProperty(yc,"__esModule",{value:!0});yc.Deferred=yc.DeferredState=void 0;var hi;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hi=yc.DeferredState||(yc.DeferredState={}));var BP=class{static{o(this,"Deferred")}constructor(e=!0){this._state=hi.PENDING,this._promise=new Promise((r,s)=>{this._resolve=r,this._reject=s}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==hi.PENDING)throw new Error(`cannot resolve ${hi[this.state].toLowerCase()}`);this._resolve(e),this._state=hi.RESOLVED}reject(e){if(this.state!==hi.PENDING)throw new Error(`cannot reject ${hi[this.state].toLowerCase()}`);this._reject(e),this._state=hi.REJECTED}resolvePending(e){this._state===hi.PENDING&&this.resolve(e)}rejectPending(e){this._state===hi.PENDING&&this.reject(e)}};yc.Deferred=BP});var QP=f(FC=>{"use strict";Object.defineProperty(FC,"__esModule",{value:!0});FC.RpcOutputStreamController=void 0;var j8=wP(),Cc=ht(),bP=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 s=r.indexOf(e);s>=0&&r.splice(s,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,s){Cc.assert((e?1:0)+(r?1:0)+(s?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),s&&this.notifyComplete()}notifyMessage(e){Cc.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){Cc.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(){Cc.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;Cc.assert(e,"bad state"),Cc.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 j8.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Cc.assert(s.state==j8.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};FC.RpcOutputStreamController=bP});var NP=f(_u=>{"use strict";var YNe=_u&&_u.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(_u,"__esModule",{value:!0});_u.UnaryCall=void 0;var xP=class{static{o(this,"UnaryCall")}constructor(e,r,s,n,i,a,c){this.method=e,this.requestHeaders=r,this.request=s,this.headers=n,this.response=i,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(s=>e?Promise.resolve(e(s)):s,s=>r?Promise.resolve(r(s)):Promise.reject(s))}promiseFinished(){return YNe(this,void 0,void 0,function*(){let[e,r,s,n]=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:s,trailers:n}})}};_u.UnaryCall=xP});var RP=f(Lu=>{"use strict";var $Ne=Lu&&Lu.__awaiter||function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){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(WPe,"logUnexpecedPropertyAccessOnce");function jPe(){Object.keys(II).forEach(function(t){delete II[t]})}o(jPe,"resetLoggedProperties")});var wI=f(yi=>{"use strict";yi.__esModule=!0;yi.HandlebarsEnvironment=Jk;function l6(t){return t&&t.__esModule?t:{default:t}}o(l6,"_interopRequireDefault");var Nc=Er(),KPe=hs(),Yk=l6(KPe),XPe=Gk(),ZPe=i6(),eke=zk(),BI=l6(eke),tke=Vk(),rke="4.7.9";yi.VERSION=rke;var ske=8;yi.COMPILER_REVISION=ske;var nke=7;yi.LAST_COMPATIBLE_COMPILER_REVISION=nke;var ike={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"};yi.REVISION_CHANGES=ike;var $k="[object Object]";function Jk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},XPe.registerDefaultHelpers(this),ZPe.registerDefaultDecorators(this)}o(Jk,"HandlebarsEnvironment");Jk.prototype={constructor:Jk,logger:BI.default,log:BI.default.log,registerHelper:o(function(e,r){if(Nc.toString.call(e)===$k){if(r)throw new Yk.default("Arg not supported with multiple helpers");Nc.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(Nc.toString.call(e)===$k)Nc.extend(this.partials,e);else{if(typeof r>"u")throw new Yk.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(Nc.toString.call(e)===$k){if(r)throw new Yk.default("Arg not supported with multiple decorators");Nc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){tke.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var oke=BI.default.log;yi.log=oke;yi.createFrame=Nc.createFrame;yi.logger=BI.default});var A6=f((bI,u6)=>{"use strict";bI.__esModule=!0;function Wk(t){this.string=t}o(Wk,"SafeString");Wk.prototype.toString=Wk.prototype.toHTML=function(){return""+this.string};bI.default=Wk;u6.exports=bI.default});var d6=f(jk=>{"use strict";jk.__esModule=!0;jk.wrapHelper=ake;function ake(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(ake,"wrapHelper")});var E6=f(ia=>{"use strict";ia.__esModule=!0;ia.checkRevision=pke;ia.template=mke;ia.wrapProgram=QI;ia.resolvePartial=hke;ia.invokePartial=fke;ia.noop=f6;function cke(t){return t&&t.__esModule?t:{default:t}}o(cke,"_interopRequireDefault");function lke(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(lke,"_interopRequireWildcard");var uke=Er(),Wu=lke(uke),Ake=hs(),no=cke(Ake),io=wI(),p6=Gk(),dke=d6(),m6=Vk();function pke(t){var e=t&&t[0]||1,r=io.COMPILER_REVISION;if(!(e>=io.LAST_COMPATIBLE_COMPILER_REVISION&&e<=io.COMPILER_REVISION))if(e<io.LAST_COMPATIBLE_COMPILER_REVISION){var s=io.REVISION_CHANGES[r],n=io.REVISION_CHANGES[e];throw new no.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new no.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(pke,"checkRevision");function mke(t,e){if(!e)throw new no.default("No environment passed to template");if(!t||!t.main)throw new no.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Wu.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 u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var A=u.split(`
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}o(XPe,"logUnexpecedPropertyAccessOnce");function ZPe(){Object.keys(II).forEach(function(t){delete II[t]})}o(ZPe,"resetLoggedProperties")});var wI=f(yi=>{"use strict";yi.__esModule=!0;yi.HandlebarsEnvironment=Wk;function l6(t){return t&&t.__esModule?t:{default:t}}o(l6,"_interopRequireDefault");var Nc=Er(),eke=hs(),$k=l6(eke),tke=Hk(),rke=i6(),ske=Vk(),BI=l6(ske),nke=Yk(),ike="4.7.9";yi.VERSION=ike;var oke=8;yi.COMPILER_REVISION=oke;var ake=7;yi.LAST_COMPATIBLE_COMPILER_REVISION=ake;var cke={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"};yi.REVISION_CHANGES=cke;var Jk="[object Object]";function Wk(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},tke.registerDefaultHelpers(this),rke.registerDefaultDecorators(this)}o(Wk,"HandlebarsEnvironment");Wk.prototype={constructor:Wk,logger:BI.default,log:BI.default.log,registerHelper:o(function(e,r){if(Nc.toString.call(e)===Jk){if(r)throw new $k.default("Arg not supported with multiple helpers");Nc.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(Nc.toString.call(e)===Jk)Nc.extend(this.partials,e);else{if(typeof r>"u")throw new $k.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(Nc.toString.call(e)===Jk){if(r)throw new $k.default("Arg not supported with multiple decorators");Nc.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){nke.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var lke=BI.default.log;yi.log=lke;yi.createFrame=Nc.createFrame;yi.logger=BI.default});var A6=f((bI,u6)=>{"use strict";bI.__esModule=!0;function jk(t){this.string=t}o(jk,"SafeString");jk.prototype.toString=jk.prototype.toHTML=function(){return""+this.string};bI.default=jk;u6.exports=bI.default});var d6=f(Kk=>{"use strict";Kk.__esModule=!0;Kk.wrapHelper=uke;function uke(t,e){if(typeof t!="function")return t;var r=o(function(){var n=arguments[arguments.length-1];return arguments[arguments.length-1]=e(n),t.apply(this,arguments)},"wrapper");return r}o(uke,"wrapHelper")});var E6=f(ia=>{"use strict";ia.__esModule=!0;ia.checkRevision=fke;ia.template=gke;ia.wrapProgram=QI;ia.resolvePartial=Eke;ia.invokePartial=yke;ia.noop=f6;function Ake(t){return t&&t.__esModule?t:{default:t}}o(Ake,"_interopRequireDefault");function dke(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(dke,"_interopRequireWildcard");var pke=Er(),Wu=dke(pke),mke=hs(),no=Ake(mke),io=wI(),p6=Hk(),hke=d6(),m6=Yk();function fke(t){var e=t&&t[0]||1,r=io.COMPILER_REVISION;if(!(e>=io.LAST_COMPATIBLE_COMPILER_REVISION&&e<=io.COMPILER_REVISION))if(e<io.LAST_COMPATIBLE_COMPILER_REVISION){var s=io.REVISION_CHANGES[r],n=io.REVISION_CHANGES[e];throw new no.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+s+") or downgrade your runtime to an older version ("+n+").")}else throw new no.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(fke,"checkRevision");function gke(t,e){if(!e)throw new no.default("No environment passed to template");if(!t||!t.main)throw new no.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function s(a,c,l){l.hash&&(c=Wu.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 u=e.VM.invokePartial.call(this,a,c,l);if(u==null&&e.compile&&(l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)),u!=null){if(l.indent){for(var A=u.split(`
`),d=0,p=A.length;d<p&&!(!A[d]&&d+1===p);d++)A[d]=l.indent+A[d];u=A.join(`
`)}return u}else throw new no.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new no.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||m6.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Wu.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=QI(this,c,m,l,u,A,d):p||(p=this.programs[c]=QI(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Wu.extend({},l,c)),u},"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=gke(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=g6(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};h6(c,e.helpers,n),h6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Wu.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=m6.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;p6.moveHelperToHooks(n,"helperMissing",l),p6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new no.default("must pass block params");if(t.useDepths&&!u)throw new no.default("must pass parent depths");return QI(n,a,t[a],c,0,l,u)},i}o(mke,"template");function QI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=g6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(QI,"wrapProgram");function hke(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=xI(r.partials,t)):r.name==="@partial-block"?t=xI(r.data,"partial-block"):t=xI(r.partials,r.name),t}o(hke,"resolvePartial");function fke(t,e,r){var s=xI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==f6&&(function(){r.data=io.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=io.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Wu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new no.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(fke,"invokePartial");function f6(){return""}o(f6,"noop");function xI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(xI,"lookupOwnProperty");function gke(t,e){return(!e||!("root"in e))&&(e=e?io.createFrame(e):{},e.root=t),e}o(gke,"initData");function g6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Wu.extend(e,a)}return e}o(g6,"executeDecorators");function h6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Eke(n,r)})}o(h6,"addHelpers");function Eke(t,e){var r=e.lookupProperty;return dke.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Eke,"passLookupPropertyOption")});var Kk=f((NI,y6)=>{"use strict";NI.__esModule=!0;NI.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}};y6.exports=NI.default});var b6=f((SI,w6)=>{"use strict";SI.__esModule=!0;function Zk(t){return t&&t.__esModule?t:{default:t}}o(Zk,"_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 yke=wI(),C6=eD(yke),Cke=A6(),Ike=Zk(Cke),Bke=hs(),wke=Zk(Bke),bke=Er(),Xk=eD(bke),Qke=E6(),I6=eD(Qke),xke=Kk() Line truncated
`)}return u}else throw new no.default("The partial "+l.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,l,u){if(!c||!(l in c))throw new no.default('"'+l+'" not defined in '+c,{loc:u});return n.lookupProperty(c,l)},"strict"),lookupProperty:o(function(c,l){var u=c[l];if(u==null||Object.prototype.hasOwnProperty.call(c,l)||m6.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,A=0;A<u;A++){var d=c[A]&&n.lookupProperty(c[A],l);if(d!=null)return d}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Wu.escapeExpression,invokePartial:s,fn:o(function(c){var l=t[c];return l.decorator=t[c+"_d"],l},"fn"),programs:[],program:o(function(c,l,u,A,d){var p=this.programs[c],m=this.fn(c);return l||d||A||u?p=QI(this,c,m,l,u,A,d):p||(p=this.programs[c]=QI(this,c,m)),p},"program"),data:o(function(c,l){for(;c&&l--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,l){var u=c||l;return c&&l&&c!==l&&(u=Wu.extend({},l,c)),u},"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=Cke(a,l));var u=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?u=a!=c.depths[0]?[a].concat(c.depths):c.depths:u=[a]);function d(p){return""+t.main(n,p,n.helpers,n.partials,l,A,u)}return o(d,"main"),d=g6(t.main,d,n,c.depths||[],l,A),d(a,c)}return o(i,"ret"),i.isTop=!0,i._setup=function(a){if(a.partial)n.protoAccessControl=a.protoAccessControl,n.helpers=a.helpers,n.partials=a.partials,n.decorators=a.decorators,n.hooks=a.hooks;else{var c={};h6(c,e.helpers,n),h6(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Wu.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=m6.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;p6.moveHelperToHooks(n,"helperMissing",l),p6.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new no.default("must pass block params");if(t.useDepths&&!u)throw new no.default("must pass parent depths");return QI(n,a,t[a],c,0,l,u)},i}o(gke,"template");function QI(t,e,r,s,n,i,a){function c(l){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&l!=a[0]&&!(l===t.nullContext&&a[0]===null)&&(A=[l].concat(a)),r(t,l,t.helpers,t.partials,u.data||s,i&&[u.blockParams].concat(i),A)}return o(c,"prog"),c=g6(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(QI,"wrapProgram");function Eke(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=xI(r.partials,t)):r.name==="@partial-block"?t=xI(r.data,"partial-block"):t=xI(r.partials,r.name),t}o(Eke,"resolvePartial");function yke(t,e,r){var s=xI(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var n=void 0;if(r.fn&&r.fn!==f6&&(function(){r.data=io.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var l=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return l.data=io.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Wu.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new no.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(yke,"invokePartial");function f6(){return""}o(f6,"noop");function xI(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(xI,"lookupOwnProperty");function Cke(t,e){return(!e||!("root"in e))&&(e=e?io.createFrame(e):{},e.root=t),e}o(Cke,"initData");function g6(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Wu.extend(e,a)}return e}o(g6,"executeDecorators");function h6(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Ike(n,r)})}o(h6,"addHelpers");function Ike(t,e){var r=e.lookupProperty;return hke.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Ike,"passLookupPropertyOption")});var Xk=f((NI,y6)=>{"use strict";NI.__esModule=!0;NI.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}};y6.exports=NI.default});var b6=f((SI,w6)=>{"use strict";SI.__esModule=!0;function eD(t){return t&&t.__esModule?t:{default:t}}o(eD,"_interopRequireDefault");function tD(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(tD,"_interopRequireWildcard");var Bke=wI(),C6=tD(Bke),wke=A6(),bke=eD(wke),Qke=hs(),xke=eD(Qke),Nke=Er(),Zk=tD(Nke),Ske=E6(),I6=tD(Ske),Rke=Xk() Line truncated
`+this.lexer.showPosition()+`
Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":tr="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(tr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:se})}}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(U[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(U[1]),B=null,N?(B=N,N=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(Ae=this.productions_[U[1]][1],Qe.$=c[c.length-Ae],Qe._$={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},E&&(Qe._$.range=[l[l.length-(Ae||1)].range[0],l[l.length-1].range[1]]),Se=this.performAction.call(Qe,A,p,d,this.yy,U[1],c,l),typeof Se<"u")return Se;Ae&&(a=a.slice(0,-1*Ae*2),c=c.slice(0,-1*Ae),l=l.slice(0,-1*Ae)),a.push(this.productions_[U[1]][0]),c.push(Qe.$),l.push(Qe._$),_e=u[a[a.length-2]][a[a.length-1]],a.push(_e);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={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 u=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=[u[0],u[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 `+ne.join(", ")+", got '"+(this.terminals_[B]||B)+"'":tr="Parse error on line "+(d+1)+": Unexpected "+(B==1?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(tr,{text:this.lexer.match,token:this.terminals_[B]||B,line:this.lexer.yylineno,loc:C,expected:ne})}}if(U[0]instanceof Array&&U.length>1)throw new Error("Parse Error: multiple actions possible at state: "+S+", token: "+B);switch(U[0]){case 1:a.push(B),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(U[1]),B=null,x?(B=x,x=null):(p=this.lexer.yyleng,A=this.lexer.yytext,d=this.lexer.yylineno,C=this.lexer.yylloc,m>0&&m--);break;case 2:if(re=this.productions_[U[1]][1],Be.$=c[c.length-re],Be._$={first_line:l[l.length-(re||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(re||1)].first_column,last_column:l[l.length-1].last_column},E&&(Be._$.range=[l[l.length-(re||1)].range[0],l[l.length-1].range[1]]),Ie=this.performAction.call(Be,A,p,d,this.yy,U[1],c,l),typeof Ie<"u")return Ie;re&&(a=a.slice(0,-1*re*2),c=c.slice(0,-1*re),l=l.slice(0,-1*re)),a.push(this.productions_[U[1]][0]),c.push(Be.$),l.push(Be._$),_e=u[a[a.length-2]][a[a.length-1]],a.push(_e);break;case 3:return!0}}return!0},"parse")},e=(function(){var s={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 u=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=[u[0],u[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,u,A;this._more||(this.yytext="",this.match="");for(var d=this._currentRules(),p=0;p<d.length&&(c=this._input.match(this.rules[d[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],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 s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(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:(u(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=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(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"),s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();TI.default=Ske;N6.exports=TI.default});var DI=f((kI,v6)=>{"use strict";kI.__esModule=!0;function Rke(t){return t&&t.__esModule?t:{default:t}}o(Rke,"_interopRequireDefault");var Tke=hs(),rD=Rke(Tke);function vI(){this.parents=[]}o(vI,"Visitor");vI.prototype={constructor:vI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!vI.prototype[s.type])throw new rD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new rD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new rD.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:PI,Decorator:PI,BlockStatement:R6,DecoratorBlock:R6,PartialStatement:T6,PartialBlockStatement:o(function(e){T6.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:PI,PathExpression:o(function(){},"PathExpression"),StrLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new vc(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 vc?e:(e=bD(e,this,r),new vc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"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,s=[];Object.keys(e).forEach(function(i){var a=bD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(bD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};GI.default=dK;pK.exports=GI.default});var yK=f((HI,EK)=>{"use strict";HI.__esModule=!0;function gK(t){return t&&t.__esModule?t:{default:t}}o(gK,"_interopRequireDefault");var hK=wI(),NDe=hs(),xD=gK(NDe),SDe=Er(),RDe=mK(),fK=gK(RDe);function tA(t){this.value=t}o(tA,"Literal");function rA(){}o(rA,"JavaScriptCompiler");rA.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=hK.COMPILER_REVISION,r=hK.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return SDe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{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,u=void 0;for(l=0,u=i.length;l<u;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 xD.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 s.options={},s.performAction=o(function(i,a,c,l){function u(d,p){return a.yytext=a.yytext.substring(d,a.yyleng-p+d)}o(u,"strip");var A=l;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(u(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(u(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:(u(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=u(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=u(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"),s.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\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],s.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}},s})();t.lexer=e;function r(){this.yy={}}return o(r,"Parser"),r.prototype=t,t.Parser=r,new r})();TI.default=vke;N6.exports=TI.default});var DI=f((kI,v6)=>{"use strict";kI.__esModule=!0;function Pke(t){return t&&t.__esModule?t:{default:t}}o(Pke,"_interopRequireDefault");var kke=hs(),sD=Pke(kke);function vI(){this.parents=[]}o(vI,"Visitor");vI.prototype={constructor:vI,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!vI.prototype[s.type])throw new sD.default('Unexpected node type "'+s.type+'" found when accepting '+r+" on "+e.type);e[r]=s}},"acceptKey"),acceptRequired:o(function(e,r){if(this.acceptKey(e,r),!e[r])throw new sD.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:o(function(e){for(var r=0,s=e.length;r<s;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,s--)},"acceptArray"),accept:o(function(e){if(e){if(!this[e.type])throw new sD.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:PI,Decorator:PI,BlockStatement:R6,DecoratorBlock:R6,PartialStatement:T6,PartialBlockStatement:o(function(e){T6.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:PI,PathExpression:o(function(){},"PathExpression"),StrLine truncated
`])}),e},"merge"),each:o(function(e){for(var r=0,s=this.source.length;r<s;r++)e(this.source[r])},"each"),empty:o(function(){var e=this.currentLocation||{start:{}};return new vc(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 vc?e:(e=QD(e,this,r),new vc(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:o(function(e,r,s){return s=this.generateList(s),this.wrap([e,r?"."+r+"(":"(",s,")"])},"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,s=[];Object.keys(e).forEach(function(i){var a=QD(e[i],r);a!=="undefined"&&s.push([r.quotedString(i),":",a])});var n=this.generateList(s);return n.prepend("{"),n.add("}"),n},"objectLiteral"),generateList:o(function(e){for(var r=this.empty(),s=0,n=e.length;s<n;s++)s&&r.add(","),r.add(QD(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};GI.default=dK;pK.exports=GI.default});var yK=f((HI,EK)=>{"use strict";HI.__esModule=!0;function gK(t){return t&&t.__esModule?t:{default:t}}o(gK,"_interopRequireDefault");var hK=wI(),TDe=hs(),ND=gK(TDe),vDe=Er(),PDe=mK(),fK=gK(PDe);function tA(t){this.value=t}o(tA,"Literal");function rA(){}o(rA,"JavaScriptCompiler");rA.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=hK.COMPILER_REVISION,r=hK.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return vDe.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:s?["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,s,n){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!n,this.name=this.environment.name,this.isChild=!!s,this.context=s||{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,u=void 0;for(l=0,u=i.length;l<u;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 ND.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;"),n?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 A=this.createFunctionContext(n);if(this.isChild)return A;var d={compiler:this.compilerInfo(),main:A};this.decorators&&(d.main_d=this.decorators,d.useDecorators=!0);var p=this.context,m=p.programs,h=p.decorators;for(l=0,u=m.length;l<u;l++)d[l]=m[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),n?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 fK.default(this.options.srcName),this.decorators=new fK.default(this.options.srcName)},"preamble"),createFunctionContext:o(function(e){var r=this,s="",n=this.stackVars.concat(this.registers.list);n.length>0&&(s+=", "+n.join(", "));var i=0;Object.keys(this.aliases).forEach(function(l){var u=r.aliases[l];u.children&&u.referenceCount>1&&(s+=", alias"+ ++i+"="+l,u.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+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(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
@@ -86,52 +86,52 @@ Expecting `+se.join(", ")+", got '"+(this.terminals_[B]||B)+"'":tr="Parse error
}
return undefined
}
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"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,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(TDe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),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",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var NK=f((uut,xK)=>{var YI=BK().default,QK=wK();YI.PrintVisitor=QK.PrintVisitor;YI.print=QK.print;xK.exports=YI;function bK(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=YI.compile(s)}o(bK,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=bK,require.extensions[".hbs"]=bK)});var qK=f(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.getProxyUrl=WDe;KI.checkBypass=UK;function WDe(t){let e=t.protocol==="https:";if(UK(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 jI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jI(`http://${r}`)}else return}o(WDe,"getProxyUrl");function UK(t){if(!t.hostname)return!1;let e=t.hostname;if(jDe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(UK,"checkBypass");function jDe(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(jDe,"isLoopbackAddress");var jI=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 HK=f(je=>{"use strict";var KDe=je&&je.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),XDe=je&&je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tB=je&&je.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&KDe(r,e,s[n]);return XDe(r,e),r}})(),gt=je&&je._ Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:o(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),s=[this.contextName(0)];this.setupHelperArgs(e,0,s);var n=this.popStack();s.splice(1,0,n),this.push(this.source.functionCall(r,"call",s))},"blockValue"),ambiguousBlockValue:o(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var s=this.topStack();r.splice(1,0,s),this.pushSource(["if (!",this.lastHelper,") { ",s," = ",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,s,n){var i=0;!n&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[i++])):this.pushContext(),this.resolvePath("context",e,i,r,s)},"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,s){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,s)},"lookupData"),resolvePath:o(function(e,r,s,n,i){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(kDe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(A){a.replaceStack(function(d){var p=a.nameLookup(d,r[A],e);return n?[" && ",p]:[" != null ? ",p," : ",d]})},"_loop"),u=s;u<c;u++)l(u)},"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 s=this.nameLookup("decorators",r,"decorator"),n=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",s,";"]),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",n])," || fn;"])},"registerDecorator"),invokeHelper:o(function(e,r,s){var n=this.popStack(),i=this.setupHelper(e,r),a=[];s&&a.push(i.name),a.push(n),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 s=[];s.push(e[0]);for(var n=1;n<e.length;n++)s.push(r,e[n]);return s},"itemsSeparatedBy"),invokeKnownHelper:o(function(e,r){var s=this.setupHelper(e,r);this.push(this.source.functionCall(s.name,"call",s.callParams))},"invokeKnownHelper"),invokeAmbiguous:o(function(e,r){this.useRegister("helper");var s=this.popStack();this.emptyHash();var n=this.setupHelper(0,e,r),i=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",i," || ",s,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,n.paramsInit?["),(",n.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};ct.prototype.Program=function(t){var e="",r=t.body,s=void 0,n=void 0;if(t.blockParams){var i="BLOCK PARAMS: [";for(s=0,n=t.blockParams.length;s<n;s++)i+=" "+t.blockParams[s];i+=" ]",e+=this.pad(i)}for(s=0,n=r.length;s<n;s++)e+=this.accept(r[s]);return this.padding--,e};ct.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};ct.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};ct.prototype.BlockStatement=ct.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};ct.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+" }}")};ct.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+" }}")};ct.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};ct.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};ct.prototype.SubExpression=function(t){for(var e=t.params,r=[],s=void 0,n=0,i=e.length;n<i;n++)r.push(this.accept(e[n]));return e="["+r.join(", ")+"]",s=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+s};ct.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};ct.prototype.StringLiteral=function(t){return'"'+t.value+'"'};ct.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};ct.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};ct.prototype.UndefinedLiteral=function(){return"UNDEFINED"};ct.prototype.NullLiteral=function(){return"NULL"};ct.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};ct.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var NK=f((put,xK)=>{var YI=BK().default,QK=wK();YI.PrintVisitor=QK.PrintVisitor;YI.print=QK.print;xK.exports=YI;function bK(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=YI.compile(s)}o(bK,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=bK,require.extensions[".hbs"]=bK)});var qK=f(KI=>{"use strict";Object.defineProperty(KI,"__esModule",{value:!0});KI.getProxyUrl=XDe;KI.checkBypass=UK;function XDe(t){let e=t.protocol==="https:";if(UK(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 jI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jI(`http://${r}`)}else return}o(XDe,"getProxyUrl");function UK(t){if(!t.hostname)return!1;let e=t.hostname;if(ZDe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(UK,"checkBypass");function ZDe(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(ZDe,"isLoopbackAddress");var jI=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 HK=f(je=>{"use strict";var e_e=je&&je.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:o(function(){return e[r]},"get")}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),t_e=je&&je.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tB=je&&je.__importStar||(function(){var t=o(function(e){return t=Object.getOwnPropertyNames||function(r){var s=[];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(s[s.length]=n);return s},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var s=t(e),n=0;n<s.length;n++)s[n]!=="default"&&e_e(r,e,s[n]);return t_e(r,e),r}})(),gt=je&&je._ Line truncated
`),e=e.replace(/\r/g,`
`));let n=e.split(`
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Pd(i));return s.searchPaths.push(...Dx(s.patterns)),s})}static stat(e,r,s){return qx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield zl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){xs(`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 n=yield zl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield zl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){xs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var Ihe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Fz(t,e){return Ihe(this,void 0,void 0,function*(){return yield ag.create(t,e)})}o(Fz,"create");var bg=w(require("crypto"),1),Jl=w(require("fs"),1),za=w(require("path"),1),vY=w(RY(),1),PY=w(require("util"),1);var Od;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Od||(Od={}));var Ar;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ar||(Ar={}));var ts;(function(t){t.GNU="gnu",t.BSD="bsd"})(ts||(ts={}));var Ig=2,Bg=5e3,c0=5e3,l0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,TY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ud="cache.tar",u0="manifest.txt",mze=10*Math.pow(1024,3),wg="cache read denied:";var $l=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},SEe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},REe="1.0";function qd(){return $l(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=za.join(s,"actions","temp")}let r=za.join(e,bg.randomUUID());return yield Fa(r),r})}o(qd,"createTempDirectory");function Ln(t){return Jl.statSync(t).size}o(Ln,"getArchiveFileSizeInBytes");function A0(t){return $l(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield Fz(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=SEe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=za.relative(c,n).replace(new RegExp(`\\${za.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(A0,"resolvePaths");function Gd(t){return $l(this,void 0,void 0,function*(){return PY.promisify(Jl.unlink)(t)})}o(Gd,"unlinkFile");function kY(t){return $l(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Po(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(kY,"getVersion");function Hd(){return $l(this,void 0,void 0,function*(){let t=yield kY("zstd",["--quiet"]),e=vY.clean(t);return b(`zstd version: ${e}`),t===""?Ar.Gzip:Ar.ZstdWithoutLong})}o(Hd,"getCompressionMethod");function Uo(t){return t===Ar.Gzip?Od.Gzip:Od.Zstd}o(Uo,"getCacheFileName");function DY(){return $l(this,void 0,void 0,function*(){return Jl.existsSync(l0)?l0:(yield kY("tar")).toLowerCase().includes("gnu tar")?Nr("tar"):""})}o(DY,"getGnuTarPathOnWindows");function d0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(d0,"assertDefined");function Wl(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(REe),bg.createHash("sha256").update(s.join("|")).digest("hex")}o(Wl,"getCacheVersion");function _Y(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(_Y,"getRuntimeToken");var Vd=w(require("http"),1),h0=w(require("https"),1);function p0(t){let e=t.protocol==="https:";if(TEe(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 xg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xg(`http://${r}`)}else return}o(p0,"getProxyUrl");function TEe(t){if(!t.hostname)return!1;let e=t.hostname;if(vEe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(TEe,"checkBypass");function vEe(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(vEe,"isLoopbackAddress");var xg=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 qo=w(AA(),1),LY=w(kl(),1);var At=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},et;(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"})(et||(et={}));var dr;(function(t){t.Accept="accept",t.ContentType="content-type"})(dr||(dr={}));var Oi;(function(t){t.ApplicationJson="application/json"})(Oi||(Oi={}));var kEe=[et.MovedPermanently,et.ResourceMoved,et.SeeOther,et.TemporaryRedirect,et.PermanentRedirect],DEe=[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout],_Ee=["OPTIONS","GET","DELETE","HEAD"],LEe=10,MEe=5,Mn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${YEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Pg(t){return t instanceof pr?!0:Ya(t)&&t.name==="RestError"}o(Pg,"isRestError");function Rr(t,e){return Buffer.from(t,e)}o(Rr,"stringToUint8Array");var kg=w(require("node:http"),1),Dg=w(require("node:https"),1),Q0=w(require("node:zlib"),1),e$=require("node:stream");var Rs=Yd("ts-http-runtime");var $Ee={};function $d(t){return t&&typeof t.pipe=="function"}o($d,"isReadableStream");function ZY(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(ZY,"isStreamComplete");function t$(t){return t&&typeof t.byteLength=="number"}o(t$,"isArrayBuffer");var _g=class extends e$.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},x0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ln;Rs.info(`request to '${u.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 u=KEe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new _g(h);g.on("error",C=>{Rs.error("Error in upload progress",C)}),$d(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=JEe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?WEe(u,A):u;let m=e.onDownloadProgress;if(m){let h=new _g(m);h.on("error",g=>{Rs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await jEe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();$d(c)&&(u=ZY(c));let A=Promise.resolve();$d(l)&&(A=ZY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Rs.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.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:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?kg.default.request(c,l):Dg.default.request(c,l);A.once("error",d=>{u(new pr(d.message,{code:d.code??pr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Fn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&$d(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):t$(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Rs.error("Unrecognized body type",s),u(new pr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?kg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new kg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Dg.default.globalAgent;let n=e.tlsSettings??$Ee,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Rs.info("No cached TLS Agent exist, creating a new Agent"),i=new Dg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function JEe(t){let e=rs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(JEe,"getResponseHeaders");function WEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Q0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Q0.default.createInflate();return t.pipe(s),s}return t}o(WEe,"getDecodedResponseStream");function jEe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new pr(`Error reading response as text: ${n.message}`,{code:pr.PARSE_ERROR}))})})}o(jEe,"streamToText");function KEe(t){return t?Buffer.isBuffer(t)?t.length:$d(t)?nul Line truncated
`;return e}o(SCe,"encodeHeaders");function RCe(t){return t instanceof Uint8Array?t.byteLength:iE(t)?t.size===-1?void 0:t.size:void 0}o(RCe,"getLength");function TCe(t){let e=0;for(let r of t){let s=RCe(r);if(s===void 0)return;e+=s}return e}o(TCe,"getTotalLength");async function vCe(t,e,r){let s=[Rr(`--${r}`,"utf-8"),...e.flatMap(i=>[Rr(`\r
`,"utf-8"),Rr(SCe(i.headers),"utf-8"),Rr(`\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Pd(i));return s.searchPaths.push(...Dx(s.patterns)),s})}static stat(e,r,s){return Gx(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield zl.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){xs(`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 n=yield zl.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield zl.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){xs(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var bhe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Fz(t,e){return bhe(this,void 0,void 0,function*(){return yield ag.create(t,e)})}o(Fz,"create");var bg=w(require("crypto"),1),Jl=w(require("fs"),1),za=w(require("path"),1),vY=w(RY(),1),PY=w(require("util"),1);var Od;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Od||(Od={}));var Ar;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ar||(Ar={}));var ts;(function(t){t.GNU="gnu",t.BSD="bsd"})(ts||(ts={}));var Ig=2,Bg=5e3,l0=5e3,u0=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,TY=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ud="cache.tar",A0="manifest.txt",gze=10*Math.pow(1024,3),wg="cache read denied:";var $l=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},vEe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r);function s(i){r[i]=t[i]&&function(a){return new Promise(function(c,l){a=t[i](a),n(c,l,a.done,a.value)})}}function n(i,a,c,l){Promise.resolve(l).then(function(u){i({value:u,done:c})},a)}},PEe="1.0";function qd(){return $l(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let s;t?s=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?s="/Users":s="/home",e=za.join(s,"actions","temp")}let r=za.join(e,bg.randomUUID());return yield Fa(r),r})}o(qd,"createTempDirectory");function Ln(t){return Jl.statSync(t).size}o(Ln,"getArchiveFileSizeInBytes");function d0(t){return $l(this,void 0,void 0,function*(){var e,r,s,n,i;let a=[],c=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),l=yield Fz(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,A=vEe(l.globGenerator()),d;d=yield A.next(),e=d.done,!e;u=!0){n=d.value,u=!1;let m=za.relative(c,n).replace(new RegExp(`\\${za.sep}`,"g"),"/");b(`Matched: ${m}`),m===""?a.push("."):a.push(`${m}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=A.return)&&(yield s.call(A))}finally{if(r)throw r.error}}return a})}o(d0,"resolvePaths");function Gd(t){return $l(this,void 0,void 0,function*(){return PY.promisify(Jl.unlink)(t)})}o(Gd,"unlinkFile");function kY(t){return $l(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),b(`Checking ${e} ${r.join(" ")}`);try{yield Po(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){b(n.message)}return s=s.trim(),b(s),s})}o(kY,"getVersion");function Hd(){return $l(this,void 0,void 0,function*(){let t=yield kY("zstd",["--quiet"]),e=vY.clean(t);return b(`zstd version: ${e}`),t===""?Ar.Gzip:Ar.ZstdWithoutLong})}o(Hd,"getCompressionMethod");function Uo(t){return t===Ar.Gzip?Od.Gzip:Od.Zstd}o(Uo,"getCacheFileName");function DY(){return $l(this,void 0,void 0,function*(){return Jl.existsSync(u0)?u0:(yield kY("tar")).toLowerCase().includes("gnu tar")?Nr("tar"):""})}o(DY,"getGnuTarPathOnWindows");function p0(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(p0,"assertDefined");function Wl(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(PEe),bg.createHash("sha256").update(s.join("|")).digest("hex")}o(Wl,"getCacheVersion");function _Y(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(_Y,"getRuntimeToken");var Vd=w(require("http"),1),f0=w(require("https"),1);function m0(t){let e=t.protocol==="https:";if(kEe(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 xg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new xg(`http://${r}`)}else return}o(m0,"getProxyUrl");function kEe(t){if(!t.hostname)return!1;let e=t.hostname;if(DEe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let s;t.port?s=Number(t.port):t.protocol==="http:"?s=80:t.protocol==="https:"&&(s=443);let n=[t.hostname.toUpperCase()];typeof s=="number"&&n.push(`${n[0]}:${s}`);for(let i of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(i==="*"||n.some(a=>a===i||a.endsWith(`.${i}`)||i.startsWith(".")&&a.endsWith(`${i}`)))return!0;return!1}o(kEe,"checkBypass");function DEe(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(DEe,"isLoopbackAddress");var xg=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 qo=w(AA(),1),LY=w(kl(),1);var At=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},et;(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"})(et||(et={}));var dr;(function(t){t.Accept="accept",t.ContentType="content-type"})(dr||(dr={}));var Oi;(function(t){t.ApplicationJson="application/json"})(Oi||(Oi={}));var LEe=[et.MovedPermanently,et.ResourceMoved,et.SeeOther,et.TemporaryRedirect,et.PermanentRedirect],MEe=[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout],FEe=["OPTIONS","GET","DELETE","HEAD"],OEe=10,UEe=5,Mn=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${WEe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Pg(t){return t instanceof pr?!0:Ya(t)&&t.name==="RestError"}o(Pg,"isRestError");function Rr(t,e){return Buffer.from(t,e)}o(Rr,"stringToUint8Array");var kg=w(require("node:http"),1),Dg=w(require("node:https"),1),x0=w(require("node:zlib"),1),e$=require("node:stream");var Rs=Yd("ts-http-runtime");var jEe={};function $d(t){return t&&typeof t.pipe=="function"}o($d,"isReadableStream");function ZY(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(ZY,"isStreamComplete");function t$(t){return t&&typeof t.byteLength=="number"}o(t$,"isArrayBuffer");var _g=class extends e$.Transform{static{o(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,s){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),s()}catch(n){s(n)}}constructor(e){super(),this.progressCallback=e}},N0=class{static{o(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,s;if(e.abortSignal){if(e.abortSignal.aborted)throw new Fn("The operation was aborted. Request has already been canceled.");s=o(u=>{u.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let u=new ln;Rs.info(`request to '${u.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 u=eye(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let h=e.onUploadProgress,g=new _g(h);g.on("error",C=>{Rs.error("Error in upload progress",C)}),$d(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let A=KEe(u),p={status:u.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?XEe(u,A):u;let m=e.onDownloadProgress;if(m){let h=new _g(m);h.on("error",g=>{Rs.error("Error in download progress",g)}),l.pipe(h),l=h}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await ZEe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();$d(c)&&(u=ZY(c));let A=Promise.resolve();$d(l)&&(A=ZY(l)),Promise.all([u,A]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(d=>{Rs.warning("Error when cleaning up abortListener on httpRequest",d)})}}}makeRequest(e,r,s){let n=new URL(e.url),i=n.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:n.hostname,path:`${n.pathname}${n.search}`,port:n.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((l,u)=>{let A=i?kg.default.request(c,l):Dg.default.request(c,l);A.once("error",d=>{u(new pr(d.message,{code:d.code??pr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let d=new Fn("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(d),u(d)}),s&&$d(s)?s.pipe(A):s?typeof s=="string"||Buffer.isBuffer(s)?A.end(s):t$(s)?A.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Rs.error("Unrecognized body type",s),u(new pr("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?kg.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new kg.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return Dg.default.globalAgent;let n=e.tlsSettings??jEe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Rs.info("No cached TLS Agent exist, creating a new Agent"),i=new Dg.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function KEe(t){let e=rs();for(let r of Object.keys(t.headers)){let s=t.headers[r];Array.isArray(s)?s.length>0&&e.set(r,s[0]):s&&e.set(r,s)}return e}o(KEe,"getResponseHeaders");function XEe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=x0.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=x0.default.createInflate();return t.pipe(s),s}return t}o(XEe,"getDecodedResponseStream");function ZEe(t){return new Promise((e,r)=>{let s=[];t.on("data",n=>{Buffer.isBuffer(n)?s.push(n):s.push(Buffer.from(n))}),t.on("end",()=>{e(Buffer.concat(s).toString("utf8"))}),t.on("error",n=>{n&&n?.name==="AbortError"?r(n):r(new pr(`Error reading response as text: ${n.message}`,{code:pr.PARSE_ERROR}))})})}o(ZEe,"streamToText");function eye(t){return t?Buffer.isBuffer(t)?t.length:$d(t)?nul Line truncated
`;return e}o(vCe,"encodeHeaders");function PCe(t){return t instanceof Uint8Array?t.byteLength:iE(t)?t.size===-1?void 0:t.size:void 0}o(PCe,"getLength");function kCe(t){let e=0;for(let r of t){let s=PCe(r);if(s===void 0)return;e+=s}return e}o(kCe,"getTotalLength");async function DCe(t,e,r){let s=[Rr(`--${r}`,"utf-8"),...e.flatMap(i=>[Rr(`\r
`,"utf-8"),Rr(vCe(i.headers),"utf-8"),Rr(`\r
`,"utf-8"),i.body,Rr(`\r
--${r}`,"utf-8")]),Rr(`--\r
\r
`,"utf-8")],n=TCe(s);n&&t.headers.set("Content-Length",n),t.body=await oJ(s)}o(vCe,"buildRequestBody");var jd="multipartPolicy",PCe=70,kCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function DCe(t){if(t.length>PCe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!kCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(DCe,"assertValidBoundary");function aE(){return{name:jd,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;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?DCe(r):r=NCe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await vCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(aE,"multipartPolicy");function cE(){return vg()}o(cE,"createEmptyPipeline");var aJ=Sg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),d3e=aJ.logger;function qn(t){return aJ.createClientLogger(t)}o(qn,"createClientLogger");var Gn=qn("core-rest-pipeline");function z0(t={}){return Mg({logger:Gn.info,...t})}o(z0,"logPolicy");var V0=Fg;function Y0(t={}){return Og(t)}o(Y0,"redirectPolicy");var lE=w(require("node:os"),1),uE=w(require("node:process"),1);function cJ(){return"User-Agent"}o(cJ,"getHeaderName");async function lJ(t){if(uE.default&&uE.default.versions){let e=`${lE.default.type()} ${lE.default.release()}; ${lE.default.arch()}`,r=uE.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(lJ,"setPlatformSpecificData");var AE="1.22.2";function GCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(GCe,"getUserAgentString");function uJ(){return cJ()}o(uJ,"getUserAgentHeaderName");async function dE(t){let e=new Map;e.set("core-rest-pipeline",AE),await lJ(e);let r=GCe(e);return t?`${t} ${r}`:r}o(dE,"getUserAgentValue");var AJ=uJ(),dJ="userAgentPolicy";function $0(t={}){let e=dE(t.userAgentPrefix);return{name:dJ,async sendRequest(r,s){return r.headers.has(AJ)||r.headers.set(AJ,await e),s(r)}}}o($0,"userAgentPolicy");var os=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function J0(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new os(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(J0,"createAbortablePromise");var $Ce="The delay was aborted.";function Kd(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return J0(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??$Ce})}o(Kd,"delay");function Ho(t){if(Ya(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(Ho,"getErrorMessage");function pJ(t){return Ya(t)}o(pJ,"isError");function nu(){return Va()}o(nu,"randomUUID");var we=Wa;var mJ=Symbol("rawContent");function j0(t){return typeof t[mJ]=="function"}o(j0,"hasRawContent");function hJ(t){return j0(t)?t[mJ]():t}o(hJ,"getRawContent");var pE=jd;function K0(){let t=aE();return{name:pE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)j0(s.body)&&(s.body=hJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(K0,"multipartPolicy");var X0=Ug;function Z0(){return qg()}o(Z0,"decompressResponsePolicy");function eN(t={}){return zg(t)}o(eN,"defaultRetryPolicy");function tN(){return Vg()}o(tN,"formDataPolicy");function zo(t){return O0(t)}o(zo,"getDefaultProxySettings");function rN(t,e){return rE(t,e)}o(rN,"proxyPolicy");var fJ="setClientRequestIdPolicy";function sN(t="x-ms-client-request-id"){return{name:fJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(sN,"setClientRequestIdPolicy");function nN(t){return sE(t)}o(nN,"agentPolicy");function iN(t){return nE(t)}o(iN,"tlsPolicy");var iu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function gJ(t={}){let e=new oN(t.parentContext);return t.span&&(e=e.setValue(iu.span,t.span)),t.namespace&&(e=e.setValue(iu.namespace,t.namespace)),e}o(gJ,"createTracingContext");var oN=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--),!gBe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",dt("InvalidTag",d,mr(t,i))}let u=dBe(t,i);if(u===!1)return dt("InvalidAttr","Attributes for '"+l+"' have open quote.",mr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=e3(A,e);if(p===!0)s=!0;else return dt(p.err.code,p.err.msg,mr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return dt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",mr(t,a));if(r.length===0)return dt("InvalidTag","Closing tag '"+l+"' has not been opened.",mr(t,a));{let d=r.pop();if(l!==d.tagName){let p=mr(t,d.tagStartPos);return dt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",mr(t,a))}r.length==0&&(n=!0)}}else return dt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",mr(t,i));else{let d=e3(A,e);if(d!==!0)return dt(d.err.code,d.err.msg,mr(t,i-A.length+d.err.line));if(n===!0)return dt("InvalidXml","Multiple possible root nodes found.",mr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=ZJ(t,i);continue}else if(t[i+1]==="?"){if(i=XJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=hBe(t,i);if(d==-1)return dt("InvalidChar","char '&' is not expected.",mr(t,i));i=d}else if(n===!0&&!KJ(t[i]))return dt("InvalidXml","Extra text at the end",mr(t,i));t[i]==="<"&&i--}}else{if(KJ(t[i]))continue;return dt("InvalidChar","char '"+t[i]+"' is not expected.",mr(t,i))}if(s){if(r.length==1)return dt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",mr(t,r[0].tagStartPos));if(r.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return dt("InvalidXml","Start tag expected.",1);return!0}o(xE,"validate");function KJ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(KJ,"isWhiteSpace");function XJ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return dt("InvalidXml","XML declaration allowed only at the start of the document.",mr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(XJ,"readPI");function ZJ(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(ZJ,"readCommentAndCDATA");var uBe='"',ABe="'";function dBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===uBe||t[e]===ABe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(dBe,"readAttributeStr");var pBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function e3(t,e){let r=bE(t,pBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",lp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",lp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",lp(r[n]));let i=r[n][2];if(!fBe(i))return dt("InvalidAttr","Attribute '"+i+"' is an invalid name.",lp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return dt("InvalidAttr","Attribute '"+i+"' is repeated.",lp(r[n]))}return!0}o(e3,"validateAttributeString");function mBe(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(mBe,"validateNumberAmpersand");function hBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,mBe(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(hBe,"validateAmpersand");function dt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(dt,"getErrorObject");function fBe(t){return bN(t)}o(fBe,"validateAttrName");function gBe(t){return bN(t)}o(gBe,"validateTagName");function mr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(mr,"getLineNumberForPosition");function lp(t){return t.startIndex+t[1].length}o(lp,"getPositionFromMatch");var t3={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"},r3={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"},s3={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 kr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new dp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=uu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=PN(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=kN(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new kr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=uu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=uu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=kN(t,c,n.removeNSPrefix);if(!A){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=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,g=A.closeIndex;if({tagName:d,tagExp:m}=PN(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=UBe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=OBe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let S="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let he=this.readStopNodeData(t,p,g+1);if(!he)throw new Error(`Unexpected end of ${p}`);c=he.i,S=he.tagContent}let U=new kr(d);y&&(U[":@"]=y),U.add(n.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,N)}else{if(E){({tagName:d,tagExp:m}=PN(n.transformTagName,d,m,n));let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let S=new kr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,N),r=S}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function YBe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(YBe,"addChild");function $Be(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o($Be,"replaceEntitiesValue");function JBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(JBe,"saveTextToParentTag");function WBe(){return this.stopNodeExpressionsLine truncated
`;function nwe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(ON(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(nwe,"detectXmlVersionFromArray");function w3(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(w3,"resolveTagName");function FN(t,e){let r="";e.format&&(r=swe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new ls(c)):c instanceof ls&&s.push(c)}let n=nwe(t,e),i=new Vn;return b3(t,e,r,i,s,n)}o(FN,"toXml");function b3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=MN(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=ON(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:w3(A,!1,e,s,i),m=iwe(u[":@"],e);s.push(p,m);let h=awe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=MN(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=vE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=TE(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=B3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=B3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=Q3(u[A],e):y=b3(u[A],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(b3,"arrToStr");function iwe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=$o(t[n]),s=!0}return s?r:null}o(iwe,"extractAttributeValues");function Q3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=ON(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=owe(n[":@"],e),c=Q3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(Q3,"getRawContent");function owe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${$o(n)}"`}return r}o(owe,"attr_to_str_raw");function ON(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(ON,"propName");function B3(t,e,r,s,n){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:w3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=MN(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${$o(u)}"`}return i}o(B3,"attr_to_str");function awe(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(awe,"checkStopNode");function MN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(MN,"replaceEntitiesValue");function UN(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(UN,"getIgnoreAttributesFn");var cwe={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 _r(t){if(this.options=Object.assign({},cwe,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")],n=kCe(s);n&&t.headers.set("Content-Length",n),t.body=await oJ(s)}o(DCe,"buildRequestBody");var jd="multipartPolicy",_Ce=70,LCe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function MCe(t){if(t.length>_Ce)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!LCe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(MCe,"assertValidBoundary");function aE(){return{name:jd,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,s=t.headers.get("Content-Type")??"multipart/mixed",n=s.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!n)throw new Error(`Got multipart request body, but content-type header was not multipart: ${s}`);let[,i,a]=n;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?MCe(r):r=TCe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await DCe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(aE,"multipartPolicy");function cE(){return vg()}o(cE,"createEmptyPipeline");var aJ=Sg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),h3e=aJ.logger;function qn(t){return aJ.createClientLogger(t)}o(qn,"createClientLogger");var Gn=qn("core-rest-pipeline");function V0(t={}){return Mg({logger:Gn.info,...t})}o(V0,"logPolicy");var Y0=Fg;function $0(t={}){return Og(t)}o($0,"redirectPolicy");var lE=w(require("node:os"),1),uE=w(require("node:process"),1);function cJ(){return"User-Agent"}o(cJ,"getHeaderName");async function lJ(t){if(uE.default&&uE.default.versions){let e=`${lE.default.type()} ${lE.default.release()}; ${lE.default.arch()}`,r=uE.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(lJ,"setPlatformSpecificData");var AE="1.22.2";function VCe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(VCe,"getUserAgentString");function uJ(){return cJ()}o(uJ,"getUserAgentHeaderName");async function dE(t){let e=new Map;e.set("core-rest-pipeline",AE),await lJ(e);let r=VCe(e);return t?`${t} ${r}`:r}o(dE,"getUserAgentValue");var AJ=uJ(),dJ="userAgentPolicy";function J0(t={}){let e=dE(t.userAgentPrefix);return{name:dJ,async sendRequest(r,s){return r.headers.has(AJ)||r.headers.set(AJ,await e),s(r)}}}o(J0,"userAgentPolicy");var os=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function W0(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new os(n??"The operation was aborted."))}o(c,"rejectOnAbort");function l(){s?.removeEventListener("abort",u)}o(l,"removeListeners");function u(){r?.(),l(),c()}if(o(u,"onAbort"),s?.aborted)return c();try{t(A=>{l(),i(A)},A=>{l(),a(A)})}catch(A){a(A)}s?.addEventListener("abort",u)})}o(W0,"createAbortablePromise");var jCe="The delay was aborted.";function Kd(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return W0(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??jCe})}o(Kd,"delay");function Ho(t){if(Ya(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(Ho,"getErrorMessage");function pJ(t){return Ya(t)}o(pJ,"isError");function nu(){return Va()}o(nu,"randomUUID");var xe=Wa;var mJ=Symbol("rawContent");function K0(t){return typeof t[mJ]=="function"}o(K0,"hasRawContent");function hJ(t){return K0(t)?t[mJ]():t}o(hJ,"getRawContent");var pE=jd;function X0(){let t=aE();return{name:pE,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)K0(s.body)&&(s.body=hJ(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(X0,"multipartPolicy");var Z0=Ug;function eN(){return qg()}o(eN,"decompressResponsePolicy");function tN(t={}){return zg(t)}o(tN,"defaultRetryPolicy");function rN(){return Vg()}o(rN,"formDataPolicy");function zo(t){return U0(t)}o(zo,"getDefaultProxySettings");function sN(t,e){return rE(t,e)}o(sN,"proxyPolicy");var fJ="setClientRequestIdPolicy";function nN(t="x-ms-client-request-id"){return{name:fJ,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(nN,"setClientRequestIdPolicy");function iN(t){return sE(t)}o(iN,"agentPolicy");function oN(t){return nE(t)}o(oN,"tlsPolicy");var iu={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function gJ(t={}){let e=new aN(t.parentContext);return t.span&&(e=e.setValue(iu.span,t.span)),t.namespace&&(e=e.setValue(iu.namespace,t.namespace)),e}o(gJ,"createTracingContext");var aN=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--),!CBe(l)){let d;return l.trim().length===0?d="Invalid space after '<'.":d="Tag '"+l+"' is an invalid name.",dt("InvalidTag",d,mr(t,i))}let u=hBe(t,i);if(u===!1)return dt("InvalidAttr","Attributes for '"+l+"' have open quote.",mr(t,i));let A=u.value;if(i=u.index,A[A.length-1]==="/"){let d=i-A.length;A=A.substring(0,A.length-1);let p=e3(A,e);if(p===!0)s=!0;else return dt(p.err.code,p.err.msg,mr(t,d+p.err.line))}else if(c)if(u.tagClosed){if(A.trim().length>0)return dt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",mr(t,a));if(r.length===0)return dt("InvalidTag","Closing tag '"+l+"' has not been opened.",mr(t,a));{let d=r.pop();if(l!==d.tagName){let p=mr(t,d.tagStartPos);return dt("InvalidTag","Expected closing tag '"+d.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",mr(t,a))}r.length==0&&(n=!0)}}else return dt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",mr(t,i));else{let d=e3(A,e);if(d!==!0)return dt(d.err.code,d.err.msg,mr(t,i-A.length+d.err.line));if(n===!0)return dt("InvalidXml","Multiple possible root nodes found.",mr(t,i));e.unpairedTags.indexOf(l)!==-1||r.push({tagName:l,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=ZJ(t,i);continue}else if(t[i+1]==="?"){if(i=XJ(t,++i),i.err)return i}else break;else if(t[i]==="&"){let d=EBe(t,i);if(d==-1)return dt("InvalidChar","char '&' is not expected.",mr(t,i));i=d}else if(n===!0&&!KJ(t[i]))return dt("InvalidXml","Extra text at the end",mr(t,i));t[i]==="<"&&i--}}else{if(KJ(t[i]))continue;return dt("InvalidChar","char '"+t[i]+"' is not expected.",mr(t,i))}if(s){if(r.length==1)return dt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",mr(t,r[0].tagStartPos));if(r.length>0)return dt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return dt("InvalidXml","Start tag expected.",1);return!0}o(xE,"validate");function KJ(t){return t===" "||t===" "||t===`
`||t==="\r"}o(KJ,"isWhiteSpace");function XJ(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let s=t.substr(r,e-r);if(e>5&&s==="xml")return dt("InvalidXml","XML declaration allowed only at the start of the document.",mr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(XJ,"readPI");function ZJ(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(ZJ,"readCommentAndCDATA");var pBe='"',mBe="'";function hBe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===pBe||t[e]===mBe)s===""?s=t[e]:s!==t[e]||(s="");else if(t[e]===">"&&s===""){n=!0;break}r+=t[e]}return s!==""?!1:{value:r,index:e,tagClosed:n}}o(hBe,"readAttributeStr");var fBe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function e3(t,e){let r=bE(t,fBe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",lp(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return dt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",lp(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return dt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",lp(r[n]));let i=r[n][2];if(!yBe(i))return dt("InvalidAttr","Attribute '"+i+"' is an invalid name.",lp(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return dt("InvalidAttr","Attribute '"+i+"' is repeated.",lp(r[n]))}return!0}o(e3,"validateAttributeString");function gBe(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(gBe,"validateNumberAmpersand");function EBe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,gBe(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(EBe,"validateAmpersand");function dt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(dt,"getErrorObject");function yBe(t){return QN(t)}o(yBe,"validateAttrName");function CBe(t){return QN(t)}o(CBe,"validateTagName");function mr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(mr,"getLineNumberForPosition");function lp(t){return t.startIndex+t[1].length}o(lp,"getPositionFromMatch");var t3={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"},r3={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"},s3={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 kr("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new dp(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let u=t.charCodeAt(c+1);if(u===47){let A=uu(t,">",c,"Closing Tag is not closed."),d=t.substring(c+2,A).trim();if(n.removeNSPrefix){let m=d.indexOf(":");m!==-1&&(d=d.substr(m+1))}d=kN(n.transformTagName,d,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(d&&n.unpairedTagsSet.has(d))throw new Error(`Unpaired tag can not be used as closing tag: </${d}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=A}else if(u===63){let A=DN(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(d){let p=d[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&A.tagName==="?xml"||n.ignorePiTags)){let p=new kr(A.tagName);p.add(n.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=d),this.addChild(r,p,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=uu(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let d=t.substring(c+4,A-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:d}])}c=A}else if(u===33&&t.charCodeAt(c+2)===68){let A=i.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(u===33&&t.charCodeAt(c+2)===91){let A=uu(t,"]]>",c,"CDATA is not closed.")-2,d=t.substring(c+9,A);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(d,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:d}]):r.add(n.textNodeName,p),c=A+2}else{let A=DN(t,c,n.removeNSPrefix);if(!A){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=A.tagName,p=A.rawTagName,m=A.tagExp,h=A.attrExpPresent,g=A.closeIndex;if({tagName:d,tagExp:m}=kN(n.transformTagName,d,m,n),n.strictReservedNames&&(d===n.commentPropName||d===n.cdataPropName||d===n.textNodeName||d===n.attributesGroupName))throw new Error(`Invalid tag name: ${d}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;m.length>0&&m.lastIndexOf("/")===m.length-1&&(E=!0,d[d.length-1]==="/"?(d=d.substr(0,d.length-1),m=d):m=m.substr(0,m.length-1),h=d!==m);let y=null,I={},B;B=HBe(p),d!==e.tagname&&this.matcher.push(d,{},B),d!==m&&h&&(y=this.buildAttributesMap(m,this.matcher,d),y&&(I=GBe(y,n))),d!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let x=c;if(this.isCurrentNodeStopNode){let S="";if(E)c=A.closeIndex;else if(n.unpairedTagsSet.has(d))c=A.closeIndex;else{let ge=this.readStopNodeData(t,p,g+1);if(!ge)throw new Error(`Unexpected end of ${p}`);c=ge.i,S=ge.tagContent}let U=new kr(d);y&&(U[":@"]=y),U.add(n.textNodeName,S),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,U,this.readonlyMatcher,x)}else{if(E){({tagName:d,tagExp:m}=kN(n.transformTagName,d,m,n));let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(d)){let S=new kr(d);y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let S=new kr(d);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),y&&(S[":@"]=y),this.addChild(r,S,this.readonlyMatcher,x),r=S}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function WBe(t,e,r,s){this.options.captureMetaData||(s=void 0);let n=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,n,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,s))}o(WBe,"addChild");function jBe(t,e,r){let s=this.options.processEntities;if(!s||!s.enabled)return t;if(s.allowedTags){let n=this.options.jPath?r.toString():r;if(!(Array.isArray(s.allowedTags)?s.allowedTags.includes(e):s.allowedTags(e,n)))return t}if(s.tagFilter){let n=this.options.jPath?r.toString():r;if(!s.tagFilter(e,n))return t}return this.entityDecoder.decode(t)}o(jBe,"replaceEntitiesValue");function KBe(t,e,r,s){return t&&(s===void 0&&(s=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,s),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}o(KBe,"saveTextToParentTag");function XBe(){return this.stopNodeExpressionsLine truncated
`;function awe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(UN(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(awe,"detectXmlVersionFromArray");function w3(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(w3,"resolveTagName");function ON(t,e){let r="";e.format&&(r=owe);let s=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?s.push(new ls(c)):c instanceof ls&&s.push(c)}let n=awe(t,e),i=new Vn;return b3(t,e,r,i,s,n)}o(ON,"toXml");function b3(t,e,r,s,n,i){let a="",c=!1;if(e.maxNestedTags&&s.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let l=t.toString();return l=FN(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],A=UN(u);if(A===void 0)continue;let p=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:w3(A,!1,e,s,i),m=cwe(u[":@"],e);s.push(p,m);let h=uwe(s,n);if(p===e.textNodeName){let I=u[A];h||(I=e.tagValueProcessor(p,I),I=FN(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[A][0][e.textNodeName],B=vE(I);a+=`<![CDATA[${B}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[A][0][e.textNodeName],B=TE(I);a+=r+`<!--${B}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=B3(u[":@"],e,h,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let C=B3(u[":@"],e,h,s,i),E=r+`<${p}${C}`,y;h?y=Q3(u[A],e):y=b3(u[A],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!y||y.length===0)&&e.suppressEmptyNode?a+=E+"/>":y&&y.endsWith(">")?a+=E+`>${y}${r}</${p}>`:(a+=E+">",y&&r!==""&&(y.includes("/>")||y.includes("</"))?a+=r+e.indentBy+y+r:a+=y,a+=`</${p}>`),c=!0,s.pop()}return a}o(b3,"arrToStr");function cwe(t,e){if(!t||e.ignoreAttributes)return null;let r={},s=!1;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let i=n.startsWith(e.attributeNamePrefix)?n.substr(e.attributeNamePrefix.length):n;r[i]=$o(t[n]),s=!0}return s?r:null}o(cwe,"extractAttributeValues");function Q3(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let s=0;s<t.length;s++){let n=t[s],i=UN(n);if(i===e.textNodeName)r+=n[i];else if(i===e.cdataPropName)r+=n[i][0][e.textNodeName];else if(i===e.commentPropName)r+=n[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let a=lwe(n[":@"],e),c=Q3(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(Q3,"getRawContent");function lwe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=t[s];n===!0&&e.suppressBooleanAttributes?r+=` ${s.substr(e.attributeNamePrefix.length)}`:r+=` ${s.substr(e.attributeNamePrefix.length)}="${$o(n)}"`}return r}o(lwe,"attr_to_str_raw");function UN(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let s=e[r];if(Object.prototype.hasOwnProperty.call(t,s)&&s!==":@")return s}}o(UN,"propName");function B3(t,e,r,s,n){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:w3(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=FN(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${$o(u)}"`}return i}o(B3,"attr_to_str");function uwe(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(uwe,"checkStopNode");function FN(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let s=e.entities[r];t=t.replace(s.regex,s.val)}return t}o(FN,"replaceEntitiesValue");function qN(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(qN,"getIgnoreAttributesFn");var Awe={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 _r(t){if(this.options=Object.assign({},Awe,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(_r,"Builder");function lwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(lwe,"detectXmlVersionFromObj");function qN(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(qN,"resolveTagName");_r.prototype.build=function(t){if(this.options.preserveOrder)return FN(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vn,r=lwe(t,this.options);return this.j2x(t,0,e,r).val}};_r.prototype.j2x=function(t,e,r,s){let n="",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 A=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:qN(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=qN(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(g,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(g,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,g);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=qN(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};_r.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+'="'+$o(e)+'"'};function uwe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(uwe,"processTextOrObjNode");_r.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=$o(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=$o(t[s]),r=!0)}return r?e:null};_r.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(_r,"Builder");function dwe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let n=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(n)return n}let s=r[e.attributeNamePrefix+"version"];if(s)return s}return"1.0"}o(dwe,"detectXmlVersionFromObj");function GN(t,e,r,s,n){return!r.sanitizeName||ec(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(GN,"resolveTagName");_r.prototype.build=function(t){if(this.options.preserveOrder)return ON(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Vn,r=dwe(t,this.options);return this.j2x(t,0,e,r).val}};_r.prototype.j2x=function(t,e,r,s){let n="",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 A=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:GN(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||A===this.options.cdataPropName||A===this.options.commentPropName?i+="":A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],A,"",e,r);else if(typeof t[l]!="object"){let d=this.isAttribute(l);if(d&&!this.ignoreAttributesFn(d,a)){let p=GN(d,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!d)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(A);let p=this.checkStopNode(r);if(r.pop(),p){let m=""+t[l];m===""?i+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:i+=this.indentate(e)+"<"+A+">"+m+"</"+A+this.tagEndChar}else i+=this.buildTextValNode(t[l],A,"",e,r)}}else if(Array.isArray(t[l])){let d=t[l].length,p="",m="";for(let h=0;h<d;h++){let g=t[l][h];if(!(typeof g>"u"))if(g===null)A[0]==="?"?i+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let C=this.j2x(g,e+1,r,s);r.pop(),p+=C.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(m+=C.attrStr)}else p+=this.processTextOrObjNode(g,A,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(A,g);C=this.replaceEntitiesValue(C),p+=C}else{r.push(A);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+g;E===""?p+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:p+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else p+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,A,m,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let d=Object.keys(t[l]),p=d.length;for(let m=0;m<p;m++){let h=GN(d[m],!0,this.options,r,s);n+=this.buildAttrPairStr(h,""+t[l][d[m]],c)}}else i+=this.processTextOrObjNode(t[l],A,e,r,s)}return{attrStr:n,val:i}};_r.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+'="'+$o(e)+'"'};function pwe(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let l=this.buildRawContent(t),u=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(l,e,u,r)}let c=this.j2x(t,r+1,s,n);return s.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,s):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,s):this.buildObjectNode(c.val,e,c.attrStr,r)}o(pwe,"processTextOrObjNode");_r.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let s=t[this.options.attributesGroupName];for(let n in s){if(!Object.prototype.hasOwnProperty.call(s,n))continue;let i=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):n;e[i]=$o(s[n]),r=!0}}else for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let n=this.isAttribute(s);n&&(e[n]=$o(t[s]),r=!0)}return r?e:null};_r.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),s=this.factory.computeHMACSHA256(r);return e.headers.set(te.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===te.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE));r.sort((n,i)=>GE(n.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((n,i,a)=>!(i>0&&n.name.toLowerCase()===a[i-1].name.toLowerCase()));let s="";return r.forEach(n=>{s+=`${n.name.toLowerCase().trimRight()}:${n.value.trimLeft()}
`}),s}getCanonicalizedResourceString(e){let r=OE(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=UE(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let l=c.toLowerCase();i[l]=n[c],a.push(l)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var tt=class extends sc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gp(e,r,this)}computeHMACSHA256(e){return(0,k3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xt=qn("storage-common");var ks;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ks||(ks={}));var Wo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},ywe=new os("The operation was aborted."),Ep=class extends Yn{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Wo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Wo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Wo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Wo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs):Wo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Wo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=FE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Jo(n.url,zi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(xt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return xt.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(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return xt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return xt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(te.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(xt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ks.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ks.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return xt.info(`RetryPolicy: Delay for ${n}ms`),qE(n,s,ywe)}};var yp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ep(e,r,this.retryOptions)}};var Cwe="storageBrowserPolicy";function D3(){return{name:Cwe,async sendRequest(t,e){return we||((t.method==="GET"||t.method==="HEAD")&&(t.url=Jo(t.url,zi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}o(D3,"storageBrowserPolicy");var Iwe="StorageCorrectContentLengthPolicy";function _3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Iwe,async sendRequest(e,r){return t(e),r(e)}}}o(_3,"storageCorrectContentLengthPolicy");var Bwe="storageRetryPolicy",du={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},wwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],bwe=new os("The operation was aborted.");function L3(t={}){let e=t.retryPolicyType??du.retryPolicyType,r=t.maxTries??du.maxTries,s=t.retryDelayInMs??du.retryDelayInMs,n=t.maxRetryDelayInMs??du.maxRetryDelayInMs,i=t.secondaryHost??du.secondaryHost,a=t.tryTimeoutInMs??du.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return xt.inf Line truncated
${c}:${decodeURIComponent(i[c])}`}return s}};var tt=class extends sc{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gp(e,r,this)}computeHMACSHA256(e){return(0,k3.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var xt=qn("storage-common");var ks;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(ks||(ks={}));var Wo={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Bwe=new os("The operation was aborted."),Ep=class extends Yn{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Wo){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Wo.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Wo.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Wo.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs):Wo.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Wo.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Wo.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,s){let n=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||s%2===1;i||(n.url=FE(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Jo(n.url,zi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(xt.info(`RetryPolicy: =====> Try=${s} ${i?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(n),!this.shouldRetry(i,s,a))return a;r=r||!i&&a.status===404}catch(c){if(xt.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(i,s,a,c))throw c}return await this.delay(i,s,e.abortSignal),this.attemptSendRequest(e,r,++s)}shouldRetry(e,r,s,n){if(r>=this.retryOptions.maxTries)return xt.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(n){for(let a of i)if(n.name.toUpperCase().includes(a)||n.message.toUpperCase().includes(a)||n.code&&n.code.toString().toUpperCase()===a)return xt.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(s||n){let a=s?s.status:n?n.statusCode:0;if(!e&&a===404)return xt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return xt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(te.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return n?.code==="PARSE_ERROR"&&n?.message.startsWith('Error "Error: Unclosed root tag')?(xt.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,s){let n=0;if(e)switch(this.retryOptions.retryPolicyType){case ks.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case ks.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return xt.info(`RetryPolicy: Delay for ${n}ms`),qE(n,s,Bwe)}};var yp=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ep(e,r,this.retryOptions)}};var wwe="storageBrowserPolicy";function D3(){return{name:wwe,async sendRequest(t,e){return xe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Jo(t.url,zi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(te.COOKIE),t.headers.delete(te.CONTENT_LENGTH)),e(t)}}}o(D3,"storageBrowserPolicy");var bwe="StorageCorrectContentLengthPolicy";function _3(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(te.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:bwe,async sendRequest(e,r){return t(e),r(e)}}}o(_3,"storageCorrectContentLengthPolicy");var Qwe="storageRetryPolicy",du={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:ks.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},xwe=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Nwe=new os("The operation was aborted.");function L3(t={}){let e=t.retryPolicyType??du.retryPolicyType,r=t.maxTries??du.maxTries,s=t.retryDelayInMs??du.retryDelayInMs,n=t.maxRetryDelayInMs??du.maxRetryDelayInMs,i=t.secondaryHost??du.secondaryHost,a=t.tryTimeoutInMs??du.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:A,response:d,error:p}){if(A>=r)return xt.inf Line truncated
`)+`
`+s(i)+n(i),c=(0,M3.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(te.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===te.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(te.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>GE(l.name.toLowerCase(),u.name.toLowerCase())),a=a.filter((l,u,A)=>!(u>0&&l.name.toLowerCase()===A[u-1].name.toLowerCase()));let c="";return a.forEach(l=>{c+=`${l.name.toLowerCase().trimRight()}:${l.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=OE(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=UE(i.url),u={};if(l){let A=[];for(let d in l)if(Object.prototype.hasOwnProperty.call(l,d)){let p=d.toLowerCase();u[p]=l[d],A.push(p)}A.sort();for(let d of A)c+=`
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Qwe,async sendRequest(i,a){return e(i),a(i)}}}o(YN,"storageSharedKeyCredentialPolicy");var xwe="storageRequestFailureDetailsParserPolicy";function F3(){return{name:xwe,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(F3,"storageRequestFailureDetailsParserPolicy");var O3=require("node:crypto");var HE=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,O3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var zE="12.31.0",VE="2026-02-06";var YE="https://storage.azure.com/.default",Vi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var un="",$N="*",Nwe=1*1024*1024;var Swe=4*Nwe;var U3="AES256",q3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",G3=["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"],H3=["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"],z3="BlobUsesCustomerSpecifiedEncryption",V3="BlobDoesNotUseCustomerSpecifiedEncryption",Y3=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yi(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(Yi,"isPipelineLike");var Cp=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 pt(t,e={}){t||(t=new $e);let r=new Cp([],e);return r._credential=t,r}o(pt,"newPipeline");function Rwe(t){let e=[Twe,$3,vwe,Pwe,kwe,Dwe,Lwe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>_we(n));return{wrappedPolicies:BN(r),afterRetry:s}}}}o(Rwe,"processDownlevelPipeline");function JN(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?wN(e):VN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${zE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=rp({...r,loggingOptions:{additionalAllowedHeaderNames:G3,additionalAllowedQueryParameters:H3,logger:kE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:PE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:HN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:X0}),n.addPolicy(_3()),n.addPolicy(L3(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new hn(t.version,i,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:n}}o(RQe,"generateBlobSASQueryParameters20150405");function TQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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:i}}o(TQe,"generateBlobSASQueryParameters20181109");function vQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(vQe,"generateBlobSASQueryParameters20201206");function PQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(PQe,"generateBlobSASQueryParametersUDK20181109");function kQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(kQe,"generateBlobSASQueryParametersUDK20200210");function DQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(DQe,"generateBlobSASQueryParametersUDK20201206");function _Qe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?be(t.startsOn,!1):"",t.expiresOn?be(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?be(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?be(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(_Qe,"generateBlobSASQueryParametersUDK20250705");function Ac(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Ac,"getCanonicalName");function dc(t){let e=t.version?t.version:VE;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(dc,"SASSignatureValuesSanityCheckAndAutofill");var Pp=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=nu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-acquireLease",r,async s=>$(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=$(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-releaseLease",e,async r=>$(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!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||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
${d}:${decodeURIComponent(u[d])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Swe,async sendRequest(i,a){return e(i),a(i)}}}o($N,"storageSharedKeyCredentialPolicy");var Rwe="storageRequestFailureDetailsParserPolicy";function F3(){return{name:Rwe,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(F3,"storageRequestFailureDetailsParserPolicy");var O3=require("node:crypto");var HE=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,O3.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var zE="12.31.0",VE="2026-02-06";var YE="https://storage.azure.com/.default",Vi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var un="",JN="*",Twe=1*1024*1024;var vwe=4*Twe;var U3="AES256",q3="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",G3=["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"],H3=["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"],z3="BlobUsesCustomerSpecifiedEncryption",V3="BlobDoesNotUseCustomerSpecifiedEncryption",Y3=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Yi(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(Yi,"isPipelineLike");var Cp=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 pt(t,e={}){t||(t=new $e);let r=new Cp([],e);return r._credential=t,r}o(pt,"newPipeline");function Pwe(t){let e=[kwe,$3,Dwe,_we,Lwe,Mwe,Owe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>Fwe(n));return{wrappedPolicies:wN(r),afterRetry:s}}}}o(Pwe,"processDownlevelPipeline");function WN(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?bN(e):YN(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${zE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=rp({...r,loggingOptions:{additionalAllowedHeaderNames:G3,additionalAllowedQueryParameters:H3,logger:kE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:PE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:zN,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Z0}),n.addPolicy(_3()),n.addPolicy(L3(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new hn(t.version,i,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:n}}o(PQe,"generateBlobSASQueryParameters20150405");function kQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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:i}}o(kQe,"generateBlobSASQueryParameters20181109");function DQe(t,e){if(t=dc(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}o(DQe,"generateBlobSASQueryParameters20201206");function _Qe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey),stringToSign:i}}o(_Qe,"generateBlobSASQueryParametersUDK20181109");function LQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}o(LQe,"generateBlobSASQueryParametersUDK20200210");function MQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}o(MQe,"generateBlobSASQueryParametersUDK20201206");function FQe(t,e){if(t=dc(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",s=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",s=t.versionId));let n;t.permissions&&(t.blobName?n=li.parse(t.permissions.toString()).toString():n=ui.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Ne(t.startsOn,!1):"",t.expiresOn?Ne(t.expiresOn,!1):"",Ac(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ne(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ne(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?mn(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,s,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(i);return{sasQueryParameters:new hn(t.version,a,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,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}o(FQe,"generateBlobSASQueryParametersUDK20250705");function Ac(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(Ac,"getCanonicalName");function dc(t){let e=t.version?t.version:VE;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(dc,"SASSignatureValuesSanityCheckAndAutofill");var Pp=class{static{o(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let s=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=s.container):(this._isContainer=!1,this._containerOrBlobOperation=s.blob),r||(r=nu()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-acquireLease",r,async s=>$(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:s.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==un||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=$(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:s.tracingOptions}));return this._leaseId=e,n})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||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 H.withSpan("BlobLeaseClient-releaseLease",e,async r=>$(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!==un||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==un||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"}};bu.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var fc=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"}};fc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Gp=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Vxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Fv=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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);re(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 j4(t,e,r){return Vxe(this,void 0,void 0,function*(){var s;let n=new Zi(t),i=n.getBlockBlobClient(),a=new Fv((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new jy(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Bt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(j4,"uploadCacheArchiveSDK");var X4=w(require("buffer"),1),Ai=w(require("fs"),1),Z4=w(require("stream"),1),e8=w(require("util"),1);var Ky=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Xy(t){return t?t>=200&&t<300:!1}o(Xy,"isSuccessStatusCode");function Yxe(t){return t?t>=500:!0}o(Yxe,"isServerErrorStatusCode");function $xe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}o($xe,"isRetryableStatusCode");function Jxe(t){return Ky(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Jxe,"sleep");function K4(t,e,r){return Ky(this,arguments,void 0,function*(s,n,i,a=Ig,c=Bg,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!Yxe(p)))return d;if(p&&(m=$xe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield Jxe(c),A++}throw Error(`${s} failed: ${u}`)})}o(K4,"retry");function Hp(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Mn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Hp,"retryTypedResponse");function Qu(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.message.statusCode,n,i)})}o(Qu,"retryHttpClientResponse");var Fs=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Wxe(t,e){return Fs(this,void 0,void 0,function*(){yield e8.promisify(Z4.pipeline)(t.message,e)})}o(Wxe,"pipeResponseToStream");var Zy=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(r0e,"printCachesListForDiagnostics");function Hv(t,e,r){return Mr(this,void 0,void 0,function*(){let s=new p8.URL(t),n=n8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield r8(t,e,n):n.concurrentBlobDownloads?yield t8(t,e,n):yield eC(t,e):yield eC(t,e)})}o(Hv,"downloadCache");function h8(t,e,r){return Mr(this,void 0,void 0,function*(){let s=Gv(),n=Wl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Hp("reserveCache",()=>Mr(this,void 0,void 0,function*(){return s.postJson(Vp("caches"),i)}))})}o(h8,"reserveCache");function d8(t,e){return`bytes ${t}-${e}/*`}o(d8,"getContentRange");function s0e(t,e,r,s,n){return Mr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${d8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":d8(s,n)},a=yield Qu(`uploadChunk (start: ${s}, end: ${n})`,()=>Mr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Xy(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(s0e,"uploadChunk");function n0e(t,e,r,s){return Mr(this,void 0,void 0,function*(){let n=Ln(r),i=Vp(`caches/${e.toString()}`),a=xu.openSync(r,"r"),c=Ov(s),l=d0("uploadConcurrency",c.uploadConcurrency),u=d0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Mr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield s0e(t,i,()=>xu.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{xu.closeSync(a)}})}o(n0e,"uploadFile");function i0e(t,e,r){return Mr(this,void 0,void 0,function*(){let s={size:r};return yield Hp("commitCache",()=>Mr(this,void 0,void 0,function*(){return t.postJson(Vp(`caches/${e.toString()}`),s)}))})}o(i0e,"commitCache");function zv(t,e,r,s){return Mr(this,void 0,void 0,function*(){if(Ov(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield j4(r,e,s)}else{let i=Gv();b("Upload cache"),yield n0e(i,t,e,s),b("Commiting cache");let a=Ln(e);re(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield i0e(i,t,a);if(!Xy(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);re("Cache saved successfully")}})}o(zv,"saveCache");var l5=w(r5(),1),ft=w(ht(),1),ds=w(ht(),1),Ic=w(ht(),1),Bc=w(ht(),1),wc=w(ht(),1);var FP=w(ht(),1),OP=w(ht(),1),o5=w(ht(),1),a5=w(ht(),1),c5=w(ht(),1);var _P=w(ht(),1),LP=w(ht(),1),s5=w(ht(),1),n5=w(ht(),1),i5=w(ht(),1);var MP=class extends i5.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,n5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,s5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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 u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?LP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,_P.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,_P.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?LP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},qC=new MP;var UP=class extends c5.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(()=>qC,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,a5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,o5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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(qC.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?OP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,FP.WireTyp Line truncated
`));let s=yield tk(r,"create");yield rk(s,t)})}o(nk,"createTar");var Gu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},En=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ik="cache write denied:",VC=class t extends bc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},p5=wg,YC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},$C=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function m5(t){if(!t||t.length===0)throw new En("Path Validation Error: At least one directory or file path is required")}o(m5,"checkPaths");function ok(t){if(t.length>512)throw new En(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new En(`Key Validation Error: ${t} cannot contain commas.`)}o(ok,"checkKey");function ak(){return zp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(ak,"isFeatureAvailable");function h5(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=zp();b(`Cache service version: ${u}`),m5(n);let A=qv();if(!o8(A)){re(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),b(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield CSe(n,i,a,c,l):yield ySe(n,i,a,c,l)})}o(h5,"restoreCache");function ySe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)ok(m);let d=yield Hd(),p="";try{let m;try{m=yield m8(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(g){let C=(u=g?.message)!==null&&u!==void 0?u:"";throw C.includes(p5)?new YC(C):g}if(!m?.archiveLocation)return;if(c?.lookupOnly)return re("Lookup only - skipping download"),m.cacheKey;p=am.join(yield qd(),Uo(d)),b(`Archive Path: ${p}`),yield Hv(m.archiveLocation,p,c),Ua()&&(yield om(p,d));let h=Ln(p);return re(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield sk(p,d),re("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===En.name)throw m;h instanceof Mn&&typeof h.statusCode=="number"&&h.statusCode>=500?Ol(`Failed to restore: ${m.message}`):Bt(`Failed to restore: ${m.message}`)}finally{try{yield Gd(p)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(ySe,"restoreCacheV1");function CSe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)ok(p);let d="";try{let p=ek(),m=yield Hd(),h={key:i,restoreKeys:a,version:Wl(n,m,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(y){let I=(u=y?.message)!==null&&u!==void 0?u:"";throw I.includes(p5)?new YC(I):y}if(!g.ok){b(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;d=am.join(yield qd(),Uo(m)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield Hv(g.signedDownloadUrl,d,c);let E=Ln(d);return re(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ua()&&(yield om(d,m)),yield sk(d,m),re("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===En.name)throw p;m instanceof Mn&&typeof m.statusCode=="number"&&m.statusCode>=500?Ol(`Failed to restore: ${p.message}`):Bt(`Failed to restore: ${p.message}`)}finally{try{d&&(yield Gd(d))}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(CSe,"restoreCacheV2");function ck(t,e,r){return Gu(this,arguments,void 0,function*(s,n,i,a=!1){let c=zp();b(`Cache service version: ${c}`),m5(s),ok(n);let l=qv();return a8(l)?c==="v2"?yield BSe(s,n,i,a):yield ISe(s,n,i,a):(re(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(ck,"saveCache");function ISe(t,e,r){return Gu(this,arguments,void 0 Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:g,rtrim:C,skip_empty_lines:E,to:y,to_line:I}=this.options,{comment:B,escape:N,quote:S,record_delimiter:U}=this.options,{bomSkipped:he,delimiterDiscovered:Se,delimiterBufPrevious:Qe,rawBuffer:Te,escapeIsQuote:Ae}=this.state;if(!Se&&u){let xe;if(Qe===void 0?xe=s:Qe!==void 0&&s===void 0?xe=Qe:xe=Buffer.concat([Qe,s]),s=void 0,n||xe.length>u.size)this.options.delimiter=[Buffer.from(TK(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:_e}=this.state,se;if(_e===void 0)if(s===void 0){a();return}else se=s;else _e!==void 0&&s===void 0?se=_e:se=Buffer.concat([_e,s]);if(he===!1)if(c===!1)this.state.bomSkipped=!0;else if(se.length<3){if(n===!1){this.state.previousBuf=se;return}}else{for(let xe in iA)if(iA[xe].compare(se,0,iA[xe].length)===0){let Cn=iA[xe].length;this.state.bufBytesStart+=Cn,se=se.slice(Cn);let uo=nA({...this.original_options,encoding:xe});for(let Xe in uo)this.options[Xe]=uo[Xe];({comment:B,escape:N,quote:S}=this.options);break}this.state.bomSkipped=!0}let tr=se.length,z;for(z=0;z<tr&&!this.__needMoreData(z,tr,n);z++){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&&U.length===0&&this.__autoDiscoverRecordDelimiter(se,z)&&(U=this.options.record_delimiter);let xe=se[z];if(h===!0&&Te.append(xe),(xe===$De||xe===JDe)&&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,z,xe)&&z+N.length<tr)if(Ae){if(this.__isQuote(se,z+N.length)){this.state.escaping=!0,z+=N.length-1;continue}}else{this.state.escaping=!0,z+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(se,z))if(this.state.quoting===!0){let Xe=se[z+S.length],In=C&&this.__isCharTrimable(se,z+S.length),Gr=B!==null&&this.__compareBytes(B,se,z+S.length,Xe),la=this.__isDelimiter(se,z+S.length,Xe),Fm=U.length===0?this.__autoDiscoverRecordDelimiter(se,z+S.length):this.__isRecordDelimiter(Xe,se,z+S.length);if(N!==null&&this.__isEscape(se,z,xe)&&this.__isQuote(se,z+N.length))z+=N.length-1;else if(!Xe||la||Fm||Gr||In){this.state.quoting=!1,this.state.wasQuoting=!0,z+=S.length-1;continue}else if(g===!1){let r_=this.__error(new me("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Xe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(r_!==void 0)return r_}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),z+=S.length-1}else if(this.state.field.length!==0){if(g===!1){let Xe=this.__infoField(),In=Object.keys(iA).map(la=>iA[la].equals(this.state.field.toString())?la:!1).filter(Boolean)[0],Gr=this.__error(new me("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Xe.column)} at line ${Xe.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,In?`(${In} bom)`:void 0],this.options,Xe,{field:this.state.field}));if(Gr!==void 0)return Gr}}else{this.state.quoting=!0,z+=S.length-1;continue}if(this.state.quoting===!1){let Xe=this.__isRecordDelimiter(xe,se,z);if(Xe!==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(),z+=Xe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=Xe-1;continue}this.info.bytes=this.state.bufBytesStart+z;let la=this.__onField();if(la!==void 0)return la;this.info.bytes=this.state.bufBytesStart+z+Xe;let Fm=this.__onRecord(i);if(Fm!==void 0)return Fm;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=Xe-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,z,xe)!==0){this.state.commenting=!0;continue}let In=this.__isDelimiter(se,z,xe);if(In!==0){this.info.bytes=this.state.bufBytesStart+z;let Gr=this.__onField();if(Gr!==void 0)return Gr;z+=In-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new me("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Cn=p===!1||thi Line truncated
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"}};fc.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Gp=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Jxe=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},Ov=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),s=Date.now()-this.startTime,n=(e/(1024*1024)/(s/1e3)).toFixed(1);se(`Sent ${e} of ${this.contentLength} (${r}%), ${n} 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 j4(t,e,r){return Jxe(this,void 0,void 0,function*(){var s;let n=new Zi(t),i=n.getBlockBlobClient(),a=new Ov((s=r?.archiveSizeBytes)!==null&&s!==void 0?s:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),b(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let l=yield i.uploadFile(e,c);if(l._response.status>=400)throw new jy(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw Bt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(j4,"uploadCacheArchiveSDK");var X4=w(require("buffer"),1),Ai=w(require("fs"),1),Z4=w(require("stream"),1),e8=w(require("util"),1);var Ky=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Xy(t){return t?t>=200&&t<300:!1}o(Xy,"isSuccessStatusCode");function Wxe(t){return t?t>=500:!0}o(Wxe,"isServerErrorStatusCode");function jxe(t){return t?[et.BadGateway,et.ServiceUnavailable,et.GatewayTimeout].includes(t):!1}o(jxe,"isRetryableStatusCode");function Kxe(t){return Ky(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Kxe,"sleep");function K4(t,e,r){return Ky(this,arguments,void 0,function*(s,n,i,a=Ig,c=Bg,l=void 0){let u="",A=1;for(;A<=a;){let d,p,m=!1;try{d=yield n()}catch(h){l&&(d=l(h)),m=!0,u=h.message}if(d&&(p=i(d),!Wxe(p)))return d;if(p&&(m=jxe(p),u=`Cache service responded with ${p}`),b(`${s} - Attempt ${A} of ${a} failed with error: ${u}`),!m){b(`${s} - Error is not retryable`);break}yield Kxe(c),A++}throw Error(`${s} failed: ${u}`)})}o(K4,"retry");function Hp(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Mn)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Hp,"retryTypedResponse");function Qu(t,e){return Ky(this,arguments,void 0,function*(r,s,n=Ig,i=Bg){return yield K4(r,s,a=>a.message.statusCode,n,i)})}o(Qu,"retryHttpClientResponse");var Fs=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Xxe(t,e){return Fs(this,void 0,void 0,function*(){yield e8.promisify(Z4.pipeline)(t.message,e)})}o(Xxe,"pipeResponseToStream");var Zy=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(i0e,"printCachesListForDiagnostics");function zv(t,e,r){return Mr(this,void 0,void 0,function*(){let s=new p8.URL(t),n=n8(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield r8(t,e,n):n.concurrentBlobDownloads?yield t8(t,e,n):yield eC(t,e):yield eC(t,e)})}o(zv,"downloadCache");function h8(t,e,r){return Mr(this,void 0,void 0,function*(){let s=Hv(),n=Wl(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Hp("reserveCache",()=>Mr(this,void 0,void 0,function*(){return s.postJson(Vp("caches"),i)}))})}o(h8,"reserveCache");function d8(t,e){return`bytes ${t}-${e}/*`}o(d8,"getContentRange");function o0e(t,e,r,s,n){return Mr(this,void 0,void 0,function*(){b(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${d8(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":d8(s,n)},a=yield Qu(`uploadChunk (start: ${s}, end: ${n})`,()=>Mr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Xy(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(o0e,"uploadChunk");function a0e(t,e,r,s){return Mr(this,void 0,void 0,function*(){let n=Ln(r),i=Vp(`caches/${e.toString()}`),a=xu.openSync(r,"r"),c=Uv(s),l=p0("uploadConcurrency",c.uploadConcurrency),u=p0("uploadChunkSize",c.uploadChunkSize),A=[...new Array(l).keys()];b("Awaiting all uploads");let d=0;try{yield Promise.all(A.map(()=>Mr(this,void 0,void 0,function*(){for(;d<n;){let p=Math.min(n-d,u),m=d,h=d+p-1;d+=u,yield o0e(t,i,()=>xu.createReadStream(r,{fd:a,start:m,end:h,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),m,h)}})))}finally{xu.closeSync(a)}})}o(a0e,"uploadFile");function c0e(t,e,r){return Mr(this,void 0,void 0,function*(){let s={size:r};return yield Hp("commitCache",()=>Mr(this,void 0,void 0,function*(){return t.postJson(Vp(`caches/${e.toString()}`),s)}))})}o(c0e,"commitCache");function Vv(t,e,r,s){return Mr(this,void 0,void 0,function*(){if(Uv(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield j4(r,e,s)}else{let i=Hv();b("Upload cache"),yield a0e(i,t,e,s),b("Commiting cache");let a=Ln(e);se(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield c0e(i,t,a);if(!Xy(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);se("Cache saved successfully")}})}o(Vv,"saveCache");var l5=w(r5(),1),ft=w(ht(),1),ds=w(ht(),1),Ic=w(ht(),1),Bc=w(ht(),1),wc=w(ht(),1);var OP=w(ht(),1),UP=w(ht(),1),o5=w(ht(),1),a5=w(ht(),1),c5=w(ht(),1);var LP=w(ht(),1),MP=w(ht(),1),s5=w(ht(),1),n5=w(ht(),1),i5=w(ht(),1);var FP=class extends i5.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,n5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,s5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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 u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?MP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,LP.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,LP.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?MP.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},qC=new FP;var qP=class extends c5.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(()=>qC,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,a5.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,o5.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,s,n){let i=n??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(qC.internalBinaryRead(e,e.uint32(),s));break;default:let u=s.readUnknownField;if(u==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${l}) for ${this.typeName}`);let A=e.skip(l);u!==!1&&(u===!0?UP.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,A)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag(1,OP.WireTyp Line truncated
`));let s=yield rk(r,"create");yield sk(s,t)})}o(ik,"createTar");var Gu=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},En=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},bc=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},ok="cache write denied:",VC=class t extends bc{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},p5=wg,YC=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},$C=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function m5(t){if(!t||t.length===0)throw new En("Path Validation Error: At least one directory or file path is required")}o(m5,"checkPaths");function ak(t){if(t.length>512)throw new En(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new En(`Key Validation Error: ${t} cannot contain commas.`)}o(ak,"checkKey");function ck(){return zp()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(ck,"isFeatureAvailable");function h5(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=zp();b(`Cache service version: ${u}`),m5(n);let A=Gv();if(!o8(A)){se(`Cache restore skipped: the effective cache-mode '${A}' does not permit reads.`),b(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield wSe(n,i,a,c,l):yield BSe(n,i,a,c,l)})}o(h5,"restoreCache");function BSe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let m of A)ak(m);let d=yield Hd(),p="";try{let m;try{m=yield m8(A,n,{compressionMethod:d,enableCrossOsArchive:l})}catch(g){let C=(u=g?.message)!==null&&u!==void 0?u:"";throw C.includes(p5)?new YC(C):g}if(!m?.archiveLocation)return;if(c?.lookupOnly)return se("Lookup only - skipping download"),m.cacheKey;p=am.join(yield qd(),Uo(d)),b(`Archive Path: ${p}`),yield zv(m.archiveLocation,p,c),Ua()&&(yield om(p,d));let h=Ln(p);return se(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield nk(p,d),se("Cache restored successfully"),m.cacheKey}catch(m){let h=m;if(h.name===En.name)throw m;h instanceof Mn&&typeof h.statusCode=="number"&&h.statusCode>=500?Ol(`Failed to restore: ${m.message}`):Bt(`Failed to restore: ${m.message}`)}finally{try{yield Gd(p)}catch(m){b(`Failed to delete archive: ${m}`)}}})}o(BSe,"restoreCacheV1");function wSe(t,e,r,s){return Gu(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let A=[i,...a];if(b("Resolved Keys:"),b(JSON.stringify(A)),A.length>10)throw new En("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of A)ak(p);let d="";try{let p=tk(),m=yield Hd(),h={key:i,restoreKeys:a,version:Wl(n,m,l)},g;try{g=yield p.GetCacheEntryDownloadURL(h)}catch(y){let I=(u=y?.message)!==null&&u!==void 0?u:"";throw I.includes(p5)?new YC(I):y}if(!g.ok){b(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==g.matchedKey?se(`Cache hit for restore-key: ${g.matchedKey}`):se(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return se("Lookup only - skipping download"),g.matchedKey;d=am.join(yield qd(),Uo(m)),b(`Archive path: ${d}`),b(`Starting download of archive to: ${d}`),yield zv(g.signedDownloadUrl,d,c);let E=Ln(d);return se(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Ua()&&(yield om(d,m)),yield nk(d,m),se("Cache restored successfully"),g.matchedKey}catch(p){let m=p;if(m.name===En.name)throw p;m instanceof Mn&&typeof m.statusCode=="number"&&m.statusCode>=500?Ol(`Failed to restore: ${p.message}`):Bt(`Failed to restore: ${p.message}`)}finally{try{d&&(yield Gd(d))}catch(p){b(`Failed to delete archive: ${p}`)}}})}o(wSe,"restoreCacheV2");function lk(t,e,r){return Gu(this,arguments,void 0,function*(s,n,i,a=!1){let c=zp();b(`Cache service version: ${c}`),m5(s),ak(n);let l=Gv();return a8(l)?c==="v2"?yield QSe(s,n,i,a):yield bSe(s,n,i,a):(se(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),b(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(lk,"saveCache");function bSe(t,e,r){return Gu(this,arguments,void 0 Line truncated
`,a).length:d,u?(c===null?0:c.length)+l.length:0,u?l.length+d:0);return p<m},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:A,from_line:d,ltrim:p,max_record_size:m,raw:h,relax_quotes:g,rtrim:C,skip_empty_lines:E,to:y,to_line:I}=this.options,{comment:B,escape:x,quote:S,record_delimiter:U}=this.options,{bomSkipped:ge,delimiterDiscovered:Ie,delimiterBufPrevious:Be,rawBuffer:be,escapeIsQuote:re}=this.state;if(!Ie&&u){let Se;if(Be===void 0?Se=s:Be!==void 0&&s===void 0?Se=Be:Se=Buffer.concat([Be,s]),s=void 0,n||Se.length>u.size)this.options.delimiter=[Buffer.from(TK(Se,this.options.delimiter_auto))],this.state.previousBuf=Se,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Se;return}}let{previousBuf:_e}=this.state,ne;if(_e===void 0)if(s===void 0){a();return}else ne=s;else _e!==void 0&&s===void 0?ne=_e:ne=Buffer.concat([_e,s]);if(ge===!1)if(c===!1)this.state.bomSkipped=!0;else if(ne.length<3){if(n===!1){this.state.previousBuf=ne;return}}else{for(let Se in iA)if(iA[Se].compare(ne,0,iA[Se].length)===0){let Cn=iA[Se].length;this.state.bufBytesStart+=Cn,ne=ne.slice(Cn);let uo=nA({...this.original_options,encoding:Se});for(let Xe in uo)this.options[Xe]=uo[Xe];({comment:B,escape:x,quote:S}=this.options);break}this.state.bomSkipped=!0}let tr=ne.length,z;for(z=0;z<tr&&!this.__needMoreData(z,tr,n);z++){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&&U.length===0&&this.__autoDiscoverRecordDelimiter(ne,z)&&(U=this.options.record_delimiter);let Se=ne[z];if(h===!0&&be.append(Se),(Se===jDe||Se===KDe)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(x!==null&&this.state.quoting===!0&&this.__isEscape(ne,z,Se)&&z+x.length<tr)if(re){if(this.__isQuote(ne,z+x.length)){this.state.escaping=!0,z+=x.length-1;continue}}else{this.state.escaping=!0,z+=x.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ne,z))if(this.state.quoting===!0){let Xe=ne[z+S.length],In=C&&this.__isCharTrimable(ne,z+S.length),Gr=B!==null&&this.__compareBytes(B,ne,z+S.length,Xe),la=this.__isDelimiter(ne,z+S.length,Xe),Fm=U.length===0?this.__autoDiscoverRecordDelimiter(ne,z+S.length):this.__isRecordDelimiter(Xe,ne,z+S.length);if(x!==null&&this.__isEscape(ne,z,Se)&&this.__isQuote(ne,z+x.length))z+=x.length-1;else if(!Xe||la||Fm||Gr||In){this.state.quoting=!1,this.state.wasQuoting=!0,z+=S.length-1;continue}else if(g===!1){let s_=this.__error(new me("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Xe)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(s_!==void 0)return s_}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(S),z+=S.length-1}else if(this.state.field.length!==0){if(g===!1){let Xe=this.__infoField(),In=Object.keys(iA).map(la=>iA[la].equals(this.state.field.toString())?la:!1).filter(Boolean)[0],Gr=this.__error(new me("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Xe.column)} at line ${Xe.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,In?`(${In} bom)`:void 0],this.options,Xe,{field:this.state.field}));if(Gr!==void 0)return Gr}}else{this.state.quoting=!0,z+=S.length-1;continue}if(this.state.quoting===!1){let Xe=this.__isRecordDelimiter(Se,ne,z);if(Xe!==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(),z+=Xe-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,z+=Xe-1;continue}this.info.bytes=this.state.bufBytesStart+z;let la=this.__onField();if(la!==void 0)return la;this.info.bytes=this.state.bufBytesStart+z+Xe;let Fm=this.__onRecord(i);if(Fm!==void 0)return Fm;if(y!==-1&&this.info.records>=y){this.state.stop=!0,a();return}}this.state.commenting=!1,z+=Xe-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,ne,z,Se)!==0){this.state.commenting=!0;continue}let In=this.__isDelimiter(ne,z,Se);if(In!==0){this.info.bytes=this.state.bufBytesStart+z;let Gr=this.__onField();if(Gr!==void 0)return Gr;z+=In-1;continue}}}if(this.state.commenting===!1&&m!==0&&this.state.record_length+this.state.field.length>m)return this.__error(new me("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${m}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Cn=p===!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 u=0;u<l;u++)if(a[c][u]!==s[n+u])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(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):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:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var PK=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=JI(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var ao=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Fl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=PK(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Fl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await Nr("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return kK.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return vD.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,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return vD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return DK.default.compile(e,r)(s)}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 s=Rm.default.resolve(e);return Rm.default.resolve(r).startsWith(s.endsWith(Rm.default.sep)?s:`${s}${Rm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var vm=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Tm.default.join(_K.default.homedir(),".docker")}static configFile(){let e=Tm.default.join(t.configDir,"config.json");if(PD.default.existsSync(e))return JSON.parse(PD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Nr("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
${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)}};var LX=w(require("crypto"),1);var WI=require("fs"),FK=require("os");var oA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,WI.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,WI.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${FK.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var LD=w(HK(),1),zK=w(kl(),1);var a_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function VK(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(VK,"getAuthString");function YK(t){return new LD.HttpClient().getAgent(t)}o(YK,"getProxyAgent");function c_e(t){return new LD.HttpClient().getAgentDispatcher(t)}o(c_e,"getProxyAgentDispatcher");function $K(t){let e=c_e(t);return o((s,n)=>a_e(this,void 0,void 0,function*(){return(0,zK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o($K,"getProxyFetch");function JK(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(JK,"getApiBaseUrl");function MD(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o(MD,"getUserAgentWithOrchestrationId");function aa(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(aa,"getUserAgent");function rB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>rB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(rB,"register");function WK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(WK,"addHook");function jK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(jK,"removeHook");var KK=Function.bind,XK=KK.bind(KK);function ZK(t,e,r){let s=XK(jK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=XK(WK,null).apply(null,i)})}o(ZK,"bindApi");function u_e(){let t=Symbol("Singular"),e={registry:{}},r=rB.bind(null,e,t);return ZK(r,e,t),r}o(u_e,"Singular");function A_e(){let t={registry:{}},e=rB.bind(null,t);return ZK(e,t),e}o(A_e,"Co Line truncated
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==s[n+u])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(s){let{encoding:n,raw:i,skip_records_with_error:a}=this.options,c=typeof s=="string"?new Error(s):s;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(n):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:s,raw:n,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:s===!0,index:this.state.record.length,raw:n?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:s}=this.options,n=Array.isArray(s),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:n===!0?s.length>this.state.record.length?s[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var PK=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=JI(e),n=o(c=>{s.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=s.parse(t,!0,n,i);if(a!==void 0)throw a;return r},"parse");var ao=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(Fl(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=PK(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of n)i.length==1?r?.ignoreComma?s.push(i[0]):s.push(...i[0].split(",")):r?.ignoreComma?s.push(i.join(",")):s.push(...i);return s.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=Fl(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let s=0;s<e.length;s++)await r(e[s],s,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 s=await Nr("powershell",!0),n=e.replace(/'/g,"''"),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-EncodedCommand",Buffer.from(`& '${n}' ${i.join(" ")}`,"utf16le").toString("base64")]}}static isDirectory(e){try{return kK.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 s=e.lastIndexOf(r);return s===-1||s+r.length!==e.length?e:e.substring(0,s)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return PD.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,s=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],n=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,n)).toFixed(2))+" "+s[n]}static generateRandomString(e=10){return PD.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return DK.default.compile(e,r)(s)}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 s=Rm.default.resolve(e);return Rm.default.resolve(r).startsWith(s.endsWith(Rm.default.sep)?s:`${s}${Rm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),s=Math.floor(r/3600),n=Math.floor(r%3600/60),i=r%60,a=[];return s&&a.push(`${s}h`),n&&a.push(`${n}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var vm=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Tm.default.join(_K.default.homedir(),".docker")}static configFile(){let e=Tm.default.join(t.configDir,"config.json");if(kD.default.existsSync(e))return JSON.parse(kD.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await Nr("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
${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)}};var LX=w(require("crypto"),1);var WI=require("fs"),FK=require("os");var oA=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,WI.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,WI.readFileSync)(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let n=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${n} does not exist${FK.EOL}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(s=process.env.GITHUB_GRAPHQL_URL)!==null&&s!==void 0?s:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var MD=w(HK(),1),zK=w(kl(),1);var u_e=function(t,e,r,s){function n(i){return i instanceof r?i:new r(function(a){a(i)})}return o(n,"adopt"),new(r||(r=Promise))(function(i,a){function c(A){try{u(s.next(A))}catch(d){a(d)}}o(c,"fulfilled");function l(A){try{u(s.throw(A))}catch(d){a(d)}}o(l,"rejected");function u(A){A.done?i(A.value):n(A.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function VK(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}o(VK,"getAuthString");function YK(t){return new MD.HttpClient().getAgent(t)}o(YK,"getProxyAgent");function A_e(t){return new MD.HttpClient().getAgentDispatcher(t)}o(A_e,"getProxyAgentDispatcher");function $K(t){let e=A_e(t);return o((s,n)=>u_e(this,void 0,void 0,function*(){return(0,zK.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o($K,"getProxyFetch");function JK(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(JK,"getApiBaseUrl");function FD(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let n=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(n)?t:`${t?`${t} `:""}${n}`}return t}o(FD,"getUserAgentWithOrchestrationId");function aa(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}o(aa,"getUserAgent");function rB(t,e,r,s){if(typeof r!="function")throw new Error("method for before hook must be a function");return s||(s={}),Array.isArray(e)?e.reverse().reduce((n,i)=>rB.bind(null,t,i,n,s),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((n,i)=>i.hook.bind(null,n,s),r)():r(s))}o(rB,"register");function WK(t,e,r,s){let n=s;t.registry[r]||(t.registry[r]=[]),e==="before"&&(s=o((i,a)=>Promise.resolve().then(n.bind(null,a)).then(i.bind(null,a)),"hook")),e==="after"&&(s=o((i,a)=>{let c;return Promise.resolve().then(i.bind(null,a)).then(l=>(c=l,n(c,a))).then(()=>c)},"hook")),e==="error"&&(s=o((i,a)=>Promise.resolve().then(i.bind(null,a)).catch(c=>n(c,a)),"hook")),t.registry[r].push({hook:s,orig:n})}o(WK,"addHook");function jK(t,e,r){if(!t.registry[e])return;let s=t.registry[e].map(n=>n.orig).indexOf(r);s!==-1&&t.registry[e].splice(s,1)}o(jK,"removeHook");var KK=Function.bind,XK=KK.bind(KK);function ZK(t,e,r){let s=XK(jK,null).apply(null,r?[e,r]:[e]);t.api={remove:s},t.remove=s,["before","error","after","wrap"].forEach(n=>{let i=r?[e,n,r]:[e,n];t[n]=t.api[n]=XK(WK,null).apply(null,i)})}o(ZK,"bindApi");function p_e(){let t=Symbol("Singular"),e={registry:{}},r=rB.bind(null,e,t);return ZK(r,e,t),r}o(p_e,"Singular");function m_e(){let t={registry:{}},e=rB.bind(null,t);return ZK(e,t),e}o(m_e,"Co Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(U_e,"_buildMessageForResponseErrors");var q_e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(U_e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},G_e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],H_e=["query","method","url"],IX=/\/api\/v3\/?$/;function z_e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(H_e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>G_e.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IX.test(i)&&(n.url=i.replace(IX,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new q_e(n,c,a.data)}return a.data.data})}o(z_e,"graphql");function HD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>z_e(r,n,i),"newApi"),{defaults:HD.bind(null,r),endpoint:r.endpoint})}o(HD,"withDefaults");var OAt=HD(_m,{headers:{"user-agent":`octokit-graphql.js/${O_e} ${aa()}`},method:"POST",url:"/graphql"});function BX(t){return HD(t,{method:"POST",url:"/graphql"})}o(BX,"withCustomRequest");var zD="(?:[a-zA-Z0-9_-]+)",wX="\\.",bX=new RegExp(`^${zD}${wX}${zD}${wX}${zD}$`),V_e=bX.test.bind(bX);async function Y_e(t){let e=V_e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(Y_e,"auth");function $_e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o($_e,"withAuthorizationPrefix");async function J_e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=$_e(t),e(n)}o(J_e,"hook");var QX=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(Y_e.bind(null,e),{hook:J_e.bind(null,e)})},"createTokenAuth2");var VD="7.0.6";var xX=o(()=>{},"noop"),W_e=console.warn.bind(console),j_e=console.error.bind(console);function K_e(t={}){return typeof t.debug!="function"&&(t.debug=xX),typeof t.info!="function"&&(t.info=xX),typeof t.warn!="function"&&(t.warn=W_e),typeof t.error!="function"&&(t.error=j_e),t}o(K_e,"createLogger");var NX=`octokit-core.js/${VD} ${aa()}`,oB=class{static{o(this,"Octokit")}static VERSION=VD;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new eX.Collection,s={baseUrl:_m.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NX}`:NX,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_m.defaults(s),this.graphql=BX(this.request).defaults(s),this.log=K_e(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=QX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var YD="17.0.0";var X_e={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===A){c.push({title:d,message:p,file:g.path,startLine:m}),h=!0;break}h||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};E5(async()=>{let t=Fl("workdir"),e=ao.getInputList("files"),r=Fl("target"),s=ao.getInputList("fields"),n=await fd("Parsing definition",async()=>{let i=["buildx","bake"];for(let l of e)i.push("--file",l);r&&i.push(r),i.push("--print");let a=await Oa("docker",i,{ignoreReturnCode:!0,silent:!0,cwd:t});if(a.exitCode!==0)throw new Error(`buildx bake failed with: ${uB.getErrorMessage(a.stderr)}`);let c=JSON.parse(a.stdout.trim());return re(JSON.stringify(c,null,2)),c});await fd("Generating matrix",async()=>{let i=[];for(let[a,c]of Object.entries(n.target)){let l={target:a};if(s.length===0){i.push(l);continue}let u=!1;Object.keys(c).forEach(A=>{if(s.includes(A)){u=!0;let d=c[A];Array.isArray(d)?d.forEach(p=>{l[A]=p,i.push({...l})}):(l[A]=d,i.push({...l}))}}),u||i.push(l)}re(JSON.stringify(i,null,2)),sG("matrix",JSON.stringify(i))})});
`)}o(H_e,"_buildMessageForResponseErrors");var z_e=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(H_e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},V_e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y_e=["query","method","url"],IX=/\/api\/v3\/?$/;function $_e(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(Y_e.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let s=typeof e=="string"?Object.assign({query:e},r):e,n=Object.keys(s).reduce((a,c)=>V_e.includes(c)?(a[c]=s[c],a):(a.variables||(a.variables={}),a.variables[c]=s[c],a),{}),i=s.baseUrl||t.endpoint.DEFAULTS.baseUrl;return IX.test(i)&&(n.url=i.replace(IX,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new z_e(n,c,a.data)}return a.data.data})}o($_e,"graphql");function zD(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>$_e(r,n,i),"newApi"),{defaults:zD.bind(null,r),endpoint:r.endpoint})}o(zD,"withDefaults");var GAt=zD(_m,{headers:{"user-agent":`octokit-graphql.js/${G_e} ${aa()}`},method:"POST",url:"/graphql"});function BX(t){return zD(t,{method:"POST",url:"/graphql"})}o(BX,"withCustomRequest");var VD="(?:[a-zA-Z0-9_-]+)",wX="\\.",bX=new RegExp(`^${VD}${wX}${VD}${wX}${VD}$`),J_e=bX.test.bind(bX);async function W_e(t){let e=J_e(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),s=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":s?"user-to-server":"oauth"}}o(W_e,"auth");function j_e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(j_e,"withAuthorizationPrefix");async function K_e(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=j_e(t),e(n)}o(K_e,"hook");var QX=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(W_e.bind(null,e),{hook:K_e.bind(null,e)})},"createTokenAuth2");var YD="7.0.6";var xX=o(()=>{},"noop"),X_e=console.warn.bind(console),Z_e=console.error.bind(console);function eLe(t={}){return typeof t.debug!="function"&&(t.debug=xX),typeof t.info!="function"&&(t.info=xX),typeof t.warn!="function"&&(t.warn=X_e),typeof t.error!="function"&&(t.error=Z_e),t}o(eLe,"createLogger");var NX=`octokit-core.js/${YD} ${aa()}`,oB=class{static{o(this,"Octokit")}static VERSION=YD;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...s){let n=s[0]||{};if(typeof e=="function"){super(e(n));return}super(Object.assign({},e,n,n.userAgent&&e.userAgent?{userAgent:`${n.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(n=>!r.includes(n)))}}constructor(e={}){let r=new eX.Collection,s={baseUrl:_m.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(s.headers["user-agent"]=e.userAgent?`${e.userAgent} ${NX}`:NX,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=_m.defaults(s),this.graphql=BX(this.request).defaults(s),this.log=eLe(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=QX(e.auth);r.wrap("request",i.hook),this.auth=i}let n=this.constructor;for(let i=0;i<n.plugins.length;++i)Object.assign(this,n.plugins[i](this,e))}request;graphql;log;hook;auth};var $D="17.0.0";var tLe={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"],createHostedRunnerF Line truncated
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,h=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===A){c.push({title:d,message:p,file:g.path,startLine:m}),h=!0;break}h||b(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${d}`)}return c}};E5(async()=>{let t=Fl("workdir"),e=ao.getInputList("files"),r=Fl("target"),s=ao.getInputList("fields"),n=await fd("Parsing definition",async()=>{let i=["buildx","bake"];for(let l of e)i.push("--file",l);r&&i.push(r),i.push("--print");let a=await Oa("docker",i,{ignoreReturnCode:!0,silent:!0,cwd:t});if(a.exitCode!==0)throw new Error(`buildx bake failed with: ${uB.getErrorMessage(a.stderr)}`);let c=JSON.parse(a.stdout.trim());return se(JSON.stringify(c,null,2)),c});await fd("Generating matrix",async()=>{let i=[];for(let[a,c]of Object.entries(n.target)){let l={target:a};if(s.length===0){i.push(l);continue}let u=!1;Object.keys(c).forEach(A=>{if(s.includes(A)){u=!0;let d=c[A];Array.isArray(d)?d.forEach(p=>{l[A]=p,i.push({...l})}):(l[A]=d,i.push({...l}))}}),u||i.push(l)}se(JSON.stringify(i,null,2)),nG("matrix",JSON.stringify(i))})});
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+3 -3
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.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
"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
}