[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-10-14 12:26:33 +00:00
1 parent 61fa27827d
commit 9d2d0bd922
3 files changed
+158 -190

No files matched your search

Generated Vendored
+92 -93
View File
@@ -1,81 +1,80 @@
var ple=Object.create;var aE=Object.defineProperty;var fle=Object.getOwnPropertyDescriptor;var hle=Object.getOwnPropertyNames;var mle=Object.getPrototypeOf,gle=Object.prototype.hasOwnProperty;var o=(t,e)=>aE(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ele=(t,e)=>{for(var r in e)aE(t,r,{get:e[r],enumerable:!0})},yle=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of hle(e))!gle.call(t,n)&&n!==r&&aE(t,n,{get:()=>e[n],enumerable:!(s=fle(e,n))||s.enumerable});return t};var w=(t,e,r)=>(r=t!=null?ple(mle(t)):{},yle(e||!t||!t.__esModule?aE(r,"default",{value:t,enumerable:!0}):r,t));var dq=h(Yu=>{"use strict";var T4e=require("net"),Sle=require("tls"),ON=require("http"),cq=require("https"),Nle=require("events"),v4e=require("assert"),xle=require("util");Yu.httpOverHttp=Qle;Yu.httpsOverHttp=Rle;Yu.httpOverHttps=Tle;Yu.httpsOverHttps=vle;function Qle(t){var e=new qo(t);return e.request=ON.request,e}o(Qle,"httpOverHttp");function Rle(t){var e=new qo(t);return e.request=ON.request,e.createSocket=lq,e.defaultPort=443,e}o(Rle,"httpsOverHttp");function Tle(t){var e=new qo(t);return e.request=cq.request,e}o(Tle,"httpOverHttps");function vle(t){var e=new qo(t);return e.request=cq.request,e.createSocket=lq,e.defaultPort=443,e}o(vle,"httpsOverHttps");function qo(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||ON.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=uq(n,i,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(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(qo,"TunnelingAgent");xle.inherits(qo,Nle.EventEmitter);qo.prototype.addRequest=o(function(e,r,s,n){var i=this,a=MN({request:e},i.options,uq(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(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");qo.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=MN({},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")),Ga("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",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){Ga("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(f.length>0){Ga("got illegal response body from proxy"),p.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return Ga("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),Ga(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(d,"onError")},"createSocket");qo.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 lq(t,e){var r=this;qo.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=MN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=Sle.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(lq,"createSecureSocket");function uq(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(uq,"toOptions");function MN(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(MN,"mergeOptions");var Ga;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ga=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"):Ga=o(function(){},"debug");Yu.debug=Ga});var ef=h((k4e,Aq)=>{Aq.exports=dq()});var it=h((D4e,pq)=>{pq.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 Qe=h((O4e,Lq)=>{"use strict";var fq=Symbol.for("undici.error.UND_ERR"),ot=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[fq]===!0}[fq]=!0},hq=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),LN=class extends ot{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[hq]===!0}[hq]=!0},mq=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),FN=class extends ot{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[mq]===!0}[mq]=!0},gq=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),UN=class extends ot{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[gq]===!0}[gq]=!0},Eq=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),qN=class extends ot{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(KG,"isValidHeaderValue");function Yde(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(vde.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Yde,"setRequestReferrerPolicyOnRedirect");function $de(){return"allowed"}o($de,"crossOriginResourcePolicyCheck");function Wde(){return"success"}o(Wde,"corsCheck");function jde(){return"success"}o(jde,"TAOCheck");function Kde(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Kde,"appendFetchMetadata");function Xde(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&&kx(t.origin)&&!kx(uf(t))&&(e=null);break;case"same-origin":vE(t,uf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(Xde,"appendRequestOriginHeader");function sd(t,e){return t}o(sd,"coarsenTime");function Zde(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:sd(t.domainLookupStartTime,r),domainLookupEndTime:sd(t.domainLookupEndTime,r),connectionStartTime:sd(t.connectionStartTime,r),connectionEndTime:sd(t.connectionEndTime,r),secureConnectionStartTime:sd(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Zde,"clampAndCoarsenConnectionTimingInfo");function eAe(t){return sd(Ode.now(),t)}o(eAe,"coarsenedSharedCurrentTime");function tAe(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(tAe,"createOpaqueTimingInfo");function XG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(XG,"makePolicyContainer");function rAe(t){return{referrerPolicy:t.referrerPolicy}}o(rAe,"clonePolicyContainer");function sAe(t){let e=t.referrerPolicy;nl(e);let r=null;if(t.referrer==="client"){let c=JG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=_x(r),n=_x(r,!0);s.toString().length>4096&&(s=n);let i=vE(t,s),a=lf(s)&&!lf(t.url);switch(e){case"origin":return n??_x(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=uf(t);return vE(s,c)?s:lf(s)&&!lf(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(sAe,"determineRequestsReferrer");function _x(t,e){return nl(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(_x,"stripURLForReferrer");function lf(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(lf,"isURLPotentiallyTrustworthy");function nAe(t,e){if(TE===void 0)return!0;let r=ZG(e);if(r==="no metadata"||r.length===0)return!0;let s=oAe(r),n=aAe(r,s);for(let i of n){let a=i.algo,c=i.hash,l=TE.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)),cAe(l,c))return!0}return!1}o(nAe,"bytesMatch");var iAe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function ZG(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=iAe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();$G.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(ZG,"parseMetadata");function oAe(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(oAe,"getStrongestMetadata");function aAe(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(aAe,"filterMetadataListByAlgorithm");function cAe(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(cAe,"compareBase64Mixed");function lAe(t){}o(lAe,"tryUpgradeReque Line truncated
`);function zAe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(zAe,"isAsciiString");function JAe(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(JAe,"validateBoundary");function YAe(t,e){_E(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&&kE(t,HAe,i)||i.position===t.length-4&&kE(t,VAe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=$Ae(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";p=t.subarray(i.position,m-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",zAe(d)||(d=""),f=new qAe([p],u,{type:d})):f=OAe(Buffer.from(p)),_E(AH(l)),_E(typeof f=="string"&&AH(f)||LAe(f)),n.push(FAe(l,f,u))}}o(YAe,"multipartFormDataParser");function $Ae(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=id(c=>c!==10&&c!==13&&c!==58,t,e);if(a=qx(a,!0,!0,c=>c===9||c===32),!MAe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,id(c=>c===32||c===9,t,e),DAe(a)){case"content-disposition":{if(r=s=null,!kE(t,GAe,e)||(e.position+=17,r=hH(t,e),r===null))return"failure";if(kE(t,fH,e)){let c=e.position+fH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=hH(t,e),s===null))return"failure"}break}case"content-type":{let c=id(l=>l!==10&&l!==13,t,e);c=qx(c,!1,!0,l=>l===9||l===32),n=pH(c);break}case"content-transfer-encoding":{let c=id(l=>l!==10&&l!==13,t,e);c=qx(c,!1,!0,l=>l===9||l===32),i=pH(c);break}default:id(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o($Ae,"parseMultipartFormDataHeaders");function hH(t,e){_E(t[e.position-1]===34);let r=id(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(hH,"parseMultipartFormDataName");function id(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(id,"collectASequenceOfBytes");function qx(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(qx,"removeChars");function kE(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(kE,"bufferStartsWith");mH.exports={multipartFormDataParser:YAe,validateBoundary:JAe}});var cd=h((B5e,xH)=>{"use strict";var pf=Ce(),{ReadableStreamFrom:WAe,isBlobLike:EH,isReadableStreamLike:jAe,readableStreamClose:KAe,createDeferredPromise:XAe,fullyReadBody:ZAe,extractMimeType:epe,utf8DecodeBytes:IH}=Ns(),{FormData:yH}=Af(),{kState:ad}=Ha(),{webidl:tpe}=pr(),{Blob:rpe}=require("node:buffer"),Gx=require("node:assert"),{isErrored:BH,isDisturbed:spe}=require("node:stream"),{isArrayBuffer:npe}=require("node:util/types"),{serializeAMimeType:ipe}=Zr(),{multipartFormDataParser:ope}=gH(),Hx;try{let t=require("node:crypto");Hx=o(e=>t.randomInt(0,e),"random")}catch{Hx=o(t=>Math.floor(Math.random(t)),"random")}var DE=new TextEncoder;function ape(){}o(ape,"noop");var bH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,wH;bH&&(wH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!spe(e)&&!BH(e)&&e.cancel("Response object has been garbage collected").catch(ape)}));function SH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:EH(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?DE.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>KAe(l))},start(){},type:"bytes"}),Gx(jAe(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(npe(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(pf.isFormDataLike(t)){let l=`----formdata-undici-0${`${Hx(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
var xle=Object.create;var dE=Object.defineProperty;var Qle=Object.getOwnPropertyDescriptor;var Rle=Object.getOwnPropertyNames;var Tle=Object.getPrototypeOf,vle=Object.prototype.hasOwnProperty;var o=(t,e)=>dE(t,"name",{value:e,configurable:!0});var h=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Ple=(t,e)=>{for(var r in e)dE(t,r,{get:e[r],enumerable:!0})},_le=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Rle(e))!vle.call(t,n)&&n!==r&&dE(t,n,{get:()=>e[n],enumerable:!(s=Qle(e,n))||s.enumerable});return t};var b=(t,e,r)=>(r=t!=null?xle(Tle(t)):{},_le(e||!t||!t.__esModule?dE(r,"default",{value:t,enumerable:!0}):r,t));var Cq=h(Zu=>{"use strict";var Y5e=require("net"),Fle=require("tls"),FN=require("http"),gq=require("https"),Ule=require("events"),W5e=require("assert"),qle=require("util");Zu.httpOverHttp=Gle;Zu.httpsOverHttp=Hle;Zu.httpOverHttps=Vle;Zu.httpsOverHttps=zle;function Gle(t){var e=new Ho(t);return e.request=FN.request,e}o(Gle,"httpOverHttp");function Hle(t){var e=new Ho(t);return e.request=FN.request,e.createSocket=Eq,e.defaultPort=443,e}o(Hle,"httpsOverHttp");function Vle(t){var e=new Ho(t);return e.request=gq.request,e}o(Vle,"httpOverHttps");function zle(t){var e=new Ho(t);return e.request=gq.request,e.createSocket=Eq,e.defaultPort=443,e}o(zle,"httpsOverHttps");function Ho(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||FN.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=yq(n,i,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(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(Ho,"TunnelingAgent");qle.inherits(Ho,Ule.EventEmitter);Ho.prototype.addRequest=o(function(e,r,s,n){var i=this,a=UN({request:e},i.options,yq(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(d){i.removeSocket(c),c.removeListener("free",l),c.removeListener("close",u),c.removeListener("agentRemove",u)}o(u,"onCloseOrRemove")})},"addRequest");Ho.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=UN({},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")),Ha("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",d),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function l(A,p,f){process.nextTick(function(){u(A,p,f)})}o(l,"onUpgrade");function u(A,p,f){if(a.removeAllListeners(),p.removeAllListeners(),A.statusCode!==200){Ha("tunneling socket could not be established, statusCode=%d",A.statusCode),p.destroy();var m=new Error("tunneling socket could not be established, statusCode="+A.statusCode);m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}if(f.length>0){Ha("got illegal response body from proxy"),p.destroy();var m=new Error("got illegal response body from proxy");m.code="ECONNRESET",e.request.emit("error",m),s.removeSocket(n);return}return Ha("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=p,r(p)}o(u,"onConnect");function d(A){a.removeAllListeners(),Ha(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var p=new Error("tunneling socket could not be established, cause="+A.message);p.code="ECONNRESET",e.request.emit("error",p),s.removeSocket(n)}o(d,"onError")},"createSocket");Ho.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 Eq(t,e){var r=this;Ho.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=UN({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=Fle.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Eq,"createSecureSocket");function yq(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(yq,"toOptions");function UN(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(UN,"mergeOptions");var Ha;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Ha=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"):Ha=o(function(){},"debug");Zu.debug=Ha});var df=h((X5e,Iq)=>{Iq.exports=Cq()});var nt=h((Z5e,Bq)=>{Bq.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 Qe=h((e8e,$q)=>{"use strict";var wq=Symbol.for("undici.error.UND_ERR"),it=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[wq]===!0}[wq]=!0},bq=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qN=class extends it{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[bq]===!0}[bq]=!0},Sq=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),GN=class extends it{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[Sq]===!0}[Sq]=!0},Nq=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),HN=class extends it{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[Nq]===!0}[Nq]=!0},xq=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),VN=class extends it{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(oH,"isValidHeaderValue");function aAe(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(zde.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(aAe,"setRequestReferrerPolicyOnRedirect");function cAe(){return"allowed"}o(cAe,"crossOriginResourcePolicyCheck");function lAe(){return"success"}o(lAe,"corsCheck");function uAe(){return"success"}o(uAe,"TAOCheck");function dAe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(dAe,"appendFetchMetadata");function AAe(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&&Mx(t.origin)&&!Mx(Cf(t))&&(e=null);break;case"same-origin":DE(t,Cf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(AAe,"appendRequestOriginHeader");function ld(t,e){return t}o(ld,"coarsenTime");function pAe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:ld(t.domainLookupStartTime,r),domainLookupEndTime:ld(t.domainLookupEndTime,r),connectionStartTime:ld(t.connectionStartTime,r),connectionEndTime:ld(t.connectionEndTime,r),secureConnectionStartTime:ld(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(pAe,"clampAndCoarsenConnectionTimingInfo");function fAe(t){return ld(jde.now(),t)}o(fAe,"coarsenedSharedCurrentTime");function hAe(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(hAe,"createOpaqueTimingInfo");function aH(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(aH,"makePolicyContainer");function mAe(t){return{referrerPolicy:t.referrerPolicy}}o(mAe,"clonePolicyContainer");function gAe(t){let e=t.referrerPolicy;ll(e);let r=null;if(t.referrer==="client"){let c=tH();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=Ox(r),n=Ox(r,!0);s.toString().length>4096&&(s=n);let i=DE(t,s),a=yf(s)&&!yf(t.url);switch(e){case"origin":return n??Ox(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=Cf(t);return DE(s,c)?s:yf(s)&&!yf(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(gAe,"determineRequestsReferrer");function Ox(t,e){return ll(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(Ox,"stripURLForReferrer");function yf(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(yf,"isURLPotentiallyTrustworthy");function EAe(t,e){if(kE===void 0)return!0;let r=cH(e);if(r==="no metadata"||r.length===0)return!0;let s=CAe(r),n=IAe(r,s);for(let i of n){let a=i.algo,c=i.hash,l=kE.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)),BAe(l,c))return!0}return!1}o(EAe,"bytesMatch");var yAe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function cH(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=yAe.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();sH.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(cH,"parseMetadata");function CAe(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(CAe,"getStrongestMetadata");function IAe(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(IAe,"filterMetadataListByAlgorithm");function BAe(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(BAe,"compareBase64Mixed");function wAe(t){}o(wAe,"tryUpgradeReque Line truncated
`);function ipe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(ipe,"isAsciiString");function ope(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(ope,"validateBoundary");function ape(t,e){ME(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&&LE(t,spe,i)||i.position===t.length-4&&LE(t,npe,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=cpe(t,i);if(c==="failure")return"failure";let{name:l,filename:u,contentType:d,encoding:A}=c;i.position+=2;let p;{let m=t.indexOf(s.subarray(2),i.position);if(m===-1)return"failure";p=t.subarray(i.position,m-4),i.position+=p.length,A==="base64"&&(p=Buffer.from(p.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let f;u!==null?(d??="text/plain",ipe(d)||(d=""),f=new tpe([p],u,{type:d})):f=jAe(Buffer.from(p)),ME(IH(l)),ME(typeof f=="string"&&IH(f)||XAe(f)),n.push(ZAe(l,f,u))}}o(ape,"multipartFormDataParser");function cpe(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=dd(c=>c!==10&&c!==13&&c!==58,t,e);if(a=Vx(a,!0,!0,c=>c===9||c===32),!KAe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,dd(c=>c===32||c===9,t,e),WAe(a)){case"content-disposition":{if(r=s=null,!LE(t,rpe,e)||(e.position+=17,r=bH(t,e),r===null))return"failure";if(LE(t,wH,e)){let c=e.position+wH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=bH(t,e),s===null))return"failure"}break}case"content-type":{let c=dd(l=>l!==10&&l!==13,t,e);c=Vx(c,!1,!0,l=>l===9||l===32),n=BH(c);break}case"content-transfer-encoding":{let c=dd(l=>l!==10&&l!==13,t,e);c=Vx(c,!1,!0,l=>l===9||l===32),i=BH(c);break}default:dd(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(cpe,"parseMultipartFormDataHeaders");function bH(t,e){ME(t[e.position-1]===34);let r=dd(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(bH,"parseMultipartFormDataName");function dd(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(dd,"collectASequenceOfBytes");function Vx(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(Vx,"removeChars");function LE(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(LE,"bufferStartsWith");SH.exports={multipartFormDataParser:ape,validateBoundary:ope}});var fd=h((U8e,OH)=>{"use strict";var wf=Ee(),{ReadableStreamFrom:lpe,isBlobLike:xH,isReadableStreamLike:upe,readableStreamClose:dpe,createDeferredPromise:Ape,fullyReadBody:ppe,extractMimeType:fpe,utf8DecodeBytes:TH}=xs(),{FormData:QH}=Bf(),{kState:pd}=Va(),{webidl:hpe}=pr(),{Blob:mpe}=require("node:buffer"),zx=require("node:assert"),{isErrored:vH,isDisturbed:gpe}=require("node:stream"),{isArrayBuffer:Epe}=require("node:util/types"),{serializeAMimeType:ype}=Zr(),{multipartFormDataParser:Cpe}=NH(),Jx;try{let t=require("node:crypto");Jx=o(e=>t.randomInt(0,e),"random")}catch{Jx=o(t=>Math.floor(Math.random(t)),"random")}var FE=new TextEncoder;function Ipe(){}o(Ipe,"noop");var PH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,_H;PH&&(_H=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!gpe(e)&&!vH(e)&&e.cancel("Response object has been garbage collected").catch(Ipe)}));function kH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:xH(t)?r=t.stream():r=new ReadableStream({async pull(l){let u=typeof n=="string"?FE.encode(n):n;u.byteLength&&l.enqueue(u),queueMicrotask(()=>dpe(l))},start(){},type:"bytes"}),zx(upe(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(Epe(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(wf.isFormDataLike(t)){let l=`----formdata-undici-0${`${Jx(1e11)}`.padStart(11,"0")}`,u=`--${l}\r
Content-Disposition: form-data`;let d=o(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,E]of t)if(typeof E=="string"){let C=DE.encode(u+`; name="${d(A(y))}"\r
`),"normalizeLinefeeds"),p=[],f=new Uint8Array([13,10]);i=0;let m=!1;for(let[y,E]of t)if(typeof E=="string"){let C=FE.encode(u+`; name="${d(A(y))}"\r
\r
${A(E)}\r
`);p.push(C),i+=C.byteLength}else{let C=DE.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
`);p.push(C),i+=C.byteLength}else{let C=FE.encode(`${u}; name="${d(A(y))}"`+(E.name?`; filename="${d(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:m=!0}let g=DE.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(EH(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(pf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:WAe(t)}if((typeof n=="string"||pf.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:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!BH(r)){let p=new Uint8Array(d);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(SH,"extractBody");function cpe(t,e=!1){return t instanceof ReadableStream&&(Gx(!pf.isDisturbed(t),"The body has already been consumed."),Gx(!t.locked,"The stream is locked.")),SH(t,e)}o(cpe,"safelyExtractBody");function lpe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(lpe,"cloneBody");function upe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(upe,"throwIfAborted");function dpe(t){return{blob(){return od(this,r=>{let s=CH(this);return s===null?s="":s&&(s=ipe(s)),new rpe([r],{type:s})},t)},arrayBuffer(){return od(this,r=>new Uint8Array(r).buffer,t)},text(){return od(this,IH,t)},json(){return od(this,ppe,t)},formData(){return od(this,r=>{let s=CH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=ope(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new yH;return i[ad]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new yH;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 od(this,r=>new Uint8Array(r),t)}}}o(dpe,"bodyMixinMethods");function Ape(t){Object.assign(t.prototype,dpe(t))}o(Ape,"mixinBody");async function od(t,e,r){if(tpe.brandCheck(t,r),NH(t))throw new TypeError("Body is unusable: Body has already been read");upe(t[ad]);let s=XAe(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[ad].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await ZAe(t[ad].body,i,n),s.promise)}o(od,"consumeBody");function NH(t){let e=t[ad].body;return e!=null&&(e.stream.locked||pf.isDisturbed(e.stream))}o(NH,"bodyUnusable");function ppe(t){return JSON.parse(IH(t))}o(ppe,"parseJSONFromBytes");function CH(t){let e=t[ad].headersList,r=epe(e);return r==="failure"?null:r}o(CH,"bodyMimeType");xH.exports={extractBody:SH,safelyExtractBody:cpe,cloneBody:lpe,mixinBody:Ape,streamRegistry:wH,hasFinalizationRegistry:bH,bodyUnusable:NH}});var HH=h((w5e,GH)=>{"use strict";var j=require("node:assert"),Z=Ce(),{channels:QH}=Wu(),Vx=Sx(),{RequestContentLengthMismatchError:il,ResponseContentLengthMismatchError:RH,RequestAbortedError:MH,HeadersTimeoutError:fpe,HeadersOverflowError:hpe,SocketError:ld,InformationalError:ud,BodyTimeoutError:mpe,HTTPParserError:gpe,ResponseExceededMaxSizeError:Epe}=Qe(),{kUrl:LH,kReset:es,kClient:FE,kParser:Xe,kBlocking:mf,kRunning:Ft,kPending:FH,kSize:TH,kWriting:Va,kQueue:Yn,kNoRef:ff,kKeepAliveDefaultTimeout:ype,kHostHeader:Cpe,kPendingIdx:Ipe,kRunningIdx:on,kError:_r,kPipelining:UE,kSocket:al,kKeepAliveTimeoutValue:GE,kMaxHeadersSize:zx,kKeepAliveMaxTimeout:Bpe,kKeepAliveTimeoutThreshold:bpe,kHeadersTimeout:wpe,kBodyTimeout:Spe,kStrictContentLength:$x,kMaxRequests:vH,kCounter:Npe,kMaxResponseSize:xpe,kOnError:PH,kResume:Yo,kHTTPContext:UH}=it(),xs=wG(),_H=Buffer.alloc(0),OE=Buffer[Symbol.species],ME=Z.addListener,Qpe=Z.removeAllListeners,cl=Symbol("kIdleSocketValidation"),ol=Symbol("kIdleSocketValidationTimeout"),Xx=Symbol("kSocketUsed"),Jx;async function Rpe(){let t=process.env.JEST_WORKER_ID?Qx():void 0,e;try{e=await WebAssembly.compile(xG())}catch{e=await WebAssembly.compile(t||Qx())}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(Et.ptr===r);let i=s-Qi+xi.byteOffset;return Et.onStatus(new OE(xi.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(j(Et.ptr===r),Et.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{j(Et.ptr===r);let i=s-Qi+xi.byteOffset;return Et.onHeaderField(new OE(xi.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{j(Et.ptr===r);let i=s-Qi+xi.byteOffset;return Et.onHeaderValue(new OE(xi.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(j(Et.ptr===r),Et.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{j(Et.ptr===r);let i=s-Qi+xi.byteOffset;return Et.onBody(new OE(xi.buffer,i,n)) Line truncated
`);p.push(C,E,f),typeof E.size=="number"?i+=C.byteLength+E.size+f.byteLength:m=!0}let g=FE.encode(`--${l}--\r
`);p.push(g),i+=g.byteLength,m&&(i=null),n=t,s=o(async function*(){for(let y of p)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${l}`}else if(xH(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(wf.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:lpe(t)}if((typeof n=="string"||wf.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:d,done:A}=await l.next();if(A)queueMicrotask(()=>{u.close(),u.byobRequest?.respond(0)});else if(!vH(r)){let p=new Uint8Array(d);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(kH,"extractBody");function Bpe(t,e=!1){return t instanceof ReadableStream&&(zx(!wf.isDisturbed(t),"The body has already been consumed."),zx(!t.locked,"The stream is locked.")),kH(t,e)}o(Bpe,"safelyExtractBody");function wpe(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(wpe,"cloneBody");function bpe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(bpe,"throwIfAborted");function Spe(t){return{blob(){return Ad(this,r=>{let s=RH(this);return s===null?s="":s&&(s=ype(s)),new mpe([r],{type:s})},t)},arrayBuffer(){return Ad(this,r=>new Uint8Array(r).buffer,t)},text(){return Ad(this,TH,t)},json(){return Ad(this,xpe,t)},formData(){return Ad(this,r=>{let s=RH(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=Cpe(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new QH;return i[pd]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new QH;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 Ad(this,r=>new Uint8Array(r),t)}}}o(Spe,"bodyMixinMethods");function Npe(t){Object.assign(t.prototype,Spe(t))}o(Npe,"mixinBody");async function Ad(t,e,r){if(hpe.brandCheck(t,r),DH(t))throw new TypeError("Body is unusable: Body has already been read");bpe(t[pd]);let s=Ape(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[pd].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await ppe(t[pd].body,i,n),s.promise)}o(Ad,"consumeBody");function DH(t){let e=t[pd].body;return e!=null&&(e.stream.locked||wf.isDisturbed(e.stream))}o(DH,"bodyUnusable");function xpe(t){return JSON.parse(TH(t))}o(xpe,"parseJSONFromBytes");function RH(t){let e=t[pd].headersList,r=fpe(e);return r==="failure"?null:r}o(RH,"bodyMimeType");OH.exports={extractBody:kH,safelyExtractBody:Bpe,cloneBody:wpe,mixinBody:Npe,streamRegistry:_H,hasFinalizationRegistry:PH,bodyUnusable:DH}});var XH=h((G8e,KH)=>{"use strict";var j=require("node:assert"),Z=Ee(),{channels:MH}=td(),$x=Qx(),{RequestContentLengthMismatchError:ul,ResponseContentLengthMismatchError:LH,RequestAbortedError:JH,HeadersTimeoutError:Qpe,HeadersOverflowError:Rpe,SocketError:hd,InformationalError:md,BodyTimeoutError:Tpe,HTTPParserError:vpe,ResponseExceededMaxSizeError:Ppe}=Qe(),{kUrl:$H,kReset:es,kClient:HE,kParser:je,kBlocking:Nf,kRunning:Lt,kPending:YH,kSize:FH,kWriting:za,kQueue:Yn,kNoRef:bf,kKeepAliveDefaultTimeout:_pe,kHostHeader:kpe,kPendingIdx:Dpe,kRunningIdx:sn,kError:kr,kPipelining:VE,kSocket:Al,kKeepAliveTimeoutValue:JE,kMaxHeadersSize:Yx,kKeepAliveMaxTimeout:Ope,kKeepAliveTimeoutThreshold:Mpe,kHeadersTimeout:Lpe,kBodyTimeout:Fpe,kStrictContentLength:Kx,kMaxRequests:UH,kCounter:Upe,kMaxResponseSize:qpe,kOnError:qH,kResume:Wo,kHTTPContext:WH}=nt(),Qs=_G(),GH=Buffer.alloc(0),UE=Buffer[Symbol.species],qE=Z.addListener,Gpe=Z.removeAllListeners,pl=Symbol("kIdleSocketValidation"),dl=Symbol("kIdleSocketValidationTimeout"),tQ=Symbol("kSocketUsed"),Wx;async function Hpe(){let t=process.env.JEST_WORKER_ID?vx():void 0,e;try{e=await WebAssembly.compile(OG())}catch{e=await WebAssembly.compile(t||vx())}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(mt.ptr===r);let i=s-Qi+xi.byteOffset;return mt.onStatus(new UE(xi.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(j(mt.ptr===r),mt.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{j(mt.ptr===r);let i=s-Qi+xi.byteOffset;return mt.onHeaderField(new UE(xi.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{j(mt.ptr===r);let i=s-Qi+xi.byteOffset;return mt.onHeaderValue(new UE(xi.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(j(mt.ptr===r),mt.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{j(mt.ptr===r);let i=s-Qi+xi.byteOffset;return mt.onBody(new UE(xi.buffer,i,n)) Line truncated
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[Cpe],i?g+=`connection: upgrade\r
`:g+=t[kpe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[UE]&&!f[es]?g+=`connection: keep-alive\r
`:t[VE]&&!f[es]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(u))for(let y=0;y<u.length;y+=2){let E=u[y+0],C=u[y+1];if(Array.isArray(C))for(let I=0;I<C.length;I++)g+=`${E}: ${C[I]}\r
`;else g+=`${E}: ${C}\r
`}return QH.sendHeaders.hasSubscribers&&QH.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?DH(m,null,t,e,f,d,g,A):Z.isBuffer(l)?DH(m,l,t,e,f,d,g,A):Z.isBlobLike(l)?typeof l.stream=="function"?OH(m,l.stream(),t,e,f,d,g,A):Mpe(m,l,t,e,f,d,g,A):Z.isStream(l)?Ope(m,l,t,e,f,d,g,A):Z.isIterable(l)?OH(m,l,t,e,f,d,g,A):j(!1),!0}o(Dpe,"writeH1");function Ope(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"stream body cannot be pipelined");let l=!1,u=new HE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(g){Z.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let m=new MH;queueMicrotask(()=>f(m))}},"onClose"),f=o(function(m){if(!l){if(l=!0,j(n.destroyed||n[Va]&&r[Ft]<=1),n.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!m)try{u.end()}catch(g){m=g}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Z.destroy(e,m):Z.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),n.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(Ope,"writeStream");function DH(t,e,r,s,n,i,a,c){try{e?Z.isBuffer(e)&&(j(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`}return MH.sendHeaders.hasSubscribers&&MH.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?VH(m,null,t,e,f,d,g,A):Z.isBuffer(l)?VH(m,l,t,e,f,d,g,A):Z.isBlobLike(l)?typeof l.stream=="function"?zH(m,l.stream(),t,e,f,d,g,A):Kpe(m,l,t,e,f,d,g,A):Z.isStream(l)?jpe(m,l,t,e,f,d,g,A):Z.isIterable(l)?zH(m,l,t,e,f,d,g,A):j(!1),!0}o(Wpe,"writeH1");function jpe(t,e,r,s,n,i,a,c){j(i!==0||r[Lt]===0,"stream body cannot be pipelined");let l=!1,u=new $E({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),d=o(function(m){if(!l)try{!u.write(m)&&this.pause&&this.pause()}catch(g){Z.destroy(this,g)}},"onData"),A=o(function(){l||e.resume&&e.resume()},"onDrain"),p=o(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!l){let m=new JH;queueMicrotask(()=>f(m))}},"onClose"),f=o(function(m){if(!l){if(l=!0,j(n.destroyed||n[za]&&r[Lt]<=1),n.off("drain",A).off("error",f),e.removeListener("data",d).removeListener("end",f).removeListener("close",p),!m)try{u.end()}catch(g){m=g}u.destroy(m),m&&(m.code!=="UND_ERR_INFO"||m.message!=="reset")?Z.destroy(e,m):Z.destroy(e)}},"onFinished");e.on("data",d).on("end",f).on("error",f).on("close",p),e.resume&&e.resume(),n.on("drain",A).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(p)}o(jpe,"writeStream");function VH(t,e,r,s,n,i,a,c){try{e?Z.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[es]=!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[Yo]()}catch(l){t(l)}}o(DH,"writeBuffer");async function Mpe(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 il;let l=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1")),s.onRequestSent(),r[Wo]()}catch(l){t(l)}}o(VH,"writeBuffer");async function Kpe(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 ul;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[es]=!0),r[Yo]()}catch(l){t(l)}}o(Mpe,"writeBlob");async function OH(t,e,r,s,n,i,a,c){j(i!==0||r[Ft]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{j(l===null),n[_r]?f(n[_r]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let A=new HE({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[_r])throw n[_r];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(OH,"writeIterable");var HE=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[Va]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[_r])throw r[_r];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[$x])throw new il;process.emitWarning(new il)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[es]=!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[es]=!0),r[Wo]()}catch(l){t(l)}}o(Kpe,"writeBlob");async function zH(t,e,r,s,n,i,a,c){j(i!==0||r[Lt]===0,"iterator body cannot be pipelined");let l=null;function u(){if(l){let p=l;l=null,p()}}o(u,"onDrain");let d=o(()=>new Promise((p,f)=>{j(l===null),n[kr]?f(n[kr]):l=p}),"waitForDrain");n.on("close",u).on("drain",u);let A=new $E({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let p of e){if(n[kr])throw n[kr];A.write(p)||await d()}A.end()}catch(p){A.destroy(p)}finally{n.off("close",u).off("drain",u)}}o(zH,"writeIterable");var $E=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[za]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:l}=this;if(r[kr])throw r[kr];if(r.destroyed)return!1;let u=Buffer.byteLength(e);if(!u)return!0;if(n!==null&&a+u>n){if(i[Kx])throw new ul;process.emitWarning(new ul)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[es]=!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
${u.toString(16)}\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),s.onBodySent(e),d||r[Xe].timeout&&r[Xe].timeoutType===dd&&r[Xe].timeout.refresh&&r[Xe].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Va]=!1,e[_r])throw e[_r];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=u;let d=r.write(e);return r.uncork(),s.onBodySent(e),d||r[je].timeout&&r[je].timeoutType===gd&&r[je].timeout.refresh&&r[je].timeout.refresh(),d}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[za]=!1,e[kr])throw e[kr];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[$x])throw new il;process.emitWarning(new il)}e[Xe].timeout&&e[Xe].timeoutType===dd&&e[Xe].timeout.refresh&&e[Xe].timeout.refresh(),s[Yo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Va]=!1,e&&(j(s[Ft]<=1,"pipeline should only contain this request"),n(e))}};GH.exports=vpe});var KH=h((N5e,jH)=>{"use strict";var an=require("node:assert"),{pipeline:Lpe}=require("node:stream"),be=Ce(),{RequestContentLengthMismatchError:Zx,RequestAbortedError:VH,SocketError:gf,InformationalError:eQ}=Qe(),{kUrl:VE,kReset:JE,kClient:Ad,kRunning:YE,kPending:Fpe,kQueue:za,kPendingIdx:tQ,kRunningIdx:$n,kError:jn,kSocket:nr,kStrictContentLength:Upe,kOnError:rQ,kMaxConcurrentStreams:WH,kHTTP2Session:Wn,kResume:Ja,kSize:qpe,kHTTPContext:Gpe}=it(),$o=Symbol("open streams"),zH,JH=!1,zE;try{zE=require("node:http2")}catch{zE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:Hpe,HTTP2_HEADER_METHOD:Vpe,HTTP2_HEADER_PATH:zpe,HTTP2_HEADER_SCHEME:Jpe,HTTP2_HEADER_CONTENT_LENGTH:Ype,HTTP2_HEADER_EXPECT:$pe,HTTP2_HEADER_STATUS:Wpe}}=zE;function jpe(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(jpe,"parseH2Headers");async function Kpe(t,e){t[nr]=e,JH||(JH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=zE.connect(t[VE],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[WH]});r[$o]=0,r[Ad]=t,r[nr]=e,be.addListener(r,"error",Zpe),be.addListener(r,"frameError",efe),be.addListener(r,"end",tfe),be.addListener(r,"goaway",rfe),be.addListener(r,"close",function(){let{[Ad]:n}=this,{[nr]:i}=n,a=this[nr][jn]||this[jn]||new gf("closed",be.getSocketInfo(i));if(n[Wn]=null,n.destroyed){an(n[Fpe]===0);let c=n[za].splice(n[$n]);for(let l=0;l<c.length;l++){let u=c[l];be.errorRequest(n,u,a)}}}),r.unref(),t[Wn]=r,e[Wn]=r,be.addListener(e,"error",function(n){an(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[jn]=n,this[Ad][rQ](n)}),be.addListener(e,"end",function(){be.destroy(this,new gf("other side closed",be.getSocketInfo(this)))}),be.addListener(e,"close",function(){let n=this[jn]||new gf("closed",be.getSocketInfo(this));t[nr]=null,this[Wn]!=null&&this[Wn].destroy(n),t[tQ]=t[$n],an(t[YE]===0),t.emit("disconnect",t[VE],[t],n),t[Ja]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return nfe(t,...n)},resume(){Xpe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(Kpe,"connectH2");function Xpe(t){let e=t[nr];e?.destroyed===!1&&(t[qpe]===0&&t[WH]===0?(e.unref(),t[Wn].unref()):(e.ref(),t[Wn].ref()))}o(Xpe,"resumeH2");function Zpe(t){an(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nr][jn]=t,this[Ad][rQ](t)}o(Zpe,"onHttp2SessionError");function efe(t,e,r){if(r===0){let s=new eQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[nr][jn]=s,this[Ad][rQ](s)}}o(efe,"onHttp2FrameError");function tfe(){let t=new gf("other side closed",be.getSocketInfo(this[nr]));this.destroy(t),be.destroy(this[nr],t)}o(tfe,"onHttp2SessionEnd");function rfe(t){let e=this[jn]||new gf(`HTTP/2: "GOAWAY" frame received with code ${t}`,be.getSocketInfo(this)),r=this[Ad];if(r[nr]=null,r[Gpe]=null,this[Wn]!=null&&(this[Wn].destroy(e),this[Wn]=null),be.destroy(this[nr],e),r[$n]<r[za].length){let s=r[za][r[$n]];r[za][r[$n]++]=null,be.errorRequest(r,s,e),r[tQ]=r[$n]}an(r[YE]===0),r.emit("disconnect",r[VE],[r],e),r[Ja]()}o(rfe,"onHTTP2GoAway");function sfe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(sfe,"shouldSendContentLength");function nfe(t,e){let r=t[Wn],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return be.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let b=0;b<u.length;b+=2){let N=u[b+0],Q=u[b+1];if(Array.isArray(Q))for(let D=0;D<Q.length;D++)A[N]?A[N]+=`,${Q[D]}`:A[N]=Q[D];else A[N]=Q}let p,{hostname:f,port:m}=t[VE];A[Hpe]=i||`${f}${m?`:${m}`:""}`,A[Vpe]=s;let g=o(b=>{e.aborted||e.completed||(b=b||new VH,be.errorRequest(t,e,b),p!=null&&be.destroy(p,b),be.destroy(d,b),t[za][t[$n]++]=null,t[Ja]())},"abort");try{e.onConnect(g)}catch(b){be.errorRequest(t,e,b)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[$o],t[za][t[$n]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[$o],t[za][t[$n]++]=null}),p.once("close",()=>{r[$o]-=1,r[$o]===0&&r.unref()}),!0;A[zpe]=n,A[Jpe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=be.bodyLength(d);if(be.isFormDataLike(d)){zH??=cd().extractBody;let[b,N]=zH(d);A["content-type"]=N,d=b.stream,E=b.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),sfe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Upe])return be.errorRequest(t,e,n Line truncated
`,this[Tfe]=l??3e5,this[Rfe]=n??3e5,this[vfe]=C??!0,this[Pfe]=b,this[oQ]=Q,this[$a]=null,this[Mfe]=ae>-1?ae:-1,this[Ffe]=qe??100,this[Rt]=null,this[Kn]=[],this[jo]=0,this[Xn]=0,this[If]=ue=>cQ(this,ue),this[Lfe]=ue=>lV(this,ue)}get pipelining(){return this[KE]}set pipelining(e){this[KE]=e,this[If](!0)}get[wf](){return this[Kn].length-this[Xn]}get[bf](){return this[Xn]-this[jo]}get[Bf](){return this[Kn].length-this[jo]}get[Bfe](){return!!this[Rt]&&!this[fd]&&!this[Rt].destroyed}get[iQ](){return!!(this[Rt]?.busy(null)||this[Bf]>=(cV(this)||1)||this[wf]>0)}[Ife](e){uV(this),this.once("connect",e)}[Ofe](e,r){let s=e.origin||this[Ti].origin,n=new hfe(s,e,r);return this[Kn].push(n),this[ul]||(ll.bodyLength(n.body)==null&&ll.isIterable(n.body)?(this[ul]=1,queueMicrotask(()=>cQ(this))):this[If](!0)),this[ul]&&this[Wa]!==2&&this[iQ]&&(this[Wa]=2),this[Wa]<2}async[kfe](){return new Promise(e=>{this[Bf]?this[$a]=e:e(null)})}async[Dfe](e){return new Promise(r=>{let s=this[Kn].splice(this[Xn]);for(let i=0;i<s.length;i++){let a=s[i];ll.errorRequest(this,a,e)}let n=o(()=>{this[$a]&&(this[$a](),this[$a]=null),r(null)},"callback");this[Rt]?(this[Rt].destroy(e,n),this[Rt]=null):queueMicrotask(n),this[If]()})}},Gfe=jE();function lV(t,e){if(t[bf]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Wo(t[Xn]===t[jo]);let r=t[Kn].splice(t[jo]);for(let s=0;s<r.length;s++){let n=r[s];ll.errorRequest(t,n,e)}Wo(t[Bf]===0)}}o(lV,"onError");async function uV(t){Wo(!t[fd]),Wo(!t[Rt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ti];if(r[0]==="["){let i=r.indexOf("]");Wo(i!==-1);let a=r.substring(1,i);Wo(aV.isIP(a)),r=a}t[fd]=!0,pd.beforeConnect.hasSubscribers&&pd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ya],localAddress:t[Cf]},connector:t[yf]});try{let i=await new Promise((a,c)=>{t[yf]({host:e,hostname:r,protocol:s,port:n,servername:t[Ya],localAddress:t[Cf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){ll.destroy(i.on("error",iV),new Efe);return}Wo(i);try{t[Rt]=i.alpnProtocol==="h2"?await qfe(t,i):await Ufe(t,i)}catch(a){throw i.destroy().on("error",iV),a}t[fd]=!1,i[_fe]=0,i[oQ]=t[oQ],i[Cfe]=t,i[wfe]=null,pd.connected.hasSubscribers&&pd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ya],localAddress:t[Cf]},connector:t[yf],socket:i}),t.emit("connect",t[Ti],[t])}catch(i){if(t.destroyed)return;if(t[fd]=!1,pd.connectError.hasSubscribers&&pd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[Rt]?.version,servername:t[Ya],localAddress:t[Cf]},connector:t[yf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Wo(t[bf]===0);t[wf]>0&&t[Kn][t[Xn]].servername===t[Ya];){let a=t[Kn][t[Xn]++];ll.errorRequest(t,a,i)}else lV(t,i);t.emit("connectionError",t[Ti],[t],i)}t[If]()}o(uV,"connect");function oV(t){t[Wa]=0,t.emit("drain",t[Ti],[t])}o(oV,"emitDrain");function cQ(t,e){t[ul]!==2&&(t[ul]=2,Hfe(t,e),t[ul]=0,t[jo]>256&&(t[Kn].splice(0,t[jo]),t[Xn]-=t[jo],t[jo]=0))}o(cQ,"resume");function Hfe(t,e){for(;;){if(t.destroyed){Wo(t[wf]===0);return}if(t[$a]&&!t[Bf]){t[$a](),t[$a]=null;return}if(t[Rt]&&t[Rt].resume(),t[iQ])t[Wa]=2;else if(t[Wa]===2){e?(t[Wa]=1,queueMicrotask(()=>oV(t))):oV(t);continue}if(t[wf]===0||t[bf]>=(cV(t)||1))return;let r=t[Kn][t[Xn]];if(t[Ti].protocol==="https:"&&t[Ya]!==r.servername){if(t[bf]>0)return;t[Ya]=r.servername,t[Rt]?.destroy(new gfe("servername changed"),()=>{t[Rt]=null,cQ(t)})}if(t[fd])return;if(!t[Rt]){uV(t);return}if(t[Rt].destroyed||t[Rt].busy(r))return;!r.aborted&&t[Rt].write(r)?t[Xn]++:t[Kn].splice(t[Xn],1)}}o(Hfe,"_resume");dV.exports=aQ});var lQ=h((D5e,AV)=>{"use strict";var XE=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)}};AV.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new XE}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new XE),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var fV=h((M5e,pV)=>{var{kFree:Vfe,kConnected:zfe,kPending:Jfe,kQueued:Yfe,kRunning:$fe,kSize:Wfe}=it(),dl=Symbol("pool"),uQ=class{static{o(this,"PoolStats")}constructor(e){this[dl]=e}get connected(){return this[dl][zfe]}get free(){return this[dl][Vfe]}get pending(){return this[dl][Jfe]}get queued(){return this[dl][Yfe]}get running(){return this[dl][$fe]}get size(){return this[dl][Wfe]}};pV.exports=uQ});var mQ=h((F5e,wV)=>{"use strict";var jfe=Zu(),Kfe=lQ(),{kConnected:dQ,kSize:hV,kRunning:mV,kPending:gV,kQueued:Sf,kBusy:Xfe,kFree:Zfe,kUrl:ehe,kClose:the,kDestroy:rhe,kDispatch:she}=it(),nhe=fV(),ts=Symbol("cl Line truncated
`,"latin1"),r!==null&&n!==r){if(s[Kx])throw new ul;process.emitWarning(new ul)}e[je].timeout&&e[je].timeoutType===gd&&e[je].timeout.refresh&&e[je].timeout.refresh(),s[Wo]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[za]=!1,e&&(j(s[Lt]<=1,"pipeline should only contain this request"),n(e))}};KH.exports=zpe});var oV=h((V8e,iV)=>{"use strict";var nn=require("node:assert"),{pipeline:Xpe}=require("node:stream"),Be=Ee(),{RequestContentLengthMismatchError:rQ,RequestAbortedError:ZH,SocketError:xf,InformationalError:sQ}=Qe(),{kUrl:YE,kReset:jE,kClient:Ed,kRunning:KE,kPending:Zpe,kQueue:Ja,kPendingIdx:nQ,kRunningIdx:Wn,kError:Kn,kSocket:nr,kStrictContentLength:efe,kOnError:iQ,kMaxConcurrentStreams:nV,kHTTP2Session:jn,kResume:$a,kSize:tfe,kHTTPContext:rfe}=nt(),jo=Symbol("open streams"),eV,tV=!1,WE;try{WE=require("node:http2")}catch{WE={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:sfe,HTTP2_HEADER_METHOD:nfe,HTTP2_HEADER_PATH:ife,HTTP2_HEADER_SCHEME:ofe,HTTP2_HEADER_CONTENT_LENGTH:afe,HTTP2_HEADER_EXPECT:cfe,HTTP2_HEADER_STATUS:lfe}}=WE;function ufe(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(ufe,"parseH2Headers");async function dfe(t,e){t[nr]=e,tV||(tV=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=WE.connect(t[YE],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[nV]});r[jo]=0,r[Ed]=t,r[nr]=e,Be.addListener(r,"error",pfe),Be.addListener(r,"frameError",ffe),Be.addListener(r,"end",hfe),Be.addListener(r,"goaway",mfe),Be.addListener(r,"close",function(){let{[Ed]:n}=this,{[nr]:i}=n,a=this[nr][Kn]||this[Kn]||new xf("closed",Be.getSocketInfo(i));if(n[jn]=null,n.destroyed){nn(n[Zpe]===0);let c=n[Ja].splice(n[Wn]);for(let l=0;l<c.length;l++){let u=c[l];Be.errorRequest(n,u,a)}}}),r.unref(),t[jn]=r,e[jn]=r,Be.addListener(e,"error",function(n){nn(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Kn]=n,this[Ed][iQ](n)}),Be.addListener(e,"end",function(){Be.destroy(this,new xf("other side closed",Be.getSocketInfo(this)))}),Be.addListener(e,"close",function(){let n=this[Kn]||new xf("closed",Be.getSocketInfo(this));t[nr]=null,this[jn]!=null&&this[jn].destroy(n),t[nQ]=t[Wn],nn(t[KE]===0),t.emit("disconnect",t[YE],[t],n),t[$a]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return Efe(t,...n)},resume(){Afe(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(dfe,"connectH2");function Afe(t){let e=t[nr];e?.destroyed===!1&&(t[tfe]===0&&t[nV]===0?(e.unref(),t[jn].unref()):(e.ref(),t[jn].ref()))}o(Afe,"resumeH2");function pfe(t){nn(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[nr][Kn]=t,this[Ed][iQ](t)}o(pfe,"onHttp2SessionError");function ffe(t,e,r){if(r===0){let s=new sQ(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[nr][Kn]=s,this[Ed][iQ](s)}}o(ffe,"onHttp2FrameError");function hfe(){let t=new xf("other side closed",Be.getSocketInfo(this[nr]));this.destroy(t),Be.destroy(this[nr],t)}o(hfe,"onHttp2SessionEnd");function mfe(t){let e=this[Kn]||new xf(`HTTP/2: "GOAWAY" frame received with code ${t}`,Be.getSocketInfo(this)),r=this[Ed];if(r[nr]=null,r[rfe]=null,this[jn]!=null&&(this[jn].destroy(e),this[jn]=null),Be.destroy(this[nr],e),r[Wn]<r[Ja].length){let s=r[Ja][r[Wn]];r[Ja][r[Wn]++]=null,Be.errorRequest(r,s,e),r[nQ]=r[Wn]}nn(r[KE]===0),r.emit("disconnect",r[YE],[r],e),r[$a]()}o(mfe,"onHTTP2GoAway");function gfe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(gfe,"shouldSendContentLength");function Efe(t,e){let r=t[jn],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:l,headers:u}=e,{body:d}=e;if(a)return Be.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<u.length;w+=2){let N=u[w+0],R=u[w+1];if(Array.isArray(R))for(let D=0;D<R.length;D++)A[N]?A[N]+=`,${R[D]}`:A[N]=R[D];else A[N]=R}let p,{hostname:f,port:m}=t[YE];A[sfe]=i||`${f}${m?`:${m}`:""}`,A[nfe]=s;let g=o(w=>{e.aborted||e.completed||(w=w||new ZH,Be.errorRequest(t,e,w),p!=null&&Be.destroy(p,w),Be.destroy(d,w),t[Ja][t[Wn]++]=null,t[$a]())},"abort");try{e.onConnect(g)}catch(w){Be.errorRequest(t,e,w)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),p=r.request(A,{endStream:!1,signal:l}),p.id&&!p.pending?(e.onUpgrade(null,null,p),++r[jo],t[Ja][t[Wn]++]=null):p.once("ready",()=>{e.onUpgrade(null,null,p),++r[jo],t[Ja][t[Wn]++]=null}),p.once("close",()=>{r[jo]-=1,r[jo]===0&&r.unref()}),!0;A[ife]=n,A[ofe]="https";let y=s==="PUT"||s==="POST"||s==="PATCH";d&&typeof d.read=="function"&&d.read(0);let E=Be.bodyLength(d);if(Be.isFormDataLike(d)){eV??=fd().extractBody;let[w,N]=eV(d);A["content-type"]=N,d=w.stream,E=w.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),gfe(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[efe])return Be.errorRequest(t,e,n Line truncated
`,this[Vfe]=l??3e5,this[Hfe]=n??3e5,this[zfe]=C??!0,this[Jfe]=w,this[lQ]=R,this[Wa]=null,this[Kfe]=be>-1?be:-1,this[Zfe]=ze??100,this[xt]=null,this[Xn]=[],this[Xo]=0,this[Zn]=0,this[vf]=he=>dQ(this,he),this[Xfe]=he=>EV(this,he)}get pipelining(){return this[ty]}set pipelining(e){this[ty]=e,this[vf](!0)}get[kf](){return this[Xn].length-this[Zn]}get[_f](){return this[Zn]-this[Xo]}get[Pf](){return this[Xn].length-this[Xo]}get[Ofe](){return!!this[xt]&&!this[Cd]&&!this[xt].destroyed}get[cQ](){return!!(this[xt]?.busy(null)||this[Pf]>=(gV(this)||1)||this[kf]>0)}[Dfe](e){yV(this),this.once("connect",e)}[jfe](e,r){let s=e.origin||this[Ti].origin,n=new Rfe(s,e,r);return this[Xn].push(n),this[hl]||(fl.bodyLength(n.body)==null&&fl.isIterable(n.body)?(this[hl]=1,queueMicrotask(()=>dQ(this))):this[vf](!0)),this[hl]&&this[ja]!==2&&this[cQ]&&(this[ja]=2),this[ja]<2}async[Yfe](){return new Promise(e=>{this[Pf]?this[Wa]=e:e(null)})}async[Wfe](e){return new Promise(r=>{let s=this[Xn].splice(this[Zn]);for(let i=0;i<s.length;i++){let a=s[i];fl.errorRequest(this,a,e)}let n=o(()=>{this[Wa]&&(this[Wa](),this[Wa]=null),r(null)},"callback");this[xt]?(this[xt].destroy(e,n),this[xt]=null):queueMicrotask(n),this[vf]()})}},rhe=ey();function EV(t,e){if(t[_f]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ko(t[Zn]===t[Xo]);let r=t[Xn].splice(t[Xo]);for(let s=0;s<r.length;s++){let n=r[s];fl.errorRequest(t,n,e)}Ko(t[Pf]===0)}}o(EV,"onError");async function yV(t){Ko(!t[Cd]),Ko(!t[xt]);let{host:e,hostname:r,protocol:s,port:n}=t[Ti];if(r[0]==="["){let i=r.indexOf("]");Ko(i!==-1);let a=r.substring(1,i);Ko(mV.isIP(a)),r=a}t[Cd]=!0,yd.beforeConnect.hasSubscribers&&yd.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[xt]?.version,servername:t[Ya],localAddress:t[Tf]},connector:t[Rf]});try{let i=await new Promise((a,c)=>{t[Rf]({host:e,hostname:r,protocol:s,port:n,servername:t[Ya],localAddress:t[Tf]},(l,u)=>{l?c(l):a(u)})});if(t.destroyed){fl.destroy(i.on("error",fV),new Pfe);return}Ko(i);try{t[xt]=i.alpnProtocol==="h2"?await the(t,i):await ehe(t,i)}catch(a){throw i.destroy().on("error",fV),a}t[Cd]=!1,i[$fe]=0,i[lQ]=t[lQ],i[kfe]=t,i[Lfe]=null,yd.connected.hasSubscribers&&yd.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[xt]?.version,servername:t[Ya],localAddress:t[Tf]},connector:t[Rf],socket:i}),t.emit("connect",t[Ti],[t])}catch(i){if(t.destroyed)return;if(t[Cd]=!1,yd.connectError.hasSubscribers&&yd.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[xt]?.version,servername:t[Ya],localAddress:t[Tf]},connector:t[Rf],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ko(t[_f]===0);t[kf]>0&&t[Xn][t[Zn]].servername===t[Ya];){let a=t[Xn][t[Zn]++];fl.errorRequest(t,a,i)}else EV(t,i);t.emit("connectionError",t[Ti],[t],i)}t[vf]()}o(yV,"connect");function hV(t){t[ja]=0,t.emit("drain",t[Ti],[t])}o(hV,"emitDrain");function dQ(t,e){t[hl]!==2&&(t[hl]=2,she(t,e),t[hl]=0,t[Xo]>256&&(t[Xn].splice(0,t[Xo]),t[Zn]-=t[Xo],t[Xo]=0))}o(dQ,"resume");function she(t,e){for(;;){if(t.destroyed){Ko(t[kf]===0);return}if(t[Wa]&&!t[Pf]){t[Wa](),t[Wa]=null;return}if(t[xt]&&t[xt].resume(),t[cQ])t[ja]=2;else if(t[ja]===2){e?(t[ja]=1,queueMicrotask(()=>hV(t))):hV(t);continue}if(t[kf]===0||t[_f]>=(gV(t)||1))return;let r=t[Xn][t[Zn]];if(t[Ti].protocol==="https:"&&t[Ya]!==r.servername){if(t[_f]>0)return;t[Ya]=r.servername,t[xt]?.destroy(new vfe("servername changed"),()=>{t[xt]=null,dQ(t)})}if(t[Cd])return;if(!t[xt]){yV(t);return}if(t[xt].destroyed||t[xt].busy(r))return;!r.aborted&&t[xt].write(r)?t[Zn]++:t[Xn].splice(t[Zn],1)}}o(she,"_resume");CV.exports=uQ});var AQ=h((Z8e,IV)=>{"use strict";var ry=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)}};IV.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new ry}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ry),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var wV=h((t6e,BV)=>{var{kFree:nhe,kConnected:ihe,kPending:ohe,kQueued:ahe,kRunning:che,kSize:lhe}=nt(),ml=Symbol("pool"),pQ=class{static{o(this,"PoolStats")}constructor(e){this[ml]=e}get connected(){return this[ml][ihe]}get free(){return this[ml][nhe]}get pending(){return this[ml][ohe]}get queued(){return this[ml][ahe]}get running(){return this[ml][che]}get size(){return this[ml][lhe]}};BV.exports=pQ});var yQ=h((s6e,_V)=>{"use strict";var uhe=id(),dhe=AQ(),{kConnected:fQ,kSize:bV,kRunning:SV,kPending:NV,kQueued:Df,kBusy:Ahe,kFree:phe,kUrl:fhe,kClose:hhe,kDestroy:mhe,kDispatch:ghe}=nt(),Ehe=wV(),ts=Symbol("cl Line truncated
${s.count} ${s.noun} ${s.is} pending:
${e.format(r)}
`.trim())}};TJ.exports=mR});var my=h((M8e,DJ)=>{"use strict";var PJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Tge}=Qe(),vge=gd();kJ()===void 0&&_J(new vge);function _J(t){if(!t||typeof t.dispatch!="function")throw new Tge("Argument agent must implement Agent");Object.defineProperty(globalThis,PJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(_J,"setGlobalDispatcher");function kJ(){return globalThis[PJ]}o(kJ,"getGlobalDispatcher");DJ.exports={setGlobalDispatcher:_J,getGlobalDispatcher:kJ}});var gy=h((U8e,OJ)=>{"use strict";OJ.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 LJ=h((G8e,MJ)=>{"use strict";var Pge=WE();MJ.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 Pge(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var UJ=h((V8e,FJ)=>{"use strict";var _ge=oy();FJ.exports=t=>e=>o(function(s,n){return e(s,new _ge({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var GJ=h((J8e,qJ)=>{"use strict";var kge=Ce(),{InvalidArgumentError:Dge,RequestAbortedError:Oge}=Qe(),Mge=gy(),gR=class extends Mge{static{o(this,"DumpHandler")}#e=1024*1024;#t=null;#s=!1;#r=!1;#n=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Dge("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,s,n){let a=kge.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new Oge(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#s||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#n=this.#n+e.length,this.#n>=this.#e&&(this.#s=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#s){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Lge({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new gR({maxSize:i},n);return e(s,a)},"Intercept")}o(Lge,"createDumpInterceptor");qJ.exports=Lge});var zJ=h(($8e,VJ)=>{"use strict";var{isIP:Fge}=require("node:net"),{lookup:Uge}=require("node:dns"),qge=gy(),{InvalidArgumentError:xd,InformationalError:Gge}=Qe(),HJ=Math.pow(2,31)-1,ER=class{static{o(this,"DNSInstance")}#e=0;#t=0;#s=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.#n}get full(){return this.#s.size===this.#t}runLookup(e,r,s){let n=this.#s.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 Gge("No DNS entries found"));return}this.setRecords(e,c);let l=this.#s.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#s.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}`)}}#r(e,r,s){Uge(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===HJ?(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===HJ?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.#s.set(e.hostname,n)}getHandler(e,r){return new yR(this,e,r)}},yR=class extends qge{static{o(this,"DNSDispatchHandler")}#e=null;#t=null;#s=null Line truncated
${i}`;break;case"retry":w3(i)&&(r[n]=i);break;case"id":S3(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&w3(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&S3(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};N3.exports={EventSourceStream:oT}});var D3=h((K6e,k3)=>{"use strict";var{pipeline:jIe}=require("node:stream"),{fetching:KIe}=Ff(),{makeRequest:XIe}=Td(),{webidl:ta}=pr(),{EventSourceStream:ZIe}=x3(),{parseMIMEType:eBe}=Zr(),{createFastMessageEvent:tBe}=Od(),{isNetworkError:Q3}=Mf(),{delay:rBe}=nT(),{kEnumerableProperty:Nl}=Ce(),{environmentSettingsObject:R3}=Ns(),T3=!1,v3=3e3,Zf=0,P3=1,eh=2,sBe="anonymous",nBe="use-credentials",qd=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=Zf;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),ta.util.markAsUncloneable(this);let s="EventSource constructor";ta.argumentLengthCheck(arguments,1,s),T3||(T3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=ta.converters.USVString(e,s,"url"),r=ta.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:v3};let n=R3,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#t=i.href;let a=sBe;r.withCredentials&&(a=nBe,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=R3.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=XIe(c),this.#l()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#l(){if(this.#r===eh)return;this.#r=Zf;let e={request:this.#n,dispatcher:this.#a},r=o(s=>{Q3(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(Q3(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?eBe(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.#r=P3,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let c=new ZIe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(tBe(l.type,l.options))},"push")});jIe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=KIe(e)}async#c(){this.#r!==eh&&(this.#r=Zf,this.dispatchEvent(new Event("error")),await rBe(this.#o.reconnectionTime),this.#r===Zf&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){ta.brandCheck(this,t),this.#r!==eh&&(this.#r=eh,this.#i.abort(),this.#n=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},_3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:P3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eh,writable:!1}};Object.defineProperties(qd,_3);Object.defineProperties(qd.prototype,_3);Object.defineProperties(qd.prototype,{close:Nl,onerror:Nl,onmessage:Nl,onopen:Nl,readyState:Nl,url:Nl,withCredentials:Nl});ta.converters.EventSourceInitDict=ta.dictionaryConverter([{key:"withCredentials",converter:ta.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:ta.converters.any}]);k3.exports={EventSource:qd,defaultReconnectionTime:v3}});var Hd=h((Z6e,te)=>{"use strict";var iBe=hd(),O3=rf(),oBe=md(),aBe=_V(),cBe=gd(),lBe=RQ(),uBe=sz(),dBe=lz(),M3=Qe(),nC=Ce(),{InvalidArgumentError:sC}=M3,Gd=Wz(),ABe=nf(),pBe=uR(),fBe=vJ(),hBe=pR(),mBe=KQ(),gBe=oy(),{getGlobalDispatcher:L3,setGlobalDispatcher:EBe}=my(),yBe=gy(),CBe=WE(),IBe=jE();Object.assign(O3.prototype,Gd);te.exports.Dispatcher=O3;te.exports.Client=iBe;te.exports.Pool=oBe;te.exports.BalancedPool=aBe;te.exports.Agent=cBe;te.exports. Line truncated
%s`,N,N,C,s);var Q=C.type==="*"?lv:C.type==="?"?cv:"\\"+C.type;n=!0,s=s.slice(0,C.reStart)+Q+"\\("+N}m(),i&&(s+="\\\\");var D=!1;switch(s.charAt(0)){case"[":case".":case"(":D=!0}for(var ae=c.length-1;ae>-1;ae--){var Te=c[ae],De=s.slice(0,Te.reStart),qe=s.slice(Te.reStart,Te.reEnd-8),ye=s.slice(Te.reEnd-8,Te.reEnd),Ye=s.slice(Te.reEnd);ye+=Ye;var ue=De.split("(").length-1,vr=Ye;for(g=0;g<ue;g++)vr=vr.replace(/\)[+*?]?/,"");Ye=vr;var J="";Ye===""&&e!==RC&&(J="$");var Oe=De+qe+Ye+J+ye;s=Oe}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=p+s),e===RC)return[s,n];if(!n)return qSe(t);var Bi=r.nocase?"i":"";try{var Fa=new RegExp("^"+s+"$",Bi)}catch{return new RegExp("$.")}return Fa._glob=t,Fa._src=s,Fa}o(FSe,"parse");Fs.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=USe;function USe(){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?lv:e.dot?PSe:_Se,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===Pl?r:typeof a=="string"?GSe(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(USe,"makeRe");Fs.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;bh.sep!=="/"&&(e=e.split(bh.sep).join("/")),e=e.split(H4),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){return e.indexOf(Pl)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};Gt.prototype._matchGlobstar=function(t,e,r,s,n){var i,a=-1;for(i=n;i<e.length;i++)if(e[i]===Pl){a=i;break}var c=-1;for(i=e.length-1;i>=0;i--)if(e[i]===Pl){c=i;break}var l=e.slice(n,a),u=r?e.slice(a+1):e.slice(a+1,c),d=r?[]:e.slice(c+1);if(l.length){var A=t.slice(s,s+l.length);if(!this._matchOne(A,l,r,0,0))return!1;s+=l.length}var p=0;if(d.length){if(d.length+s>t.length)return!1;var f=t.length-d.length;if(this._matchOne(t,d,r,f,0))p=d.length;else{if(t[t.length-1]!==""||s+d.length===t.length||(f--,!this._matchOne(t,d,r,f,0)))return!1;p=d.length+1}}if(!u.length){var m=!!p;for(i=s;i<t.length-p;i++){var g=String(t[i]);if(m=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||m}for(var y=[[[],0]],E=y[0],C=0,I=[0],b=0;b<u.length;b++){var N=u[b];N===Pl?(I.push(C),E=[[],0],y.push(E)):(E[0].push(N),C++)}for(var Q=y.length-1,D=t.length-p,ae=0;ae<y.length;ae++)y[ae][1]=D-(I[Q--]+y[ae][0].length);return!!this._matchGlobStarBodySections(t,y,s,0,r,0,!!p)};Gt.prototype._matchGlobStarBodySections=function(t,e,r,s,n,i,a){var c=e[s];if(!c){for(var l=r;l<t.length;l++){a=!0;var u=t[l];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1}return a}for(var d=c[0],A=c[1];r<=A;){var p=this._matchOne(t.slice(0,r+d.length),d,n,r,0);if(p&&i<this.maxGlobstarRecursion){var f=this._matchGlobStarBodySections(t,e,r+d.length,s+1,n,i+1,a);if(f!==!1)return f}var u=t[r];if(u==="."||u===".."||!this.options.dot&&u.charAt(0)===".")return!1;r++}return n||null};Gt.prototype._matchOne=function(t,e,r,s,n){var i,a,c,l;for(i=s,a=n,c=t.length,l=e.length;i<c&&a<l;i++,a++){this.debug("matchOne loop");var u=e[a],d=t[i];if(this.debug(e,u,d),u===!1||u===Pl)return!1;var A;if(typeof u=="string"?(A=d===u,this.debug("string match",u,d,A)):(A=d.match(u),this.debug("pattern match",u,d,A)),!A)return!1}if(i===c&&a===l)return!0;if(i===c)return r;if(a===l)return i===c-1&&t[i]==="";throw new Error("wtf?")};function qSe(t){return t.replace(/\\(.)/g,"$1")}o(qSe,"globUnescape");function GSe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(GSe,"regExpEscape")});var Nh=h((T7e,j4)=>{"use strict";var jSe="2.0.0",KSe=Number.MAX_SAFE_INTEGER||9007199254740991,XSe=16,ZSe=250,eNe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];j4.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:XSe,MAX_SAFE_BUILD_LENGTH:ZSe,MAX_SAFE_INTEGER:KSe,RELEASE_TYPES:eNe,SEMVER_SPEC_VERSION:jSe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xh=h((v7e,K4)=>{"use strict";var tNe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};K4.exports=tNe});var Zd=h((Fi,X4)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:dv,MAX_SAFE_BUILD_LENGTH:rNe,MAX_LENGTH:sNe}=Nh(),nNe=xh();Fi=X4.exports={};var iNe=Fi.re=[],oNe=Fi.safeRe=[],L=Fi.src=[],aNe=Fi.safeSrc=[],F=Fi.t={},cNe=0,Av="[a-zA-Z0-9-]",lNe=[["\\s",1],["\\d", Line truncated
`.trim())}};FJ.exports=yR});var Cy=h((t9e,VJ)=>{"use strict";var qJ=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Vge}=Qe(),zge=wd();HJ()===void 0&&GJ(new zge);function GJ(t){if(!t||typeof t.dispatch!="function")throw new Vge("Argument agent must implement Agent");Object.defineProperty(globalThis,qJ,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(GJ,"setGlobalDispatcher");function HJ(){return globalThis[qJ]}o(HJ,"getGlobalDispatcher");VJ.exports={setGlobalDispatcher:GJ,getGlobalDispatcher:HJ}});var Iy=h((n9e,zJ)=>{"use strict";zJ.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 $J=h((o9e,JJ)=>{"use strict";var Jge=ZE();JJ.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 Jge(r,a,n,i);return r(c,l)},"redirectInterceptor")}});var WJ=h((c9e,YJ)=>{"use strict";var $ge=uy();YJ.exports=t=>e=>o(function(s,n){return e(s,new $ge({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var KJ=h((u9e,jJ)=>{"use strict";var Yge=Ee(),{InvalidArgumentError:Wge,RequestAbortedError:jge}=Qe(),Kge=Iy(),CR=class extends Kge{static{o(this,"DumpHandler")}#e=1024*1024;#r=null;#n=!1;#t=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Wge("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#r=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#t=!0,this.#i=e}onHeaders(e,r,s,n){let a=Yge.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new jge(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#t?!0:this.#a.onHeaders(e,r,s,n)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#t?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#t){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Xge({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new CR({maxSize:i},n);return e(s,a)},"Intercept")}o(Xge,"createDumpInterceptor");jJ.exports=Xge});var e$=h((A9e,ZJ)=>{"use strict";var{isIP:Zge}=require("node:net"),{lookup:eEe}=require("node:dns"),tEe=Iy(),{InvalidArgumentError:_d,InformationalError:rEe}=Qe(),XJ=Math.pow(2,31)-1,IR=class{static{o(this,"DNSInstance")}#e=0;#r=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#r=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#t,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#r}runLookup(e,r,s){let n=this.#n.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.#r};if(n==null)this.lookup(e,i,(a,c)=>{if(a||c==null||c.length===0){s(a??new rEe("No DNS entries found"));return}this.setRecords(e,c);let l=this.#n.get(e.hostname),u=this.pick(e,l,i.affinity),d;typeof u.port=="number"?d=`:${u.port}`:e.port!==""?d=`:${e.port}`:d="",s(null,`${e.protocol}//${u.family===6?`[${u.address}]`:u.address}${d}`)});else{let a=this.pick(e,n,i.affinity);if(a==null){this.#n.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}`)}}#t(e,r,s){eEe(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())})}#s(e,r,s){let n=null,{records:i,offset:a}=r,c;if(this.dualStack?(s==null&&(a==null||a===XJ?(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===XJ?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.#n.set(e.hostname,n)}getHandler(e,r){return new BR(this,e,r)}},BR=class extends tEe{static{o(this,"DNSDispatchHandler")}#e=null;#r=null;#n=null Line truncated
${i}`;break;case"retry":_3(i)&&(r[n]=i);break;case"id":k3(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&_3(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&k3(e.id)&&(this.state.lastEventId=e.id),e.data!==void 0&&this.push({type:e.event||"message",options:{data:e.data,lastEventId:this.state.lastEventId,origin:this.state.origin}})}clearEvent(){this.event={data:void 0,event:void 0,id:void 0,retry:void 0}}};D3.exports={EventSourceStream:lT}});var V3=h((hKe,H3)=>{"use strict";var{pipeline:uBe}=require("node:stream"),{fetching:dBe}=Wf(),{makeRequest:ABe}=Od(),{webidl:sa}=pr(),{EventSourceStream:pBe}=O3(),{parseMIMEType:fBe}=Zr(),{createFastMessageEvent:hBe}=Gd(),{isNetworkError:M3}=$f(),{delay:mBe}=aT(),{kEnumerableProperty:vl}=Ee(),{environmentSettingsObject:L3}=xs(),F3=!1,U3=3e3,lh=0,q3=1,uh=2,gBe="anonymous",EBe="use-credentials",$d=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#r=null;#n=!1;#t=lh;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),sa.util.markAsUncloneable(this);let s="EventSource constructor";sa.argumentLengthCheck(arguments,1,s),F3||(F3=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=sa.converters.USVString(e,s,"url"),r=sa.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:U3};let n=L3,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(l){throw new DOMException(l,"SyntaxError")}this.#r=i.href;let a=gBe;r.withCredentials&&(a=EBe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=L3.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#r)],this.#s=ABe(c),this.#l()}get readyState(){return this.#t}get url(){return this.#r}get withCredentials(){return this.#n}#l(){if(this.#t===uh)return;this.#t=lh;let e={request:this.#s,dispatcher:this.#a},r=o(s=>{M3(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(M3(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?fBe(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.#t=q3,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let c=new pBe({eventSourceSettings:this.#o,push:o(l=>{this.dispatchEvent(hBe(l.type,l.options))},"push")});uBe(s.body.stream,c,l=>{l?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=dBe(e)}async#c(){this.#t!==uh&&(this.#t=lh,this.dispatchEvent(new Event("error")),await mBe(this.#o.reconnectionTime),this.#t===lh&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#l()))}close(){sa.brandCheck(this,t),this.#t!==uh&&(this.#t=uh,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},G3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:lh,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:q3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:uh,writable:!1}};Object.defineProperties($d,G3);Object.defineProperties($d.prototype,G3);Object.defineProperties($d.prototype,{close:vl,onerror:vl,onmessage:vl,onopen:vl,readyState:vl,url:vl,withCredentials:vl});sa.converters.EventSourceInitDict=sa.dictionaryConverter([{key:"withCredentials",converter:sa.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:sa.converters.any}]);H3.exports={EventSource:$d,defaultReconnectionTime:U3}});var Wd=h((gKe,te)=>{"use strict";var yBe=Id(),z3=pf(),CBe=Bd(),IBe=GV(),BBe=wd(),wBe=PQ(),bBe=Az(),SBe=Ez(),J3=Qe(),cC=Ee(),{InvalidArgumentError:aC}=J3,Yd=nJ(),NBe=hf(),xBe=pR(),QBe=UJ(),RBe=mR(),TBe=eR(),vBe=uy(),{getGlobalDispatcher:$3,setGlobalDispatcher:PBe}=Cy(),_Be=Iy(),kBe=ZE(),DBe=ey();Object.assign(z3.prototype,Yd);te.exports.Dispatcher=z3;te.exports.Client=yBe;te.exports.Pool=CBe;te.exports.BalancedPool=IBe;te.exports.Agent=BBe;te.exports. Line truncated
`).join(`
`+i),t.push(n+"m+"+yI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=HRe()+e+" "+t[0]}o(GRe,"formatArgs");function HRe(){return hr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(HRe,"getDate");function VRe(...t){return process.stderr.write(EI.format(...t)+`
`)}o(VRe,"log");function zRe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(zRe,"save");function JRe(){return process.env.DEBUG}o(JRe,"load");function YRe(t){t.inspectOpts={};let e=Object.keys(hr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=hr.inspectOpts[e[r]]}o(YRe,"init");yI.exports=eP()(hr);var{formatters:_6}=yI.exports;_6.o=function(t){return this.inspectOpts.colors=this.useColors,EI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};_6.O=function(t){return this.inspectOpts.colors=this.useColors,EI.inspect(t,this.inspectOpts)}});var CI=h((Bst,nP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?nP.exports=Q6():nP.exports=k6()});var M6=h(os=>{"use strict";var $Re=os&&os.__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]})),WRe=os&&os.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),D6=os&&os.__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)&&$Re(e,t,r);return WRe(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.req=os.json=os.toBuffer=void 0;var jRe=D6(require("http")),KRe=D6(require("https"));async function O6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(O6,"toBuffer");os.toBuffer=O6;async function XRe(t){let r=(await O6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(XRe,"json");os.json=XRe;function ZRe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?KRe:jRe).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(ZRe,"req");os.req=ZRe});var q6=h(Hs=>{"use strict";var F6=Hs&&Hs.__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]})),eTe=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),U6=Hs&&Hs.__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)&&F6(e,t,r);return eTe(e,t),e},tTe=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&F6(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var rTe=U6(require("net")),L6=U6(require("http")),sTe=require("https");tTe(M6(),Hs);var Hi=Symbol("AgentBaseInternalState"),iP=class extends L6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Hi]={}}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 rTe.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)?sTe.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 L6.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[Hi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Hi].currentSocket;if(this[Hi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hi]&&(this[Hi].defaultPort=e)}get protocol(){return this[Hi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hi]&&(this[Hi].protocol=e)}};Hs.Agent=iP});var G6=h(lA=>{"use strict";var nTe=lA&&lA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lA,"__esModule",{value:!0});lA.parseProxyResponse=void 0;var iTe=nTe(CI()),II=(0,iTe.default)("https-proxy-agent:parse-proxy-response");function oTe(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let d=t.read();d?u(d):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(),II("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),II("onerror %o",d),r(d)}o(l,"onerror");function u(d){n.push(d),s+=d.length;let A=Buffer.concat(n,s),p=A.indexOf(`\r
`+i),t.push(n+"m+"+II.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=eve()+e+" "+t[0]}o(ZTe,"formatArgs");function eve(){return gr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(eve,"getDate");function tve(...t){return process.stderr.write(CI.format(...t)+`
`)}o(tve,"log");function rve(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(rve,"save");function sve(){return process.env.DEBUG}o(sve,"load");function nve(t){t.inspectOpts={};let e=Object.keys(gr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=gr.inspectOpts[e[r]]}o(nve,"init");II.exports=aP()(gr);var{formatters:U6}=II.exports;U6.o=function(t){return this.inspectOpts.colors=this.useColors,CI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};U6.O=function(t){return this.inspectOpts.colors=this.useColors,CI.inspect(t,this.inspectOpts)}});var BI=h((uit,dP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?dP.exports=D6():dP.exports=q6()});var V6=h(as=>{"use strict";var ive=as&&as.__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]})),ove=as&&as.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),G6=as&&as.__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)&&ive(e,t,r);return ove(e,t),e};Object.defineProperty(as,"__esModule",{value:!0});as.req=as.json=as.toBuffer=void 0;var ave=G6(require("http")),cve=G6(require("https"));async function H6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(H6,"toBuffer");as.toBuffer=H6;async function lve(t){let r=(await H6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(lve,"json");as.json=lve;function uve(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?cve:ave).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(uve,"req");as.req=uve});var Y6=h(Hs=>{"use strict";var J6=Hs&&Hs.__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]})),dve=Hs&&Hs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$6=Hs&&Hs.__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)&&J6(e,t,r);return dve(e,t),e},Ave=Hs&&Hs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&J6(e,t,r)};Object.defineProperty(Hs,"__esModule",{value:!0});Hs.Agent=void 0;var pve=$6(require("net")),z6=$6(require("http")),fve=require("https");Ave(V6(),Hs);var Hi=Symbol("AgentBaseInternalState"),AP=class extends z6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Hi]={}}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 pve.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)?fve.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 z6.Agent)try{return c.addRequest(e,n)}catch(l){return s(l)}this[Hi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Hi].currentSocket;if(this[Hi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Hi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Hi]&&(this[Hi].defaultPort=e)}get protocol(){return this[Hi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Hi]&&(this[Hi].protocol=e)}};Hs.Agent=AP});var W6=h(gA=>{"use strict";var hve=gA&&gA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(gA,"__esModule",{value:!0});gA.parseProxyResponse=void 0;var mve=hve(BI()),wI=(0,mve.default)("https-proxy-agent:parse-proxy-response");function gve(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let d=t.read();d?u(d):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(),wI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function l(d){a(),wI("onerror %o",d),r(d)}o(l,"onerror");function u(d){n.push(d),s+=d.length;let A=Buffer.concat(n,s),p=A.indexOf(`\r
\r
`);if(p===-1){II("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),m=f.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=m.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){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(),Q=I.slice(b+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,Q]:Array.isArray(D)?D.push(Q):C[N]=Q}II("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(oTe,"parseProxyResponse");lA.parseProxyResponse=oTe});var $6=h(In=>{"use strict";var aTe=In&&In.__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]})),cTe=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),J6=In&&In.__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)&&aTe(e,t,r);return cTe(e,t),e},Y6=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpsProxyAgent=void 0;var BI=J6(require("net")),H6=J6(require("tls")),lTe=Y6(require("assert")),uTe=Y6(CI()),dTe=q6(),ATe=require("url"),pTe=G6(),Hh=(0,uTe.default)("https-proxy-agent"),V6=o(t=>t.servername===void 0&&t.host&&!BI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),bI=class extends dTe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new ATe.URL(e):e,this.proxyHeaders=r?.headers??{},Hh("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?z6(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:"?(Hh("Creating `tls.Socket`: %o",this.connectOpts),n=H6.connect(V6(this.connectOpts))):(Hh("Creating `net.Socket`: %o",this.connectOpts),n=BI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=BI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`);if(p===-1){wI("have not received end of HTTP headers yet..."),i();return}let f=A.slice(0,p).toString("ascii").split(`\r
`),m=f.shift();if(!m)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=m.split(" "),y=+g[1],E=g.slice(2).join(" "),C={};for(let I of f){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),R=I.slice(w+1).trimStart(),D=C[N];typeof D=="string"?C[N]=[D,R]:Array.isArray(D)?D.push(R):C[N]=R}wI("got proxy server response: %o %o",m,C),a(),e({connect:{statusCode:y,statusText:E,headers:C},buffered:A})}o(u,"ondata"),t.on("error",l),t.on("end",c),i()})}o(gve,"parseProxyResponse");gA.parseProxyResponse=gve});var t9=h(Cn=>{"use strict";var Eve=Cn&&Cn.__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]})),yve=Cn&&Cn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Z6=Cn&&Cn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Eve(e,t,r);return yve(e,t),e},e9=Cn&&Cn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Cn,"__esModule",{value:!0});Cn.HttpsProxyAgent=void 0;var bI=Z6(require("net")),j6=Z6(require("tls")),Cve=e9(require("assert")),Ive=e9(BI()),Bve=Y6(),wve=require("url"),bve=W6(),Kh=(0,Ive.default)("https-proxy-agent"),K6=o(t=>t.servername===void 0&&t.host&&!bI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),SI=class extends Bve.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wve.URL(e):e,this.proxyHeaders=r?.headers??{},Kh("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?X6(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:"?(Kh("Creating `tls.Socket`: %o",this.connectOpts),n=j6.connect(K6(this.connectOpts))):(Kh("Creating `net.Socket`: %o",this.connectOpts),n=bI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=bI.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,pTe.parseProxyResponse)(n);n.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",fTe),r.secureEndpoint?(Hh("Upgrading socket connection to TLS"),H6.connect({...z6(V6(r),"host","path","port"),socket:n})):n;n.destroy();let A=new BI.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Hh("Replaying proxy buffer for failed request"),(0,lTe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};bI.protocols=["http","https"];In.HttpsProxyAgent=bI;function fTe(t){t.resume()}o(fTe,"resume");function z6(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(z6,"omit")});var K6=h(as=>{"use strict";var hTe=as&&as.__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]})),mTe=as&&as.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),W6=as&&as.__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)&&hTe(e,t,r);return mTe(e,t),e};Object.defineProperty(as,"__esModule",{value:!0});as.req=as.json=as.toBuffer=void 0;var gTe=W6(require("http")),ETe=W6(require("https"));async function j6(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(j6,"toBuffer");as.toBuffer=j6;async function yTe(t){let r=(await j6(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(yTe,"json");as.json=yTe;function CTe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?ETe:gTe).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(CTe,"req");as.req=CTe});var t9=h(Vs=>{"use strict";var Z6=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]})),ITe=Vs&&Vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),e9=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)&&Z6(e,t,r);return ITe(e,t),e},BTe=Vs&&Vs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Z6(e,t,r)};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.Agent=void 0;var bTe=e9(require("net")),X6=e9(require("http")),wTe=require("https");BTe(K6(),Vs);var Vi=Symbol("AgentBaseInternalState"),oP=class extends X6.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Vi]={}}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 bTe.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))?wTe.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 X6.Agent)return c.addRequest(e,n);this[Vi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Vi].currentSocket;if(this[Vi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vi]&&(this[Vi].defaultPort=e)}get protocol(){return this[Vi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vi]&&(this[Vi].protocol=e)}};Vs.Agent=oP});var n9=h(Bn=>{"use strict";var STe=Bn&&Bn.__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]})),NTe=Bn&&Bn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),s9=Bn&&Bn.__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)&&STe(e,t,r);return NTe(e,t),e},xTe=Bn&&Bn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.HttpProxyAgent=void 0;var QTe=s9(require("net")),RTe=s9(require("tls")),TTe=xTe(CI()),vTe=require("events"),PTe=t9(),r9=require("url"),uA=(0,TTe.default)("http-proxy-agent"),wI=class extends PTe.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new r9.URL(e):e,this.proxyHeaders=r?.headers??{},uA("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?_Te(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 r9.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 d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;uA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(uA("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`;let l=(0,bve.parseProxyResponse)(n);n.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",Sve),r.secureEndpoint?(Kh("Upgrading socket connection to TLS"),j6.connect({...X6(K6(r),"host","path","port"),socket:n})):n;n.destroy();let A=new bI.Socket({writable:!1});return A.readable=!0,e.once("socket",p=>{Kh("Replaying proxy buffer for failed request"),(0,Cve.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};SI.protocols=["http","https"];Cn.HttpsProxyAgent=SI;function Sve(t){t.resume()}o(Sve,"resume");function X6(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(X6,"omit")});var n9=h(cs=>{"use strict";var Nve=cs&&cs.__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]})),xve=cs&&cs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),r9=cs&&cs.__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)&&Nve(e,t,r);return xve(e,t),e};Object.defineProperty(cs,"__esModule",{value:!0});cs.req=cs.json=cs.toBuffer=void 0;var Qve=r9(require("http")),Rve=r9(require("https"));async function s9(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(s9,"toBuffer");cs.toBuffer=s9;async function Tve(t){let r=(await s9(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(Tve,"json");cs.json=Tve;function vve(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Rve:Qve).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(vve,"req");cs.req=vve});var c9=h(Vs=>{"use strict";var o9=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]})),Pve=Vs&&Vs.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),a9=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)&&o9(e,t,r);return Pve(e,t),e},_ve=Vs&&Vs.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&o9(e,t,r)};Object.defineProperty(Vs,"__esModule",{value:!0});Vs.Agent=void 0;var kve=a9(require("net")),i9=a9(require("http")),Dve=require("https");_ve(n9(),Vs);var Vi=Symbol("AgentBaseInternalState"),pP=class extends i9.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Vi]={}}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 kve.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))?Dve.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 i9.Agent)return c.addRequest(e,n);this[Vi].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[Vi].currentSocket;if(this[Vi].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Vi].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Vi]&&(this[Vi].defaultPort=e)}get protocol(){return this[Vi].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Vi]&&(this[Vi].protocol=e)}};Vs.Agent=pP});var d9=h(In=>{"use strict";var Ove=In&&In.__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]})),Mve=In&&In.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),u9=In&&In.__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)&&Ove(e,t,r);return Mve(e,t),e},Lve=In&&In.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(In,"__esModule",{value:!0});In.HttpProxyAgent=void 0;var Fve=u9(require("net")),Uve=u9(require("tls")),qve=Lve(BI()),Gve=require("events"),Hve=c9(),l9=require("url"),EA=(0,qve.default)("http-proxy-agent"),NI=class extends Hve.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new l9.URL(e):e,this.proxyHeaders=r?.headers??{},EA("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?Vve(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 l9.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 d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;EA("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(EA("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),uA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(uA("Creating `tls.Socket`: %o",this.connectOpts),i=RTe.connect(this.connectOpts)):(uA("Creating `net.Socket`: %o",this.connectOpts),i=QTe.connect(this.connectOpts)),await(0,vTe.once)(i,"connect"),i}};wI.protocols=["http","https"];Bn.HttpProxyAgent=wI;function _Te(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(_Te,"omit")});var N9=h(LI=>{"use strict";Object.defineProperty(LI,"__esModule",{value:!0});LI.state=void 0;LI.state={instrumenterImplementation:void 0}});var H9=h(HI=>{"use strict";Object.defineProperty(HI,"__esModule",{value:!0});HI.state=void 0;HI.state={operationRequestMap:new WeakMap}});var IZ=h(QA=>{"use strict";Object.defineProperty(QA,"__esModule",{value:!0});var ZDe=require("os"),eOe=require("util");function tOe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(tOe,"_interopDefaultLegacy");var rOe=tOe(eOe);function sOe(t,...e){process.stderr.write(`${rOe.default.format(t,...e)}${ZDe.EOL}`)}o(sOe,"log");var dZ=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pZ,LO=[],FO=[],cb=[];dZ&&UO(dZ);var fZ=Object.assign(t=>hZ(t),{enable:UO,enabled:qO,disable:nOe,log:sOe});function UO(t){pZ=t,LO=[],FO=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?FO.push(new RegExp(`^${s.substr(1)}$`)):LO.push(new RegExp(`^${s}$`));for(let s of cb)s.enabled=qO(s.namespace)}o(UO,"enable");function qO(t){if(t.endsWith("*"))return!0;for(let e of FO)if(e.test(t))return!1;for(let e of LO)if(e.test(t))return!0;return!1}o(qO,"enabled");function nOe(){let t=pZ||"";return UO(""),t}o(nOe,"disable");function hZ(t){let e=Object.assign(r,{enabled:qO(t),destroy:iOe,log:fZ.log,namespace:t,extend:oOe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),cb.push(e),e}o(hZ,"createDebugger");function iOe(){let t=cb.indexOf(this);return t>=0?(cb.splice(t,1),!0):!1}o(iOe,"destroy");function oOe(t){let e=hZ(`${this.namespace}:${t}`);return e.log=this.log,e}o(oOe,"extend");var Tm=fZ,mZ=new Set,ob=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,lb,ub=Tm("azure");ub.log=(...t)=>{Tm.log(...t)};var GO=["verbose","info","warning","error"];ob&&(CZ(ob)?gZ(ob):console.error(`AZURE_LOG_LEVEL set to unknown log level '${ob}'; logging is not enabled. Acceptable values: ${GO.join(", ")}.`));function gZ(t){if(t&&!CZ(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${GO.join(",")}`);lb=t;let e=[];for(let r of mZ)yZ(r)&&e.push(r.namespace);Tm.enable(e.join(","))}o(gZ,"setLogLevel");function aOe(){return lb}o(aOe,"getLogLevel");var AZ={verbose:400,info:300,warning:200,error:100};function cOe(t){let e=ub.extend(t);return EZ(ub,e),{error:ab(e,"error"),warning:ab(e,"warning"),info:ab(e,"info"),verbose:ab(e,"verbose")}}o(cOe,"createClientLogger");function EZ(t,e){e.log=(...r)=>{t.log(...r)}}o(EZ,"patchLogMethod");function ab(t,e){let r=Object.assign(t.extend(e),{level:e});if(EZ(t,r),yZ(r)){let s=Tm.disable();Tm.enable(s+","+r.namespace)}return mZ.add(r),r}o(ab,"createLogger");function yZ(t){return!!(lb&&AZ[t.level]<=AZ[lb])}o(yZ,"shouldEnable");function CZ(t){return GO.includes(t)}o(CZ,"isAzureLogLevel");QA.AzureLogger=ub;QA.createClientLogger=cOe;QA.getLogLevel=aOe;QA.setLogLevel=gZ});var zO=h(Pm=>{"use strict";Object.defineProperty(Pm,"__esModule",{value:!0});var RA=new WeakMap,db=new WeakMap,vm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,RA.set(this,[]),db.set(this,!1)}get aborted(){if(!db.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return db.get(this)}static get none(){return new t}addEventListener(e,r){if(!RA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");RA.get(this).push(r)}removeEventListener(e,r){if(!RA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=RA.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 BZ(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=RA.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),db.set(t,!0)}o(BZ,"abortSignal");var HO=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},VO=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new vm,!!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(){BZ(this._signal)}static timeout(e){let r=new vm,s=setTimeout(BZ,e,r);return typeof s.unref=="function"&&s.unref(),r}};Pm.AbortController=VO;Pm.AbortError=HO;Pm.AbortSignal=vm});var xZ=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});var lOe Line truncated
`)+4,e.outputData[0].data=e._header+s.substring(n),EA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(EA("Creating `tls.Socket`: %o",this.connectOpts),i=Uve.connect(this.connectOpts)):(EA("Creating `net.Socket`: %o",this.connectOpts),i=Fve.connect(this.connectOpts)),await(0,Gve.once)(i,"connect"),i}};NI.protocols=["http","https"];In.HttpProxyAgent=NI;function Vve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(Vve,"omit")});var _9=h(UI=>{"use strict";Object.defineProperty(UI,"__esModule",{value:!0});UI.state=void 0;UI.state={instrumenterImplementation:void 0}});var j9=h(zI=>{"use strict";Object.defineProperty(zI,"__esModule",{value:!0});zI.state=void 0;zI.state={operationRequestMap:new WeakMap}});var QZ=h(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});var uMe=require("os"),dMe=require("util");function AMe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(AMe,"_interopDefaultLegacy");var pMe=AMe(dMe);function fMe(t,...e){process.stderr.write(`${pMe.default.format(t,...e)}${uMe.EOL}`)}o(fMe,"log");var EZ=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,CZ,zO=[],JO=[],uw=[];EZ&&$O(EZ);var IZ=Object.assign(t=>BZ(t),{enable:$O,enabled:YO,disable:hMe,log:fMe});function $O(t){CZ=t,zO=[],JO=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?JO.push(new RegExp(`^${s.substr(1)}$`)):zO.push(new RegExp(`^${s}$`));for(let s of uw)s.enabled=YO(s.namespace)}o($O,"enable");function YO(t){if(t.endsWith("*"))return!0;for(let e of JO)if(e.test(t))return!1;for(let e of zO)if(e.test(t))return!0;return!1}o(YO,"enabled");function hMe(){let t=CZ||"";return $O(""),t}o(hMe,"disable");function BZ(t){let e=Object.assign(r,{enabled:YO(t),destroy:mMe,log:IZ.log,namespace:t,extend:gMe});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),uw.push(e),e}o(BZ,"createDebugger");function mMe(){let t=uw.indexOf(this);return t>=0?(uw.splice(t,1),!0):!1}o(mMe,"destroy");function gMe(t){let e=BZ(`${this.namespace}:${t}`);return e.log=this.log,e}o(gMe,"extend");var Lm=IZ,wZ=new Set,cw=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,dw,Aw=Lm("azure");Aw.log=(...t)=>{Lm.log(...t)};var WO=["verbose","info","warning","error"];cw&&(xZ(cw)?bZ(cw):console.error(`AZURE_LOG_LEVEL set to unknown log level '${cw}'; logging is not enabled. Acceptable values: ${WO.join(", ")}.`));function bZ(t){if(t&&!xZ(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${WO.join(",")}`);dw=t;let e=[];for(let r of wZ)NZ(r)&&e.push(r.namespace);Lm.enable(e.join(","))}o(bZ,"setLogLevel");function EMe(){return dw}o(EMe,"getLogLevel");var yZ={verbose:400,info:300,warning:200,error:100};function yMe(t){let e=Aw.extend(t);return SZ(Aw,e),{error:lw(e,"error"),warning:lw(e,"warning"),info:lw(e,"info"),verbose:lw(e,"verbose")}}o(yMe,"createClientLogger");function SZ(t,e){e.log=(...r)=>{t.log(...r)}}o(SZ,"patchLogMethod");function lw(t,e){let r=Object.assign(t.extend(e),{level:e});if(SZ(t,r),NZ(r)){let s=Lm.disable();Lm.enable(s+","+r.namespace)}return wZ.add(r),r}o(lw,"createLogger");function NZ(t){return!!(dw&&yZ[t.level]<=yZ[dw])}o(NZ,"shouldEnable");function xZ(t){return WO.includes(t)}o(xZ,"isAzureLogLevel");OA.AzureLogger=Aw;OA.createClientLogger=yMe;OA.getLogLevel=EMe;OA.setLogLevel=bZ});var XO=h(Um=>{"use strict";Object.defineProperty(Um,"__esModule",{value:!0});var MA=new WeakMap,pw=new WeakMap,Fm=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,MA.set(this,[]),pw.set(this,!1)}get aborted(){if(!pw.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return pw.get(this)}static get none(){return new t}addEventListener(e,r){if(!MA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");MA.get(this).push(r)}removeEventListener(e,r){if(!MA.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=MA.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 RZ(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=MA.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),pw.set(t,!0)}o(RZ,"abortSignal");var jO=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},KO=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new Fm,!!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(){RZ(this._signal)}static timeout(e){let r=new Fm,s=setTimeout(RZ,e,r);return typeof s.unref=="function"&&s.unref(),r}};Um.AbortController=KO;Um.AbortError=jO;Um.AbortSignal=Fm});var kZ=h(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var CMe Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${d}
Polling status: ${vZ.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(RZ({state:r,stateProxy:s,isOperationError:c})),status:d}}return{response:u,status:d}}o(SOe,"pollOperationHelper");async function DZ(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:m,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await SOe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(_Z({status:I,response:C,state:r,stateProxy:s,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!vZ.includes(I)){let b=d?.(C);b&&m(b);let N=c?.(C,r);if(N!==void 0){let Q=E!==N;r.config.operationLocation=N,u?.(N,Q)}else u?.(E,!1)}f?.(r,C)}}o(DZ,"pollOperation");function OZ(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(OZ,"getOperationLocationPollingUrl");function MZ(t){return t.headers.location}o(MZ,"getLocationHeader");function LZ(t){return t.headers["operation-location"]}o(LZ,"getOperationLocationHeader");function FZ(t){return t.headers["azure-asyncoperation"]}o(FZ,"getAzureAsyncOperationHeader");function NOe(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(NOe,"findResourceLocation");function UZ(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=LZ(e),a=FZ(e),c=OZ({operationLocation:i,azureAsyncOperation:a}),l=MZ(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:NOe({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(UZ,"inferLroMode");function qZ(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 ZO(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 ou.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(qZ,"transformStatus");function xOe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qZ({status:r,statusCode:t.statusCode})}o(xOe,"getStatus");function QOe(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 qZ({status:i,statusCode:t.statusCode})}o(QOe,"getProvisioningState");function ZO(t){return t===202?"running":t<300?"succeeded":"failed"}o(ZO,"toOperationStatus");function GZ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?ROe(new Date(e)):r*1e3}}o(GZ,"parseRetryAfter");function HZ(t){let e=t.flatResponse.error;if(!e){ou.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){ou.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(HZ,"getErrorFromResponse");function ROe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(ROe,"calculatePollingIntervalFromDate");function VZ(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 ZO(e.rawResponse.statusCode);case"Body":return eM(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(VZ,"getStatusFromInitialResponse");async function TOe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return kZ({init:o(async()=>{let a=await n.sendInitialRequest(),c=UZ({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:VZ,setErrorAsResult:i})}o(TOe,"initHttpOperation");function zZ({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return OZ({operationLocation:LZ(t),azureAsyncOperLine 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(pMe,"base64decode");DA.base64decode=pMe;function fMe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=Ba[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=Ba[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=Ba[n|s>>6],e+=Ba[s&63],r=0;break}return r&&(e+=Ba[n],e+="=",r==1&&(e+="=")),e}o(fMe,"base64encode");DA.base64encode=fMe});var w7=h(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});Tb.utf8read=void 0;var dM=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function hMe(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(dM(s)),n=0);return r.length?(n&&r.push(dM(s.slice(0,n))),r.join("")):dM(s.slice(0,n))}o(hMe,"utf8read");Tb.utf8read=hMe});var Um=h(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.WireType=go.mergeBinaryOptions=go.UnknownFieldHandler=void 0;var mMe;(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")})(mMe=go.UnknownFieldHandler||(go.UnknownFieldHandler={}));function gMe(t,e){return Object.assign(Object.assign({},t),e)}o(gMe,"mergeBinaryOptions");go.mergeBinaryOptions=gMe;var EMe;(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"})(EMe=go.WireType||(go.WireType={}))});var Pb=h(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});fs.varint32read=fs.varint32write=fs.int64toString=fs.int64fromString=fs.varint64write=fs.varint64read=void 0;function yMe(){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(yMe,"varint64read");fs.varint64read=yMe;function CMe(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(CMe,"varint64write");fs.varint64write=CMe;var vb=65536*65536;function IMe(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>=vb&&(n=n+(s/vb|0),s=s%vb)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(IMe,"int64fromString");fs.int64fromString=IMe;function BMe(t,e){if(e>>>0<=2097151)return""+(vb*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(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(BMe,"int64toString");fs.int64toString=BMe;function bMe(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(bMe,"varint32write");fs.varint32write=bMe;function wMe(){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(wMe,"varint32read");fs.varint32read=wMe});var Rc=h(Qc=>{"use strict";Object.defineProperty(Qc,"__esModule",{value:!0});Qc.PbLong=Qc.PbULong=Qc.detectBi=void 0;var qm=Pb(),ze;function S7(){let t=new DataView(new ArrayBuffer(8));ze=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
`)}};iw.RpcError=LM});var UM=h(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.mergeRpcOptions=void 0;var see=Dt();function JLe(t,e){if(!e)return t;let r={};ow(t,r),ow(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=see.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=see.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},ow(t.meta,r.meta),ow(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(JLe,"mergeRpcOptions");aw.mergeRpcOptions=JLe;function ow(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(ow,"copy")});var GM=h(du=>{"use strict";Object.defineProperty(du,"__esModule",{value:!0});du.Deferred=du.DeferredState=void 0;var Co;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Co=du.DeferredState||(du.DeferredState={}));var qM=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Co.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!==Co.PENDING)throw new Error(`cannot resolve ${Co[this.state].toLowerCase()}`);this._resolve(e),this._state=Co.RESOLVED}reject(e){if(this.state!==Co.PENDING)throw new Error(`cannot reject ${Co[this.state].toLowerCase()}`);this._reject(e),this._state=Co.REJECTED}resolvePending(e){this._state===Co.PENDING&&this.resolve(e)}rejectPending(e){this._state===Co.PENDING&&this.reject(e)}};du.Deferred=qM});var VM=h(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});cw.RpcOutputStreamController=void 0;var nee=GM(),Au=Dt(),HM=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){Au.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){Au.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){Au.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(){Au.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;Au.assert(e,"bad state"),Au.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 nee.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;Au.assert(s.state==nee.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};cw.RpcOutputStreamController=HM});var JM=h(GA=>{"use strict";var YLe=GA&&GA.__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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(GA,"__esModule",{value:!0});GA.UnaryCall=void 0;var zM=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 YLe(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}})}};GA.UnaryCall=zM});var $M=h(HA=>{"use strict";var $Le=HA&&HA.__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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function Line truncated
Polling status: ${LZ.includes(d)?"Stopped":"Running"}`),d==="succeeded"){let A=a(u,r);if(A!==void 0)return{response:await e(A).catch(OZ({state:r,stateProxy:s,isOperationError:c})),status:d}}return{response:u,status:d}}o(OMe,"pollOperationHelper");async function GZ(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:l,withOperationLocation:u,getPollingInterval:d,processResult:A,getError:p,updateState:f,setDelay:m,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:C,status:I}=await OMe({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:l,options:n});if(UZ({status:I,response:C,state:r,stateProxy:s,isDone:g,processResult:A,getError:p,setErrorAsResult:y}),!LZ.includes(I)){let w=d?.(C);w&&m(w);let N=c?.(C,r);if(N!==void 0){let R=E!==N;r.config.operationLocation=N,u?.(N,R)}else u?.(E,!1)}f?.(r,C)}}o(GZ,"pollOperation");function HZ(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(HZ,"getOperationLocationPollingUrl");function VZ(t){return t.headers.location}o(VZ,"getLocationHeader");function zZ(t){return t.headers["operation-location"]}o(zZ,"getOperationLocationHeader");function JZ(t){return t.headers["azure-asyncoperation"]}o(JZ,"getAzureAsyncOperationHeader");function MMe(t){let{location:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t;switch(r){case"PUT":return s;case"DELETE":return;default:switch(n){case"azure-async-operation":return;case"original-uri":return s;default:return e}}}o(MMe,"findResourceLocation");function $Z(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=zZ(e),a=JZ(e),c=HZ({operationLocation:i,azureAsyncOperation:a}),l=VZ(e),u=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:MMe({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($Z,"inferLroMode");function YZ(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 oM(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 du.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(YZ,"transformStatus");function LMe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return YZ({status:r,statusCode:t.statusCode})}o(LMe,"getStatus");function FMe(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 YZ({status:i,statusCode:t.statusCode})}o(FMe,"getProvisioningState");function oM(t){return t===202?"running":t<300?"succeeded":"failed"}o(oM,"toOperationStatus");function WZ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?UMe(new Date(e)):r*1e3}}o(WZ,"parseRetryAfter");function jZ(t){let e=t.flatResponse.error;if(!e){du.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){du.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(jZ,"getErrorFromResponse");function UMe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(UMe,"calculatePollingIntervalFromDate");function KZ(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 oM(e.rawResponse.statusCode);case"Body":return aM(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(KZ,"getStatusFromInitialResponse");async function qMe(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return qZ({init:o(async()=>{let a=await n.sendInitialRequest(),c=$Z({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:KZ,setErrorAsResult:i})}o(qMe,"initHttpOperation");function XZ({rawResponse:t},e){var r;switch((r=e.config.metadata)===null||r===void 0?void 0:r.mode){case"OperationLocation":return HZ({operationLocation:zZ(t),azureAsyncOperLine 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(bLe,"base64decode");HA.base64decode=bLe;function SLe(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=ba[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=ba[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=ba[n|s>>6],e+=ba[s&63],r=0;break}return r&&(e+=ba[n],e+="=",r==1&&(e+="=")),e}o(SLe,"base64encode");HA.base64encode=SLe});var v7=h(Pw=>{"use strict";Object.defineProperty(Pw,"__esModule",{value:!0});Pw.utf8read=void 0;var EM=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function NLe(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(EM(s)),n=0);return r.length?(n&&r.push(EM(s.slice(0,n))),r.join("")):EM(s.slice(0,n))}o(NLe,"utf8read");Pw.utf8read=NLe});var Ym=h(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.WireType=go.mergeBinaryOptions=go.UnknownFieldHandler=void 0;var xLe;(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")})(xLe=go.UnknownFieldHandler||(go.UnknownFieldHandler={}));function QLe(t,e){return Object.assign(Object.assign({},t),e)}o(QLe,"mergeBinaryOptions");go.mergeBinaryOptions=QLe;var RLe;(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"})(RLe=go.WireType||(go.WireType={}))});var kw=h(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});hs.varint32read=hs.varint32write=hs.int64toString=hs.int64fromString=hs.varint64write=hs.varint64read=void 0;function TLe(){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(TLe,"varint64read");hs.varint64read=TLe;function vLe(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(vLe,"varint64write");hs.varint64write=vLe;var _w=65536*65536;function PLe(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>=_w&&(n=n+(s/_w|0),s=s%_w)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(PLe,"int64fromString");hs.int64fromString=PLe;function _Le(t,e){if(e>>>0<=2097151)return""+(_w*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(d,A){let p=d?String(d):"";return A?"0000000".slice(p.length)+p:p}return o(u,"decimalFrom1e7"),u(c,0)+u(a,c)+u(i,1)}o(_Le,"int64toString");hs.int64toString=_Le;function kLe(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(kLe,"varint32write");hs.varint32write=kLe;function DLe(){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(DLe,"varint32read");hs.varint32read=DLe});var Pc=h(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.PbLong=vc.PbULong=vc.detectBi=void 0;var Wm=kw(),He;function P7(){let t=new DataView(new ArrayBuffer(8));He=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
`)}};ab.RpcError=zM});var $M=h(lb=>{"use strict";Object.defineProperty(lb,"__esModule",{value:!0});lb.mergeRpcOptions=void 0;var uee=_t();function sFe(t,e){if(!e)return t;let r={};cb(t,r),cb(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=uee.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=uee.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},cb(t.meta,r.meta),cb(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(sFe,"mergeRpcOptions");lb.mergeRpcOptions=sFe;function cb(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(cb,"copy")});var WM=h(mu=>{"use strict";Object.defineProperty(mu,"__esModule",{value:!0});mu.Deferred=mu.DeferredState=void 0;var Co;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Co=mu.DeferredState||(mu.DeferredState={}));var YM=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Co.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!==Co.PENDING)throw new Error(`cannot resolve ${Co[this.state].toLowerCase()}`);this._resolve(e),this._state=Co.RESOLVED}reject(e){if(this.state!==Co.PENDING)throw new Error(`cannot reject ${Co[this.state].toLowerCase()}`);this._reject(e),this._state=Co.REJECTED}resolvePending(e){this._state===Co.PENDING&&this.resolve(e)}rejectPending(e){this._state===Co.PENDING&&this.reject(e)}};mu.Deferred=YM});var KM=h(ub=>{"use strict";Object.defineProperty(ub,"__esModule",{value:!0});ub.RpcOutputStreamController=void 0;var dee=WM(),gu=_t(),jM=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){gu.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){gu.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){gu.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(){gu.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;gu.assert(e,"bad state"),gu.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 dee.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;gu.assert(s.state==dee.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ub.RpcOutputStreamController=jM});var ZM=h(jA=>{"use strict";var nFe=jA&&jA.__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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};Object.defineProperty(jA,"__esModule",{value:!0});jA.UnaryCall=void 0;var XM=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 nFe(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}})}};jA.UnaryCall=XM});var tL=h(KA=>{"use strict";var iFe=KA&&KA.__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(d){try{u(s.next(d))}catch(A){a(A)}}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(J1e,"logUnexpecedPropertyAccessOnce");function Y1e(){Object.keys(vw).forEach(function(t){delete vw[t]})}o(Y1e,"resetLoggedProperties")});var _w=h(bo=>{"use strict";bo.__esModule=!0;bo.HandlebarsEnvironment=$L;function Nte(t){return t&&t.__esModule?t:{default:t}}o(Nte,"_interopRequireDefault");var yu=Yr(),$1e=en(),JL=Nte($1e),W1e=GL(),j1e=Bte(),K1e=VL(),Pw=Nte(K1e),X1e=zL(),Z1e="4.7.9";bo.VERSION=Z1e;var eUe=8;bo.COMPILER_REVISION=eUe;var tUe=7;bo.LAST_COMPATIBLE_COMPILER_REVISION=tUe;var rUe={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"};bo.REVISION_CHANGES=rUe;var YL="[object Object]";function $L(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},W1e.registerDefaultHelpers(this),j1e.registerDefaultDecorators(this)}o($L,"HandlebarsEnvironment");$L.prototype={constructor:$L,logger:Pw.default,log:Pw.default.log,registerHelper:o(function(e,r){if(yu.toString.call(e)===YL){if(r)throw new JL.default("Arg not supported with multiple helpers");yu.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(yu.toString.call(e)===YL)yu.extend(this.partials,e);else{if(typeof r>"u")throw new JL.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(yu.toString.call(e)===YL){if(r)throw new JL.default("Arg not supported with multiple decorators");yu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){X1e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var sUe=Pw.default.log;bo.log=sUe;bo.createFrame=yu.createFrame;bo.logger=Pw.default});var Qte=h((kw,xte)=>{"use strict";kw.__esModule=!0;function WL(t){this.string=t}o(WL,"SafeString");WL.prototype.toString=WL.prototype.toHTML=function(){return""+this.string};kw.default=WL;xte.exports=kw.default});var Rte=h(jL=>{"use strict";jL.__esModule=!0;jL.wrapHelper=nUe;function nUe(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(nUe,"wrapHelper")});var Dte=h(Pc=>{"use strict";Pc.__esModule=!0;Pc.checkRevision=uUe;Pc.template=dUe;Pc.wrapProgram=Dw;Pc.resolvePartial=AUe;Pc.invokePartial=pUe;Pc.noop=_te;function iUe(t){return t&&t.__esModule?t:{default:t}}o(iUe,"_interopRequireDefault");function oUe(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(oUe,"_interopRequireWildcard");var aUe=Yr(),ZA=oUe(aUe),cUe=en(),Sa=iUe(cUe),Na=_w(),Tte=GL(),lUe=Rte(),vte=zL();function uUe(t){var e=t&&t[0]||1,r=Na.COMPILER_REVISION;if(!(e>=Na.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Na.COMPILER_REVISION))if(e<Na.LAST_COMPATIBLE_COMPILER_REVISION){var s=Na.REVISION_CHANGES[r],n=Na.REVISION_CHANGES[e];throw new Sa.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 Sa.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(uUe,"checkRevision");function dUe(t,e){if(!e)throw new Sa.default("No environment passed to template");if(!t||!t.main)throw new Sa.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=ZA.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(i2e,"logUnexpecedPropertyAccessOnce");function o2e(){Object.keys(_b).forEach(function(t){delete _b[t]})}o(o2e,"resetLoggedProperties")});var Db=h(bo=>{"use strict";bo.__esModule=!0;bo.HandlebarsEnvironment=e1;function Ote(t){return t&&t.__esModule?t:{default:t}}o(Ote,"_interopRequireDefault");var bu=Qr(),a2e=Pn(),XL=Ote(a2e),c2e=YL(),l2e=Pte(),u2e=jL(),kb=Ote(u2e),d2e=KL(),A2e="4.7.10";bo.VERSION=A2e;var p2e=8;bo.COMPILER_REVISION=p2e;var f2e=7;bo.LAST_COMPATIBLE_COMPILER_REVISION=f2e;var h2e={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"};bo.REVISION_CHANGES=h2e;var ZL="[object Object]";function e1(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},c2e.registerDefaultHelpers(this),l2e.registerDefaultDecorators(this)}o(e1,"HandlebarsEnvironment");e1.prototype={constructor:e1,logger:kb.default,log:kb.default.log,registerHelper:o(function(e,r){if(bu.toString.call(e)===ZL){if(r)throw new XL.default("Arg not supported with multiple helpers");bu.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(bu.toString.call(e)===ZL)bu.extend(this.partials,e);else{if(typeof r>"u")throw new XL.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(bu.toString.call(e)===ZL){if(r)throw new XL.default("Arg not supported with multiple decorators");bu.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){d2e.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var m2e=kb.default.log;bo.log=m2e;bo.createFrame=bu.createFrame;bo.logger=kb.default});var Lte=h((Ob,Mte)=>{"use strict";Ob.__esModule=!0;function t1(t){this.string=t}o(t1,"SafeString");t1.prototype.toString=t1.prototype.toHTML=function(){return""+this.string};Ob.default=t1;Mte.exports=Ob.default});var Fte=h(r1=>{"use strict";r1.__esModule=!0;r1.wrapHelper=g2e;function g2e(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(g2e,"wrapHelper")});var Vte=h(Dc=>{"use strict";Dc.__esModule=!0;Dc.checkRevision=w2e;Dc.template=b2e;Dc.wrapProgram=Mb;Dc.resolvePartial=S2e;Dc.invokePartial=N2e;Dc.noop=Gte;function E2e(t){return t&&t.__esModule?t:{default:t}}o(E2e,"_interopRequireDefault");function y2e(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(y2e,"_interopRequireWildcard");var C2e=Qr(),Su=y2e(C2e),I2e=Pn(),gi=E2e(I2e),Na=Db(),Ute=YL(),B2e=Fte(),s1=KL();function w2e(t){var e=t&&t[0]||1,r=Na.COMPILER_REVISION;if(!(e>=Na.LAST_COMPATIBLE_COMPILER_REVISION&&e<=Na.COMPILER_REVISION))if(e<Na.LAST_COMPATIBLE_COMPILER_REVISION){var s=Na.REVISION_CHANGES[r],n=Na.REVISION_CHANGES[e];throw new gi.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 gi.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(w2e,"checkRevision");function b2e(t,e){if(!e)throw new gi.default("No environment passed to template");if(!t||!t.main)throw new gi.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=Su.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&&Su.isFunction(a))throw new gi.default("The partial "+l.name+" returned no output: partials must return a string");if(u==null&&e.compile){if(typeof a!="string")throw new gi.default("The partial "+l.name+" could not be compiled: partials must be strings or functions returning strings");l.partials[l.name]=e.compile(a,t.compilerOptions,e),u=l.partials[l.name](c,l)}if(u!=null){if(l.indent){for(var d=u.split(`
`),A=0,p=d.length;A<p&&!(!d[A]&&A+1===p);A++)d[A]=l.indent+d[A];u=d.join(`
`)}return u}else throw new Sa.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 Sa.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)||vte.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&n.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:ZA.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,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=Dw(this,c,f,l,u,d,A):p||(p=this.programs[c]=Dw(this,c,f)),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=ZA.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=fUe(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 A(p){return""+t.main(n,p,n.helpers,n.partials,l,d,u)}return o(A,"main"),A=kte(t.main,A,n,c.depths||[],l,d),A(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={};Pte(c,e.helpers,n),Pte(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=ZA.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=vte.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Tte.moveHelperToHooks(n,"helperMissing",l),Tte.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new Sa.default("must pass block params");if(t.useDepths&&!u)throw new Sa.default("must pass parent depths");return Dw(n,a,t[a],c,0,l,u)},i}o(dUe,"template");function Dw(t,e,r,s,n,i,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||s,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=kte(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(Dw,"wrapProgram");function AUe(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=Ow(r.partials,t)):r.name==="@partial-block"?t=Ow(r.data,"partial-block"):t=Ow(r.partials,r.name),t}o(AUe,"resolvePartial");function pUe(t,e,r){var s=Ow(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!==_te&&(function(){r.data=Na.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=Na.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=ZA.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new Sa.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(pUe,"invokePartial");function _te(){return""}o(_te,"noop");function Ow(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(Ow,"lookupOwnProperty");function fUe(t,e){return(!e||!("root"in e))&&(e=e?Na.createFrame(e):{},e.root=t),e}o(fUe,"initData");function kte(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),ZA.extend(e,a)}return e}o(kte,"executeDecorators");function Pte(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=hUe(n,r)})}o(Pte,"addHelpers");function hUe(t,e){var r=e.lookupProperty;return lUe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(hUe,"passLookupPropertyOption")});var KL=h((Mw,Ote)=>{"use strict";Mw.__esModule=!0;Mw.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}};Ote.exports=Mw.default});var qte=h((Lw,Ute)=>{"use strict";Lw.__esModule=!0;function ZL(t){return t&&t.__esModule?t:{default:t}}o(ZL,"_interopRequireDefault");function eF(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(eF,"_interopRequireWildcard");var mUe=_w(),Mte=eF(mUe),gUe=Qte(),EUe=ZL(gUe),yUe=en(),CUe=ZL(yUe),IUe=Yr(),XL=eF(IUe),BUe=Dte Line truncated
`)}return u}else throw new gi.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 gi.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)&&!s1.isPrototypeConstructor(c,l,u)||s1.resultIsAllowed(u,n.protoAccessControl,l))return u},"lookupProperty"),lookup:o(function(c,l){for(var u=c.length,d=0;d<u;d++){var A=c[d]&&n.lookupProperty(c[d],l);if(A!=null)return A}},"lookup"),lambda:o(function(c,l){return typeof c=="function"?c.call(l):c},"lambda"),escapeExpression:Su.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,d,A){var p=this.programs[c],f=this.fn(c);return l||A||d||u?p=Mb(this,c,f,l,u,d,A):p||(p=this.programs[c]=Mb(this,c,f)),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=Su.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=x2e(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 A(p){return""+t.main(n,p,n.helpers,n.partials,l,d,u)}return o(A,"main"),A=Hte(t.main,A,n,c.depths||[],l,d),A(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={};qte(c,e.helpers,n),qte(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=Su.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=s1.createProtoAccessControl(a);var l=a.allowCallsToHelperMissing||r;Ute.moveHelperToHooks(n,"helperMissing",l),Ute.moveHelperToHooks(n,"blockHelperMissing",l)}},i._child=function(a,c,l,u){if(t.useBlockParams&&!l)throw new gi.default("must pass block params");if(t.useDepths&&!u)throw new gi.default("must pass parent depths");return Mb(n,a,t[a],c,0,l,u)},i}o(b2e,"template");function Mb(t,e,r,s,n,i,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||s,i&&[u.blockParams].concat(i),d)}return o(c,"prog"),c=Hte(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(Mb,"wrapProgram");function S2e(t,e,r){return t?typeof t!="function"&&!r.name&&(r.name=t,t=Lb(r.partials,t)):r.name==="@partial-block"?t=Lb(r.data,"partial-block"):t=Lb(r.partials,r.name),t}o(S2e,"resolvePartial");function N2e(t,e,r){var s=Lb(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!==Gte&&(function(){r.data=Na.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=Na.createFrame(l.data),l.data["partial-block"]=s,i(c,l)},"partialBlockWrapper"),i.partials&&(r.partials=Su.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new gi.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(N2e,"invokePartial");function Gte(){return""}o(Gte,"noop");function Lb(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(Lb,"lookupOwnProperty");function x2e(t,e){return(!e||!("root"in e))&&(e=e?Na.createFrame(e):{},e.root=t),e}o(x2e,"initData");function Hte(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),Su.extend(e,a)}return e}o(Hte,"executeDecorators");function qte(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Q2e(n,r)})}o(qte,"addHelpers");function Q2e(t,e){var r=e.lookupProperty;return B2e.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Q2e,"passLookupPropertyOption")});var n1=h((Fb,zte)=>{"use strict";Fb.__esModule=!0;Fb.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}};zte.exports=Fb.default});var jte=h((Ub,Wte)=>{"use strict";Ub.__esModule=!0;function o1(t){return t&&t.__esModule?t:{default:t}}o(o1,"_interopRequireDefault");function a1(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(a1,"_interopRequireWildcard");var R2e=Db(),Jte=a1(R2e),T2e=Lte(),v2e=o1(T2e),P2 Line truncated
`+this.lexer.showPosition()+`
Expecting `+ue.join(", ")+", got '"+(this.terminals_[b]||b)+"'":vr="Parse error on line "+(A+1)+": Unexpected "+(b==1?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(vr,{text:this.lexer.match,token:this.terminals_[b]||b,line:this.lexer.yylineno,loc:y,expected:ue})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+b);switch(D[0]){case 1:a.push(b),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),b=null,N?(b=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(ye=this.productions_[D[1]][1],De.$=c[c.length-ye],De._$={first_line:l[l.length-(ye||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ye||1)].first_column,last_column:l[l.length-1].last_column},E&&(De._$.range=[l[l.length-(ye||1)].range[0],l[l.length-1].range[1]]),Te=this.performAction.call(De,d,p,A,this.yy,D[1],c,l),typeof Te<"u")return Te;ye&&(a=a.slice(0,-1*ye*2),c=c.slice(0,-1*ye),l=l.slice(0,-1*ye)),a.push(this.productions_[D[1]][0]),c.push(De.$),l.push(De._$),Ye=u[a[a.length-2]][a[a.length-1]],a.push(Ye);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 `+he.join(", ")+", got '"+(this.terminals_[w]||w)+"'":$n="Parse error on line "+(A+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError($n,{text:this.lexer.match,token:this.terminals_[w]||w,line:this.lexer.yylineno,loc:y,expected:he})}}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+R+", token: "+w);switch(D[0]){case 1:a.push(w),c.push(this.lexer.yytext),l.push(this.lexer.yylloc),a.push(D[1]),w=null,N?(w=N,N=null):(p=this.lexer.yyleng,d=this.lexer.yytext,A=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(ye=this.productions_[D[1]][1],Ge.$=c[c.length-ye],Ge._$={first_line:l[l.length-(ye||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ye||1)].first_column,last_column:l[l.length-1].last_column},E&&(Ge._$.range=[l[l.length-(ye||1)].range[0],l[l.length-1].range[1]]),st=this.performAction.call(Ge,d,p,A,this.yy,D[1],c,l),typeof st<"u")return st;ye&&(a=a.slice(0,-1*ye*2),c=c.slice(0,-1*ye),l=l.slice(0,-1*ye)),a.push(this.productions_[D[1]][0]),c.push(Ge.$),l.push(Ge._$),Mt=u[a[a.length-2]][a[a.length-1]],a.push(Mt);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,d;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),p=0;p<A.length&&(c=this._input.match(this.rules[A[p]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,l=p,!this.options.flex)));p++);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],i=this.performAction.call(this,this.yy,this,A[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(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}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"),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})();Uw.default=SUe;Vte.exports=Uw.default});var Vw=h((Hw,$te)=>{"use strict";Hw.__esModule=!0;function NUe(t){return t&&t.__esModule?t:{default:t}}o(NUe,"_interopRequireDefault");var xUe=en(),rF=NUe(xUe);function qw(){this.parents=[]}o(qw,"Visitor");qw.prototype={constructor:qw,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!qw.prototype[s.type])throw new rF.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 rF.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 rF.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:Gw,Decorator:Gw,BlockStatement:Jte,DecoratorBlock:Jte,PartialStatement:Yte,PartialBlockStatement:o(function(e){Yte.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:Gw,PathExpression:o(function(){},"PathExpressionLine 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 bu(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 bu?e:(e=wF(e,this,r),new bu(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=wF(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(wF(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};Xw.default=Rre;Tre.exports=Xw.default});var Ore=h((Zw,Dre)=>{"use strict";Zw.__esModule=!0;function kre(t){return t&&t.__esModule?t:{default:t}}o(kre,"_interopRequireDefault");var Pre=_w(),w2e=en(),NF=kre(w2e),S2e=Yr(),N2e=vre(),_re=kre(N2e);function ip(t){this.value=t}o(ip,"Literal");function op(){}o(op,"JavaScriptCompiler");op.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=Pre.COMPILER_REVISION,r=Pre.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return S2e.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 NF.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(A,p){return a.yytext=a.yytext.substring(A,a.yyleng-p+A)}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"),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})();Gb.default=L2e;Zte.exports=Gb.default});var u1=h(l1=>{"use strict";l1.__esModule=!0;var F2e=["Program","BlockStatement","DecoratorBlock","PartialStatement","PartialBlockStatement","Decorator","MustacheStatement","ContentStatement","CommentStatement","SubExpression","PathExpression","StringLiteral","NumberLiteral","BooleanLiteral","UndefinedLiteral","NullLiteral","Hash","HashPair"];l1.NODE_TYPES=F2e});var Jb=h((zb,nre)=>{"use strict";zb.__esModule=!0;function U2e(t){return t&&t.__esModule?t:{default:t}}o(U2e,"_interopRequireDefault");var q2e=Pn(),d1=U2e(q2e),G2e=Qr(),H2e=u1();function Vb(){this.parents=[]}o(Vb,"Visitor");function tre(t,e){return G2e.indexOf(H2e.NODE_TYPES,e)!==-1||!(e in Vb.prototype)&&typeof t[e]=="function"}o(tre,"isDispatchable");Vb.prototype={constructor:Vb,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!tre(this,s.type))throw new d1.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 d1.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(!tre(this,e.type)||!this[e.type])throw new d1.default("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var r=this[e.tLine 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 Ru(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 Ru?e:(e=_1(e,this,r),new Ru(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=e+"",Fqe.test(e)?qre(e):'"'+e+'"'},"quotedString"),objectLiteral:o(function(e){var r=this,s=[];Object.keys(e).forEach(function(i){var a=_1(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(_1(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};t0.default=Gre});var jre=h((r0,Wre)=>{"use strict";r0.__esModule=!0;function Jre(t){return t&&t.__esModule?t:{default:t}}o(Jre,"_interopRequireDefault");var Vre=Db(),Hqe=Pn(),D1=Jre(Hqe),Vqe=Qr(),$re=Hre(),zre=Jre($re);function hp(t){this.value=t}o(hp,"Literal");function mp(){}o(mp,"JavaScriptCompiler");mp.prototype={nameLookup:o(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:o(function(e){return[this.aliasable("container.lookup"),"(depths, ",this.quotedString(e),")"]},"depthedLookup"),compilerInfo:o(function(){var e=Vre.COMPILER_REVISION,r=Vre.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return Vqe.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,",",this.quotedString(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 D1.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 d=this.createFunctionContext(n);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,m=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],m[l]&&(A[l+"_d"]=m[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new _re.default(this.options.srcName),this.decorators=new _re.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(","),`) {
`),this.decorators=this.decorators.merge()));var d=this.createFunctionContext(n);if(this.isChild)return d;var A={compiler:this.compilerInfo(),main:d};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var p=this.context,f=p.programs,m=p.decorators;for(l=0,u=f.length;l<u;l++)A[l]=f[l],m[l]&&(A[l+"_d"]=m[l],A.useDecorators=!0);return this.environment.usePartial&&(A.usePartial=!0),this.options.data&&(A.useData=!0),this.useDepths&&(A.useDepths=!0),this.useBlockParams&&(A.useBlockParams=!0),this.options.compat&&(A.compat=!0),n?A.compilerOptions=this.options:(A.compiler=JSON.stringify(A.compiler),this.source.currentLocation={start:{line:1,column:0}},A=this.objectLiteral(A),r.srcName?(A=A.toStringWithSourceMap({file:r.destName}),A.map=A.map&&A.map.toString()):A=A.toString()),A},"compile"),preamble:o(function(){this.lastContext=0,this.source=new zre.default(this.options.srcName),this.decorators=new zre.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(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(l){l.appendToBuffer?(a?l.prepend(" + "):a=l,c=l):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -84,78 +83,78 @@ Expecting `+ue.join(", ")+", got '"+(this.terminals_[b]||b)+"'":vr="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(x2e(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return n?[" && ",p]:[" != null ? ",p," : ",A]})},"_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};Nt.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};Nt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};Nt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};Nt.prototype.BlockStatement=Nt.prototype.DecoratorBlock=function(t){var e="";return e+=this.pad((t.type==="DecoratorBlock"?"DIRECTIVE ":"")+"BLOCK:"),this.padding++,e+=this.pad(this.SubExpression(t)),t.program&&(e+=this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--),t.inverse&&(t.program&&this.padding++,e+=this.pad("{{^}}"),this.padding++,e+=this.accept(t.inverse),this.padding--,t.program&&this.padding--),this.padding--,e};Nt.prototype.PartialStatement=function(t){var e="PARTIAL:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),this.pad("{{> "+e+" }}")};Nt.prototype.PartialBlockStatement=function(t){var e="PARTIAL BLOCK:"+t.name.original;return t.params[0]&&(e+=" "+this.accept(t.params[0])),t.hash&&(e+=" "+this.accept(t.hash)),e+=" "+this.pad("PROGRAM:"),this.padding++,e+=this.accept(t.program),this.padding--,this.pad("{{> "+e+" }}")};Nt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};Nt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};Nt.prototype.SubExpression=function(t){for(var e=t.params,r=[],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};Nt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};Nt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};Nt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};Nt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};Nt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};Nt.prototype.NullLiteral=function(){return"NULL"};Nt.prototype.Hash=function(t){for(var e=t.pairs,r=[],s=0,n=e.length;s<n;s++)r.push(this.accept(e[s]));return"HASH{"+r.join(", ")+"}"};Nt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var Vre=h((BSt,Hre)=>{var r0=Fre().default,Gre=Ure();r0.PrintVisitor=Gre.PrintVisitor;r0.print=Gre.print;Hre.exports=r0;function qre(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=r0.compile(s)}o(qre,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=qre,require.extensions[".hbs"]=qre)});var sse=h(a0=>{"use strict";Object.defineProperty(a0,"__esModule",{value:!0});a0.getProxyUrl=J2e;a0.checkBypass=rse;function J2e(t){let e=t.protocol==="https:";if(rse(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 o0(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new o0(`http://${r}`)}else return}o(J2e,"getProxyUrl");function rse(t){if(!t.hostname)return!1;let e=t.hostname;if(Y2e(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(rse,"checkBypass");function Y2e(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(Y2e,"isLoopbackAddress");var o0=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 ise=h(At=>{"use strict";var $2e=At&&At.__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]})),W2e=At&&At.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),d0=At&&At.__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"&&$2e(r,e,s[n]);return W2e(r,e), 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(zqe(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,l=o(function(d){a.replaceStack(function(A){var p=a.nameLookup(A,r[d],e);return n?[" && ",p]:[" != null ? ",p," : ",A]})},"_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};bt.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};bt.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};bt.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};bt.prototype.BlockStatement=bt.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};bt.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+" }}")};bt.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+" }}")};bt.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};bt.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};bt.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};bt.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};bt.prototype.StringLiteral=function(t){return'"'+t.value+'"'};bt.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};bt.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};bt.prototype.UndefinedLiteral=function(){return"UNDEFINED"};bt.prototype.NullLiteral=function(){return"NULL"};bt.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(", ")+"}"};bt.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var nse=h((Axt,sse)=>{var i0=Zre().default,rse=ese();i0.PrintVisitor=rse.PrintVisitor;i0.print=rse.print;sse.exports=i0;function tse(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=i0.compile(s)}o(tse,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=tse,require.extensions[".hbs"]=tse)});var gse=h(u0=>{"use strict";Object.defineProperty(u0,"__esModule",{value:!0});u0.getProxyUrl=uGe;u0.checkBypass=mse;function uGe(t){let e=t.protocol==="https:";if(mse(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 l0(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new l0(`http://${r}`)}else return}o(uGe,"getProxyUrl");function mse(t){if(!t.hostname)return!1;let e=t.hostname;if(dGe(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(mse,"checkBypass");function dGe(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(dGe,"isLoopbackAddress");var l0=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 yse=h(dt=>{"use strict";var AGe=dt&&dt.__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]})),pGe=dt&&dt.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),f0=dt&&dt.__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"&&AGe(r,e,s[n]);return pGe(r,e), Line truncated
`).join(`
`+i),t.push(n+"m+"+bS.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=U$e()+e+" "+t[0]}o(F$e,"formatArgs");function U$e(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(U$e,"getDate");function q$e(...t){return process.stderr.write(BS.formatWithOptions(Ar.inspectOpts,...t)+`
`)}o(q$e,"log");function G$e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(G$e,"save");function H$e(){return process.env.DEBUG}o(H$e,"load");function V$e(t){t.inspectOpts={};let e=Object.keys(Ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ar.inspectOpts[e[r]]}o(V$e,"init");bS.exports=BU()(Ar);var{formatters:Iae}=bS.exports;Iae.o=function(t){return this.inspectOpts.colors=this.useColors,BS.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Iae.O=function(t){return this.inspectOpts.colors=this.useColors,BS.inspect(t,this.inspectOpts)}});var wU=h((Pvt,bU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?bU.exports=Cae():bU.exports=Bae()});var SS=h(xt=>{"use strict";Object.defineProperty(xt,"__esModule",{value:!0});xt.DownloadHTTPError=xt.DownloadLengthMismatchError=xt.DownloadError=xt.ExpiredMetadataError=xt.EqualVersionError=xt.BadVersionError=xt.RepositoryError=xt.PersistError=xt.RuntimeError=xt.ValueError=void 0;var SU=class extends Error{static{o(this,"ValueError")}};xt.ValueError=SU;var NU=class extends Error{static{o(this,"RuntimeError")}};xt.RuntimeError=NU;var xU=class extends Error{static{o(this,"PersistError")}};xt.PersistError=xU;var Hg=class extends Error{static{o(this,"RepositoryError")}};xt.RepositoryError=Hg;var wS=class extends Hg{static{o(this,"BadVersionError")}};xt.BadVersionError=wS;var QU=class extends wS{static{o(this,"EqualVersionError")}};xt.EqualVersionError=QU;var RU=class extends Hg{static{o(this,"ExpiredMetadataError")}};xt.ExpiredMetadataError=RU;var Vg=class extends Error{static{o(this,"DownloadError")}};xt.DownloadError=Vg;var TU=class extends Vg{static{o(this,"DownloadLengthMismatchError")}};xt.DownloadLengthMismatchError=TU;var vU=class extends Vg{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};xt.DownloadHTTPError=vU});var wae=h(Pp=>{"use strict";var _U=Pp&&Pp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.withTempFile=void 0;var PU=_U(require("fs/promises")),z$e=_U(require("os")),bae=_U(require("path")),J$e=o(async t=>Y$e(async e=>t(bae.default.join(e,"tempfile"))),"withTempFile");Pp.withTempFile=J$e;var Y$e=o(async t=>{let e=await PU.default.realpath(z$e.default.tmpdir()),r=await PU.default.mkdtemp(e+bae.default.sep);try{return await t(r)}finally{await PU.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Nae=h((Mvt,Sae)=>{var kU=class{static{o(this,"RetryOperation")}#e=1;#t=null;#s=[];#r=null;#n;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#n=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#s]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#s.length){let r=0,s={};for(let n=0;n<this.#s.length;n++){let i=this.#s[n],{message:a}=i;s[a]||(s[a]=0),s[a]++,s[a]>=r&&(e=i,r=s[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#t=null}retry(e){if(this.#s.push(e),new Date().getTime()-this.#i>=this.#n)return this.#s.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#t)this.#s.pop(),r=this.#t.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#r=e,this.#i=new Date().getTime(),this.#r(this.#e)}};Sae.exports={RetryOperation:kU}});var Rae=h((Fvt,Qae)=>{var{RetryOperation:$$e}=Nae(),xae=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"),W$e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),j$e=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(n.retries){for(let i=0;i<n.retries;i++)r.push(xae(i,n));r.sort((i,a)=>i-a)}else e.forever&&r.push(xae(0,n))}let s=new $$e(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(n,i){s.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,s);return n(c)}catch(c){if(!W$e(c))return i(c);if(!s.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Qae.exports={promiseRetry:j$e}});var MU=h(Vc=>{"use strict";var OU=Vc&&Vc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vc,"__esModule",{value:!0});Vc.DefaultFetcher=Vc.BaseFetcher=void 0;var K$e=OU(wU()),Tae=OU(require("fs")),X$e=OU(require("util")),vae=SS(),Z$e=wae(),e3e=Rae(),t3e=(0,K$e.default)("tuf:fetch"),r3e="User-Agent",NS=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,s){return(0,Z$e.withTempFile)(async n=>{let i=await this.fetch(e),a=0,c=Tae.default.createWriteStream(n),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new vae.DownloadLengthMismatchError("Max length reached");await s3e(c,Buffer.from(d))}}finally{l.releaseLock(),await X$e.default.promisify(c.close).bind(c)()}return s(n)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let n=Tae.defau Line truncated
`).forEach(r=>{r.match(cWe)||r.match(lWe)||(e+=r)}),Buffer.from(e,"base64")}o(uWe,"toDER");function dWe(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`+i),t.push(n+"m+"+NS.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=nWe()+e+" "+t[0]}o(sWe,"formatArgs");function nWe(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(nWe,"getDate");function iWe(...t){return process.stderr.write(SS.formatWithOptions(Ar.inspectOpts,...t)+`
`)}o(iWe,"log");function oWe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(oWe,"save");function aWe(){return process.env.DEBUG}o(aWe,"load");function cWe(t){t.inspectOpts={};let e=Object.keys(Ar.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ar.inspectOpts[e[r]]}o(cWe,"init");NS.exports=vU()(Ar);var{formatters:Dae}=NS.exports;Dae.o=function(t){return this.inspectOpts.colors=this.useColors,SS.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Dae.O=function(t){return this.inspectOpts.colors=this.useColors,SS.inspect(t,this.inspectOpts)}});var _U=h((B_t,PU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?PU.exports=kae():PU.exports=Oae()});var QS=h(St=>{"use strict";Object.defineProperty(St,"__esModule",{value:!0});St.DownloadHTTPError=St.DownloadLengthMismatchError=St.DownloadError=St.ExpiredMetadataError=St.EqualVersionError=St.BadVersionError=St.RepositoryError=St.PersistError=St.RuntimeError=St.ValueError=void 0;var kU=class extends Error{static{o(this,"ValueError")}};St.ValueError=kU;var DU=class extends Error{static{o(this,"RuntimeError")}};St.RuntimeError=DU;var OU=class extends Error{static{o(this,"PersistError")}};St.PersistError=OU;var Jg=class extends Error{static{o(this,"RepositoryError")}};St.RepositoryError=Jg;var xS=class extends Jg{static{o(this,"BadVersionError")}};St.BadVersionError=xS;var MU=class extends xS{static{o(this,"EqualVersionError")}};St.EqualVersionError=MU;var LU=class extends Jg{static{o(this,"ExpiredMetadataError")}};St.ExpiredMetadataError=LU;var $g=class extends Error{static{o(this,"DownloadError")}};St.DownloadError=$g;var FU=class extends $g{static{o(this,"DownloadLengthMismatchError")}};St.DownloadLengthMismatchError=FU;var UU=class extends $g{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};St.DownloadHTTPError=UU});var Lae=h(Gp=>{"use strict";var GU=Gp&&Gp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Gp,"__esModule",{value:!0});Gp.withTempFile=void 0;var qU=GU(require("fs/promises")),lWe=GU(require("os")),Mae=GU(require("path")),uWe=o(async t=>dWe(async e=>t(Mae.default.join(e,"tempfile"))),"withTempFile");Gp.withTempFile=uWe;var dWe=o(async t=>{let e=await qU.default.realpath(lWe.default.tmpdir()),r=await qU.default.mkdtemp(e+Mae.default.sep);try{return await t(r)}finally{await qU.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Uae=h((x_t,Fae)=>{var HU=class{static{o(this,"RetryOperation")}#e=1;#r=null;#n=[];#t=null;#s;#i=null;#a;#o;#l=null;#c;constructor(e,r={}){this.#a=[...e],this.#o=[...e],this.#c=r.unref,this.#s=r.maxRetryTime||1/0,r.forever&&(this.#r=[...this.#o])}get timeouts(){return[...this.#o]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,s={};for(let n=0;n<this.#n.length;n++){let i=this.#n[n],{message:a}=i;s[a]||(s[a]=0),s[a]++,s[a]>=r&&(e=i,r=s[a])}}return e}reset(){this.#e=1,this.#o=[...this.#a]}stop(){this.#l&&clearTimeout(this.#l),this.#o=[],this.#r=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#i>=this.#s)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#o.shift();if(r===void 0)if(this.#r)this.#n.pop(),r=this.#r.at(-1);else return!1;return this.#l=setTimeout(()=>{this.#e++,this.#t(this.#e)},r),this.#c&&this.#l.unref(),!0}attempt(e){this.#t=e,this.#i=new Date().getTime(),this.#t(this.#e)}};Fae.exports={RetryOperation:HU}});var Hae=h((R_t,Gae)=>{var{RetryOperation:AWe}=Uae(),qae=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"),pWe=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),fWe=o(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let n={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(n.minTimeout>n.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(n.retries){for(let i=0;i<n.retries;i++)r.push(qae(i,n));r.sort((i,a)=>i-a)}else e.forever&&r.push(qae(0,n))}let s=new AWe(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(n,i){s.attempt(async a=>{try{let c=await t(l=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:l})},a,s);return n(c)}catch(c){if(!pWe(c))return i(c);if(!s.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Gae.exports={promiseRetry:fWe}});var JU=h(Yc=>{"use strict";var zU=Yc&&Yc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Yc,"__esModule",{value:!0});Yc.DefaultFetcher=Yc.BaseFetcher=void 0;var hWe=zU(_U()),Vae=zU(require("fs")),mWe=zU(require("util")),zae=QS(),gWe=Lae(),EWe=Hae(),yWe=(0,hWe.default)("tuf:fetch"),CWe="User-Agent",RS=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,s){return(0,gWe.withTempFile)(async n=>{let i=await this.fetch(e),a=0,c=Vae.default.createWriteStream(n),l=i.getReader();try{for(;;){let{done:u,value:d}=await l.read();if(u)break;if(a+=d.length,a>r)throw new zae.DownloadLengthMismatchError("Max length reached");await IWe(c,Buffer.from(d))}}finally{l.releaseLock(),await mWe.default.promisify(c.close).bind(c)()}return s(n)})}async downloadBytes(e,r){return this.downloadFile(e,r,async s=>{let n=Vae.defau Line truncated
`).forEach(r=>{r.match(Nje)||r.match(xje)||(e+=r)}),Buffer.from(e,"base64")}o(Qje,"toDER");function Rje(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}o(dWe,"fromDER")});var GS=h(Wc=>{"use strict";Object.defineProperty(Wc,"__esModule",{value:!0});Wc.SHA2_HASH_ALGOS=Wc.RSA_SIGNATURE_ALGOS=Wc.ECDSA_SIGNATURE_ALGOS=void 0;Wc.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"};Wc.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"};Wc.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 a2=h(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.RFC3161TimestampVerificationError=void 0;var o2=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};HS.RFC3161TimestampVerificationError=o2});var ace=h(Po=>{"use strict";var AWe=Po&&Po.__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]})),pWe=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fWe=Po&&Po.__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"&&AWe(r,e,s[n]);return pWe(r,e),r}})();Object.defineProperty(Po,"__esModule",{value:!0});Po.TSTInfo=void 0;var oce=fWe(Lp()),hWe=GS(),mWe=a2(),c2=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 hWe.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=oce.digest(this.messageImprintHashAlgorithm,e);if(!oce.bufferEqual(r,this.messageImprintHashedMessage))throw new mWe.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Po.TSTInfo=c2});var lce=h(_o=>{"use strict";var gWe=_o&&_o.__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]})),EWe=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yWe=_o&&_o.__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"&&gWe(r,e,s[n]);return EWe(r,e),r}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.RFC3161Timestamp=void 0;var CWe=FS(),l2=yWe(Lp()),cce=GS(),jg=a2(),IWe=ace(),BWe="1.2.840.113549.1.7.2",bWe="1.2.840.113549.1.9.16.1.4",wWe="1.2.840.113549.1.9.4",u2=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=CWe.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 cce.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return cce.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new IWe.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new jg.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==BWe)throw new jg.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==bWe)throw new jg.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=l2.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`)}o(Rje,"fromDER")});var zS=h(Zc=>{"use strict";Object.defineProperty(Zc,"__esModule",{value:!0});Zc.SHA2_HASH_ALGOS=Zc.RSA_SIGNATURE_ALGOS=Zc.ECDSA_SIGNATURE_ALGOS=void 0;Zc.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"};Zc.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"};Zc.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 m2=h(JS=>{"use strict";Object.defineProperty(JS,"__esModule",{value:!0});JS.RFC3161TimestampVerificationError=void 0;var h2=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};JS.RFC3161TimestampVerificationError=h2});var Ice=h(_o=>{"use strict";var Tje=_o&&_o.__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]})),vje=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pje=_o&&_o.__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"&&Tje(r,e,s[n]);return vje(r,e),r}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.TSTInfo=void 0;var Cce=Pje(Yp()),_je=zS(),kje=m2(),g2=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 _je.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Cce.digest(this.messageImprintHashAlgorithm,e);if(!Cce.bufferEqual(r,this.messageImprintHashedMessage))throw new kje.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};_o.TSTInfo=g2});var wce=h(ko=>{"use strict";var Dje=ko&&ko.__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]})),Oje=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mje=ko&&ko.__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"&&Dje(r,e,s[n]);return Oje(r,e),r}})();Object.defineProperty(ko,"__esModule",{value:!0});ko.RFC3161Timestamp=void 0;var Lje=GS(),E2=Mje(Yp()),Bce=zS(),Zg=m2(),Fje=Ice(),Uje="1.2.840.113549.1.7.2",qje="1.2.840.113549.1.9.16.1.4",Gje="1.2.840.113549.1.9.4",y2=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=Lje.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 Bce.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Bce.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new Fje.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Zg.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==Uje)throw new Zg.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==qje)throw new Zg.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=E2.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,Vje=/\u2014 (\S+) (\S+)\n/g;function zje(t,e){let r=t.inclusionProof,s=U2.fromString(r.checkpoint.envelope),n=lN.fromString(s.note);if(!Jje(s,e))throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(zje,"verifyCheckpoint");function Jje(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>Hce.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.includes(s.name));return n?Hce.crypto.verify(r,n.publicKey,s.signature):!1})}o(Jje,"verifySignedNote");var U2=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(F2))throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(F2),s=e.slice(0,r+1),i=e.slice(r+F2.length).matchAll(Vje),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new zp.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 zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},lN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n;try{n=BigInt(r[1])}catch{throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};tE.LogCheckpoint=lN});var zce=h(H2=>{"use strict";Object.defineProperty(H2,"__esModule",{value:!0});H2.verifyMerkleInclusion=Wje;var G2=yi(),uN=Tr(),Yje=Buffer.from([0]),$je=Buffer.from([1]);function Wje(t,e){let r=t.inclusionProof,s;try{s=BigInt(r.logIndex)}catch{throw new uN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let n=BigInt(e.logSize);if(s<0n||s>=n)throw new uN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=jje(s,n);if(r.hashes.length!==i+a)throw new uN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=r4e(t.canonicalizedBody),d=Xje(Kje(u,c,s),l);if(!G2.crypto.bufferEqual(d,e.logHash))throw new uN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(Wje,"verifyMerkleInclusion");function jje(t,e){let r=Zje(t,e),s=e4e(t>>BigInt(r));return{inner:r,border:s}}o(jje,"decompInclProof");function Kje(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?q2(n,s):q2(s,n),t)}o(Kje,"chainInner");function Xje(t,e){return e.reduce((r,s)=>q2(s,r),t)}o(Xje,"chainBorderRight");function Zje(t,e){return t4e(t^e-BigInt(1))}o(Zje,"innerProofSize");function e4e(t){return t.toString(2).split("1").length-1}o(e4e,"onesCount");function t4e(t){return t===0n?0:t.toString(2).length}o(t4e,"bitLength");function q2(t,e){return G2.crypto.digest("sha256",$je,t,e)}o(q2,"hashChildren");function r4e(t){return G2.crypto.digest("sha256",Yje,t)}o(r4e,"hashLeaf")});var Yce=h(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.verifyTLogSET=i4e;var Jce=yi(),s4e=Tr(),n4e=qp();function i4e(t,e){if(!(0,n4e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=o4e(t),a=Buffer.from(Jce.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Jce.crypto.verify(a,n.publicKey,c)}))throw new s4e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(i4e,"verifyTLogSET");function o4e(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(o4e,"toVerificationPayload")});var Wce=h(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});AN.verifyTLogBody=d4e;AN.verifyTLogInclusion=A4e;var $ce=Fce(),dN=Tr(),z2=Uce(),J2=qce(),a4e=Gce(),c4e=Vce(),l4e=zce(),u4e=Yce();function d4e(t,e){let{kind:r,version:s}=t.kindVersion,n;try{n=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new dN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==n.kind||s!==n.apiVersion)throw new dN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==z2.DSSE_API_VERSION_V1)return(0,z2.verifyDSSETLogBody)(n,e);{let i=$ce.Entry.fromJSON(n);return(0,z2.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,a4e.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==J2.HASHEDREKORD_API_VERSION_V1)return(0,J2.verifyHashedRekordTLogBody)(n,e);{let i=$ce.Entry.fromJSON(n);return(0,J2.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new dN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(d4e,"verifyTLogBody");function A4e(t,e){let r=!1;if(p4e(t)&&((0,u4e.verifyTLogSET)(t,e),r=!0),f4e(t)){let s=(0,c4e.verifyCheckpoint)(t,e);(0,l4e.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new dN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(A4e,"verifyTLogInclusion");function p4e(t){return t.inclusionPromise!==void 0}o(p4e,"isTLogEntryWithInclusionPromise");function f4e(t){return t.inclusionProof!==void 0}o(f4e,"isTLogEntryWithInclusionProof")});var Zce=h(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});pN.Verifier=void 0;var h4e=require("util"),Ju=Tr(),jce=xce(),Y2=Qce(),Kce=vce(),Xce=Wce(),W2=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 s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"time Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(uC,"getBooleanInput");function cW(t){process.exitCode=IT.Failure,Jd(t)}o(cW,"setFailed");function Tl(){return process.env.RUNNER_DEBUG==="1"}o(Tl,"isDebug");function B(t){qa("debug",{},t)}o(B,"debug");function Jd(t,e={}){qa("error",vN(e),t instanceof Error?t.toString():t)}o(Jd,"error");function ct(t,e={}){qa("warning",vN(e),t instanceof Error?t.toString():t)}o(ct,"warning");function S(t){process.stdout.write(t+oW.EOL)}o(S,"info");function ZBe(t){_N("group",t)}o(ZBe,"startGroup");function ebe(){_N("endgroup")}o(ebe,"endGroup");function Ls(t,e){return XBe(this,void 0,void 0,function*(){ZBe(t);let r;try{r=yield e()}finally{ebe()}return r})}o(Ls,"group");function dC(t,e){if(process.env.GITHUB_STATE||"")return kN("STATE",aq(t,e));qa("save-state",{name:t},Ua(e))}o(dC,"saveState");function lW(t){return process.env[`STATE_${t}`]||""}o(lW,"getState");var rg=w(require("fs"),1),RL=w(require("os"),1),TL=w(require("path"),1);var dW=w(require("os"),1);function lh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(lh,"toCommandValue");function AW(t,e,r){let s=new BT(t,e,r);process.stdout.write(s.toString()+dW.EOL)}o(AW,"issueCommand");var uW="::",BT=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=uW+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${rbe(n)}`)}}return e+=`${uW}${tbe(this.message)}`,e}};function tbe(t){return lh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(tbe,"escapeData");function rbe(t){return lh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(rbe,"escapeProperty");var mW=w(require("os"),1);var fW=require("os"),uh=require("fs");var bT=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:sbe,appendFile:nbe,writeFile:ibe}=uh.promises,pW="GITHUB_STEP_SUMMARY";var wT=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return bT(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[pW];if(!e)throw new Error(`Unable to find environment variable for $${pW}. Check if your runtime environment supports job summaries.`);try{yield sbe(e,uh.constants.R_OK|uh.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,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return bT(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?ibe:nbe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return bT(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(fW.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},Z9e=new wT;var ST=w(require("os"),1);var nKe=ST.default.platform(),iKe=ST.defauLine truncated
`,c5e=/\u2014 (\S+) (\S+)\n/g;function l5e(t,e){let r=t.inclusionProof,s=W2.fromString(r.checkpoint.envelope),n=AN.fromString(s.note);if(!u5e(s,e))throw new tf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(l5e,"verifyCheckpoint");function u5e(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>sle.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.includes(s.name));return n?sle.crypto.verify(r,n.publicKey,s.signature):!1})}o(u5e,"verifySignedNote");var W2=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(Y2))throw new tf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(Y2),s=e.slice(0,r+1),i=e.slice(r+Y2.length).matchAll(c5e),a=Array.from(i,c=>{let[,l,u]=c,d=Buffer.from(u,"base64");if(d.length<5)throw new tf.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 tf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},AN=class t{static{o(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,s,n){this.origin=e,this.logSize=r,this.logHash=s,this.rest=n}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new tf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n;try{n=BigInt(r[1])}catch{throw new tf.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint log size"})}let i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};nE.LogCheckpoint=AN});var ile=h(X2=>{"use strict";Object.defineProperty(X2,"__esModule",{value:!0});X2.verifyMerkleInclusion=p5e;var K2=Ii(),pN=Pr(),d5e=Buffer.from([0]),A5e=Buffer.from([1]);function p5e(t,e){let r=t.inclusionProof,s;try{s=BigInt(r.logIndex)}catch{throw new pN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid inclusion proof log index"})}let n=BigInt(e.logSize);if(s<0n||s>=n)throw new pN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=f5e(s,n);if(r.hashes.length!==i+a)throw new pN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),l=r.hashes.slice(i),u=C5e(t.canonicalizedBody),d=m5e(h5e(u,c,s),l);if(!K2.crypto.bufferEqual(d,e.logHash))throw new pN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(p5e,"verifyMerkleInclusion");function f5e(t,e){let r=g5e(t,e),s=E5e(t>>BigInt(r));return{inner:r,border:s}}o(f5e,"decompInclProof");function h5e(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?j2(n,s):j2(s,n),t)}o(h5e,"chainInner");function m5e(t,e){return e.reduce((r,s)=>j2(s,r),t)}o(m5e,"chainBorderRight");function g5e(t,e){return y5e(t^e-BigInt(1))}o(g5e,"innerProofSize");function E5e(t){return t.toString(2).split("1").length-1}o(E5e,"onesCount");function y5e(t){return t===0n?0:t.toString(2).length}o(y5e,"bitLength");function j2(t,e){return K2.crypto.digest("sha256",A5e,t,e)}o(j2,"hashChildren");function C5e(t){return K2.crypto.digest("sha256",d5e,t)}o(C5e,"hashLeaf")});var ale=h(Z2=>{"use strict";Object.defineProperty(Z2,"__esModule",{value:!0});Z2.verifyTLogSET=w5e;var ole=Ii(),I5e=Pr(),B5e=Kp();function w5e(t,e){if(!(0,B5e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=b5e(t),a=Buffer.from(ole.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return ole.crypto.verify(a,n.publicKey,c)}))throw new I5e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(w5e,"verifyTLogSET");function b5e(t){let{integratedTime:e,logIndex:r,logId:s,canonicalizedBody:n}=t;return{body:n.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:s.keyId.toString("hex")}}o(b5e,"toVerificationPayload")});var lle=h(hN=>{"use strict";Object.defineProperty(hN,"__esModule",{value:!0});hN.verifyTLogBody=R5e;hN.verifyTLogInclusion=T5e;var cle=Zce(),fN=Pr(),eq=ele(),tq=tle(),S5e=rle(),N5e=nle(),x5e=ile(),Q5e=ale();function R5e(t,e){let{kind:r,version:s}=t.kindVersion,n;try{n=JSON.parse(t.canonicalizedBody.toString("utf8"))}catch{throw new fN.VerificationError({code:"TLOG_BODY_ERROR",message:"invalid canonicalized body"})}if(r!==n.kind||s!==n.apiVersion)throw new fN.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==eq.DSSE_API_VERSION_V1)return(0,eq.verifyDSSETLogBody)(n,e);{let i=cle.Entry.fromJSON(n);return(0,eq.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,S5e.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==tq.HASHEDREKORD_API_VERSION_V1)return(0,tq.verifyHashedRekordTLogBody)(n,e);{let i=cle.Entry.fromJSON(n);return(0,tq.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new fN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(R5e,"verifyTLogBody");function T5e(t,e){let r=!1;if(v5e(t)&&((0,Q5e.verifyTLogSET)(t,e),r=!0),P5e(t)){let s=(0,N5e.verifyCheckpoint)(t,e);(0,x5e.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new fN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(T5e,"verifyTLogInclusion");function v5e(t){return t.inclusionPromise!==void 0}o(v5e,"isTLogEntryWithInclusionPromise");function P5e(t){return t.inclusionProof!==void 0}o(P5e,"isTLogEntryWithInclusionProof")});var ple=h(mN=>{"use strict";Object.defineProperty(mN,"__esModule",{value:!0});mN.Verifier=void 0;var _5e=require("util"),Xu=Pr(),ule=qce(),rq=Gce(),dle=zce(),Ale=lle(),nq=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 s=this.verifyTimestamps(e),n=this.verifySigningKey(e,s);return this.verifyTLogs(e),this.verifySignature(e,n),r&&this.verifyPolicy(r,n.identity||{}),n}verifyTimestamps(e){let r=[];for(let s of e.timestamps)switch(s.$case){case"time Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(pC,"getBooleanInput");function gW(t){process.exitCode=bT.Failure,Zd(t)}o(gW,"setFailed");function Dl(){return process.env.RUNNER_DEBUG==="1"}o(Dl,"isDebug");function B(t){Ga("debug",{},t)}o(B,"debug");function Zd(t,e={}){Ga("error",kN(e),t instanceof Error?t.toString():t)}o(Zd,"error");function at(t,e={}){Ga("warning",kN(e),t instanceof Error?t.toString():t)}o(at,"warning");function S(t){process.stdout.write(t+hW.EOL)}o(S,"info");function pwe(t){ON("group",t)}o(pwe,"startGroup");function fwe(){ON("endgroup")}o(fwe,"endGroup");function Fs(t,e){return Awe(this,void 0,void 0,function*(){pwe(t);let r;try{r=yield e()}finally{fwe()}return r})}o(Fs,"group");function fC(t,e){if(process.env.GITHUB_STATE||"")return MN("STATE",mq(t,e));Ga("save-state",{name:t},qa(e))}o(fC,"saveState");function EW(t){return process.env[`STATE_${t}`]||""}o(EW,"getState");var ug=b(require("fs"),1),DL=b(require("os"),1),OL=b(require("path"),1);var CW=b(require("os"),1);function yh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(yh,"toCommandValue");function IW(t,e,r){let s=new ST(t,e,r);process.stdout.write(s.toString()+CW.EOL)}o(IW,"issueCommand");var yW="::",ST=class{static{o(this,"Command")}constructor(e,r,s){e||(e="missing.command"),this.command=e,this.properties=r,this.message=s}toString(){let e=yW+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let s in this.properties)if(this.properties.hasOwnProperty(s)){let n=this.properties[s];n&&(r?r=!1:e+=",",e+=`${s}=${mwe(n)}`)}}return e+=`${yW}${hwe(this.message)}`,e}};function hwe(t){return yh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(hwe,"escapeData");function mwe(t){return yh(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(mwe,"escapeProperty");var SW=b(require("os"),1);var wW=require("os"),Ch=require("fs");var NT=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},{access:gwe,appendFile:Ewe,writeFile:ywe}=Ch.promises,BW="GITHUB_STEP_SUMMARY";var xT=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return NT(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[BW];if(!e)throw new Error(`Unable to find environment variable for $${BW}. Check if your runtime environment supports job summaries.`);try{yield gwe(e,Ch.constants.R_OK|Ch.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,s={}){let n=Object.entries(s).map(([i,a])=>` ${i}="${a}"`).join("");return r?`<${e}${n}>${r}</${e}>`:`<${e}${n}>`}write(e){return NT(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?ywe:Ewe)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return NT(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(wW.EOL)}addCodeBlock(e,r){let s=Object.assign({},r&&{lang:r}),n=this.wrap("pre",this.wrap("code",e),s);return this.addRaw(n).addEOL()}addList(e,r=!1){let s=r?"ol":"ul",n=e.map(a=>this.wrap("li",a)).join(""),i=this.wrap(s,n);return this.addRaw(i).addEOL()}addTable(e){let r=e.map(n=>{let i=n.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:l,colspan:u,rowspan:d}=a,A=c?"th":"td",p=Object.assign(Object.assign({},u&&{colspan:u}),d&&{rowspan:d});return this.wrap(A,l,p)}).join("");return this.wrap("tr",i)}).join(""),s=this.wrap("table",r);return this.addRaw(s).addEOL()}addDetails(e,r){let s=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(s).addEOL()}addImage(e,r,s){let{width:n,height:i}=s||{},a=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let s=`h${r}`,n=["h1","h2","h3","h4","h5","h6"].includes(s)?s:"h1",i=this.wrap(n,e);return this.addRaw(i).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let s=Object.assign({},r&&{cite:r}),n=this.wrap("blockquote",e,s);return this.addRaw(n).addEOL()}addLink(e,r){let s=this.wrap("a",e,{href:r});return this.addRaw(s).addEOL()}},gXe=new xT;var QT=b(require("os"),1);var BXe=QT.default.platform(),wXe=QT.defauLine 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 wh(i));return s.searchPaths.push(...nv(s.patterns)),s})}static stat(e,r,s){return uv(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield Xd.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){mn(`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 Xd.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield Xd.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){mn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var $Se=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function W4(t,e){return $Se(this,void 0,void 0,function*(){return yield vC.create(t,e)})}o(W4,"create");var $C=w(require("crypto"),1),tA=w(require("fs"),1),Ol=w(require("path"),1),U8=w(L8(),1),q8=w(require("util"),1);var _h;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(_h||(_h={}));var Ur;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Ur||(Ur={}));var Us;(function(t){t.GNU="gnu",t.BSD="bsd"})(Us||(Us={}));var zC=2,JC=5e3,Tv=5e3,vv=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,F8=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kh="cache.tar",Pv="manifest.txt",ltt=10*Math.pow(1024,3),YC="cache read denied:";var eA=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},zQe=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)}},JQe="1.0";function Dh(){return eA(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=Ol.join(s,"actions","temp")}let r=Ol.join(e,$C.randomUUID());return yield sa(r),r})}o(Dh,"createTempDirectory");function Ui(t){return tA.statSync(t).size}o(Ui,"getArchiveFileSizeInBytes");function _v(t){return eA(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 W4(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=zQe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){n=A.value,u=!1;let f=Ol.relative(c,n).replace(new RegExp(`\\${Ol.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=d.return)&&(yield s.call(d))}finally{if(r)throw r.error}}return a})}o(_v,"resolvePaths");function Oh(t){return eA(this,void 0,void 0,function*(){return q8.promisify(tA.unlink)(t)})}o(Oh,"unlinkFile");function G8(t){return eA(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Ms(`${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(G8,"getVersion");function Mh(){return eA(this,void 0,void 0,function*(){let t=yield G8("zstd",["--quiet"]),e=U8.clean(t);return B(`zstd version: ${e}`),t===""?Ur.Gzip:Ur.ZstdWithoutLong})}o(Mh,"getCompressionMethod");function fc(t){return t===Ur.Gzip?_h.Gzip:_h.Zstd}o(fc,"getCacheFileName");function H8(){return eA(this,void 0,void 0,function*(){return tA.existsSync(vv)?vv:(yield G8("tar")).toLowerCase().includes("gnu tar")?fr("tar"):""})}o(H8,"getGnuTarPathOnWindows");function kv(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(kv,"assertDefined");function rA(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(JQe),$C.createHash("sha256").update(s.join("|")).digest("hex")}o(rA,"getCacheVersion");function V8(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(V8,"getRuntimeToken");var Fh=w(require("http"),1),Mv=w(require("https"),1);function Dv(t){let e=t.protocol==="https:";if(YQe(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 jC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jC(`http://${r}`)}else return}o(Dv,"getProxyUrl");function YQe(t){if(!t.hostname)return!1;let e=t.hostname;if($Qe(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(YQe,"checkBypass");function $Qe(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($Qe,"isLoopbackAddress");var jC=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 hc=w(ef(),1),z8=w(Hd(),1);var vt=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},yt;(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"})(yt||(yt={}));var qr;(function(t){t.Accept="accept",t.ContentType="content-type"})(qr||(qr={}));var aa;(function(t){t.ApplicationJson="application/json"})(aa||(aa={}));var jQe=[yt.MovedPermanently,yt.ResourceMoved,yt.SeeOther,yt.TemporaryRedirect,yt.PermanentRedirect],KQe=[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout],XQe=["OPTIONS","GET","DELETE","HEAD"],ZQe=10,eRe=5,qi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${lRe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function rI(t){return t instanceof Gr?!0:Ll(t)&&t.name==="RestError"}o(rI,"isRestError");function is(t,e){return Buffer.from(t,e)}o(is,"stringToUint8Array");var sI=w(require("node:http"),1),nI=w(require("node:https"),1),Yv=w(require("node:zlib"),1),l6=require("node:stream");var yn=Uh("ts-http-runtime");var uRe={};function qh(t){return t&&typeof t.pipe=="function"}o(qh,"isReadableStream");function c6(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(c6,"isStreamComplete");function u6(t){return t&&typeof t.byteLength=="number"}o(u6,"isArrayBuffer");var iI=class extends l6.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}},$v=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 Gi("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 oi;yn.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=fRe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,g=new iI(m);g.on("error",y=>{yn.error("Error in upload progress",y)}),qh(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let d=dRe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?ARe(u,d):u;let f=e.onDownloadProgress;if(f){let m=new iI(f);m.on("error",g=>{yn.error("Error in download progress",g)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await pRe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();qh(c)&&(u=c6(c));let d=Promise.resolve();qh(l)&&(d=c6(l)),Promise.all([u,d]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{yn.warning("Error when cleaning up abortListener on httpRequest",A)})}}}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 d=i?sI.default.request(c,l):nI.default.request(c,l);d.once("error",A=>{u(new Gr(A.message,{code:A.code??Gr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Gi("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),s&&qh(s)?s.pipe(d):s?typeof s=="string"||Buffer.isBuffer(s)?d.end(s):u6(s)?d.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(yn.error("Unrecognized body type",s),u(new Gr("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?sI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new sI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return nI.default.globalAgent;let n=e.tlsSettings??uRe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(yn.info("No cached TLS Agent exist, creating a new Agent"),i=new nI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function dRe(t){let e=qs();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(dRe,"getResponseHeaders");function ARe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=Yv.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=Yv.default.createInflate();return t.pipe(s),s}return t}o(ARe,"getDecodedResponseStream");function pRe(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 Gr(`Error reading response as text: ${n.message}`,{code:Gr.PARSE_ERROR}))})})}o(pRe,"streamToText");function fRe(t){return t?Buffer.isBuffer(t)?t.length:qh(t)?nul Line truncated
`;return e}o(zTe,"encodeHeaders");function JTe(t){return t instanceof Uint8Array?t.byteLength:RI(t)?t.size===-1?void 0:t.size:void 0}o(JTe,"getLength");function YTe(t){let e=0;for(let r of t){let s=JTe(r);if(s===void 0)return;e+=s}return e}o(YTe,"getTotalLength");async function $Te(t,e,r){let s=[is(`--${r}`,"utf-8"),...e.flatMap(i=>[is(`\r
`,"utf-8"),is(zTe(i.headers),"utf-8"),is(`\r
`,"utf-8"),i.body,is(`\r
--${r}`,"utf-8")]),is(`--\r
`).map(i=>i.trim());for(let i of n)!i||i.startsWith("#")||s.patterns.push(new Dh(i));return s.searchPaths.push(...av(s.patterns)),s})}static stat(e,r,s){return mv(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield iA.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){fn(`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 iA.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield iA.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){fn(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var $Ne=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function e5(t,e){return $Ne(this,void 0,void 0,function*(){return yield _C.create(t,e)})}o(e5,"create");var jC=b(require("crypto"),1),lA=b(require("fs"),1),Ul=b(require("path"),1),$8=b(z8(),1),Y8=b(require("util"),1);var Gh;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Gh||(Gh={}));var qr;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(qr||(qr={}));var Us;(function(t){t.GNU="gnu",t.BSD="bsd"})(Us||(Us={}));var $C=2,YC=5e3,Mv=5e3,Lv=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,J8=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Hh="cache.tar",Fv="manifest.txt",Krt=10*Math.pow(1024,3),WC="cache read denied:";var cA=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},rTe=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)}},sTe="1.0";function ql(){return cA(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=Ul.join(s,"actions","temp")}let r=Ul.join(e,jC.randomUUID());return yield ia(r),r})}o(ql,"createTempDirectory");function Ui(t){return lA.statSync(t).size}o(Ui,"getArchiveFileSizeInBytes");function Uv(t){return cA(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 e5(t.join(`
`),{implicitDescendants:!1});try{for(var u=!0,d=rTe(l.globGenerator()),A;A=yield d.next(),e=A.done,!e;u=!0){n=A.value,u=!1;let f=Ul.relative(c,n).replace(new RegExp(`\\${Ul.sep}`,"g"),"/");B(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(p){r={error:p}}finally{try{!u&&!e&&(s=d.return)&&(yield s.call(d))}finally{if(r)throw r.error}}return a})}o(Uv,"resolvePaths");function Vh(t){return cA(this,void 0,void 0,function*(){return Y8.promisify(lA.unlink)(t)})}o(Vh,"unlinkFile");function W8(t){return cA(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),B(`Checking ${e} ${r.join(" ")}`);try{yield Ls(`${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(W8,"getVersion");function zh(){return cA(this,void 0,void 0,function*(){let t=yield W8("zstd",["--quiet"]),e=$8.clean(t);return B(`zstd version: ${e}`),t===""?qr.Gzip:qr.ZstdWithoutLong})}o(zh,"getCompressionMethod");function gc(t){return t===qr.Gzip?Gh.Gzip:Gh.Zstd}o(gc,"getCacheFileName");function j8(){return cA(this,void 0,void 0,function*(){return lA.existsSync(Lv)?Lv:(yield W8("tar")).toLowerCase().includes("gnu tar")?fr("tar"):""})}o(j8,"getGnuTarPathOnWindows");function qv(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(qv,"assertDefined");function uA(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(sTe),jC.createHash("sha256").update(s.join("|")).digest("hex")}o(uA,"getCacheVersion");function K8(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(K8,"getRuntimeToken");var $h=b(require("http"),1),Vv=b(require("https"),1);function Gv(t){let e=t.protocol==="https:";if(nTe(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 XC(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new XC(`http://${r}`)}else return}o(Gv,"getProxyUrl");function nTe(t){if(!t.hostname)return!1;let e=t.hostname;if(iTe(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(nTe,"checkBypass");function iTe(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(iTe,"isLoopbackAddress");var XC=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 Ec=b(df(),1),X8=b(Wd(),1);var Rt=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},gt;(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"})(gt||(gt={}));var Gr;(function(t){t.Accept="accept",t.ContentType="content-type"})(Gr||(Gr={}));var la;(function(t){t.ApplicationJson="application/json"})(la||(la={}));var aTe=[gt.MovedPermanently,gt.ResourceMoved,gt.SeeOther,gt.TemporaryRedirect,gt.PermanentRedirect],cTe=[gt.BadGateway,gt.ServiceUnavailable,gt.GatewayTimeout],lTe=["OPTIONS","GET","DELETE","HEAD"],uTe=10,dTe=5,qi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${CTe.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function nI(t){return t instanceof Hr?!0:Hl(t)&&t.name==="RestError"}o(nI,"isRestError");function os(t,e){return Buffer.from(t,e)}o(os,"stringToUint8Array");var iI=b(require("node:http"),1),oI=b(require("node:https"),1),eP=b(require("node:zlib"),1),m6=require("node:stream");var En=Yh("ts-http-runtime");var ITe={};function Wh(t){return t&&typeof t.pipe=="function"}o(Wh,"isReadableStream");function h6(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(h6,"isStreamComplete");function g6(t){return t&&typeof t.byteLength=="number"}o(g6,"isArrayBuffer");var aI=class extends m6.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}},tP=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 Gi("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 ai;En.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=STe(c);u!==null&&e.headers.set("Content-Length",u)}let l;try{if(c&&e.onUploadProgress){let m=e.onUploadProgress,g=new aI(m);g.on("error",y=>{En.error("Error in upload progress",y)}),Wh(c)?c.pipe(g):g.end(c),c=g}let u=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let d=BTe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?wTe(u,d):u;let f=e.onDownloadProgress;if(f){let m=new aI(f);m.on("error",g=>{En.error("Error in download progress",g)}),l.pipe(m),l=m}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(p.status)?p.readableStreamBody=l:p.bodyAsText=await bTe(l),p}finally{if(e.abortSignal&&s){let u=Promise.resolve();Wh(c)&&(u=h6(c));let d=Promise.resolve();Wh(l)&&(d=h6(l)),Promise.all([u,d]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{En.warning("Error when cleaning up abortListener on httpRequest",A)})}}}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 d=i?iI.default.request(c,l):oI.default.request(c,l);d.once("error",A=>{u(new Hr(A.message,{code:A.code??Hr.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Gi("The operation was aborted. Rejecting from abort signal callback while making request.");d.destroy(A),u(A)}),s&&Wh(s)?s.pipe(d):s?typeof s=="string"||Buffer.isBuffer(s)?d.end(s):g6(s)?d.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(En.error("Unrecognized body type",s),u(new Hr("Unrecognized body type"))):d.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?iI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new iI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return oI.default.globalAgent;let n=e.tlsSettings??ITe,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(En.info("No cached TLS Agent exist, creating a new Agent"),i=new oI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function BTe(t){let e=qs();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(BTe,"getResponseHeaders");function wTe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=eP.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=eP.default.createInflate();return t.pipe(s),s}return t}o(wTe,"getDecodedResponseStream");function bTe(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 Hr(`Error reading response as text: ${n.message}`,{code:Hr.PARSE_ERROR}))})})}o(bTe,"streamToText");function STe(t){return t?Buffer.isBuffer(t)?t.length:Wh(t)?nul Line truncated
`;return e}o(rPe,"encodeHeaders");function sPe(t){return t instanceof Uint8Array?t.byteLength:vI(t)?t.size===-1?void 0:t.size:void 0}o(sPe,"getLength");function nPe(t){let e=0;for(let r of t){let s=sPe(r);if(s===void 0)return;e+=s}return e}o(nPe,"getTotalLength");async function iPe(t,e,r){let s=[os(`--${r}`,"utf-8"),...e.flatMap(i=>[os(`\r
`,"utf-8"),os(rPe(i.headers),"utf-8"),os(`\r
`,"utf-8"),i.body,os(`\r
--${r}`,"utf-8")]),os(`--\r
\r
`,"utf-8")],n=YTe(s);n&&t.headers.set("Content-Length",n),t.body=await f9(s)}o($Te,"buildRequestBody");var Vh="multipartPolicy",WTe=70,jTe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function KTe(t){if(t.length>WTe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jTe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(KTe,"assertValidBoundary");function vI(){return{name:Vh,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?KTe(r):r=VTe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await $Te(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(vI,"multipartPolicy");function PI(){return tI()}o(PI,"createEmptyPipeline");var h9=XC({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),aot=h9.logger;function zi(t){return h9.createClientLogger(t)}o(zi,"createClientLogger");var Ji=zi("core-rest-pipeline");function pP(t={}){return aI({logger:Ji.info,...t})}o(pP,"logPolicy");var fP=cI;function hP(t={}){return lI(t)}o(hP,"redirectPolicy");var _I=w(require("node:os"),1),kI=w(require("node:process"),1);function m9(){return"User-Agent"}o(m9,"getHeaderName");async function g9(t){if(kI.default&&kI.default.versions){let e=`${_I.default.type()} ${_I.default.release()}; ${_I.default.arch()}`,r=kI.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(g9,"setPlatformSpecificData");var DI="1.22.2";function ive(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(ive,"getUserAgentString");function E9(){return m9()}o(E9,"getUserAgentHeaderName");async function OI(t){let e=new Map;e.set("core-rest-pipeline",DI),await g9(e);let r=ive(e);return t?`${t} ${r}`:r}o(OI,"getUserAgentValue");var y9=E9(),C9="userAgentPolicy";function mP(t={}){let e=OI(t.userAgentPrefix);return{name:C9,async sendRequest(r,s){return r.headers.has(y9)||r.headers.set(y9,await e),s(r)}}}o(mP,"userAgentPolicy");var zs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function gP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new zs(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(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}s?.addEventListener("abort",u)})}o(gP,"createAbortablePromise");var uve="The delay was aborted.";function zh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return gP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??uve})}o(zh,"delay");function gc(t){if(Ll(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(gc,"getErrorMessage");function I9(t){return Ll(t)}o(I9,"isError");function dA(){return Ml()}o(dA,"randomUUID");var _e=ql;var B9=Symbol("rawContent");function yP(t){return typeof t[B9]=="function"}o(yP,"hasRawContent");function b9(t){return yP(t)?t[B9]():t}o(b9,"getRawContent");var MI=Vh;function CP(){let t=vI();return{name:MI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)yP(s.body)&&(s.body=b9(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(CP,"multipartPolicy");var IP=uI;function BP(){return dI()}o(BP,"decompressResponsePolicy");function bP(t={}){return fI(t)}o(bP,"defaultRetryPolicy");function wP(){return hI()}o(wP,"formDataPolicy");function Ec(t){return cP(t)}o(Ec,"getDefaultProxySettings");function SP(t,e){return NI(t,e)}o(SP,"proxyPolicy");var w9="setClientRequestIdPolicy";function NP(t="x-ms-client-request-id"){return{name:w9,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(NP,"setClientRequestIdPolicy");function xP(t){return xI(t)}o(xP,"agentPolicy");function QP(t){return QI(t)}o(QP,"tlsPolicy");var AA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function S9(t={}){let e=new RP(t.parentContext);return t.span&&(e=e.setValue(AA.span,t.span)),t.namespace&&(e=e.setValue(AA.namespace,t.namespace)),e}o(S9,"createTracingContext");var RP=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--),!kPe(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Pt("InvalidTag",A,Hr(t,i))}let u=RPe(t,i);if(u===!1)return Pt("InvalidAttr","Attributes for '"+l+"' have open quote.",Hr(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=cK(d,e);if(p===!0)s=!0;else return Pt(p.err.code,p.err.msg,Hr(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Pt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Hr(t,a));if(r.length===0)return Pt("InvalidTag","Closing tag '"+l+"' has not been opened.",Hr(t,a));{let A=r.pop();if(l!==A.tagName){let p=Hr(t,A.tagStartPos);return Pt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Hr(t,a))}r.length==0&&(n=!0)}}else return Pt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Hr(t,i));else{let A=cK(d,e);if(A!==!0)return Pt(A.err.code,A.err.msg,Hr(t,i-d.length+A.err.line));if(n===!0)return Pt("InvalidXml","Multiple possible root nodes found.",Hr(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=aK(t,i);continue}else if(t[i+1]==="?"){if(i=oK(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=PPe(t,i);if(A==-1)return Pt("InvalidChar","char '&' is not expected.",Hr(t,i));i=A}else if(n===!0&&!iK(t[i]))return Pt("InvalidXml","Extra text at the end",Hr(t,i));t[i]==="<"&&i--}}else{if(iK(t[i]))continue;return Pt("InvalidChar","char '"+t[i]+"' is not expected.",Hr(t,i))}if(s){if(r.length==1)return Pt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Hr(t,r[0].tagStartPos));if(r.length>0)return Pt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Pt("InvalidXml","Start tag expected.",1);return!0}o(jI,"validate");function iK(t){return t===" "||t===" "||t===`
`||t==="\r"}o(iK,"isWhiteSpace");function oK(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 Pt("InvalidXml","XML declaration allowed only at the start of the document.",Hr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(oK,"readPI");function aK(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(aK,"readCommentAndCDATA");var xPe='"',QPe="'";function RPe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===xPe||t[e]===QPe)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(RPe,"readAttributeStr");var TPe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cK(t,e){let r=$I(t,TPe),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",sm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Pt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",sm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Pt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",sm(r[n]));let i=r[n][2];if(!_Pe(i))return Pt("InvalidAttr","Attribute '"+i+"' is an invalid name.",sm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Pt("InvalidAttr","Attribute '"+i+"' is repeated.",sm(r[n]))}return!0}o(cK,"validateAttributeString");function vPe(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(vPe,"validateNumberAmpersand");function PPe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vPe(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(PPe,"validateAmpersand");function Pt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Pt,"getErrorObject");function _Pe(t){return YP(t)}o(_Pe,"validateAttrName");function kPe(t){return YP(t)}o(kPe,"validateTagName");function Hr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Hr,"getLineNumberForPosition");function sm(t){return t.startIndex+t[1].length}o(sm,"getPositionFromMatch");var lK={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"},uK={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"},dK={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 ls("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new om(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 d=gA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(n.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=t_(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=d}else if(u===63){let d=r_(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&d.tagName==="?xml"||n.ignorePiTags)){let p=new ls(d.tagName);p.add(n.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=gA(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,d-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=gA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,p),c=d+2}else{let d=r_(t,c,n.removeNSPrefix);if(!d){let Q=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${Q}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,m=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=t_(n.transformTagName,A,f,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),m=A!==f);let C=null,I={},b;b=s_e(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&m&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=r_e(C,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let Q="";if(E)c=d.closeIndex;else if(n.unpairedTagsSet.has(A))c=d.closeIndex;else{let ae=this.readStopNodeData(t,p,g+1);if(!ae)throw new Error(`Unexpected end of ${p}`);c=ae.i,Q=ae.tagContent}let D=new ls(A);C&&(D[":@"]=C),D.add(n.textNodeName,Q),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=t_(n.transformTagName,A,f,n));let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let Q=new ls(A);C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let Q=new ls(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(Q[":@"]=C),this.addChild(r,Q,this.readonlyMatcher,N),r=Q}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function l_e(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(l_e,"addChild");function u_e(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(u_e,"replaceEntitiesValue");function d_e(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(d_e,"saveTextToParentTag");function A_e(){return this.stopNodeExpressionsLine truncated
`;function I_e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(c_(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(I_e,"detectXmlVersionFromArray");function vK(t,e,r,s,n){return!r.sanitizeName||Jl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(vK,"resolveTagName");function a_(t,e){let r="";e.format&&(r=C_e);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 $s(c)):c instanceof $s&&s.push(c)}let n=I_e(t,e),i=new Wi;return PK(t,e,r,i,s,n)}o(a_,"toXml");function PK(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=o_(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=c_(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:vK(d,!1,e,s,i),f=B_e(u[":@"],e);s.push(p,f);let m=w_e(s,n);if(p===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(p,I),I=o_(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],b=tB(I);a+=`<![CDATA[${b}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],b=eB(I);a+=r+`<!--${b}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=TK(u[":@"],e,m,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=TK(u[":@"],e,m,s,i),E=r+`<${p}${y}`,C;m?C=_K(u[d],e):C=PK(u[d],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o(PK,"arrToStr");function B_e(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]=Ic(t[n]),s=!0}return s?r:null}o(B_e,"extractAttributeValues");function _K(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=c_(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=b_e(n[":@"],e),c=_K(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(_K,"getRawContent");function b_e(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)}="${Ic(n)}"`}return r}o(b_e,"attr_to_str_raw");function c_(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(c_,"propName");function TK(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:vK(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=o_(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Ic(u)}"`}return i}o(TK,"attr_to_str");function w_e(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(w_e,"checkStopNode");function o_(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(o_,"replaceEntitiesValue");function l_(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(l_,"getIgnoreAttributesFn");var S_e={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 ds(t){if(this.options=Object.assign({},S_e,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=nPe(s);n&&t.headers.set("Content-Length",n),t.body=await I9(s)}o(iPe,"buildRequestBody");var Xh="multipartPolicy",oPe=70,aPe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function cPe(t){if(t.length>oPe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!aPe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(cPe,"assertValidBoundary");function _I(){return{name:Xh,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?cPe(r):r=tPe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await iPe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(_I,"multipartPolicy");function kI(){return sI()}o(kI,"createEmptyPipeline");var B9=eI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Wat=B9.logger;function zi(t){return B9.createClientLogger(t)}o(zi,"createClientLogger");var Ji=zi("core-rest-pipeline");function CP(t={}){return lI({logger:Ji.info,...t})}o(CP,"logPolicy");var IP=uI;function BP(t={}){return dI(t)}o(BP,"redirectPolicy");var DI=b(require("node:os"),1),OI=b(require("node:process"),1);function w9(){return"User-Agent"}o(w9,"getHeaderName");async function b9(t){if(OI.default&&OI.default.versions){let e=`${DI.default.type()} ${DI.default.release()}; ${DI.default.arch()}`,r=OI.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(b9,"setPlatformSpecificData");var MI="1.22.2";function mPe(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(mPe,"getUserAgentString");function S9(){return w9()}o(S9,"getUserAgentHeaderName");async function LI(t){let e=new Map;e.set("core-rest-pipeline",MI),await b9(e);let r=mPe(e);return t?`${t} ${r}`:r}o(LI,"getUserAgentValue");var N9=S9(),x9="userAgentPolicy";function wP(t={}){let e=LI(t.userAgentPrefix);return{name:x9,async sendRequest(r,s){return r.headers.has(N9)||r.headers.set(N9,await e),s(r)}}}o(wP,"userAgentPolicy");var zs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function bP(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new zs(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(d=>{l(),i(d)},d=>{l(),a(d)})}catch(d){a(d)}s?.addEventListener("abort",u)})}o(bP,"createAbortablePromise");var IPe="The delay was aborted.";function Zh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return bP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??IPe})}o(Zh,"delay");function Cc(t){if(Hl(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(Cc,"getErrorMessage");function Q9(t){return Hl(t)}o(Q9,"isError");function yA(){return Gl()}o(yA,"randomUUID");var Pe=Jl;var R9=Symbol("rawContent");function NP(t){return typeof t[R9]=="function"}o(NP,"hasRawContent");function T9(t){return NP(t)?t[R9]():t}o(T9,"getRawContent");var FI=Xh;function xP(){let t=_I();return{name:FI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)NP(s.body)&&(s.body=T9(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(xP,"multipartPolicy");var QP=AI;function RP(){return pI()}o(RP,"decompressResponsePolicy");function TP(t={}){return mI(t)}o(TP,"defaultRetryPolicy");function vP(){return gI()}o(vP,"formDataPolicy");function Ic(t){return hP(t)}o(Ic,"getDefaultProxySettings");function PP(t,e){return QI(t,e)}o(PP,"proxyPolicy");var v9="setClientRequestIdPolicy";function _P(t="x-ms-client-request-id"){return{name:v9,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o(_P,"setClientRequestIdPolicy");function kP(t){return RI(t)}o(kP,"agentPolicy");function DP(t){return TI(t)}o(DP,"tlsPolicy");var CA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function P9(t={}){let e=new OP(t.parentContext);return t.span&&(e=e.setValue(CA.span,t.span)),t.namespace&&(e=e.setValue(CA.namespace,t.namespace)),e}o(P9,"createTracingContext");var OP=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--),!z_e(l)){let A;return l.trim().length===0?A="Invalid space after '<'.":A="Tag '"+l+"' is an invalid name.",Tt("InvalidTag",A,Vr(t,i))}let u=U_e(t,i);if(u===!1)return Tt("InvalidAttr","Attributes for '"+l+"' have open quote.",Vr(t,i));let d=u.value;if(i=u.index,d[d.length-1]==="/"){let A=i-d.length;d=d.substring(0,d.length-1);let p=hK(d,e);if(p===!0)s=!0;else return Tt(p.err.code,p.err.msg,Vr(t,A+p.err.line))}else if(c)if(u.tagClosed){if(d.trim().length>0)return Tt("InvalidTag","Closing tag '"+l+"' can't have attributes or invalid starting.",Vr(t,a));if(r.length===0)return Tt("InvalidTag","Closing tag '"+l+"' has not been opened.",Vr(t,a));{let A=r.pop();if(l!==A.tagName){let p=Vr(t,A.tagStartPos);return Tt("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+p.line+", col "+p.col+") instead of closing tag '"+l+"'.",Vr(t,a))}r.length==0&&(n=!0)}}else return Tt("InvalidTag","Closing tag '"+l+"' doesn't have proper closing.",Vr(t,i));else{let A=hK(d,e);if(A!==!0)return Tt(A.err.code,A.err.msg,Vr(t,i-d.length+A.err.line));if(n===!0)return Tt("InvalidXml","Multiple possible root nodes found.",Vr(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=fK(t,i);continue}else if(t[i+1]==="?"){if(i=pK(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=H_e(t,i);if(A==-1)return Tt("InvalidChar","char '&' is not expected.",Vr(t,i));i=A}else if(n===!0&&!AK(t[i]))return Tt("InvalidXml","Extra text at the end",Vr(t,i));t[i]==="<"&&i--}}else{if(AK(t[i]))continue;return Tt("InvalidChar","char '"+t[i]+"' is not expected.",Vr(t,i))}if(s){if(r.length==1)return Tt("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Vr(t,r[0].tagStartPos));if(r.length>0)return Tt("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Tt("InvalidXml","Start tag expected.",1);return!0}o(XI,"validate");function AK(t){return t===" "||t===" "||t===`
`||t==="\r"}o(AK,"isWhiteSpace");function pK(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 Tt("InvalidXml","XML declaration allowed only at the start of the document.",Vr(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(pK,"readPI");function fK(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(fK,"readCommentAndCDATA");var L_e='"',F_e="'";function U_e(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===L_e||t[e]===F_e)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(U_e,"readAttributeStr");var q_e=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hK(t,e){let r=jI(t,q_e),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return Tt("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",dm(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return Tt("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",dm(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return Tt("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",dm(r[n]));let i=r[n][2];if(!V_e(i))return Tt("InvalidAttr","Attribute '"+i+"' is an invalid name.",dm(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return Tt("InvalidAttr","Attribute '"+i+"' is repeated.",dm(r[n]))}return!0}o(hK,"validateAttributeString");function G_e(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(G_e,"validateNumberAmpersand");function H_e(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,G_e(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(H_e,"validateAmpersand");function Tt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Tt,"getErrorObject");function V_e(t){return e_(t)}o(V_e,"validateAttrName");function z_e(t){return e_(t)}o(z_e,"validateTagName");function Vr(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(Vr,"getLineNumberForPosition");function dm(t){return t.startIndex+t[1].length}o(dm,"getPositionFromMatch");var mK={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"},gK={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"},EK={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 us("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new fm(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 d=SA(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,d).trim();if(n.removeNSPrefix){let f=A.indexOf(":");f!==-1&&(A=A.substr(f+1))}A=c_(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let p=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);p&&n.unpairedTagsSet.has(p)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=d}else if(u===63){let d=l_(t,c,!1,"?>");if(!d)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(d.tagExp,this.matcher,d.tagName,!0);if(A){let p=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(p)||1),i.setXmlVersion(Number(p)||1)}if(!(n.ignoreDeclaration&&d.tagName==="?xml"||n.ignorePiTags)){let p=new us(d.tagName);p.add(n.textNodeName,""),d.tagName!==d.tagExp&&d.attrExpPresent&&n.ignoreAttributes!==!0&&(p[":@"]=A),this.addChild(r,p,this.readonlyMatcher,c)}c=d.closeIndex+1}else if(u===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let d=SA(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,d-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=d}else if(u===33&&t.charCodeAt(c+2)===68){let d=i.readDocType(t,c);this.entityDecoder.addInputEntities(d.entities),c=d.i}else if(u===33&&t.charCodeAt(c+2)===91){let d=SA(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,d);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let p=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);p==null&&(p=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,p),c=d+2}else{let d=l_(t,c,n.removeNSPrefix);if(!d){let R=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${R}"`)}let A=d.tagName,p=d.rawTagName,f=d.tagExp,m=d.attrExpPresent,g=d.closeIndex;if({tagName:A,tagExp:f}=c_(n.transformTagName,A,f,n),n.strictReservedNames&&(A===n.commentPropName||A===n.cdataPropName||A===n.textNodeName||A===n.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&s&&r.tagname!=="!xml"&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher,!1));let y=r;y&&n.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),f=A):f=f.substr(0,f.length-1),m=A!==f);let C=null,I={},w;w=fke(p),A!==e.tagname&&this.matcher.push(A,{},w),A!==f&&m&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=pke(C,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let R="";if(E)c=d.closeIndex;else if(n.unpairedTagsSet.has(A))c=d.closeIndex;else{let be=this.readStopNodeData(t,p,g+1);if(!be)throw new Error(`Unexpected end of ${p}`);c=be.i,R=be.tagContent}let D=new us(A);C&&(D[":@"]=C),D.add(n.textNodeName,R),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,D,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:f}=c_(n.transformTagName,A,f,n));let R=new us(A);C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let R=new us(A);C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=d.closeIndex;continue}else{let R=new us(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(R[":@"]=C),this.addChild(r,R,this.readonlyMatcher,N),r=R}s="",c=g}}}else s+=t[c];return e.child},"parseXml");function Cke(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(Cke,"addChild");function Ike(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(Ike,"replaceEntitiesValue");function Bke(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(Bke,"saveTextToParentTag");function wke(){return this.stopNodeExpressionsLine truncated
`;function Pke(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(h_(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(Pke,"detectXmlVersionFromArray");function LK(t,e,r,s,n){return!r.sanitizeName||Kl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(LK,"resolveTagName");function f_(t,e){let r="";e.format&&(r=vke);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 Ys(c)):c instanceof Ys&&s.push(c)}let n=Pke(t,e),i=new Wi;return FK(t,e,r,i,s,n)}o(f_,"toXml");function FK(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=p_(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=h_(u);if(d===void 0)continue;let p=d===e.textNodeName||d===e.cdataPropName||d===e.commentPropName||d[0]==="?"?d:LK(d,!1,e,s,i),f=_ke(u[":@"],e);s.push(p,f);let m=Dke(s,n);if(p===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(p,I),I=p_(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(p===e.cdataPropName){c&&(a+=r);let I=u[d][0][e.textNodeName],w=sB(I);a+=`<![CDATA[${w}]]>`,c=!1,s.pop();continue}else if(p===e.commentPropName){let I=u[d][0][e.textNodeName],w=rB(I);a+=r+`<!--${w}-->`,c=!0,s.pop();continue}else if(p[0]==="?"){let I=MK(u[":@"],e,m,s,i);a+=(p==="?xml"?"":r)+`<${p}${I}?>`,c=!0,s.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=MK(u[":@"],e,m,s,i),E=r+`<${p}${y}`,C;m?C=UK(u[d],e):C=FK(u[d],e,g,s,n,i),e.unpairedTags.indexOf(p)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!C||C.length===0)&&e.suppressEmptyNode?a+=E+"/>":C&&C.endsWith(">")?a+=E+`>${C}${r}</${p}>`:(a+=E+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?a+=r+e.indentBy+C+r:a+=C,a+=`</${p}>`),c=!0,s.pop()}return a}o(FK,"arrToStr");function _ke(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]=bc(t[n]),s=!0}return s?r:null}o(_ke,"extractAttributeValues");function UK(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=h_(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=kke(n[":@"],e),c=UK(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(UK,"getRawContent");function kke(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)}="${bc(n)}"`}return r}o(kke,"attr_to_str_raw");function h_(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(h_,"propName");function MK(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:LK(c,!0,e,s,n),u;r?u=t[a]:(u=e.attributeValueProcessor(a,t[a]),u=p_(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${bc(u)}"`}return i}o(MK,"attr_to_str");function Dke(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(Dke,"checkStopNode");function p_(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(p_,"replaceEntitiesValue");function m_(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(m_,"getIgnoreAttributesFn");var Oke={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 As(t){if(this.options=Object.assign({},Oke,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(ds,"Builder");function N_e(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(N_e,"detectXmlVersionFromObj");function u_(t,e,r,s,n){return!r.sanitizeName||Jl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(u_,"resolveTagName");ds.prototype.build=function(t){if(this.options.preserveOrder)return a_(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wi,r=N_e(t,this.options);return this.j2x(t,0,e,r).val}};ds.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 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:u_(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=u_(A,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let m=0;m<A;m++){let g=t[l][m];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let m=u_(A[f],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,s)}return{attrStr:n,val:i}};ds.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+'="'+Ic(e)+'"'};function x_e(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(x_e,"processTextOrObjNode");ds.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]=Ic(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]=Ic(t[s]),r=!0)}return r?e:null};ds.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(As,"Builder");function Mke(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(Mke,"detectXmlVersionFromObj");function g_(t,e,r,s,n){return!r.sanitizeName||Kl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(g_,"resolveTagName");As.prototype.build=function(t){if(this.options.preserveOrder)return f_(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wi,r=Mke(t,this.options);return this.j2x(t,0,e,r).val}};As.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 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:g_(l,!1,this.options,r,s);if(typeof t[l]>"u")this.isAttribute(l)&&(i+="");else if(t[l]===null)this.isAttribute(l)||d===this.options.cdataPropName||d===this.options.commentPropName?i+="":d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(t[l]instanceof Date)i+=this.buildTextValNode(t[l],d,"",e,r);else if(typeof t[l]!="object"){let A=this.isAttribute(l);if(A&&!this.ignoreAttributesFn(A,a)){let p=g_(A,!0,this.options,r,s);n+=this.buildAttrPairStr(p,""+t[l],c)}else if(!A)if(l===this.options.textNodeName){let p=this.options.tagValueProcessor(l,""+t[l]);i+=this.replaceEntitiesValue(p)}else{r.push(d);let p=this.checkStopNode(r);if(r.pop(),p){let f=""+t[l];f===""?i+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:i+=this.indentate(e)+"<"+d+">"+f+"</"+d+this.tagEndChar}else i+=this.buildTextValNode(t[l],d,"",e,r)}}else if(Array.isArray(t[l])){let A=t[l].length,p="",f="";for(let m=0;m<A;m++){let g=t[l][m];if(!(typeof g>"u"))if(g===null)d[0]==="?"?i+=this.indentate(e)+"<"+d+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+d+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(d);let y=this.j2x(g,e+1,r,s);r.pop(),p+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else p+=this.processTextOrObjNode(g,d,e,r,s);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(d,g);y=this.replaceEntitiesValue(y),p+=y}else{r.push(d);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?p+=this.indentate(e)+"<"+d+this.closeTag(d)+this.tagEndChar:p+=this.indentate(e)+"<"+d+">"+E+"</"+d+this.tagEndChar}else p+=this.buildTextValNode(g,d,"",e,r)}}this.options.oneListGroup&&(p=this.buildObjectNode(p,d,f,e)),i+=p}else if(this.options.attributesGroupName&&l===this.options.attributesGroupName){let A=Object.keys(t[l]),p=A.length;for(let f=0;f<p;f++){let m=g_(A[f],!0,this.options,r,s);n+=this.buildAttrPairStr(m,""+t[l][A[f]],c)}}else i+=this.processTextOrObjNode(t[l],d,e,r,s)}return{attrStr:n,val:i}};As.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+'="'+bc(e)+'"'};function Lke(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(Lke,"processTextOrObjNode");As.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]=bc(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]=bc(t[s]),r=!0)}return r?e:null};As.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(oe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===oe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE));r.sort((n,i)=>AB(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=lB(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=uB(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 Ct=class extends Wl{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new dm(e,r,this)}computeHMACSHA256(e){return(0,qK.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Wt=zi("storage-common");var bn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(bn||(bn={}));var bc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},O_e=new zs("The operation was aborted."),Am=class extends ji{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=bc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:bc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):bc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:bc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:bc.maxRetryDelayInMs):bc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:bc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:bc.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=cB(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Bc(n.url,Aa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Wt.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(Wt.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 Wt.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 Wt.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 Wt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Wt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(oe.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')?(Wt.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 bn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case bn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Wt.info(`RetryPolicy: Delay for ${n}ms`),dB(n,s,O_e)}};var pm=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Am(e,r,this.retryOptions)}};var M_e="storageBrowserPolicy";function GK(){return{name:M_e,async sendRequest(t,e){return _e||((t.method==="GET"||t.method==="HEAD")&&(t.url=Bc(t.url,Aa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(oe.COOKIE),t.headers.delete(oe.CONTENT_LENGTH)),e(t)}}}o(GK,"storageBrowserPolicy");var L_e="StorageCorrectContentLengthPolicy";function HK(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(oe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:L_e,async sendRequest(e,r){return t(e),r(e)}}}o(HK,"storageCorrectContentLengthPolicy");var F_e="storageRetryPolicy",yA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},U_e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],q_e=new zs("The operation was aborted.");function VK(t={}){let e=t.retryPolicyType??yA.retryPolicyType,r=t.maxTries??yA.maxTries,s=t.retryDelayInMs??yA.retryDelayInMs,n=t.maxRetryDelayInMs??yA.maxRetryDelayInMs,i=t.secondaryHost??yA.secondaryHost,a=t.tryTimeoutInMs??yA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return Wt.inf Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),s=this.factory.computeHMACSHA256(r);return e.headers.set(oe.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===oe.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE));r.sort((n,i)=>fB(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=dB(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=AB(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 Et=class extends eu{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ym(e,r,this)}computeHMACSHA256(e){return(0,YK.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Wt=zi("storage-common");var Bn;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Bn||(Bn={}));var Nc={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$ke=new zs("The operation was aborted."),Cm=class extends ji{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=Nc){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:Nc.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):Nc.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:Nc.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:Nc.maxRetryDelayInMs):Nc.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:Nc.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:Nc.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=uB(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=Sc(n.url,fa.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Wt.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(Wt.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 Wt.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 Wt.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 Wt.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Wt.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(oe.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')?(Wt.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 Bn.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Bn.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return Wt.info(`RetryPolicy: Delay for ${n}ms`),pB(n,s,$ke)}};var Im=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Cm(e,r,this.retryOptions)}};var Yke="storageBrowserPolicy";function WK(){return{name:Yke,async sendRequest(t,e){return Pe||((t.method==="GET"||t.method==="HEAD")&&(t.url=Sc(t.url,fa.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(oe.COOKIE),t.headers.delete(oe.CONTENT_LENGTH)),e(t)}}}o(WK,"storageBrowserPolicy");var Wke="StorageCorrectContentLengthPolicy";function jK(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(oe.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:Wke,async sendRequest(e,r){return t(e),r(e)}}}o(jK,"storageCorrectContentLengthPolicy");var jke="storageRetryPolicy",xA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kke=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Xke=new zs("The operation was aborted.");function KK(t={}){let e=t.retryPolicyType??xA.retryPolicyType,r=t.maxTries??xA.maxTries,s=t.retryDelayInMs??xA.retryDelayInMs,n=t.maxRetryDelayInMs??xA.maxRetryDelayInMs,i=t.secondaryHost??xA.secondaryHost,a=t.tryTimeoutInMs??xA.tryTimeoutInMs;function c({isPrimaryRetry:u,attempt:d,response:A,error:p}){if(d>=r)return Wt.inf Line truncated
`)+`
`+s(i)+n(i),c=(0,zK.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(oe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===oe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>AB(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(s,"getCanonicalizedHeadersString");function n(i){let a=lB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=uB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:G_e,async sendRequest(i,a){return e(i),a(i)}}}o(h_,"storageSharedKeyCredentialPolicy");var H_e="storageRequestFailureDetailsParserPolicy";function JK(){return{name:H_e,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(JK,"storageRequestFailureDetailsParserPolicy");var YK=require("node:crypto");var pB=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,YK.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var fB="12.31.0",hB="2026-02-06";var mB="https://storage.azure.com/.default",pa={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ai="",m_="*",V_e=1*1024*1024;var z_e=4*V_e;var $K="AES256",WK="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",jK=["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"],KK=["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"],XK="BlobUsesCustomerSpecifiedEncryption",ZK="BlobDoesNotUseCustomerSpecifiedEncryption",eX=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function fa(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(fa,"isPipelineLike");var fm=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 _t(t,e={}){t||(t=new lt);let r=new fm([],e);return r._credential=t,r}o(_t,"newPipeline");function J_e(t){let e=[Y_e,tX,$_e,W_e,j_e,K_e,Z_e];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>X_e(n));return{wrappedPolicies:zP(r),afterRetry:s}}}}o(J_e,"processDownlevelPipeline");function g_(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?JP(e):f_(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${fB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=jh({...r,loggingOptions:{additionalAllowedHeaderNames:jK,additionalAllowedQueryParameters:KK,logger:sB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:rB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:A_,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:IP}),n.addPolicy(HK()),n.addPolicy(VK(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new Ai(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(JDe,"generateBlobSASQueryParameters20150405");function YDe(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?di(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 Ai(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(YDe,"generateBlobSASQueryParameters20181109");function $De(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?di(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 Ai(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($De,"generateBlobSASQueryParameters20201206");function WDe(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ke(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ke(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?di(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 Ai(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(WDe,"generateBlobSASQueryParametersUDK20181109");function jDe(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ke(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ke(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?di(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 Ai(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(jDe,"generateBlobSASQueryParametersUDK20200210");function KDe(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ke(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ke(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?di(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 Ai(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(KDe,"generateBlobSASQueryParametersUDK20201206");function XDe(t,e){if(t=nu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?ke(t.startsOn,!1):"",t.expiresOn?ke(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?ke(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?ke(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?di(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 Ai(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(XDe,"generateBlobSASQueryParametersUDK20250705");function su(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(su,"getCanonicalName");function nu(t){let e=t.version?t.version:hB;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(nu,"SASSignatureValuesSanityCheckAndAutofill");var Nm=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=dA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ai||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ai||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 z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(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!==ai||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ai||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 z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(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!==ai||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ai||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(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!==ai||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ai||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"}};vA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var cu=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"}};cu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Om=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var WOe=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},nM=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);S(`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 n7(t,e,r){return WOe(this,void 0,void 0,function*(){var s;let n=new Ia(t),i=n.getBlockBlobClient(),a=new nM((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 Cb(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw ct(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(n7,"uploadCacheArchiveSDK");var o7=w(require("buffer"),1),mo=w(require("fs"),1),a7=w(require("stream"),1),c7=w(require("util"),1);var Ib=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Bb(t){return t?t>=200&&t<300:!1}o(Bb,"isSuccessStatusCode");function jOe(t){return t?t>=500:!0}o(jOe,"isServerErrorStatusCode");function KOe(t){return t?[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout].includes(t):!1}o(KOe,"isRetryableStatusCode");function XOe(t){return Ib(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(XOe,"sleep");function i7(t,e,r){return Ib(this,arguments,void 0,function*(s,n,i,a=zC,c=JC,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield n()}catch(m){l&&(A=l(m)),f=!0,u=m.message}if(A&&(p=i(A),!jOe(p)))return A;if(p&&(f=KOe(p),u=`Cache service responded with ${p}`),B(`${s} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${s} - Error is not retryable`);break}yield XOe(c),d++}throw Error(`${s} failed: ${u}`)})}o(i7,"retry");function Mm(t,e){return Ib(this,arguments,void 0,function*(r,s,n=zC,i=JC){return yield i7(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof qi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Mm,"retryTypedResponse");function PA(t,e){return Ib(this,arguments,void 0,function*(r,s,n=zC,i=JC){return yield i7(r,s,a=>a.message.statusCode,n,i)})}o(PA,"retryHttpClientResponse");var Qn=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function ZOe(t,e){return Qn(this,void 0,void 0,function*(){yield c7.promisify(a7.pipeline)(t.message,e)})}o(ZOe,"pipeResponseToStream");var bb=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.received 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(oMe,"printCachesListForDiagnostics");function lM(t,e,r){return ps(this,void 0,void 0,function*(){let s=new I7.URL(t),n=A7(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield u7(t,e,n):n.concurrentBlobDownloads?yield l7(t,e,n):yield wb(t,e):yield wb(t,e)})}o(lM,"downloadCache");function b7(t,e,r){return ps(this,void 0,void 0,function*(){let s=cM(),n=rA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Mm("reserveCache",()=>ps(this,void 0,void 0,function*(){return s.postJson(Fm("caches"),i)}))})}o(b7,"reserveCache");function C7(t,e){return`bytes ${t}-${e}/*`}o(C7,"getContentRange");function aMe(t,e,r,s,n){return ps(this,void 0,void 0,function*(){B(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${C7(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":C7(s,n)},a=yield PA(`uploadChunk (start: ${s}, end: ${n})`,()=>ps(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Bb(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(aMe,"uploadChunk");function cMe(t,e,r,s){return ps(this,void 0,void 0,function*(){let n=Ui(r),i=Fm(`caches/${e.toString()}`),a=_A.openSync(r,"r"),c=iM(s),l=kv("uploadConcurrency",c.uploadConcurrency),u=kv("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>ps(this,void 0,void 0,function*(){for(;A<n;){let p=Math.min(n-A,u),f=A,m=A+p-1;A+=u,yield aMe(t,i,()=>_A.createReadStream(r,{fd:a,start:f,end:m,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,m)}})))}finally{_A.closeSync(a)}})}o(cMe,"uploadFile");function lMe(t,e,r){return ps(this,void 0,void 0,function*(){let s={size:r};return yield Mm("commitCache",()=>ps(this,void 0,void 0,function*(){return t.postJson(Fm(`caches/${e.toString()}`),s)}))})}o(lMe,"commitCache");function uM(t,e,r,s){return ps(this,void 0,void 0,function*(){if(iM(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield n7(r,e,s)}else{let i=cM();B("Upload cache"),yield cMe(i,t,e,s),B("Commiting cache");let a=Ui(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield lMe(i,t,a);if(!Bb(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(uM,"saveCache");var gee=w(uee(),1),Ot=w(Dt(),1),Ks=w(Dt(),1),pu=w(Dt(),1),fu=w(Dt(),1),hu=w(Dt(),1);var nL=w(Dt(),1),iL=w(Dt(),1),fee=w(Dt(),1),hee=w(Dt(),1),mee=w(Dt(),1);var tL=w(Dt(),1),rL=w(Dt(),1),dee=w(Dt(),1),Aee=w(Dt(),1),pee=w(Dt(),1);var sL=class extends pee.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,Aee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,dee.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 d=e.skip(l);u!==!1&&(u===!0?rL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,tL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tL.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?rL.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},dw=new sL;var oL=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(()=>dw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,hee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,fee.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(dw.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 d=e.skip(l);u!==!1&&(u===!0?iL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag( Line truncated
`));let s=yield IL(r,"create");yield BL(s,t)})}o(wL,"createTar");var WA=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},hi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},mu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},SL="cache write denied:",hw=class t extends mu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Iee=YC,mw=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},gw=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Bee(t){if(!t||t.length===0)throw new hi("Path Validation Error: At least one directory or file path is required")}o(Bee,"checkPaths");function NL(t){if(t.length>512)throw new hi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new hi(`Key Validation Error: ${t} cannot contain commas.`)}o(NL,"checkKey");function xL(){return Lm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(xL,"isFeatureAvailable");function bee(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Lm();B(`Cache service version: ${u}`),Bee(n);let d=aM();if(!f7(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield wFe(n,i,a,c,l):yield bFe(n,i,a,c,l)})}o(bee,"restoreCache");function bFe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)NL(f);let A=yield Mh(),p="";try{let f;try{f=yield B7(d,n,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(Iee)?new mw(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=tg.join(yield Dh(),fc(A)),B(`Archive Path: ${p}`),yield lM(f.archiveLocation,p,c),Tl()&&(yield eg(p,A));let m=Ui(p);return S(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield bL(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let m=f;if(m.name===hi.name)throw f;m instanceof qi&&typeof m.statusCode=="number"&&m.statusCode>=500?Jd(`Failed to restore: ${f.message}`):ct(`Failed to restore: ${f.message}`)}finally{try{yield Oh(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(bFe,"restoreCacheV1");function wFe(t,e,r,s){return WA(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new hi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)NL(p);let A="";try{let p=CL(),f=yield Mh(),m={key:i,restoreKeys:a,version:rA(n,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(m)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(Iee)?new mw(I):C}if(!g.ok){B(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=tg.join(yield Dh(),fc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield lM(g.signedDownloadUrl,A,c);let E=Ui(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Tl()&&(yield eg(A,f)),yield bL(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===hi.name)throw p;f instanceof qi&&typeof f.statusCode=="number"&&f.statusCode>=500?Jd(`Failed to restore: ${p.message}`):ct(`Failed to restore: ${p.message}`)}finally{try{A&&(yield Oh(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(wFe,"restoreCacheV2");function QL(t,e,r){return WA(this,arguments,void 0,function*(s,n,i,a=!1){let c=Lm();B(`Cache service version: ${c}`),Bee(s),NL(n);let l=aM();return h7(l)?c==="v2"?yield NFe(s,n,i,a):yield SFe(s,n,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(QL,"saveCache");function SFe(t,e,r){return WA(this,arguments,void 0, Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:m,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:b,escape:N,quote:Q,record_delimiter:D}=this.options,{bomSkipped:ae,delimiterDiscovered:Te,delimiterBufPrevious:De,rawBuffer:qe,escapeIsQuote:ye}=this.state;if(!Te&&u){let Oe;if(De===void 0?Oe=s:De!==void 0&&s===void 0?Oe=De:Oe=Buffer.concat([De,s]),s=void 0,n||Oe.length>u.size)this.options.delimiter=[Buffer.from(Yre(Oe,this.options.delimiter_auto))],this.state.previousBuf=Oe,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Oe;return}}let{previousBuf:Ye}=this.state,ue;if(Ye===void 0)if(s===void 0){a();return}else ue=s;else Ye!==void 0&&s===void 0?ue=Ye:ue=Buffer.concat([Ye,s]);if(ae===!1)if(c===!1)this.state.bomSkipped=!0;else if(ue.length<3){if(n===!1){this.state.previousBuf=ue;return}}else{for(let Oe in lp)if(lp[Oe].compare(ue,0,lp[Oe].length)===0){let Bi=lp[Oe].length;this.state.bufBytesStart+=Bi,ue=ue.slice(Bi);let Fa=cp({...this.original_options,encoding:Oe});for(let gt in Fa)this.options[gt]=Fa[gt];({comment:b,escape:N,quote:Q}=this.options);break}this.state.bomSkipped=!0}let vr=ue.length,J;for(J=0;J<vr&&!this.__needMoreData(J,vr,n);J++){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&&D.length===0&&this.__autoDiscoverRecordDelimiter(ue,J)&&(D=this.options.record_delimiter);let Oe=ue[J];if(m===!0&&qe.append(Oe),(Oe===V2e||Oe===z2e)&&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(ue,J,Oe)&&J+N.length<vr)if(ye){if(this.__isQuote(ue,J+N.length)){this.state.escaping=!0,J+=N.length-1;continue}}else{this.state.escaping=!0,J+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(ue,J))if(this.state.quoting===!0){let gt=ue[J+Q.length],bi=y&&this.__isCharTrimable(ue,J+Q.length),Ss=b!==null&&this.__compareBytes(b,ue,J+Q.length,gt),el=this.__isDelimiter(ue,J+Q.length,gt),oE=D.length===0?this.__autoDiscoverRecordDelimiter(ue,J+Q.length):this.__isRecordDelimiter(gt,ue,J+Q.length);if(N!==null&&this.__isEscape(ue,J,Oe)&&this.__isQuote(ue,J+N.length))J+=N.length-1;else if(!gt||el||oE||Ss||bi){this.state.quoting=!1,this.state.wasQuoting=!0,J+=Q.length-1;continue}else if(g===!1){let sq=this.__error(new Be("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(gt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(sq!==void 0)return sq}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(Q),J+=Q.length-1}else if(this.state.field.length!==0){if(g===!1){let gt=this.__infoField(),bi=Object.keys(lp).map(el=>lp[el].equals(this.state.field.toString())?el:!1).filter(Boolean)[0],Ss=this.__error(new Be("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(gt.column)} at line ${gt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,bi?`(${bi} bom)`:void 0],this.options,gt,{field:this.state.field}));if(Ss!==void 0)return Ss}}else{this.state.quoting=!0,J+=Q.length-1;continue}if(this.state.quoting===!1){let gt=this.__isRecordDelimiter(Oe,ue,J);if(gt!==0){if(this.state.commenting&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0)this.info.comment_lines++;else{if(this.state.enabled===!1&&this.info.lines+(this.state.wasRowDelimiter===!0?1:0)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=gt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=gt-1;continue}this.info.bytes=this.state.bufBytesStart+J;let el=this.__onField();if(el!==void 0)return el;this.info.bytes=this.state.bufBytesStart+J+gt;let oE=this.__onRecord(i);if(oE!==void 0)return oE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=gt-1;continue}if(this.state.commenting)continue;if(b!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(b,ue,J,Oe)!==0){this.state.commenting=!0;continue}let bi=this.__isDelimiter(ue,J,Oe);if(bi!==0){this.info.bytes=this.state.bufBytesStart+J;let Ss=this.__onField();if(Ss!==void 0)return Ss;J+=bi-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Be("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Bi=p===!1||th Line truncated
`+s(i)+n(i),c=(0,XK.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(oe.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===oe.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[l,u]of i.headers)l.toLowerCase().startsWith(oe.PREFIX_FOR_STORAGE)&&a.push({name:l,value:u});a.sort((l,u)=>fB(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(s,"getCanonicalizedHeadersString");function n(i){let a=dB(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let l=AB(i.url),u={};if(l){let d=[];for(let A in l)if(Object.prototype.hasOwnProperty.call(l,A)){let p=A.toLowerCase();u[p]=l[A],d.push(p)}d.sort();for(let A of d)c+=`
${A}:${decodeURIComponent(u[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:Zke,async sendRequest(i,a){return e(i),a(i)}}}o(B_,"storageSharedKeyCredentialPolicy");var eDe="storageRequestFailureDetailsParserPolicy";function ZK(){return{name:eDe,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(ZK,"storageRequestFailureDetailsParserPolicy");var eX=require("node:crypto");var hB=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,eX.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var mB="12.31.0",gB="2026-02-06";var EB="https://storage.azure.com/.default",ha={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ci="",w_="*",tDe=1*1024*1024;var rDe=4*tDe;var tX="AES256",rX="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",sX=["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"],nX=["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"],iX="BlobUsesCustomerSpecifiedEncryption",oX="BlobDoesNotUseCustomerSpecifiedEncryption",aX=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function ma(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(ma,"isPipelineLike");var Bm=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 vt(t,e={}){t||(t=new ct);let r=new Bm([],e);return r._credential=t,r}o(vt,"newPipeline");function sDe(t){let e=[nDe,cX,iDe,oDe,aDe,cDe,uDe];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>lDe(n));return{wrappedPolicies:XP(r),afterRetry:s}}}}o(sDe,"processDownlevelPipeline");function b_(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?ZP(e):I_(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${mB}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=nm({...r,loggingOptions:{additionalAllowedHeaderNames:sX,additionalAllowedQueryParameters:nX,logger:iB.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:nB,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:y_,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:QP}),n.addPolicy(jK()),n.addPolicy(KK(r.retryOptions),{phase:"Retry"}),n.addPo Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new pi(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(sMe,"generateBlobSASQueryParameters20150405");function nMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ai(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 pi(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(nMe,"generateBlobSASQueryParameters20181109");function iMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ai(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 pi(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(iMe,"generateBlobSASQueryParameters20201206");function oMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ai(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 pi(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(oMe,"generateBlobSASQueryParametersUDK20181109");function aMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ai(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 pi(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(aMe,"generateBlobSASQueryParametersUDK20200210");function cMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ai(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 pi(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(cMe,"generateBlobSASQueryParametersUDK20201206");function lMe(t,e){if(t=lu(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=fo.parse(t.permissions.toString()).toString():n=ho.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?_e(t.startsOn,!1):"",t.expiresOn?_e(t.expiresOn,!1):"",cu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?_e(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?_e(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ai(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 pi(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(lMe,"generateBlobSASQueryParametersUDK20250705");function cu(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(cu,"getCanonicalName");function lu(t){let e=t.version?t.version:gB;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(lu,"SASSignatureValuesSanityCheckAndAutofill");var km=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=yA()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ci||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ci||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 z.withSpan("BlobLeaseClient-acquireLease",r,async s=>W(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!==ci||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ci||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 z.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=W(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!==ci||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ci||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 z.withSpan("BlobLeaseClient-releaseLease",e,async r=>W(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!==ci||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ci||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"}};FA.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var pu=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"}};pu.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Vm=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var oLe=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},dM=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);S(`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 d7(t,e,r){return oLe(this,void 0,void 0,function*(){var s;let n=new wa(t),i=n.getBlockBlobClient(),a=new dM((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 Bw(`uploadCacheArchiveSDK: upload failed with status code ${l._response.status}`);return l}catch(l){throw at(`uploadCacheArchiveSDK: internal error uploading cache archive: ${l.message}`),l}finally{a.stopDisplayTimer()}})}o(d7,"uploadCacheArchiveSDK");var p7=b(require("buffer"),1),mo=b(require("fs"),1),f7=b(require("stream"),1),h7=b(require("util"),1);var ww=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function bw(t){return t?t>=200&&t<300:!1}o(bw,"isSuccessStatusCode");function aLe(t){return t?t>=500:!0}o(aLe,"isServerErrorStatusCode");function cLe(t){return t?[gt.BadGateway,gt.ServiceUnavailable,gt.GatewayTimeout].includes(t):!1}o(cLe,"isRetryableStatusCode");function lLe(t){return ww(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(lLe,"sleep");function A7(t,e,r){return ww(this,arguments,void 0,function*(s,n,i,a=$C,c=YC,l=void 0){let u="",d=1;for(;d<=a;){let A,p,f=!1;try{A=yield n()}catch(m){l&&(A=l(m)),f=!0,u=m.message}if(A&&(p=i(A),!aLe(p)))return A;if(p&&(f=cLe(p),u=`Cache service responded with ${p}`),B(`${s} - Attempt ${d} of ${a} failed with error: ${u}`),!f){B(`${s} - Error is not retryable`);break}yield lLe(c),d++}throw Error(`${s} failed: ${u}`)})}o(A7,"retry");function zm(t,e){return ww(this,arguments,void 0,function*(r,s,n=$C,i=YC){return yield A7(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof qi)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(zm,"retryTypedResponse");function UA(t,e){return ww(this,arguments,void 0,function*(r,s,n=$C,i=YC){return yield A7(r,s,a=>a.message.statusCode,n,i)})}o(UA,"retryHttpClientResponse");var xn=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function uLe(t,e){return xn(this,void 0,void 0,function*(){yield h7.promisify(f7.pipeline)(t.message,e)})}o(uLe,"pipeResponseToStream");var Sw=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.received 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(gLe,"printCachesListForDiagnostics");function mM(t,e,r){return fs(this,void 0,void 0,function*(){let s=new Q7.URL(t),n=y7(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield g7(t,e,n):n.concurrentBlobDownloads?yield m7(t,e,n):yield Nw(t,e):yield Nw(t,e)})}o(mM,"downloadCache");function T7(t,e,r){return fs(this,void 0,void 0,function*(){let s=hM(),n=uA(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield zm("reserveCache",()=>fs(this,void 0,void 0,function*(){return s.postJson($m("caches"),i)}))})}o(T7,"reserveCache");function x7(t,e){return`bytes ${t}-${e}/*`}o(x7,"getContentRange");function ELe(t,e,r,s,n){return fs(this,void 0,void 0,function*(){B(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${x7(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":x7(s,n)},a=yield UA(`uploadChunk (start: ${s}, end: ${n})`,()=>fs(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!bw(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(ELe,"uploadChunk");function yLe(t,e,r,s){return fs(this,void 0,void 0,function*(){let n=Ui(r),i=$m(`caches/${e.toString()}`),a=qA.openSync(r,"r"),c=AM(s),l=qv("uploadConcurrency",c.uploadConcurrency),u=qv("uploadChunkSize",c.uploadChunkSize),d=[...new Array(l).keys()];B("Awaiting all uploads");let A=0;try{yield Promise.all(d.map(()=>fs(this,void 0,void 0,function*(){for(;A<n;){let p=Math.min(n-A,u),f=A,m=A+p-1;A+=u,yield ELe(t,i,()=>qA.createReadStream(r,{fd:a,start:f,end:m,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,m)}})))}finally{qA.closeSync(a)}})}o(yLe,"uploadFile");function CLe(t,e,r){return fs(this,void 0,void 0,function*(){let s={size:r};return yield zm("commitCache",()=>fs(this,void 0,void 0,function*(){return t.postJson($m(`caches/${e.toString()}`),s)}))})}o(CLe,"commitCache");function gM(t,e,r,s){return fs(this,void 0,void 0,function*(){if(AM(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield d7(r,e,s)}else{let i=hM();B("Upload cache"),yield yLe(i,t,e,s),B("Commiting cache");let a=Ui(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield CLe(i,t,a);if(!bw(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(gM,"saveCache");var bee=b(gee(),1),kt=b(_t(),1),Ks=b(_t(),1),Eu=b(_t(),1),yu=b(_t(),1),Cu=b(_t(),1);var dL=b(_t(),1),AL=b(_t(),1),Iee=b(_t(),1),Bee=b(_t(),1),wee=b(_t(),1);var cL=b(_t(),1),lL=b(_t(),1),Eee=b(_t(),1),yee=b(_t(),1),Cee=b(_t(),1);var uL=class extends Cee.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,yee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Eee.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 d=e.skip(l);u!==!1&&(u===!0?lL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,cL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,cL.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?lL.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},pb=new uL;var pL=class extends wee.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(()=>pb,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Bee.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Iee.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(pb.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 d=e.skip(l);u!==!1&&(u===!0?AL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!=="0"&&r.tag( Line truncated
`));let{commands:s}=yield xee(r,"create");yield Ree(s,t)})}o(TL,"createTar");var sp=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})},mi=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Iu=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},vL="cache write denied:",gb=class t extends Iu{static{o(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},vee=WC,Eb=class t extends Error{static{o(this,"CacheReadDeniedError")}constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},yb=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Pee(t){if(!t||t.length===0)throw new mi("Path Validation Error: At least one directory or file path is required")}o(Pee,"checkPaths");function PL(t){if(t.length>512)throw new mi(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new mi(`Key Validation Error: ${t} cannot contain commas.`)}o(PL,"checkKey");function _L(){return Jm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(_L,"isFeatureAvailable");function _ee(t,e,r,s){return sp(this,arguments,void 0,function*(n,i,a,c,l=!1){let u=Jm();B(`Cache service version: ${u}`),Pee(n);let d=fM();if(!I7(d)){S(`Cache restore skipped: the effective cache-mode '${d}' does not permit reads.`),B(`Skipped restore for paths [${n.join(", ")}] with primary key '${i}'.`);return}return u==="v2"?yield DFe(n,i,a,c,l):yield kFe(n,i,a,c,l)})}o(_ee,"restoreCache");function kFe(t,e,r,s){return sp(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new mi("Key Validation Error: Keys are limited to a maximum of 10.");for(let f of d)PL(f);let A=yield zh(),p="";try{let f;try{f=yield R7(d,n,{compressionMethod:A,enableCrossOsArchive:l})}catch(g){let y=(u=g?.message)!==null&&u!==void 0?u:"";throw y.includes(vee)?new Eb(y):g}if(!f?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),f.cacheKey;p=lg.join(yield ql(),gc(A)),B(`Archive Path: ${p}`),yield mM(f.archiveLocation,p,c),Dl()&&(yield cg(p,A));let m=Ui(p);return S(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),yield RL(p,A),S("Cache restored successfully"),f.cacheKey}catch(f){let m=f;if(m.name===mi.name)throw f;m instanceof qi&&typeof m.statusCode=="number"&&m.statusCode>=500?Zd(`Failed to restore: ${f.message}`):at(`Failed to restore: ${f.message}`)}finally{try{yield Vh(p)}catch(f){B(`Failed to delete archive: ${f}`)}}})}o(kFe,"restoreCacheV1");function DFe(t,e,r,s){return sp(this,arguments,void 0,function*(n,i,a,c,l=!1){var u;c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let d=[i,...a];if(B("Resolved Keys:"),B(JSON.stringify(d)),d.length>10)throw new mi("Key Validation Error: Keys are limited to a maximum of 10.");for(let p of d)PL(p);let A="";try{let p=xL(),f=yield zh(),m={key:i,restoreKeys:a,version:uA(n,f,l)},g;try{g=yield p.GetCacheEntryDownloadURL(m)}catch(C){let I=(u=C?.message)!==null&&u!==void 0?u:"";throw I.includes(vee)?new Eb(I):C}if(!g.ok){B(`Cache not found for version ${m.version} of keys: ${d.join(", ")}`);return}if(m.key!==g.matchedKey?S(`Cache hit for restore-key: ${g.matchedKey}`):S(`Cache hit for: ${g.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),g.matchedKey;A=lg.join(yield ql(),gc(f)),B(`Archive path: ${A}`),B(`Starting download of archive to: ${A}`),yield mM(g.signedDownloadUrl,A,c);let E=Ui(A);return S(`Cache Size: ~${Math.round(E/(1024*1024))} MB (${E} B)`),Dl()&&(yield cg(A,f)),yield RL(A,f),S("Cache restored successfully"),g.matchedKey}catch(p){let f=p;if(f.name===mi.name)throw p;f instanceof qi&&typeof f.statusCode=="number"&&f.statusCode>=500?Zd(`Failed to restore: ${p.message}`):at(`Failed to restore: ${p.message}`)}finally{try{A&&(yield Vh(A))}catch(p){B(`Failed to delete archive: ${p}`)}}})}o(DFe,"restoreCacheV2");function kL(t,e,r){return sp(this,arguments,void 0,function*(s,n,i,a=!1){let c=Jm();B(`Cache service version: ${c}`),Pee(s),PL(n);let l=fM();return B7(l)?c==="v2"?yield MFe(s,n,i,a):yield OFe(s,n,i,a):(S(`Cache save skipped: the effective cache-mode '${l}' does not permit writes.`),B(`Skipped save for paths [${s.join(", ")}] with key '${n}'.`),-1)})}o(kL,"saveCache");function OFe(t,e,r){return sp(this,argum Line truncated
`,a).length:A,u?(c===null?0:c.length)+l.length:0,u?l.length+A:0);return p<f},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:l,delimiter_auto:u,encoding:d,from_line:A,ltrim:p,max_record_size:f,raw:m,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:C,to_line:I}=this.options,{comment:w,escape:N,quote:R,record_delimiter:D}=this.options,{bomSkipped:be,delimiterDiscovered:st,delimiterBufPrevious:Ge,rawBuffer:ze,escapeIsQuote:ye}=this.state;if(!st&&u){let Le;if(Ge===void 0?Le=s:Ge!==void 0&&s===void 0?Le=Ge:Le=Buffer.concat([Ge,s]),s=void 0,n||Le.length>u.size)this.options.delimiter=[Buffer.from(ase(Le,this.options.delimiter_auto))],this.state.previousBuf=Le,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Le;return}}let{previousBuf:Mt}=this.state,he;if(Mt===void 0)if(s===void 0){a();return}else he=s;else Mt!==void 0&&s===void 0?he=Mt:he=Buffer.concat([Mt,s]);if(be===!1)if(c===!1)this.state.bomSkipped=!0;else if(he.length<3){if(n===!1){this.state.previousBuf=he;return}}else{for(let Le in yp)if(yp[Le].compare(he,0,yp[Le].length)===0){let Ua=yp[Le].length;this.state.bufBytesStart+=Ua,he=he.slice(Ua);let lE=Ep({...this.original_options,encoding:Le});for(let Jt in lE)this.options[Jt]=lE[Jt];({comment:w,escape:N,quote:R}=this.options);break}this.state.bomSkipped=!0}let $n=he.length,J;for(J=0;J<$n&&!this.__needMoreData(J,$n,n);J++){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&&D.length===0&&this.__autoDiscoverRecordDelimiter(he,J)&&(D=this.options.record_delimiter);let Le=he[J];if(m===!0&&ze.append(Le),(Le===cGe||Le===lGe)&&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(he,J,Le)&&J+N.length<$n)if(ye){if(this.__isQuote(he,J+N.length)){this.state.escaping=!0,J+=N.length-1;continue}}else{this.state.escaping=!0,J+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(he,J))if(this.state.quoting===!0){let Jt=he[J+R.length],nl=y&&this.__isCharTrimable(he,J+R.length),Go=w!==null&&this.__compareBytes(w,he,J+R.length,Jt),il=this.__isDelimiter(he,J+R.length,Jt),uE=D.length===0?this.__autoDiscoverRecordDelimiter(he,J+R.length):this.__isRecordDelimiter(Jt,he,J+R.length);if(N!==null&&this.__isEscape(he,J,Le)&&this.__isQuote(he,J+N.length))J+=N.length-1;else if(!Jt||il||uE||Go||nl){this.state.quoting=!1,this.state.wasQuoting=!0,J+=R.length-1;continue}else if(g===!1){let Aq=this.__error(new Ie("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Jt)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Aq!==void 0)return Aq}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(R),J+=R.length-1}else if(this.state.field.length!==0){if(g===!1){let Jt=this.__infoField(),nl=Object.keys(yp).map(il=>yp[il].equals(this.state.field.toString())?il:!1).filter(Boolean)[0],Go=this.__error(new Ie("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Jt.column)} at line ${Jt.lines}, value is ${JSON.stringify(this.state.field.toString(d))}`,nl?`(${nl} bom)`:void 0],this.options,Jt,{field:this.state.field}));if(Go!==void 0)return Go}}else{this.state.quoting=!0,J+=R.length-1;continue}if(this.state.quoting===!1){let Jt=this.__isRecordDelimiter(Le,he,J);if(Jt!==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)>=A){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=Jt-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=Jt-1;continue}this.info.bytes=this.state.bufBytesStart+J;let il=this.__onField();if(il!==void 0)return il;this.info.bytes=this.state.bufBytesStart+J+Jt;let uE=this.__onRecord(i);if(uE!==void 0)return uE;if(C!==-1&&this.info.records>=C){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=Jt-1;continue}if(this.state.commenting)continue;if(w!==null&&(l===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,he,J,Le)!==0){this.state.commenting=!0;continue}let nl=this.__isDelimiter(he,J,Le);if(nl!==0){this.info.bytes=this.state.bufBytesStart+J;let Go=this.__onField();if(Go!==void 0)return Go;J+=nl-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Ie("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${f}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let Ua=p===!1||th 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 rn=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=n0(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 st=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(cc(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=rn(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=cc(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 fr("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 Wre.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 vF.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 vF.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return jre.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=Eg.default.resolve(e);return Eg.default.resolve(r).startsWith(s.endsWith(Eg.default.sep)?s:`${s}${Eg.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 tr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||yg.default.join(Kre.default.homedir(),".docker")}static configFile(){let e=yg.default.join(t.configDir,"config.json");if(PF.default.existsSync(e))return JSON.parse(PF.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await fr("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 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 jse=w(require("crypto"),1);var i0=require("fs"),ese=require("os");var up=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,i0.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,i0.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${ese.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 OF=w(ise(),1),ose=w(Hd(),1);var nqe=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function ase(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(ase,"getAuthString");function cse(t){return new OF.HttpClient().getAgent(t)}o(cse,"getProxyAgent");function iqe(t){return new OF.HttpClient().getAgentDispatcher(t)}o(iqe,"getProxyAgentDispatcher");function lse(t){let e=iqe(t);return o((s,n)=>nqe(this,void 0,void 0,function*(){return(0,ose.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(lse,"getProxyFetch");function use(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(use,"getApiBaseUrl");function MF(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(MF,"getUserAgentWithOrchestrationId");function kc(){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(kc,"getUserAgent");function A0(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)=>A0.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(A0,"register");function dse(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(dse,"addHook");function Ase(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(Ase,"removeHook");var pse=Function.bind,fse=pse.bind(pse);function hse(t,e,r){let s=fse(Ase,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]=fse(dse,null).apply(null,i)})}o(hse,"bindApi");function aqe(){let t=Symbol("Singular"),e={registry:{}},r=A0.bind(null,e,t);return hse(r,e,t),r}o(aqe,"Singular");function cqe(){let t={registry:{}},e=A0.bind(null, 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 en=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=a0(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 tt=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(lc(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=en(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=lc(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 fr("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 lse.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 U1.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 U1.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return use.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=Ig.default.resolve(e);return Ig.default.resolve(r).startsWith(s.endsWith(Ig.default.sep)?s:`${s}${Ig.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 tr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Bg.default.join(dse.default.homedir(),".docker")}static configFile(){let e=Bg.default.join(t.configDir,"config.json");if(q1.default.existsSync(e))return JSON.parse(q1.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await fr("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 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 une=b(require("crypto"),1);var c0=require("fs"),fse=require("os");var Cp=class{static{o(this,"Context")}constructor(){var e,r,s;if(this.payload={},process.env.GITHUB_EVENT_PATH)if((0,c0.existsSync)(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse((0,c0.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${fse.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 z1=b(yse(),1),Cse=b(Wd(),1);var BGe=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(d){try{u(s.next(d))}catch(A){a(A)}}o(c,"fulfilled");function l(d){try{u(s.throw(d))}catch(A){a(A)}}o(l,"rejected");function u(d){d.done?i(d.value):n(d.value).then(c,l)}o(u,"step"),u((s=s.apply(t,e||[])).next())})};function Ise(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(Ise,"getAuthString");function Bse(t){return new z1.HttpClient().getAgent(t)}o(Bse,"getProxyAgent");function wGe(t){return new z1.HttpClient().getAgentDispatcher(t)}o(wGe,"getProxyAgentDispatcher");function wse(t){let e=wGe(t);return o((s,n)=>BGe(this,void 0,void 0,function*(){return(0,Cse.fetch)(s,Object.assign(Object.assign({},n),{dispatcher:e}))}),"proxyFetch")}o(wse,"getProxyFetch");function bse(){return process.env.GITHUB_API_URL||"https://api.github.com"}o(bse,"getApiBaseUrl");function J1(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(J1,"getUserAgentWithOrchestrationId");function Lc(){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(Lc,"getUserAgent");function h0(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)=>h0.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(h0,"register");function Sse(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(Sse,"addHook");function Nse(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(Nse,"removeHook");var xse=Function.bind,Qse=xse.bind(xse);function Rse(t,e,r){let s=Qse(Nse,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]=Qse(Sse,null).apply(null,i)})}o(Rse,"bindApi");function SGe(){let t=Symbol("Singular"),e={registry:{}},r=h0.bind(null,e,t);return Rse(r,e,t),r}o(SGe,"Singular");function NGe(){let t={registry:{}},e=h0.bind(null, Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(Tqe,"_buildMessageForResponseErrors");var vqe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(Tqe(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},Pqe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],_qe=["query","method","url"],Dse=/\/api\/v3\/?$/;function kqe(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(_qe.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)=>Pqe.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 Dse.test(i)&&(n.url=i.replace(Dse,"/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 vqe(n,c,a.data)}return a.data.data})}o(kqe,"graphql");function HF(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>kqe(r,n,i),"newApi"),{defaults:HF.bind(null,r),endpoint:r.endpoint})}o(HF,"withDefaults");var KNt=HF(bg,{headers:{"user-agent":`octokit-graphql.js/${Rqe} ${kc()}`},method:"POST",url:"/graphql"});function Ose(t){return HF(t,{method:"POST",url:"/graphql"})}o(Ose,"withCustomRequest");var VF="(?:[a-zA-Z0-9_-]+)",Mse="\\.",Lse=new RegExp(`^${VF}${Mse}${VF}${Mse}${VF}$`),Dqe=Lse.test.bind(Lse);async function Oqe(t){let e=Dqe(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(Oqe,"auth");function Mqe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Mqe,"withAuthorizationPrefix");async function Lqe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Mqe(t),e(n)}o(Lqe,"hook");var Fse=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(Oqe.bind(null,e),{hook:Lqe.bind(null,e)})},"createTokenAuth2");var zF="7.0.6";var Use=o(()=>{},"noop"),Fqe=console.warn.bind(console),Uqe=console.error.bind(console);function qqe(t={}){return typeof t.debug!="function"&&(t.debug=Use),typeof t.info!="function"&&(t.info=Use),typeof t.warn!="function"&&(t.warn=Fqe),typeof t.error!="function"&&(t.error=Uqe),t}o(qqe,"createLogger");var qse=`octokit-core.js/${zF} ${kc()}`,m0=class{static{o(this,"Octokit")}static VERSION=zF;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 mse.Collection,s={baseUrl:bg.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} ${qse}`:qse,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=bg.defaults(s),this.graphql=Ose(this.request).defaults(s),this.log=qqe(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=Fse(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 JF="17.0.0";var Gqe={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 f=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:A,message:p,file:g.path,startLine:f}),m=!0;break}m||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var Qu=w(require("fs"),1),b1=w(require("path"),1);var k0=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ue,this.iidFilename=`build-iidfile-${st.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${st.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([f])=>!r.has(f)),i=st.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||Wr.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&st.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${Ve.serverURL}/${Wr.repo.owner}/${Wr.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,d=e?.format;if(!d){if(d="fragment",n.length>0)d="query";else if(st.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=Wr.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof Wr.payload.pull_request?.head?.sha=="string"?Wr.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],m=i?p:l;m&&f.push(`checksum=${m}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of n)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return b1.default.join(Re.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Qu.default.existsSync(e))return Qu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return b1.default.join(Re.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Qu.default.existsSync(e))return;let r=Qu.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Qu.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=Re.tmpName({tmpdir:Re.tmpDir()});return Qu.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=cc(e);if(!r)return r;try{return uC(e)?`builder-id=${Ve.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${Ve.workflowRunURL(!0)}`;let r=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${Ve.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?n=l[1]:l[0]==="ghtoken"&&(i=l[1])}return s==="gha"&&(n||(e=`${e},repository=${Ve.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=rn(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=rn(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=rn(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=st.parseBool(i);s.push(`disabled=${!a}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&ki(i),[n,i]}};var w1=w(require("fs"),1),Vie=w(require("path"),1);var D0=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Ue,this.metadataFilename=`bake-metadata-${st.generateRandomString()}.json`}getMetadataFilePath(){return Vie.default.join(Re.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!w1.default.existsSync(e))return;let r=w1.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],n,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!st.isValidRef(l)){i.push(l);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=l}}n&&s.push(n);for(let l of i)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await re.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${Ue.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=st.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},s=rn(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let i of s){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(l=>l.trim());switch(a){case"type":n=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return n==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[s,n]=e.split("=",2);return r.id=s,n&&(r.paths=n.split(",")),r} Line truncated
`)}o(YGe,"_buildMessageForResponseErrors");var WGe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(YGe(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},jGe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],KGe=["query","method","url"],Wse=/\/api\/v3\/?$/;function XGe(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(KGe.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)=>jGe.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 Wse.test(i)&&(n.url=i.replace(Wse,"/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 WGe(n,c,a.data)}return a.data.data})}o(XGe,"graphql");function X1(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>XGe(r,n,i),"newApi"),{defaults:X1.bind(null,r),endpoint:r.endpoint})}o(X1,"withDefaults");var qQt=X1(Ng,{headers:{"user-agent":`octokit-graphql.js/${$Ge} ${Lc()}`},method:"POST",url:"/graphql"});function jse(t){return X1(t,{method:"POST",url:"/graphql"})}o(jse,"withCustomRequest");var Z1="(?:[a-zA-Z0-9_-]+)",Kse="\\.",Xse=new RegExp(`^${Z1}${Kse}${Z1}${Kse}${Z1}$`),ZGe=Xse.test.bind(Xse);async function eHe(t){let e=ZGe(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(eHe,"auth");function tHe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(tHe,"withAuthorizationPrefix");async function rHe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=tHe(t),e(n)}o(rHe,"hook");var Zse=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(eHe.bind(null,e),{hook:rHe.bind(null,e)})},"createTokenAuth2");var eF="7.0.6";var ene=o(()=>{},"noop"),sHe=console.warn.bind(console),nHe=console.error.bind(console);function iHe(t={}){return typeof t.debug!="function"&&(t.debug=ene),typeof t.info!="function"&&(t.info=ene),typeof t.warn!="function"&&(t.warn=sHe),typeof t.error!="function"&&(t.error=nHe),t}o(iHe,"createLogger");var tne=`octokit-core.js/${eF} ${Lc()}`,y0=class{static{o(this,"Octokit")}static VERSION=eF;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 Tse.Collection,s={baseUrl:Ng.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} ${tne}`:tne,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=Ng.defaults(s),this.graphql=jse(this.request).defaults(s),this.log=iHe(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=Zse(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 tF="17.0.0";var oHe={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 f=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:A,message:p,file:g.path,startLine:f}),m=!0;break}m||B(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${A}`)}return c}};var ku=b(require("fs"),1),PF=b(require("path"),1);var M0=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new Me,this.iidFilename=`build-iidfile-${tt.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${tt.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),s=e?.attrs||{},n=Object.entries(s).filter(([f])=>!r.has(f)),i=tt.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||Wr.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&tt.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${qe.serverURL}/${Wr.repo.owner}/${Wr.repo.repo}.git`,l=e?.checksum||s.checksum,u=e?.subdir||s.subdir,d=e?.format;if(!d){if(d="fragment",n.length>0)d="query";else if(tt.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(d="query")}catch{}}let A=Wr.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof Wr.payload.pull_request?.head?.sha=="string"?Wr.payload.pull_request.head.sha:a);let p=l||A;if(d==="query"){let f=[`ref=${i||l?a:p}`],m=i?p:l;m&&f.push(`checksum=${m}`),u&&u!=="."&&f.push(`subdir=${u}`);for(let[g,y]of n)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${p}${u&&u!=="."?`:${u}`:""}`}getImageIDFilePath(){return PF.default.join(Te.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(ku.default.existsSync(e))return ku.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return PF.default.join(Te.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!ku.default.existsSync(e))return;let r=ku.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRef(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.ref"in e)return e["buildx.build.ref"]}resolveProvenance(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.provenance"in e)return e["buildx.build.provenance"]}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}resolveDigest(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"containerimage.digest"in e)return e["containerimage.digest"]}static resolveSecretString(e){let[r,s]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${s}`}static resolveSecretFile(e){let[r,s]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${s}`}static resolveSecretEnv(e){let[r,s]=t.parseSecretKvp(e);return`id=${r},env=${s}`}static resolveSecret(e,r){let[s,n]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!ku.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=Te.tmpName({tmpdir:Te.tmpDir()});return ku.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=lc(e);if(!r)return r;try{return pC(e)?`builder-id=${qe.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${qe.workflowRunURL(!0)}`;let r=en(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of r)if(s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim())[0]=="builder-id")return e;return`${e},builder-id=${qe.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=en(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let l=c.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());l[0]==="type"?s=l[1]:l[0]==="repository"?n=l[1]:l[0]==="ghtoken"&&(i=l[1])}return s==="gha"&&(n||(e=`${e},repository=${qe.repository}`),!i&&r&&(e=`${e},ghtoken=${r}`)),e}static hasLocalExporter(e){return t.hasExporterType("local",e)}static hasTarExporter(e){return t.hasExporterType("tar",e)}static hasDockerExporter(e,r){return r||t.hasExporterType("docker",e)}static hasExporterType(e,r){let s=en(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s){if(n.length==1&&!n[0].startsWith("type="))return e=="local";for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=en(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(l=>l.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=en(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),s=[];for(let n of r)for(let i of n)try{let a=tt.parseBool(i);s.push(`disabled=${!a}`)}catch{s.push(i)}return s.join(",")}static hasGitAuthTokenSecret(e,r){for(let s of e){if(r&&s.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(s.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let s=e.indexOf("="),n=e.substring(0,s),i=e.substring(s+1);if(n.length==0||i.length==0)throw new Error(`${e} is not a valid secret`);return r&&ki(i),[n,i]}};var _F=b(require("fs"),1),noe=b(require("path"),1);var L0=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new Me,this.metadataFilename=`bake-metadata-${tt.generateRandomString()}.json`}getMetadataFilePath(){return noe.default.join(Te.tmpDir(),this.metadataFilename)}static resolveContextTargets(e,r){let s=e.target||{},n=Object.keys(s);if(n.length===0)throw new Error("Bake definition does not contain any targets");if(!Object.prototype.hasOwnProperty.call(s,r))throw new Error(`Unable to resolve ${r} target, found: ${n.join(", ")}`);let i=new Set([r]),a=[r];for(;a.length>0;){let c=a.pop();for(let l of Object.values(s[c].contexts||{})){let u=l.match(/^target:(.+)$/)?.[1];if(!(!u||i.has(u))){if(!Object.prototype.hasOwnProperty.call(s,u))throw new Error(`Target ${c} uses unknown named context target ${u}`);i.add(u),a.push(u)}}}return[...i]}resolveMetadata(){let e=this.getMetadataFilePath();if(!_F.default.existsSync(e))return;let r=_F.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 s in e)"buildx.build.ref"in e[s]&&r.push(e[s]["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 s=["bake"],n,i=[],a=[...e.files||[],e.source];if(a){for(let l of a.map(u=>u?u.trim():""))if(l.length!=0){if(!tt.isValidRef(l)){i.push(l);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=l}}n&&s.push(n);for(let l of i)s.push("--file",l);if(e.overrides)for(let l of e.overrides)s.push("--set",l);if(e.vars)for(let l of e.vars)s.push("--var",l);if(e.allow)for(let l of e.allow)s.push("--allow",l);e.call&&s.push("--call",e.call),e.load&&s.push("--load"),e.noCache&&s.push("--no-cache"),e.provenance&&s.push("--provenance",e.provenance),e.push&&s.push("--push"),e.sbom&&s.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...s,"--print",...e.targets||[]]);return await re.getExecOutput(c.command,c.args,r).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`cannot parse bake definitions: ${Me.getErrorMessage(l.stderr)}`);return t.parseDefinition(l.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let s in r.target){let n=r.target[s];n.attest&&Array.isArray(n.attest)&&(n.attest=n.attest.map(i=>t.parseAttestEntry(i))),n["cache-from"]&&Array.isArray(n["cache-from"])&&(n["cache-from"]=n["cache-from"].map(i=>t.parseCacheEntry(i))),n["cache-to"]&&Array.isArray(n["cache-to"])&&(n["cache-to"]=n["cache-to"].map(i=>t.parseCacheEntry(i))),n.output&&Array.isArray(n.output)&&(n.output=n.output.map(i=>t.parseExportEntry(i))),n.secret&&Array.isArray(n.secret)&&(n.secret=n.secret.map(i=>t.parseSecretEntry(i))),n.ssh&&Array.isArray(n.ssh)&&(n.ssh=n.ssh.map(i=>t.parseSSHEntry(i)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},s=en(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(i){case"type":r.type=a;break;case"disabled":r.disabled=tt.parseBool(a);break;default:r[i]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},s=en(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&!s[0].includes("="))return r.type="registry",r.ref=s[0],r;for(let n of s){let[i,a]=n.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());i==="type"?r.type=a:r[i]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},s=en(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(s.length===1&&s[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let n of s){let[i,a]=n.toStri 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);B(`detached HEAD ref: ${r}`);let s=r.replace(/^grafted, /,"").trim();if(s==="HEAD")return await t.inferRefFromHead(e);let n=s.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${r}"`);let i=n[1].trim();if(i.startsWith("tag: "))return await t.findDetachedTagRef(i,r,e);if(i.match(/^pull\/\d+\/(head|merge)$/))return`refs/${i}`;let c=i.match(/^[^/]+\/[^/]+, (.+)$/);if(c)return`refs/heads/${c[1].trim()}`;let l=i.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 re.getExecOutput("git",e,{cwd:r,ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.stderr.length>0&&s.exitCode!=0)throw new Error(s.stderr);return s.stdout.trim()})}static async inferRefFromHead(e){let r=await t.findContainingRef("refs/heads/",e);if(r)return r;let s=await t.findContainingRef("refs/remotes/",e);if(s){let a=s.match(/^refs\/remotes\/[^/]+\/(.+)$/);return a?`refs/heads/${a[1]}`:s}let n=await t.exec(["tag","--contains","HEAD"],e),[i]=n.split(`
`).map(a=>a.trim()).filter(a=>a.length>0);return i?`refs/tags/${i}`:""}static async findDetachedTagRef(e,r,s){let i=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"],s)).split(`
`).map(a=>a.trim()).filter(a=>a.length>0).sort((a,c)=>c.length-a.length);for(let a of i){let c=`tag: ${a.slice(10)}`;if(e===c||e.startsWith(`${c}, `))return a}if(i.length===1)return i[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e,r){let s=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e],r),[n]=s.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);return n}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var ole=require("crypto"),Mo=w(require("fs"),1),Lo=w(require("path"),1);var Yp=w(P1(),1),ale=w(YU(),1),$p=w(tle(),1);var sle=require("util");var j2=w(P1(),1);var nle=w(gi(),1);var rle="application/vnd.oci.empty.v1+json";var ws=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 re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await re.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 re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,sle.stripVTControlCharacters)(e).split(/[\r\n]/);for(let s=r.length-1;s>=0;s--){let n=r[s].trim();if(n)return n}return"unknown error"}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return B("Cosign.versionSatisfies false: undefined version"),!1;let n=nle.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return B(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;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&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===j2.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===rle&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&l&&l.mediaType===j2.BUNDLE_V03_MEDIA_TYPE&&(n=l),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var K2=w(require("fs"),1);var fN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Ue}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 s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===n.os&&l.platform?.architecture===n.architecture&&(l.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Re.tmpName({tmpdir:Re.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&n.push(l);continue}i.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",s);for(let c of n)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await re.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(!K2.default.existsSync(s))return;let l=K2.default.readFileSync(s,{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(A=>A.trim()):[]}:void 0}})}async inspect(e,r,s){let n=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,s){return await re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Jp="https://search.sigstore.dev";var ile="slsaprovenance1",Xc=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new ws,this.imageTools=e?.imageTools||new fN}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 s={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},n=await this.cosignSigningConfigArgs(s);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await Ls(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...n];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await re.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=ws.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`).map(i=>i.trim()).filter(i=>i.length>0);return n}static async commitDate(e,r){return new Date(await t.exec(["show","-s",'--format="%ci"',e],r))}};var Cle=require("crypto"),Lo=b(require("fs"),1),Fo=b(require("path"),1);var sf=b(qF(),1),Ile=b(r2(),1),nf=b(hle(),1);var gle=require("util");var iq=b(qF(),1);var Ele=b(yi(),1);var mle="application/vnd.oci.empty.v1+json";var Ns=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 re.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(B(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(B(`Cosign.isAvailable error: ${r}`),!1));return B(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await re.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 re.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}static getErrorMessage(e){let r=(0,gle.stripVTControlCharacters)(e).split(/[\r\n]/);for(let s=r.length-1;s>=0;s--){let n=r[s].trim();if(n)return n}return"unknown error"}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return B("Cosign.versionSatisfies false: undefined version"),!1;let n=Ele.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return B(`Cosign.versionSatisfies ${s} statisfies ${e}: ${n}`),n}static parseCommandOutput(e){let r,s,n,i;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&&(i=l.errors),!r&&l&&Array.isArray(l.manifests)&&l.manifests.length>0){let u=l.manifests[0];u?.artifactType===iq.BUNDLE_V03_MEDIA_TYPE&&typeof u.digest=="string"?r=u.digest:u?.artifactType===mle&&typeof u.digest=="string"&&(s=u.digest)}if(!n&&l&&l.mediaType===iq.BUNDLE_V03_MEDIA_TYPE&&(n=l),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var oq=b(require("fs"),1);var gN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new Me}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 s=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return s;let n=e.platform,i=new Map;for(let a of r.manifests)a.digest&&i.set(a.digest,a);return s.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let l=i.get(c);return l?l.platform?.os===n.os&&l.platform?.architecture===n.architecture&&(l.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}static toIndexAnnotation(e){let r=e.indexOf("="),s=r===-1?e:e.substring(0,r),n=r===-1?"":e.substring(r),i=s.indexOf(":");if(i!==-1){let a=s.substring(0,i),c=s.substring(i+1);if(a.split(",").map(u=>u.replace(/\[.*\]$/,"")).some(u=>["manifest","index","manifest-descriptor","index-descriptor"].includes(u)))return`index:${c}${n}`}return`index:${e}`}async create(e){let r=[],s=Te.tmpName({tmpdir:Te.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let l=c.substring(6);l.length>0&&n.push(l);continue}i.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",s);for(let c of n)r.push("--file",c);for(let c of i)r.push(c);let a=await this.getCreateCommand(r);if(e.skipExec){S(`[command]${a.command} ${a.args.join(" ")}`),S("Skipped create command");return}return await re.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(!oq.default.existsSync(s))return;let 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,s){return await re.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.stderr.length>0&&n.exitCode!=0)throw new Error(n.stderr.trim());return s(JSON.parse(n.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var rf="https://search.sigstore.dev";var yle="slsaprovenance1",rl=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Ns,this.imageTools=e?.imageTools||new gN}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 s={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},n=await this.cosignSigningConfigArgs(s);for(let i of e.imageNames){let a=await this.imageTools.attestationDigests({name:`${i}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let c of a){let l=`${i}@${c}`;await Fs(`Signing attestation manifest ${l}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1",...await this.bundleFormatArgs(),...n];S(`[command]${this.cosign.binPath} ${[...u,l].join(" ")}`);let d=await re.getExecOutput(this.cosign.binPath,["--verbose",...u,l],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Ns.parseCommandOutput(d.stderr.trim());if(d.exitCode!=0)if(A.errors&&A.errors.length>0){let f=A.errors.map(m=>`- [${m.code}] ${m.message} : ${m.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${f}`)}else throw new Error(`Cosign sign command failed with: ${ws.getErrorMessage(d.stderr)}`);let p=t.parseBundle((0,Yp.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,s),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await Ls(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),s[n]=a});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of n){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),s[c]=l}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,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: ${ws.getErrorMessage(a.stderr)}`);let c=ws.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<n;a++){let c=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=ws.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
${f}`)}else throw new Error(`Cosign sign command failed with: ${Ns.getErrorMessage(d.stderr)}`);let p=t.parseBundle((0,sf.bundleFromJSON)(A.bundle));p.tlogID&&await this.logTransparencyUpload(p.tlogID,s),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${l}`),r[l]={...p,imageName:i}})}}}catch(s){throw new Error(`Signing BuildKit attestation manifests failed: ${s.message}`)}return r}async verifySignedManifests(e,r){let s={};for(let[n,i]of Object.entries(e))await Fs(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${i.imageName}@${a.signatureManifestDigest}`),s[n]=a});return s}async verifyImageAttestations(e,r){let s={},n=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(n.length===0)throw new Error(`No attestation manifests found for ${e}`);let i=e.split(":",1)[0];for(let a of n){let c=`${i}@${a}`,l=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${l.signatureManifestDigest}`),s[c]=l}return s}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let s=["verify","--experimental-oci11",...await this.bundleFormatArgs(),"--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&s.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,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: ${Ns.getErrorMessage(a.stderr)}`);let c=Ns.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,i;S(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<n;a++){let c=await re.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),l=Ns.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:l.signatureManifestDigest};if(l.errors&&l.errors.length>0){let u=l.errors.map(d=>`- [${d.code}] ${d.message} : ${d.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${u}`),l.errors.some(d=>d.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${ws.getErrorMessage(c.stderr)}`)}throw i}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 s={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},n=await this.cosignSigningConfigArgs(s),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await Ls(`Signing ${a}`,async()=>{let c=i[a],l=Lo.default.join(Lo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){ct(`No subjects found in provenance ${a}, skip signing.`);return}let d=Lo.default.join(Lo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",ile,"--bundle",l,...n];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await re.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=ws.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
${u}`),await new Promise(d=>setTimeout(d,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${Ns.getErrorMessage(c.stderr)}`)}throw i}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 s={noTransparencyLog:e.noTransparencyLog,rekorV2:e.rekorV2},n=await this.cosignSigningConfigArgs(s),i=t.getProvenanceBlobs(e);for(let a of Object.keys(i))await Fs(`Signing ${a}`,async()=>{let c=i[a],l=Fo.default.join(Fo.default.dirname(a),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(c);if(u.length===0){at(`No subjects found in provenance ${a}, skip signing.`);return}let d=Fo.default.join(Fo.default.dirname(a),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions",...await this.bundleFormatArgs(),"--statement",a,"--type",yle,"--bundle",l,...n];S(`[command]${this.cosign.binPath} ${[...A,d].join(" ")}`);let p=await re.getExecOutput(this.cosign.binPath,["--verbose",...A,d],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),f=Ns.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(f.errors&&f.errors.length>0){let g=f.errors.map(y=>`- [${y.code}] ${y.message} : ${y.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${ws.getErrorMessage(p.stderr)}`);let m=t.parseBundle((0,Yp.bundleFromJSON)(JSON.parse(Mo.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,s),S(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let a=Lo.default.dirname(n);await Ls(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Lo.default.join(a,c.name);S(`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??ile];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await re.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);s[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){S("Verifying keyless verification bundle signature");let n=JSON.parse(Mo.default.readFileSync(r,"utf-8")),i=(0,Yp.bundleFromJSON)(n);S("Fetching Sigstore TUF trusted root metadata");let a=await ale.getTrustedRoot({retry:{retries:5}}),c=(0,$p.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,$p.toSignedEntity)(i,Mo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0,f=new $p.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName,extensions:s?.issuer?{issuer:s.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??Ve.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],s=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${s?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let n=await this.useRekorV2(e);await Ls("Creating Sigstore protobuf signing config",async()=>{let i=Re.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Re.tmpDir()}),a=["signing-config","create",n?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];s&&a.push("--no-default-rekor=true"),await re.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Mo.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),s&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${Jp}?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=Lo.default.join(e.localExportDir,"provenance.json");if(Mo.default.existsSync(r))return{[r]:Mo.default.readFileSync(r)};let s=Mo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Mo.default.existsSync(Lo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=Lo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Mo.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,n=s.length>0?s[0].logIndex:void 0;return{payload:(0,Yp.bundleToJSON)(e),certificate:r.toString(),tlogID:n}}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 ole.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var hN=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
${g}`)}else throw new Error(`Cosign attest-blob command failed with: ${Ns.getErrorMessage(p.stderr)}`);let m=t.parseBundle((0,sf.bundleFromJSON)(JSON.parse(Lo.default.readFileSync(l,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let g of u){let[y,E]=Object.entries(g.digest)[0]||[];S(` - ${g.name} (${y}:${E})`)}m.tlogID&&await this.logTransparencyUpload(m.tlogID,s),S(`Sigstore bundle written to: ${l}`),r[a]={...m,bundlePath:l,subjects:u}})}catch(s){throw new Error(`Signing BuildKit provenance blobs failed: ${s.message}`)}return r}async verifySignedArtifacts(e,r){let s={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[n,i]of Object.entries(e)){let a=Fo.default.dirname(n);await Fs(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let l=Fo.default.join(a,c.name);S(`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??yle];(r.noTransparencyLog||!i.tlogID)&&u.push("--use-signed-timestamps","--insecure-ignore-tlog");let d=await re.getExecOutput(this.cosign.binPath,[...u,"--bundle",i.bundlePath,l],{ignoreReturnCode:!0});if(d.stderr.length>0&&d.exitCode!=0)throw new Error(d.stderr);s[l]={bundlePath:i.bundlePath,cosignArgs:u}}})}return s}async verifyArtifact(e,r,s){S("Verifying keyless verification bundle signature");let n=JSON.parse(Lo.default.readFileSync(r,"utf-8")),i=(0,sf.bundleFromJSON)(n);S("Fetching Sigstore TUF trusted root metadata");let a=await Ile.getTrustedRoot({retry:{retries:5}}),c=(0,nf.toTrustMaterial)(a);try{S("Verifying artifact signature");let l=(0,nf.toSignedEntity)(i,Lo.default.readFileSync(e)),u=t.parseCertificate(i),d=i.verificationMaterial.tlogEntries,A=d.length>0?d[0].logIndex:void 0,f=new nf.Verifier(c).verify(l,{subjectAlternativeName:s?.subjectAlternativeName,extensions:s?.issuer?{issuer:s.issuer}:void 0});return B(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:n,certificate:u.toString(),tlogID:A}}catch(l){throw new Error(`Failed to verify artifact signature: ${l}`)}}static noTransparencyLog(e){return e??qe.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],s=t.noTransparencyLog(e.noTransparencyLog);if(S(`Upload to transparency log: ${s?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")){let n=await this.useRekorV2(e);await Fs("Creating Sigstore protobuf signing config",async()=>{let i=Te.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Te.tmpDir()}),a=["signing-config","create",n?"--with-default-rekor-v2=true":"--with-default-services=true",`--out=${i}`];s&&a.push("--no-default-rekor=true"),await re.exec(this.cosign.binPath,a,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(Lo.default.readFileSync(i,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${i}`)})}else r.push("--use-signing-config"),s&&r.push("--tlog-upload=false");return r}async logTransparencyUpload(e,r){if(await this.useRekorV2(r)){S(`Attestation signature uploaded to Rekor v2 transparency log with index ${e}`);return}S(`Attestation signature uploaded to Rekor transparency log: ${rf}?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=Fo.default.join(e.localExportDir,"provenance.json");if(Lo.default.existsSync(r))return{[r]:Lo.default.readFileSync(r)};let s=Lo.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>Lo.default.existsSync(Fo.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=Fo.default.join(e.localExportDir,a.name,"provenance.json");i[c]=Lo.default.readFileSync(c)}return i}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(s=>({name:s.name,digest:s.digest}))}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,n=s.length>0?s[0].logIndex:void 0;return{payload:(0,sf.bundleToJSON)(e),certificate:r.toString(),tlogID:n}}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 Cle.X509Certificate(r)}async bundleFormatArgs(){return await this.cosign.versionSatisfies(">=3.1.1")?[]:["--new-bundle-format"]}};var EN=class t{static{o(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToke Line truncated
`)){let[u,...d]=l.split(":"),A=u.toLowerCase(),p=d.map(f=>f.trim()).join(":");if(u.length!=0)switch(!0){case A=="name":s=void 0,r.name==null?r.name=p:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:p});break;case A=="driver":s=void 0,r.driver=p;break;case A=="last activity":s=void 0,r.lastActivity=new Date(p);break;case A=="endpoint":s=void 0,n.endpoint=p;break;case A=="driver options":s=void 0,n["driver-opts"]=(p.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":s=void 0,n.status=p;break;case A=="buildkit daemon flags":case A=="flags":s=void 0,n["buildkitd-flags"]=p;break;case A=="buildkit version":case A=="buildkit":s=void 0,n.buildkit=p;break;case A=="platforms":{if(s=void 0,!p)break;let f=[];if(p.includes("*"))for(let m of p.split(", "))m.includes("*")&&f.push(m.replace(/\*/g,""));else f=p.split(", ");n.platforms=f.join(",");break}case A=="features":s="features",n.features={};break;case A=="labels":s="label",n.labels={};break;case A=="devices":s="devices",n.devices=n.devices||[];break;case A.startsWith("gc policy rule#"):s="gcpolicy",n.gcPolicy&&i&&(n.gcPolicy.push(i),i=void 0);break;case A.startsWith("file#"):s="file",c=u.split("#")[1],n.files=n.files||{},n.files[c]="";break;default:switch(s&&s!=="devices"&&n.devices&&a&&(n.devices.push(a),a=void 0),s||""){case"features":{n.features=n.features||{},n.features[u.trim()]=!!p;break}case"label":{n.labels=n.labels||{},n.labels[u.trim()]=p;break}case"devices":{switch(A.trim()){case"name":{n.devices&&a&&n.devices.push(a),a={},a.name=p;break}case"on-demand":{a&&p&&(a.onDemand=p=="true");break}case"automatically allowed":{a&&p&&(a.autoAllow=p=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[u.trim()]=p)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=p=="true";break}case"filters":{p&&(i.filter=p.split(","));break}case"keep duration":{i.keepDuration=p;break}case"keep bytes":{i.keepBytes=p;break}case"reserved space":{i.reservedSpace=p;break}case"max used space":{i.maxUsedSpace=p;break}case"min free space":{i.minFreeSpace=p;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
`),n.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var cle=w(gi(),1);var mN=w(require("fs"),1);var gN=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(!mN.default.existsSync(e))throw new Error(`config file ${e} not found`);e=mN.default.readFileSync(e,{encoding:"utf-8"})}let s=Re.tmpName({tmpdir:Re.tmpDir()});return mN.default.writeFileSync(s,e),s}};var EN=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new gN,this.buildx=e?.buildx||new Ue}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){ct(r)}return e.buildkit}async getVersionWithinImage(e){return B(`BuildKit.getVersionWithinImage nodeName: ${e}`),tr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Ue.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return B(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),tr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new jp({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(B(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return B(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(B(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!cle.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var yN=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 tr.isAvailable();return B(`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 re.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Compose.isAvailable error: ${s}`),!1));return B(`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 re.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 re.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 Ma=w(require("fs"),1),Uo=w(require("os"),1),Kp=w(require("path"),1);var IN=w(gi(),1),Z2=w(require("util"),1);var CN=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 s=await t.getDownloadVersion(e);B(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);B(`Install.download vspec: ${i}`);let a=IN.clean(i)||"";if(!IN.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new dr({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:Kp.default.join(Uo.default.homedir(),".bin","docker-compose"),cacheFile:Uo.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return S(`Compose binary found in ${l}`),l;let u=Z2.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let d=await hn(u,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${d}`);let A=await c.save(d);return S(`Cached to ${A}`),A}async installStandalone(e,r){S("Standalone mode"),r=r||Re.tmpDir();let s=Kp.default.join(r,"compose-bin-standalone");Ma.default.existsSync(s)||Ma.default.mkdirSync(s,{recursive:!0});let n=Uo.default.platform()=="win32"?"compose.exe":"compose",i=Kp.default.join(s,n);return Ma.default.copyFileSync(e,i),S("Fixing perms"),Ma.default.chmodSync(i,"0755"),Oi(s),S("Added Compose to PATH"),S(`Binary path: ${i}`),i}async installPlugin(e,r){S("Docker plugin mode"),r=r||tr.configDir;let s=Kp.default.join(r,"cli-plugins");Ma.default.existsSync(s)||Ma.default.mkdirSync(s,{recursive:!0});let n=Uo.default Line truncated
`),n.files[c]+=l.replace(/^\s>\s?/,""));break}}}}return a&&n.devices&&n.devices.push(a),i&&n.gcPolicy&&n.gcPolicy.push(i),n.name&&r.nodes.push(n),r}};var Ble=b(yi(),1);var yN=b(require("fs"),1);var CN=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(!yN.default.existsSync(e))throw new Error(`config file ${e} not found`);e=yN.default.readFileSync(e,{encoding:"utf-8"})}let s=Te.tmpName({tmpdir:Te.tmpDir()});return yN.default.writeFileSync(s,e),s}};var IN=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new CN,this.buildx=e?.buildx||new Me}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){at(r)}return e.buildkit}async getVersionWithinImage(e){return B(`BuildKit.getVersionWithinImage nodeName: ${e}`),tr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${Me.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return B(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),tr.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(s=>{if(s.exitCode==0&&s.stdout.length>0)return`${r.stdout.trim()} => ${s.stdout.trim()}`;if(s.stderr.length>0)throw new Error(r.stderr.trim());return s.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,s){s||(s=await new af({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(B(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return B(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(B(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!Ble.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var BN=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 tr.isAvailable();return B(`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 re.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(B(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(B(`Compose.isAvailable error: ${s}`),!1));return B(`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 re.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 re.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 La=b(require("fs"),1),qo=b(require("os"),1),cf=b(require("path"),1);var bN=b(yi(),1),cq=b(require("util"),1);var wN=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 s=await t.getDownloadVersion(e);B(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);B(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);B(`Install.download vspec: ${i}`);let a=bN.clean(i)||"";if(!bN.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new dr({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:cf.default.join(qo.default.homedir(),".bin","docker-compose"),cacheFile:qo.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),l=await c.find();if(l)return S(`Compose binary found in ${l}`),l;let u=cq.format(s.downloadURL,i,this.filename());S(`Downloading ${u}`);let d=await pn(u,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${d}`);let A=await c.save(d);return S(`Cached to ${A}`),A}async installStandalone(e,r){S("Standalone mode"),r=r||Te.tmpDir();let s=cf.default.join(r,"compose-bin-standalone");La.default.existsSync(s)||La.default.mkdirSync(s,{recursive:!0});let n=qo.default.platform()=="win32"?"compose.exe":"compose",i=cf.default.join(s,n);return La.default.copyFileSync(e,i),S("Fixing perms"),La.default.chmodSync(i,"0755"),Oi(s),S("Added Compose to PATH"),S(`Binary path: ${i}`),i}async installPlugin(e,r){S("Docker plugin mode"),r=r||tr.configDir;let s=cf.default.join(r,"cli-plugins");La.default.existsSync(s)||La.default.mkdirSync(s,{recursive:!0});let n=qo.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -199,7 +198,7 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var BN=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Ue,this.sigstore=e?.sigstore||new Xc}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);B(`Install.download vspec: ${n}`);let i=Zp.clean(n)||"";if(!Zp.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let a=new dr({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:Xp.default.join(Ci.default.homedir(),".bin"),cacheFile:Ci.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=eq.format(r.downloadURL,n,this.filename());S(`Downloading ${l}`);let u=await hn(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&Zp.satisfies(n,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,s){let n=await this.vspec(e);B(`Install.build vspec: ${n}`);let i=new dr({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:Xp.default.join(Ci.default.homedir(),".bin"),cacheFile:Ci.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=Xp.default.join(Re.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await re.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(lle)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${Ue.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,s);return S(`Cached to ${d}`),d}async install(e,r){r=r||Re.tmpDir();let s=Xp.default.join(r,"cosign-bin");rE.default.existsSync(s)||rE.default.mkdirSync(s,{recursive:!0});let n=Ci.default.platform()=="win32"?"cosign.exe":"cosign",i=Xp.default.join(s,n);return rE.default.copyFileSync(e,i),S("Fixing perms"),rE.default.chmodSync(i,"0755"),Oi(s),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Ue({standalone:!0}).isAvailable(),n=await new Ue({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let 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 Ue({standalone:i}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${s}`);let n=await hn(s,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${Jp}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Ci.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Ci.default.arch();break}}let r=Ci.default.platform()=="win32"?"windows":Ci.default.platform(),s=Ci.default.platform()=="win32"?".exe":"";return eq.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!st.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await hp.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${st.trimSuffix(a,".git")}/${n}`,l=st.hash(c);return S(`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 n=await new Ve({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var ule=w(gi(),1);var bN=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 re.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
`;var SN=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new Me,this.sigstore=e?.sigstore||new rl}async download(e){let r=await t.getDownloadVersion(e.version);B(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);B(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);B(`Install.download vspec: ${n}`);let i=uf.clean(n)||"";if(!uf.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let a=new dr({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:lf.default.join(Bi.default.homedir(),".bin"),cacheFile:Bi.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let l=lq.format(r.downloadURL,n,this.filename());S(`Downloading ${l}`);let u=await pn(l,void 0,this.githubToken);B(`Install.download htcDownloadPath: ${u}`),e.verifySignature&&uf.satisfies(n,">=3.0.1")&&await this.verifySignature(u,l);let d=await a.save(u,e.skipState);return S(`Cached to ${d}`),d}async build(e,r,s){let n=await this.vspec(e);B(`Install.build vspec: ${n}`);let i=new dr({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:lf.default.join(Bi.default.homedir(),".bin"),cacheFile:Bi.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=lf.default.join(Te.tmpDir(),"cosign-build-cache"),l=await this.buildCommand(e,c),u=await re.getExecOutput(l.command,l.args,{ignoreReturnCode:!0,input:Buffer.from(wle)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${Me.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,s);return S(`Cached to ${d}`),d}async install(e,r){r=r||Te.tmpDir();let s=lf.default.join(r,"cosign-bin");iE.default.existsSync(s)||iE.default.mkdirSync(s,{recursive:!0});let n=Bi.default.platform()=="win32"?"cosign.exe":"cosign",i=lf.default.join(s,n);return iE.default.copyFileSync(e,i),S("Fixing perms"),iE.default.chmodSync(i,"0755"),Oi(s),S("Added Cosign to PATH"),S(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new Me({standalone:!0}).isAvailable(),n=await new Me({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)B("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)B("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)B("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)B("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),i=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let 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 Me({standalone:i}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${s}`);let n=await pn(s,void 0,this.githubToken);B(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${i.tlogID?`${rf}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(Bi.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=Bi.default.arch();break}}let r=Bi.default.platform()=="win32"?"windows":Bi.default.platform(),s=Bi.default.platform()=="win32"?".exe":"";return lq.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!tt.isValidRef(e)){let u=e.replace(/^v+|v+$/g,"");return S(`Use ${u} version spec cache key for ${e}`),u}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await Sp.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${tt.trimSuffix(a,".git")}/${n}`,l=tt.hash(c);return S(`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 n=await new qe({token:r}).releases("Cosign",e.contentOpts);if(!n[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return n[e.version]}};var ble=b(yi(),1);var NN=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 re.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stder Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "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
"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
}
Generated Vendored
+62 -93
View File
@@ -216,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.100.0
- @docker/actions-toolkit@0.106.0
This package contains the following license:
@@ -453,9 +453,10 @@ The following npm packages may be included in this product:
- @pkgjs/parseargs@0.11.0
- b4a@1.6.6
- b4a@1.9.0
- bare-events@2.2.2
- bare-events@2.8.3
- bare-fs@4.7.1
- bare-fs@4.8.4
- bare-os@3.9.1
- bare-stream@2.13.1
- bare-url@2.4.3
@@ -1541,13 +1542,8 @@ Apache License
The following npm packages may be included in this product:
- @protobuf-ts/plugin-framework@2.9.4
- @protobuf-ts/plugin@2.9.4
- @protobuf-ts/protoc@2.9.4
- @protobuf-ts/runtime-rpc@2.11.1
- @protobuf-ts/runtime-rpc@2.9.4
- @protobuf-ts/runtime@2.11.1
- @protobuf-ts/runtime@2.9.4
These packages each contain the following license:
@@ -1792,7 +1788,7 @@ SOFTWARE.
The following npm package may be included in this product:
- js-yaml@5.4.2
- js-yaml@5.4.3
This package contains the following license:
@@ -2007,6 +2003,37 @@ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- content-type@3.1.1
This package contains the following license:
(The MIT License)
Copyright (c) 2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- universal-user-agent@7.0.3
@@ -2092,6 +2119,7 @@ The following npm packages may be included in this product:
- jackspeak@3.4.3
- minimatch@10.2.5
- minimatch@10.2.6
These packages each contain the following license:
@@ -2566,70 +2594,6 @@ software or this license, under any kind of legal claim.***
-----------
The following npm package may be included in this product:
- typescript@3.9.10
This package contains the following license:
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
You must give any other recipients of the Work or Derivative Works a copy of this License; and
You must cause any modified files to carry prominent notices stating that You changed the files; and
You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and
If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
-----------
The following npm package may be included in this product:
- @sigstore/verify@4.1.2
@@ -2728,7 +2692,7 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm package may be included in this product:
- handlebars@4.7.9
- handlebars@4.7.10
This package contains the following license:
@@ -2963,11 +2927,13 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- @octokit/openapi-types@27.0.0
- @octokit/openapi-types@28.0.0
- @octokit/openapi-types@29.0.1
This package contains the following license:
These packages each contain the following license:
Copyright (c) GitHub 2025 - Licensed as MIT.
@@ -3129,7 +3095,7 @@ The following npm packages may be included in this product:
- emoji-regex@8.0.0
- emoji-regex@9.2.2
- he@1.2.0
- he@2.0.0
These packages each contain the following license:
@@ -3287,12 +3253,11 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- brace-expansion@1.1.18
- brace-expansion@2.1.1
These packages each contain the following license:
This package contains the following license:
MIT License
@@ -3441,7 +3406,7 @@ SOFTWARE.
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
- @octokit/plugin-retry@8.1.1
This package contains the following license:
@@ -3531,11 +3496,12 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- json-with-bigint@3.5.12
- json-with-bigint@3.5.3
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3751,11 +3717,12 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
The following npm packages may be included in this product:
- brace-expansion@5.0.12
- brace-expansion@5.0.5
This package contains the following license:
These packages each contain the following license:
MIT License
@@ -3788,6 +3755,8 @@ The following npm packages may be included in this product:
- @octokit/plugin-paginate-rest@14.0.0
- @octokit/plugin-rest-endpoint-methods@17.0.0
- @octokit/types@16.0.0
- @octokit/types@17.0.0
- @octokit/types@18.0.0
These packages each contain the following license:
@@ -4138,10 +4107,8 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- isexe@2.0.0
- minimatch@3.1.5
- once@1.4.0
- semver@7.7.3
- semver@7.7.4
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
@@ -4197,7 +4164,9 @@ ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEAL
The following npm packages may be included in this product:
- @octokit/endpoint@11.0.3
- @octokit/endpoint@11.0.5
- @octokit/graphql@9.0.3
- @octokit/request@10.0.16
- @octokit/request@10.0.8
These packages each contain the following license:
@@ -4231,6 +4200,7 @@ The following npm packages may be included in this product:
- @octokit/auth-token@6.0.0
- @octokit/core@7.0.6
- @octokit/request-error@7.1.0
- @octokit/request-error@7.1.2
These packages each contain the following license:
@@ -4260,7 +4230,7 @@ THE SOFTWARE.
The following npm package may be included in this product:
- csv-parse@7.0.2
- csv-parse@7.0.3
This package contains the following license:
@@ -4386,7 +4356,7 @@ The following npm packages may be included in this product:
- pump@2.0.1
- pumpify@1.5.1
- tar-stream@3.1.7
- tar-stream@3.2.1
- tar-stream@3.2.2
These packages each contain the following license:
@@ -4659,6 +4629,7 @@ The following npm packages may be included in this product:
- fast-fifo@1.3.2
- streamx@2.16.1
- streamx@2.26.0
- streamx@2.28.1
These packages each contain the following license:
@@ -4904,14 +4875,13 @@ THE SOFTWARE.
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.2.0
- @actions/artifact@6.3.1
- @actions/cache@6.3.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0
- @actions/github@9.0.0
- @actions/github@9.1.1
- @actions/glob@0.6.1
- @actions/glob@0.7.0
- @actions/io@3.0.2
- @actions/tool-cache@4.0.0
@@ -5007,7 +4977,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
The following npm packages may be included in this product:
- concat-map@0.0.1
- minimist@1.2.8
- wordwrap@1.0.0