[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-10-02 23:04:15 +00:00
1 parent 758534a23b
commit 36b41d95ba
3 files changed
+79 -79

No files matched your search

Generated Vendored
+75 -75
View File
@@ -1,8 +1,8 @@
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 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 Aq=h(Yu=>{"use strict";var _4e=require("net"),Sle=require("tls"),ON=require("http"),lq=require("https"),Nle=require("events"),k4e=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=uq,e.defaultPort=443,e}o(Rle,"httpsOverHttp");function Tle(t){var e=new qo(t);return e.request=lq.request,e}o(Tle,"httpOverHttps");function vle(t){var e=new qo(t);return e.request=lq.request,e.createSocket=uq,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=dq(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,dq(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 uq(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(uq,"createSecureSocket");function dq(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(dq,"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((M4e,pq)=>{pq.exports=Aq()});var it=h((L4e,fq)=>{fq.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 Te=h((F4e,Fq)=>{"use strict";var hq=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[hq]===!0}[hq]=!0},mq=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[mq]===!0}[mq]=!0},gq=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[gq]===!0}[gq]=!0},Eq=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[Eq]===!0}[Eq]=!0},yq=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(XG,"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 ZG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(ZG,"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=YG();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=eH(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 eH(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();WG.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(eH,"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(pH(l)),_E(typeof f=="string"&&pH(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=mH(t,e),r===null))return"failure";if(kE(t,hH,e)){let c=e.position+hH.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=mH(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=fH(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=fH(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 mH(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(mH,"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");gH.exports={multipartFormDataParser:YAe,validateBoundary:JAe}});var cd=h((S5e,QH)=>{"use strict";var pf=Ce(),{ReadableStreamFrom:WAe,isBlobLike:yH,isReadableStreamLike:jAe,readableStreamClose:KAe,createDeferredPromise:XAe,fullyReadBody:ZAe,extractMimeType:epe,utf8DecodeBytes:BH}=Ns(),{FormData:CH}=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}=EH(),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 wH=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,SH;wH&&(SH=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 NH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:yH(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
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
\r
@@ -11,7 +11,7 @@ ${A(E)}\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(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(yH(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(NH,"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.")),NH(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=IH(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,BH,t)},json(){return od(this,ppe,t)},formData(){return od(this,r=>{let s=IH(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 CH;return i[ad]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new CH;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),xH(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 xH(t){let e=t[ad].body;return e!=null&&(e.stream.locked||pf.isDisturbed(e.stream))}o(xH,"bodyUnusable");function ppe(t){return JSON.parse(BH(t))}o(ppe,"parseJSONFromBytes");function IH(t){let e=t[ad].headersList,r=epe(e);return r==="failure"?null:r}o(IH,"bodyMimeType");QH.exports={extractBody:NH,safelyExtractBody:cpe,cloneBody:lpe,mixinBody:Ape,streamRegistry:SH,hasFinalizationRegistry:wH,bodyUnusable:xH}});var VH=h((x5e,HH)=>{"use strict";var j=require("node:assert"),Z=Ce(),{channels:RH}=Wu(),Vx=Sx(),{RequestContentLengthMismatchError:il,ResponseContentLengthMismatchError:TH,RequestAbortedError:LH,HeadersTimeoutError:fpe,HeadersOverflowError:hpe,SocketError:ld,InformationalError:ud,BodyTimeoutError:mpe,HTTPParserError:gpe,ResponseExceededMaxSizeError:Epe}=Te(),{kUrl:FH,kReset:es,kClient:FE,kParser:Xe,kBlocking:mf,kRunning:Ft,kPending:UH,kSize:vH,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:PH,kCounter:Npe,kMaxResponseSize:xpe,kOnError:_H,kResume:Yo,kHTTPContext:qH}=it(),xs=SG(),kH=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(QG())}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
`;if(typeof n=="string"?g+=`host: ${n}\r
`:g+=t[Cpe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
@@ -19,14 +19,14 @@ upgrade: ${i}\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 RH.sendHeaders.hasSubscribers&&RH.sendHeaders.publish({request:e,headers:g,socket:f}),!l||p===0?OH(m,null,t,e,f,d,g,A):Z.isBuffer(l)?OH(m,l,t,e,f,d,g,A):Z.isBlobLike(l)?typeof l.stream=="function"?MH(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)?MH(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 LH;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 OH(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[Yo]()}catch(l){t(l)}}o(OH,"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
\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[Yo]()}catch(l){t(l)}}o(Mpe,"writeBlob");async function MH(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(MH,"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"):r.write(`${l}content-length: ${n}\r
\r
`,"latin1")),n===null&&r.write(`\r
@@ -37,42 +37,42 @@ ${u.toString(16)}\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[$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))}};HH.exports=vpe});var XH=h((R5e,KH)=>{"use strict";var an=require("node:assert"),{pipeline:Lpe}=require("node:stream"),be=Ce(),{RequestContentLengthMismatchError:Zx,RequestAbortedError:zH,SocketError:gf,InformationalError:eQ}=Te(),{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:jH,kHTTP2Session:Wn,kResume:Ja,kSize:qpe,kHTTPContext:Gpe}=it(),$o=Symbol("open streams"),JH,YH=!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,YH||(YH=!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[jH]});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[jH]===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 zH,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)){JH??=cd().extractBody;let[b,N]=JH(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]=me>-1?me:-1,this[Ffe]=ve??100,this[Rt]=null,this[Kn]=[],this[jo]=0,this[Xn]=0,this[If]=ue=>cQ(this,ue),this[Lfe]=ue=>uV(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]>=(lV(this)||1)||this[wf]>0)}[Ife](e){dV(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 uV(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(uV,"onError");async function dV(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(cV.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",oV),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",oV),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 uV(t,i);t.emit("connectionError",t[Ti],[t],i)}t[If]()}o(dV,"connect");function aV(t){t[Wa]=0,t.emit("drain",t[Ti],[t])}o(aV,"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(()=>aV(t))):aV(t);continue}if(t[wf]===0||t[bf]>=(lV(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]){dV(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");AV.exports=aQ});var lQ=h((L5e,pV)=>{"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)}};pV.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 hV=h((U5e,fV)=>{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]}};fV.exports=uQ});var mQ=h((G5e,SV)=>{"use strict";var jfe=Zu(),Kfe=lQ(),{kConnected:dQ,kSize:mV,kRunning:gV,kPending:EV,kQueued:Sf,kBusy:Xfe,kFree:Zfe,kUrl:ehe,kClose:the,kDestroy:rhe,kDispatch:she}=it(),nhe=hV(),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())}};vJ.exports=mR});var my=h((U8e,OJ)=>{"use strict";var _J=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:Tge}=Te(),vge=gd();DJ()===void 0&&kJ(new vge);function kJ(t){if(!t||typeof t.dispatch!="function")throw new Tge("Argument agent must implement Agent");Object.defineProperty(globalThis,_J,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(kJ,"setGlobalDispatcher");function DJ(){return globalThis[_J]}o(DJ,"getGlobalDispatcher");OJ.exports={setGlobalDispatcher:kJ,getGlobalDispatcher:DJ}});var gy=h((H8e,MJ)=>{"use strict";MJ.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 FJ=h((z8e,LJ)=>{"use strict";var Pge=WE();LJ.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 qJ=h((Y8e,UJ)=>{"use strict";var _ge=oy();UJ.exports=t=>e=>o(function(s,n){return e(s,new _ge({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var HJ=h((W8e,GJ)=>{"use strict";var kge=Ce(),{InvalidArgumentError:Dge,RequestAbortedError:Oge}=Te(),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");GJ.exports=Lge});var JJ=h((K8e,zJ)=>{"use strict";var{isIP:Fge}=require("node:net"),{lookup:Uge}=require("node:dns"),qge=gy(),{InvalidArgumentError:xd,InformationalError:Gge}=Te(),VJ=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===VJ?(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===VJ?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":S3(i)&&(r[n]=i);break;case"id":N3(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&S3(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&N3(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}}};x3.exports={EventSourceStream:oT}});var O3=h((e9e,D3)=>{"use strict";var{pipeline:jIe}=require("node:stream"),{fetching:KIe}=Ff(),{makeRequest:XIe}=Td(),{webidl:ta}=pr(),{EventSourceStream:ZIe}=Q3(),{parseMIMEType:eBe}=Zr(),{createFastMessageEvent:tBe}=Od(),{isNetworkError:R3}=Mf(),{delay:rBe}=nT(),{kEnumerableProperty:Nl}=Ce(),{environmentSettingsObject:T3}=Ns(),v3=!1,P3=3e3,Zf=0,_3=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),v3||(v3=!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:P3};let n=T3,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=T3.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=>{R3(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(R3(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=_3,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}},k3={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Zf,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:_3,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:eh,writable:!1}};Object.defineProperties(qd,k3);Object.defineProperties(qd.prototype,k3);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}]);D3.exports={EventSource:qd,defaultReconnectionTime:P3}});var Hd=h((r9e,te)=>{"use strict";var iBe=hd(),M3=rf(),oBe=md(),aBe=kV(),cBe=gd(),lBe=RQ(),uBe=nz(),dBe=uz(),L3=Te(),nC=Ce(),{InvalidArgumentError:sC}=L3,Gd=jz(),ABe=nf(),pBe=uR(),fBe=PJ(),hBe=pR(),mBe=KQ(),gBe=oy(),{getGlobalDispatcher:F3,setGlobalDispatcher:EBe}=my(),yBe=gy(),CBe=WE(),IBe=jE();Object.assign(M3.prototype,Gd);te.exports.Dispatcher=M3;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==="*"?uv:C.type==="?"?lv:"\\"+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 me=c.length-1;me>-1;me--){var Se=c[me],Re=s.slice(0,Se.reStart),ve=s.slice(Se.reStart,Se.reEnd-8),ae=s.slice(Se.reEnd-8,Se.reEnd),Ye=s.slice(Se.reEnd);ae+=Ye;var ue=Re.split("(").length-1,vr=Ye;for(g=0;g<ue;g++)vr=vr.replace(/\)[+*?]?/,"");Ye=vr;var J="";Ye===""&&e!==RC&&(J="$");var Me=Re+ve+Ye+J+ae;s=Me}if(s!==""&&n&&(s="(?=.)"+s),D&&(s=p+s),e===RC)return[s,n];if(!n)return VSe(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(GSe,"parse");Fs.makeRe=function(t,e){return new Gt(t,e||{}).makeRe()};Gt.prototype.makeRe=HSe;function HSe(){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?uv:e.dot?DSe:OSe,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===Pl?r:typeof a=="string"?zSe(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(HSe,"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,me=0;me<y.length;me++)y[me][1]=D-(I[Q--]+y[me][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 VSe(t){return t.replace(/\\(.)/g,"$1")}o(VSe,"globUnescape");function zSe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(zSe,"regExpEscape")});var Nh=h((_7e,j4)=>{"use strict";var ZSe="2.0.0",eNe=Number.MAX_SAFE_INTEGER||9007199254740991,tNe=16,rNe=250,sNe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];j4.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:tNe,MAX_SAFE_BUILD_LENGTH:rNe,MAX_SAFE_INTEGER:eNe,RELEASE_TYPES:sNe,SEMVER_SPEC_VERSION:ZSe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var xh=h((k7e,K4)=>{"use strict";var nNe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};K4.exports=nNe});var Zd=h((Fi,X4)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:Av,MAX_SAFE_BUILD_LENGTH:iNe,MAX_LENGTH:oNe}=Nh(),aNe=xh();Fi=X4.exports={};var cNe=Fi.re=[],lNe=Fi.safeRe=[],L=Fi.src=[],uNe=Fi.safeSrc=[],F=Fi.t={},dNe=0,pv="[a-zA-Z0-9-]",ANe=[["\\s",1],["\\d", 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+"+yI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=JRe()+e+" "+t[0]}o(zRe,"formatArgs");function JRe(){return hr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(JRe,"getDate");function YRe(...t){return process.stderr.write(EI.format(...t)+`
`)}o(YRe,"log");function $Re(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o($Re,"save");function WRe(){return process.env.DEBUG}o(WRe,"load");function jRe(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(jRe,"init");yI.exports=tP()(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((Sst,iP)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?iP.exports=Q6():iP.exports=k6()});var M6=h(os=>{"use strict";var KRe=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]})),XRe=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)&&KRe(e,t,r);return XRe(e,t),e};Object.defineProperty(os,"__esModule",{value:!0});os.req=os.json=os.toBuffer=void 0;var ZRe=D6(require("http")),eTe=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 tTe(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(tTe,"json");os.json=tTe;function rTe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?eTe:ZRe).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(rTe,"req");os.req=rTe});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]})),sTe=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 sTe(e,t),e},nTe=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 iTe=U6(require("net")),L6=U6(require("http")),oTe=require("https");nTe(M6(),Hs);var Hi=Symbol("AgentBaseInternalState"),oP=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 iTe.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)?oTe.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=oP});var G6=h(lA=>{"use strict";var aTe=lA&&lA.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(lA,"__esModule",{value:!0});lA.parseProxyResponse=void 0;var cTe=aTe(CI()),II=(0,cTe.default)("https-proxy-agent:parse-proxy-response");function lTe(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
\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
`),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(lTe,"parseProxyResponse");lA.parseProxyResponse=lTe});var $6=h(In=>{"use strict";var uTe=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]})),dTe=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)&&uTe(e,t,r);return dTe(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")),ATe=Y6(require("assert")),pTe=Y6(CI()),fTe=q6(),hTe=require("url"),mTe=G6(),Hh=(0,pTe.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 fTe.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new hTe.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(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,mTe.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",gTe),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,ATe.default)(p.listenerCount("data")>0),p.push(d),p.push(null)}),A}};bI.protocols=["http","https"];In.HttpsProxyAgent=bI;function gTe(t){t.resume()}o(gTe,"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 ETe=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]})),yTe=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)&&ETe(e,t,r);return yTe(e,t),e};Object.defineProperty(as,"__esModule",{value:!0});as.req=as.json=as.toBuffer=void 0;var CTe=W6(require("http")),ITe=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 BTe(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(BTe,"json");as.json=BTe;function bTe(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?ITe:CTe).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(bTe,"req");as.req=bTe});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]})),wTe=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 wTe(e,t),e},STe=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 NTe=e9(require("net")),X6=e9(require("http")),xTe=require("https");STe(K6(),Vs);var Vi=Symbol("AgentBaseInternalState"),aP=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 NTe.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))?xTe.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=aP});var n9=h(Bn=>{"use strict";var QTe=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]})),RTe=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)&&QTe(e,t,r);return RTe(e,t),e},TTe=Bn&&Bn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bn,"__esModule",{value:!0});Bn.HttpProxyAgent=void 0;var vTe=s9(require("net")),PTe=s9(require("tls")),_Te=TTe(CI()),kTe=require("events"),DTe=t9(),r9=require("url"),uA=(0,_Te.default)("http-proxy-agent"),wI=class extends DTe.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?OTe(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
\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),uA("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(uA("Creating `tls.Socket`: %o",this.connectOpts),i=PTe.connect(this.connectOpts)):(uA("Creating `net.Socket`: %o",this.connectOpts),i=vTe.connect(this.connectOpts)),await(0,kTe.once)(i,"connect"),i}};wI.protocols=["http","https"];Bn.HttpProxyAgent=wI;function OTe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(OTe,"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 rOe=require("os"),sOe=require("util");function nOe(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(nOe,"_interopDefaultLegacy");var iOe=nOe(sOe);function oOe(t,...e){process.stderr.write(`${iOe.default.format(t,...e)}${rOe.EOL}`)}o(oOe,"log");var dZ=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,pZ,FO=[],UO=[],cb=[];dZ&&qO(dZ);var fZ=Object.assign(t=>hZ(t),{enable:qO,enabled:GO,disable:aOe,log:oOe});function qO(t){pZ=t,FO=[],UO=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?UO.push(new RegExp(`^${s.substr(1)}$`)):FO.push(new RegExp(`^${s}$`));for(let s of cb)s.enabled=GO(s.namespace)}o(qO,"enable");function GO(t){if(t.endsWith("*"))return!0;for(let e of UO)if(e.test(t))return!1;for(let e of FO)if(e.test(t))return!0;return!1}o(GO,"enabled");function aOe(){let t=pZ||"";return qO(""),t}o(aOe,"disable");function hZ(t){let e=Object.assign(r,{enabled:GO(t),destroy:cOe,log:fZ.log,namespace:t,extend:lOe});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 cOe(){let t=cb.indexOf(this);return t>=0?(cb.splice(t,1),!0):!1}o(cOe,"destroy");function lOe(t){let e=hZ(`${this.namespace}:${t}`);return e.log=this.log,e}o(lOe,"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 HO=["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: ${HO.join(", ")}.`));function gZ(t){if(t&&!CZ(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${HO.join(",")}`);lb=t;let e=[];for(let r of mZ)yZ(r)&&e.push(r.namespace);Tm.enable(e.join(","))}o(gZ,"setLogLevel");function uOe(){return lb}o(uOe,"getLogLevel");var AZ={verbose:400,info:300,warning:200,error:100};function dOe(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(dOe,"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 HO.includes(t)}o(CZ,"isAzureLogLevel");QA.AzureLogger=ub;QA.createClientLogger=dOe;QA.getLogLevel=uOe;QA.setLogLevel=gZ});var JO=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 VO=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},zO=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=zO;Pm.AbortError=VO;Pm.AbortSignal=vm});var xZ=h(zr=>{"use strict";Object.defineProperty(zr,"__esModule",{value:!0});var AOe 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: ${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(QOe,"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 QOe({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 ROe(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(ROe,"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:ROe({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 eM(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 TOe(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return qZ({status:r,statusCode:t.statusCode})}o(TOe,"getStatus");function vOe(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(vOe,"getProvisioningState");function eM(t){return t===202?"running":t<300?"succeeded":"failed"}o(eM,"toOperationStatus");function GZ({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?POe(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 POe(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(POe,"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 eM(e.rawResponse.statusCode);case"Body":return tM(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(VZ,"getStatusFromInitialResponse");async function _Oe(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(_Oe,"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(mMe,"base64decode");DA.base64decode=mMe;function gMe(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(gMe,"base64encode");DA.base64encode=gMe});var w7=h(Tb=>{"use strict";Object.defineProperty(Tb,"__esModule",{value:!0});Tb.utf8read=void 0;var AM=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function EMe(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(AM(s)),n=0);return r.length?(n&&r.push(AM(s.slice(0,n))),r.join("")):AM(s.slice(0,n))}o(EMe,"utf8read");Tb.utf8read=EMe});var Um=h(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.WireType=go.mergeBinaryOptions=go.UnknownFieldHandler=void 0;var yMe;(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")})(yMe=go.UnknownFieldHandler||(go.UnknownFieldHandler={}));function CMe(t,e){return Object.assign(Object.assign({},t),e)}o(CMe,"mergeBinaryOptions");go.mergeBinaryOptions=CMe;var IMe;(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"})(IMe=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 BMe(){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(BMe,"varint64read");fs.varint64read=BMe;function bMe(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(bMe,"varint64write");fs.varint64write=bMe;var vb=65536*65536;function wMe(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(wMe,"int64fromString");fs.int64fromString=wMe;function SMe(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(SMe,"int64toString");fs.int64toString=SMe;function NMe(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(NMe,"varint32write");fs.varint32write=NMe;function xMe(){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(xMe,"varint32read");fs.varint32read=xMe});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=FM});var qM=h(aw=>{"use strict";Object.defineProperty(aw,"__esModule",{value:!0});aw.mergeRpcOptions=void 0;var see=Dt();function WLe(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(WLe,"mergeRpcOptions");aw.mergeRpcOptions=WLe;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 HM=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 GM=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=GM});var zM=h(cw=>{"use strict";Object.defineProperty(cw,"__esModule",{value:!0});cw.RpcOutputStreamController=void 0;var nee=HM(),Au=Dt(),VM=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=VM});var YM=h(GA=>{"use strict";var jLe=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 JM=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 jLe(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=JM});var WM=h(HA=>{"use strict";var KLe=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
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(W1e,"logUnexpecedPropertyAccessOnce");function j1e(){Object.keys(vw).forEach(function(t){delete vw[t]})}o(j1e,"resetLoggedProperties")});var _w=h(bo=>{"use strict";bo.__esModule=!0;bo.HandlebarsEnvironment=WL;function Nte(t){return t&&t.__esModule?t:{default:t}}o(Nte,"_interopRequireDefault");var yu=Yr(),K1e=en(),YL=Nte(K1e),X1e=HL(),Z1e=Bte(),eUe=zL(),Pw=Nte(eUe),tUe=JL(),rUe="4.7.9";bo.VERSION=rUe;var sUe=8;bo.COMPILER_REVISION=sUe;var nUe=7;bo.LAST_COMPATIBLE_COMPILER_REVISION=nUe;var iUe={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=iUe;var $L="[object Object]";function WL(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},X1e.registerDefaultHelpers(this),Z1e.registerDefaultDecorators(this)}o(WL,"HandlebarsEnvironment");WL.prototype={constructor:WL,logger:Pw.default,log:Pw.default.log,registerHelper:o(function(e,r){if(yu.toString.call(e)===$L){if(r)throw new YL.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)===$L)yu.extend(this.partials,e);else{if(typeof r>"u")throw new YL.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)===$L){if(r)throw new YL.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(){tUe.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var oUe=Pw.default.log;bo.log=oUe;bo.createFrame=yu.createFrame;bo.logger=Pw.default});var Qte=h((kw,xte)=>{"use strict";kw.__esModule=!0;function jL(t){this.string=t}o(jL,"SafeString");jL.prototype.toString=jL.prototype.toHTML=function(){return""+this.string};kw.default=jL;xte.exports=kw.default});var Rte=h(KL=>{"use strict";KL.__esModule=!0;KL.wrapHelper=aUe;function aUe(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(aUe,"wrapHelper")});var Dte=h(Pc=>{"use strict";Pc.__esModule=!0;Pc.checkRevision=pUe;Pc.template=fUe;Pc.wrapProgram=Dw;Pc.resolvePartial=hUe;Pc.invokePartial=mUe;Pc.noop=_te;function cUe(t){return t&&t.__esModule?t:{default:t}}o(cUe,"_interopRequireDefault");function lUe(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(lUe,"_interopRequireWildcard");var uUe=Yr(),ZA=lUe(uUe),dUe=en(),Sa=cUe(dUe),Na=_w(),Tte=HL(),AUe=Rte(),vte=JL();function pUe(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(pUe,"checkRevision");function fUe(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(`
`),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 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=gUe(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(fUe,"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 hUe(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(hUe,"resolvePartial");function mUe(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(mUe,"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 gUe(t,e){return(!e||!("root"in e))&&(e=e?Na.createFrame(e):{},e.root=t),e}o(gUe,"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]=EUe(n,r)})}o(Pte,"addHelpers");function EUe(t,e){var r=e.lookupProperty;return AUe.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(EUe,"passLookupPropertyOption")});var XL=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 eF(t){return t&&t.__esModule?t:{default:t}}o(eF,"_interopRequireDefault");function tF(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(tF,"_interopRequireWildcard");var yUe=_w(),Mte=tF(yUe),CUe=Qte(),IUe=eF(CUe),BUe=en(),bUe=eF(BUe),wUe=Yr(),ZL=tF(wUe),SUe=Dte 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 `+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(ae=this.productions_[D[1]][1],Re.$=c[c.length-ae],Re._$={first_line:l[l.length-(ae||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ae||1)].first_column,last_column:l[l.length-1].last_column},E&&(Re._$.range=[l[l.length-(ae||1)].range[0],l[l.length-1].range[1]]),Se=this.performAction.call(Re,d,p,A,this.yy,D[1],c,l),typeof Se<"u")return Se;ae&&(a=a.slice(0,-1*ae*2),c=c.slice(0,-1*ae),l=l.slice(0,-1*ae)),a.push(this.productions_[D[1]][0]),c.push(Re.$),l.push(Re._$),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()+`
`+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})();Uw.default=QUe;Vte.exports=Uw.default});var Vw=h((Hw,$te)=>{"use strict";Hw.__esModule=!0;function RUe(t){return t&&t.__esModule?t:{default:t}}o(RUe,"_interopRequireDefault");var TUe=en(),sF=RUe(TUe);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 sF.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 sF.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 sF.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=SF(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=SF(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(SF(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(),x2e=en(),xF=kre(x2e),Q2e=Yr(),R2e=vre(),_re=kre(R2e);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 Q2e.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 xF.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(","),`) {
@@ -84,68 +84,68 @@ 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(T2e(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((SSt,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=W2e;a0.checkBypass=rse;function W2e(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(W2e,"getProxyUrl");function rse(t){if(!t.hostname)return!1;let e=t.hostname;if(j2e(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 j2e(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(j2e,"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 K2e=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]})),X2e=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"&&K2e(r,e,s[n]);return X2e(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+"+bS.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=H$e()+e+" "+t[0]}o(G$e,"formatArgs");function H$e(){return Ar.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(H$e,"getDate");function V$e(...t){return process.stderr.write(BS.formatWithOptions(Ar.inspectOpts,...t)+`
`)}o(V$e,"log");function z$e(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(z$e,"save");function J$e(){return process.env.DEBUG}o(J$e,"load");function Y$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(Y$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 SU=h((Dvt,wU)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?wU.exports=Cae():wU.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 NU=class extends Error{static{o(this,"ValueError")}};xt.ValueError=NU;var xU=class extends Error{static{o(this,"RuntimeError")}};xt.RuntimeError=xU;var QU=class extends Error{static{o(this,"PersistError")}};xt.PersistError=QU;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 RU=class extends wS{static{o(this,"EqualVersionError")}};xt.EqualVersionError=RU;var TU=class extends Hg{static{o(this,"ExpiredMetadataError")}};xt.ExpiredMetadataError=TU;var Vg=class extends Error{static{o(this,"DownloadError")}};xt.DownloadError=Vg;var vU=class extends Vg{static{o(this,"DownloadLengthMismatchError")}};xt.DownloadLengthMismatchError=vU;var PU=class extends Vg{static{o(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};xt.DownloadHTTPError=PU});var wae=h(Pp=>{"use strict";var kU=Pp&&Pp.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Pp,"__esModule",{value:!0});Pp.withTempFile=void 0;var _U=kU(require("fs/promises")),$$e=kU(require("os")),bae=kU(require("path")),W$e=o(async t=>j$e(async e=>t(bae.default.join(e,"tempfile"))),"withTempFile");Pp.withTempFile=W$e;var j$e=o(async t=>{let e=await _U.default.realpath($$e.default.tmpdir()),r=await _U.default.mkdtemp(e+bae.default.sep);try{return await t(r)}finally{await _U.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var Nae=h((Uvt,Sae)=>{var DU=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:DU}});var Rae=h((Gvt,Qae)=>{var{RetryOperation:K$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"),X$e=o(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),Z$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 K$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(!X$e(c))return i(c);if(!s.retry(c.retried||new Error))return i(c.retried)}})})},"promiseRetry");Qae.exports={promiseRetry:Z$e}});var LU=h(Vc=>{"use strict";var MU=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 e3e=MU(SU()),Tae=MU(require("fs")),t3e=MU(require("util")),vae=SS(),r3e=wae(),s3e=Rae(),n3e=(0,e3e.default)("tuf:fetch"),i3e="User-Agent",NS=class{static{o(this,"BaseFetcher")}async downloadFile(e,r,s){return(0,r3e.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 o3e(c,Buffer.from(d))}}finally{l.releaseLock(),await t3e.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(dWe)||r.match(AWe)||(e+=r)}),Buffer.from(e,"base64")}o(pWe,"toDER");function fWe(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(fWe,"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 c2=h(HS=>{"use strict";Object.defineProperty(HS,"__esModule",{value:!0});HS.RFC3161TimestampVerificationError=void 0;var a2=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};HS.RFC3161TimestampVerificationError=a2});var ace=h(Po=>{"use strict";var hWe=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]})),mWe=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gWe=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"&&hWe(r,e,s[n]);return mWe(r,e),r}})();Object.defineProperty(Po,"__esModule",{value:!0});Po.TSTInfo=void 0;var oce=gWe(Lp()),EWe=GS(),yWe=c2(),l2=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 EWe.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 yWe.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Po.TSTInfo=l2});var lce=h(_o=>{"use strict";var CWe=_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]})),IWe=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),BWe=_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"&&CWe(r,e,s[n]);return IWe(r,e),r}})();Object.defineProperty(_o,"__esModule",{value:!0});_o.RFC3161Timestamp=void 0;var bWe=FS(),u2=BWe(Lp()),cce=GS(),jg=c2(),wWe=ace(),SWe="1.2.840.113549.1.7.2",NWe="1.2.840.113549.1.9.16.1.4",xWe="1.2.840.113549.1.9.4",d2=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=bWe.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 wWe.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new jg.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==SWe)throw new jg.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==NWe)throw new jg.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=u2.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
`,Yje=/\u2014 (\S+) (\S+)\n/g;function $je(t,e){let r=t.inclusionProof,s=q2.fromString(r.checkpoint.envelope),n=lN.fromString(s.note);if(!Wje(s,e))throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o($je,"verifyCheckpoint");function Wje(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(Wje,"verifySignedNote");var q2=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(U2))throw new zp.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(U2),s=e.slice(0,r+1),i=e.slice(r+U2.length).matchAll(Yje),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(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.verifyMerkleInclusion=Xje;var H2=yi(),uN=Tr(),jje=Buffer.from([0]),Kje=Buffer.from([1]);function Xje(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}=Zje(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=i4e(t.canonicalizedBody),d=t4e(e4e(u,c,s),l);if(!H2.crypto.bufferEqual(d,e.logHash))throw new uN.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(Xje,"verifyMerkleInclusion");function Zje(t,e){let r=r4e(t,e),s=s4e(t>>BigInt(r));return{inner:r,border:s}}o(Zje,"decompInclProof");function e4e(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?G2(n,s):G2(s,n),t)}o(e4e,"chainInner");function t4e(t,e){return e.reduce((r,s)=>G2(s,r),t)}o(t4e,"chainBorderRight");function r4e(t,e){return n4e(t^e-BigInt(1))}o(r4e,"innerProofSize");function s4e(t){return t.toString(2).split("1").length-1}o(s4e,"onesCount");function n4e(t){return t===0n?0:t.toString(2).length}o(n4e,"bitLength");function G2(t,e){return H2.crypto.digest("sha256",Kje,t,e)}o(G2,"hashChildren");function i4e(t){return H2.crypto.digest("sha256",jje,t)}o(i4e,"hashLeaf")});var Yce=h(z2=>{"use strict";Object.defineProperty(z2,"__esModule",{value:!0});z2.verifyTLogSET=c4e;var Jce=yi(),o4e=Tr(),a4e=qp();function c4e(t,e){if(!(0,a4e.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=l4e(t),a=Buffer.from(Jce.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return Jce.crypto.verify(a,n.publicKey,c)}))throw new o4e.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(c4e,"verifyTLogSET");function l4e(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(l4e,"toVerificationPayload")});var Wce=h(AN=>{"use strict";Object.defineProperty(AN,"__esModule",{value:!0});AN.verifyTLogBody=f4e;AN.verifyTLogInclusion=h4e;var $ce=Fce(),dN=Tr(),J2=Uce(),Y2=qce(),u4e=Gce(),d4e=Vce(),A4e=zce(),p4e=Yce();function f4e(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==J2.DSSE_API_VERSION_V1)return(0,J2.verifyDSSETLogBody)(n,e);{let i=$ce.Entry.fromJSON(n);return(0,J2.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,u4e.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==Y2.HASHEDREKORD_API_VERSION_V1)return(0,Y2.verifyHashedRekordTLogBody)(n,e);{let i=$ce.Entry.fromJSON(n);return(0,Y2.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new dN.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(f4e,"verifyTLogBody");function h4e(t,e){let r=!1;if(m4e(t)&&((0,p4e.verifyTLogSET)(t,e),r=!0),g4e(t)){let s=(0,d4e.verifyCheckpoint)(t,e);(0,A4e.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new dN.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(h4e,"verifyTLogInclusion");function m4e(t){return t.inclusionPromise!==void 0}o(m4e,"isTLogEntryWithInclusionPromise");function g4e(t){return t.inclusionProof!==void 0}o(g4e,"isTLogEntryWithInclusionProof")});var Zce=h(pN=>{"use strict";Object.defineProperty(pN,"__esModule",{value:!0});pN.Verifier=void 0;var E4e=require("util"),Ju=Tr(),jce=xce(),$2=Qce(),Kce=vce(),Xce=Wce(),j2=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 lW(t){process.exitCode=IT.Failure,Jd(t)}o(lW,"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+aW.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",cq(t,e));qa("save-state",{name:t},Ua(e))}o(dC,"saveState");function uW(t){return process.env[`STATE_${t}`]||""}o(uW,"getState");var rg=w(require("fs"),1),TL=w(require("os"),1),vL=w(require("path"),1);var AW=w(require("os"),1);function lh(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(lh,"toCommandValue");function pW(t,e,r){let s=new BT(t,e,r);process.stdout.write(s.toString()+AW.EOL)}o(pW,"issueCommand");var dW="::",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=dW+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+=`${dW}${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 gW=w(require("os"),1);var hW=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,fW="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[fW];if(!e)throw new Error(`Unable to find environment variable for $${fW}. 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(hW.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()}},rKe=new wT;var ST=w(require("os"),1);var aKe=ST.default.platform(),cKe=ST.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
`).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 dv(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 KSe=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 KSe(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,vv=5e3,Pv=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,F8=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,kh="cache.tar",_v="manifest.txt",Att=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())})},$Qe=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)}},WQe="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 kv(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=$Qe(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(kv,"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(Pv)?Pv:(yield G8("tar")).toLowerCase().includes("gnu tar")?fr("tar"):""})}o(H8,"getGnuTarPathOnWindows");function Dv(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(Dv,"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(WQe),$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),Lv=w(require("https"),1);function Ov(t){let e=t.protocol==="https:";if(jQe(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(Ov,"getProxyUrl");function jQe(t){if(!t.hostname)return!1;let e=t.hostname;if(KQe(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(jQe,"checkBypass");function KQe(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(KQe,"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 ZQe=[yt.MovedPermanently,yt.ResourceMoved,yt.SeeOther,yt.TemporaryRedirect,yt.PermanentRedirect],eRe=[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout],tRe=["OPTIONS","GET","DELETE","HEAD"],rRe=10,sRe=5,qi=class t extends Error{static{o(this,"HttpClientError")}constructor(e,r) Line truncated
${ARe.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),$v=w(require("node:zlib"),1),l6=require("node:stream");var yn=Uh("ts-http-runtime");var pRe={};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}},Wv=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=gRe(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=fRe(u),p={status:u.statusCode??0,headers:d,request:e};if(e.method==="HEAD")return u.resume(),p;l=a?hRe(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 mRe(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??pRe,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 fRe(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(fRe,"getResponseHeaders");function hRe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=$v.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=$v.default.createInflate();return t.pipe(s),s}return t}o(hRe,"getDecodedResponseStream");function mRe(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(mRe,"streamToText");function gRe(t){return t?Buffer.isBuffer(t)?t.length:qh(t)?nul Line truncated
`;return e}o($Te,"encodeHeaders");function WTe(t){return t instanceof Uint8Array?t.byteLength:RI(t)?t.size===-1?void 0:t.size:void 0}o(WTe,"getLength");function jTe(t){let e=0;for(let r of t){let s=WTe(r);if(s===void 0)return;e+=s}return e}o(jTe,"getTotalLength");async function KTe(t,e,r){let s=[is(`--${r}`,"utf-8"),...e.flatMap(i=>[is(`\r
`,"utf-8"),is($Te(i.headers),"utf-8"),is(`\r
`,"utf-8"),i.body,is(`\r
--${r}`,"utf-8")]),is(`--\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=jTe(s);n&&t.headers.set("Content-Length",n),t.body=await f9(s)}o(KTe,"buildRequestBody");var Vh="multipartPolicy",XTe=70,ZTe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function eve(t){if(t.length>XTe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ZTe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(eve,"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?eve(r):r=YTe(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await KTe(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"}),uot=h9.logger;function zi(t){return h9.createClientLogger(t)}o(zi,"createClientLogger");var Ji=zi("core-rest-pipeline");function fP(t={}){return aI({logger:Ji.info,...t})}o(fP,"logPolicy");var hP=cI;function mP(t={}){return lI(t)}o(mP,"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 cve(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(cve,"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=cve(e);return t?`${t} ${r}`:r}o(OI,"getUserAgentValue");var y9=E9(),C9="userAgentPolicy";function gP(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(gP,"userAgentPolicy");var zs=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function EP(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(EP,"createAbortablePromise");var pve="The delay was aborted.";function zh(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return EP(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??pve})}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 De=ql;var B9=Symbol("rawContent");function CP(t){return typeof t[B9]=="function"}o(CP,"hasRawContent");function b9(t){return CP(t)?t[B9]():t}o(b9,"getRawContent");var MI=Vh;function IP(){let t=vI();return{name:MI,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)CP(s.body)&&(s.body=b9(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(IP,"multipartPolicy");var BP=uI;function bP(){return dI()}o(bP,"decompressResponsePolicy");function wP(t={}){return fI(t)}o(wP,"defaultRetryPolicy");function SP(){return hI()}o(SP,"formDataPolicy");function Ec(t){return lP(t)}o(Ec,"getDefaultProxySettings");function NP(t,e){return NI(t,e)}o(NP,"proxyPolicy");var w9="setClientRequestIdPolicy";function xP(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(xP,"setClientRequestIdPolicy");function QP(t){return xI(t)}o(QP,"agentPolicy");function RP(t){return QI(t)}o(RP,"tlsPolicy");var AA={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function S9(t={}){let e=new TP(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 TP=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--),!MPe(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=PPe(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=DPe(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 TPe='"',vPe="'";function PPe(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===TPe||t[e]===vPe)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(PPe,"readAttributeStr");var _Pe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cK(t,e){let r=$I(t,_Pe),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(!OPe(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 kPe(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(kPe,"validateNumberAmpersand");function DPe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,kPe(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(DPe,"validateAmpersand");function Pt(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(Pt,"getErrorObject");function OPe(t){return $P(t)}o(OPe,"validateAttrName");function MPe(t){return $P(t)}o(MPe,"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=r_(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=s_(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=s_(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}=r_(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=o_e(p),A!==e.tagname&&this.matcher.push(A,{},b),A!==f&&m&&(C=this.buildAttributesMap(f,this.matcher,A),C&&(I=i_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 me=this.readStopNodeData(t,p,g+1);if(!me)throw new Error(`Unexpected end of ${p}`);c=me.i,Q=me.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}=r_(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 A_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(A_e,"addChild");function p_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(p_e,"replaceEntitiesValue");function f_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(f_e,"saveTextToParentTag");function h_e(){return this.stopNodeExpressionsLine truncated
`;function w_e(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(l_(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(w_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 c_(t,e){let r="";e.format&&(r=b_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=w_e(t,e),i=new Wi;return PK(t,e,r,i,s,n)}o(c_,"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=a_(l,e),l}return""}for(let l=0;l<t.length;l++){let u=t[l],d=l_(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=S_e(u[":@"],e);s.push(p,f);let m=x_e(s,n);if(p===e.textNodeName){let I=u[d];m||(I=e.tagValueProcessor(p,I),I=a_(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 S_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(S_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=l_(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=N_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 N_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(N_e,"attr_to_str_raw");function l_(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(l_,"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=a_(u,e)),u===!0&&e.suppressBooleanAttributes?i+=` ${l}`:i+=` ${l}="${Ic(u)}"`}return i}o(TK,"attr_to_str");function x_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(x_e,"checkStopNode");function a_(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(a_,"replaceEntitiesValue");function u_(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(u_,"getIgnoreAttributesFn");var Q_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({},Q_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
`,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(ds,"Builder");function R_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(R_e,"detectXmlVersionFromObj");function d_(t,e,r,s,n){return!r.sanitizeName||Jl(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(d_,"resolveTagName");ds.prototype.build=function(t){if(this.options.preserveOrder)return c_(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wi,r=R_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:d_(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=d_(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=d_(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 T_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(T_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.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
${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},F_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,F_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 U_e="storageBrowserPolicy";function GK(){return{name:U_e,async sendRequest(t,e){return De||((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 q_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:q_e,async sendRequest(e,r){return t(e),r(e)}}}o(HK,"storageCorrectContentLengthPolicy");var G_e="storageRetryPolicy",yA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:bn.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},H_e=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],V_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
`)+`
`+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
${A}:${decodeURIComponent(u[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:z_e,async sendRequest(i,a){return e(i),a(i)}}}o(m_,"storageSharedKeyCredentialPolicy");var J_e="storageRequestFailureDetailsParserPolicy";function JK(){return{name:J_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="",g_="*",Y_e=1*1024*1024;var $_e=4*Y_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 W_e(t){let e=[j_e,tX,K_e,X_e,Z_e,eke,rke];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>tke(n));return{wrappedPolicies:JP(r),afterRetry:s}}}}o(W_e,"processDownlevelPipeline");function E_(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?YP(e):h_(),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:p_,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:BP}),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(WDe,"generateBlobSASQueryParameters20150405");function jDe(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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(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(jDe,"generateBlobSASQueryParameters20181109");function KDe(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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(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(KDe,"generateBlobSASQueryParameters20201206");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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(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(XDe,"generateBlobSASQueryParametersUDK20181109");function ZDe(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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(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(ZDe,"generateBlobSASQueryParametersUDK20200210");function eOe(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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(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(eOe,"generateBlobSASQueryParametersUDK20201206");function tOe(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?Oe(t.startsOn,!1):"",t.expiresOn?Oe(t.expiresOn,!1):"",su(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Oe(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Oe(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(tOe,"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
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 XOe=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())})},iM=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 XOe(this,void 0,void 0,function*(){var s;let n=new Ia(t),i=n.getBlockBlobClient(),a=new iM((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 ZOe(t){return t?t>=500:!0}o(ZOe,"isServerErrorStatusCode");function eMe(t){return t?[yt.BadGateway,yt.ServiceUnavailable,yt.GatewayTimeout].includes(t):!1}o(eMe,"isRetryableStatusCode");function tMe(t){return Ib(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(tMe,"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),!ZOe(p)))return A;if(p&&(f=eMe(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 tMe(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 rMe(t,e){return Qn(this,void 0,void 0,function*(){yield c7.promisify(a7.pipeline)(t.message,e)})}o(rMe,"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(lMe,"printCachesListForDiagnostics");function uM(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(uM,"downloadCache");function b7(t,e,r){return ps(this,void 0,void 0,function*(){let s=lM(),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 uMe(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(uMe,"uploadChunk");function dMe(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=oM(s),l=Dv("uploadConcurrency",c.uploadConcurrency),u=Dv("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 uMe(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(dMe,"uploadFile");function AMe(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(AMe,"commitCache");function dM(t,e,r,s){return ps(this,void 0,void 0,function*(){if(oM(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=lM();B("Upload cache"),yield dMe(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 AMe(i,t,a);if(!Bb(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}o(dM,"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 iL=w(Dt(),1),oL=w(Dt(),1),fee=w(Dt(),1),hee=w(Dt(),1),mee=w(Dt(),1);var rL=w(Dt(),1),sL=w(Dt(),1),dee=w(Dt(),1),Aee=w(Dt(),1),pee=w(Dt(),1);var nL=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?sL.UnknownFieldHandler.onRead:u)(this.typeName,i,c,l,d)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,rL.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,rL.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?sL.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},dw=new nL;var aL=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?oL.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 BL(r,"create");yield bL(s,t)})}o(SL,"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)}},NL="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 xL(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(xL,"checkKey");function QL(){return Lm()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(QL,"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=cM();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 xFe(n,i,a,c,l):yield NFe(n,i,a,c,l)})}o(bee,"restoreCache");function NFe(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)xL(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 uM(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 wL(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(NFe,"restoreCacheV1");function xFe(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)xL(p);let A="";try{let p=IL(),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 uM(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 wL(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(xFe,"restoreCacheV2");function RL(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),xL(n);let l=cM();return h7(l)?c==="v2"?yield RFe(s,n,i,a):yield QFe(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(RL,"saveCache");function QFe(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:me,delimiterDiscovered:Se,delimiterBufPrevious:Re,rawBuffer:ve,escapeIsQuote:ae}=this.state;if(!Se&&u){let Me;if(Re===void 0?Me=s:Re!==void 0&&s===void 0?Me=Re:Me=Buffer.concat([Re,s]),s=void 0,n||Me.length>u.size)this.options.delimiter=[Buffer.from(Yre(Me,this.options.delimiter_auto))],this.state.previousBuf=Me,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Me;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(me===!1)if(c===!1)this.state.bomSkipped=!0;else if(ue.length<3){if(n===!1){this.state.previousBuf=ue;return}}else{for(let Me in lp)if(lp[Me].compare(ue,0,lp[Me].length)===0){let Bi=lp[Me].length;this.state.bufBytesStart+=Bi,ue=ue.slice(Bi);let Fa=cp({...this.original_options,encoding:Me});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 Me=ue[J];if(m===!0&&ve.append(Me),(Me===Y2e||Me===$2e)&&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,Me)&&J+N.length<vr)if(ae){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,Me)&&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 nq=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(nq!==void 0)return nq}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(Me,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,Me)!==0){this.state.commenting=!0;continue}let bi=this.__isDelimiter(ue,J,Me);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
`,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 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 PF.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 PF.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(_F.default.existsSync(e))return JSON.parse(_F.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 MF=w(ise(),1),ose=w(Hd(),1);var aqe=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 MF.HttpClient().getAgent(t)}o(cse,"getProxyAgent");function cqe(t){return new MF.HttpClient().getAgentDispatcher(t)}o(cqe,"getProxyAgentDispatcher");function lse(t){let e=cqe(t);return o((s,n)=>aqe(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 LF(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(LF,"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 uqe(){let t=Symbol("Singular"),e={registry:{}},r=A0.bind(null,e,t);return hse(r,e,t),r}o(uqe,"Singular");function dqe(){let t={registry:{}},e=A0.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(_qe,"_buildMessageForResponseErrors");var kqe=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(_qe(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},Dqe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Oqe=["query","method","url"],Dse=/\/api\/v3\/?$/;function Mqe(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(Oqe.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)=>Dqe.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 kqe(n,c,a.data)}return a.data.data})}o(Mqe,"graphql");function VF(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>Mqe(r,n,i),"newApi"),{defaults:VF.bind(null,r),endpoint:r.endpoint})}o(VF,"withDefaults");var ext=VF(bg,{headers:{"user-agent":`octokit-graphql.js/${Pqe} ${kc()}`},method:"POST",url:"/graphql"});function Ose(t){return VF(t,{method:"POST",url:"/graphql"})}o(Ose,"withCustomRequest");var zF="(?:[a-zA-Z0-9_-]+)",Mse="\\.",Lse=new RegExp(`^${zF}${Mse}${zF}${Mse}${zF}$`),Lqe=Lse.test.bind(Lse);async function Fqe(t){let e=Lqe(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(Fqe,"auth");function Uqe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(Uqe,"withAuthorizationPrefix");async function qqe(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=Uqe(t),e(n)}o(qqe,"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(Fqe.bind(null,e),{hook:qqe.bind(null,e)})},"createTokenAuth2");var JF="7.0.6";var Use=o(()=>{},"noop"),Gqe=console.warn.bind(console),Hqe=console.error.bind(console);function Vqe(t={}){return typeof t.debug!="function"&&(t.debug=Use),typeof t.info!="function"&&(t.info=Use),typeof t.warn!="function"&&(t.warn=Gqe),typeof t.error!="function"&&(t.error=Hqe),t}o(Vqe,"createLogger");var qse=`octokit-core.js/${JF} ${kc()}`,m0=class{static{o(this,"Octokit")}static VERSION=JF;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=Vqe(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 YF="17.0.0";var zqe={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),w1=w(require("path"),1);var k0=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new qe,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 w1.default.join(Pe.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Qu.default.existsSync(e))return Qu.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return w1.default.join(Pe.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=Pe.tmpName({tmpdir:Pe.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 S1=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 qe,this.metadataFilename=`bake-metadata-${st.generateRandomString()}.json`}getMetadataFilePath(){return Vie.default.join(Pe.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!S1.default.existsSync(e))return;let r=S1.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: ${qe.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
`)[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
`).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(_1(),1),ale=w($U(),1),$p=w(tle(),1);var sle=require("util");var K2=w(_1(),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===K2.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===K2.BUNDLE_V03_MEDIA_TYPE&&(n=l),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var X2=w(require("fs"),1);var fN=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new qe}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=Pe.tmpName({tmpdir:Pe.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(!X2.default.existsSync(s))return;let l=X2.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(`
`);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(`
@@ -153,9 +153,9 @@ ${f}`)}else throw new Error(`Cosign sign command failed with: ${ws.getErrorMessa
${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(`
`);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: ${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=Pe.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Pe.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
`)){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 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=Pe.tmpName({tmpdir:Pe.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 qe}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}}",`${qe.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),eq=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=eq.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||Pe.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
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -199,7 +199,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 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 qe,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=tq.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(Pe.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: ${qe.getErrorMessage(A.stderr)}`);return`${c}/cosign`}),d=await i.save(u,s);return S(`Cached to ${d}`),d}async install(e,r){r=r||Pe.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 qe({standalone:!0}).isAvailable(),n=await new qe({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 qe({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 tq.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
/*! Bundled license information:
undici/lib/web/fetch/body.js:
Generated Vendored
+3 -3
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+1 -1
View File
@@ -3289,7 +3289,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm packages may be included in this product:
- brace-expansion@1.1.18
- brace-expansion@1.1.21
- brace-expansion@2.1.1
These packages each contain the following license: