[dependabot skip] chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-07-02 08:41:54 +00:00
1 parent 8128ce30ab
commit 2b9fe830ef
3 files changed
+163 -884

No files matched your search

Generated Vendored
+132 -197
View File
@@ -1,193 +1,169 @@
var PKe=Object.create;var SB=Object.defineProperty;var QKe=Object.getOwnPropertyDescriptor;var kKe=Object.getOwnPropertyNames;var UKe=Object.getPrototypeOf,GKe=Object.prototype.hasOwnProperty;var o=(t,e)=>SB(t,"name",{value:e,configurable:!0});var HKe=(t,e)=>()=>(t&&(e=t(t=0)),e);var b=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lne=(t,e)=>{for(var r in e)SB(t,r,{get:e[r],enumerable:!0})},XKe=(t,e,r,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of kKe(e))!GKe.call(t,n)&&n!==r&&SB(t,n,{get:()=>e[n],enumerable:!(s=QKe(e,n))||s.enumerable});return t};var _=(t,e,r)=>(r=t!=null?PKe(UKe(t)):{},XKe(e||!t||!t.__esModule?SB(r,"default",{value:t,enumerable:!0}):r,t));var Xne=b(Ih=>{"use strict";var Cd0=require("net"),KKe=require("tls"),Z_=require("http"),Une=require("https"),ZKe=require("events"),Bd0=require("assert"),eZe=require("util");Ih.httpOverHttp=tZe;Ih.httpsOverHttp=rZe;Ih.httpOverHttps=sZe;Ih.httpsOverHttps=nZe;function tZe(t){var e=new qu(t);return e.request=Z_.request,e}o(tZe,"httpOverHttp");function rZe(t){var e=new qu(t);return e.request=Z_.request,e.createSocket=Gne,e.defaultPort=443,e}o(rZe,"httpsOverHttp");function sZe(t){var e=new qu(t);return e.request=Une.request,e}o(sZe,"httpOverHttps");function nZe(t){var e=new qu(t);return e.request=Une.request,e.createSocket=Gne,e.defaultPort=443,e}o(nZe,"httpsOverHttps");function qu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||Z_.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",o(function(s,n,i,a){for(var c=Hne(n,i,a),u=0,p=e.requests.length;u<p;++u){var l=e.requests[u];if(l.host===c.host&&l.port===c.port){e.requests.splice(u,1),l.request.onSocket(s);return}}s.destroy(),e.removeSocket(s)},"onFree"))}o(qu,"TunnelingAgent");eZe.inherits(qu,ZKe.EventEmitter);qu.prototype.addRequest=o(function(e,r,s,n){var i=this,a=eW({request:e},i.options,Hne(r,s,n));if(i.sockets.length>=this.maxSockets){i.requests.push(a);return}i.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){i.emit("free",c,a)}o(u,"onFree");function p(l){i.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}o(p,"onCloseOrRemove")})},"addRequest");qu.prototype.createSocket=o(function(e,r){var s=this,n={};s.sockets.push(n);var i=eW({},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")),Dl("making CONNECT request");var a=s.request(i);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",l),a.end();function c(A){A.upgrade=!0}o(c,"onResponse");function u(A,d,h){process.nextTick(function(){p(A,d,h)})}o(u,"onUpgrade");function p(A,d,h){if(a.removeAllListeners(),d.removeAllListeners(),A.statusCode!==200){Dl("tunneling socket could not be established, statusCode=%d",A.statusCode),d.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(h.length>0){Dl("got illegal response body from proxy"),d.destroy();var M=new Error("got illegal response body from proxy");M.code="ECONNRESET",e.request.emit("error",M),s.removeSocket(n);return}return Dl("tunneling connection has established"),s.sockets[s.sockets.indexOf(n)]=d,r(d)}o(p,"onConnect");function l(A){a.removeAllListeners(),Dl(`tunneling socket could not be established, cause=%s
`,A.message,A.stack);var d=new Error("tunneling socket could not be established, cause="+A.message);d.code="ECONNRESET",e.request.emit("error",d),s.removeSocket(n)}o(l,"onError")},"createSocket");qu.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 Gne(t,e){var r=this;qu.prototype.createSocket.call(r,t,function(s){var n=t.request.getHeader("host"),i=eW({},r.options,{socket:s,servername:n?n.replace(/:.*$/,""):t.host}),a=KKe.connect(0,i);r.sockets[r.sockets.indexOf(s)]=a,e(a)})}o(Gne,"createSecureSocket");function Hne(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}o(Hne,"toOptions");function eW(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(eW,"mergeOptions");var Dl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Dl=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"):Dl=o(function(){},"debug");Ih.debug=Dl});var gz=b((Id0,Vne)=>{Vne.exports=Xne()});var E0=b((Rd0,$ne)=>{$ne.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 It=b((wd0,gie)=>{"use strict";var jne=Symbol.for("undici.error.UND_ERR"),y0=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[jne]===!0}[jne]=!0},Yne=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tW=class extends y0{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[Yne]===!0}[Yne]=!0},Jne=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rW=class extends y0{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[Jne]===!0}[Jne]=!0},Kne=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),sW=class extends y0{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[Kne]===!0}[Kne]=!0},Zne=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),nW=class extends y0{static{o(this,"BodyTimeoutError")}constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}o(Noe,"isValidHeaderValue");function Ett(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(ott.has(a)){n=a;break}}n!==""&&(t.referrerPolicy=n)}o(Ett,"setRequestReferrerPolicyOnRedirect");function ytt(){return"allowed"}o(ytt,"crossOriginResourcePolicyCheck");function Ctt(){return"success"}o(Ctt,"corsCheck");function Btt(){return"success"}o(Btt,"TAOCheck");function Dtt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}o(Dtt,"appendFetchMetadata");function qtt(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&&JW(t.origin)&&!JW(Iz(t))&&(e=null);break;case"same-origin":rD(t,Iz(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}o(qtt,"appendRequestOriginHeader");function Wh(t,e){return t}o(Wh,"coarsenTime");function Itt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Wh(t.domainLookupStartTime,r),domainLookupEndTime:Wh(t.domainLookupEndTime,r),connectionStartTime:Wh(t.connectionStartTime,r),connectionEndTime:Wh(t.connectionEndTime,r),secureConnectionStartTime:Wh(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}o(Itt,"clampAndCoarsenConnectionTimingInfo");function Rtt(t){return Wh(ltt.now(),t)}o(Rtt,"coarsenedSharedCurrentTime");function wtt(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(wtt,"createOpaqueTimingInfo");function Foe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}o(Foe,"makePolicyContainer");function Stt(t){return{referrerPolicy:t.referrerPolicy}}o(Stt,"clonePolicyContainer");function Ntt(t){let e=t.referrerPolicy;Cd(e);let r=null;if(t.referrer==="client"){let c=qoe();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let s=YW(r),n=YW(r,!0);s.toString().length>4096&&(s=n);let i=rD(t,s),a=qz(s)&&!qz(t.url);switch(e){case"origin":return n??YW(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=Iz(t);return rD(s,c)?s:qz(s)&&!qz(c)?"no-referrer":n}default:return a?"no-referrer":n}}o(Ntt,"determineRequestsReferrer");function YW(t,e){return Cd(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(YW,"stripURLForReferrer");function qz(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(qz,"isURLPotentiallyTrustworthy");function Ftt(t,e){if(tD===void 0)return!0;let r=voe(e);if(r==="no metadata"||r.length===0)return!0;let s=Ttt(r),n=xtt(r,s);for(let i of n){let a=i.algo,c=i.hash,u=tD.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),_tt(u,c))return!0}return!1}o(Ftt,"bytesMatch");var vtt=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function voe(t){let e=[],r=!0;for(let s of t.split(" ")){r=!1;let n=vtt.exec(s);if(n===null||n.groups===void 0||n.groups.algo===void 0)continue;let i=n.groups.algo.toLowerCase();Roe.includes(i)&&e.push(n.groups)}return r===!0?"no metadata":e}o(voe,"parseMetadata");function Ttt(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(Ttt,"getStrongestMetadata");function xtt(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(xtt,"filterMetadataListByAlgorithm");function _tt(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(_tt,"compareBase64Mixed");function Wtt(t){}o(Wtt,"tryUpgr Line truncated
`);function z0t(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}o(z0t,"isAsciiString");function O0t(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(O0t,"validateBoundary");function E0t(t,e){nD(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&&iD(t,M0t,i)||i.position===t.length-4&&iD(t,g0t,i))return n;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let c=y0t(t,i);if(c==="failure")return"failure";let{name:u,filename:p,contentType:l,encoding:A}=c;i.position+=2;let d;{let M=t.indexOf(s.subarray(2),i.position);if(M===-1)return"failure";d=t.subarray(i.position,M-4),i.position+=d.length,A==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;p!==null?(l??="text/plain",z0t(l)||(l=""),h=new b0t([d],p,{type:l})):h=l0t(Buffer.from(d)),nD(Voe(u)),nD(typeof h=="string"&&Voe(h)||d0t(h)),n.push(f0t(u,h,p))}}o(E0t,"multipartFormDataParser");function y0t(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=Ph(c=>c!==10&&c!==13&&c!==58,t,e);if(a=nL(a,!0,!0,c=>c===9||c===32),!A0t.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,Ph(c=>c===32||c===9,t,e),p0t(a)){case"content-disposition":{if(r=s=null,!iD(t,m0t,e)||(e.position+=17,r=Yoe(t,e),r===null))return"failure";if(iD(t,joe,e)){let c=e.position+joe.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,s=Yoe(t,e),s===null))return"failure"}break}case"content-type":{let c=Ph(u=>u!==10&&u!==13,t,e);c=nL(c,!1,!0,u=>u===9||u===32),n=$oe(c);break}case"content-transfer-encoding":{let c=Ph(u=>u!==10&&u!==13,t,e);c=nL(c,!1,!0,u=>u===9||u===32),i=$oe(c);break}default:Ph(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}o(y0t,"parseMultipartFormDataHeaders");function Yoe(t,e){nD(t[e.position-1]===34);let r=Ph(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(Yoe,"parseMultipartFormDataName");function Ph(t,e,r){let s=r.position;for(;s<e.length&&t(e[s]);)++s;return e.subarray(r.position,r.position=s)}o(Ph,"collectASequenceOfBytes");function nL(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(nL,"removeChars");function iD(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(iD,"bufferStartsWith");Joe.exports={multipartFormDataParser:E0t,validateBoundary:O0t}});var Uh=b((b20,cae)=>{"use strict";var Sz=lt(),{ReadableStreamFrom:C0t,isBlobLike:Zoe,isReadableStreamLike:B0t,readableStreamClose:D0t,createDeferredPromise:q0t,fullyReadBody:I0t,extractMimeType:R0t,utf8DecodeBytes:rae}=Fn(),{FormData:eae}=wz(),{kState:kh}=ql(),{webidl:w0t}=br(),{Blob:S0t}=require("node:buffer"),iL=require("node:assert"),{isErrored:sae,isDisturbed:N0t}=require("node:stream"),{isArrayBuffer:F0t}=require("node:util/types"),{serializeAMimeType:v0t}=Vs(),{multipartFormDataParser:T0t}=Koe(),oL;try{let t=require("node:crypto");oL=o(e=>t.randomInt(0,e),"random")}catch{oL=o(t=>Math.floor(Math.random(t)),"random")}var oD=new TextEncoder;function x0t(){}o(x0t,"noop");var nae=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,iae;nae&&(iae=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!N0t(e)&&!sae(e)&&e.cancel("Response object has been garbage collected").catch(x0t)}));function oae(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Zoe(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof n=="string"?oD.encode(n):n;p.byteLength&&u.enqueue(p),queueMicrotask(()=>D0t(u))},start(){},type:"bytes"}),iL(B0t(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(F0t(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(Sz.isFormDataLike(t)){let u=`----formdata-undici-0${`${oL(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let l=o(C=>C.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),A=o(C=>C.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),d=[],h=new Uint8Array([13,10]);i=0;let M=!1;for(let[C,E]of t)if(typeof E=="string"){let B=oD.encode(p+`; name="${l(A(C))}"\r
var aIe=Object.create;var cz=Object.defineProperty;var cIe=Object.getOwnPropertyDescriptor;var uIe=Object.getOwnPropertyNames;var pIe=Object.getPrototypeOf,AIe=Object.prototype.hasOwnProperty;var i=(t,e)=>cz(t,"name",{value:e,configurable:!0});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),lIe=(t,e)=>{for(var r in e)cz(t,r,{get:e[r],enumerable:!0})},dIe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of uIe(e))!AIe.call(t,o)&&o!==r&&cz(t,o,{get:()=>e[o],enumerable:!(n=cIe(e,o))||n.enumerable});return t};var w=(t,e,r)=>(r=t!=null?aIe(pIe(t)):{},dIe(e||!t||!t.__esModule?cz(r,"default",{value:t,enumerable:!0}):r,t));var P9=m(pA=>{"use strict";var G40=require("net"),zIe=require("tls"),YD=require("http"),L9=require("https"),OIe=require("events"),H40=require("assert"),gIe=require("util");pA.httpOverHttp=EIe;pA.httpsOverHttp=CIe;pA.httpOverHttps=yIe;pA.httpsOverHttps=BIe;function EIe(t){var e=new zi(t);return e.request=YD.request,e}i(EIe,"httpOverHttp");function CIe(t){var e=new zi(t);return e.request=YD.request,e.createSocket=Q9,e.defaultPort=443,e}i(CIe,"httpsOverHttp");function yIe(t){var e=new zi(t);return e.request=L9.request,e}i(yIe,"httpOverHttps");function BIe(t){var e=new zi(t);return e.request=L9.request,e.createSocket=Q9,e.defaultPort=443,e}i(BIe,"httpsOverHttps");function zi(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||YD.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",i(function(n,o,s,a){for(var c=_9(o,s,a),u=0,p=e.requests.length;u<p;++u){var A=e.requests[u];if(A.host===c.host&&A.port===c.port){e.requests.splice(u,1),A.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)},"onFree"))}i(zi,"TunnelingAgent");gIe.inherits(zi,OIe.EventEmitter);zi.prototype.addRequest=i(function(e,r,n,o){var s=this,a=JD({request:e},s.options,_9(r,n,o));if(s.sockets.length>=this.maxSockets){s.requests.push(a);return}s.createSocket(a,function(c){c.on("free",u),c.on("close",p),c.on("agentRemove",p),e.onSocket(c);function u(){s.emit("free",c,a)}i(u,"onFree");function p(A){s.removeSocket(c),c.removeListener("free",u),c.removeListener("close",p),c.removeListener("agentRemove",p)}i(p,"onCloseOrRemove")})},"addRequest");zi.prototype.createSocket=i(function(e,r){var n=this,o={};n.sockets.push(o);var s=JD({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(s.localAddress=e.localAddress),s.proxyAuth&&(s.headers=s.headers||{},s.headers["Proxy-Authorization"]="Basic "+new Buffer(s.proxyAuth).toString("base64")),Na("making CONNECT request");var a=n.request(s);a.useChunkedEncodingByDefault=!1,a.once("response",c),a.once("upgrade",u),a.once("connect",p),a.once("error",A),a.end();function c(l){l.upgrade=!0}i(c,"onResponse");function u(l,b,f){process.nextTick(function(){p(l,b,f)})}i(u,"onUpgrade");function p(l,b,f){if(a.removeAllListeners(),b.removeAllListeners(),l.statusCode!==200){Na("tunneling socket could not be established, statusCode=%d",l.statusCode),b.destroy();var z=new Error("tunneling socket could not be established, statusCode="+l.statusCode);z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}if(f.length>0){Na("got illegal response body from proxy"),b.destroy();var z=new Error("got illegal response body from proxy");z.code="ECONNRESET",e.request.emit("error",z),n.removeSocket(o);return}return Na("tunneling connection has established"),n.sockets[n.sockets.indexOf(o)]=b,r(b)}i(p,"onConnect");function A(l){a.removeAllListeners(),Na(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var b=new Error("tunneling socket could not be established, cause="+l.message);b.code="ECONNRESET",e.request.emit("error",b),n.removeSocket(o)}i(A,"onError")},"createSocket");zi.prototype.removeSocket=i(function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(o){n.request.onSocket(o)})}},"removeSocket");function Q9(t,e){var r=this;zi.prototype.createSocket.call(r,t,function(n){var o=t.request.getHeader("host"),s=JD({},r.options,{socket:n,servername:o?o.replace(/:.*$/,""):t.host}),a=zIe.connect(0,s);r.sockets[r.sockets.indexOf(n)]=a,e(a)})}i(Q9,"createSecureSocket");function _9(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}i(_9,"toOptions");function JD(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var o=Object.keys(n),s=0,a=o.length;s<a;++s){var c=o[s];n[c]!==void 0&&(t[c]=n[c])}}return t}i(JD,"mergeOptions");var Na;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Na=i(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"):Na=i(function(){},"debug");pA.debug=Na});var Xd=m((Y40,k9)=>{k9.exports=P9()});var k0=m((J40,U9)=>{U9.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 i0=m((j40,bU)=>{"use strict";var G9=Symbol.for("undici.error.UND_ERR"),U0=class extends Error{static{i(this,"UndiciError")}constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[G9]===!0}[G9]=!0},H9=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),jD=class extends U0{static{i(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[H9]===!0}[H9]=!0},X9=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),$D=class extends U0{static{i(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[X9]===!0}[X9]=!0},V9=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),KD=class extends U0{static{i(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[V9]===!0}[V9]=!0},Y9=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),ZD=class extends U0{static{i(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}i(DG,"isValidHeaderValue");function PRe(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),o="";if(n.length>0)for(let s=n.length;s!==0;s--){let a=n[s-1].trim();if(BRe.has(a)){o=a;break}}o!==""&&(t.referrerPolicy=o)}i(PRe,"setRequestReferrerPolicyOnRedirect");function kRe(){return"allowed"}i(kRe,"crossOriginResourcePolicyCheck");function URe(){return"success"}i(URe,"corsCheck");function GRe(){return"success"}i(GRe,"TAOCheck");function HRe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}i(HRe,"appendFetchMetadata");function XRe(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&&XI(t.origin)&&!XI(tb(t))&&(e=null);break;case"same-origin":Fz(t,tb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}i(XRe,"appendRequestOriginHeader");function OA(t,e){return t}i(OA,"coarsenTime");function VRe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:OA(t.domainLookupStartTime,r),domainLookupEndTime:OA(t.domainLookupEndTime,r),connectionStartTime:OA(t.connectionStartTime,r),connectionEndTime:OA(t.connectionEndTime,r),secureConnectionStartTime:OA(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}i(VRe,"clampAndCoarsenConnectionTimingInfo");function YRe(t){return OA(NRe.now(),t)}i(YRe,"coarsenedSharedCurrentTime");function JRe(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}}i(JRe,"createOpaqueTimingInfo");function IG(){return{referrerPolicy:"strict-origin-when-cross-origin"}}i(IG,"makePolicyContainer");function jRe(t){return{referrerPolicy:t.referrerPolicy}}i(jRe,"clonePolicyContainer");function $Re(t){let e=t.referrerPolicy;tu(e);let r=null;if(t.referrer==="client"){let c=EG();if(!c||c.origin==="null")return"no-referrer";r=new URL(c)}else t.referrer instanceof URL&&(r=t.referrer);let n=HI(r),o=HI(r,!0);n.toString().length>4096&&(n=o);let s=Fz(t,n),a=eb(n)&&!eb(t.url);switch(e){case"origin":return o??HI(r,!0);case"unsafe-url":return n;case"same-origin":return s?o:"no-referrer";case"origin-when-cross-origin":return s?n:o;case"strict-origin-when-cross-origin":{let c=tb(t);return Fz(n,c)?n:eb(n)&&!eb(c)?"no-referrer":o}default:return a?"no-referrer":o}}i($Re,"determineRequestsReferrer");function HI(t,e){return tu(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)}i(HI,"stripURLForReferrer");function eb(t){if(!(t instanceof URL))return!1;if(t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="file:")return!0;return e(t.origin);function e(r){if(r==null||r==="null")return!1;let n=new URL(r);return!!(n.protocol==="https:"||n.protocol==="wss:"||/^127(?:\.[0-9]+){0,2}\.[0-9]+$|^\[(?:0*:)*?:?0*1\]$/.test(n.hostname)||n.hostname==="localhost"||n.hostname.includes("localhost.")||n.hostname.endsWith(".localhost"))}}i(eb,"isURLPotentiallyTrustworthy");function KRe(t,e){if(Sz===void 0)return!0;let r=RG(e);if(r==="no metadata"||r.length===0)return!0;let n=eNe(r),o=tNe(r,n);for(let s of o){let a=s.algo,c=s.hash,u=Sz.createHash(a).update(t).digest("base64");if(u[u.length-1]==="="&&(u[u.length-2]==="="?u=u.slice(0,-2):u=u.slice(0,-1)),rNe(u,c))return!0}return!1}i(KRe,"bytesMatch");var ZRe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function RG(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let o=ZRe.exec(n);if(o===null||o.groups===void 0||o.groups.algo===void 0)continue;let s=o.groups.algo.toLowerCase();yG.includes(s)&&e.push(o.groups)}return r===!0?"no metadata":e}i(RG,"parseMetadata");function eNe(t){let e=t[0].algo;if(e[3]==="5")return e;for(let r=1;r<t.length;++r){let n=t[r];if(n.algo[3]==="5"){e="sha512";break}else{if(e[3]==="3")continue;n.algo[3]==="3"&&(e="sha384")}}return e}i(eNe,"getStrongestMetadata");function tNe(t,e){if(t.length===1)return t;let r=0;for(let n=0;n<t.length;++n)t[n].algo===e&&(t[r++]=t[n]);return t.length=r,t}i(tNe,"filterMetadataListByAlgorithm");function rNe(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}i(rNe,"compareBase64Mixed");function nNe(t){}i(nNe,"tryUpgradeReque Line truncated
`);function QNe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}i(QNe,"isAsciiString");function _Ne(t){let e=t.length;if(e<27||e>70)return!1;for(let r=0;r<e;++r){let n=t.charCodeAt(r);if(!(n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122||n===39||n===45||n===95))return!1}return!0}i(_Ne,"validateBoundary");function PNe(t,e){xz(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),o=[],s={position:0};for(;t[s.position]===13&&t[s.position+1]===10;)s.position+=2;let a=t.length;for(;t[a-1]===10&&t[a-2]===13;)a-=2;for(a!==t.length&&(t=t.subarray(0,a));;){if(t.subarray(s.position,s.position+n.length).equals(n))s.position+=n.length;else return"failure";if(s.position===t.length-2&&Tz(t,vNe,s)||s.position===t.length-4&&Tz(t,LNe,s))return o;if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let c=kNe(t,s);if(c==="failure")return"failure";let{name:u,filename:p,contentType:A,encoding:l}=c;s.position+=2;let b;{let z=t.indexOf(n.subarray(2),s.position);if(z===-1)return"failure";b=t.subarray(s.position,z-4),s.position+=b.length,l==="base64"&&(b=Buffer.from(b.toString(),"base64"))}if(t[s.position]!==13||t[s.position+1]!==10)return"failure";s.position+=2;let f;p!==null?(A??="text/plain",QNe(A)||(A=""),f=new xNe([b],p,{type:A})):f=NNe(Buffer.from(b)),xz(kG(u)),xz(typeof f=="string"&&kG(f)||SNe(f)),o.push(FNe(u,f,p))}}i(PNe,"multipartFormDataParser");function kNe(t,e){let r=null,n=null,o=null,s=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:o,encoding:s};let a=EA(c=>c!==10&&c!==13&&c!==58,t,e);if(a=ZI(a,!0,!0,c=>c===9||c===32),!wNe.test(a.toString())||t[e.position]!==58)return"failure";switch(e.position++,EA(c=>c===32||c===9,t,e),RNe(a)){case"content-disposition":{if(r=n=null,!Tz(t,TNe,e)||(e.position+=17,r=HG(t,e),r===null))return"failure";if(Tz(t,GG,e)){let c=e.position+GG.length;if(t[c]===42&&(e.position+=1,c+=1),t[c]!==61||t[c+1]!==34||(e.position+=12,n=HG(t,e),n===null))return"failure"}break}case"content-type":{let c=EA(u=>u!==10&&u!==13,t,e);c=ZI(c,!1,!0,u=>u===9||u===32),o=UG(c);break}case"content-transfer-encoding":{let c=EA(u=>u!==10&&u!==13,t,e);c=ZI(c,!1,!0,u=>u===9||u===32),s=UG(c);break}default:EA(c=>c!==10&&c!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}i(kNe,"parseMultipartFormDataHeaders");function HG(t,e){xz(t[e.position-1]===34);let r=EA(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}i(HG,"parseMultipartFormDataName");function EA(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}i(EA,"collectASequenceOfBytes");function ZI(t,e,r,n){let o=0,s=t.length-1;if(e)for(;o<t.length&&n(t[o]);)o++;if(r)for(;s>0&&n(t[s]);)s--;return o===0&&s===t.length-1?t:t.subarray(o,s+1)}i(ZI,"removeChars");function Tz(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}i(Tz,"bufferStartsWith");XG.exports={multipartFormDataParser:PNe,validateBoundary:_Ne}});var BA=m((TB0,nH)=>{"use strict";var ob=He(),{ReadableStreamFrom:UNe,isBlobLike:YG,isReadableStreamLike:GNe,readableStreamClose:HNe,createDeferredPromise:XNe,fullyReadBody:VNe,extractMimeType:YNe,utf8DecodeBytes:$G}=Ir(),{FormData:JG}=nb(),{kState:yA}=wa(),{webidl:JNe}=st(),{Blob:jNe}=require("node:buffer"),e5=require("node:assert"),{isErrored:KG,isDisturbed:$Ne}=require("node:stream"),{isArrayBuffer:KNe}=require("node:util/types"),{serializeAMimeType:ZNe}=Zt(),{multipartFormDataParser:ewe}=VG(),t5;try{let t=require("node:crypto");t5=i(e=>t.randomInt(0,e),"random")}catch{t5=i(t=>Math.floor(Math.random(t)),"random")}var vz=new TextEncoder;function twe(){}i(twe,"noop");var ZG=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,eH;ZG&&(eH=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!$Ne(e)&&!KG(e)&&e.cancel("Response object has been garbage collected").catch(twe)}));function tH(t,e=!1){let r=null;t instanceof ReadableStream?r=t:YG(t)?r=t.stream():r=new ReadableStream({async pull(u){let p=typeof o=="string"?vz.encode(o):o;p.byteLength&&u.enqueue(p),queueMicrotask(()=>HNe(u))},start(){},type:"bytes"}),e5(GNe(r));let n=null,o=null,s=null,a=null;if(typeof t=="string")o=t,a="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)o=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(KNe(t))o=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))o=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(ob.isFormDataLike(t)){let u=`----formdata-undici-0${`${t5(1e11)}`.padStart(11,"0")}`,p=`--${u}\r
Content-Disposition: form-data`;let A=i(y=>y.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),"escape"),l=i(y=>y.replace(/\r?\n|\r/g,`\r
`),"normalizeLinefeeds"),b=[],f=new Uint8Array([13,10]);s=0;let z=!1;for(let[y,E]of t)if(typeof E=="string"){let B=vz.encode(p+`; name="${A(l(y))}"\r
\r
${A(E)}\r
`);d.push(B),i+=B.byteLength}else{let B=oD.encode(`${p}; name="${l(A(C))}"`+(E.name?`; filename="${l(E.name)}"`:"")+`\r
${l(E)}\r
`);b.push(B),s+=B.byteLength}else{let B=vz.encode(`${p}; name="${A(l(y))}"`+(E.name?`; filename="${A(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(B,E,h),typeof E.size=="number"?i+=B.byteLength+E.size+h.byteLength:M=!0}let z=oD.encode(`--${u}--\r
`);d.push(z),i+=z.byteLength,M&&(i=null),n=t,s=o(async function*(){for(let C of d)C.stream?yield*C.stream():yield C},"action"),a=`multipart/form-data; boundary=${u}`}else if(Zoe(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(Sz.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:C0t(t)}if((typeof n=="string"||Sz.isBuffer(n))&&(i=Buffer.byteLength(n)),s!=null){let u;r=new ReadableStream({async start(){u=s(t)[Symbol.asyncIterator]()},async pull(p){let{value:l,done:A}=await u.next();if(A)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!sae(r)){let d=new Uint8Array(l);d.byteLength&&p.enqueue(d)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:n,length:i},a]}o(oae,"extractBody");function _0t(t,e=!1){return t instanceof ReadableStream&&(iL(!Sz.isDisturbed(t),"The body has already been consumed."),iL(!t.locked,"The stream is locked.")),oae(t,e)}o(_0t,"safelyExtractBody");function W0t(t,e){let[r,s]=e.stream.tee();return e.stream=r,{stream:s,length:e.length,source:e.source}}o(W0t,"cloneBody");function L0t(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}o(L0t,"throwIfAborted");function P0t(t){return{blob(){return Qh(this,r=>{let s=tae(this);return s===null?s="":s&&(s=v0t(s)),new S0t([r],{type:s})},t)},arrayBuffer(){return Qh(this,r=>new Uint8Array(r).buffer,t)},text(){return Qh(this,rae,t)},json(){return Qh(this,k0t,t)},formData(){return Qh(this,r=>{let s=tae(this);if(s!==null)switch(s.essence){case"multipart/form-data":{let n=T0t(r,s);if(n==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new eae;return i[kh]=n,i}case"application/x-www-form-urlencoded":{let n=new URLSearchParams(r.toString()),i=new eae;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 Qh(this,r=>new Uint8Array(r),t)}}}o(P0t,"bodyMixinMethods");function Q0t(t){Object.assign(t.prototype,P0t(t))}o(Q0t,"mixinBody");async function Qh(t,e,r){if(w0t.brandCheck(t,r),aae(t))throw new TypeError("Body is unusable: Body has already been read");L0t(t[kh]);let s=q0t(),n=o(a=>s.reject(a),"errorSteps"),i=o(a=>{try{s.resolve(e(a))}catch(c){n(c)}},"successSteps");return t[kh].body==null?(i(Buffer.allocUnsafe(0)),s.promise):(await I0t(t[kh].body,i,n),s.promise)}o(Qh,"consumeBody");function aae(t){let e=t[kh].body;return e!=null&&(e.stream.locked||Sz.isDisturbed(e.stream))}o(aae,"bodyUnusable");function k0t(t){return JSON.parse(rae(t))}o(k0t,"parseJSONFromBytes");function tae(t){let e=t[kh].headersList,r=R0t(e);return r==="failure"?null:r}o(tae,"bodyMimeType");cae.exports={extractBody:oae,safelyExtractBody:_0t,cloneBody:W0t,mixinBody:Q0t,streamRegistry:iae,hasFinalizationRegistry:nae,bodyUnusable:aae}});var Cae=b((M20,yae)=>{"use strict";var ve=require("node:assert"),We=lt(),{channels:uae}=wh(),aL=kW(),{RequestContentLengthMismatchError:Bd,ResponseContentLengthMismatchError:pae,RequestAbortedError:Mae,HeadersTimeoutError:U0t,HeadersOverflowError:G0t,SocketError:Gh,InformationalError:Hh,BodyTimeoutError:H0t,HTTPParserError:X0t,ResponseExceededMaxSizeError:V0t}=It(),{kUrl:gae,kReset:$s,kClient:pD,kParser:A0,kBlocking:vz,kRunning:z1,kPending:zae,kSize:lae,kWriting:Il,kQueue:_o,kNoRef:Nz,kKeepAliveDefaultTimeout:$0t,kHostHeader:j0t,kPendingIdx:Y0t,kRunningIdx:qi,kError:is,kPipelining:lD,kSocket:qd,kKeepAliveTimeoutValue:dD,kMaxHeadersSize:cL,kKeepAliveMaxTimeout:J0t,kKeepAliveTimeoutThreshold:K0t,kHeadersTimeout:Z0t,kBodyTimeout:e1t,kStrictContentLength:lL,kMaxRequests:Aae,kCounter:t1t,kMaxResponseSize:r1t,kOnError:dae,kResume:Fu,kHTTPContext:Oae}=E0(),vn=ioe(),fae=Buffer.alloc(0),aD=Buffer[Symbol.species],cD=We.addListener,s1t=We.removeAllListeners,Id=Symbol("kIdleSocketValidation"),Dd=Symbol("kIdleSocketValidationTimeout"),hL=Symbol("kSocketUsed"),uL;async function n1t(){let t=process.env.JEST_WORKER_ID?HW():void 0,e;try{e=await WebAssembly.compile(coe())}catch{e=await WebAssembly.compile(t||HW())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:o((r,s,n)=>0,"wasm_on_url"),wasm_on_status:o((r,s,n)=>{ve(_0.ptr===r);let i=s-Fa+Na.byteOffset;return _0.onStatus(new aD(Na.buffer,i,n))||0},"wasm_on_status"),wasm_on_message_begin:o(r=>(ve(_0.ptr===r),_0.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:o((r,s,n)=>{ve(_0.ptr===r);let i=s-Fa+Na.byteOffset;return _0.onHeaderField(new aD(Na.buffer,i,n))||0},"wasm_on_header_field"),wasm_on_header_value:o((r,s,n)=>{ve(_0.ptr===r);let i=s-Fa+Na.byteOffset;return _0.onHeaderValue(new aD(Na.buffer,i,n))||0},"wasm_on_header_value"),wasm_on_headers_complete:o((r,s,n,i)=>(ve(_0.ptr===r),_0.onHeadersComplete(s,!!n,!!i)||0),"wasm_on_headers_complete"),wasm_on_body:o((r,s,n)=>{ve(_0.ptr===r);let i=s-Fa+Na.byteOf Line truncated
`;if(typeof n=="string"?z+=`host: ${n}\r
`:z+=t[j0t],i?z+=`connection: upgrade\r
upgrade: ${i}\r
`:t[lD]&&!h[$s]?z+=`connection: keep-alive\r
`:z+=`connection: close\r
`,Array.isArray(p))for(let C=0;C<p.length;C+=2){let E=p[C+0],B=p[C+1];if(Array.isArray(B))for(let I=0;I<B.length;I++)z+=`${E}: ${B[I]}\r
`;else z+=`${E}: ${B}\r
`}return uae.sendHeaders.hasSubscribers&&uae.sendHeaders.publish({request:e,headers:z,socket:h}),!u||d===0?bae(M,null,t,e,h,l,z,A):We.isBuffer(u)?bae(M,u,t,e,h,l,z,A):We.isBlobLike(u)?typeof u.stream=="function"?mae(M,u.stream(),t,e,h,l,z,A):A1t(M,u,t,e,h,l,z,A):We.isStream(u)?l1t(M,u,t,e,h,l,z,A):We.isIterable(u)?mae(M,u,t,e,h,l,z,A):ve(!1),!0}o(p1t,"writeH1");function l1t(t,e,r,s,n,i,a,c){ve(i!==0||r[z1]===0,"stream body cannot be pipelined");let u=!1,p=new fD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a}),l=o(function(M){if(!u)try{!p.write(M)&&this.pause&&this.pause()}catch(z){We.destroy(this,z)}},"onData"),A=o(function(){u||e.resume&&e.resume()},"onDrain"),d=o(function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!u){let M=new Mae;queueMicrotask(()=>h(M))}},"onClose"),h=o(function(M){if(!u){if(u=!0,ve(n.destroyed||n[Il]&&r[z1]<=1),n.off("drain",A).off("error",h),e.removeListener("data",l).removeListener("end",h).removeListener("close",d),!M)try{p.end()}catch(z){M=z}p.destroy(M),M&&(M.code!=="UND_ERR_INFO"||M.message!=="reset")?We.destroy(e,M):We.destroy(e)}},"onFinished");e.on("data",l).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),n.on("drain",A).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}o(l1t,"writeStream");function bae(t,e,r,s,n,i,a,c){try{e?We.isBuffer(e)&&(ve(i===e.byteLength,"buffer body must have content length"),n.cork(),n.write(`${a}content-length: ${i}\r
`);b.push(B,E,f),typeof E.size=="number"?s+=B.byteLength+E.size+f.byteLength:z=!0}let g=vz.encode(`--${u}--\r
`);b.push(g),s+=g.byteLength,z&&(s=null),o=t,n=i(async function*(){for(let y of b)y.stream?yield*y.stream():yield y},"action"),a=`multipart/form-data; boundary=${u}`}else if(YG(t))o=t,s=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(ob.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:UNe(t)}if((typeof o=="string"||ob.isBuffer(o))&&(s=Buffer.byteLength(o)),n!=null){let u;r=new ReadableStream({async start(){u=n(t)[Symbol.asyncIterator]()},async pull(p){let{value:A,done:l}=await u.next();if(l)queueMicrotask(()=>{p.close(),p.byobRequest?.respond(0)});else if(!KG(r)){let b=new Uint8Array(A);b.byteLength&&p.enqueue(b)}return p.desiredSize>0},async cancel(p){await u.return()},type:"bytes"})}return[{stream:r,source:o,length:s},a]}i(tH,"extractBody");function rwe(t,e=!1){return t instanceof ReadableStream&&(e5(!ob.isDisturbed(t),"The body has already been consumed."),e5(!t.locked,"The stream is locked.")),tH(t,e)}i(rwe,"safelyExtractBody");function nwe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}i(nwe,"cloneBody");function owe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}i(owe,"throwIfAborted");function swe(t){return{blob(){return CA(this,r=>{let n=jG(this);return n===null?n="":n&&(n=ZNe(n)),new jNe([r],{type:n})},t)},arrayBuffer(){return CA(this,r=>new Uint8Array(r).buffer,t)},text(){return CA(this,$G,t)},json(){return CA(this,awe,t)},formData(){return CA(this,r=>{let n=jG(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let o=ewe(r,n);if(o==="failure")throw new TypeError("Failed to parse body as FormData.");let s=new JG;return s[yA]=o,s}case"application/x-www-form-urlencoded":{let o=new URLSearchParams(r.toString()),s=new JG;for(let[a,c]of o)s.append(a,c);return s}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return CA(this,r=>new Uint8Array(r),t)}}}i(swe,"bodyMixinMethods");function iwe(t){Object.assign(t.prototype,swe(t))}i(iwe,"mixinBody");async function CA(t,e,r){if(JNe.brandCheck(t,r),rH(t))throw new TypeError("Body is unusable: Body has already been read");owe(t[yA]);let n=XNe(),o=i(a=>n.reject(a),"errorSteps"),s=i(a=>{try{n.resolve(e(a))}catch(c){o(c)}},"successSteps");return t[yA].body==null?(s(Buffer.allocUnsafe(0)),n.promise):(await VNe(t[yA].body,s,o),n.promise)}i(CA,"consumeBody");function rH(t){let e=t[yA].body;return e!=null&&(e.stream.locked||ob.isDisturbed(e.stream))}i(rH,"bodyUnusable");function awe(t){return JSON.parse($G(t))}i(awe,"parseJSONFromBytes");function jG(t){let e=t[yA].headersList,r=YNe(e);return r==="failure"?null:r}i(jG,"bodyMimeType");nH.exports={extractBody:tH,safelyExtractBody:rwe,cloneBody:nwe,mixinBody:iwe,streamRegistry:eH,hasFinalizationRegistry:ZG,bodyUnusable:rH}});var zH=m((LB0,hH)=>{"use strict";var be=require("node:assert"),me=He(),{channels:oH}=lA(),r5=vI(),{RequestContentLengthMismatchError:ru,ResponseContentLengthMismatchError:sH,RequestAbortedError:dH,HeadersTimeoutError:cwe,HeadersOverflowError:uwe,SocketError:qA,InformationalError:DA,BodyTimeoutError:pwe,HTTPParserError:Awe,ResponseExceededMaxSizeError:lwe}=i0(),{kUrl:bH,kReset:er,kClient:Pz,kParser:W0,kBlocking:ab,kRunning:I1,kPending:MH,kSize:iH,kWriting:Sa,kQueue:no,kNoRef:sb,kKeepAliveDefaultTimeout:dwe,kHostHeader:bwe,kPendingIdx:Mwe,kRunningIdx:An,kError:wt,kPipelining:kz,kSocket:ou,kKeepAliveTimeoutValue:Gz,kMaxHeadersSize:n5,kKeepAliveMaxTimeout:fwe,kKeepAliveTimeoutThreshold:mwe,kHeadersTimeout:hwe,kBodyTimeout:zwe,kStrictContentLength:i5,kMaxRequests:aH,kCounter:Owe,kMaxResponseSize:gwe,kOnError:cH,kResume:Bi,kHTTPContext:fH}=k0(),Rr=eG(),uH=Buffer.alloc(0),Lz=Buffer[Symbol.species],Qz=me.addListener,Ewe=me.removeAllListeners,su=Symbol("kIdleSocketValidation"),nu=Symbol("kIdleSocketValidationTimeout"),p5=Symbol("kSocketUsed"),o5;async function Cwe(){let t=process.env.JEST_WORKER_ID?_I():void 0,e;try{e=await WebAssembly.compile(nG())}catch{e=await WebAssembly.compile(t||_I())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:i((r,n,o)=>0,"wasm_on_url"),wasm_on_status:i((r,n,o)=>{be(r1.ptr===r);let s=n-Ho+Go.byteOffset;return r1.onStatus(new Lz(Go.buffer,s,o))||0},"wasm_on_status"),wasm_on_message_begin:i(r=>(be(r1.ptr===r),r1.onMessageBegin()||0),"wasm_on_message_begin"),wasm_on_header_field:i((r,n,o)=>{be(r1.ptr===r);let s=n-Ho+Go.byteOffset;return r1.onHeaderField(new Lz(Go.buffer,s,o))||0},"wasm_on_header_field"),wasm_on_header_value:i((r,n,o)=>{be(r1.ptr===r);let s=n-Ho+Go.byteOffset;return r1.onHeaderValue(new Lz(Go.buffer,s,o))||0},"wasm_on_header_value"),wasm_on_headers_complete:i((r,n,o,s)=>(be(r1.ptr===r),r1.onHeadersComplete(n,!!o,!!s)||0),"wasm_on_headers_complete"),wasm_on_body:i((r,n,o)=>{be(r1.ptr===r);let s=n-Ho+Go.byteOffset;return r1.onBody(new Lz(Go.bu Line truncated
`;if(typeof o=="string"?g+=`host: ${o}\r
`:g+=t[bwe],s?g+=`connection: upgrade\r
upgrade: ${s}\r
`:t[kz]&&!f[er]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(p))for(let y=0;y<p.length;y+=2){let E=p[y+0],B=p[y+1];if(Array.isArray(B))for(let q=0;q<B.length;q++)g+=`${E}: ${B[q]}\r
`;else g+=`${E}: ${B}\r
`}return oH.sendHeaders.hasSubscribers&&oH.sendHeaders.publish({request:e,headers:g,socket:f}),!u||b===0?AH(z,null,t,e,f,A,g,l):me.isBuffer(u)?AH(z,u,t,e,f,A,g,l):me.isBlobLike(u)?typeof u.stream=="function"?lH(z,u.stream(),t,e,f,A,g,l):wwe(z,u,t,e,f,A,g,l):me.isStream(u)?Nwe(z,u,t,e,f,A,g,l):me.isIterable(u)?lH(z,u,t,e,f,A,g,l):be(!1),!0}i(Rwe,"writeH1");function Nwe(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"stream body cannot be pipelined");let u=!1,p=new Hz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a}),A=i(function(z){if(!u)try{!p.write(z)&&this.pause&&this.pause()}catch(g){me.destroy(this,g)}},"onData"),l=i(function(){u||e.resume&&e.resume()},"onDrain"),b=i(function(){if(queueMicrotask(()=>{e.removeListener("error",f)}),!u){let z=new dH;queueMicrotask(()=>f(z))}},"onClose"),f=i(function(z){if(!u){if(u=!0,be(o.destroyed||o[Sa]&&r[I1]<=1),o.off("drain",l).off("error",f),e.removeListener("data",A).removeListener("end",f).removeListener("close",b),!z)try{p.end()}catch(g){z=g}p.destroy(z),z&&(z.code!=="UND_ERR_INFO"||z.message!=="reset")?me.destroy(e,z):me.destroy(e)}},"onFinished");e.on("data",A).on("end",f).on("error",f).on("close",b),e.resume&&e.resume(),o.on("drain",l).on("error",f),e.errorEmitted??e.errored?setImmediate(()=>f(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>f(null)),(e.closeEmitted??e.closed)&&setImmediate(b)}i(Nwe,"writeStream");function AH(t,e,r,n,o,s,a,c){try{e?me.isBuffer(e)&&(be(s===e.byteLength,"buffer body must have content length"),o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(e),n.uncork(),s.onBodySent(e),!c&&s.reset!==!1&&(n[$s]=!0)):i===0?n.write(`${a}content-length: 0\r
`,"latin1"),o.write(e),o.uncork(),n.onBodySent(e),!c&&n.reset!==!1&&(o[er]=!0)):s===0?o.write(`${a}content-length: 0\r
\r
`,"latin1"):(ve(i===null,"no body must not have content length"),n.write(`${a}\r
`,"latin1")),s.onRequestSent(),r[Fu]()}catch(u){t(u)}}o(bae,"writeBuffer");async function A1t(t,e,r,s,n,i,a,c){ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Bd;let u=Buffer.from(await e.arrayBuffer());n.cork(),n.write(`${a}content-length: ${i}\r
`,"latin1"):(be(s===null,"no body must not have content length"),o.write(`${a}\r
`,"latin1")),n.onRequestSent(),r[Bi]()}catch(u){t(u)}}i(AH,"writeBuffer");async function wwe(t,e,r,n,o,s,a,c){be(s===e.size,"blob body must have content length");try{if(s!=null&&s!==e.size)throw new ru;let u=Buffer.from(await e.arrayBuffer());o.cork(),o.write(`${a}content-length: ${s}\r
\r
`,"latin1"),n.write(u),n.uncork(),s.onBodySent(u),s.onRequestSent(),!c&&s.reset!==!1&&(n[$s]=!0),r[Fu]()}catch(u){t(u)}}o(A1t,"writeBlob");async function mae(t,e,r,s,n,i,a,c){ve(i!==0||r[z1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let d=u;u=null,d()}}o(p,"onDrain");let l=o(()=>new Promise((d,h)=>{ve(u===null),n[is]?h(n[is]):u=d}),"waitForDrain");n.on("close",p).on("drain",p);let A=new fD({abort:t,socket:n,request:s,contentLength:i,client:r,expectsPayload:c,header:a});try{for await(let d of e){if(n[is])throw n[is];A.write(d)||await l()}A.end()}catch(d){A.destroy(d)}finally{n.off("close",p).off("drain",p)}}o(mae,"writeIterable");var fD=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[Il]=!0}write(e){let{socket:r,request:s,contentLength:n,client:i,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[is])throw r[is];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(n!==null&&a+p>n){if(i[lL])throw new Bd;process.emitWarning(new Bd)}r.cork(),a===0&&(!c&&s.reset!==!1&&(r[$s]=!0),n===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${n}\r
`,"latin1"),o.write(u),o.uncork(),n.onBodySent(u),n.onRequestSent(),!c&&n.reset!==!1&&(o[er]=!0),r[Bi]()}catch(u){t(u)}}i(wwe,"writeBlob");async function lH(t,e,r,n,o,s,a,c){be(s!==0||r[I1]===0,"iterator body cannot be pipelined");let u=null;function p(){if(u){let b=u;u=null,b()}}i(p,"onDrain");let A=i(()=>new Promise((b,f)=>{be(u===null),o[wt]?f(o[wt]):u=b}),"waitForDrain");o.on("close",p).on("drain",p);let l=new Hz({abort:t,socket:o,request:n,contentLength:s,client:r,expectsPayload:c,header:a});try{for await(let b of e){if(o[wt])throw o[wt];l.write(b)||await A()}l.end()}catch(b){l.destroy(b)}finally{o.off("close",p).off("drain",p)}}i(lH,"writeIterable");var Hz=class{static{i(this,"AsyncWriter")}constructor({abort:e,socket:r,request:n,contentLength:o,client:s,expectsPayload:a,header:c}){this.socket=r,this.request=n,this.contentLength=o,this.client=s,this.bytesWritten=0,this.expectsPayload=a,this.header=c,this.abort=e,r[Sa]=!0}write(e){let{socket:r,request:n,contentLength:o,client:s,bytesWritten:a,expectsPayload:c,header:u}=this;if(r[wt])throw r[wt];if(r.destroyed)return!1;let p=Buffer.byteLength(e);if(!p)return!0;if(o!==null&&a+p>o){if(s[i5])throw new ru;process.emitWarning(new ru)}r.cork(),a===0&&(!c&&n.reset!==!1&&(r[er]=!0),o===null?r.write(`${u}transfer-encoding: chunked\r
`,"latin1"):r.write(`${u}content-length: ${o}\r
\r
`,"latin1")),n===null&&r.write(`\r
`,"latin1")),o===null&&r.write(`\r
${p.toString(16)}\r
`,"latin1"),this.bytesWritten+=p;let l=r.write(e);return r.uncork(),s.onBodySent(e),l||r[A0].timeout&&r[A0].timeoutType===Xh&&r[A0].timeout.refresh&&r[A0].timeout.refresh(),l}end(){let{socket:e,contentLength:r,client:s,bytesWritten:n,expectsPayload:i,header:a,request:c}=this;if(c.onRequestSent(),e[Il]=!1,e[is])throw e[is];if(!e.destroyed){if(n===0?i?e.write(`${a}content-length: 0\r
`,"latin1"),this.bytesWritten+=p;let A=r.write(e);return r.uncork(),n.onBodySent(e),A||r[W0].timeout&&r[W0].timeoutType===IA&&r[W0].timeout.refresh&&r[W0].timeout.refresh(),A}end(){let{socket:e,contentLength:r,client:n,bytesWritten:o,expectsPayload:s,header:a,request:c}=this;if(c.onRequestSent(),e[Sa]=!1,e[wt])throw e[wt];if(!e.destroyed){if(o===0?s?e.write(`${a}content-length: 0\r
\r
`,"latin1"):e.write(`${a}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&n!==r){if(s[lL])throw new Bd;process.emitWarning(new Bd)}e[A0].timeout&&e[A0].timeoutType===Xh&&e[A0].timeout.refresh&&e[A0].timeout.refresh(),s[Fu]()}}destroy(e){let{socket:r,client:s,abort:n}=this;r[Il]=!1,e&&(ve(s[z1]<=1,"pipeline should only contain this request"),n(e))}};yae.exports=o1t});var Nae=b((z20,Sae)=>{"use strict";var Ii=require("node:assert"),{pipeline:d1t}=require("node:stream"),mt=lt(),{RequestContentLengthMismatchError:bL,RequestAbortedError:Bae,SocketError:Tz,InformationalError:mL}=It(),{kUrl:hD,kReset:mD,kClient:Vh,kRunning:MD,kPending:f1t,kQueue:Rl,kPendingIdx:ML,kRunningIdx:Wo,kError:Po,kSocket:L1,kStrictContentLength:h1t,kOnError:gL,kMaxConcurrentStreams:wae,kHTTP2Session:Lo,kResume:wl,kSize:b1t,kHTTPContext:m1t}=E0(),vu=Symbol("open streams"),Dae,qae=!1,bD;try{bD=require("node:http2")}catch{bD={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:M1t,HTTP2_HEADER_METHOD:g1t,HTTP2_HEADER_PATH:z1t,HTTP2_HEADER_SCHEME:O1t,HTTP2_HEADER_CONTENT_LENGTH:E1t,HTTP2_HEADER_EXPECT:y1t,HTTP2_HEADER_STATUS:C1t}}=bD;function B1t(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(B1t,"parseH2Headers");async function D1t(t,e){t[L1]=e,qae||(qae=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=bD.connect(t[hD],{createConnection:o(()=>e,"createConnection"),peerMaxConcurrentStreams:t[wae]});r[vu]=0,r[Vh]=t,r[L1]=e,mt.addListener(r,"error",I1t),mt.addListener(r,"frameError",R1t),mt.addListener(r,"end",w1t),mt.addListener(r,"goaway",S1t),mt.addListener(r,"close",function(){let{[Vh]:n}=this,{[L1]:i}=n,a=this[L1][Po]||this[Po]||new Tz("closed",mt.getSocketInfo(i));if(n[Lo]=null,n.destroyed){Ii(n[f1t]===0);let c=n[Rl].splice(n[Wo]);for(let u=0;u<c.length;u++){let p=c[u];mt.errorRequest(n,p,a)}}}),r.unref(),t[Lo]=r,e[Lo]=r,mt.addListener(e,"error",function(n){Ii(n.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Po]=n,this[Vh][gL](n)}),mt.addListener(e,"end",function(){mt.destroy(this,new Tz("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let n=this[Po]||new Tz("closed",mt.getSocketInfo(this));t[L1]=null,this[Lo]!=null&&this[Lo].destroy(n),t[ML]=t[Wo],Ii(t[MD]===0),t.emit("disconnect",t[hD],[t],n),t[wl]()});let s=!1;return e.on("close",()=>{s=!0}),{version:"h2",defaultPipelining:1/0,write(...n){return F1t(t,...n)},resume(){q1t(t)},destroy(n,i){s?queueMicrotask(i):e.destroy(n).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}o(D1t,"connectH2");function q1t(t){let e=t[L1];e?.destroyed===!1&&(t[b1t]===0&&t[wae]===0?(e.unref(),t[Lo].unref()):(e.ref(),t[Lo].ref()))}o(q1t,"resumeH2");function I1t(t){Ii(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[L1][Po]=t,this[Vh][gL](t)}o(I1t,"onHttp2SessionError");function R1t(t,e,r){if(r===0){let s=new mL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[L1][Po]=s,this[Vh][gL](s)}}o(R1t,"onHttp2FrameError");function w1t(){let t=new Tz("other side closed",mt.getSocketInfo(this[L1]));this.destroy(t),mt.destroy(this[L1],t)}o(w1t,"onHttp2SessionEnd");function S1t(t){let e=this[Po]||new Tz(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[Vh];if(r[L1]=null,r[m1t]=null,this[Lo]!=null&&(this[Lo].destroy(e),this[Lo]=null),mt.destroy(this[L1],e),r[Wo]<r[Rl].length){let s=r[Rl][r[Wo]];r[Rl][r[Wo]++]=null,mt.errorRequest(r,s,e),r[ML]=r[Wo]}Ii(r[MD]===0),r.emit("disconnect",r[hD],[r],e),r[wl]()}o(S1t,"onHTTP2GoAway");function N1t(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}o(N1t,"shouldSendContentLength");function F1t(t,e){let r=t[Lo],{method:s,path:n,host:i,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:l}=e;if(a)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let A={};for(let w=0;w<p.length;w+=2){let N=p[w+0],x=p[w+1];if(Array.isArray(x))for(let P=0;P<x.length;P++)A[N]?A[N]+=`,${x[P]}`:A[N]=x[P];else A[N]=x}let d,{hostname:h,port:M}=t[hD];A[M1t]=i||`${h}${M?`:${M}`:""}`,A[g1t]=s;let z=o(w=>{e.aborted||e.completed||(w=w||new Bae,mt.errorRequest(t,e,w),d!=null&&mt.destroy(d,w),mt.destroy(l,w),t[Rl][t[Wo]++]=null,t[wl]())},"abort");try{e.onConnect(z)}catch(w){mt.errorRequest(t,e,w)}if(e.aborted)return!1;if(s==="CONNECT")return r.ref(),d=r.request(A,{endStream:!1,signal:u}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[vu],t[Rl][t[Wo]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[vu],t[Rl][t[Wo]++]=null}),d.once("close",()=>{r[vu]-=1,r[vu]===0&&r.unref()}),!0;A[z1t]=n,A[O1t]="https";let C=s==="PUT"||s==="POST"||s==="PATCH";l&&typeof l.read=="function"&&l.read(0);let E=mt.bodyLength(l);if(mt.isFormDataLike(l)){Dae??=Uh().extractBody;let[w,N]=Dae(l);A["content-type"]=N,l=w.stream,E=w.length}if(E==null&&(E=e.contentLength),(E===0||!C)&&(E=null),N1t(s)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[h1t])return mt.err Line truncated
`,this[irt]=u??3e5,this[nrt]=n??3e5,this[ort]=B??!0,this[art]=w,this[yL]=x,this[Nl]=null,this[Art]=j>-1?j:-1,this[frt]=Z??100,this[r1]=null,this[Qo]=[],this[xu]=0,this[ko]=0,this[Lz]=J=>BL(this,J),this[drt]=J=>Gae(this,J)}get pipelining(){return this[ED]}set pipelining(e){this[ED]=e,this[Lz](!0)}get[kz](){return this[Qo].length-this[ko]}get[Qz](){return this[ko]-this[xu]}get[Pz](){return this[Qo].length-this[xu]}get[J1t](){return!!this[r1]&&!this[jh]&&!this[r1].destroyed}get[EL](){return!!(this[r1]?.busy(null)||this[Pz]>=(Uae(this)||1)||this[kz]>0)}[Y1t](e){Hae(this),this.once("connect",e)}[lrt](e,r){let s=e.origin||this[Ta].origin,n=new G1t(s,e,r);return this[Qo].push(n),this[wd]||(Rd.bodyLength(n.body)==null&&Rd.isIterable(n.body)?(this[wd]=1,queueMicrotask(()=>BL(this))):this[Lz](!0)),this[wd]&&this[Fl]!==2&&this[EL]&&(this[Fl]=2),this[Fl]<2}async[urt](){return new Promise(e=>{this[Pz]?this[Nl]=e:e(null)})}async[prt](e){return new Promise(r=>{let s=this[Qo].splice(this[ko]);for(let i=0;i<s.length;i++){let a=s[i];Rd.errorRequest(this,a,e)}let n=o(()=>{this[Nl]&&(this[Nl](),this[Nl]=null),r(null)},"callback");this[r1]?(this[r1].destroy(e,n),this[r1]=null):queueMicrotask(n),this[Lz]()})}},mrt=OD();function Gae(t,e){if(t[Qz]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Tu(t[ko]===t[xu]);let r=t[Qo].splice(t[xu]);for(let s=0;s<r.length;s++){let n=r[s];Rd.errorRequest(t,n,e)}Tu(t[Pz]===0)}}o(Gae,"onError");async function Hae(t){Tu(!t[jh]),Tu(!t[r1]);let{host:e,hostname:r,protocol:s,port:n}=t[Ta];if(r[0]==="["){let i=r.indexOf("]");Tu(i!==-1);let a=r.substring(1,i);Tu(kae.isIP(a)),r=a}t[jh]=!0,$h.beforeConnect.hasSubscribers&&$h.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[r1]?.version,servername:t[Sl],localAddress:t[Wz]},connector:t[_z]});try{let i=await new Promise((a,c)=>{t[_z]({host:e,hostname:r,protocol:s,port:n,servername:t[Sl],localAddress:t[Wz]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){Rd.destroy(i.on("error",Pae),new V1t);return}Tu(i);try{t[r1]=i.alpnProtocol==="h2"?await brt(t,i):await hrt(t,i)}catch(a){throw i.destroy().on("error",Pae),a}t[jh]=!1,i[crt]=0,i[yL]=t[yL],i[j1t]=t,i[Z1t]=null,$h.connected.hasSubscribers&&$h.connected.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[r1]?.version,servername:t[Sl],localAddress:t[Wz]},connector:t[_z],socket:i}),t.emit("connect",t[Ta],[t])}catch(i){if(t.destroyed)return;if(t[jh]=!1,$h.connectError.hasSubscribers&&$h.connectError.publish({connectParams:{host:e,hostname:r,protocol:s,port:n,version:t[r1]?.version,servername:t[Sl],localAddress:t[Wz]},connector:t[_z],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Tu(t[Qz]===0);t[kz]>0&&t[Qo][t[ko]].servername===t[Sl];){let a=t[Qo][t[ko]++];Rd.errorRequest(t,a,i)}else Gae(t,i);t.emit("connectionError",t[Ta],[t],i)}t[Lz]()}o(Hae,"connect");function Qae(t){t[Fl]=0,t.emit("drain",t[Ta],[t])}o(Qae,"emitDrain");function BL(t,e){t[wd]!==2&&(t[wd]=2,Mrt(t,e),t[wd]=0,t[xu]>256&&(t[Qo].splice(0,t[xu]),t[ko]-=t[xu],t[xu]=0))}o(BL,"resume");function Mrt(t,e){for(;;){if(t.destroyed){Tu(t[kz]===0);return}if(t[Nl]&&!t[Pz]){t[Nl](),t[Nl]=null;return}if(t[r1]&&t[r1].resume(),t[EL])t[Fl]=2;else if(t[Fl]===2){e?(t[Fl]=1,queueMicrotask(()=>Qae(t))):Qae(t);continue}if(t[kz]===0||t[Qz]>=(Uae(t)||1))return;let r=t[Qo][t[ko]];if(t[Ta].protocol==="https:"&&t[Sl]!==r.servername){if(t[Qz]>0)return;t[Sl]=r.servername,t[r1]?.destroy(new X1t("servername changed"),()=>{t[r1]=null,BL(t)})}if(t[jh])return;if(!t[r1]){Hae(t);return}if(t[r1].destroyed||t[r1].busy(r))return;!r.aborted&&t[r1].write(r)?t[ko]++:t[Qo].splice(t[ko],1)}}o(Mrt,"_resume");Xae.exports=CL});var DL=b((R20,Vae)=>{"use strict";var yD=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)}};Vae.exports=class{static{o(this,"FixedQueue")}constructor(){this.head=this.tail=new yD}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new yD),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var jae=b((S20,$ae)=>{var{kFree:grt,kConnected:zrt,kPending:Ort,kQueued:Ert,kRunning:yrt,kSize:Crt}=E0(),Sd=Symbol("pool"),qL=class{static{o(this,"PoolStats")}constructor(e){this[Sd]=e}get connected(){return this[Sd][zrt]}get free(){return this[Sd][grt]}get pending(){return this[Sd][Ort]}get queued(){return this[Sd][Ert]}get running(){return this[Sd][yrt]}get size(){return this[Sd][Crt]}};$ae.exports=qL});var FL=b((F20,ice)=>{"use strict";var Brt=vh(),Drt=DL(),{kConnected:IL,kSize:Yae,kRunning:Jae,kPending:Kae,kQueued:Uz,kBusy:qrt,kFree:Irt,kUrl:Rrt,kClose:wrt,kDestroy:Srt,kDispatch:Nrt}=E0(),Fr Line truncated
${s.count} ${s.noun} ${s.is} pending:
`,"latin1"),r!==null&&o!==r){if(n[i5])throw new ru;process.emitWarning(new ru)}e[W0].timeout&&e[W0].timeoutType===IA&&e[W0].timeout.refresh&&e[W0].timeout.refresh(),n[Bi]()}}destroy(e){let{socket:r,client:n,abort:o}=this;r[Sa]=!1,e&&(be(n[I1]<=1,"pipeline should only contain this request"),o(e))}};hH.exports=Bwe});var DH=m((_B0,qH)=>{"use strict";var ln=require("node:assert"),{pipeline:Swe}=require("node:stream"),Je=He(),{RequestContentLengthMismatchError:A5,RequestAbortedError:OH,SocketError:cb,InformationalError:l5}=i0(),{kUrl:Xz,kReset:Yz,kClient:RA,kRunning:Jz,kPending:Fwe,kQueue:Fa,kPendingIdx:d5,kRunningIdx:oo,kError:io,kSocket:J1,kStrictContentLength:Wwe,kOnError:b5,kMaxConcurrentStreams:BH,kHTTP2Session:so,kResume:Wa,kSize:xwe,kHTTPContext:Twe}=k0(),qi=Symbol("open streams"),gH,EH=!1,Vz;try{Vz=require("node:http2")}catch{Vz={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vwe,HTTP2_HEADER_METHOD:Lwe,HTTP2_HEADER_PATH:Qwe,HTTP2_HEADER_SCHEME:_we,HTTP2_HEADER_CONTENT_LENGTH:Pwe,HTTP2_HEADER_EXPECT:kwe,HTTP2_HEADER_STATUS:Uwe}}=Vz;function Gwe(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let o of n)e.push(Buffer.from(r),Buffer.from(o));else e.push(Buffer.from(r),Buffer.from(n));return e}i(Gwe,"parseH2Headers");async function Hwe(t,e){t[J1]=e,EH||(EH=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=Vz.connect(t[Xz],{createConnection:i(()=>e,"createConnection"),peerMaxConcurrentStreams:t[BH]});r[qi]=0,r[RA]=t,r[J1]=e,Je.addListener(r,"error",Vwe),Je.addListener(r,"frameError",Ywe),Je.addListener(r,"end",Jwe),Je.addListener(r,"goaway",jwe),Je.addListener(r,"close",function(){let{[RA]:o}=this,{[J1]:s}=o,a=this[J1][io]||this[io]||new cb("closed",Je.getSocketInfo(s));if(o[so]=null,o.destroyed){ln(o[Fwe]===0);let c=o[Fa].splice(o[oo]);for(let u=0;u<c.length;u++){let p=c[u];Je.errorRequest(o,p,a)}}}),r.unref(),t[so]=r,e[so]=r,Je.addListener(e,"error",function(o){ln(o.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=o,this[RA][b5](o)}),Je.addListener(e,"end",function(){Je.destroy(this,new cb("other side closed",Je.getSocketInfo(this)))}),Je.addListener(e,"close",function(){let o=this[io]||new cb("closed",Je.getSocketInfo(this));t[J1]=null,this[so]!=null&&this[so].destroy(o),t[d5]=t[oo],ln(t[Jz]===0),t.emit("disconnect",t[Xz],[t],o),t[Wa]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...o){return Kwe(t,...o)},resume(){Xwe(t)},destroy(o,s){n?queueMicrotask(s):e.destroy(o).on("close",s)},get destroyed(){return e.destroyed},busy(){return!1}}}i(Hwe,"connectH2");function Xwe(t){let e=t[J1];e?.destroyed===!1&&(t[xwe]===0&&t[BH]===0?(e.unref(),t[so].unref()):(e.ref(),t[so].ref()))}i(Xwe,"resumeH2");function Vwe(t){ln(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[J1][io]=t,this[RA][b5](t)}i(Vwe,"onHttp2SessionError");function Ywe(t,e,r){if(r===0){let n=new l5(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[J1][io]=n,this[RA][b5](n)}}i(Ywe,"onHttp2FrameError");function Jwe(){let t=new cb("other side closed",Je.getSocketInfo(this[J1]));this.destroy(t),Je.destroy(this[J1],t)}i(Jwe,"onHttp2SessionEnd");function jwe(t){let e=this[io]||new cb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Je.getSocketInfo(this)),r=this[RA];if(r[J1]=null,r[Twe]=null,this[so]!=null&&(this[so].destroy(e),this[so]=null),Je.destroy(this[J1],e),r[oo]<r[Fa].length){let n=r[Fa][r[oo]];r[Fa][r[oo]++]=null,Je.errorRequest(r,n,e),r[d5]=r[oo]}ln(r[Jz]===0),r.emit("disconnect",r[Xz],[r],e),r[Wa]()}i(jwe,"onHTTP2GoAway");function $we(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}i($we,"shouldSendContentLength");function Kwe(t,e){let r=t[so],{method:n,path:o,host:s,upgrade:a,expectContinue:c,signal:u,headers:p}=e,{body:A}=e;if(a)return Je.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let I=0;I<p.length;I+=2){let W=p[I+0],x=p[I+1];if(Array.isArray(x))for(let Q=0;Q<x.length;Q++)l[W]?l[W]+=`,${x[Q]}`:l[W]=x[Q];else l[W]=x}let b,{hostname:f,port:z}=t[Xz];l[vwe]=s||`${f}${z?`:${z}`:""}`,l[Lwe]=n;let g=i(I=>{e.aborted||e.completed||(I=I||new OH,Je.errorRequest(t,e,I),b!=null&&Je.destroy(b,I),Je.destroy(A,I),t[Fa][t[oo]++]=null,t[Wa]())},"abort");try{e.onConnect(g)}catch(I){Je.errorRequest(t,e,I)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),b=r.request(l,{endStream:!1,signal:u}),b.id&&!b.pending?(e.onUpgrade(null,null,b),++r[qi],t[Fa][t[oo]++]=null):b.once("ready",()=>{e.onUpgrade(null,null,b),++r[qi],t[Fa][t[oo]++]=null}),b.once("close",()=>{r[qi]-=1,r[qi]===0&&r.unref()}),!0;l[Qwe]=o,l[_we]="https";let y=n==="PUT"||n==="POST"||n==="PATCH";A&&typeof A.read=="function"&&A.read(0);let E=Je.bodyLength(A);if(Je.isFormDataLike(A)){gH??=BA().extractBody;let[I,W]=gH(A);l["content-type"]=W,A=I.stream,E=I.length}if(E==null&&(E=e.contentLength),(E===0||!y)&&(E=null),$we(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[Wwe])return Je.errorRequest(t,e, Line truncated
`,this[y6e]=u??3e5,this[C6e]=o??3e5,this[B6e]=B??!0,this[q6e]=I,this[h5]=x,this[Ta]=null,this[w6e]=ue>-1?ue:-1,this[F6e]=Re??100,this[m1]=null,this[ao]=[],this[Ii]=0,this[co]=0,this[lb]=pe=>O5(this,pe),this[S6e]=pe=>QH(this,pe)}get pipelining(){return this[Zz]}set pipelining(e){this[Zz]=e,this[lb](!0)}get[Mb](){return this[ao].length-this[co]}get[bb](){return this[co]-this[Ii]}get[db](){return this[ao].length-this[Ii]}get[f6e](){return!!this[m1]&&!this[wA]&&!this[m1].destroyed}get[m5](){return!!(this[m1]?.busy(null)||this[db]>=(LH(this)||1)||this[Mb]>0)}[M6e](e){_H(this),this.once("connect",e)}[N6e](e,r){let n=e.origin||this[Vo].origin,o=new u6e(n,e,r);return this[ao].push(o),this[au]||(iu.bodyLength(o.body)==null&&iu.isIterable(o.body)?(this[au]=1,queueMicrotask(()=>O5(this))):this[lb](!0)),this[au]&&this[va]!==2&&this[m5]&&(this[va]=2),this[va]<2}async[I6e](){return new Promise(e=>{this[db]?this[Ta]=e:e(null)})}async[R6e](e){return new Promise(r=>{let n=this[ao].splice(this[co]);for(let s=0;s<n.length;s++){let a=n[s];iu.errorRequest(this,a,e)}let o=i(()=>{this[Ta]&&(this[Ta](),this[Ta]=null),r(null)},"callback");this[m1]?(this[m1].destroy(e,o),this[m1]=null):queueMicrotask(o),this[lb]()})}},T6e=Kz();function QH(t,e){if(t[bb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Di(t[co]===t[Ii]);let r=t[ao].splice(t[Ii]);for(let n=0;n<r.length;n++){let o=r[n];iu.errorRequest(t,o,e)}Di(t[db]===0)}}i(QH,"onError");async function _H(t){Di(!t[wA]),Di(!t[m1]);let{host:e,hostname:r,protocol:n,port:o}=t[Vo];if(r[0]==="["){let s=r.indexOf("]");Di(s!==-1);let a=r.substring(1,s);Di(vH.isIP(a)),r=a}t[wA]=!0,NA.beforeConnect.hasSubscribers&&NA.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[Ab]},connector:t[pb]});try{let s=await new Promise((a,c)=>{t[pb]({host:e,hostname:r,protocol:n,port:o,servername:t[xa],localAddress:t[Ab]},(u,p)=>{u?c(u):a(p)})});if(t.destroyed){iu.destroy(s.on("error",xH),new l6e);return}Di(s);try{t[m1]=s.alpnProtocol==="h2"?await x6e(t,s):await W6e(t,s)}catch(a){throw s.destroy().on("error",xH),a}t[wA]=!1,s[D6e]=0,s[h5]=t[h5],s[b6e]=t,s[h6e]=null,NA.connected.hasSubscribers&&NA.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[Ab]},connector:t[pb],socket:s}),t.emit("connect",t[Vo],[t])}catch(s){if(t.destroyed)return;if(t[wA]=!1,NA.connectError.hasSubscribers&&NA.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:o,version:t[m1]?.version,servername:t[xa],localAddress:t[Ab]},connector:t[pb],error:s}),s.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Di(t[bb]===0);t[Mb]>0&&t[ao][t[co]].servername===t[xa];){let a=t[ao][t[co]++];iu.errorRequest(t,a,s)}else QH(t,s);t.emit("connectionError",t[Vo],[t],s)}t[lb]()}i(_H,"connect");function TH(t){t[va]=0,t.emit("drain",t[Vo],[t])}i(TH,"emitDrain");function O5(t,e){t[au]!==2&&(t[au]=2,v6e(t,e),t[au]=0,t[Ii]>256&&(t[ao].splice(0,t[Ii]),t[co]-=t[Ii],t[Ii]=0))}i(O5,"resume");function v6e(t,e){for(;;){if(t.destroyed){Di(t[Mb]===0);return}if(t[Ta]&&!t[db]){t[Ta](),t[Ta]=null;return}if(t[m1]&&t[m1].resume(),t[m5])t[va]=2;else if(t[va]===2){e?(t[va]=1,queueMicrotask(()=>TH(t))):TH(t);continue}if(t[Mb]===0||t[bb]>=(LH(t)||1))return;let r=t[ao][t[co]];if(t[Vo].protocol==="https:"&&t[xa]!==r.servername){if(t[bb]>0)return;t[xa]=r.servername,t[m1]?.destroy(new A6e("servername changed"),()=>{t[m1]=null,O5(t)})}if(t[wA])return;if(!t[m1]){_H(t);return}if(t[m1].destroyed||t[m1].busy(r))return;!r.aborted&&t[m1].write(r)?t[co]++:t[ao].splice(t[co],1)}}i(v6e,"_resume");PH.exports=z5});var g5=m((JB0,kH)=>{"use strict";var eO=class{static{i(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)}};kH.exports=class{static{i(this,"FixedQueue")}constructor(){this.head=this.tail=new eO}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eO),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var GH=m(($B0,UH)=>{var{kFree:L6e,kConnected:Q6e,kPending:_6e,kQueued:P6e,kRunning:k6e,kSize:U6e}=k0(),cu=Symbol("pool"),E5=class{static{i(this,"PoolStats")}constructor(e){this[cu]=e}get connected(){return this[cu][Q6e]}get free(){return this[cu][L6e]}get pending(){return this[cu][_6e]}get queued(){return this[cu][P6e]}get running(){return this[cu][k6e]}get size(){return this[cu][U6e]}};UH.exports=E5});var I5=m((ZB0,eX)=>{"use strict";var G6e=fA(),H6e=g5(),{kConnected:C5,kSize:HH,kRunning:XH,kPending:VH,kQueued:fb,kBusy:X6e,kFree:V6e,kUrl:Y6e,kClose:J6e,kDestroy:j6e,kDispatch:$6e}=k0(),K6e=GH(),tr=Symbol("cl Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lpe.exports=F8});var QD=b((Sf0,bpe)=>{"use strict";var dpe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:iit}=It(),oit=Kh();hpe()===void 0&&fpe(new oit);function fpe(t){if(!t||typeof t.dispatch!="function")throw new iit("Argument agent must implement Agent");Object.defineProperty(globalThis,dpe,{value:t,writable:!0,enumerable:!1,configurable:!1})}o(fpe,"setGlobalDispatcher");function hpe(){return globalThis[dpe]}o(hpe,"getGlobalDispatcher");bpe.exports={setGlobalDispatcher:fpe,getGlobalDispatcher:hpe}});var kD=b((vf0,mpe)=>{"use strict";mpe.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 gpe=b((xf0,Mpe)=>{"use strict";var ait=zD();Mpe.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 u=new ait(r,a,n,i);return r(c,u)},"redirectInterceptor")}});var Ope=b((Wf0,zpe)=>{"use strict";var cit=SD();zpe.exports=t=>e=>o(function(s,n){return e(s,new cit({...s,retryOptions:{...t,...s.retryOptions}},{handler:n,dispatch:e}))},"retryInterceptor")});var ype=b((Pf0,Epe)=>{"use strict";var uit=lt(),{InvalidArgumentError:pit,RequestAbortedError:lit}=It(),Ait=kD(),v8=class extends Ait{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 pit("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=uit.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new lit(`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 dit({maxSize:t}={maxSize:1024*1024}){return e=>o(function(s,n){let{dumpMaxSize:i=t}=s,a=new v8({maxSize:i},n);return e(s,a)},"Intercept")}o(dit,"createDumpInterceptor");Epe.exports=dit});var Dpe=b((kf0,Bpe)=>{"use strict";var{isIP:fit}=require("node:net"),{lookup:hit}=require("node:dns"),bit=kD(),{InvalidArgumentError:cb,InformationalError:mit}=It(),Cpe=Math.pow(2,31)-1,T8=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 mit("No DNS entries found"));return}this.setRecords(e,c);let u=this.#s.get(e.hostname),p=this.pick(e,u,i.affinity),l;typeof p.port=="number"?l=`:${p.port}`:e.port!==""?l=`:${e.port}`:l="",s(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${l}`)});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){hit(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===Cpe?(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===Cpe?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return n=c.ips[u]??null,n==null?n:Date.now()-n.timestamp>n.ttl?(c.ips.splice(u,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 x8(this,e,r)}},x8=class extends bit{static{o(this,"DNSDispatchHan Line truncated
${i}`;break;case"retry":ide(i)&&(r[n]=i);break;case"id":ode(i)&&(r[n]=i);break;case"event":i.length>0&&(r[n]=i);break}}processEvent(e){e.retry&&ide(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ode(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}}};ade.exports={EventSourceStream:yP}});var bde=b((Hh0,hde)=>{"use strict";var{pipeline:But}=require("node:stream"),{fetching:Dut}=sO(),{makeRequest:qut}=lb(),{webidl:Qu}=br(),{EventSourceStream:Iut}=cde(),{parseMIMEType:Rut}=Vs(),{createFastMessageEvent:wut}=mb(),{isNetworkError:ude}=tO(),{delay:Sut}=OP(),{kEnumerableProperty:Xd}=lt(),{environmentSettingsObject:pde}=Fn(),lde=!1,Ade=3e3,mO=0,dde=1,MO=2,Nut="anonymous",Fut="use-credentials",Eb=class t extends EventTarget{static{o(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#s=!1;#r=mO;#n=null;#i=null;#a;#o;constructor(e,r={}){super(),Qu.util.markAsUncloneable(this);let s="EventSource constructor";Qu.argumentLengthCheck(arguments,1,s),lde||(lde=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Qu.converters.USVString(e,s,"url"),r=Qu.converters.EventSourceInitDict(r,s,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Ade};let n=pde,i;try{i=new URL(e,n.settingsObject.baseUrl),this.#o.origin=i.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=i.href;let a=Nut;r.withCredentials&&(a=Fut,this.#s=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=pde.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=qut(c),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#s}#c(){if(this.#r===MO)return;this.#r=mO;let e={request:this.#n,dispatcher:this.#a},r=o(s=>{ude(s)&&(this.dispatchEvent(new Event("error")),this.close()),this.#l()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=s=>{if(ude(s))if(s.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#l();return}let n=s.headersList.get("content-type",!0),i=n!==null?Rut(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=dde,this.dispatchEvent(new Event("open")),this.#o.origin=s.urlList[s.urlList.length-1].origin;let c=new Iut({eventSourceSettings:this.#o,push:o(u=>{this.dispatchEvent(wut(u.type,u.options))},"push")});But(s.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Dut(e)}async#l(){this.#r!==MO&&(this.#r=mO,this.dispatchEvent(new Event("error")),await Sut(this.#o.reconnectionTime),this.#r===mO&&(this.#o.lastEventId.length&&this.#n.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Qu.brandCheck(this,t),this.#r!==MO&&(this.#r=MO,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}},fde={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:mO,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dde,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:MO,writable:!1}};Object.defineProperties(Eb,fde);Object.defineProperties(Eb.prototype,fde);Object.defineProperties(Eb.prototype,{close:Xd,onerror:Xd,onmessage:Xd,onopen:Xd,readyState:Xd,url:Xd,withCredentials:Xd});Qu.converters.EventSourceInitDict=Qu.dictionaryConverter([{key:"withCredentials",converter:Qu.converters.boolean,defaultValue:o(()=>!1,"defaultValue")},{key:"dispatcher",converter:Qu.converters.any}]);hde.exports={EventSource:Eb,defaultReconnectionTime:Ade}});var Cb=b((Vh0,Pe)=>{"use strict";var vut=Yh(),mde=Oz(),Tut=Jh(),xut=fce(),_ut=Kh(),Wut=XL(),Lut=Wce(),Put=Gce(),Mde=It(),Rq=lt(),{InvalidArgumentError:Iq}=Mde,yb=wue(),Qut=yz(),kut=q8(),Uut=Ape(),Gut=w8(),Hut=f8(),Xut=SD(),{getGlobalDispatcher:gde,setGlobalDispatcher:Vut}=QD(),$ut=kD(),jut=zD(),Yut=OD();Object.assign(mde.prototype,yb);Pe.exports.Dispatcher=mde;Pe.exports.Client=vut;Pe.exports.Pool=Tut;Pe.exports.BalancedPoo Line truncated
%s`,N,N,B,s);var x=B.type==="*"?IQ:B.type==="?"?qQ:"\\"+B.type;n=!0,s=s.slice(0,B.reStart)+x+"\\("+N}M(),i&&(s+="\\\\");var P=!1;switch(s.charAt(0)){case"[":case".":case"(":P=!0}for(var j=c.length-1;j>-1;j--){var Ee=c[j],we=s.slice(0,Ee.reStart),Z=s.slice(Ee.reStart,Ee.reEnd-8),Se=s.slice(Ee.reEnd-8,Ee.reEnd),Y=s.slice(Ee.reEnd);Se+=Y;var J=we.split("(").length-1,_e=Y;for(z=0;z<J;z++)_e=_e.replace(/\)[+*?]?/,"");Y=_e;var re="";Y===""&&e!==Zq&&(re="$");var Ce=we+Z+Y+re+Se;s=Ce}if(s!==""&&n&&(s="(?=.)"+s),P&&(s=d+s),e===Zq)return[s,n];if(!n)return A2t(t);var dt=r.nocase?"i":"";try{var Gt=new RegExp("^"+s+"$",dt)}catch{return new RegExp("$.")}return Gt._glob=t,Gt._src=s,Gt}o(p2t,"parse");Xn.makeRe=function(t,e){return new gr(t,e||{}).makeRe()};gr.prototype.makeRe=l2t;function l2t(){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?IQ:e.dot?s2t:n2t,s=e.nocase?"i":"",n=t.map(function(i){return i.map(function(a){return a===RQ?r:typeof a=="string"?d2t(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(l2t,"makeRe");Xn.match=function(t,e,r){r=r||{};var s=new gr(e,r);return t=t.filter(function(n){return s.match(n)}),s.options.nonull&&!t.length&&t.push(e),t};gr.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;PO.sep!=="/"&&(e=e.split(PO.sep).join("/")),e=e.split(Che),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],u=e;s.matchBase&&c.length===1&&(u=[i]);var p=this.matchOne(u,c,r);if(p)return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate},"match");gr.prototype.matchOne=function(t,e,r){var s=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var n=0,i=0,a=t.length,c=e.length;n<a&&i<c;n++,i++){this.debug("matchOne loop");var u=e[i],p=t[n];if(this.debug(e,u,p),u===!1)return!1;if(u===RQ){this.debug("GLOBSTAR",[e,u,p]);var l=n,A=i+1;if(A===c){for(this.debug("** at the end");n<a;n++)if(t[n]==="."||t[n]===".."||!s.dot&&t[n].charAt(0)===".")return!1;return!0}for(;l<a;){var d=t[l];if(this.debug(`
globstar while`,t,l,e,A,d),this.matchOne(t.slice(l),e.slice(A),r))return this.debug("globstar found match!",l,a,d),!0;if(d==="."||d===".."||!s.dot&&d.charAt(0)==="."){this.debug("dot detected!",t,l,e,A);break}this.debug("globstar swallow a segment, and continue"),l++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,l,e,A),l===a))}var h;if(typeof u=="string"?(h=p===u,this.debug("string match",u,p,h)):(h=p.match(u),this.debug("pattern match",u,p,h)),!h)return!1}if(n===a&&i===c)return!0;if(n===a)return r;if(i===c)return n===a-1&&t[n]==="";throw new Error("wtf?")};function A2t(t){return t.replace(/\\(.)/g,"$1")}o(A2t,"globUnescape");function d2t(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}o(d2t,"regExpEscape")});var Tb=b((yz0,She)=>{"use strict";var O2t="2.0.0",E2t=Number.MAX_SAFE_INTEGER||9007199254740991,y2t=16,C2t=250,B2t=["major","premajor","minor","preminor","patch","prepatch","prerelease"];She.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:y2t,MAX_SAFE_BUILD_LENGTH:C2t,MAX_SAFE_INTEGER:E2t,RELEASE_TYPES:B2t,SEMVER_SPEC_VERSION:O2t,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var UO=b((Cz0,Nhe)=>{"use strict";var D2t=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Nhe.exports=D2t});var xb=b((Ga,Fhe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:SQ,MAX_SAFE_BUILD_LENGTH:q2t,MAX_LENGTH:I2t}=Tb(),R2t=UO();Ga=Fhe.exports={};var w2t=Ga.re=[],S2t=Ga.safeRe=[],fe=Ga.src=[],N2t=Ga.safeSrc=[],he=Ga.t={},F2t=0,NQ="[a-zA-Z0-9-]",v2t=[["\\s",1],["\\d",I2t],[NQ,q2t]],T2t=o(t=>{for(let[e,r]of v2t)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),et=o((t,e,r)=>{let s=T2t(e),n=F2t++;R2t(t,n,e),he[t]=n,fe[n]=e,N2t[n]=s,w2t[n]=new RegExp(e,r?"g":void 0),S2t[n]=new RegExp(s,r?"g":void 0)},"createToken");et("NUMERICIDENTIFIER","0|[1-9]\\d*");et("NUMERICIDENTIFIERLOOSE","\\d+");et("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${NQ}*`);et("MAINVERSION",`(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})\\.(${fe[he.NUMERICIDENTIFIER]})`);et("MAINVERSIONLOOSE",`(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})\\.(${fe[he.NUMERICIDENTIFIERLOOSE]})`);et("PRERELEASEIDENTIFIER",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIER]})`);et("PRERELEASEIDENTIFIERLOOSE",`(?:${fe[he.NONNUMERICIDENTIFIER]}|${fe[he.NUMERICIDENTIFIERLOOSE]})`);et("PRERELEASE",`(?:-(${fe[he.PRERELEASEIDENTIFIER]}(?:\\.${fe[he.PRERELEASEIDENTIFIER]})*))`);et("PRERELEASELOOSE",`(?:-?(${fe[he.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${fe[he.PRERELEASEIDENTIFIERLOOSE]})*))`);et("BUILDIDENTIFIER",`${NQ}+`);et("BUILD",`(?:\\+(${fe[he.BUILDIDENTIFIER]}(?:\\.${fe[he.BUILDIDENTIFIER]})*))`);et("FULLPLAIN",`v?${fe[he.MAINVERSION]}${fe[he.PRERELEASE]}?${fe[he.BUILD]}?`);et("FULL",`^${fe[he.FULLPLAIN]}$`);et("LOOSEPLAIN",`[v=\\s]*${fe[he.MAINVERSIONLOOSE]}${fe[he.PRERELEASELOOSE]}?${fe[he.BUILD]}?`);et("LOOSE",`^${fe[he.LOOSEPLAIN]}$`);et("GTLT","((?:<|>)?=?)");et("XRANGEIDENTIFIERLOOSE",`${fe[he.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);et("XRANGEIDENTIFIER",`${fe[he.NUMERICIDENTIFIER]}|x|X|\\*`);et("XRANGEPLAIN",`[v=\\s]*(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:\\.(${fe[he.XRANGEIDENTIFIER]})(?:${fe[he.PRERELEASE]})?${fe[he.BUILD]}?)?)?`);et("XRANGEPLAINLOOSE",`[v=\\s]*(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:\\.(${fe[he.XRANGEIDENTIFIERLOOSE]})(?:${fe[he.PRERELEASELOOSE]})?${fe[he.BUILD]}?)?)?`);et("XRANGE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAIN]}$`);et("XRANGELOOSE",`^${fe[he.GTLT]}\\s*${fe[he.XRANGEPLAINLOOSE]}$`);et("COERCEPLAIN",`(^|[^\\d])(\\d{1,${SQ}})(?:\\.(\\d{1,${SQ}}))?(?:\\.(\\d{1,${SQ}}))?`);et("COERCE",`${fe[he.COERCEPLAIN]}(?:$|[^\\d])`);et("COERCEFULL",fe[he.COERCEPLAIN]+`(?:${fe[he.PRERELEASE]})?(?:${fe[he.BUILD]})?(?:$|[^\\d])`);et("COERCERTL",fe[he.COERCE],!0);et("COERCERTLFULL",fe[he.COERCEFULL],!0);et("LONETILDE","(?:~>?)");et("TILDETRIM",`(\\s*)${fe[he.LONETILDE]}\\s+`,!0);Ga.tildeTrimReplace="$1~";et("TILDE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAIN]}$`);et("TILDELOOSE",`^${fe[he.LONETILDE]}${fe[he.XRANGEPLAINLOOSE]}$`);et("LONECARET","(?:\\^)");et("CARETTRIM",`(\\s*)${fe[he.LONECARET]}\\s+`,!0);Ga.caretTrimReplace="$1^";et("CARET",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAIN]}$`);et("CARETLOOSE",`^${fe[he.LONECARET]}${fe[he.XRANGEPLAINLOOSE]}$`);et("COMPARATORLOOSE",`^${fe[he.GTLT]}\\s*(${fe[he.LOOSEPLAIN]})$|^$`);et("COMPARATOR",`^${fe[he.GTLT]}\\s*(${fe[he.FULLPLAIN]})$|^$`);et("COMPARATORTRIM",`(\\s*)${fe[he.GTLT]}\\s*(${fe[he.LOOSEPLAIN]}|${fe[he.XRANGEPLAIN]})`,!0);Ga.comparatorTrimReplace="$1$2$3";et("HYPHENRANGE",`^\\s*(${fe[he.XRANGEPLAIN]})\\s+-\\s+(${fe[he.XRANGEPLAIN]})\\s*$`);et("HYPHENRANGELOOSE",`^\\s*(${fe[he.XRANGEPLAINLOOSE]})\\s+-\\s+(${fe[he.XRANGEPLAINLOOSE]})\\s*$`);et("STAR","(<|>)?=?\\s*\\*");et("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");et("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var sI=b((Dz0,vhe)=>{"use strict";var x2t=Object.freeze({loose:!0}),_2t=Object.freeze({}),W2t=o(t=>t?typeof t!="object"?x2t:t:_2t,"parseOptions");vhe.exports=W2t});var FQ=b((Iz0,_he)=>{"use strict";var The=/^[0-9]+$/,xhe=o((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=The Line truncated
`.trim())}};iY.exports=IR});var hO=m(($q0,AY)=>{"use strict";var cY=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:yWe}=i0(),BWe=WA();pY()===void 0&&uY(new BWe);function uY(t){if(!t||typeof t.dispatch!="function")throw new yWe("Argument agent must implement Agent");Object.defineProperty(globalThis,cY,{value:t,writable:!0,enumerable:!1,configurable:!1})}i(uY,"setGlobalDispatcher");function pY(){return globalThis[cY]}i(pY,"getGlobalDispatcher");AY.exports={setGlobalDispatcher:uY,getGlobalDispatcher:pY}});var zO=m((eD0,lY)=>{"use strict";lY.exports=class{static{i(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 bY=m((rD0,dY)=>{"use strict";var qWe=$z();dY.exports=t=>{let e=t?.maxRedirections;return r=>i(function(o,s){let{maxRedirections:a=e,...c}=o;if(!a)return r(o,s);let u=new qWe(r,a,o,s);return r(c,u)},"redirectInterceptor")}});var fY=m((oD0,MY)=>{"use strict";var DWe=cO();MY.exports=t=>e=>i(function(n,o){return e(n,new DWe({...n,retryOptions:{...t,...n.retryOptions}},{handler:o,dispatch:e}))},"retryInterceptor")});var hY=m((iD0,mY)=>{"use strict";var IWe=He(),{InvalidArgumentError:RWe,RequestAbortedError:NWe}=i0(),wWe=zO(),RR=class extends wWe{static{i(this,"DumpHandler")}#e=1024*1024;#t=null;#n=!1;#r=!1;#o=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new RWe("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.#i.bind(this))}#i(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,o){let a=IWe.parseHeaders(r)["content-length"];if(a!=null&&a>this.#e)throw new NWe(`Response size (${a}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,o)}onError(e){this.#n||(e=this.#s??e,this.#a.onError(e))}onData(e){return this.#o=this.#o+e.length,this.#o>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function SWe({maxSize:t}={maxSize:1024*1024}){return e=>i(function(n,o){let{dumpMaxSize:s=t}=n,a=new RR({maxSize:s},o);return e(n,a)},"Intercept")}i(SWe,"createDumpInterceptor");mY.exports=SWe});var gY=m((cD0,OY)=>{"use strict";var{isIP:FWe}=require("node:net"),{lookup:WWe}=require("node:dns"),xWe=zO(),{InvalidArgumentError:GA,InformationalError:TWe}=i0(),zY=Math.pow(2,31)-1,NR=class{static{i(this,"DNSInstance")}#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#o}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let o=this.#n.get(e.hostname);if(o==null&&this.full){n(null,e.origin);return}let s={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(o==null)this.lookup(e,s,(a,c)=>{if(a||c==null||c.length===0){n(a??new TWe("No DNS entries found"));return}this.setRecords(e,c);let u=this.#n.get(e.hostname),p=this.pick(e,u,s.affinity),A;typeof p.port=="number"?A=`:${p.port}`:e.port!==""?A=`:${e.port}`:A="",n(null,`${e.protocol}//${p.family===6?`[${p.address}]`:p.address}${A}`)});else{let a=this.pick(e,o,s.affinity);if(a==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let c;typeof a.port=="number"?c=`:${a.port}`:e.port!==""?c=`:${e.port}`:c="",n(null,`${e.protocol}//${a.family===6?`[${a.address}]`:a.address}${c}`)}}#r(e,r,n){WWe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(o,s)=>{if(o)return n(o);let a=new Map;for(let c of s)a.set(`${c.address}:${c.family}`,c);n(null,a.values())})}#o(e,r,n){let o=null,{records:s,offset:a}=r,c;if(this.dualStack?(n==null&&(a==null||a===zY?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),s[n]!=null&&s[n].ips.length>0?c=s[n]:c=s[n===4?6:4]):c=s[n],c==null||c.ips.length===0)return o;c.offset==null||c.offset===zY?c.offset=0:c.offset++;let u=c.offset%c.ips.length;return o=c.ips[u]??null,o==null?o:Date.now()-o.timestamp>o.ttl?(c.ips.splice(u,1),this.pick(e,r,n)):o}setRecords(e,r){let n=Date.now(),o={records:{4:null,6:null}};for(let s of r){s.timestamp=n,typeof s.ttl=="number"?s.ttl=Math.min(s.ttl,this.#e):s.ttl=this.#e;let a=o.records[s.family]??{ips:[]};a.ips.push(s),o.records[s.family]=a}this.#n.set(e.hostname,o)}getHandler(e,r){return new wR(this,e,r)}},wR=class extends xWe{static{i(this,"DNSDispatchHandler")}#e=null;#t=null;#n=null Line truncated
${s}`;break;case"retry":e$(s)&&(r[o]=s);break;case"id":t$(s)&&(r[o]=s);break;case"event":s.length>0&&(r[o]=s);break}}processEvent(e){e.retry&&e$(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&t$(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}}};r$.exports={EventSourceStream:hN}});var A$=m((AI0,p$)=>{"use strict";var{pipeline:GLe}=require("node:stream"),{fetching:HLe}=Nb(),{makeRequest:XLe}=VA(),{webidl:Fi}=st(),{EventSourceStream:VLe}=n$(),{parseMIMEType:YLe}=Zt(),{createFastMessageEvent:JLe}=ZA(),{isNetworkError:o$}=Ib(),{delay:jLe}=fN(),{kEnumerableProperty:Cu}=He(),{environmentSettingsObject:s$}=Ir(),i$=!1,a$=3e3,Gb=0,c$=1,Hb=2,$Le="anonymous",KLe="use-credentials",ol=class t extends EventTarget{static{i(this,"EventSource")}#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Gb;#o=null;#s=null;#a;#i;constructor(e,r={}){super(),Fi.util.markAsUncloneable(this);let n="EventSource constructor";Fi.argumentLengthCheck(arguments,1,n),i$||(i$=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Fi.converters.USVString(e,n,"url"),r=Fi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#i={lastEventId:"",reconnectionTime:a$};let o=s$,s;try{s=new URL(e,o.settingsObject.baseUrl),this.#i.origin=s.origin}catch(u){throw new DOMException(u,"SyntaxError")}this.#t=s.href;let a=$Le;r.withCredentials&&(a=KLe,this.#n=!0);let c={redirect:"follow",keepalive:!0,mode:"cors",credentials:a==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};c.client=s$.settingsObject,c.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],c.cache="no-store",c.initiator="other",c.urlList=[new URL(this.#t)],this.#o=XLe(c),this.#u()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#u(){if(this.#r===Hb)return;this.#r=Gb;let e={request:this.#o,dispatcher:this.#a},r=i(n=>{o$(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()},"processEventSourceEndOfBody");e.processResponseEndOfBody=r,e.processResponse=n=>{if(o$(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let o=n.headersList.get("content-type",!0),s=o!==null?YLe(o):"failure",a=s!=="failure"&&s.essence==="text/event-stream";if(n.status!==200||a===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=c$,this.dispatchEvent(new Event("open")),this.#i.origin=n.urlList[n.urlList.length-1].origin;let c=new VLe({eventSourceSettings:this.#i,push:i(u=>{this.dispatchEvent(JLe(u.type,u.options))},"push")});GLe(n.body.stream,c,u=>{u?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=HLe(e)}async#c(){this.#r!==Hb&&(this.#r=Gb,this.dispatchEvent(new Event("error")),await jLe(this.#i.reconnectionTime),this.#r===Gb&&(this.#i.lastEventId.length&&this.#o.headersList.set("last-event-id",this.#i.lastEventId,!0),this.#u()))}close(){Fi.brandCheck(this,t),this.#r!==Hb&&(this.#r=Hb,this.#s.abort(),this.#o=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}},u$={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Gb,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:c$,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Hb,writable:!1}};Object.defineProperties(ol,u$);Object.defineProperties(ol.prototype,u$);Object.defineProperties(ol.prototype,{close:Cu,onerror:Cu,onmessage:Cu,onopen:Cu,readyState:Cu,url:Cu,withCredentials:Cu});Fi.converters.EventSourceInitDict=Fi.dictionaryConverter([{key:"withCredentials",converter:Fi.converters.boolean,defaultValue:i(()=>!1,"defaultValue")},{key:"dispatcher",converter:Fi.converters.any}]);p$.exports={EventSource:ol,defaultReconnectionTime:a$}});var il=m((dI0,ze)=>{"use strict";var ZLe=SA(),l$=Yd(),eQe=FA(),tQe=uX(),rQe=WA(),nQe=P5(),oQe=FX(),sQe=QX(),d$=i0(),ig=He(),{InvalidArgumentError:sg}=d$,sl=BV(),iQe=jd(),aQe=ER(),cQe=aY(),uQe=BR(),pQe=uR(),AQe=cO(),{getGlobalDispatcher:b$,setGlobalDispatcher:lQe}=hO(),dQe=zO(),bQe=$z(),MQe=Kz();Object.assign(l$.prototype,sl);ze.exports.Dispatcher=l$;ze.exports.Client=ZLe;ze.exports.Pool=eQe;ze.exports.BalancedPool=tQe;ze.exports.Agent=rQe;ze.exports. Line truncated
%s`,W,W,B,n);var x=B.type==="*"?Cw:B.type==="?"?Ew:"\\"+B.type;o=!0,n=n.slice(0,B.reStart)+x+"\\("+W}z(),s&&(n+="\\\\");var Q=!1;switch(n.charAt(0)){case"[":case".":case"(":Q=!0}for(var ue=c.length-1;ue>-1;ue--){var qe=c[ue],Qe=n.slice(0,qe.reStart),Re=n.slice(qe.reStart,qe.reEnd-8),ge=n.slice(qe.reEnd-8,qe.reEnd),Ue=n.slice(qe.reEnd);ge+=Ue;var pe=Qe.split("(").length-1,Ge=Ue;for(g=0;g<pe;g++)Ge=Ge.replace(/\)[+*?]?/,"");Ue=Ge;var J="";Ue===""&&e!==Ng&&(J="$");var _e=Qe+Re+Ue+J+ge;n=_e}if(n!==""&&o&&(n="(?=.)"+n),Q&&(n=b+n),e===Ng)return[n,o];if(!o)return wke(t);var g0=r.nocase?"i":"";try{var ft=new RegExp("^"+n+"$",g0)}catch{return new RegExp("$.")}return ft._glob=t,ft._src=n,ft}i(Rke,"parse");Pr.makeRe=function(t,e){return new ct(t,e||{}).makeRe()};ct.prototype.makeRe=Nke;function Nke(){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?Cw:e.dot?Eke:Cke,n=e.nocase?"i":"",o=t.map(function(s){return s.map(function(a){return a===yw?r:typeof a=="string"?Ske(a):a._src}).join("\\/")}).join("|");o="^(?:"+o+")$",this.negate&&(o="^(?!"+o+").*$");try{this.regexp=new RegExp(o,n)}catch{this.regexp=!1}return this.regexp}i(Nke,"makeRe");Pr.match=function(t,e,r){r=r||{};var n=new ct(e,r);return t=t.filter(function(o){return n.match(o)}),n.options.nonull&&!t.length&&t.push(e),t};ct.prototype.match=i(function(e,r){if(typeof r>"u"&&(r=this.partial),this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;var n=this.options;dM.sep!=="/"&&(e=e.split(dM.sep).join("/")),e=e.split(zee),this.debug(this.pattern,"split",e);var o=this.set;this.debug(this.pattern,"set",o);var s,a;for(a=e.length-1;a>=0&&(s=e[a],!s);a--);for(a=0;a<o.length;a++){var c=o[a],u=e;n.matchBase&&c.length===1&&(u=[s]);var p=this.matchOne(u,c,r);if(p)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate},"match");ct.prototype.matchOne=function(t,e,r){var n=this.options;this.debug("matchOne",{this:this,file:t,pattern:e}),this.debug("matchOne",t.length,e.length);for(var o=0,s=0,a=t.length,c=e.length;o<a&&s<c;o++,s++){this.debug("matchOne loop");var u=e[s],p=t[o];if(this.debug(e,u,p),u===!1)return!1;if(u===yw){this.debug("GLOBSTAR",[e,u,p]);var A=o,l=s+1;if(l===c){for(this.debug("** at the end");o<a;o++)if(t[o]==="."||t[o]===".."||!n.dot&&t[o].charAt(0)===".")return!1;return!0}for(;A<a;){var b=t[A];if(this.debug(`
globstar while`,t,A,e,l,b),this.matchOne(t.slice(A),e.slice(l),r))return this.debug("globstar found match!",A,a,b),!0;if(b==="."||b===".."||!n.dot&&b.charAt(0)==="."){this.debug("dot detected!",t,A,e,l);break}this.debug("globstar swallow a segment, and continue"),A++}return!!(r&&(this.debug(`
>>> no match, partial?`,t,A,e,l),A===a))}var f;if(typeof u=="string"?(f=p===u,this.debug("string match",u,p,f)):(f=p.match(u),this.debug("pattern match",u,p,f)),!f)return!1}if(o===a&&s===c)return!0;if(o===a)return r;if(s===c)return o===a-1&&t[o]==="";throw new Error("wtf?")};function wke(t){return t.replace(/\\(.)/g,"$1")}i(wke,"globUnescape");function Ske(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}i(Ske,"regExpEscape")});var ml=m((Uw0,qee)=>{"use strict";var _ke="2.0.0",Pke=Number.MAX_SAFE_INTEGER||9007199254740991,kke=16,Uke=250,Gke=["major","premajor","minor","preminor","patch","prepatch","prerelease"];qee.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:kke,MAX_SAFE_BUILD_LENGTH:Uke,MAX_SAFE_INTEGER:Pke,RELEASE_TYPES:Gke,SEMVER_SPEC_VERSION:_ke,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var fM=m((Gw0,Dee)=>{"use strict";var Hke=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Dee.exports=Hke});var hl=m((rs,Iee)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:qw,MAX_SAFE_BUILD_LENGTH:Xke,MAX_LENGTH:Vke}=ml(),Yke=fM();rs=Iee.exports={};var Jke=rs.re=[],jke=rs.safeRe=[],Z=rs.src=[],$ke=rs.safeSrc=[],ee=rs.t={},Kke=0,Dw="[a-zA-Z0-9-]",Zke=[["\\s",1],["\\d",Vke],[Dw,Xke]],e7e=i(t=>{for(let[e,r]of Zke)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t},"makeSafeRegex"),Fe=i((t,e,r)=>{let n=e7e(e),o=Kke++;Yke(t,o,e),ee[t]=o,Z[o]=e,$ke[o]=n,Jke[o]=new RegExp(e,r?"g":void 0),jke[o]=new RegExp(n,r?"g":void 0)},"createToken");Fe("NUMERICIDENTIFIER","0|[1-9]\\d*");Fe("NUMERICIDENTIFIERLOOSE","\\d+");Fe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${Dw}*`);Fe("MAINVERSION",`(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})\\.(${Z[ee.NUMERICIDENTIFIER]})`);Fe("MAINVERSIONLOOSE",`(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})\\.(${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASEIDENTIFIER",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIER]})`);Fe("PRERELEASEIDENTIFIERLOOSE",`(?:${Z[ee.NONNUMERICIDENTIFIER]}|${Z[ee.NUMERICIDENTIFIERLOOSE]})`);Fe("PRERELEASE",`(?:-(${Z[ee.PRERELEASEIDENTIFIER]}(?:\\.${Z[ee.PRERELEASEIDENTIFIER]})*))`);Fe("PRERELEASELOOSE",`(?:-?(${Z[ee.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${Z[ee.PRERELEASEIDENTIFIERLOOSE]})*))`);Fe("BUILDIDENTIFIER",`${Dw}+`);Fe("BUILD",`(?:\\+(${Z[ee.BUILDIDENTIFIER]}(?:\\.${Z[ee.BUILDIDENTIFIER]})*))`);Fe("FULLPLAIN",`v?${Z[ee.MAINVERSION]}${Z[ee.PRERELEASE]}?${Z[ee.BUILD]}?`);Fe("FULL",`^${Z[ee.FULLPLAIN]}$`);Fe("LOOSEPLAIN",`[v=\\s]*${Z[ee.MAINVERSIONLOOSE]}${Z[ee.PRERELEASELOOSE]}?${Z[ee.BUILD]}?`);Fe("LOOSE",`^${Z[ee.LOOSEPLAIN]}$`);Fe("GTLT","((?:<|>)?=?)");Fe("XRANGEIDENTIFIERLOOSE",`${Z[ee.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Fe("XRANGEIDENTIFIER",`${Z[ee.NUMERICIDENTIFIER]}|x|X|\\*`);Fe("XRANGEPLAIN",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:\\.(${Z[ee.XRANGEIDENTIFIER]})(?:${Z[ee.PRERELEASE]})?${Z[ee.BUILD]}?)?)?`);Fe("XRANGEPLAINLOOSE",`[v=\\s]*(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:\\.(${Z[ee.XRANGEIDENTIFIERLOOSE]})(?:${Z[ee.PRERELEASELOOSE]})?${Z[ee.BUILD]}?)?)?`);Fe("XRANGE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAIN]}$`);Fe("XRANGELOOSE",`^${Z[ee.GTLT]}\\s*${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${qw}})(?:\\.(\\d{1,${qw}}))?(?:\\.(\\d{1,${qw}}))?`);Fe("COERCE",`${Z[ee.COERCEPLAIN]}(?:$|[^\\d])`);Fe("COERCEFULL",Z[ee.COERCEPLAIN]+`(?:${Z[ee.PRERELEASE]})?(?:${Z[ee.BUILD]})?(?:$|[^\\d])`);Fe("COERCERTL",Z[ee.COERCE],!0);Fe("COERCERTLFULL",Z[ee.COERCEFULL],!0);Fe("LONETILDE","(?:~>?)");Fe("TILDETRIM",`(\\s*)${Z[ee.LONETILDE]}\\s+`,!0);rs.tildeTrimReplace="$1~";Fe("TILDE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAIN]}$`);Fe("TILDELOOSE",`^${Z[ee.LONETILDE]}${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("LONECARET","(?:\\^)");Fe("CARETTRIM",`(\\s*)${Z[ee.LONECARET]}\\s+`,!0);rs.caretTrimReplace="$1^";Fe("CARET",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAIN]}$`);Fe("CARETLOOSE",`^${Z[ee.LONECARET]}${Z[ee.XRANGEPLAINLOOSE]}$`);Fe("COMPARATORLOOSE",`^${Z[ee.GTLT]}\\s*(${Z[ee.LOOSEPLAIN]})$|^$`);Fe("COMPARATOR",`^${Z[ee.GTLT]}\\s*(${Z[ee.FULLPLAIN]})$|^$`);Fe("COMPARATORTRIM",`(\\s*)${Z[ee.GTLT]}\\s*(${Z[ee.LOOSEPLAIN]}|${Z[ee.XRANGEPLAIN]})`,!0);rs.comparatorTrimReplace="$1$2$3";Fe("HYPHENRANGE",`^\\s*(${Z[ee.XRANGEPLAIN]})\\s+-\\s+(${Z[ee.XRANGEPLAIN]})\\s*$`);Fe("HYPHENRANGELOOSE",`^\\s*(${Z[ee.XRANGEPLAINLOOSE]})\\s+-\\s+(${Z[ee.XRANGEPLAINLOOSE]})\\s*$`);Fe("STAR","(<|>)?=?\\s*\\*");Fe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Fe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var Wg=m((Xw0,Ree)=>{"use strict";var t7e=Object.freeze({loose:!0}),r7e=Object.freeze({}),n7e=i(t=>t?typeof t!="object"?t7e:t:r7e,"parseOptions");Ree.exports=n7e});var Iw=m((Yw0,See)=>{"use strict";var Nee=/^[0-9]+$/,wee=i((t,e)=>{if(typeof t=="number"&&typeof e=="number")return t===e?0:t<e?-1:1;let r=Nee.test(t),n=Nee.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&! Line truncated
`).join(`
`+i),t.push(n+"m+"+kI.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Cmt()+e+" "+t[0]}o(ymt,"formatArgs");function Cmt(){return Er.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(Cmt,"getDate");function Bmt(...t){return process.stderr.write(QI.format(...t)+`
`)}o(Bmt,"log");function Dmt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(Dmt,"save");function qmt(){return process.env.DEBUG}o(qmt,"load");function Imt(t){t.inspectOpts={};let e=Object.keys(Er.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Er.inspectOpts[e[r]]}o(Imt,"init");kI.exports=Ok()(Er);var{formatters:bMe}=kI.exports;bMe.o=function(t){return this.inspectOpts.colors=this.useColors,QI.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};bMe.O=function(t){return this.inspectOpts.colors=this.useColors,QI.inspect(t,this.inspectOpts)}});var c2=b((hy0,Bk)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Bk.exports=lMe():Bk.exports=mMe()});var zMe=b(en=>{"use strict";var Rmt=en&&en.__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]})),wmt=en&&en.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),MMe=en&&en.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rmt(e,t,r);return wmt(e,t),e};Object.defineProperty(en,"__esModule",{value:!0});en.req=en.json=en.toBuffer=void 0;var Smt=MMe(require("http")),Nmt=MMe(require("https"));async function gMe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(gMe,"toBuffer");en.toBuffer=gMe;async function Fmt(t){let r=(await gMe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(Fmt,"json");en.json=Fmt;function vmt(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Nmt:Smt).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(vmt,"req");en.req=vmt});var CMe=b(Yn=>{"use strict";var EMe=Yn&&Yn.__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]})),Tmt=Yn&&Yn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yMe=Yn&&Yn.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&EMe(e,t,r);return Tmt(e,t),e},xmt=Yn&&Yn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&EMe(e,t,r)};Object.defineProperty(Yn,"__esModule",{value:!0});Yn.Agent=void 0;var _mt=yMe(require("net")),OMe=yMe(require("http")),Wmt=require("https");xmt(zMe(),Yn);var $a=Symbol("AgentBaseInternalState"),Dk=class extends OMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[$a]={}}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 _mt.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)?Wmt.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 OMe.Agent)try{return c.addRequest(e,n)}catch(u){return s(u)}this[$a].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[$a].currentSocket;if(this[$a].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[$a].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[$a]&&(this[$a].defaultPort=e)}get protocol(){return this[$a].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[$a]&&(this[$a].protocol=e)}};Yn.Agent=Dk});var BMe=b(Xb=>{"use strict";var Lmt=Xb&&Xb.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xb,"__esModule",{value:!0});Xb.parseProxyResponse=void 0;var Pmt=Lmt(c2()),UI=(0,Pmt.default)("https-proxy-agent:parse-proxy-response");function Qmt(t){return new Promise((e,r)=>{let s=0,n=[];function i(){let l=t.read();l?p(l):t.once("readable",i)}o(i,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",i)}o(a,"cleanup");function c(){a(),UI("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}o(c,"onend");function u(l){a(),UI("onerror %o",l),r(l)}o(u,"onerror");function p(l){n.push(l),s+=l.length;let A=Buffer.concat(n,s),d=A.indexOf(`\r
`+s),t.push(o+"m+"+z3.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=UGe()+e+" "+t[0]}i(kGe,"formatArgs");function UGe(){return At.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(UGe,"getDate");function GGe(...t){return process.stderr.write(h3.format(...t)+`
`)}i(GGe,"log");function HGe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(HGe,"save");function XGe(){return process.env.DEBUG}i(XGe,"load");function VGe(t){t.inspectOpts={};let e=Object.keys(At.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=At.inspectOpts[e[r]]}i(VGe,"init");z3.exports=f6()(At);var{formatters:Ate}=z3.exports;Ate.o=function(t){return this.inspectOpts.colors=this.useColors,h3.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Ate.O=function(t){return this.inspectOpts.colors=this.useColors,h3.inspect(t,this.inspectOpts)}});var O3=m((xW0,O6)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?O6.exports=ite():O6.exports=lte()});var Mte=m(ir=>{"use strict";var YGe=ir&&ir.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),JGe=ir&&ir.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dte=ir&&ir.__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)&&YGe(e,t,r);return JGe(e,t),e};Object.defineProperty(ir,"__esModule",{value:!0});ir.req=ir.json=ir.toBuffer=void 0;var jGe=dte(require("http")),$Ge=dte(require("https"));async function bte(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(bte,"toBuffer");ir.toBuffer=bte;async function KGe(t){let r=(await bte(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(KGe,"json");ir.json=KGe;function ZGe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?$Ge:jGe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(ZGe,"req");ir.req=ZGe});var zte=m(Hr=>{"use strict";var mte=Hr&&Hr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),eHe=Hr&&Hr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),hte=Hr&&Hr.__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)&&mte(e,t,r);return eHe(e,t),e},tHe=Hr&&Hr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&mte(e,t,r)};Object.defineProperty(Hr,"__esModule",{value:!0});Hr.Agent=void 0;var rHe=hte(require("net")),fte=hte(require("http")),nHe=require("https");tHe(Mte(),Hr);var is=Symbol("AgentBaseInternalState"),g6=class extends fte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[is]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new rHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?nHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof fte.Agent)try{return c.addRequest(e,o)}catch(u){return n(u)}this[is].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[is].currentSocket;if(this[is].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[is].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[is]&&(this[is].defaultPort=e)}get protocol(){return this[is].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[is]&&(this[is].protocol=e)}};Hr.Agent=g6});var Ote=m(Il=>{"use strict";var oHe=Il&&Il.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Il,"__esModule",{value:!0});Il.parseProxyResponse=void 0;var sHe=oHe(O3()),g3=(0,sHe.default)("https-proxy-agent:parse-proxy-response");function iHe(t){return new Promise((e,r)=>{let n=0,o=[];function s(){let A=t.read();A?p(A):t.once("readable",s)}i(s,"read");function a(){t.removeListener("end",c),t.removeListener("error",u),t.removeListener("readable",s)}i(a,"cleanup");function c(){a(),g3("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}i(c,"onend");function u(A){a(),g3("onerror %o",A),r(A)}i(u,"onerror");function p(A){o.push(A),n+=A.length;let l=Buffer.concat(o,n),b=l.indexOf(`\r
\r
`);if(d===-1){UI("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),M=h.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=M.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),P=B[N];typeof P=="string"?B[N]=[P,x]:Array.isArray(P)?P.push(x):B[N]=x}UI("got proxy server response: %o %o",M,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(Qmt,"parseProxyResponse");Xb.parseProxyResponse=Qmt});var SMe=b(ki=>{"use strict";var kmt=ki&&ki.__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]})),Umt=ki&&ki.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),RMe=ki&&ki.__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)&&kmt(e,t,r);return Umt(e,t),e},wMe=ki&&ki.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ki,"__esModule",{value:!0});ki.HttpsProxyAgent=void 0;var GI=RMe(require("net")),DMe=RMe(require("tls")),Gmt=wMe(require("assert")),Hmt=wMe(c2()),Xmt=CMe(),Vmt=require("url"),$mt=BMe(),n3=(0,Hmt.default)("https-proxy-agent"),qMe=o(t=>t.servername===void 0&&t.host&&!GI.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),HI=class extends Xmt.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Vmt.URL(e):e,this.proxyHeaders=r?.headers??{},n3("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?IMe(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:"?(n3("Creating `tls.Socket`: %o",this.connectOpts),n=DMe.connect(qMe(this.connectOpts))):(n3("Creating `net.Socket`: %o",this.connectOpts),n=GI.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=GI.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,$mt.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",jmt),r.secureEndpoint?(n3("Upgrading socket connection to TLS"),DMe.connect({...IMe(qMe(r),"host","path","port"),socket:n})):n;n.destroy();let A=new GI.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{n3("Replaying proxy buffer for failed request"),(0,Gmt.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};HI.protocols=["http","https"];ki.HttpsProxyAgent=HI;function jmt(t){t.resume()}o(jmt,"resume");function IMe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(IMe,"omit")});var vMe=b(tn=>{"use strict";var Ymt=tn&&tn.__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]})),Jmt=tn&&tn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NMe=tn&&tn.__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)&&Ymt(e,t,r);return Jmt(e,t),e};Object.defineProperty(tn,"__esModule",{value:!0});tn.req=tn.json=tn.toBuffer=void 0;var Kmt=NMe(require("http")),Zmt=NMe(require("https"));async function FMe(t){let e=0,r=[];for await(let s of t)e+=s.length,r.push(s);return Buffer.concat(r,e)}o(FMe,"toBuffer");tn.toBuffer=FMe;async function eMt(t){let r=(await FMe(t)).toString("utf8");try{return JSON.parse(r)}catch(s){let n=s;throw n.message+=` (input: ${r})`,n}}o(eMt,"json");tn.json=eMt;function tMt(t,e={}){let s=((typeof t=="string"?t:t.href).startsWith("https:")?Zmt:Kmt).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(tMt,"req");tn.req=tMt});var i3=b(Jn=>{"use strict";var xMe=Jn&&Jn.__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]})),rMt=Jn&&Jn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_Me=Jn&&Jn.__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)&&xMe(e,t,r);return rMt(e,t),e},sMt=Jn&&Jn.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&xMe(e,t,r)};Object.defineProperty(Jn,"__esModule",{value:!0});Jn.Agent=void 0;var nMt=_Me(require("net")),TMe=_Me(require("http")),iMt=require("https");sMt(vMe(),Jn);var ja=Symbol("AgentBaseInternalState"),qk=class extends TMe.Agent{static{o(this,"Agent")}constructor(e){super(e),this[ja]={}}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 nMt.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))?iMt.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 TMe.Agent)return c.addRequest(e,n);this[ja].currentSocket=c,super.createSocket(e,r,s)},c=>{this.decrementSockets(i,a),s(c)})}createConnection(){let e=this[ja].currentSocket;if(this[ja].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[ja].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[ja]&&(this[ja].defaultPort=e)}get protocol(){return this[ja].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[ja]&&(this[ja].protocol=e)}};Jn.Agent=qk});var Ik=b(Ui=>{"use strict";var oMt=Ui&&Ui.__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]})),aMt=Ui&&Ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),LMe=Ui&&Ui.__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)&&oMt(e,t,r);return aMt(e,t),e},cMt=Ui&&Ui.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ui,"__esModule",{value:!0});Ui.HttpProxyAgent=void 0;var uMt=LMe(require("net")),pMt=LMe(require("tls")),lMt=cMt(c2()),AMt=require("events"),dMt=i3(),WMe=require("url"),Vb=(0,lMt.default)("http-proxy-agent"),XI=class extends dMt.Agent{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new WMe.URL(e):e,this.proxyHeaders=r?.headers??{},Vb("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?fMt(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 WMe.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(s.username||s.password){let p=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let l=u[p];l&&e.setHeader(p,l)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let s,n;Vb("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Vb("Patching connection write() output buffer with updated header"),s=e.outputData[0].data,n=s.indexOf(`\r
`);if(b===-1){g3("have not received end of HTTP headers yet..."),s();return}let f=l.slice(0,b).toString("ascii").split(`\r
`),z=f.shift();if(!z)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=z.split(" "),y=+g[1],E=g.slice(2).join(" "),B={};for(let q of f){if(!q)continue;let I=q.indexOf(":");if(I===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${q}"`));let W=q.slice(0,I).toLowerCase(),x=q.slice(I+1).trimStart(),Q=B[W];typeof Q=="string"?B[W]=[Q,x]:Array.isArray(Q)?Q.push(x):B[W]=x}g3("got proxy server response: %o %o",z,B),a(),e({connect:{statusCode:y,statusText:E,headers:B},buffered:l})}i(p,"ondata"),t.on("error",u),t.on("end",c),s()})}i(iHe,"parseProxyResponse");Il.parseProxyResponse=iHe});var qte=m(qn=>{"use strict";var aHe=qn&&qn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),cHe=qn&&qn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),yte=qn&&qn.__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)&&aHe(e,t,r);return cHe(e,t),e},Bte=qn&&qn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(qn,"__esModule",{value:!0});qn.HttpsProxyAgent=void 0;var E3=yte(require("net")),gte=yte(require("tls")),uHe=Bte(require("assert")),pHe=Bte(O3()),AHe=zte(),lHe=require("url"),dHe=Ote(),wM=(0,pHe.default)("https-proxy-agent"),Ete=i(t=>t.servername===void 0&&t.host&&!E3.isIP(t.host)?{...t,servername:t.host}:t,"setServernameFromNonIpHost"),C3=class extends AHe.Agent{static{i(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new lHe.URL(e):e,this.proxyHeaders=r?.headers??{},wM("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Cte(r,"headers"):null,host:n,port:o}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let o;n.protocol==="https:"?(wM("Creating `tls.Socket`: %o",this.connectOpts),o=gte.connect(Ete(this.connectOpts))):(wM("Creating `net.Socket`: %o",this.connectOpts),o=E3.connect(this.connectOpts));let s=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=E3.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let b=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;s["Proxy-Authorization"]=`Basic ${Buffer.from(b).toString("base64")}`}s.Host=`${a}:${r.port}`,s["Proxy-Connection"]||(s["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let b of Object.keys(s))c+=`${b}: ${s[b]}\r
`;let u=(0,dHe.parseProxyResponse)(o);o.write(`${c}\r
`);let{connect:p,buffered:A}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200)return e.once("socket",bHe),r.secureEndpoint?(wM("Upgrading socket connection to TLS"),gte.connect({...Cte(Ete(r),"host","path","port"),socket:o})):o;o.destroy();let l=new E3.Socket({writable:!1});return l.readable=!0,e.once("socket",b=>{wM("Replaying proxy buffer for failed request"),(0,uHe.default)(b.listenerCount("data")>0),b.push(A),b.push(null)}),l}};C3.protocols=["http","https"];qn.HttpsProxyAgent=C3;function bHe(t){t.resume()}i(bHe,"resume");function Cte(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(Cte,"omit")});var Rte=m(ar=>{"use strict";var MHe=ar&&ar.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),fHe=ar&&ar.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dte=ar&&ar.__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)&&MHe(e,t,r);return fHe(e,t),e};Object.defineProperty(ar,"__esModule",{value:!0});ar.req=ar.json=ar.toBuffer=void 0;var mHe=Dte(require("http")),hHe=Dte(require("https"));async function Ite(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}i(Ite,"toBuffer");ar.toBuffer=Ite;async function zHe(t){let r=(await Ite(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let o=n;throw o.message+=` (input: ${r})`,o}}i(zHe,"json");ar.json=zHe;function OHe(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?hHe:mHe).request(t,e),o=new Promise((s,a)=>{n.once("response",s).once("error",a).end()});return n.then=o.then.bind(o),n}i(OHe,"req");ar.req=OHe});var Fte=m(Xr=>{"use strict";var wte=Xr&&Xr.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),gHe=Xr&&Xr.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ste=Xr&&Xr.__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)&&wte(e,t,r);return gHe(e,t),e},EHe=Xr&&Xr.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&wte(e,t,r)};Object.defineProperty(Xr,"__esModule",{value:!0});Xr.Agent=void 0;var CHe=Ste(require("net")),Nte=Ste(require("http")),yHe=require("https");EHe(Rte(),Xr);var as=Symbol("AgentBaseInternalState"),E6=class extends Nte.Agent{static{i(this,"Agent")}constructor(e){super(e),this[as]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new CHe.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],o=n.indexOf(r);o!==-1&&(n.splice(o,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return(typeof e.secureEndpoint=="boolean"?e.secureEndpoint:this.isSecureEndpoint(e))?yHe.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let o={...r,secureEndpoint:this.isSecureEndpoint(r)},s=this.getName(o),a=this.incrementSockets(s);Promise.resolve().then(()=>this.connect(e,o)).then(c=>{if(this.decrementSockets(s,a),c instanceof Nte.Agent)return c.addRequest(e,o);this[as].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(s,a),n(c)})}createConnection(){let e=this[as].currentSocket;if(this[as].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[as].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[as]&&(this[as].defaultPort=e)}get protocol(){return this[as].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[as]&&(this[as].protocol=e)}};Xr.Agent=E6});var Tte=m(Dn=>{"use strict";var BHe=Dn&&Dn.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),qHe=Dn&&Dn.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xte=Dn&&Dn.__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)&&BHe(e,t,r);return qHe(e,t),e},DHe=Dn&&Dn.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Dn,"__esModule",{value:!0});Dn.HttpProxyAgent=void 0;var IHe=xte(require("net")),RHe=xte(require("tls")),NHe=DHe(O3()),wHe=require("events"),SHe=Fte(),Wte=require("url"),Rl=(0,NHe.default)("http-proxy-agent"),y3=class extends SHe.Agent{static{i(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new Wte.URL(e):e,this.proxyHeaders=r?.headers??{},Rl("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),o=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?FHe(r,"headers"):null,host:n,port:o}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,o=r.secureEndpoint?"https:":"http:",s=e.getHeader("host")||"localhost",a=`${o}//${s}`,c=new Wte.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let u=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let p=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;u["Proxy-Authorization"]=`Basic ${Buffer.from(p).toString("base64")}`}u["Proxy-Connection"]||(u["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let p of Object.keys(u)){let A=u[p];A&&e.setHeader(p,A)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,o;Rl("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Rl("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,o=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+s.substring(n),Vb("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Vb("Creating `tls.Socket`: %o",this.connectOpts),i=pMt.connect(this.connectOpts)):(Vb("Creating `net.Socket`: %o",this.connectOpts),i=uMt.connect(this.connectOpts)),await(0,AMt.once)(i,"connect"),i}};XI.protocols=["http","https"];Ui.HttpProxyAgent=XI;function fMt(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(fMt,"omit")});var age=b(oR=>{"use strict";Object.defineProperty(oR,"__esModule",{value:!0});oR.state=void 0;oR.state={instrumenterImplementation:void 0}});var Cge=b(lR=>{"use strict";Object.defineProperty(lR,"__esModule",{value:!0});lR.state=void 0;lR.state={operationRequestMap:new WeakMap}});var r3e=b(lm=>{"use strict";Object.defineProperty(lm,"__esModule",{value:!0});var vEt=require("os"),TEt=require("util");function xEt(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}o(xEt,"_interopDefaultLegacy");var _Et=xEt(TEt);function WEt(t,...e){process.stderr.write(`${_Et.default.format(t,...e)}${vEt.EOL}`)}o(WEt,"log");var XOe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,$Oe,oH=[],aH=[],w5=[];XOe&&cH(XOe);var jOe=Object.assign(t=>YOe(t),{enable:cH,enabled:uH,disable:LEt,log:WEt});function cH(t){$Oe=t,oH=[],aH=[];let e=/\*/g,r=t.split(",").map(s=>s.trim().replace(e,".*?"));for(let s of r)s.startsWith("-")?aH.push(new RegExp(`^${s.substr(1)}$`)):oH.push(new RegExp(`^${s}$`));for(let s of w5)s.enabled=uH(s.namespace)}o(cH,"enable");function uH(t){if(t.endsWith("*"))return!0;for(let e of aH)if(e.test(t))return!1;for(let e of oH)if(e.test(t))return!0;return!1}o(uH,"enabled");function LEt(){let t=$Oe||"";return cH(""),t}o(LEt,"disable");function YOe(t){let e=Object.assign(r,{enabled:uH(t),destroy:PEt,log:jOe.log,namespace:t,extend:QEt});function r(...s){e.enabled&&(s.length>0&&(s[0]=`${t} ${s[0]}`),e.log(...s))}return o(r,"debug"),w5.push(e),e}o(YOe,"createDebugger");function PEt(){let t=w5.indexOf(this);return t>=0?(w5.splice(t,1),!0):!1}o(PEt,"destroy");function QEt(t){let e=YOe(`${this.namespace}:${t}`);return e.log=this.log,e}o(QEt,"extend");var X3=jOe,JOe=new Set,I5=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,S5,N5=X3("azure");N5.log=(...t)=>{X3.log(...t)};var pH=["verbose","info","warning","error"];I5&&(t3e(I5)?KOe(I5):console.error(`AZURE_LOG_LEVEL set to unknown log level '${I5}'; logging is not enabled. Acceptable values: ${pH.join(", ")}.`));function KOe(t){if(t&&!t3e(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${pH.join(",")}`);S5=t;let e=[];for(let r of JOe)e3e(r)&&e.push(r.namespace);X3.enable(e.join(","))}o(KOe,"setLogLevel");function kEt(){return S5}o(kEt,"getLogLevel");var VOe={verbose:400,info:300,warning:200,error:100};function UEt(t){let e=N5.extend(t);return ZOe(N5,e),{error:R5(e,"error"),warning:R5(e,"warning"),info:R5(e,"info"),verbose:R5(e,"verbose")}}o(UEt,"createClientLogger");function ZOe(t,e){e.log=(...r)=>{t.log(...r)}}o(ZOe,"patchLogMethod");function R5(t,e){let r=Object.assign(t.extend(e),{level:e});if(ZOe(t,r),e3e(r)){let s=X3.disable();X3.enable(s+","+r.namespace)}return JOe.add(r),r}o(R5,"createLogger");function e3e(t){return!!(S5&&VOe[t.level]<=VOe[S5])}o(e3e,"shouldEnable");function t3e(t){return pH.includes(t)}o(t3e,"isAzureLogLevel");lm.AzureLogger=N5;lm.createClientLogger=UEt;lm.getLogLevel=kEt;lm.setLogLevel=KOe});var dH=b($3=>{"use strict";Object.defineProperty($3,"__esModule",{value:!0});var Am=new WeakMap,F5=new WeakMap,V3=class t{static{o(this,"AbortSignal")}constructor(){this.onabort=null,Am.set(this,[]),F5.set(this,!1)}get aborted(){if(!F5.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return F5.get(this)}static get none(){return new t}addEventListener(e,r){if(!Am.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Am.get(this).push(r)}removeEventListener(e,r){if(!Am.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let s=Am.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 s3e(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Am.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),F5.set(t,!0)}o(s3e,"abortSignal");var lH=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},AH=class{static{o(this,"AbortController")}constructor(e){if(this._signal=new V3,!!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(){s3e(this._signal)}static timeout(e){let r=new V3,s=setTimeout(s3e,e,r);return typeof s.unref=="function"&&s.unref(),r}};$3.AbortController=AH;$3.AbortError=lH;$3.AbortSignal=V3});var c3e=b(U0=>{"use strict";Object.defineP Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(o),Rl("Output buffer: %o",e.outputData[0].data));let s;return this.proxy.protocol==="https:"?(Rl("Creating `tls.Socket`: %o",this.connectOpts),s=RHe.connect(this.connectOpts)):(Rl("Creating `net.Socket`: %o",this.connectOpts),s=IHe.connect(this.connectOpts)),await(0,wHe.once)(s,"connect"),s}};y3.protocols=["http","https"];Dn.HttpProxyAgent=y3;function FHe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}i(FHe,"omit")});var ore=m(L3=>{"use strict";Object.defineProperty(L3,"__esModule",{value:!0});L3.state=void 0;L3.state={instrumenterImplementation:void 0}});var gre=m(U3=>{"use strict";Object.defineProperty(U3,"__esModule",{value:!0});U3.state=void 0;U3.state={operationRequestMap:new WeakMap}});var Zoe=m(Vl=>{"use strict";Object.defineProperty(Vl,"__esModule",{value:!0});var Zje=require("os"),e$e=require("util");function t$e(t){return t&&typeof t=="object"&&"default"in t?t:{default:t}}i(t$e,"_interopDefaultLegacy");var r$e=t$e(e$e);function n$e(t,...e){process.stderr.write(`${r$e.default.format(t,...e)}${Zje.EOL}`)}i(n$e,"log");var Uoe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Hoe,eT=[],tT=[],cC=[];Uoe&&rT(Uoe);var Xoe=Object.assign(t=>Voe(t),{enable:rT,enabled:nT,disable:o$e,log:n$e});function rT(t){Hoe=t,eT=[],tT=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?tT.push(new RegExp(`^${n.substr(1)}$`)):eT.push(new RegExp(`^${n}$`));for(let n of cC)n.enabled=nT(n.namespace)}i(rT,"enable");function nT(t){if(t.endsWith("*"))return!0;for(let e of tT)if(e.test(t))return!1;for(let e of eT)if(e.test(t))return!0;return!1}i(nT,"enabled");function o$e(){let t=Hoe||"";return rT(""),t}i(o$e,"disable");function Voe(t){let e=Object.assign(r,{enabled:nT(t),destroy:s$e,log:Xoe.log,namespace:t,extend:i$e});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return i(r,"debug"),cC.push(e),e}i(Voe,"createDebugger");function s$e(){let t=cC.indexOf(this);return t>=0?(cC.splice(t,1),!0):!1}i(s$e,"destroy");function i$e(t){let e=Voe(`${this.namespace}:${t}`);return e.log=this.log,e}i(i$e,"extend");var zf=Xoe,Yoe=new Set,iC=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,uC,pC=zf("azure");pC.log=(...t)=>{zf.log(...t)};var oT=["verbose","info","warning","error"];iC&&(Koe(iC)?Joe(iC):console.error(`AZURE_LOG_LEVEL set to unknown log level '${iC}'; logging is not enabled. Acceptable values: ${oT.join(", ")}.`));function Joe(t){if(t&&!Koe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${oT.join(",")}`);uC=t;let e=[];for(let r of Yoe)$oe(r)&&e.push(r.namespace);zf.enable(e.join(","))}i(Joe,"setLogLevel");function a$e(){return uC}i(a$e,"getLogLevel");var Goe={verbose:400,info:300,warning:200,error:100};function c$e(t){let e=pC.extend(t);return joe(pC,e),{error:aC(e,"error"),warning:aC(e,"warning"),info:aC(e,"info"),verbose:aC(e,"verbose")}}i(c$e,"createClientLogger");function joe(t,e){e.log=(...r)=>{t.log(...r)}}i(joe,"patchLogMethod");function aC(t,e){let r=Object.assign(t.extend(e),{level:e});if(joe(t,r),$oe(r)){let n=zf.disable();zf.enable(n+","+r.namespace)}return Yoe.add(r),r}i(aC,"createLogger");function $oe(t){return!!(uC&&Goe[t.level]<=Goe[uC])}i($oe,"shouldEnable");function Koe(t){return oT.includes(t)}i(Koe,"isAzureLogLevel");Vl.AzureLogger=pC;Vl.createClientLogger=c$e;Vl.getLogLevel=a$e;Vl.setLogLevel=Joe});var aT=m(gf=>{"use strict";Object.defineProperty(gf,"__esModule",{value:!0});var Yl=new WeakMap,AC=new WeakMap,Of=class t{static{i(this,"AbortSignal")}constructor(){this.onabort=null,Yl.set(this,[]),AC.set(this,!1)}get aborted(){if(!AC.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");return AC.get(this)}static get none(){return new t}addEventListener(e,r){if(!Yl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");Yl.get(this).push(r)}removeEventListener(e,r){if(!Yl.has(this))throw new TypeError("Expected `this` to be an instance of AbortSignal.");let n=Yl.get(this),o=n.indexOf(r);o>-1&&n.splice(o,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 ese(t){if(t.aborted)return;t.onabort&&t.onabort.call(t);let e=Yl.get(t);e&&e.slice().forEach(r=>{r.call(t,{type:"abort"})}),AC.set(t,!0)}i(ese,"abortSignal");var sT=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}},iT=class{static{i(this,"AbortController")}constructor(e){if(this._signal=new Of,!!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(){ese(this._signal)}static timeout(e){let r=new Of,n=setTimeout(ese,e,r);return typeof n.unref=="function"&&n.unref(),r}};gf.AbortController=iT;gf.AbortError=sT;gf.AbortSignal=Of});var sse=m(c1=>{"use strict";Object.defineP Line truncated
Polling from: ${r.config.operationLocation}
Operation status: ${l}
Polling status: ${A3e.includes(l)?"Stopped":"Running"}`),l==="succeeded"){let A=a(p,r);if(A!==void 0)return{response:await e(A).catch(p3e({state:r,stateProxy:s,isOperationError:c})),status:l}}return{response:p,status:l}}o(gyt,"pollOperationHelper");async function b3e(t){let{poll:e,state:r,stateProxy:s,options:n,getOperationStatus:i,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:l,processResult:A,getError:d,updateState:h,setDelay:M,isDone:z,setErrorAsResult:C}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:I}=await gyt({poll:e,getOperationStatus:i,state:r,stateProxy:s,operationLocation:E,getResourceLocation:a,isOperationError:u,options:n});if(f3e({status:I,response:B,state:r,stateProxy:s,isDone:z,processResult:A,getError:d,setErrorAsResult:C}),!A3e.includes(I)){let w=l?.(B);w&&M(w);let N=c?.(B,r);if(N!==void 0){let x=E!==N;r.config.operationLocation=N,p?.(N,x)}else p?.(E,!1)}h?.(r,B)}}o(b3e,"pollOperation");function m3e(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}o(m3e,"getOperationLocationPollingUrl");function M3e(t){return t.headers.location}o(M3e,"getLocationHeader");function g3e(t){return t.headers["operation-location"]}o(g3e,"getOperationLocationHeader");function z3e(t){return t.headers["azure-asyncoperation"]}o(z3e,"getAzureAsyncOperationHeader");function zyt(t){var e;let{location:r,requestMethod:s,requestPath:n,resourceLocationConfig:i}=t;switch(s){case"PUT":return n;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:n;default:return a()}function a(){switch(i){case"azure-async-operation":return;case"original-uri":return n;default:return r}}o(a,"getDefault")}o(zyt,"findResourceLocation");function O3e(t){let{rawResponse:e,requestMethod:r,requestPath:s,resourceLocationConfig:n}=t,i=g3e(e),a=z3e(e),c=m3e({operationLocation:i,azureAsyncOperation:a}),u=M3e(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:zyt({requestMethod:p,location:u,requestPath:s,resourceLocationConfig:n})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&s?{mode:"Body",operationLocation:s}:void 0}o(O3e,"inferLroMode");function E3e(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 CH(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 D2.verbose(`LRO: unrecognized operation status: ${e}`),e}}o(E3e,"transformStatus");function Oyt(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return E3e({status:r,statusCode:t.statusCode})}o(Oyt,"getStatus");function Eyt(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 E3e({status:i,statusCode:t.statusCode})}o(Eyt,"getProvisioningState");function CH(t){return t===202?"running":t<300?"succeeded":"failed"}o(CH,"toOperationStatus");function y3e({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?yyt(new Date(e)):r*1e3}}o(y3e,"parseRetryAfter");function C3e(t){let e=t.flatResponse.error;if(!e){D2.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){D2.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(C3e,"getErrorFromResponse");function yyt(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}o(yyt,"calculatePollingIntervalFromDate");function B3e(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 CH(e.rawResponse.statusCode);case"Body":return BH(e,r);default:return"running"}}o(n,"helper");let i=n();return i==="running"&&s===void 0?"succeeded":i}o(B3e,"getStatusFromInitialResponse");async function Cyt(t){let{stateProxy:e,resourceLocationConfig:r,processResult:s,lro:n,setErrorAsResult:i}=t;return h3e({init:o(async()=>{let a=await n.sendInitialRequest(),c=O3e({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:B3e,setErrorAsResult:i})}o(Cyt,"initHttpOperation");function D3e({rawResponse:t},e){var r;switchLine 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(aCt,"base64decode");Mm.base64decode=aCt;function cCt(t){let e="",r=0,s,n=0;for(let i=0;i<t.length;i++)switch(s=t[i],r){case 0:e+=up[s>>2],n=(s&3)<<4,r=1;break;case 1:e+=up[n|s>>4],n=(s&15)<<2,r=2;break;case 2:e+=up[n|s>>6],e+=up[s&63],r=0;break}return r&&(e+=up[n],e+="=",r==1&&(e+="=")),e}o(cCt,"base64encode");Mm.base64encode=cCt});var rEe=b(K5=>{"use strict";Object.defineProperty(K5,"__esModule",{value:!0});K5.utf8read=void 0;var TH=o(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function uCt(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(TH(s)),n=0);return r.length?(n&&r.push(TH(s.slice(0,n))),r.join("")):TH(s.slice(0,n))}o(uCt,"utf8read");K5.utf8read=uCt});var rE=b(Oc=>{"use strict";Object.defineProperty(Oc,"__esModule",{value:!0});Oc.WireType=Oc.mergeBinaryOptions=Oc.UnknownFieldHandler=void 0;var pCt;(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")})(pCt=Oc.UnknownFieldHandler||(Oc.UnknownFieldHandler={}));function lCt(t,e){return Object.assign(Object.assign({},t),e)}o(lCt,"mergeBinaryOptions");Oc.mergeBinaryOptions=lCt;var ACt;(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"})(ACt=Oc.WireType||(Oc.WireType={}))});var ew=b(un=>{"use strict";Object.defineProperty(un,"__esModule",{value:!0});un.varint32read=un.varint32write=un.int64toString=un.int64fromString=un.varint64write=un.varint64read=void 0;function dCt(){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(dCt,"varint64read");un.varint64read=dCt;function fCt(t,e,r){for(let i=0;i<28;i=i+7){let a=t>>>i,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!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),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}o(fCt,"varint64write");un.varint64write=fCt;var Z5=65536*65536;function hCt(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,s=0,n=0;function i(a,c){let u=Number(t.slice(a,c));n*=r,s=s*r+u,s>=Z5&&(n=n+(s/Z5|0),s=s%Z5)}return o(i,"add1e6digit"),i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,s,n]}o(hCt,"int64fromString");un.int64fromString=hCt;function bCt(t,e){if(e>>>0<=2097151)return""+(Z5*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,u=1e7;i>=u&&(a+=Math.floor(i/u),i%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(l,A){let d=l?String(l):"";return A?"0000000".slice(d.length)+d:d}return o(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(i,1)}o(bCt,"int64toString");un.int64toString=bCt;function mCt(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(mCt,"varint32write");un.varint32write=mCt;function MCt(){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(MCt,"varint32read");un.varint32read=MCt});var dA=b(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});AA.PbLong=AA.PbULong=AA.detectBi=void 0;var sE=ew(),Kt;function sEe(){let t=new DataView(new ArrayBuffer(8));Kt=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};qw.RpcError=cX});var pX=b(Rw=>{"use strict";Object.defineProperty(Rw,"__esModule",{value:!0});Rw.mergeRpcOptions=void 0;var TEe=c1();function P4t(t,e){if(!e)return t;let r={};Iw(t,r),Iw(e,r);for(let s of Object.keys(e)){let n=e[s];switch(s){case"jsonOptions":r.jsonOptions=TEe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=TEe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},Iw(t.meta,r.meta),Iw(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(n):n.concat();break}}return r}o(P4t,"mergeRpcOptions");Rw.mergeRpcOptions=P4t;function Iw(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(Iw,"copy")});var AX=b(S2=>{"use strict";Object.defineProperty(S2,"__esModule",{value:!0});S2.Deferred=S2.DeferredState=void 0;var Cc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Cc=S2.DeferredState||(S2.DeferredState={}));var lX=class{static{o(this,"Deferred")}constructor(e=!0){this._state=Cc.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!==Cc.PENDING)throw new Error(`cannot resolve ${Cc[this.state].toLowerCase()}`);this._resolve(e),this._state=Cc.RESOLVED}reject(e){if(this.state!==Cc.PENDING)throw new Error(`cannot reject ${Cc[this.state].toLowerCase()}`);this._reject(e),this._state=Cc.REJECTED}resolvePending(e){this._state===Cc.PENDING&&this.resolve(e)}rejectPending(e){this._state===Cc.PENDING&&this.reject(e)}};S2.Deferred=lX});var fX=b(ww=>{"use strict";Object.defineProperty(ww,"__esModule",{value:!0});ww.RpcOutputStreamController=void 0;var xEe=AX(),N2=c1(),dX=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){N2.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){N2.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){N2.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(){N2.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;N2.assert(e,"bad state"),N2.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 xEe.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let s=r.p;N2.assert(s.state==xEe.DeferredState.PENDING,"iterator contract broken"),"value"in e?s.resolve(e):s.reject(e),delete r.p}else r.q.push(e)}};ww.RpcOutputStreamController=dX});var bX=b(Bm=>{"use strict";var Q4t=Bm&&Bm.__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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};Object.defineProperty(Bm,"__esModule",{value:!0});Bm.UnaryCall=void 0;var hX=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 Q4t(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}})}};Bm.UnaryCall=hX});var MX=b(Dm=>{"use strict";var k4t=Dm&&Dm.__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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function Line truncated
Operation status: ${A}
Polling status: ${use.includes(A)?"Stopped":"Running"}`),A==="succeeded"){let l=a(p,r);if(l!==void 0)return{response:await e(l).catch(ase({state:r,stateProxy:n,isOperationError:c})),status:A}}return{response:p,status:A}}i(L$e,"pollOperationHelper");async function dse(t){let{poll:e,state:r,stateProxy:n,options:o,getOperationStatus:s,getResourceLocation:a,getOperationLocation:c,isOperationError:u,withOperationLocation:p,getPollingInterval:A,processResult:l,getError:b,updateState:f,setDelay:z,isDone:g,setErrorAsResult:y}=t,{operationLocation:E}=r.config;if(E!==void 0){let{response:B,status:q}=await L$e({poll:e,getOperationStatus:s,state:r,stateProxy:n,operationLocation:E,getResourceLocation:a,isOperationError:u,options:o});if(Ase({status:q,response:B,state:r,stateProxy:n,isDone:g,processResult:l,getError:b,setErrorAsResult:y}),!use.includes(q)){let I=A?.(B);I&&z(I);let W=c?.(B,r);if(W!==void 0){let x=E!==W;r.config.operationLocation=W,p?.(W,x)}else p?.(E,!1)}f?.(r,B)}}i(dse,"pollOperation");function bse(t){let{azureAsyncOperation:e,operationLocation:r}=t;return r??e}i(bse,"getOperationLocationPollingUrl");function Mse(t){return t.headers.location}i(Mse,"getLocationHeader");function fse(t){return t.headers["operation-location"]}i(fse,"getOperationLocationHeader");function mse(t){return t.headers["azure-asyncoperation"]}i(mse,"getAzureAsyncOperationHeader");function Q$e(t){var e;let{location:r,requestMethod:n,requestPath:o,resourceLocationConfig:s}=t;switch(n){case"PUT":return o;case"DELETE":return;case"PATCH":return(e=a())!==null&&e!==void 0?e:o;default:return a()}function a(){switch(s){case"azure-async-operation":return;case"original-uri":return o;default:return r}}i(a,"getDefault")}i(Q$e,"findResourceLocation");function hse(t){let{rawResponse:e,requestMethod:r,requestPath:n,resourceLocationConfig:o}=t,s=fse(e),a=mse(e),c=bse({operationLocation:s,azureAsyncOperation:a}),u=Mse(e),p=r?.toLocaleUpperCase();return c!==void 0?{mode:"OperationLocation",operationLocation:c,resourceLocation:Q$e({requestMethod:p,location:u,requestPath:n,resourceLocationConfig:o})}:u!==void 0?{mode:"ResourceLocation",operationLocation:u}:p==="PUT"&&n?{mode:"Body",operationLocation:n}:void 0}i(hse,"inferLroMode");function zse(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 hT(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 rp.verbose(`LRO: unrecognized operation status: ${e}`),e}}i(zse,"transformStatus");function _$e(t){var e;let{status:r}=(e=t.body)!==null&&e!==void 0?e:{};return zse({status:r,statusCode:t.statusCode})}i(_$e,"getStatus");function P$e(t){var e,r;let{properties:n,provisioningState:o}=(e=t.body)!==null&&e!==void 0?e:{},s=(r=n?.provisioningState)!==null&&r!==void 0?r:o;return zse({status:s,statusCode:t.statusCode})}i(P$e,"getProvisioningState");function hT(t){return t===202?"running":t<300?"succeeded":"failed"}i(hT,"toOperationStatus");function Ose({rawResponse:t}){let e=t.headers["retry-after"];if(e!==void 0){let r=parseInt(e);return isNaN(r)?k$e(new Date(e)):r*1e3}}i(Ose,"parseRetryAfter");function gse(t){let e=t.flatResponse.error;if(!e){rp.warning("The long-running operation failed but there is no error property in the response's body");return}if(!e.code||!e.message){rp.warning("The long-running operation failed but the error property in the response's body doesn't contain code or message");return}return e}i(gse,"getErrorFromResponse");function k$e(t){let e=Math.floor(new Date().getTime()),r=t.getTime();if(e<r)return r-e}i(k$e,"calculatePollingIntervalFromDate");function Ese(t){let{response:e,state:r,operationLocation:n}=t;function o(){var a;switch((a=r.config.metadata)===null||a===void 0?void 0:a.mode){case void 0:return hT(e.rawResponse.statusCode);case"Body":return zT(e,r);default:return"running"}}i(o,"helper");let s=o();return s==="running"&&n===void 0?"succeeded":s}i(Ese,"getStatusFromInitialResponse");async function U$e(t){let{stateProxy:e,resourceLocationConfig:r,processResult:n,lro:o,setErrorAsResult:s}=t;return lse({init:i(async()=>{let a=await o.sendInitialRequest(),c=hse({rawResponse:a.rawResponse,requestPath:o.requestPath,requestMethod:o.requestMethod,resourceLocationConfig:r});return Object.assign({response:a,operationLocation:c?.operationLocation,resourceLocation:c?.resourceLocation},c?.mode?{metadata:{mode:c.mode}}:{})},"init"),stateProxy:e,processResult:n?({flatResponse:a},c)=>n(a,c):({flatResponse:a})=>a,getOperationStatus:Ese,setErrorAsResult:s})}i(U$e,"initHttpOperation");function Cse({rawResponse:t},e){var r;switchLine truncated
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(o){case 0:a=s,o=1;break;case 1:r[n++]=a<<2|(s&48)>>4,a=s,o=2;break;case 2:r[n++]=(a&15)<<4|(s&60)>>2,a=s,o=3;break;case 3:r[n++]=(a&3)<<6|s,o=0;break}}if(o==1)throw Error("invalid base64 string.");return r.subarray(0,n)}i(qKe,"base64decode");e2.base64decode=qKe;function DKe(t){let e="",r=0,n,o=0;for(let s=0;s<t.length;s++)switch(n=t[s],r){case 0:e+=ta[n>>2],o=(n&3)<<4,r=1;break;case 1:e+=ta[o|n>>4],o=(n&15)<<2,r=2;break;case 2:e+=ta[o|n>>6],e+=ta[n&63],r=0;break}return r&&(e+=ta[o],e+="=",r==1&&(e+="=")),e}i(DKe,"base64encode");e2.base64encode=DKe});var Zse=m(NC=>{"use strict";Object.defineProperty(NC,"__esModule",{value:!0});NC.utf8read=void 0;var RT=i(t=>String.fromCharCode.apply(String,t),"fromCharCodes");function IKe(t){if(t.length<1)return"";let e=0,r=[],n=[],o=0,s,a=t.length;for(;e<a;)s=t[e++],s<128?n[o++]=s:s>191&&s<224?n[o++]=(s&31)<<6|t[e++]&63:s>239&&s<365?(s=((s&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[o++]=55296+(s>>10),n[o++]=56320+(s&1023)):n[o++]=(s&15)<<12|(t[e++]&63)<<6|t[e++]&63,o>8191&&(r.push(RT(n)),o=0);return r.length?(o&&r.push(RT(n.slice(0,o))),r.join("")):RT(n.slice(0,o))}i(IKe,"utf8read");NC.utf8read=IKe});var Rf=m(Fs=>{"use strict";Object.defineProperty(Fs,"__esModule",{value:!0});Fs.WireType=Fs.mergeBinaryOptions=Fs.UnknownFieldHandler=void 0;var RKe;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,o,s,a)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:o,wireType:s,data:a})},t.onWrite=(r,n,o)=>{for(let{no:s,wireType:a,data:c}of t.list(n))o.tag(s,a).raw(c)},t.list=(r,n)=>{if(e(r)){let o=r[t.symbol];return n?o.filter(s=>s.no==n):o}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=i(r=>r&&Array.isArray(r[t.symbol]),"is")})(RKe=Fs.UnknownFieldHandler||(Fs.UnknownFieldHandler={}));function NKe(t,e){return Object.assign(Object.assign({},t),e)}i(NKe,"mergeBinaryOptions");Fs.mergeBinaryOptions=NKe;var wKe;(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"})(wKe=Fs.WireType||(Fs.WireType={}))});var SC=m(br=>{"use strict";Object.defineProperty(br,"__esModule",{value:!0});br.varint32read=br.varint32write=br.int64toString=br.int64fromString=br.varint64write=br.varint64read=void 0;function SKe(){let t=0,e=0;for(let n=0;n<28;n+=7){let o=this.buf[this.pos++];if(t|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let o=this.buf[this.pos++];if(e|=(o&127)<<n,(o&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}i(SKe,"varint64read");br.varint64read=SKe;function FKe(t,e,r){for(let s=0;s<28;s=s+7){let a=t>>>s,c=!(!(a>>>7)&&e==0),u=(c?a|128:a)&255;if(r.push(u),!c)return}let n=t>>>28&15|(e&7)<<4,o=e>>3!=0;if(r.push((o?n|128:n)&255),!!o){for(let s=3;s<31;s=s+7){let a=e>>>s,c=!!(a>>>7),u=(c?a|128:a)&255;if(r.push(u),!c)return}r.push(e>>>31&1)}}i(FKe,"varint64write");br.varint64write=FKe;var wC=65536*65536;function WKe(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,o=0;function s(a,c){let u=Number(t.slice(a,c));o*=r,n=n*r+u,n>=wC&&(o=o+(n/wC|0),n=n%wC)}return i(s,"add1e6digit"),s(-24,-18),s(-18,-12),s(-12,-6),s(-6),[e,n,o]}i(WKe,"int64fromString");br.int64fromString=WKe;function xKe(t,e){if(e>>>0<=2097151)return""+(wC*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,o=e>>16&65535,s=r+n*6777216+o*6710656,a=n+o*8147497,c=o*2,u=1e7;s>=u&&(a+=Math.floor(s/u),s%=u),a>=u&&(c+=Math.floor(a/u),a%=u);function p(A,l){let b=A?String(A):"";return l?"0000000".slice(b.length)+b:b}return i(p,"decimalFrom1e7"),p(c,0)+p(a,c)+p(s,1)}i(xKe,"int64toString");br.int64toString=xKe;function TKe(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)}}i(TKe,"varint32write");br.varint32write=TKe;function vKe(){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}i(vKe,"varint32read");br.varint32read=vKe});var mc=m(fc=>{"use strict";Object.defineProperty(fc,"__esModule",{value:!0});fc.PbLong=fc.PbULong=fc.detectBi=void 0;var Nf=SC(),E0;function eie(){let t=new DataView(new ArrayBuffer(8));E0=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("922337203685477580 Line truncated
`)}};sy.RpcError=rv});var ov=m(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});ay.mergeRpcOptions=void 0;var Sie=C1();function se0(t,e){if(!e)return t;let r={};iy(t,r),iy(e,r);for(let n of Object.keys(e)){let o=e[n];switch(n){case"jsonOptions":r.jsonOptions=Sie.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Sie.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},iy(t.meta,r.meta),iy(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(o):o.concat();break}}return r}i(se0,"mergeRpcOptions");ay.mergeRpcOptions=se0;function iy(t,e){if(!t)return;let r=e;for(let[n,o]of Object.entries(t))o instanceof Date?r[n]=new Date(o.getTime()):Array.isArray(o)?r[n]=o.concat():r[n]=o}i(iy,"copy")});var iv=m(ap=>{"use strict";Object.defineProperty(ap,"__esModule",{value:!0});ap.Deferred=ap.DeferredState=void 0;var Ts;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ts=ap.DeferredState||(ap.DeferredState={}));var sv=class{static{i(this,"Deferred")}constructor(e=!0){this._state=Ts.PENDING,this._promise=new Promise((r,n)=>{this._resolve=r,this._reject=n}),e&&this._promise.catch(r=>{})}get state(){return this._state}get promise(){return this._promise}resolve(e){if(this.state!==Ts.PENDING)throw new Error(`cannot resolve ${Ts[this.state].toLowerCase()}`);this._resolve(e),this._state=Ts.RESOLVED}reject(e){if(this.state!==Ts.PENDING)throw new Error(`cannot reject ${Ts[this.state].toLowerCase()}`);this._reject(e),this._state=Ts.REJECTED}resolvePending(e){this._state===Ts.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ts.PENDING&&this.reject(e)}};ap.Deferred=sv});var cv=m(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});cy.RpcOutputStreamController=void 0;var Fie=iv(),cp=C1(),av=class{static{i(this,"RpcOutputStreamController")}constructor(){this._lis={nxt:[],msg:[],err:[],cmp:[]},this._closed=!1,this._itState={q:[]}}onNext(e){return this.addLis(e,this._lis.nxt)}onMessage(e){return this.addLis(e,this._lis.msg)}onError(e){return this.addLis(e,this._lis.err)}onComplete(e){return this.addLis(e,this._lis.cmp)}addLis(e,r){return r.push(e),()=>{let n=r.indexOf(e);n>=0&&r.splice(n,1)}}clearLis(){for(let e of Object.values(this._lis))e.splice(0,e.length)}get closed(){return this._closed!==!1}notifyNext(e,r,n){cp.assert((e?1:0)+(r?1:0)+(n?1:0)<=1,"only one emission at a time"),e&&this.notifyMessage(e),r&&this.notifyError(r),n&&this.notifyComplete()}notifyMessage(e){cp.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){cp.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(){cp.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:i(()=>{let e=this._itState;cp.assert(e,"bad state"),cp.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 Fie.Deferred,e.p.promise)},"next")}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;cp.assert(n.state==Fie.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};cy.RpcOutputStreamController=av});var pv=m(a2=>{"use strict";var ie0=a2&&a2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};Object.defineProperty(a2,"__esModule",{value:!0});a2.UnaryCall=void 0;var uv=class{static{i(this,"UnaryCall")}constructor(e,r,n,o,s,a,c){this.method=e,this.requestHeaders=r,this.request=n,this.headers=o,this.response=s,this.status=a,this.trailers=c}then(e,r){return this.promiseFinished().then(n=>e?Promise.resolve(e(n)):n,n=>r?Promise.resolve(r(n)):Promise.reject(n))}promiseFinished(){return ie0(this,void 0,void 0,function*(){let[e,r,n,o]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:o}})}};a2.UnaryCall=uv});var lv=m(c2=>{"use strict";var ae0=c2&&c2.__awaiter||function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(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(cwt,"logUnexpecedPropertyAccessOnce");function uwt(){Object.keys(DS).forEach(function(t){delete DS[t]})}o(uwt,"resetLoggedProperties")});var IS=b(Ic=>{"use strict";Ic.__esModule=!0;Ic.HandlebarsEnvironment=a$;function WBe(t){return t&&t.__esModule?t:{default:t}}o(WBe,"_interopRequireDefault");var Q2=ys(),pwt=ai(),i$=WBe(pwt),lwt=t$(),Awt=vBe(),dwt=s$(),qS=WBe(dwt),fwt=n$(),hwt="4.7.9";Ic.VERSION=hwt;var bwt=8;Ic.COMPILER_REVISION=bwt;var mwt=7;Ic.LAST_COMPATIBLE_COMPILER_REVISION=mwt;var Mwt={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"};Ic.REVISION_CHANGES=Mwt;var o$="[object Object]";function a$(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},lwt.registerDefaultHelpers(this),Awt.registerDefaultDecorators(this)}o(a$,"HandlebarsEnvironment");a$.prototype={constructor:a$,logger:qS.default,log:qS.default.log,registerHelper:o(function(e,r){if(Q2.toString.call(e)===o$){if(r)throw new i$.default("Arg not supported with multiple helpers");Q2.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(Q2.toString.call(e)===o$)Q2.extend(this.partials,e);else{if(typeof r>"u")throw new i$.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(Q2.toString.call(e)===o$){if(r)throw new i$.default("Arg not supported with multiple decorators");Q2.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:o(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:o(function(){fwt.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var gwt=qS.default.log;Ic.log=gwt;Ic.createFrame=Q2.createFrame;Ic.logger=qS.default});var PBe=b((RS,LBe)=>{"use strict";RS.__esModule=!0;function c$(t){this.string=t}o(c$,"SafeString");c$.prototype.toString=c$.prototype.toHTML=function(){return""+this.string};RS.default=c$;LBe.exports=RS.default});var QBe=b(u$=>{"use strict";u$.__esModule=!0;u$.wrapHelper=zwt;function zwt(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(zwt,"wrapHelper")});var VBe=b(gA=>{"use strict";gA.__esModule=!0;gA.checkRevision=Dwt;gA.template=qwt;gA.wrapProgram=wS;gA.resolvePartial=Iwt;gA.invokePartial=Rwt;gA.noop=HBe;function Owt(t){return t&&t.__esModule?t:{default:t}}o(Owt,"_interopRequireDefault");function Ewt(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(Ewt,"_interopRequireWildcard");var ywt=ys(),km=Ewt(ywt),Cwt=ai(),fp=Owt(Cwt),hp=IS(),kBe=t$(),Bwt=QBe(),UBe=n$();function Dwt(t){var e=t&&t[0]||1,r=hp.COMPILER_REVISION;if(!(e>=hp.LAST_COMPATIBLE_COMPILER_REVISION&&e<=hp.COMPILER_REVISION))if(e<hp.LAST_COMPATIBLE_COMPILER_REVISION){var s=hp.REVISION_CHANGES[r],n=hp.REVISION_CHANGES[e];throw new fp.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 fp.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(Dwt,"checkRevision");function qwt(t,e){if(!e)throw new fp.default("No environment passed to template");if(!t||!t.main)throw new fp.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,u){u.hash&&(c=km.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var p=e.VM.invokePartial.call(this,a,c,u);if(p==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),p=u.partials[u.name](c,u)),p!=null){if(u.indent){for(var l=p.split(`
`),A=0,d=l.length;A<d&&!(!l[A]&&A+1===d);A++)l[A]=u.indent+l[A];p=l.join(`
`)}return p}else throw new fp.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}o(s,"invokePartialWrapper");var n={strict:o(function(c,u,p){if(!c||!(u in c))throw new fp.default('"'+u+'" not defined in '+c,{loc:p});return n.lookupProperty(c,u)},"strict"),lookupProperty:o(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||UBe.resultIsAllowed(p,n.protoAccessControl,u))return p},"lookupProperty"),lookup:o(function(c,u){for(var p=c.length,l=0;l<p;l++){var A=c[l]&&n.lookupProperty(c[l],u);if(A!=null)return A}},"lookup"),lambda:o(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:km.escapeExpression,invokePartial:s,fn:o(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:o(function(c,u,p,l,A){var d=this.programs[c],h=this.fn(c);return u||A||l||p?d=wS(this,c,h,u,p,l,A):d||(d=this.programs[c]=wS(this,c,h)),d},"program"),data:o(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:o(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=km.extend({},u,c)),p},"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],u=c.data;i._setup(c),!c.partial&&t.useData&&(u=wwt(a,u));var p=void 0,l=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function A(d){return""+t.main(n,d,n.helpers,n.partials,u,l,p)}return o(A,"main"),A=XBe(t.main,A,n,c.depths||[],u,l),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={};GBe(c,e.helpers,n),GBe(c,a.helpers,n),n.helpers=c,t.usePartial&&(n.partials=n.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(n.decorators=km.extend({},e.decorators,a.decorators)),n.hooks={},n.protoAccessControl=UBe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;kBe.moveHelperToHooks(n,"helperMissing",u),kBe.moveHelperToHooks(n,"blockHelperMissing",u)}},i._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new fp.default("must pass block params");if(t.useDepths&&!p)throw new fp.default("must pass parent depths");return wS(n,a,t[a],c,0,u,p)},i}o(qwt,"template");function wS(t,e,r,s,n,i,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],l=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(l=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||s,i&&[p.blockParams].concat(i),l)}return o(c,"prog"),c=XBe(r,c,t,a,s,i),c.program=e,c.depth=a?a.length:0,c.blockParams=n||0,c}o(wS,"wrapProgram");function Iwt(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=SS(r.partials,t)):r.name==="@partial-block"?t=SS(r.data,"partial-block"):t=SS(r.partials,r.name),t}o(Iwt,"resolvePartial");function Rwt(t,e,r){var s=SS(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!==HBe&&(function(){r.data=hp.createFrame(r.data);var i=r.fn;n=r.data["partial-block"]=o(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=hp.createFrame(u.data),u.data["partial-block"]=s,i(c,u)},"partialBlockWrapper"),i.partials&&(r.partials=km.extend({},r.partials,i.partials))})(),t===void 0&&n&&(t=n),t===void 0)throw new fp.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}o(Rwt,"invokePartial");function HBe(){return""}o(HBe,"noop");function SS(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}o(SS,"lookupOwnProperty");function wwt(t,e){return(!e||!("root"in e))&&(e=e?hp.createFrame(e):{},e.root=t),e}o(wwt,"initData");function XBe(t,e,r,s,n,i){if(t.decorator){var a={};e=t.decorator(e,a,r,s&&s[0],n,i,s),km.extend(e,a)}return e}o(XBe,"executeDecorators");function GBe(t,e,r){e&&Object.keys(e).forEach(function(s){var n=e[s];t[s]=Swt(n,r)})}o(GBe,"addHelpers");function Swt(t,e){var r=e.lookupProperty;return Bwt.wrapHelper(t,function(s){return s.lookupProperty=r,s})}o(Swt,"passLookupPropertyOption")});var p$=b((NS,$Be)=>{"use strict";NS.__esModule=!0;NS.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}};$Be.exports=NS.default});var ZBe=b((FS,KBe)=>{"use strict";FS.__esModule=!0;function A$(t){return t&&t.__esModule?t:{default:t}}o(A$,"_interopRequireDefault");function d$(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(d$,"_interopRequireWildcard");var Nwt=IS(),jBe=d$(Nwt),Fwt=PBe(),vwt=A$(Fwt),Twt=ai(),xwt=A$(Twt),_wt=ys(),l$=d$(_wt),Wwt=VBe Line truncated
See https://handlebarsjs.com/api-reference/runtime-options.html#options-to-control-prototype-access for details`))}i(Ro0,"logUnexpecedPropertyAccessOnce");function No0(){Object.keys(o4).forEach(function(t){delete o4[t]})}i(No0,"resetLoggedProperties")});var i4=m(_s=>{"use strict";_s.__esModule=!0;_s.HandlebarsEnvironment=rQ;function xpe(t){return t&&t.__esModule?t:{default:t}}i(xpe,"_interopRequireDefault");var hp=Yt(),wo0=rn(),eQ=xpe(wo0),So0=jL(),Fo0=wpe(),Wo0=KL(),s4=xpe(Wo0),xo0=ZL(),To0="4.7.9";_s.VERSION=To0;var vo0=8;_s.COMPILER_REVISION=vo0;var Lo0=7;_s.LAST_COMPATIBLE_COMPILER_REVISION=Lo0;var Qo0={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"};_s.REVISION_CHANGES=Qo0;var tQ="[object Object]";function rQ(t,e,r){this.helpers=t||{},this.partials=e||{},this.decorators=r||{},So0.registerDefaultHelpers(this),Fo0.registerDefaultDecorators(this)}i(rQ,"HandlebarsEnvironment");rQ.prototype={constructor:rQ,logger:s4.default,log:s4.default.log,registerHelper:i(function(e,r){if(hp.toString.call(e)===tQ){if(r)throw new eQ.default("Arg not supported with multiple helpers");hp.extend(this.helpers,e)}else this.helpers[e]=r},"registerHelper"),unregisterHelper:i(function(e){delete this.helpers[e]},"unregisterHelper"),registerPartial:i(function(e,r){if(hp.toString.call(e)===tQ)hp.extend(this.partials,e);else{if(typeof r>"u")throw new eQ.default('Attempting to register a partial called "'+e+'" as undefined');this.partials[e]=r}},"registerPartial"),unregisterPartial:i(function(e){delete this.partials[e]},"unregisterPartial"),registerDecorator:i(function(e,r){if(hp.toString.call(e)===tQ){if(r)throw new eQ.default("Arg not supported with multiple decorators");hp.extend(this.decorators,e)}else this.decorators[e]=r},"registerDecorator"),unregisterDecorator:i(function(e){delete this.decorators[e]},"unregisterDecorator"),resetLoggedPropertyAccesses:i(function(){xo0.resetLoggedProperties()},"resetLoggedPropertyAccesses")};var _o0=s4.default.log;_s.log=_o0;_s.createFrame=hp.createFrame;_s.logger=s4.default});var vpe=m((a4,Tpe)=>{"use strict";a4.__esModule=!0;function nQ(t){this.string=t}i(nQ,"SafeString");nQ.prototype.toString=nQ.prototype.toHTML=function(){return""+this.string};a4.default=nQ;Tpe.exports=a4.default});var Lpe=m(oQ=>{"use strict";oQ.__esModule=!0;oQ.wrapHelper=Po0;function Po0(t,e){if(typeof t!="function")return t;var r=i(function(){var o=arguments[arguments.length-1];return arguments[arguments.length-1]=e(o),t.apply(this,arguments)},"wrapper");return r}i(Po0,"wrapHelper")});var Gpe=m(Cc=>{"use strict";Cc.__esModule=!0;Cc.checkRevision=Vo0;Cc.template=Yo0;Cc.wrapProgram=c4;Cc.resolvePartial=Jo0;Cc.invokePartial=jo0;Cc.noop=kpe;function ko0(t){return t&&t.__esModule?t:{default:t}}i(ko0,"_interopRequireDefault");function Uo0(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}i(Uo0,"_interopRequireWildcard");var Go0=Yt(),y2=Uo0(Go0),Ho0=rn(),ia=ko0(Ho0),aa=i4(),Qpe=jL(),Xo0=Lpe(),_pe=ZL();function Vo0(t){var e=t&&t[0]||1,r=aa.COMPILER_REVISION;if(!(e>=aa.LAST_COMPATIBLE_COMPILER_REVISION&&e<=aa.COMPILER_REVISION))if(e<aa.LAST_COMPATIBLE_COMPILER_REVISION){var n=aa.REVISION_CHANGES[r],o=aa.REVISION_CHANGES[e];throw new ia.default("Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version ("+n+") or downgrade your runtime to an older version ("+o+").")}else throw new ia.default("Template was precompiled with a newer version of Handlebars than the current runtime. Please update your runtime to a newer version ("+t[1]+").")}i(Vo0,"checkRevision");function Yo0(t,e){if(!e)throw new ia.default("No environment passed to template");if(!t||!t.main)throw new ia.default("Unknown template object: "+typeof t);t.main.decorator=t.main_d,e.VM.checkRevision(t.compiler);var r=t.compiler&&t.compiler[0]===7;function n(a,c,u){u.hash&&(c=y2.extend({},c,u.hash),u.ids&&(u.ids[0]=!0)),a=e.VM.resolvePartial.call(this,a,c,u),u.hooks=this.hooks,u.protoAccessControl=this.protoAccessControl;var p=e.VM.invokePartial.call(this,a,c,u);if(p==null&&e.compile&&(u.partials[u.name]=e.compile(a,t.compilerOptions,e),p=u.partials[u.name](c,u)),p!=null){if(u.indent){for(var A=p.split(`
`),l=0,b=A.length;l<b&&!(!A[l]&&l+1===b);l++)A[l]=u.indent+A[l];p=A.join(`
`)}return p}else throw new ia.default("The partial "+u.name+" could not be compiled when running in runtime-only mode")}i(n,"invokePartialWrapper");var o={strict:i(function(c,u,p){if(!c||!(u in c))throw new ia.default('"'+u+'" not defined in '+c,{loc:p});return o.lookupProperty(c,u)},"strict"),lookupProperty:i(function(c,u){var p=c[u];if(p==null||Object.prototype.hasOwnProperty.call(c,u)||_pe.resultIsAllowed(p,o.protoAccessControl,u))return p},"lookupProperty"),lookup:i(function(c,u){for(var p=c.length,A=0;A<p;A++){var l=c[A]&&o.lookupProperty(c[A],u);if(l!=null)return l}},"lookup"),lambda:i(function(c,u){return typeof c=="function"?c.call(u):c},"lambda"),escapeExpression:y2.escapeExpression,invokePartial:n,fn:i(function(c){var u=t[c];return u.decorator=t[c+"_d"],u},"fn"),programs:[],program:i(function(c,u,p,A,l){var b=this.programs[c],f=this.fn(c);return u||l||A||p?b=c4(this,c,f,u,p,A,l):b||(b=this.programs[c]=c4(this,c,f)),b},"program"),data:i(function(c,u){for(;c&&u--;)c=c._parent;return c},"data"),mergeIfNeeded:i(function(c,u){var p=c||u;return c&&u&&c!==u&&(p=y2.extend({},u,c)),p},"mergeIfNeeded"),nullContext:Object.seal({}),noop:e.VM.noop,compilerInfo:t.compiler};function s(a){var c=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],u=c.data;s._setup(c),!c.partial&&t.useData&&(u=$o0(a,u));var p=void 0,A=t.useBlockParams?[]:void 0;t.useDepths&&(c.depths?p=a!=c.depths[0]?[a].concat(c.depths):c.depths:p=[a]);function l(b){return""+t.main(o,b,o.helpers,o.partials,u,A,p)}return i(l,"main"),l=Upe(t.main,l,o,c.depths||[],u,A),l(a,c)}return i(s,"ret"),s.isTop=!0,s._setup=function(a){if(a.partial)o.protoAccessControl=a.protoAccessControl,o.helpers=a.helpers,o.partials=a.partials,o.decorators=a.decorators,o.hooks=a.hooks;else{var c={};Ppe(c,e.helpers,o),Ppe(c,a.helpers,o),o.helpers=c,t.usePartial&&(o.partials=o.mergeIfNeeded(a.partials,e.partials)),(t.usePartial||t.useDecorators)&&(o.decorators=y2.extend({},e.decorators,a.decorators)),o.hooks={},o.protoAccessControl=_pe.createProtoAccessControl(a);var u=a.allowCallsToHelperMissing||r;Qpe.moveHelperToHooks(o,"helperMissing",u),Qpe.moveHelperToHooks(o,"blockHelperMissing",u)}},s._child=function(a,c,u,p){if(t.useBlockParams&&!u)throw new ia.default("must pass block params");if(t.useDepths&&!p)throw new ia.default("must pass parent depths");return c4(o,a,t[a],c,0,u,p)},s}i(Yo0,"template");function c4(t,e,r,n,o,s,a){function c(u){var p=arguments.length<=1||arguments[1]===void 0?{}:arguments[1],A=a;return a&&u!=a[0]&&!(u===t.nullContext&&a[0]===null)&&(A=[u].concat(a)),r(t,u,t.helpers,t.partials,p.data||n,s&&[p.blockParams].concat(s),A)}return i(c,"prog"),c=Upe(r,c,t,a,n,s),c.program=e,c.depth=a?a.length:0,c.blockParams=o||0,c}i(c4,"wrapProgram");function Jo0(t,e,r){return t?!t.call&&!r.name&&(r.name=t,t=u4(r.partials,t)):r.name==="@partial-block"?t=u4(r.data,"partial-block"):t=u4(r.partials,r.name),t}i(Jo0,"resolvePartial");function jo0(t,e,r){var n=u4(r.data,"partial-block");r.partial=!0,r.ids&&(r.data.contextPath=r.ids[0]||r.data.contextPath);var o=void 0;if(r.fn&&r.fn!==kpe&&(function(){r.data=aa.createFrame(r.data);var s=r.fn;o=r.data["partial-block"]=i(function(c){var u=arguments.length<=1||arguments[1]===void 0?{}:arguments[1];return u.data=aa.createFrame(u.data),u.data["partial-block"]=n,s(c,u)},"partialBlockWrapper"),s.partials&&(r.partials=y2.extend({},r.partials,s.partials))})(),t===void 0&&o&&(t=o),t===void 0)throw new ia.default("The partial "+r.name+" could not be found");if(t instanceof Function)return t(e,r)}i(jo0,"invokePartial");function kpe(){return""}i(kpe,"noop");function u4(t,e){if(t&&Object.prototype.hasOwnProperty.call(t,e))return t[e]}i(u4,"lookupOwnProperty");function $o0(t,e){return(!e||!("root"in e))&&(e=e?aa.createFrame(e):{},e.root=t),e}i($o0,"initData");function Upe(t,e,r,n,o,s){if(t.decorator){var a={};e=t.decorator(e,a,r,n&&n[0],o,s,n),y2.extend(e,a)}return e}i(Upe,"executeDecorators");function Ppe(t,e,r){e&&Object.keys(e).forEach(function(n){var o=e[n];t[n]=Ko0(o,r)})}i(Ppe,"addHelpers");function Ko0(t,e){var r=e.lookupProperty;return Xo0.wrapHelper(t,function(n){return n.lookupProperty=r,n})}i(Ko0,"passLookupPropertyOption")});var sQ=m((p4,Hpe)=>{"use strict";p4.__esModule=!0;p4.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}};Hpe.exports=p4.default});var jpe=m((A4,Jpe)=>{"use strict";A4.__esModule=!0;function aQ(t){return t&&t.__esModule?t:{default:t}}i(aQ,"_interopRequireDefault");function cQ(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}i(cQ,"_interopRequireWildcard");var Zo0=i4(),Xpe=cQ(Zo0),es0=vpe(),ts0=aQ(es0),rs0=rn(),ns0=aQ(rs0),os0=Yt(),iQ=cQ(os0),ss0=Gpe Line truncated
`+this.lexer.showPosition()+`
Expecting `+J.join(", ")+", got '"+(this.terminals_[w]||w)+"'":_e="Parse error on line "+(A+1)+": Unexpected "+(w==1?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(_e,{text:this.lexer.match,token:this.terminals_[w]||w,line:this.lexer.yylineno,loc:C,expected:J})}}if(P[0]instanceof Array&&P.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+w);switch(P[0]){case 1:a.push(w),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(P[1]),w=null,N?(w=N,N=null):(d=this.lexer.yyleng,l=this.lexer.yytext,A=this.lexer.yylineno,C=this.lexer.yylloc,h>0&&h--);break;case 2:if(Se=this.productions_[P[1]][1],we.$=c[c.length-Se],we._$={first_line:u[u.length-(Se||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(Se||1)].first_column,last_column:u[u.length-1].last_column},E&&(we._$.range=[u[u.length-(Se||1)].range[0],u[u.length-1].range[1]]),Ee=this.performAction.call(we,l,d,A,this.yy,P[1],c,u),typeof Ee<"u")return Ee;Se&&(a=a.slice(0,-1*Se*2),c=c.slice(0,-1*Se),u=u.slice(0,-1*Se)),a.push(this.productions_[P[1]][0]),c.push(we.$),u.push(we._$),Y=p[a[a.length-2]][a[a.length-1]],a.push(Y);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 u=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 p=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[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,u,p,l;this._more||(this.yytext="",this.match="");for(var A=this._currentRules(),d=0;d<A.length&&(c=this._input.match(this.rules[A[d]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=d,!this.options.flex)));d++);return a?(l=a[0].match(/(?:\r\n?|\n).*/g),l&&(this.yylineno+=l.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:l?l[l.length-1].length-l[l.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[u],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,u){function p(A,d){return a.yytext=a.yytext.substring(A,a.yyleng-d+A)}o(p,"strip");var l=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(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:(p(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=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(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})();TS.default=Qwt;rDe.exports=TS.default});var LS=b((WS,oDe)=>{"use strict";WS.__esModule=!0;function kwt(t){return t&&t.__esModule?t:{default:t}}o(kwt,"_interopRequireDefault");var Uwt=ai(),h$=kwt(Uwt);function xS(){this.parents=[]}o(xS,"Visitor");xS.prototype={constructor:xS,mutating:!1,acceptKey:o(function(e,r){var s=this.accept(e[r]);if(this.mutating){if(s&&!xS.prototype[s.type])throw new h$.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 h$.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 h$.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:_S,Decorator:_S,BlockStatement:nDe,DecoratorBlock:nDe,PartialStatement:iDe,PartialBlockStatement:o(function(e){iDe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:o(function(){},"ContentStatement"),CommentStatement:o(function(){},"CommentStatement"),SubExpression:_S,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 H2(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 H2?e:(e=_$(e,this,r),new H2(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=_$(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(_$(e[s],this));return r},"generateList"),generateArray:o(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};VS.default=QDe;kDe.exports=VS.default});var $De=b(($S,VDe)=>{"use strict";$S.__esModule=!0;function XDe(t){return t&&t.__esModule?t:{default:t}}o(XDe,"_interopRequireDefault");var GDe=IS(),PSt=ai(),L$=XDe(PSt),QSt=ys(),kSt=UDe(),HDe=XDe(kSt);function $m(t){this.value=t}o($m,"Literal");function jm(){}o(jm,"JavaScriptCompiler");jm.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=GDe.COMPILER_REVISION,r=GDe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:o(function(e,r,s){return QSt.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,u=void 0,p=void 0;for(u=0,p=i.length;u<p;u++)a=i[u],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 L$.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) {
Expecting `+pe.join(", ")+", got '"+(this.terminals_[I]||I)+"'":Ge="Parse error on line "+(l+1)+": Unexpected "+(I==1?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(Ge,{text:this.lexer.match,token:this.terminals_[I]||I,line:this.lexer.yylineno,loc:y,expected:pe})}}if(Q[0]instanceof Array&&Q.length>1)throw new Error("Parse Error: multiple actions possible at state: "+x+", token: "+I);switch(Q[0]){case 1:a.push(I),c.push(this.lexer.yytext),u.push(this.lexer.yylloc),a.push(Q[1]),I=null,W?(I=W,W=null):(b=this.lexer.yyleng,A=this.lexer.yytext,l=this.lexer.yylineno,y=this.lexer.yylloc,f>0&&f--);break;case 2:if(ge=this.productions_[Q[1]][1],Qe.$=c[c.length-ge],Qe._$={first_line:u[u.length-(ge||1)].first_line,last_line:u[u.length-1].last_line,first_column:u[u.length-(ge||1)].first_column,last_column:u[u.length-1].last_column},E&&(Qe._$.range=[u[u.length-(ge||1)].range[0],u[u.length-1].range[1]]),qe=this.performAction.call(Qe,A,b,l,this.yy,Q[1],c,u),typeof qe<"u")return qe;ge&&(a=a.slice(0,-1*ge*2),c=c.slice(0,-1*ge),u=u.slice(0,-1*ge)),a.push(this.productions_[Q[1]][0]),c.push(Qe.$),u.push(Qe._$),Ue=p[a[a.length-2]][a[a.length-1]],a.push(Ue);break;case 3:return!0}}return!0},"parse")},e=(function(){var n={EOF:1,parseError:i(function(s,a){if(this.yy.parser)this.yy.parser.parseError(s,a);else throw new Error(s)},"parseError"),setInput:i(function(s){return this._input=s,this._more=this._less=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var s=this._input[0];this.yytext+=s,this.yyleng++,this.offset++,this.match+=s,this.matched+=s;var a=s.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),s},"input"),unput:i(function(s){var a=s.length,c=s.split(/(?:\r\n?|\n)/g);this._input=s+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a-1),this.offset-=a;var u=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 p=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===u.length?this.yylloc.first_column:0)+u[u.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this},"unput"),more:i(function(){return this._more=!0,this},"more"),less:i(function(s){this.unput(this.match.slice(s))},"less"),pastInput:i(function(){var s=this.matched.substr(0,this.matched.length-this.match.length);return(s.length>20?"...":"")+s.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var s=this.match;return s.length<20&&(s+=this._input.substr(0,20-s.length)),(s.substr(0,20)+(s.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var s=this.pastInput(),a=new Array(s.length+1).join("-");return s+this.upcomingInput()+`
`+a+"^"},"showPosition"),next:i(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var s,a,c,u,p,A;this._more||(this.yytext="",this.match="");for(var l=this._currentRules(),b=0;b<l.length&&(c=this._input.match(this.rules[l[b]]),!(c&&(!a||c[0].length>a[0].length)&&(a=c,u=b,!this.options.flex)));b++);return a?(A=a[0].match(/(?:\r\n?|\n).*/g),A&&(this.yylineno+=A.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:A?A[A.length-1].length-A[A.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+a[0].length},this.yytext+=a[0],this.match+=a[0],this.matches=a,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._input=this._input.slice(a[0].length),this.matched+=a[0],s=this.performAction.call(this,this.yy,this,l[u],this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s||void 0):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:i(function(){var s=this.next();return typeof s<"u"?s:this.lex()},"lex"),begin:i(function(s){this.conditionStack.push(s)},"begin"),popState:i(function(){return this.conditionStack.pop()},"popState"),_currentRules:i(function(){return this.conditions[this.conditionStack[this.conditionStack.length-1]].rules},"_currentRules"),topState:i(function(){return this.conditionStack[this.conditionStack.length-2]},"topState"),pushState:i(function(s){this.begin(s)},"begin")};return n.options={},n.performAction=i(function(s,a,c,u){function p(l,b){return a.yytext=a.yytext.substring(l,a.yyleng-b+l)}i(p,"strip");var A=u;switch(c){case 0:if(a.yytext.slice(-2)==="\\\\"?(p(0,1),this.begin("mu")):a.yytext.slice(-1)==="\\"?(p(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:(p(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=p(1,2).replace(/\\"/g,'"'),80;break;case 32:return a.yytext=p(1,2).replace(/\\'/g,"'"),80;break;case 33:return 85;case 34:return 82;case 35:return 82;case 36:return 83;case 37:return 84;case 38:return 81;case 39:return 75;case 40:return 77;case 41:return 72;case 42:return a.yytext=a.yytext.replace(/\\([\\\]])/g,"$1"),72;break;case 43:return"INVALID";case 44:return 5}},"anonymous"),n.rules=[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^\/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],n.conditions={mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}},n})();t.lexer=e;function r(){this.yy={}}return i(r,"Parser"),r.prototype=t,t.Parser=r,new r})();d4.default=cs0;Zpe.exports=d4.default});var m4=m((f4,nAe)=>{"use strict";f4.__esModule=!0;function us0(t){return t&&t.__esModule?t:{default:t}}i(us0,"_interopRequireDefault");var ps0=rn(),pQ=us0(ps0);function b4(){this.parents=[]}i(b4,"Visitor");b4.prototype={constructor:b4,mutating:!1,acceptKey:i(function(e,r){var n=this.accept(e[r]);if(this.mutating){if(n&&!b4.prototype[n.type])throw new pQ.default('Unexpected node type "'+n.type+'" found when accepting '+r+" on "+e.type);e[r]=n}},"acceptKey"),acceptRequired:i(function(e,r){if(this.acceptKey(e,r),!e[r])throw new pQ.default(e.type+" requires "+r)},"acceptRequired"),acceptArray:i(function(e){for(var r=0,n=e.length;r<n;r++)this.acceptKey(e,r),e[r]||(e.splice(r,1),r--,n--)},"acceptArray"),accept:i(function(e){if(e){if(!this[e.type])throw new pQ.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:i(function(e){this.acceptArray(e.body)},"Program"),MustacheStatement:M4,Decorator:M4,BlockStatement:tAe,DecoratorBlock:tAe,PartialStatement:rAe,PartialBlockStatement:i(function(e){rAe.call(this,e),this.acceptKey(e,"program")},"PartialBlockStatement"),ContentStatement:i(function(){},"ContentStatement"),CommentStatement:i(function(){},"CommentStatement"),SubExpression:M4,PathExpression:i(function(){},"PathExpressionLine truncated
`])}),e},"merge"),each:i(function(e){for(var r=0,n=this.source.length;r<n;r++)e(this.source[r])},"each"),empty:i(function(){var e=this.currentLocation||{start:{}};return new Ep(e.start.line,e.start.column,this.srcFile)},"empty"),wrap:i(function(e){var r=arguments.length<=1||arguments[1]===void 0?this.currentLocation||{start:{}}:arguments[1];return e instanceof Ep?e:(e=SQ(e,this,r),new Ep(r.start.line,r.start.column,this.srcFile,e))},"wrap"),functionCall:i(function(e,r,n){return n=this.generateList(n),this.wrap([e,r?"."+r+"(":"(",n,")"])},"functionCall"),quotedString:i(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:i(function(e){var r=this,n=[];Object.keys(e).forEach(function(s){var a=SQ(e[s],r);a!=="undefined"&&n.push([r.quotedString(s),":",a])});var o=this.generateList(n);return o.prepend("{"),o.add("}"),o},"objectLiteral"),generateList:i(function(e){for(var r=this.empty(),n=0,o=e.length;n<o;n++)n&&r.add(","),r.add(SQ(e[n],this));return r},"generateList"),generateArray:i(function(e){var r=this.generateList(e);return r.prepend("["),r.add("]"),r},"generateArray")};B4.default=LAe;QAe.exports=B4.default});var HAe=m((q4,GAe)=>{"use strict";q4.__esModule=!0;function UAe(t){return t&&t.__esModule?t:{default:t}}i(UAe,"_interopRequireDefault");var PAe=i4(),ai0=rn(),WQ=UAe(ai0),ci0=Yt(),ui0=_Ae(),kAe=UAe(ui0);function N2(t){this.value=t}i(N2,"Literal");function w2(){}i(w2,"JavaScriptCompiler");w2.prototype={nameLookup:i(function(e,r){return this.internalNameLookup(e,r)},"nameLookup"),depthedLookup:i(function(e){return[this.aliasable("container.lookup"),"(depths, ",JSON.stringify(e),")"]},"depthedLookup"),compilerInfo:i(function(){var e=PAe.COMPILER_REVISION,r=PAe.REVISION_CHANGES[e];return[e,r]},"compilerInfo"),appendToBuffer:i(function(e,r,n){return ci0.isArray(e)||(e=[e]),e=this.source.wrap(e,r),this.environment.isSimple?["return ",e,";"]:n?["buffer += ",e,";"]:(e.appendToBuffer=!0,e)},"appendToBuffer"),initializeBuffer:i(function(){return this.quotedString("")},"initializeBuffer"),internalNameLookup:i(function(e,r){return this.lookupPropertyFunctionIsUsed=!0,["lookupProperty(",e,",",JSON.stringify(r),")"]},"internalNameLookup"),lookupPropertyFunctionIsUsed:!1,compile:i(function(e,r,n,o){this.environment=e,this.options=r,this.stringParams=this.options.stringParams,this.trackIds=this.options.trackIds,this.precompile=!o,this.name=this.environment.name,this.isChild=!!n,this.context=n||{decorators:[],programs:[],environments:[]},this.preamble(),this.stackSlot=0,this.stackVars=[],this.aliases={},this.registers={list:[]},this.hashes=[],this.compileStack=[],this.inlineStack=[],this.blockParams=[],this.compileChildren(e,r),this.useDepths=this.useDepths||e.useDepths||e.useDecorators||this.options.compat,this.useBlockParams=this.useBlockParams||e.useBlockParams;var s=e.opcodes,a=void 0,c=void 0,u=void 0,p=void 0;for(u=0,p=s.length;u<p;u++)a=s[u],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 WQ.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;"),o?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 l=this.createFunctionContext(n);if(this.isChild)return l;var A={compiler:this.compilerInfo(),main:l};this.decorators&&(A.main_d=this.decorators,A.useDecorators=!0);var d=this.context,h=d.programs,M=d.decorators;for(u=0,p=h.length;u<p;u++)A[u]=h[u],M[u]&&(A[u+"_d"]=M[u],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 HDe.default(this.options.srcName),this.decorators=new HDe.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(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(s+=", alias"+ ++i+"="+u,p.children[0]="alias"+i)}),this.lookupPropertyFunctionIsUsed&&(s+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(s);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:o(function(e){var r=this.environment.isSimple,s=!this.forceBuffer,n=void 0,i=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(i?a.prepend("buffer += "):n=!0,c.add(";"),a=c=void 0),i=!0,r||(s=!1))}),s?a?(a.prepend("return "),c.add(";")):i||this.source.push('return "";'):(e+=", buffer = "+(n?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(n?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:o(function(){return`
`),this.decorators=this.decorators.merge()));var A=this.createFunctionContext(o);if(this.isChild)return A;var l={compiler:this.compilerInfo(),main:A};this.decorators&&(l.main_d=this.decorators,l.useDecorators=!0);var b=this.context,f=b.programs,z=b.decorators;for(u=0,p=f.length;u<p;u++)l[u]=f[u],z[u]&&(l[u+"_d"]=z[u],l.useDecorators=!0);return this.environment.usePartial&&(l.usePartial=!0),this.options.data&&(l.useData=!0),this.useDepths&&(l.useDepths=!0),this.useBlockParams&&(l.useBlockParams=!0),this.options.compat&&(l.compat=!0),o?l.compilerOptions=this.options:(l.compiler=JSON.stringify(l.compiler),this.source.currentLocation={start:{line:1,column:0}},l=this.objectLiteral(l),r.srcName?(l=l.toStringWithSourceMap({file:r.destName}),l.map=l.map&&l.map.toString()):l=l.toString()),l},"compile"),preamble:i(function(){this.lastContext=0,this.source=new kAe.default(this.options.srcName),this.decorators=new kAe.default(this.options.srcName)},"preamble"),createFunctionContext:i(function(e){var r=this,n="",o=this.stackVars.concat(this.registers.list);o.length>0&&(n+=", "+o.join(", "));var s=0;Object.keys(this.aliases).forEach(function(u){var p=r.aliases[u];p.children&&p.referenceCount>1&&(n+=", alias"+ ++s+"="+u,p.children[0]="alias"+s)}),this.lookupPropertyFunctionIsUsed&&(n+=", "+this.lookupPropertyFunctionVarDeclaration());var a=["container","depth0","helpers","partials","data"];(this.useBlockParams||this.useDepths)&&a.push("blockParams"),this.useDepths&&a.push("depths");var c=this.mergeSource(n);return e?(a.push(c),Function.apply(this,a)):this.source.wrap(["function(",a.join(","),`) {
`,c,"}"])},"createFunctionContext"),mergeSource:i(function(e){var r=this.environment.isSimple,n=!this.forceBuffer,o=void 0,s=void 0,a=void 0,c=void 0;return this.source.each(function(u){u.appendToBuffer?(a?u.prepend(" + "):a=u,c=u):(a&&(s?a.prepend("buffer += "):o=!0,c.add(";"),a=c=void 0),s=!0,r||(n=!1))}),n?a?(a.prepend("return "),c.add(";")):s||this.source.push('return "";'):(e+=", buffer = "+(o?"":this.initializeBuffer()),a?(a.prepend("return buffer + "),c.add(";")):this.source.push("return buffer;")),e&&this.source.prepend("var "+e.substring(2)+(o?"":`;
`)),this.source.merge()},"mergeSource"),lookupPropertyFunctionVarDeclaration:i(function(){return`
lookupProperty = container.lookupProperty || function(parent, propertyName) {
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
return parent[propertyName];
}
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(USt(this.options.strict&&i,this,r,s,e));return}for(var c=r.length,u=o(function(l){a.replaceStack(function(A){var d=a.nameLookup(A,r[l],e);return n?[" && ",d]:[" != null ? ",d," : ",A]})},"_loop"),p=s;p<c;p++)u(p)},"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,"||"),")"],u=this.source.functionCall(c,"call",i.callParams);this.push(u)},"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};X0.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};X0.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};X0.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};X0.prototype.BlockStatement=X0.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};X0.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+" }}")};X0.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+" }}")};X0.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};X0.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};X0.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};X0.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};X0.prototype.StringLiteral=function(t){return'"'+t.value+'"'};X0.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};X0.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};X0.prototype.UndefinedLiteral=function(){return"UNDEFINED"};X0.prototype.NullLiteral=function(){return"NULL"};X0.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(", ")+"}"};X0.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var k$=b((fU0,tqe)=>{var JS=JDe().default,eqe=KDe();JS.PrintVisitor=eqe.PrintVisitor;JS.print=eqe.print;tqe.exports=JS;function ZDe(t,e){var r=require("fs"),s=r.readFileSync(e,"utf8");t.exports=JS.compile(s)}o(ZDe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=ZDe,require.extensions[".hbs"]=ZDe)});var rN=b(OA=>{"use strict";Object.defineProperty(OA,"__esModule",{value:!0});OA.Signature=OA.Envelope=void 0;OA.Envelope={fromJSON(t){return{payload:tN(t.payload)?Buffer.from(Aqe(t.payload)):Buffer.alloc(0),payloadType:tN(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>OA.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=dqe(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>OA.Signature.toJSON(r))),e}};OA.Signature={fromJSON(t){return{sig:tN(t.sig)?Buffer.from(Aqe(t.sig)):Buffer.alloc(0),keyid:tN(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=dqe(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function Aqe(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}o(Aqe,"bytesFromBase64");function dqe(t){return globalThis.Buffer.from(t).toString("base64")}o(dqe,"base64FromBytes");function tN(t){return t!=null}o(tN,"isSet")});var hqe=b(sN=>{"use strict";Object.defineProperty(sN,"__esModule",{value:!0});sN.Timestamp=void 0;sN.Timestamp={fromJSON(t){return{seconds:fqe(t.seconds)?globalThis.String(t.seconds):"0",nanos:fqe(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function fqe(t){return t!=null}o(fqe,"isSet")});var Mp=b(Ge=>{"use strict";Object.defineProperty(Ge,"__esModule",{value:!0});Ge.TimeRange=Ge.X509CertificateChain=Ge.SubjectAlternativeName=Ge.X509Certificate=Ge.DistinguishedName=Ge.ObjectIdentifierValuePair=Ge.ObjectIdentifier=Ge.PublicKeyIdentifier=Ge.PublicKey=Ge.RFC3161SignedTimestamp=Ge.LogId=Ge.MessageSignature=Ge.HashOutput=Ge.SubjectAlternativeNameType=Ge.PublicKeyDetails=Ge.HashAlgorithm=void 0;Ge.hashAlgorithmFromJSON=mqe;Ge.hashAlgorithmToJSON=Mqe;Ge.publicKeyDetailsFromJSON=gqe;Ge.publicKeyDetailsToJSON=zqe;Ge.subjectAlternativeNameTypeFromJSON=Oqe;Ge.subjectAlternativeNameTypeToJSON=Eqe;var ANt=hqe(),fn;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SH Line truncated
`).forEach(r=>{r.match(n6t)||r.match(i6t)||(e+=r)}),Buffer.from(e,"base64")}o(o6t,"toDER");function a6t(t,e="CERTIFICATE"){let s=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...s,`-----END ${e}-----`].join(`
`).concat(`
`)}o(a6t,"fromDER")});var CN=b(qA=>{"use strict";Object.defineProperty(qA,"__esModule",{value:!0});qA.SHA2_HASH_ALGOS=qA.RSA_SIGNATURE_ALGOS=qA.ECDSA_SIGNATURE_ALGOS=void 0;qA.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"};qA.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"};qA.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 hj=b(BN=>{"use strict";Object.defineProperty(BN,"__esModule",{value:!0});BN.RFC3161TimestampVerificationError=void 0;var fj=class extends Error{static{o(this,"RFC3161TimestampVerificationError")}};BN.RFC3161TimestampVerificationError=fj});var eIe=b(vc=>{"use strict";var c6t=vc&&vc.__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]})),u6t=vc&&vc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),p6t=vc&&vc.__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"&&c6t(r,e,s[n]);return u6t(r,e),r}})();Object.defineProperty(vc,"__esModule",{value:!0});vc.TSTInfo=void 0;var Zqe=p6t(rM()),l6t=CN(),A6t=hj(),bj=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 l6t.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Zqe.digest(this.messageImprintHashAlgorithm,e);if(!Zqe.bufferEqual(r,this.messageImprintHashedMessage))throw new A6t.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};vc.TSTInfo=bj});var rIe=b(Tc=>{"use strict";var d6t=Tc&&Tc.__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]})),f6t=Tc&&Tc.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),h6t=Tc&&Tc.__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"&&d6t(r,e,s[n]);return f6t(r,e),r}})();Object.defineProperty(Tc,"__esModule",{value:!0});Tc.RFC3161Timestamp=void 0;var b6t=ON(),mj=h6t(rM()),tIe=CN(),$E=hj(),m6t=eIe(),M6t="1.2.840.113549.1.7.2",g6t="1.2.840.113549.1.9.16.1.4",z6t="1.2.840.113549.1.9.4",Mj=class t{static{o(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=b6t.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 tIe.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return tIe.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new m6t.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new $E.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==M6t)throw new $E.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==g6t)throw new $E.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=mj.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
\v\f\r\x1B !"#$\u066A&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xB0\xB7\u2219\u221A\u2592\u2500\u2502\u253C\u2524\u252C\u251C\u2534\u2510\u250C\u2514\u2518\u03B2\u221E\u03C6\xB1\xBD\xBC\u2248\xAB\xBB\uFEF7\uFEF8\uFFFD\uFFFD\uFEFB\uFEFC\uFFFD\xA0\xAD\uFE82\xA3\xA4\uFE84\uFFFD\uFFFD\uFE8E\uFE8F\uFE95\uFE99\u060C\uFE9D\uFEA1\uFEA5\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFED1\u061B\uFEB1\uFEB5\uFEB9\u061F\xA2\uFE80\uFE81\uFE83\uFE85\uFECA\uFE8B\uFE8D\uFE91\uFE93\uFE97\uFE9B\uFE9F\uFEA3\uFEA7\uFEA9\uFEAB\uFEAD\uFEAF\uFEB3\uFEB7\uFEBB\uFEBF\uFEC1\uFEC5\uFECB\uFECF\xA6\xAC\xF7\xD7\uFEC9\u0640\uFED3\uFED7\uFEDB\uFEDF\uFEE3\uFEE7\uFEEB\uFEED\uFEEF\uFEF3\uFEBD\uFECC\uFECE\uFECD\uFEE1\uFE7D\u0651\uFEE5\uFEE9\uFEEC\uFEF0\uFEF2\uFED0\uFED5\uFEF5\uFEF6\uFEDD\uFED9\uFEF1\u25A0\uFFFD`},ibm864:"cp864",csibm864:"cp864",cp865:{type:"_sbcs",chars:"\xC7\xFC\xE9\xE2\xE4\xE0\xE5\xE7\xEA\xEB\xE8\xEF\xEE\xEC\xC4\xC5\xC9\xE6\xC6\xF4\xF6\xF2\xFB\xF9\xFF\xD6\xDC\xF8\xA3\xD8\u20A7\u0192\xE1\xED\xF3\xFA\xF1\xD1\xAA\xBA\xBF\u2310\xAC\xBD\xBC\xA1\xAB\xA4\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"},ibm865:"cp865",csibm865:"cp865",cp866:{type:"_sbcs",chars:"\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\xA4\u25A0\xA0"},ibm866:"cp866",csibm866:"cp866",cp869:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0386\uFFFD\xB7\xAC\xA6\u2018\u2019\u0388\u2015\u0389\u038A\u03AA\u038C\uFFFD\uFFFD\u038E\u03AB\xA9\u038F\xB2\xB3\u03AC\xA3\u03AD\u03AE\u03AF\u03CA\u0390\u03CC\u03CD\u0391\u0392\u0393\u0394\u0395\u0396\u0397\xBD\u0398\u0399\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u039A\u039B\u039C\u039D\u2563\u2551\u2557\u255D\u039E\u039F\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u03A0\u03A1\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u03A3\u03A4\u03A5\u03A6\u03A7\u03A8\u03A9\u03B1\u03B2\u03B3\u2518\u250C\u2588\u2584\u03B4\u03B5\u2580\u03B6\u03B7\u03B8\u03B9\u03BA\u03BB\u03BC\u03BD\u03BE\u03BF\u03C0\u03C1\u03C3\u03C2\u03C4\u0384\xAD\xB1\u03C5\u03C6\u03C7\xA7\u03C8\u0385\xB0\xA8\u03C9\u03CB\u03B0\u03CE\u25A0\xA0"},ibm869:"cp869",csibm869:"cp869",cp922:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\u203E\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\xC0\xC1\xC2\xC3\xC4\xC5\xC6\xC7\xC8\xC9\xCA\xCB\xCC\xCD\xCE\xCF\u0160\xD1\xD2\xD3\xD4\xD5\xD6\xD7\xD8\xD9\xDA\xDB\xDC\xDD\u017D\xDF\xE0\xE1\xE2\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\u0161\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\u017E\xFF"},ibm922:"cp922",csibm922:"cp922",cp1046:{type:"_sbcs",chars:"\uFE88\xD7\xF7\uF8F6\uF8F5\uF8F4\uF8F7\uFE71\x88\u25A0\u2502\u2500\u2510\u250C\u2514\u2518\uFE79\uFE7B\uFE7D\uFE7F\uFE77\uFE8A\uFEF0\uFEF3\uFEF2\uFECE\uFECF\uFED0\uFEF6\uFEF8\uFEFA\uFEFC\xA0\uF8FA\uF8F9\uF8F8\xA4\uF8FB\uFE8B\uFE91\uFE97\uFE9B\uFE9F\uFEA3\u060C\xAD\uFEA7\uFEB3\u0660\u0661\u0662\u0663\u0664\u0665\u0666\u0667\u0668\u0669\uFEB7\u061B\uFEBB\uFEBF\uFECA\u061F\uFECB\u0621\u0622\u0623\u0624\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\u0636\u0637\uFEC7\u0639\u063A\uFECC\uFE82\uFE84\uFE8E\uFED3\u0640\u0641\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u064B\u064C\u064D\u064E\u064F\u0650\u0651\u0652\uFED7\uFEDB\uFEDF\uF8FC\uFEF5\uFEF7\uFEF9\uFEFB\uFEE3\uFEE7\uFEEC\uFEE9\uFFFD"},ibm1046:"cp1046",csibm1046:"cp1046",cp1124:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\u0401\u0402\u0490\u0404\u0405\u0406\u0407\u0408\u0409\u040A\u040B\u040C\xAD\u040E\u040F\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041FLine truncated
\v\f\r\u1EE8\u1EF0\u1EF2\u1EF6\u1EF8\xDD\u1EF4\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\xC0\u1EA2\xC3\xC1\u1EA0\u1EB6\u1EAC\xC8\u1EBA\u1EBC\xC9\u1EB8\u1EC6\xCC\u1EC8\u0128\xCD\u1ECA\xD2\u1ECE\xD5\xD3\u1ECC\u1ED8\u1EDC\u1EDE\u1EE0\u1EDA\u1EE2\xD9\u1EE6\u0168\xA0\u0102\xC2\xCA\xD4\u01A0\u01AF\u0110\u0103\xE2\xEA\xF4\u01A1\u01B0\u0111\u1EB0\u0300\u0309\u0303\u0301\u0323\xE0\u1EA3\xE3\xE1\u1EA1\u1EB2\u1EB1\u1EB3\u1EB5\u1EAF\u1EB4\u1EAE\u1EA6\u1EA8\u1EAA\u1EA4\u1EC0\u1EB7\u1EA7\u1EA9\u1EAB\u1EA5\u1EAD\xE8\u1EC2\u1EBB\u1EBD\xE9\u1EB9\u1EC1\u1EC3\u1EC5\u1EBF\u1EC7\xEC\u1EC9\u1EC4\u1EBE\u1ED2\u0129\xED\u1ECB\xF2\u1ED4\u1ECF\xF5\xF3\u1ECD\u1ED3\u1ED5\u1ED7\u1ED1\u1ED9\u1EDD\u1EDF\u1EE1\u1EDB\u1EE3\xF9\u1ED6\u1EE7\u0169\xFA\u1EE5\u1EEB\u1EED\u1EEF\u1EE9\u1EF1\u1EF3\u1EF7\u1EF9\xFD\u1EF5\u1ED0`},georgianacademy:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10EF\u10F0\u10F1\u10F2\u10F3\u10F4\u10F5\u10F6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},georgianps:{type:"_sbcs",chars:"\x80\x81\u201A\u0192\u201E\u2026\u2020\u2021\u02C6\u2030\u0160\u2039\u0152\x8D\x8E\x8F\x90\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u02DC\u2122\u0161\u203A\u0153\x9D\x9E\u0178\xA0\xA1\xA2\xA3\xA4\xA5\xA6\xA7\xA8\xA9\xAA\xAB\xAC\xAD\xAE\xAF\xB0\xB1\xB2\xB3\xB4\xB5\xB6\xB7\xB8\xB9\xBA\xBB\xBC\xBD\xBE\xBF\u10D0\u10D1\u10D2\u10D3\u10D4\u10D5\u10D6\u10F1\u10D7\u10D8\u10D9\u10DA\u10DB\u10DC\u10F2\u10DD\u10DE\u10DF\u10E0\u10E1\u10E2\u10F3\u10E3\u10E4\u10E5\u10E6\u10E7\u10E8\u10E9\u10EA\u10EB\u10EC\u10ED\u10EE\u10F4\u10EF\u10F0\u10F5\xE6\xE7\xE8\xE9\xEA\xEB\xEC\xED\xEE\xEF\xF0\xF1\xF2\xF3\xF4\xF5\xF6\xF7\xF8\xF9\xFA\xFB\xFC\xFD\xFE\xFF"},pt154:{type:"_sbcs",chars:"\u0496\u0492\u04EE\u0493\u201E\u2026\u04B6\u04AE\u04B2\u04AF\u04A0\u04E2\u04A2\u049A\u04BA\u04B8\u0497\u2018\u2019\u201C\u201D\u2022\u2013\u2014\u04B3\u04B7\u04A1\u04E3\u04A3\u049B\u04BB\u04B9\xA0\u040E\u045E\u0408\u04E8\u0498\u04B0\xA7\u0401\xA9\u04D8\xAB\xAC\u04EF\xAE\u049C\xB0\u04B1\u0406\u0456\u0499\u04E9\xB6\xB7\u0451\u2116\u04D9\xBB\u0458\u04AA\u04AB\u049D\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F"},viscii:{type:"_sbcs",chars:`\0\u1EB2\u1EB4\u1EAA\x07\b
\v\f\r\u1EF6\u1EF8\x1B\u1EF4 !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~\x7F\u1EA0\u1EAE\u1EB0\u1EB6\u1EA4\u1EA6\u1EA8\u1EAC\u1EBC\u1EB8\u1EBE\u1EC0\u1EC2\u1EC4\u1EC6\u1ED0\u1ED2\u1ED4\u1ED6\u1ED8\u1EE2\u1EDA\u1EDC\u1EDE\u1ECA\u1ECE\u1ECC\u1EC8\u1EE6\u0168\u1EE4\u1EF2\xD5\u1EAF\u1EB1\u1EB7\u1EA5\u1EA7\u1EA9\u1EAD\u1EBD\u1EB9\u1EBF\u1EC1\u1EC3\u1EC5\u1EC7\u1ED1\u1ED3\u1ED5\u1ED7\u1EE0\u01A0\u1ED9\u1EDD\u1EDF\u1ECB\u1EF0\u1EE8\u1EEA\u1EEC\u01A1\u1EDB\u01AF\xC0\xC1\xC2\xC3\u1EA2\u0102\u1EB3\u1EB5\xC8\xC9\xCA\u1EBA\xCC\xCD\u0128\u1EF3\u0110\u1EE9\xD2\xD3\xD4\u1EA1\u1EF7\u1EEB\u1EED\xD9\xDA\u1EF9\u1EF5\xDD\u1EE1\u01B0\xE0\xE1\xE2\xE3\u1EA3\u0103\u1EEF\u1EAB\xE8\xE9\xEA\u1EBB\xEC\xED\u0129\u1EC9\u0111\u1EF1\xF2\xF3\xF4\xF5\u1ECF\u1ECD\u1EE5\xF9\xFA\u0169\u1EE7\xFD\u1EE3\u1EEE`},iso646cn:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#\xA5%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},iso646jp:{type:"_sbcs",chars:`\0\x07\b
\v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\xA5]^_\`abcdefghijklmnopqrstuvwxyz{|}\u203E\x7F\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD`},hproman8:{type:"_sbcs",chars:"\x80\x81\x82\x83\x84\x85\x86\x87\x88\x89\x8A\x8B\x8C\x8D\x8E\x8F\x90\x91\x92\x93\x94\x95\x96\x97\x98\x99\x9A\x9B\x9C\x9D\x9E\x9F\xA0\xC0\xC2\xC8\xCA\xCB\xCE\xCF\xB4\u02CB\u02C6\xA8\u02DC\xD9\xDB\u20A4\xAF\xDD\xFD\xB0\xC7\xE7\xD1\xF1\xA1\xBF\xA4\xA3\xA5\xA7\u0192\xA2\xE2\xEA\xF4\xFB\xE1\xE9\xF3\xFA\xE0\xE8\xF2\xF9\xE4\xEB\xF6\xFC\xC5\xEE\xD8\xC6\xE5\xED\xF8\xE6\xC4\xEC\xD6\xDC\xC9\xEF\xDF\xD4\xC1\xC3\xE3\xD0\xF0\xCD\xCC\xD3\xD2\xD5\xF5\u0160\u0161\xDA\u0178\xFF\xDE\xFE\xB7\xB5\xB6\xBE\u2014\xBC\xBD\xAA\xBA\xAB\u25A0\xBB\xB1\uFFFD"},macintosh:{type:"_sbcs",chars:"\xC4\xC5\xC7\xC9\xD1\xD6\xDC\xE1\xE0\xE2\xE4\xE3\xE5\xE7\xE9\xE8\xEA\xEB\xED\xEC\xEE\xEF\xF1\xF3\xF2\xF4\xF6\xF5\xFA\xF9\xFB\xFC\u2020\xB0\xA2\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\xB4\xA8\u2260\xC6\xD8\u221E\xB1\u2264\u2265\xA5\xB5\u2202\u2211\u220F\u03C0\u222B\xAA\xBA\u2126\xE6\xF8\xBF\xA1\xAC\u221A\u0192\u2248\u2206\xAB\xBB\u2026\xA0\xC0\xC3\xD5\u0152\u0153\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\xFF\u0178\u2044\xA4\u2039\u203A\uFB01\uFB02\u2021\xB7\u201A\u201E\u2030\xC2\xCA\xC1\xCB\xC8\xCD\xCE\xCF\xCC\xD3\xD4\uFFFD\xD2\xDA\xDB\xD9\u0131\u02C6\u02DC\xAF\u02D8\u02D9\u02DA\xB8\u02DD\u02DB\u02C7"},ascii:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD"},tis620:{type:"_sbcs",chars:"\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\uFFFD\u0E01\u0E02\u0E03\u0E04\u0E05\u0E06\u0E07\u0E08\u0E09\u0E0A\u0E0B\u0E0C\u0E0D\u0E0E\u0E0F\u0E10\u0E11\u0E12\u0E13\u0E14\u0E15\u0E16\u0E17\u0E18\u0E19\u0E1A\u0E1B\u0E1C\u0E1D\u0E1E\u0E1F\u0E20\u0E21\u0E22\u0E23\u0E24\u0E25\u0E26\u0E27\u0E28\u0E29\u0E2A\u0E2B\u0E2C\u0E2D\u0E2E\u0E2F\u0E30\u0E31\u0E32\u0E33\u0E34\u0E35\u0E36\u0E37\u0E38\u0E39\u0E3A\uFFFD\uFFFD\uFFFD\uFFFD\u0E3F\u0E40\u0E41\u0E42\u0E43\u0E44\u0E45\u0E46\u0E47\u0E48\u0E49\u0E4A\u0E4B\u0E4C\u0E4D\u0E4E\u0E4F\u0E50\u0E51\u0E52\u0E53\u0E54\u0E55\u0E56\u0E57\u0E58\u0E59\u0E5A\u0E5B\uFFFD\uFFFD\uFFFD\uFFFD"}}});var bRe=b(hRe=>{"use strict";var iJ=Ip().Buffer;hRe._dbcs=wp;var Dr=-1,fRe=-2,uo=-10,Ss=-1e3,bM=new Array(256),dy=-1;for(p6=0;p6<256;p6++)bM[p6]=Dr;var p6;function wp(t,e){if(this.encodingName=t.encodingName,!t)throw new Error("DBCS codec is called without the data.");if(!t.table)throw new Error("Encoding '"+this.encodingName+"' has no data.");var r=t.table();this.decodeTables=[],this.decodeTables[0]=bM.slice(0),this.decodeTableSeq=[];for(var s=0;s<r.length;s++)this._addDecodeChunk(r[s]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var n=this.decodeTables.length;this.decodeTables.push(bM.slice(0));var i=this.decodeTables.length;this.decodeTables.push(bM.slice(0));for(var a=this.decodeTables[0],s=129;s<=254;s++)for(var c=this.decodeTables[Ss-a[s]],u=48;u<=57;u++){if(c[u]===Dr)c[u]=Ss-n;else if(c[u]>Ss)throw new Error("gb18030 decode tables conflict at byte 2");for(var p=this.decodeTables[Ss-c[u]],l=129;l<=254;l++){if(p[l]===Dr)p[l]=Ss-i;else{if(p[l]===Ss-i)continue;if(p[l]>Ss)throw new Error("gb18030 decode tables conflict at byte 3")}for(var A=this.decodeTables[Ss-p[l]],d=48;d<=57;d++)A[d]===Dr&&(A[d]=fRe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var s=0;s<t.encodeSkipValsLine truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},Tp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?NTt:STt);if(!n||s&&!RJ.includes(n[1])||!E5e.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=hi(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(a=>a.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(RJ.includes(this.algorithm)&&this.digest.match(wTt)&&this.options.every(r=>r.match(FTt)))?"":`${this.algorithm}-${this.digest}${Oy(this.options)}`}};function O5e(t,e,r,s){let n=t!=="",i=!1,a="",c=s.length-1;for(let p=0;p<c;p++){let l=Tp.prototype.toString.call(s[p],r);l&&(i=!0,a+=l,a+=e)}let u=Tp.prototype.toString.call(s[c],r);return u&&(i=!0,a+=u),n&&i?t+e+a:t+a}o(O5e,"integrityHashToString");var lf=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of RJ)this[n]&&(s=O5e(s,r,e,this[n]))}else for(let n of Object.keys(this))s=O5e(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:gy(e,r);return hi(`${this.toString(r)} ${s}`,r)}hexDigest(){return hi(this,{single:!0}).hexDigest()}merge(e,r){let s=hi(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=hi(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n].find(i=>s[n].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||PTt,n=Object.keys(this);return r?.length&&(n=n.filter(i=>r.includes(i))),n.length?n.reduce((i,a)=>s(i,a)||i):null}};Hc.exports.parse=hi;function hi(t,e){if(!t)return null;if(typeof t=="string")return IJ(t,e);if(t.algorithm&&t.digest){let r=new lf;return r[t.algorithm]=[t],IJ(gy(r,e),e)}else return IJ(gy(t,e),e)}o(hi,"parse");function IJ(t,e){if(e?.single)return new Tp(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new Tp(n,e);if(i.algorithm&&i.digest){let a=i.algorithm;Object.keys(s).includes(a)||(s[a]=[]),s[a].push(i)}return s},new lf);return r.isEmpty()?null:r}o(IJ,"_parse");Hc.exports.stringify=gy;function gy(t,e){return t.algorithm&&t.digest?Tp.prototype.toString.call(t,e):typeof t=="string"?gy(hi(t,e),e):lf.prototype.toString.call(t,e)}o(gy,"stringify");Hc.exports.fromHex=vTt;function vTt(t,e,r){let s=Oy(r?.options);return hi(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}o(vTt,"fromHex");Hc.exports.fromData=TTt;function TTt(t,e){let r=e?.algorithms||[...SJ],s=Oy(e?.options);return r.reduce((n,i)=>{let a=zy.createHash(i).update(t).digest("base64"),c=new Tp(`${i}-${a}${s}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new lf)}o(TTt,"fromData");Hc.exports.fromStream=xTt;function xTt(t,e){let r=NJ(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>s(i)),r.resume()})}o(xTt,"fromStream");Hc.exports.checkData=_Tt;function _Tt(t,e,r){if(e=hi(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),n=zy.createHash(s).update(t).digest("base64"),i=hi({algorithm:s,digest:n}),a=i.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=s,c.sri=e,c}}o(_Tt,"checkData");Hc.exports.checkStream=WTt;function WTt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=hi(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=NJ(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let a;s.on("verified",c=>{a=c}),s.on("end",()=>n(a)),s.resume()})}o(WTt,"checkStream");Hc.exports.integrityStream=NJ;function NJ(t=Object.create(null)){return new wJ(t)}o(NJ,"integrityStream");Hc.exports.create=LTt;function LTt(t){let e=t?.algorithms||[...SJ],r=Oy(t?.options),s=e.map(zy.createHash);return{update:o(function(n,i){return s.forEach(a=>a.update(n,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=s.shift().digest("base64"),u=new Tp(`${a}-${c}${r}`,t);return i[u.algorithm]||(i[u.algorithm]=[]),i[u.algorithm].push(u),i},new lf)},"digest")}}o(LTt,"createIntegrity");function PTt(t,e){return z5e.indexOf(t.toLowerCase())>=z5e.indexOf(e.toLowerCase())?t:e}o(PTt,"getPrioritizedHash")});var vJ=b((_V0,q5e)=>{var y5e=OJ(),C5e=qJ(),QTt=Ey(),B5e={shared:!1,ignoreCargoCult:!0},kTt={status:200,headers:{}},gM=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),D5e=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),FJ=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=gM(r),this.response=D5e(s),this.options=n,this.policy=new y5e(this.request,this.response,B5e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new y5e(gM(e),kTt,B5e).storable()}satisfies(e){let r=gM(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new C5e(this.request),n=new C5e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?QTt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=gM(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=gM(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=gM(e),n=D5e(r);return!this.policy.revalidatedPolicy(s,n).modified}};q5e.exports=FJ});var R5e=b((LV0,I5e)=>{var TJ=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};I5e.exports={NotCachedError:TJ}});var L5e=b((QV0,W5e)=>{"use strict";var w5e=typeof process=="object"&&process?process:{stdout:null,stderr:null},UTt=require("events"),S5e=require("stream"),N5e=require("string_decoder").StringDecoder,xp=Symbol("EOF"),_p=Symbol("maybeEmitEnd"),TA=Symbol("emittedEnd"),y6=Symbol("emittingEnd"),yy=Symbol("emittedError"),C6=Symbol("closed"),F5e=Symbol("read"),B6=Symbol("flush"),v5e=Symbol("flushChunk"),bn=Symbol("encoding"),Wp=Symbol("decoder"),D6=Symbol("flowing"),Cy=Symbol("paused"),zM=Symbol("resume"),rr=Symbol("bufferLength"),xJ=Symbol("bufferPush"),_J=Symbol("bufferShift"),Hr=Symbol("objectMode"),Xr=Symbol("destroyed"),WJ=Symbol("emitData"),T5e=Symbol("emitEnd"),LJ=Symbol("emitEnd2"),Lp=Symbol("async"),By=o(t=>Promise.resolve().then(t),"defer"),x5e=global._MP_NO_ITERATOR_SYMBOLS_!=="1",GTt=x5e&&Symbol.asyncIterator||Symbol("asyncIterator not implemented"),HTt=x5e&&Symbol.iterator||Symbol("iterator not implemented"),XTt=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),VTt=o(t=>t instanceof ArrayBuffer||typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBuffer"),$Tt=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),q6=class{static{o(this,"Pipe")}constructor(e,r,s){this.src=e,this.dest=r,this.opts=s,this.ondrain=()=>e[zM](),r.on("drain",this.ondrain)}unpipe(){this.dest.removeListener("drain",this.ondrain)}proxyErrors(){}end(){this.unpipe(),this.opts.end&&this.dest.end()}},PJ=class extends q6{static{o(this,"PipeProxyErrors")}unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe()}constructor(e,r,s){super(e,r,s),this.proxyErrors=n=>r.emit("error",n),e.on("error",this.proxyErrors)}};W5e.exports=class _5e extends S5 Line truncated
Wanted: ${this.expectedSize}
Found: ${this.size}`);s.code="EBADSIZE",s.found=this.size,s.expected=this.expectedSize,s.sri=this.sri,this.emit("error",s)}else if(this.sri&&!r){let s=new Error(`${this.sri} integrity checksum failed when using ${this.algorithm}: wanted ${this.digests} but got ${e}. (${this.size} bytes)`);s.code="EINTEGRITY",s.found=e,s.expected=this.digests,s.algorithm=this.algorithm,s.sri=this.sri,this.emit("error",s)}else this.#t=this.size,this.emit("size",this.size),this.#e=e,this.emit("integrity",e),r&&(this.#s=r,this.emit("verified",r))}},Gp=class{static{o(this,"Hash")}get isHash(){return!0}constructor(e,r){let s=r?.strict;this.source=e.trim(),this.digest="",this.algorithm="",this.options=[];let n=this.source.match(s?cxt:axt);if(!n||s&&!sK.includes(n[1]))return;this.algorithm=n[1],this.digest=n[2];let i=n[3];i&&(this.options=i.slice(1).split("?"))}hexDigest(){return this.digest&&Buffer.from(this.digest,"base64").toString("hex")}toJSON(){return this.toString()}match(e,r){let s=mi(e,r);if(!s)return!1;if(s.isIntegrity){let n=s.pickAlgorithm(r,[this.algorithm]);if(!n)return!1;let i=s[n].find(a=>a.digest===this.digest);return i||!1}return s.digest===this.digest?s:!1}toString(e){return e?.strict&&!(sK.includes(this.algorithm)&&this.digest.match(oxt)&&this.options.every(r=>r.match(uxt)))?"":`${this.algorithm}-${this.digest}${Ny(this.options)}`}};function iwe(t,e,r,s){let n=t!=="",i=!1,a="",c=s.length-1;for(let p=0;p<c;p++){let l=Gp.prototype.toString.call(s[p],r);l&&(i=!0,a+=l,a+=e)}let u=Gp.prototype.toString.call(s[c],r);return u&&(i=!0,a+=u),n&&i?t+e+a:t+a}o(iwe,"integrityHashToString");var ff=class{static{o(this,"Integrity")}get isIntegrity(){return!0}toJSON(){return this.toString()}isEmpty(){return Object.keys(this).length===0}toString(e){let r=e?.sep||" ",s="";if(e?.strict){r=r.replace(/\S+/g," ");for(let n of sK)this[n]&&(s=iwe(s,r,e,this[n]))}else for(let n of Object.keys(this))s=iwe(s,r,e,this[n]);return s}concat(e,r){let s=typeof e=="string"?e:wy(e,r);return mi(`${this.toString(r)} ${s}`,r)}hexDigest(){return mi(this,{single:!0}).hexDigest()}merge(e,r){let s=mi(e,r);for(let n in s)if(this[n]){if(!this[n].find(i=>s[n].find(a=>i.digest===a.digest)))throw new Error("hashes do not match, cannot update integrity")}else this[n]=s[n]}match(e,r){let s=mi(e,r);if(!s)return!1;let n=s.pickAlgorithm(r,Object.keys(this));return!!n&&this[n]&&s[n]&&this[n].find(i=>s[n].find(a=>i.digest===a.digest))||!1}pickAlgorithm(e,r){let s=e?.pickAlgorithm||mxt,n=Object.keys(this).filter(i=>r?.length?r.includes(i):!0);return n.length?n.reduce((i,a)=>s(i,a)||i):null}};Xc.exports.parse=mi;function mi(t,e){if(!t)return null;if(typeof t=="string")return rK(t,e);if(t.algorithm&&t.digest){let r=new ff;return r[t.algorithm]=[t],rK(wy(r,e),e)}else return rK(wy(t,e),e)}o(mi,"parse");function rK(t,e){if(e?.single)return new Gp(t,e);let r=t.trim().split(/\s+/).reduce((s,n)=>{let i=new Gp(n,e);if(i.algorithm&&i.digest){let a=i.algorithm;s[a]||(s[a]=[]),s[a].push(i)}return s},new ff);return r.isEmpty()?null:r}o(rK,"_parse");Xc.exports.stringify=wy;function wy(t,e){return t.algorithm&&t.digest?Gp.prototype.toString.call(t,e):typeof t=="string"?wy(mi(t,e),e):ff.prototype.toString.call(t,e)}o(wy,"stringify");Xc.exports.fromHex=pxt;function pxt(t,e,r){let s=Ny(r?.options);return mi(`${e}-${Buffer.from(t,"hex").toString("base64")}${s}`,r)}o(pxt,"fromHex");Xc.exports.fromData=lxt;function lxt(t,e){let r=e?.algorithms||[...iK],s=Ny(e?.options);return r.reduce((n,i)=>{let a=Sy.createHash(i).update(t).digest("base64"),c=new Gp(`${i}-${a}${s}`,e);if(c.algorithm&&c.digest){let u=c.algorithm;n[u]||(n[u]=[]),n[u].push(c)}return n},new ff)}o(lxt,"fromData");Xc.exports.fromStream=Axt;function Axt(t,e){let r=oK(e);return new Promise((s,n)=>{t.pipe(r),t.on("error",n),r.on("error",n);let i;r.on("integrity",a=>{i=a}),r.on("end",()=>s(i)),r.resume()})}o(Axt,"fromStream");Xc.exports.checkData=dxt;function dxt(t,e,r){if(e=mi(e,r),!e||!Object.keys(e).length){if(r?.error)throw Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"});return!1}let s=e.pickAlgorithm(r),n=Sy.createHash(s).update(t).digest("base64"),i=mi({algorithm:s,digest:n}),a=i.match(e,r);if(r=r||{},a||!r.error)return a;if(typeof r.size=="number"&&t.length!==r.size){let c=new Error(`data size mismatch when checking ${e}.
Wanted: ${r.size}
Found: ${t.length}`);throw c.code="EBADSIZE",c.found=t.length,c.expected=r.size,c.sri=e,c}else{let c=new Error(`Integrity checksum failed when using ${s}: Wanted ${e}, but got ${i}. (${t.length} bytes)`);throw c.code="EINTEGRITY",c.found=i,c.expected=e,c.algorithm=s,c.sri=e,c}}o(dxt,"checkData");Xc.exports.checkStream=fxt;function fxt(t,e,r){if(r=r||Object.create(null),r.integrity=e,e=mi(e,r),!e||!Object.keys(e).length)return Promise.reject(Object.assign(new Error("No valid integrity hashes to check against"),{code:"EINTEGRITY"}));let s=oK(r);return new Promise((n,i)=>{t.pipe(s),t.on("error",i),s.on("error",i);let a;s.on("verified",c=>{a=c}),s.on("end",()=>n(a)),s.resume()})}o(fxt,"checkStream");Xc.exports.integrityStream=oK;function oK(t=Object.create(null)){return new nK(t)}o(oK,"integrityStream");Xc.exports.create=hxt;function hxt(t){let e=t?.algorithms||[...iK],r=Ny(t?.options),s=e.map(Sy.createHash);return{update:o(function(n,i){return s.forEach(a=>a.update(n,i)),this},"update"),digest:o(function(){return e.reduce((i,a)=>{let c=s.shift().digest("base64"),u=new Gp(`${a}-${c}${r}`,t);if(u.algorithm&&u.digest){let p=u.algorithm;i[p]||(i[p]=[]),i[p].push(u)}return i},new ff)},"digest")}}o(hxt,"createIntegrity");var bxt=Sy.getHashes(),owe=["md5","whirlpool","sha1","sha224","sha256","sha384","sha512","sha3","sha3-256","sha3-384","sha3-512","sha3_256","sha3_384","sha3_512"].filter(t=>bxt.includes(t));function mxt(t,e){return owe.indexOf(t.toLowerCase())>=owe.indexOf(e.toLowerCase())?t:e}o(mxt,"getPrioritizedHash")});var awe=b((ZV0,aK)=>{(function(){var t;function e(r,s){var n=this instanceof e?this:t;if(n.reset(s),typeof r=="string"&&r.length>0&&n.hash(r),n!==this)return n}o(e,"MurmurHash3"),e.prototype.hash=function(r){var s,n,i,a,c;switch(c=r.length,this.len+=c,n=this.k1,i=0,this.rem){case 0:n^=c>i?r.charCodeAt(i++)&65535:0;case 1:n^=c>i?(r.charCodeAt(i++)&65535)<<8:0;case 2:n^=c>i?(r.charCodeAt(i++)&65535)<<16:0;case 3:n^=c>i?(r.charCodeAt(i)&255)<<24:0,n^=c>i?(r.charCodeAt(i++)&65280)>>8:0}if(this.rem=c+this.rem&3,c-=this.rem,c>0){for(s=this.h1;n=n*11601+(n&65535)*3432906752&4294967295,n=n<<15|n>>>17,n=n*13715+(n&65535)*461832192&4294967295,s^=n,s=s<<13|s>>>19,s=s*5+3864292196&4294967295,!(i>=c);)n=r.charCodeAt(i++)&65535^(r.charCodeAt(i++)&65535)<<8^(r.charCodeAt(i++)&65535)<<16,a=r.charCodeAt(i++),n^=(a&255)<<24^(a&65280)>>8;switch(n=0,this.rem){case 3:n^=(r.charCodeAt(i+2)&65535)<<16;case 2:n^=(r.charCodeAt(i+1)&65535)<<8;case 1:n^=r.charCodeAt(i)&65535}this.h1=s}return this.k1=n,this},e.prototype.result=function(){var r,s;return r=this.k1,s=this.h1,r>0&&(r=r*11601+(r&65535)*3432906752&4294967295,r=r<<15|r>>>17,r=r*13715+(r&65535)*461832192&4294967295,s^=r),s^=this.len,s^=s>>>16,s=s*51819+(s&65535)*2246770688&4294967295,s^=s>>>13,s=s*44597+(s&65535)*3266445312&4294967295,s^=s>>>16,s>>>0},e.prototype.reset=function(r){return this.h1=typeof r=="number"?r:0,this.rem=this.k1=this.len=0,this},t=new e,typeof aK<"u"?aK.exports=e:this.MurmurHash3=e})()});var uwe=b((t$0,cwe)=>{"use strict";var Mxt=awe();cwe.exports=function(t){if(t){var e=new Mxt(t);return("00000000"+e.result().toString(16)).slice(-8)}else return(Math.random().toString(16)+"0000000").slice(2,10)}});var cK=b((r$0,pwe)=>{var gxt=require("path"),zxt=uwe();pwe.exports=function(t,e,r){return gxt.join(t,(e?e+"-":"")+zxt(r))}});var uK=b((s$0,Oxt)=>{Oxt.exports={name:"cacache",version:"20.0.1","cache-version":{content:"2",index:"5"},description:"Fast, fault-tolerant, cross-platform, disk-based, data-agnostic, content-addressable cache.",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",snap:"tap",coverage:"tap","test-docker":'docker run -it --rm --name pacotest -v "$PWD":/tmp -w /tmp node:latest npm test',lint:"npm run eslint",npmclilint:"npmcli-lint",lintfix:"npm run eslint -- --fix",postsnap:"npm run lintfix --",postlint:"template-oss-check",posttest:"npm run lint","template-oss-apply":"template-oss-apply --force",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"'},repository:{type:"git",url:"git+https://github.com/npm/cacache.git"},keywords:["cache","caching","content-addressable","sri","sri hash","subresource integrity","cache","storage","store","file store","filesystem","disk cache","disk storage"],license:"ISC",dependencies:{"@npmcli/fs":"^4.0.0","fs-minipass":"^3.0.0",glob:"^11.0.3","lru-cache":"^11.1.0",minipass:"^7.0.3","minipass-collect":"^2.0.1","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4","p-map":"^7.0.2",ssri:"^12.0.0","unique-filename":"^4.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli/template-oss. Edits may be overwritten.",windowsCI:!1,version:"4.25.0",publish:"true"},author:"GitHub Inc.",tap:{"nyc-arg":["--exclude","tap-snapshots/**"]}}});var pK=b((n$0,lwe)=>{"use strict";lwe.exports=Ext;function Ext(t){return[t.slice(0,2),t.slice(2,4),t.slic Line truncated
`+a.map(d=>{let h=JSON.stringify(d);return`${K6(h)} ${h}`}).join(`
`),u=o(async()=>{let d=W8t($c.join(t,"tmp"),s.tmpPrefix);return await PK($c.dirname(d),{recursive:!0}),{target:d,moved:!1}},"setup"),p=o(async d=>{if(!d.moved)return JNe(d.target,{recursive:!0,force:!0})},"teardown"),l=o(async d=>{await T8t(d.target,c,{flag:"wx"}),await PK($c.dirname(n),{recursive:!0}),await k8t(d.target,n),d.moved=!0},"write"),A=await u();try{await l(A)}finally{await p(A)}return a.reverse().map(d=>Z6(t,d,!0))}o(U8t,"compact");Mi.exports.insert=KNe;async function KNe(t,e,r,s={}){let{metadata:n,size:i,time:a}=s,c=Hy(t,e),u={key:e,integrity:r&&_8t.stringify(r),time:a||Date.now(),size:i,metadata:n};try{await PK($c.dirname(c),{recursive:!0});let p=JSON.stringify(u);await N8t(c,`
${K6(p)} ${p}`)}catch(p){if(p.code==="ENOENT")return;throw p}return Z6(t,u)}o(KNe,"insert");Mi.exports.find=G8t;async function G8t(t,e){let r=Hy(t,e);try{return(await J6(r)).reduce((n,i)=>i&&i.key===e?Z6(t,i):n,null)}catch(s){if(s.code==="ENOENT")return null;throw s}}o(G8t,"find");Mi.exports.delete=H8t;function H8t(t,e,r={}){if(!r.removeFully)return KNe(t,e,null,r);let s=Hy(t,e);return JNe(s,{recursive:!0,force:!0})}o(H8t,"del");Mi.exports.lsStream=ZNe;function ZNe(t){let e=QK(t),r=new x8t({objectMode:!0});return Promise.resolve().then(async()=>{let{default:s}=await Promise.resolve().then(()=>(Y6(),j6)),n=await LK(e);return await s(n,async i=>{let a=$c.join(e,i),c=await LK(a);await s(c,async u=>{let p=$c.join(a,u),l=await LK(p);await s(l,async A=>{let d=$c.join(p,A);try{let M=(await J6(d)).reduce((z,C)=>(z.set(C.key,C),z),new Map);for(let z of M.values()){let C=Z6(t,z);C&&r.write(C)}}catch(h){if(h.code==="ENOENT")return;throw h}},{concurrency:WK})},{concurrency:WK})},{concurrency:WK}),r.end(),r}).catch(s=>r.emit("error",s)),r}o(ZNe,"lsStream");Mi.exports.ls=X8t;async function X8t(t){return(await ZNe(t).collect()).reduce((r,s)=>(r[s.key]=s,r),{})}o(X8t,"ls");Mi.exports.bucketEntries=J6;async function J6(t,e){let r=await F8t(t,"utf8");return V8t(r,e)}o(J6,"bucketEntries");function V8t(t){let e=[];return t.split(`
`).forEach(r=>{if(!r)return;let s=r.split(" ");if(!s[1]||K6(s[1])!==s[0])return;let n;try{n=JSON.parse(s[1])}catch{}n&&e.push(n)}),e}o(V8t,"_bucketEntries");Mi.exports.bucketDir=QK;function QK(t){return $c.join(t,`index-v${Q8t}`)}o(QK,"bucketDir");Mi.exports.bucketPath=Hy;function Hy(t,e){let r=e6e(e);return $c.join.apply($c,[QK(t)].concat(P8t(r)))}o(Hy,"bucketPath");Mi.exports.hashKey=e6e;function e6e(t){return t6e(t,"sha256")}o(e6e,"hashKey");Mi.exports.hashEntry=K6;function K6(t){return t6e(t,"sha1")}o(K6,"hashEntry");function t6e(t,e){return S8t.createHash(e).update(t).digest("hex")}o(t6e,"hash");function Z6(t,e,r){return!e.integrity&&!r?null:{key:e.key,integrity:e.integrity,path:e.integrity?L8t(t,e.integrity):void 0,size:e.size,time:e.time,metadata:e.metadata}}o(Z6,"formatEntry");function LK(t){return v8t(t).catch(e=>{if(e.code==="ENOENT"||e.code==="ENOTDIR")return[];throw e})}o(LK,"readdirOrEmpty")});var FM=b(tF=>{"use strict";Object.defineProperty(tF,"__esModule",{value:!0});tF.LRUCache=void 0;var $8t=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,s6e=new Set,kK=typeof process=="object"&&process?process:{},n6e=o((t,e,r,s)=>{typeof kK.emitWarning=="function"?kK.emitWarning(t,e,r,s):console.error(`[${r}] ${e}: ${t}`)},"emitWarning"),eF=globalThis.AbortController,r6e=globalThis.AbortSignal;if(typeof eF>"u"){r6e=class{static{o(this,"AbortSignal")}onabort;_onabort=[];reason;aborted=!1;addEventListener(s,n){this._onabort.push(n)}},eF=class{static{o(this,"AbortController")}constructor(){e()}signal=new r6e;abort(s){if(!this.signal.aborted){this.signal.reason=s,this.signal.aborted=!0;for(let n of this.signal._onabort)n(s);this.signal.onabort?.(s)}}};let t=kK.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=o(()=>{t&&(t=!1,n6e("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e))},"warnACPolyfill")}var j8t=o(t=>!s6e.has(t),"shouldWarn"),_A=o(t=>t&&t===Math.floor(t)&&t>0&&isFinite(t),"isPosInt"),i6e=o(t=>_A(t)?t<=Math.pow(2,8)?Uint8Array:t<=Math.pow(2,16)?Uint16Array:t<=Math.pow(2,32)?Uint32Array:t<=Number.MAX_SAFE_INTEGER?NM:null:null,"getUintArray"),NM=class extends Array{static{o(this,"ZeroArray")}constructor(e){super(e),this.fill(0)}},UK=class t{static{o(this,"Stack")}heap;length;static#e=!1;static create(e){let r=i6e(e);if(!r)return[];t.#e=!0;let s=new t(e,r);return t.#e=!1,s}constructor(e,r){if(!t.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new r(e),this.length=0}push(e){this.heap[this.length++]=e}pop(){return this.heap[--this.length]}},GK=class t{static{o(this,"LRUCache")}#e;#t;#s;#r;#n;#i;#a;#o;get perf(){return this.#o}ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#l;#A;#d;#u;#b;#O;#m;#M;#B;#g;#y;#C;#h;#E;#D;#z;#p;static unsafeExposeInternals(e){return{starts:e.#C,ttls:e.#h,sizes:e.#y,keyMap:e.#A,keyList:e.#d,valList:e.#u,next:e.#b,prev:e.#O,get head(){return e.#m},get tail(){return e.#M},free:e.#B,isBackgroundFetch:o(r=>e.#f(r),"isBackgroundFetch"),backgroundFetch:o((r,s,n,i)=>e.#U(r,s,n,i),"backgroundFetch"),moveToTail:o(r=>e.#_(r),"moveToTail"),indexes:o(r=>e.#w(r),"indexes"),rindexes:o(r=>e.#N(r),"rindexes"),isStale:o(r=>e.#I(r),"isStale")}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#l}get size(){return this.#c}get fetchMethod(){return this.#i}get memoMethod(){return this.#a}get dispose(){return this.#s}get onInsert(){return this.#r}get disposeAfter(){return this.#n}constructor(e){let{max:r=0,ttl:s,ttlResolution:n=1,ttlAutopurge:i,updateAgeOnGet:a,updateAgeOnHas:c,allowStale:u,dispose:p,onInsert:l,disposeAfter:A,noDisposeOnSet:d,noUpdateTTL:h,maxSize:M=0,maxEntrySize:z=0,sizeCalculation:C,fetchMethod:E,memoMethod:B,noDeleteOnFetchRejection:I,noDeleteOnStaleGet:w,allowStaleOnFetchRejection:N,allowStaleOnFetchAbort:x,ignoreFetchAbort:P,perf:j}=e;if(j!==void 0&&typeof j?.now!="function")throw new TypeError("perf option must have a now() method if specified");if(this.#o=j??$8t,r!==0&&!_A(r))throw new TypeError("max option must be a nonnegative integer");let Ee=r?i6e(r):Array;if(!Ee)throw new Error("invalid max value: "+r);if(this.#e=r,this.#t=M,this.maxEntrySize=z||this.#t,this.sizeCalculation=C,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("si Line truncated
Wanted: ${t}
Found: ${e}`);return r.code="EINTEGRITY",r.expected=t,r.found=e,r}o(wPt,"checksumError")});var q6e=b((BY0,nZ)=>{"use strict";var y6e=SM(),C6e=Xy(),B6e=E6e(),SPt=Dy(),{PassThrough:NPt}=HJ(),FPt=df(),D6e=o(t=>({algorithms:["sha512"],...t}),"putOpts");nZ.exports=vPt;async function vPt(t,e,r,s={}){let{memoize:n}=s;s=D6e(s);let i=await B6e(t,r,s),a=await y6e.insert(t,e,i.integrity,{...s,size:i.size});return n&&C6e.put(t,a,r,s),i.integrity}o(vPt,"putData");nZ.exports.stream=TPt;function TPt(t,e,r={}){let{memoize:s}=r;r=D6e(r);let n,i,a,c,u=new FPt;if(s){let l=new NPt().on("collect",A=>{c=A});u.push(l)}let p=B6e.stream(t,r).on("integrity",l=>{n=l}).on("size",l=>{i=l}).on("error",l=>{a=l});return u.push(p),u.push(new SPt({async flush(){if(!a){let l=await y6e.insert(t,e,n,{...r,size:i});s&&c&&C6e.put(t,l,c,r),u.emit("integrity",n),u.emit("size",i)}}})),u}o(TPt,"putStream")});var R6e=b(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});yf.range=yf.balanced=void 0;var xPt=o((t,e,r)=>{let s=t instanceof RegExp?I6e(t,r):t,n=e instanceof RegExp?I6e(e,r):e,i=s!==null&&n!=null&&(0,yf.range)(s,n,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+s.length,i[1]),post:r.slice(i[1]+n.length)}},"balanced");yf.balanced=xPt;var I6e=o((t,e)=>{let r=e.match(t);return r?r[0]:null},"maybeMatch"),_Pt=o((t,e,r)=>{let s,n,i,a,c,u=r.indexOf(t),p=r.indexOf(e,u+1),l=u;if(u>=0&&p>0){if(t===e)return[u,p];for(s=[],i=r.length;l>=0&&!c;){if(l===u)s.push(l),u=r.indexOf(t,l+1);else if(s.length===1){let A=s.pop();A!==void 0&&(c=[A,p])}else n=s.pop(),n!==void 0&&n<i&&(i=n,a=p),p=r.indexOf(e,l+1);l=u<p&&u>=0?u:p}s.length&&a!==void 0&&(c=[i,a])}return c},"range");yf.range=_Pt});var x6e=b(kM=>{"use strict";Object.defineProperty(kM,"__esModule",{value:!0});kM.EXPANSION_MAX=void 0;kM.expand=YPt;var w6e=R6e(),S6e="\0SLASH"+Math.random()+"\0",N6e="\0OPEN"+Math.random()+"\0",oZ="\0CLOSE"+Math.random()+"\0",F6e="\0COMMA"+Math.random()+"\0",v6e="\0PERIOD"+Math.random()+"\0",WPt=new RegExp(S6e,"g"),LPt=new RegExp(N6e,"g"),PPt=new RegExp(oZ,"g"),QPt=new RegExp(F6e,"g"),kPt=new RegExp(v6e,"g"),UPt=/\\\\/g,GPt=/\\{/g,HPt=/\\}/g,XPt=/\\,/g,VPt=/\\./g;kM.EXPANSION_MAX=1e5;function iZ(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}o(iZ,"numeric");function $Pt(t){return t.replace(UPt,S6e).replace(GPt,N6e).replace(HPt,oZ).replace(XPt,F6e).replace(VPt,v6e)}o($Pt,"escapeBraces");function jPt(t){return t.replace(WPt,"\\").replace(LPt,"{").replace(PPt,"}").replace(QPt,",").replace(kPt,".")}o(jPt,"unescapeBraces");function T6e(t){if(!t)return[""];let e=[],r=(0,w6e.balanced)("{","}",t);if(!r)return t.split(",");let{pre:s,body:n,post:i}=r,a=s.split(",");a[a.length-1]+="{"+n+"}";let c=T6e(i);return i.length&&(a[a.length-1]+=c.shift(),a.push.apply(a,c)),e.push.apply(e,a),e}o(T6e,"parseCommaParts");function YPt(t,e={}){if(!t)return[];let{max:r=kM.EXPANSION_MAX}=e;return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),Zy($Pt(t),r,!0).map(jPt)}o(YPt,"expand");function JPt(t){return"{"+t+"}"}o(JPt,"embrace");function KPt(t){return/^-?0\d/.test(t)}o(KPt,"isPadded");function ZPt(t,e){return t<=e}o(ZPt,"lte");function eQt(t,e){return t>=e}o(eQt,"gte");function Zy(t,e,r){let s=[],n=(0,w6e.balanced)("{","}",t);if(!n)return[t];let i=n.pre,a=n.post.length?Zy(n.post,e,!1):[""];if(/\$$/.test(n.pre))for(let c=0;c<a.length&&c<e;c++){let u=i+"{"+n.body+"}"+a[c];s.push(u)}else{let c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=c||u,l=n.body.indexOf(",")>=0;if(!p&&!l)return n.post.match(/,(?!,).*\}/)?(t=n.pre+"{"+n.body+oZ+n.post,Zy(t,e,!0)):[t];let A;if(p)A=n.body.split(/\.\./);else if(A=T6e(n.body),A.length===1&&A[0]!==void 0&&(A=Zy(A[0],e,!1).map(JPt),A.length===1))return a.map(h=>n.pre+A[0]+h);let d;if(p&&A[0]!==void 0&&A[1]!==void 0){let h=iZ(A[0]),M=iZ(A[1]),z=Math.max(A[0].length,A[1].length),C=A.length===3&&A[2]!==void 0?Math.abs(iZ(A[2])):1,E=ZPt;M<h&&(C*=-1,E=eQt);let I=A.some(KPt);d=[];for(let w=h;E(w,M);w+=C){let N;if(u)N=String.fromCharCode(w),N==="\\"&&(N="");else if(N=String(w),I){let x=z-N.length;if(x>0){let P=new Array(x+1).join("0");w<0?N="-"+P+N.slice(1):N=P+N}}d.push(N)}}else{d=[];for(let h=0;h<A.length;h++)d.push.apply(d,Zy(A[h],e,!1))}for(let h=0;h<d.length;h++)for(let M=0;M<a.length&&s.length<e;M++){let z=i+d[h]+a[M];(!r||p||z)&&s.push(z)}}return s}o(Zy,"expand_")});var _6e=b(AF=>{"use strict";Object.defineProperty(AF,"__esModule",{value:!0});AF.assertValidPattern=void 0;var tQt=1024*64,rQt=o(t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>tQt)throw new TypeError("pattern is too long")},"assertValidPattern");AF.assertValidPattern=rQt});var L6e=b(dF=>{"use strict";Object.defineProperty(dF,"__esModule",{value:!0});dF.parseClass=void 0;var sQt={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z} Line truncated
globstar while`,e,d,r,h,M),this.matchOne(e.slice(d),r.slice(h),s))return this.debug("globstar found match!",d,u,M),!0;if(M==="."||M===".."||!n.dot&&M.charAt(0)==="."){this.debug("dot detected!",e,d,r,h);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(s&&(this.debug(`
>>> no match, partial?`,e,d,r,h),d===u))}let z;if(typeof l=="string"?(z=A===l,this.debug("string match",l,A,z)):(z=l.test(A),this.debug("pattern match",l,A,z)),!z)return!1}if(a===u&&c===p)return!0;if(a===u)return s;if(c===p)return a===u-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ie.braceExpand)(this.pattern,this.options)}parse(e){(0,zF.assertValidPattern)(e);let r=this.options;if(e==="**")return Ie.GLOBSTAR;if(e==="")return"";let s,n=null;(s=e.match(RQt))?n=r.dot?SQt:wQt:(s=e.match(gQt))?n=(r.nocase?r.dot?yQt:EQt:r.dot?OQt:zQt)(s[1]):(s=e.match(NQt))?n=(r.nocase?r.dot?vQt:FQt:r.dot?TQt:xQt)(s):(s=e.match(CQt))?n=r.dot?DQt:BQt:(s=e.match(qQt))&&(n=IQt);let i=H6e.AST.fromGlob(e,this.options).toMMPattern();return n&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:n}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,s=r.noglobstar?WQt:r.dot?LQt:PQt,n=new Set(r.nocase?["i"]:[]),i=e.map(u=>{let p=u.map(A=>{if(A instanceof RegExp)for(let d of A.flags.split(""))n.add(d);return typeof A=="string"?XQt(A):A===Ie.GLOBSTAR?Ie.GLOBSTAR:A._src});p.forEach((A,d)=>{let h=p[d+1],M=p[d-1];A!==Ie.GLOBSTAR||M===Ie.GLOBSTAR||(M===void 0?h!==void 0&&h!==Ie.GLOBSTAR?p[d+1]="(?:\\/|"+s+"\\/)?"+h:p[d]=s:h===void 0?p[d-1]=M+"(?:\\/|\\/"+s+")?":h!==Ie.GLOBSTAR&&(p[d-1]=M+"(?:\\/|\\/"+s+"\\/)"+h,p[d+1]=Ie.GLOBSTAR))});let l=p.filter(A=>A!==Ie.GLOBSTAR);if(this.partial&&l.length>=1){let A=[];for(let d=1;d<=l.length;d++)A.push(l.slice(0,d).join("/"));return"(?:"+A.join("|")+")"}return l.join("/")}).join("|"),[a,c]=e.length>1?["(?:",")"]:["",""];i="^"+a+i+c+"$",this.partial&&(i="^(?:\\/|"+a+i.slice(1,-1)+c+")$"),this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...n].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let s=this.options;this.isWindows&&(e=e.split("\\").join("/"));let n=this.slashSplit(e);this.debug(this.pattern,"split",n);let i=this.set;this.debug(this.pattern,"set",i);let a=n[n.length-1];if(!a)for(let c=n.length-2;!a&&c>=0;c--)a=n[c];for(let c=0;c<i.length;c++){let u=i[c],p=n;if(s.matchBase&&u.length===1&&(p=[a]),this.matchOne(p,u,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return Ie.minimatch.defaults(e).Minimatch}};Ie.Minimatch=Cf;var VQt=uZ();Object.defineProperty(Ie,"AST",{enumerable:!0,get:o(function(){return VQt.AST},"get")});var $Qt=pZ();Object.defineProperty(Ie,"escape",{enumerable:!0,get:o(function(){return $Qt.escape},"get")});var jQt=hF();Object.defineProperty(Ie,"unescape",{enumerable:!0,get:o(function(){return jQt.unescape},"get")});Ie.minimatch.AST=H6e.AST;Ie.minimatch.Minimatch=Cf;Ie.minimatch.escape=bQt.escape;Ie.minimatch.unescape=mQt.unescape});var eFe=b(Ts=>{"use strict";var YQt=Ts&&Ts.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.Minipass=Ts.isWritable=Ts.isReadable=Ts.isStream=void 0;var j6e=typeof process=="object"&&process?process:{stdout:null,stderr:null},mZ=require("node:events"),Z6e=YQt(require("node:stream")),JQt=require("node:string_decoder"),KQt=o(t=>!!t&&typeof t=="object"&&(t instanceof qF||t instanceof Z6e.default||(0,Ts.isReadable)(t)||(0,Ts.isWritable)(t)),"isStream");Ts.isStream=KQt;var ZQt=o(t=>!!t&&typeof t=="object"&&t instanceof mZ.EventEmitter&&typeof t.pipe=="function"&&t.pipe!==Z6e.default.Writable.prototype.pipe,"isReadable");Ts.isReadable=ZQt;var ekt=o(t=>!!t&&typeof t=="object"&&t instanceof mZ.EventEmitter&&typeof t.write=="function"&&typeof t.end=="function","isWritable");Ts.isWritable=ekt;var Zp=Symbol("EOF"),el=Symbol("maybeEmitEnd"),kA=Symbol("emittedEnd"),OF=Symbol("emittingEnd"),tC=Symbol("emittedError"),EF=Symbol("closed"),Y6e=Symbol("read"),yF=Symbol("flush"),J6e=Symbol("flushChunk"),fa=Symbol("encoding"),UM=Symbol("decoder"),ir=Symbol("flowing"),rC=Symbol("paused"),GM=Symbol("resume"),or=Symbol("buffer"),vs=Symbol("pipes"),ar=Symbol("bufferLength"),lZ=Symbol("bufferPush"),CF=Symbol("bufferShift"),Yr=Symbol("objectMode"),b1=Symbol("destroyed"),AZ=Symbol("error"),dZ=Symbol("emitData"),K6e=Symbol("emitEnd"),fZ=Symbol("emitEnd2"),Yc=Symbol("async"),hZ=Symbol("abort"),BF=Symbol("aborted"),sC=Symbol("signal"),Bf=Symbol("dataListeners"),gi=Symbol("discarded"),nC=o(t=>Promise.resolve().then(t),"defer"),tkt=o(t=>t(),"nodefer"),rkt=o(t=>t==="end"||t==="finish"||t==="prefinish","isEndish"),skt=o(t=>t instanceof ArrayBuffer||!!t&&typeof t=="object"&&t.constructor&&t.constructor.name==="ArrayBuffer"&&t.byteLength>=0,"isArrayBufferLike"),nkt=o(t=>!Buffer.isBuffer(t)&&ArrayBuffer.isView(t),"isArrayBufferView"),DF=class{static{o(this,"Pipe")}src;dest;opts;ondra Line truncated
\r
`);if(d===-1){sv("have not received end of HTTP headers yet..."),i();return}let h=A.slice(0,d).toString("ascii").split(`\r
`),M=h.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let z=M.split(" "),C=+z[1],E=z.slice(2).join(" "),B={};for(let I of h){if(!I)continue;let w=I.indexOf(":");if(w===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let N=I.slice(0,w).toLowerCase(),x=I.slice(w+1).trimStart(),P=B[N];typeof P=="string"?B[N]=[P,x]:Array.isArray(P)?P.push(x):B[N]=x}sv("got proxy server response: %o %o",M,B),a(),e({connect:{statusCode:C,statusText:E,headers:B},buffered:A})}o(p,"ondata"),t.on("error",u),t.on("end",c),i()})}o(A9t,"parseProxyResponse");YM.parseProxyResponse=A9t});var Ove=b(mo=>{"use strict";var d9t=mo&&mo.__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]})),f9t=mo&&mo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),gve=mo&&mo.__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)&&d9t(e,t,r);return f9t(e,t),e},zve=mo&&mo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(mo,"__esModule",{value:!0});mo.HttpsProxyAgent=void 0;var CC=gve(require("net")),mve=gve(require("tls")),h9t=zve(require("assert")),b9t=zve(c2()),m9t=i3(),M9t=require("url"),g9t=bve(),BC=(0,b9t.default)("https-proxy-agent"),nv=class extends m9t.Agent{static{o(this,"HttpsProxyAgent")}constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new M9t.URL(e):e,this.proxyHeaders=r?.headers??{},BC("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?Mve(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;if(s.protocol==="https:"){BC("Creating `tls.Socket`: %o",this.connectOpts);let d=this.connectOpts.servername||this.connectOpts.host;n=mve.connect({...this.connectOpts,servername:d&&CC.isIP(d)?void 0:d})}else BC("Creating `net.Socket`: %o",this.connectOpts),n=CC.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},a=CC.isIPv6(r.host)?`[${r.host}]`:r.host,c=`CONNECT ${a}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let d=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${a}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))c+=`${d}: ${i[d]}\r
`;let u=(0,g9t.parseProxyResponse)(n);n.write(`${c}\r
`);let{connect:p,buffered:l}=await u;if(e.emit("proxyConnect",p),this.emit("proxyConnect",p,e),p.statusCode===200){if(e.once("socket",z9t),r.secureEndpoint){BC("Upgrading socket connection to TLS");let d=r.servername||r.host;return mve.connect({...Mve(r,"host","path","port"),socket:n,servername:CC.isIP(d)?void 0:d})}return n}n.destroy();let A=new CC.Socket({writable:!1});return A.readable=!0,e.once("socket",d=>{BC("Replaying proxy buffer for failed request"),(0,h9t.default)(d.listenerCount("data")>0),d.push(l),d.push(null)}),A}};nv.protocols=["http","https"];mo.HttpsProxyAgent=nv;function z9t(t){t.resume()}o(z9t,"resume");function Mve(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}o(Mve,"omit")});var Bve=b(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});var Eve=require("buffer"),wf={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};sl.ERRORS=wf;function O9t(t){if(!Eve.Buffer.isEncoding(t))throw new Error(wf.INVALID_ENCODING)}o(O9t,"checkEncoding");sl.checkEncoding=O9t;function yve(t){return typeof t=="number"&&isFinite(t)&&B9t(t)}o(yve,"isFiniteInteger");sl.isFiniteInteger=yve;function Cve(t,e){if(typeof t=="number"){if(!yve(t)||t<0)throw new Error(e?wf.INVALID_OFFSET:wf.INVALID_LENGTH)}else throw new Error(e?wf.INVALID_OFFSET_NON_NUMBER:wf.INVALID_LENGTH_NON_NUMBER)}o(Cve,"checkOffsetOrLengthValue");function E9t(t){Cve(t,!1)}o(E9t,"checkLengthValue");sl.checkLengthValue=E9t;function y9t(t){Cve(t,!0)}o(y9t,"checkOffsetValue");sl.checkOffsetValue=y9t;function C9t(t,e){if(t<0||t>e.length)throw new Error(wf.INVALID_TARGET_OFFSET)}o(C9t,"checkTargetOffset");sl.checkTargetOffset=C9t;function B9t(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}o(B9t,"isInteger");function D9t(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof Eve.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}o(D9t,"bigIntAndBufferInt64Check");sl.bigIntAndBufferInt64Check=D9t});var qve=b(oee=>{"use strict";Object.defineProperty(oee,"__esModule",{value:!0});var ut=Bve(),Dve=4096,q9t="utf8",iee=class t{static{o(this,"SmartBuffer")}constructor(e){if(this.length=0,this._encoding=q9t,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(ut.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(ut.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(ut.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(ut.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(Dve);else{if(typeof e<"u")throw new Error(ut.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(Dve)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return ut.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return ut.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt Line truncated
`.trim()},"lookupPropertyFunctionVarDeclaration"),blockValue:i(function(e){var r=this.aliasable("container.hooks.blockHelperMissing"),n=[this.contextName(0)];this.setupHelperArgs(e,0,n);var o=this.popStack();n.splice(1,0,o),this.push(this.source.functionCall(r,"call",n))},"blockValue"),ambiguousBlockValue:i(function(){var e=this.aliasable("container.hooks.blockHelperMissing"),r=[this.contextName(0)];this.setupHelperArgs("",0,r,!0),this.flushInline();var n=this.topStack();r.splice(1,0,n),this.pushSource(["if (!",this.lastHelper,") { ",n," = ",this.source.functionCall(e,"call",r),"}"])},"ambiguousBlockValue"),appendContent:i(function(e){this.pendingContent?e=this.pendingContent+e:this.pendingLocation=this.source.currentLocation,this.pendingContent=e},"appendContent"),append:i(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:i(function(){this.pushSource(this.appendToBuffer([this.aliasable("container.escapeExpression"),"(",this.popStack(),")"]))},"appendEscaped"),getContext:i(function(e){this.lastContext=e},"getContext"),pushContext:i(function(){this.pushStackLiteral(this.contextName(this.lastContext))},"pushContext"),lookupOnContext:i(function(e,r,n,o){var s=0;!o&&this.options.compat&&!this.lastContext?this.push(this.depthedLookup(e[s++])):this.pushContext(),this.resolvePath("context",e,s,r,n)},"lookupOnContext"),lookupBlockParam:i(function(e,r){this.useBlockParams=!0,this.push(["blockParams[",e[0],"][",e[1],"]"]),this.resolvePath("context",r,1)},"lookupBlockParam"),lookupData:i(function(e,r,n){e?this.pushStackLiteral("container.data(data, "+e+")"):this.pushStackLiteral("data"),this.resolvePath("data",r,0,!0,n)},"lookupData"),resolvePath:i(function(e,r,n,o,s){var a=this;if(this.options.strict||this.options.assumeObjects){this.push(pi0(this.options.strict&&s,this,r,n,e));return}for(var c=r.length,u=i(function(A){a.replaceStack(function(l){var b=a.nameLookup(l,r[A],e);return o?[" && ",b]:[" != null ? ",b," : ",l]})},"_loop"),p=n;p<c;p++)u(p)},"resolvePath"),resolvePossibleLambda:i(function(){this.push([this.aliasable("container.lambda"),"(",this.popStack(),", ",this.contextName(0),")"])},"resolvePossibleLambda"),pushStringParam:i(function(e,r){this.pushContext(),this.pushString(r),r!=="SubExpression"&&(typeof e=="string"?this.pushString(e):this.pushStackLiteral(e))},"pushStringParam"),emptyHash:i(function(e){this.trackIds&&this.push("{}"),this.stringParams&&(this.push("{}"),this.push("{}")),this.pushStackLiteral(e?"undefined":"{}")},"emptyHash"),pushHash:i(function(){this.hash&&this.hashes.push(this.hash),this.hash={values:{},types:[],contexts:[],ids:[]}},"pushHash"),popHash:i(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:i(function(e){this.pushStackLiteral(this.quotedString(e))},"pushString"),pushLiteral:i(function(e){this.pushStackLiteral(e)},"pushLiteral"),pushProgram:i(function(e){e!=null?this.pushStackLiteral(this.programExpression(e)):this.pushStackLiteral(null)},"pushProgram"),registerDecorator:i(function(e,r){var n=this.nameLookup("decorators",r,"decorator"),o=this.setupHelperArgs(r,e);this.decorators.push(["var decorator = ",n,";"]),this.decorators.push(['if (typeof decorator !== "function") { throw new Error(',this.quotedString('Missing decorator: "'+r+'"'),"); }"]),this.decorators.push(["fn = ",this.decorators.functionCall("decorator","",["fn","props","container",o])," || fn;"])},"registerDecorator"),invokeHelper:i(function(e,r,n){var o=this.popStack(),s=this.setupHelper(e,r),a=[];n&&a.push(s.name),a.push(o),this.options.strict||a.push(this.aliasable("container.hooks.helperMissing"));var c=["(",this.itemsSeparatedBy(a,"||"),")"],u=this.source.functionCall(c,"call",s.callParams);this.push(u)},"invokeHelper"),itemsSeparatedBy:i(function(e,r){var n=[];n.push(e[0]);for(var o=1;o<e.length;o++)n.push(r,e[o]);return n},"itemsSeparatedBy"),invokeKnownHelper:i(function(e,r){var n=this.setupHelper(e,r);this.push(this.source.functionCall(n.name,"call",n.callParams))},"invokeKnownHelper"),invokeAmbiguous:i(function(e,r){this.useRegister("helper");var n=this.popStack();this.emptyHash();var o=this.setupHelper(0,e,r),s=this.lastHelper=this.nameLookup("helpers",e,"helper"),a=["(","(helper = ",s," || ",n,")"];this.options.strict||(a[0]="(helper = ",a.push(" != null ? helper : ",this.aliasable("container.hooks.helperMissing"))),this.push(["(",a,o.paramsInit?["),(",o.paramsInit]:[],"),","(typeof helper === ",this.aliasable('"function"')," ? ",this.source.functionCall("h Line truncated
`,e};A1.prototype.Program=function(t){var e="",r=t.body,n=void 0,o=void 0;if(t.blockParams){var s="BLOCK PARAMS: [";for(n=0,o=t.blockParams.length;n<o;n++)s+=" "+t.blockParams[n];s+=" ]",e+=this.pad(s)}for(n=0,o=r.length;n<o;n++)e+=this.accept(r[n]);return this.padding--,e};A1.prototype.MustacheStatement=function(t){return this.pad("{{ "+this.SubExpression(t)+" }}")};A1.prototype.Decorator=function(t){return this.pad("{{ DIRECTIVE "+this.SubExpression(t)+" }}")};A1.prototype.BlockStatement=A1.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};A1.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+" }}")};A1.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+" }}")};A1.prototype.ContentStatement=function(t){return this.pad("CONTENT[ '"+t.value+"' ]")};A1.prototype.CommentStatement=function(t){return this.pad("{{! '"+t.value+"' }}")};A1.prototype.SubExpression=function(t){for(var e=t.params,r=[],n=void 0,o=0,s=e.length;o<s;o++)r.push(this.accept(e[o]));return e="["+r.join(", ")+"]",n=t.hash?" "+this.accept(t.hash):"",this.accept(t.path)+" "+e+n};A1.prototype.PathExpression=function(t){var e=t.parts.join("/");return(t.data?"@":"")+"PATH:"+e};A1.prototype.StringLiteral=function(t){return'"'+t.value+'"'};A1.prototype.NumberLiteral=function(t){return"NUMBER{"+t.value+"}"};A1.prototype.BooleanLiteral=function(t){return"BOOLEAN{"+t.value+"}"};A1.prototype.UndefinedLiteral=function(){return"UNDEFINED"};A1.prototype.NullLiteral=function(){return"NULL"};A1.prototype.Hash=function(t){for(var e=t.pairs,r=[],n=0,o=e.length;n<o;n++)r.push(this.accept(e[n]));return"HASH{"+r.join(", ")+"}"};A1.prototype.HashPair=function(t){return t.key+"="+this.accept(t.value)}});var vQ=m((Wt1,KAe)=>{var R4=YAe().default,$Ae=JAe();R4.PrintVisitor=$Ae.PrintVisitor;R4.print=$Ae.print;KAe.exports=R4;function jAe(t,e){var r=require("fs"),n=r.readFileSync(e,"utf8");t.exports=R4.compile(n)}i(jAe,"extension");typeof require<"u"&&require.extensions&&(require.extensions[".handlebars"]=jAe,require.extensions[".hbs"]=jAe)});var x4=m(Bc=>{"use strict";Object.defineProperty(Bc,"__esModule",{value:!0});Bc.Signature=Bc.Envelope=void 0;Bc.Envelope={fromJSON(t){return{payload:W4(t.payload)?Buffer.from(cle(t.payload)):Buffer.alloc(0),payloadType:W4(t.payloadType)?globalThis.String(t.payloadType):"",signatures:globalThis.Array.isArray(t?.signatures)?t.signatures.map(e=>Bc.Signature.fromJSON(e)):[]}},toJSON(t){let e={};return t.payload.length!==0&&(e.payload=ule(t.payload)),t.payloadType!==""&&(e.payloadType=t.payloadType),t.signatures?.length&&(e.signatures=t.signatures.map(r=>Bc.Signature.toJSON(r))),e}};Bc.Signature={fromJSON(t){return{sig:W4(t.sig)?Buffer.from(cle(t.sig)):Buffer.alloc(0),keyid:W4(t.keyid)?globalThis.String(t.keyid):""}},toJSON(t){let e={};return t.sig.length!==0&&(e.sig=ule(t.sig)),t.keyid!==""&&(e.keyid=t.keyid),e}};function cle(t){return Uint8Array.from(globalThis.Buffer.from(t,"base64"))}i(cle,"bytesFromBase64");function ule(t){return globalThis.Buffer.from(t).toString("base64")}i(ule,"base64FromBytes");function W4(t){return t!=null}i(W4,"isSet")});var Ale=m(T4=>{"use strict";Object.defineProperty(T4,"__esModule",{value:!0});T4.Timestamp=void 0;T4.Timestamp={fromJSON(t){return{seconds:ple(t.seconds)?globalThis.String(t.seconds):"0",nanos:ple(t.nanos)?globalThis.Number(t.nanos):0}},toJSON(t){let e={};return t.seconds!=="0"&&(e.seconds=t.seconds),t.nanos!==0&&(e.nanos=Math.round(t.nanos)),e}};function ple(t){return t!=null}i(ple,"isSet")});var pa=m(Ce=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.TimeRange=Ce.X509CertificateChain=Ce.SubjectAlternativeName=Ce.X509Certificate=Ce.DistinguishedName=Ce.ObjectIdentifierValuePair=Ce.ObjectIdentifier=Ce.PublicKeyIdentifier=Ce.PublicKey=Ce.RFC3161SignedTimestamp=Ce.LogId=Ce.MessageSignature=Ce.HashOutput=Ce.SubjectAlternativeNameType=Ce.PublicKeyDetails=Ce.HashAlgorithm=void 0;Ce.hashAlgorithmFromJSON=dle;Ce.hashAlgorithmToJSON=ble;Ce.publicKeyDetailsFromJSON=Mle;Ce.publicKeyDetailsToJSON=fle;Ce.subjectAlternativeNameTypeFromJSON=mle;Ce.subjectAlternativeNameTypeToJSON=hle;var Ri0=Ale(),zr;(function(t){t[t.HASH_ALGORITHM_UNSPECIFIED=0]="HASH_ALGORITHM_UNSPECIFIED",t[t.SHA2_256=1]="SHA2_256",t[t.SHA2_384=2]="SHA2_384",t[t.SHA2_512=3]="SHA2_512",t[t.SHA3_256=4]="SH Line truncated
`).join(`
`+i),t.push(n+"m+"+mT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=K$t()+e+" "+t[0]}o(J$t,"formatArgs");function K$t(){return dr.inspectOpts.hideDate?"":new Date().toISOString()+" "}o(K$t,"getDate");function Z$t(...t){return process.stderr.write(bT.formatWithOptions(dr.inspectOpts,...t)+`
`)}o(Z$t,"log");function ejt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}o(ejt,"save");function tjt(){return process.env.DEBUG}o(tjt,"load");function rjt(t){t.inspectOpts={};let e=Object.keys(dr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=dr.inspectOpts[e[r]]}o(rjt,"init");mT.exports=s0e()(dr);var{formatters:b_e}=mT.exports;b_e.o=function(t){return this.inspectOpts.colors=this.useColors,bT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};b_e.O=function(t){return this.inspectOpts.colors=this.useColors,bT.inspect(t,this.inspectOpts)}});var i0e=b((rt1,n0e)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?n0e.exports=h_e():n0e.exports=m_e()});var g_e=b((st1,M_e)=>{var sjt=require("dns"),njt=["if-modified-since","if-none-match","if-unmodified-since","if-match","if-range"],ijt=o(t=>{let{strictSSL:e,...r}={...t};if(r.method=r.method?r.method.toUpperCase():"GET",e==null?r.rejectUnauthorized=process.env.NODE_TLS_REJECT_UNAUTHORIZED!=="0":r.rejectUnauthorized=e!==!1,!r.retry)r.retry={retries:0};else if(typeof r.retry=="string"){let s=parseInt(r.retry,10);isFinite(s)?r.retry={retries:s}:r.retry={retries:0}}else typeof r.retry=="number"?r.retry={retries:r.retry}:r.retry={retries:0,...r.retry};return r.dns={ttl:300*1e3,lookup:sjt.lookup,...r.dns},r.cache=r.cache||"default",r.cache==="default"&&Object.keys(r.headers||{}).some(n=>njt.includes(n.toLowerCase()))&&(r.cache="no-store"),r.cacheAdditionalHeaders=r.cacheAdditionalHeaders||[],r.cacheManager&&!r.cachePath&&(r.cachePath=r.cacheManager),r},"configureOptions");M_e.exports=ijt});var a0e=b((it1,C_e)=>{var z_e=OJ(),O_e=qJ(),ojt=Ey(),E_e={shared:!1,ignoreCargoCult:!0},ajt={status:200,headers:{}},Cg=o(t=>{let e={method:t.method,url:t.url,headers:{},compress:t.compress};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"requestObject"),y_e=o(t=>{let e={status:t.status,headers:{}};return t.headers.forEach((r,s)=>{e.headers[s]=r}),e},"responseObject"),o0e=class{static{o(this,"CachePolicy")}constructor({entry:e,request:r,response:s,options:n}){this.entry=e,this.request=Cg(r),this.response=y_e(s),this.options=n,this.policy=new z_e(this.request,this.response,E_e),this.entry&&(this.policy._responseTime=this.entry.metadata.time)}static storable(e,r){return!r.cachePath||r.cache==="no-store"||!["GET","HEAD"].includes(e.method)?!1:new z_e(Cg(e),ajt,E_e).storable()}satisfies(e){let r=Cg(e);if(this.request.headers.host!==r.headers.host||this.request.compress!==r.compress)return!1;let s=new O_e(this.request),n=new O_e(r);return JSON.stringify(s.mediaTypes())!==JSON.stringify(n.mediaTypes())||JSON.stringify(s.languages())!==JSON.stringify(n.languages())||JSON.stringify(s.encodings())!==JSON.stringify(n.encodings())?!1:this.options.integrity?ojt.parse(this.options.integrity).match(this.entry.integrity):!0}storable(){return this.policy.storable()}get mustRevalidate(){return!!this.policy._rescc["must-revalidate"]}needsRevalidation(e){let r=Cg(e);return r.method="GET",!this.policy.satisfiesWithoutRevalidation(r)}responseHeaders(){return this.policy.responseHeaders()}revalidationHeaders(e){let r=Cg(e);return this.policy.revalidationHeaders(r)}revalidated(e,r){let s=Cg(e),n=y_e(r);return!this.policy.revalidatedPolicy(s,n).modified}};C_e.exports=o0e});var D_e=b((at1,B_e)=>{var c0e=class extends Error{static{o(this,"NotCachedError")}constructor(e){super(`request to ${e} failed: cache mode is 'only-if-cached' but no cached response is available.`),this.code="ENOTCACHED"}};B_e.exports={NotCachedError:c0e}});var p0e=b((ut1,q_e)=>{"use strict";var cjt=df(),u0e=class extends cjt{static{o(this,"CachingMinipassPipeline")}#e=[];#t=new Map;constructor(e,...r){super(),this.#e=e.events,r.length&&this.push(...r)}on(e,r){return this.#e.includes(e)&&this.#t.has(e)?r(...this.#t.get(e)):super.on(e,r)}emit(e,...r){return this.#e.includes(e)&&this.#t.set(e,r),super.emit(e,...r)}};q_e.exports=u0e});var R_e=b((lt1,I_e)=>{var{URL:ujt,format:pjt}=require("url"),ljt={auth:!1,fragment:!1,search:!0,unicode:!1},Ajt=o(t=>{let e=new ujt(t.url);return`make-fetch-happen:request-cache:${pjt(e,ljt)}`},"cacheKey");I_e.exports=Ajt});var w_e=b((dt1,djt)=>{djt.exports={name:"make-fetch-happen",version:"15.0.4",description:"Opinionated, caching, retrying fetch client",main:"lib/index.js",files:["bin/","lib/"],scripts:{test:"tap",posttest:"npm run lint",eslint:'eslint "**/*.{js,cjs,ts,mjs,jsx,tsx}"',lint:"npm run eslint",lintfix:"npm run eslint -- --fix",postlint:"template-oss-check",snap:"tap","template-oss-apply":"template-oss-apply --force"},repository:{type:"git",url:"git+https://github.com/npm/make-fetch-happen.git"},keywords:["http","request","fetch","mean girls","caching","cache","subresource integrity"],author:"GitHub Inc.",license:"ISC",dependencies:{"@gar/promise-retry":"^1.0.0","@npmcli/agent":"^4.0.0",cacache:"^20.0.1","http-cache-semantics":"^4.1.1",minipass:"^7.0.2","minipass-fetch":"^5.0.0","minipass-flush":"^1.0.5","minipass-pipeline":"^1.2.4",negotiator:"^1.0.0","proc-log":"^6.0.0",ssri:"^13.0.0"},devDependencies:{"@npmcli/eslint-config":"^5.0.0","@npmcli/template-oss":"4.25.0",nock:"^13.2.4","safe-buffer":"^5.2.1","standard-version":"^9.3.2",tap:"^16.0.0"},engines:{node:"^20.17.0 || >=22.9.0"},tap:{color:1,files:"test/*.js","check-coverage":!0,timeout:60,"nyc-arg":["--exclude","tap-snapshots/**"]},templateOSS:{"//@npmcli/template-oss":"This file is partially managed by @npmcli Line truncated
`+s),t.push(o+"m+"+gB.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rp0()+e+" "+t[0]}i(tp0,"formatArgs");function rp0(){return nt.inspectOpts.hideDate?"":new Date().toISOString()+" "}i(rp0,"getDate");function np0(...t){return process.stderr.write(OB.formatWithOptions(nt.inspectOpts,...t)+`
`)}i(np0,"log");function op0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}i(op0,"save");function sp0(){return process.env.DEBUG}i(sp0,"load");function ip0(t){t.inspectOpts={};let e=Object.keys(nt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nt.inspectOpts[e[r]]}i(ip0,"init");gB.exports=P8()(nt);var{formatters:L2e}=gB.exports;L2e.o=function(t){return this.inspectOpts.colors=this.useColors,OB.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};L2e.O=function(t){return this.inspectOpts.colors=this.useColors,OB.inspect(t,this.inspectOpts)}});var U8=m((To1,k8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?k8.exports=v2e():k8.exports=Q2e()});var CB=m(l1=>{"use strict";Object.defineProperty(l1,"__esModule",{value:!0});l1.DownloadHTTPError=l1.DownloadLengthMismatchError=l1.DownloadError=l1.ExpiredMetadataError=l1.EqualVersionError=l1.BadVersionError=l1.RepositoryError=l1.PersistError=l1.RuntimeError=l1.ValueError=void 0;var G8=class extends Error{static{i(this,"ValueError")}};l1.ValueError=G8;var H8=class extends Error{static{i(this,"RuntimeError")}};l1.RuntimeError=H8;var X8=class extends Error{static{i(this,"PersistError")}};l1.PersistError=X8;var wm=class extends Error{static{i(this,"RepositoryError")}};l1.RepositoryError=wm;var EB=class extends wm{static{i(this,"BadVersionError")}};l1.BadVersionError=EB;var V8=class extends EB{static{i(this,"EqualVersionError")}};l1.EqualVersionError=V8;var Y8=class extends wm{static{i(this,"ExpiredMetadataError")}};l1.ExpiredMetadataError=Y8;var Sm=class extends Error{static{i(this,"DownloadError")}};l1.DownloadError=Sm;var J8=class extends Sm{static{i(this,"DownloadLengthMismatchError")}};l1.DownloadLengthMismatchError=J8;var j8=class extends Sm{static{i(this,"DownloadHTTPError")}statusCode;constructor(e,r){super(e),this.statusCode=r}};l1.DownloadHTTPError=j8});var P2e=m($2=>{"use strict";var K8=$2&&$2.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($2,"__esModule",{value:!0});$2.withTempFile=void 0;var $8=K8(require("fs/promises")),ap0=K8(require("os")),_2e=K8(require("path")),cp0=i(async t=>up0(async e=>t(_2e.default.join(e,"tempfile"))),"withTempFile");$2.withTempFile=cp0;var up0=i(async t=>{let e=await $8.default.realpath(ap0.default.tmpdir()),r=await $8.default.mkdtemp(e+_2e.default.sep);try{return await t(r)}finally{await $8.default.rm(r,{force:!0,recursive:!0,maxRetries:3})}},"withTempDir")});var U2e=m((Po1,k2e)=>{var Z8=class{static{i(this,"RetryOperation")}#e=1;#t=null;#n=[];#r=null;#o;#s=null;#a;#i;#u=null;#c;constructor(e,r={}){this.#a=[...e],this.#i=[...e],this.#c=r.unref,this.#o=r.maxRetryTime||1/0,r.forever&&(this.#t=[...this.#i])}get timeouts(){return[...this.#i]}get errors(){return[...this.#n]}get attempts(){return this.#e}get mainError(){let e=null;if(this.#n.length){let r=0,n={};for(let o=0;o<this.#n.length;o++){let s=this.#n[o],{message:a}=s;n[a]||(n[a]=0),n[a]++,n[a]>=r&&(e=s,r=n[a])}}return e}reset(){this.#e=1,this.#i=[...this.#a]}stop(){this.#u&&clearTimeout(this.#u),this.#i=[],this.#t=null}retry(e){if(this.#n.push(e),new Date().getTime()-this.#s>=this.#o)return this.#n.unshift(new Error("RetryOperation timeout occurred")),!1;let r=this.#i.shift();if(r===void 0)if(this.#t)this.#n.pop(),r=this.#t.at(-1);else return!1;return this.#u=setTimeout(()=>{this.#e++,this.#r(this.#e)},r),this.#c&&this.#u.unref(),!0}attempt(e){this.#r=e,this.#s=new Date().getTime(),this.#r(this.#e)}};k2e.exports={RetryOperation:Z8}});var X2e=m((Uo1,H2e)=>{var{RetryOperation:pp0}=U2e(),G2e=i((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"),Ap0=i(t=>t?.code==="EPROMISERETRY"&&Object.hasOwn(t,"retried"),"isRetryError"),lp0=i(async(t,e={})=>{let r=[];if(e instanceof Array)r=[...e];else{e.retries===1/0&&(e.forever=!0,delete e.retries);let o={retries:10,factor:2,minTimeout:1*1e3,maxTimeout:1/0,randomize:!1,...e};if(o.minTimeout>o.maxTimeout)throw new Error("minTimeout is greater than maxTimeout");if(o.retries){for(let s=0;s<o.retries;s++)r.push(G2e(s,o));r.sort((s,a)=>s-a)}else e.forever&&r.push(G2e(0,o))}let n=new pp0(r,{forever:e.forever,unref:e.unref,maxRetryTime:e.maxRetryTime});return new Promise(function(o,s){n.attempt(async a=>{try{let c=await t(u=>{throw Object.assign(new Error("Retrying"),{code:"EPROMISERETRY",retried:u})},a,n);return o(c)}catch(c){if(!Ap0(c))return s(c);if(!n.retry(c.retried||new Error))return s(c.retried)}})})},"promiseRetry");H2e.exports={promiseRetry:lp0}});var r_=m(Sc=>{"use strict";var t_=Sc&&Sc.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sc,"__esModule",{value:!0});Sc.DefaultFetcher=Sc.BaseFetcher=void 0;var dp0=t_(U8()),V2e=t_(require("fs")),bp0=t_(require("util")),Y2e=CB(),Mp0=P2e(),fp0=X2e(),mp0=(0,dp0.default)("tuf:fetch"),hp0="User-Agent",yB=class{static{i(this,"BaseFetcher")}async downloadFile(e,r,n){return(0,Mp0.withTempFile)(async o=>{let s=await this.fetch(e),a=0,c=V2e.default.createWriteStream(o),u=s.getReader();try{for(;;){let{done:p,value:A}=await u.read();if(p)break;if(a+=A.length,a>r)throw new Y2e.DownloadLengthMismatchError("Max length reached");await zp0(c,Buffer.from(A))}}finally{u.releaseLock(),await bp0.default.promisify(c.close).bind(c)()}return n(o)})}async downloadBytes(e,r){return this.downloadFile(e,r,async n=>{let o=V2e.defau Line truncated
`).forEach(r=>{r.match(yA0)||r.match(BA0)||(e+=r)}),Buffer.from(e,"base64")}i(qA0,"toDER");function DA0(t,e="CERTIFICATE"){let n=t.toString("base64").match(/.{1,64}/g)||"";return[`-----BEGIN ${e}-----`,...n,`-----END ${e}-----`].join(`
`).concat(`
`)}i(DA0,"fromDER")});var _B=m(vc=>{"use strict";Object.defineProperty(vc,"__esModule",{value:!0});vc.SHA2_HASH_ALGOS=vc.RSA_SIGNATURE_ALGOS=vc.ECDSA_SIGNATURE_ALGOS=void 0;vc.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"};vc.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"};vc.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 q_=m(PB=>{"use strict";Object.defineProperty(PB,"__esModule",{value:!0});PB.RFC3161TimestampVerificationError=void 0;var B_=class extends Error{static{i(this,"RFC3161TimestampVerificationError")}};PB.RFC3161TimestampVerificationError=B_});var yde=m(Ys=>{"use strict";var IA0=Ys&&Ys.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),RA0=Ys&&Ys.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),NA0=Ys&&Ys.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&IA0(r,e,n[o]);return RA0(r,e),r}})();Object.defineProperty(Ys,"__esModule",{value:!0});Ys.TSTInfo=void 0;var Cde=NA0(nd()),wA0=_B(),SA0=q_(),D_=class{static{i(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 wA0.SHA2_HASH_ALGOS[e]}get messageImprintHashedMessage(){return this.messageImprintObj.subs[1].value}get raw(){return this.root.toDER()}verify(e){let r=Cde.digest(this.messageImprintHashAlgorithm,e);if(!Cde.bufferEqual(r,this.messageImprintHashedMessage))throw new SA0.RFC3161TimestampVerificationError("message imprint does not match artifact")}get messageImprintObj(){return this.root.subs[2]}};Ys.TSTInfo=D_});var qde=m(Js=>{"use strict";var FA0=Js&&Js.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:i(function(){return e[r]},"get")}),Object.defineProperty(t,n,o)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),WA0=Js&&Js.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xA0=Js&&Js.__importStar||(function(){var t=i(function(e){return t=Object.getOwnPropertyNames||function(r){var n=[];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[n.length]=o);return n},t(e)},"ownKeys");return function(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var n=t(e),o=0;o<n.length;o++)n[o]!=="default"&&FA0(r,e,n[o]);return WA0(r,e),r}})();Object.defineProperty(Js,"__esModule",{value:!0});Js.RFC3161Timestamp=void 0;var TA0=vB(),I_=xA0(nd()),Bde=_B(),Lm=q_(),vA0=yde(),LA0="1.2.840.113549.1.7.2",QA0="1.2.840.113549.1.9.16.1.4",_A0="1.2.840.113549.1.9.4",R_=class t{static{i(this,"RFC3161Timestamp")}root;constructor(e){this.root=e}static parse(e){let r=TA0.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 Bde.SHA2_HASH_ALGOS[e]}get signatureAlgorithm(){let e=this.signatureAlgorithmObj.subs[0].toOID();return Bde.ECDSA_SIGNATURE_ALGOS[e]}get signatureValue(){return this.signatureValueObj.value}get tstInfo(){return new vA0.TSTInfo(this.eContentObj.subs[0].subs[0])}verify(e,r){if(!this.timeStampTokenObj)throw new Lm.RFC3161TimestampVerificationError("timeStampToken is missing");if(this.contentType!==LA0)throw new Lm.RFC3161TimestampVerificationError(`incorrect content type: ${this.contentType}`);if(this.eContentType!==QA0)throw new Lm.RFC3161TimestampVerificationError(`incorrect encapsulated content type: ${this.eContentType}`);this.tstInfo.verify(e),this.verifyMessageDigest(),this.verifySignature(r)}verifyMessageDigest(){let e=I_.digest(this.signerDigestAlgorithm,this.tstInfo.raw),r=this.messageDigestAttributeObj.subs[1].subs[0].valu Line truncated
`,RJt=/\u2014 (\S+) (\S+)\n/g;function wJt(t,e){let r=t.inclusionProof,s=t1e.fromString(r.checkpoint.envelope),n=UT.fromString(s.note);if(!SJt(s,e))throw new t4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return n}o(wJt,"verifyCheckpoint");function SJt(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(s=>{let n=e.find(i=>RWe.crypto.bufferEqual(i.logID.subarray(0,4),s.keyHint)&&i.baseURL.match(s.name));return n?RWe.crypto.verify(r,n.publicKey,s.signature):!1})}o(SJt,"verifySignedNote");var t1e=class t{static{o(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(e1e))throw new t4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(e1e),s=e.slice(0,r+1),i=e.slice(r+e1e.length).matchAll(RJt),a=Array.from(i,c=>{let[,u,p]=c,l=Buffer.from(p,"base64");if(l.length<5)throw new t4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:l.subarray(0,4),signature:l.subarray(4)}});if(a.length===0)throw new t4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(s,a)}},UT=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 t4.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let s=r[0],n=BigInt(r[1]),i=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(s,n,i,a)}};r4.LogCheckpoint=UT});var SWe=b(i1e=>{"use strict";Object.defineProperty(i1e,"__esModule",{value:!0});i1e.verifyMerkleInclusion=vJt;var n1e=li(),r1e=Zr(),NJt=Buffer.from([0]),FJt=Buffer.from([1]);function vJt(t,e){let r=t.inclusionProof,s=BigInt(r.logIndex),n=BigInt(e.logSize);if(s<0n||s>=n)throw new r1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${s}`});let{inner:i,border:a}=TJt(s,n);if(r.hashes.length!==i+a)throw new r1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,i),u=r.hashes.slice(i),p=QJt(t.canonicalizedBody),l=_Jt(xJt(p,c,s),u);if(!n1e.crypto.bufferEqual(l,e.logHash))throw new r1e.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}o(vJt,"verifyMerkleInclusion");function TJt(t,e){let r=WJt(t,e),s=LJt(t>>BigInt(r));return{inner:r,border:s}}o(TJt,"decompInclProof");function xJt(t,e,r){return e.reduce((s,n,i)=>r>>BigInt(i)&BigInt(1)?s1e(n,s):s1e(s,n),t)}o(xJt,"chainInner");function _Jt(t,e){return e.reduce((r,s)=>s1e(s,r),t)}o(_Jt,"chainBorderRight");function WJt(t,e){return PJt(t^e-BigInt(1))}o(WJt,"innerProofSize");function LJt(t){return t.toString(2).split("1").length-1}o(LJt,"onesCount");function PJt(t){return t===0n?0:t.toString(2).length}o(PJt,"bitLength");function s1e(t,e){return n1e.crypto.digest("sha256",FJt,t,e)}o(s1e,"hashChildren");function QJt(t){return n1e.crypto.digest("sha256",NJt,t)}o(QJt,"hashLeaf")});var FWe=b(o1e=>{"use strict";Object.defineProperty(o1e,"__esModule",{value:!0});o1e.verifyTLogSET=GJt;var NWe=li(),kJt=Zr(),UJt=Sg();function GJt(t,e){if(!(0,UJt.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(n=>{let i=HJt(t),a=Buffer.from(NWe.json.canonicalize(i),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return NWe.crypto.verify(a,n.publicKey,c)}))throw new kJt.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}o(GJt,"verifyTLogSET");function HJt(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(HJt,"toVerificationPayload")});var TWe=b(GT=>{"use strict";Object.defineProperty(GT,"__esModule",{value:!0});GT.verifyTLogBody=YJt;GT.verifyTLogInclusion=JJt;var vWe=ete(),u1e=Zr(),a1e=DWe(),c1e=qWe(),XJt=IWe(),VJt=wWe(),$Jt=SWe(),jJt=FWe();function YJt(t,e){let{kind:r,version:s}=t.kindVersion,n=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==n.kind||s!==n.apiVersion)throw new u1e.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${s}, received: ${n.kind}/${n.apiVersion}`});switch(r){case"dsse":if(s==a1e.DSSE_API_VERSION_V1)return(0,a1e.verifyDSSETLogBody)(n,e);{let i=vWe.Entry.fromJSON(n);return(0,a1e.verifyDSSETLogBodyV2)(i,e)}case"intoto":return(0,XJt.verifyIntotoTLogBody)(n,e);case"hashedrekord":if(s==c1e.HASHEDREKORD_API_VERSION_V1)return(0,c1e.verifyHashedRekordTLogBody)(n,e);{let i=vWe.Entry.fromJSON(n);return(0,c1e.verifyHashedRekordTLogBodyV2)(i,e)}default:throw new u1e.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}o(YJt,"verifyTLogBody");function JJt(t,e){let r=!1;if(KJt(t)&&((0,jJt.verifyTLogSET)(t,e),r=!0),ZJt(t)){let s=(0,VJt.verifyCheckpoint)(t,e);(0,$Jt.verifyMerkleInclusion)(t,s),r=!0}if(!r)throw new u1e.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}o(JJt,"verifyTLogInclusion");function KJt(t){return t.inclusionPromise!==void 0}o(KJt,"isTLogEntryWithInclusionPromise");function ZJt(t){return t.inclusionProof!==void 0}o(ZJt,"isTLogEntryWithInclusionProof")});var PWe=b(HT=>{"use strict";Object.defineProperty(HT,"__esModule",{value:!0});HT.Verifier=void 0;var eKt=require("util"),Ng=Zr(),xWe=OWe(),p1e=EWe(),_We=BWe(),WWe=TWe(),l1e=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"timestamp-authority":r.push((0,_We.getTSATimestamp)(s.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let n=(0,_We.getTLogTimestamp)(s.tlogEntry);n&&r.push(n);break}}if(LWe(r))throw new Ng.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.len Line truncated
[`+S+"] ";for(L in arguments[0])i(arguments[0],L)&&(q+=L+": "+arguments[0][L]+", ");q=q.slice(0,-2)}else q=arguments[S];O.push(q)}P(f+`
`,i20=/\u2014 (\S+) (\S+)\n/g;function a20(t,e){let r=t.inclusionProof,n=sP.fromString(r.checkpoint.envelope),o=aq.fromString(n.note);if(!c20(n,e))throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid checkpoint signature"});return o}i(a20,"verifyCheckpoint");function c20(t,e){let r=Buffer.from(t.note,"utf-8");return t.signatures.some(n=>{let o=e.find(s=>ibe.crypto.bufferEqual(s.logID.subarray(0,4),n.keyHint)&&s.baseURL.match(n.name));return o?ibe.crypto.verify(r,o.publicKey,n.signature):!1})}i(c20,"verifySignedNote");var sP=class t{static{i(this,"SignedNote")}note;signatures;constructor(e,r){this.note=e,this.signatures=r}static fromString(e){if(!e.includes(oP))throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"missing checkpoint separator"});let r=e.indexOf(oP),n=e.slice(0,r+1),s=e.slice(r+oP.length).matchAll(i20),a=Array.from(s,c=>{let[,u,p]=c,A=Buffer.from(p,"base64");if(A.length<5)throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"malformed checkpoint signature"});return{name:u,keyHint:A.subarray(0,4),signature:A.subarray(4)}});if(a.length===0)throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"no signatures found in checkpoint"});return new t(n,a)}},aq=class t{static{i(this,"LogCheckpoint")}origin;logSize;logHash;rest;constructor(e,r,n,o){this.origin=e,this.logSize=r,this.logHash=n,this.rest=o}static fromString(e){let r=e.trimEnd().split(`
`);if(r.length<3)throw new Um.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"too few lines in checkpoint header"});let n=r[0],o=BigInt(r[1]),s=Buffer.from(r[2],"base64"),a=r.slice(3);return new t(n,o,s,a)}};Gm.LogCheckpoint=aq});var cbe=m(uP=>{"use strict";Object.defineProperty(uP,"__esModule",{value:!0});uP.verifyMerkleInclusion=A20;var cP=Ro(),iP=It(),u20=Buffer.from([0]),p20=Buffer.from([1]);function A20(t,e){let r=t.inclusionProof,n=BigInt(r.logIndex),o=BigInt(e.logSize);if(n<0n||n>=o)throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:`invalid index: ${n}`});let{inner:s,border:a}=l20(n,o);if(r.hashes.length!==s+a)throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"invalid hash count"});let c=r.hashes.slice(0,s),u=r.hashes.slice(s),p=h20(t.canonicalizedBody),A=b20(d20(p,c,n),u);if(!cP.crypto.bufferEqual(A,e.logHash))throw new iP.VerificationError({code:"TLOG_INCLUSION_PROOF_ERROR",message:"calculated root hash does not match inclusion proof"})}i(A20,"verifyMerkleInclusion");function l20(t,e){let r=M20(t,e),n=f20(t>>BigInt(r));return{inner:r,border:n}}i(l20,"decompInclProof");function d20(t,e,r){return e.reduce((n,o,s)=>r>>BigInt(s)&BigInt(1)?aP(o,n):aP(n,o),t)}i(d20,"chainInner");function b20(t,e){return e.reduce((r,n)=>aP(n,r),t)}i(b20,"chainBorderRight");function M20(t,e){return m20(t^e-BigInt(1))}i(M20,"innerProofSize");function f20(t){return t.toString(2).split("1").length-1}i(f20,"onesCount");function m20(t){return t===0n?0:t.toString(2).length}i(m20,"bitLength");function aP(t,e){return cP.crypto.digest("sha256",p20,t,e)}i(aP,"hashChildren");function h20(t){return cP.crypto.digest("sha256",u20,t)}i(h20,"hashLeaf")});var pbe=m(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.verifyTLogSET=g20;var ube=Ro(),z20=It(),O20=id();function g20(t,e){if(!(0,O20.filterTLogAuthorities)(e,{logID:t.logId.keyId,targetDate:new Date(Number(t.integratedTime)*1e3)}).some(o=>{let s=E20(t),a=Buffer.from(ube.json.canonicalize(s),"utf8"),c=t.inclusionPromise.signedEntryTimestamp;return ube.crypto.verify(a,o.publicKey,c)}))throw new z20.VerificationError({code:"TLOG_INCLUSION_PROMISE_ERROR",message:"inclusion promise could not be verified"})}i(g20,"verifyTLogSET");function E20(t){let{integratedTime:e,logIndex:r,logId:n,canonicalizedBody:o}=t;return{body:o.toString("base64"),integratedTime:Number(e),logIndex:Number(r),logID:n.keyId.toString("hex")}}i(E20,"toVerificationPayload")});var lbe=m(cq=>{"use strict";Object.defineProperty(cq,"__esModule",{value:!0});cq.verifyTLogBody=D20;cq.verifyTLogInclusion=I20;var Abe=rbe(),dP=It(),AP=nbe(),lP=obe(),C20=sbe(),y20=abe(),B20=cbe(),q20=pbe();function D20(t,e){let{kind:r,version:n}=t.kindVersion,o=JSON.parse(t.canonicalizedBody.toString("utf8"));if(r!==o.kind||n!==o.apiVersion)throw new dP.VerificationError({code:"TLOG_BODY_ERROR",message:`kind/version mismatch - expected: ${r}/${n}, received: ${o.kind}/${o.apiVersion}`});switch(r){case"dsse":if(n==AP.DSSE_API_VERSION_V1)return(0,AP.verifyDSSETLogBody)(o,e);{let s=Abe.Entry.fromJSON(o);return(0,AP.verifyDSSETLogBodyV2)(s,e)}case"intoto":return(0,C20.verifyIntotoTLogBody)(o,e);case"hashedrekord":if(n==lP.HASHEDREKORD_API_VERSION_V1)return(0,lP.verifyHashedRekordTLogBody)(o,e);{let s=Abe.Entry.fromJSON(o);return(0,lP.verifyHashedRekordTLogBodyV2)(s,e)}default:throw new dP.VerificationError({code:"TLOG_BODY_ERROR",message:`unsupported kind: ${r}`})}}i(D20,"verifyTLogBody");function I20(t,e){let r=!1;if(R20(t)&&((0,q20.verifyTLogSET)(t,e),r=!0),N20(t)){let n=(0,y20.verifyCheckpoint)(t,e);(0,B20.verifyMerkleInclusion)(t,n),r=!0}if(!r)throw new dP.VerificationError({code:"TLOG_MISSING_INCLUSION_ERROR",message:"inclusion could not be verified"})}i(I20,"verifyTLogInclusion");function R20(t){return t.inclusionPromise!==void 0}i(R20,"isTLogEntryWithInclusionPromise");function N20(t){return t.inclusionProof!==void 0}i(N20,"isTLogEntryWithInclusionProof")});var mbe=m(uq=>{"use strict";Object.defineProperty(uq,"__esModule",{value:!0});uq.Verifier=void 0;var w20=require("util"),pd=It(),dbe=Gde(),bP=Hde(),bbe=Yde(),Mbe=lbe(),MP=class{static{i(this,"Verifier")}trustMaterial;options;constructor(e,r={}){this.trustMaterial=e,this.options={ctlogThreshold:r.ctlogThreshold??1,tlogThreshold:r.tlogThreshold??1,timestampThreshold:r.timestampThreshold??r.tsaThreshold??1,tsaThreshold:0}}verify(e,r){let n=this.verifyTimestamps(e),o=this.verifySigningKey(e,n);return this.verifyTLogs(e),this.verifySignature(e,o),r&&this.verifyPolicy(r,o.identity||{}),o}verifyTimestamps(e){let r=[];for(let n of e.timestamps)switch(n.$case){case"timestamp-authority":r.push((0,bbe.getTSATimestamp)(n.timestamp,e.signature.signature,this.trustMaterial.timestampAuthorities));break;case"transparency-log":{let o=(0,bbe.getTLogTimestamp)(n.tlogEntry);o&&r.push(o);break}}if(fbe(r))throw new pd.VerificationError({code:"TIMESTAMP_ERROR",message:"duplicate timestamp"});if(r.length<this.options.timestampThresho Line truncated
[`+D+"] ";for(F in arguments[0])s(arguments[0],F)&&(C+=F+": "+arguments[0][F]+", ");C=C.slice(0,-2)}else C=arguments[D];O.push(C)}Q(d+`
Arguments: `+Array.prototype.slice.call(O).join("")+`
`+new Error().stack),g=!1}return m.apply(this,arguments)},m)}o(j,"deprecate");var Ee={};function we(f,m){e.deprecationHandler!=null&&e.deprecationHandler(f,m),Ee[f]||(P(m),Ee[f]=!0)}o(we,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Z(f){return typeof Function<"u"&&f instanceof Function||Object.prototype.toString.call(f)==="[object Function]"}o(Z,"isFunction");function Se(f){var m,g;for(g in f)i(f,g)&&(m=f[g],Z(m)?this[g]=m:this["_"+g]=m);this._config=f,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}o(Se,"set");function Y(f,m){var g=A({},f),O;for(O in m)i(m,O)&&(n(f[O])&&n(m[O])?(g[O]={},A(g[O],f[O]),A(g[O],m[O])):m[O]!=null?g[O]=m[O]:delete g[O]);for(O in f)i(f,O)&&!i(m,O)&&n(f[O])&&(g[O]=A({},g[O]));return g}o(Y,"mergeConfigs");function J(f){f!=null&&this.set(f)}o(J,"Locale");var _e;Object.keys?_e=Object.keys:_e=o(function(f){var m,g=[];for(m in f)i(f,m)&&g.push(m);return g},"keys");var re={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function Ce(f,m,g){var O=this._calendar[f]||this._calendar.sameElse;return Z(O)?O.call(m,g):O}o(Ce,"calendar");function dt(f,m,g){var O=""+Math.abs(f),q=m-O.length,S=f>=0;return(S?g?"+":"":"-")+Math.pow(10,Math.max(0,q)).toString().substr(1)+O}o(dt,"zeroFill");var Gt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,He=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,u0={},Tt={};function ce(f,m,g,O){var q=O;typeof O=="string"&&(q=o(function(){return this[O]()},"func")),f&&(Tt[f]=q),m&&(Tt[m[0]]=function(){return dt(q.apply(this,arguments),m[1],m[2])}),g&&(Tt[g]=function(){return this.localeData().ordinal(q.apply(this,arguments),f)})}o(ce,"addFormatToken");function Ci(f){return f.match(/\[[\s\S]/)?f.replace(/^\[|\]$/g,""):f.replace(/\\/g,"")}o(Ci,"removeFormattingTokens");function Gs(f){var m=f.match(Gt),g,O;for(g=0,O=m.length;g<O;g++)Tt[m[g]]?m[g]=Tt[m[g]]:m[g]=Ci(m[g]);return function(q){var S="",L;for(L=0;L<O;L++)S+=Z(m[L])?m[L].call(q,f):m[L];return S}}o(Gs,"makeFormatFunction");function Nt(f,m){return f.isValid()?(m=x0(m,f.localeData()),u0[m]=u0[m]||Gs(m),u0[m](f)):f.localeData().invalidDate()}o(Nt,"formatMoment");function x0(f,m){var g=5;function O(q){return m.longDateFormat(q)||q}for(o(O,"replaceLongDateFormatTokens"),He.lastIndex=0;g>=0&&He.test(f);)f=f.replace(He,O),He.lastIndex=0,g-=1;return f}o(x0,"expandFormat");var ph={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function lh(f){var m=this._longDateFormat[f],g=this._longDateFormat[f.toUpperCase()];return m||!g?m:(this._longDateFormat[f]=g.match(Gt).map(function(O){return O==="MMMM"||O==="MM"||O==="DD"||O==="dddd"?O.slice(1):O}).join(""),this._longDateFormat[f])}o(lh,"longDateFormat");var az="Invalid date";function zu(){return this._invalidDate}o(zu,"invalidDate");var F="%d",k=/\d{1,2}/;function U(f){return this._ordinal.replace("%d",f)}o(U,"ordinal");var K={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function Qe(f,m,g,O){var q=this._relativeTime[g];return Z(q)?q(f,m,g,O):q.replace(/%d/i,f)}o(Qe,"relativeTime");function bt(f,m){var g=this._relativeTime[f>0?"future":"past"];return Z(g)?g(m):g.replace(/%s/i,m)}o(bt,"pastFuture");var p0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Ye(f){return typeof f=="string"?p0[f]||p0[f.toLowerCase()]:void 0}o(Ye,"normalizeUnits");function Ht(f){var m={},g,O;for(O in f)i(f,O)&&(g=Ye(O),g&&(m[g]=f[O]));return m}o(Ht,"normalizeObjectUnits");var aB={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function m_(f){var m=[],g;for(g in f)i(f,g)&&m.push({unit:g,priority:aB[g]});return m.sort(function(O,q){return O.priority-q.priority}),m}o(m_,"getPr Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}o(Ji0,"_nonIterableRest");T4.exports=Ji0,T4.exports.__esModule=!0,T4.exports.default=T4.exports});var oGe=b(($c1,x4)=>{var Ki0=G9e(),Zi0=TUe(),eo0=nGe(),to0=iGe();function ro0(t,e){return Ki0(t)||Zi0(t,e)||eo0(t,e)||to0()}o(ro0,"_slicedToArray");x4.exports=ro0,x4.exports.__esModule=!0,x4.exports.default=x4.exports});var cGe=b((Yc1,aGe)=>{"use strict";var so0=Qx().forEach,no0=w4(),io0=no0("forEach");aGe.exports=io0?[].forEach:o(function(e){return so0(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var pGe=b(()=>{"use strict";var oo0=c0(),uGe=cGe();oo0({target:"Array",proto:!0,forced:[].forEach!==uGe},{forEach:uGe})});var AGe=b((eu1,lGe)=>{"use strict";pGe();var ao0=Ba();lGe.exports=ao0("Array","forEach")});var fGe=b((tu1,dGe)=>{"use strict";var co0=AGe();dGe.exports=co0});var hGe=b(()=>{});var mGe=b((nu1,bGe)=>{"use strict";var uo0=jg(),po0=Qs(),lo0=Bn(),Ao0=fGe();hGe();var cse=Array.prototype,do0={DOMTokenList:!0,NodeList:!0};bGe.exports=function(t){var e=t.forEach;return t===cse||lo0(cse,t)&&e===cse.forEach||po0(do0,uo0(t))?Ao0:e}});var use=b((iu1,MGe)=>{MGe.exports=mGe()});var gGe=b(()=>{"use strict";var fo0=c0(),ho0=Cx().includes,bo0=J0(),mo0=U1e(),Mo0=bo0(function(){return!Array(1).includes()});fo0({target:"Array",proto:!0,forced:Mo0},{includes:o(function(e){return ho0(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});mo0("includes")});var OGe=b((uu1,zGe)=>{"use strict";gGe();var go0=Ba();zGe.exports=go0("Array","includes")});var yGe=b((pu1,EGe)=>{"use strict";var zo0=Ei(),Oo0=Al(),Eo0=M1(),yo0=Eo0("match");EGe.exports=function(t){var e;return zo0(t)&&((e=t[yo0])!==void 0?!!e:Oo0(t)==="RegExp")}});var BGe=b((lu1,CGe)=>{"use strict";var Co0=yGe(),Bo0=TypeError;CGe.exports=function(t){if(Co0(t))throw new Bo0("The method doesn't accept regular expressions");return t}});var qGe=b((Au1,DGe)=>{"use strict";var Do0=M1(),qo0=Do0("match");DGe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[qo0]=!1,"/./"[t](e)}catch{}}return!1}});var RGe=b(()=>{"use strict";var Io0=c0(),Ro0=T0(),wo0=BGe(),So0=jf(),IGe=mu(),No0=qGe(),Fo0=Ro0("".indexOf);Io0({target:"String",proto:!0,forced:!No0("includes")},{includes:o(function(e){return!!~Fo0(IGe(So0(this)),IGe(wo0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var SGe=b((bu1,wGe)=>{"use strict";RGe();var vo0=Ba();wGe.exports=vo0("String","includes")});var vGe=b((mu1,FGe)=>{"use strict";var NGe=Bn(),To0=OGe(),xo0=SGe(),pse=Array.prototype,lse=String.prototype;FGe.exports=function(t){var e=t.includes;return t===pse||NGe(pse,t)&&e===pse.includes?To0:typeof t=="string"||t===lse||NGe(lse,t)&&e===lse.includes?xo0:e}});var xGe=b((Mu1,TGe)=>{"use strict";var _o0=vGe();TGe.exports=_o0});var _4=b((gu1,_Ge)=>{_Ge.exports=xGe()});var Ase=b((zu1,WGe)=>{"use strict";WGe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var QGe=b((Ou1,PGe)=>{"use strict";var Wo0=T0(),Lo0=jf(),Po0=mu(),fse=Ase(),LGe=Wo0("".replace),Qo0=RegExp("^["+fse+"]+"),ko0=RegExp("(^|[^"+fse+"])["+fse+"]+$"),dse=o(function(t){return function(e){var r=Po0(Lo0(e));return t&1&&(r=LGe(r,Qo0,"")),t&2&&(r=LGe(r,ko0,"$1")),r}},"createMethod");PGe.exports={start:dse(1),end:dse(2),trim:dse(3)}});var $Ge=b((yu1,VGe)=>{"use strict";var HGe=T1(),Uo0=J0(),Go0=T0(),Ho0=mu(),Xo0=QGe().trim,kGe=Ase(),W4=HGe.parseInt,UGe=HGe.Symbol,GGe=UGe&&UGe.iterator,XGe=/^[+-]?0x/i,Vo0=Go0(XGe.exec),$o0=W4(kGe+"08")!==8||W4(kGe+"0x16")!==22||GGe&&!Uo0(function(){W4(Object(GGe))});VGe.exports=$o0?o(function(e,r){var s=Xo0(Ho0(e));return W4(s,r>>>0||(Vo0(XGe,s)?16:10))},"parseInt"):W4});var YGe=b(()=>{"use strict";var jo0=c0(),jGe=$Ge();jo0({global:!0,forced:parseInt!==jGe},{parseInt:jGe})});var KGe=b((qu1,JGe)=>{"use strict";YGe();var Yo0=Oa();JGe.exports=Yo0.parseInt});var eHe=b((Iu1,ZGe)=>{"use strict";var Jo0=KGe();ZGe.exports=Jo0});var rHe=b((Ru1,tHe)=>{tHe.exports=eHe()});var Yx=b((wu1,sHe)=>{sHe.exports=ase()});var oHe=b((Su1,iHe)=>{"use strict";var nHe=l4(),Ko0=TypeError;iHe.exports=function(t,e){if(!delete t[e])throw new Ko0("Cannot delete property "+nHe(e)+" of "+nHe(t))}});var uHe=b((Nu1,cHe)=>{"use strict";var aHe=y4(),Zo0=Math.floor,hse=o(function(t,e){var r=t.length;if(r<8)for(var s=1,n,i;s<r;){for(i=s,n=t[s];i&&e(t[i-1],n)>0;)t[i]=t[--i];i!==s++&&(t[i]=n)}else for(var a=Zo0(r/2),c=hse(aHe(t,0,a),e),u=hse(aHe(t,a),e),p=c.length,l=u.length,A=0,d=0;A<p||d<l;)t[A+d]=A<p&&d<l?e(c[A],u[d])<=0?c[A++]:u[d++]:A<p?c[A++]:u[d++];return t},"sort");cHe.exports=hse});var AHe=b((vu1,lHe)=>{"use strict";var ea0=Qg(),pHe=ea0.match(/firefox\/(\d+)/i);lHe.exports=!!pHe&&+pHe[1]});var fHe=b((Tu1,dHe)=>{"use strict";var ta0=Qg();dHe.exports=/MSIE|Trident/.test(ta0)});var mHe=b((xu1,bHe)=>{"use strict";var ra0=Qg(),hHe=ra0.match(/AppleWebKit\/(\d+)\./);bHe.exports=!!hHe&&+hHe[1]});var DHe=b(()=>{"use strict";var sa0=c0(),CHe=T0(),na0=Jf(),ia0=hu(),MHe=hl(),oa0=oHe(),gHe=mu(),bse=J0(),aa0=uHe(),ca0=w4(),zHe=AHe(),ua0=fHe(),OHe=kg(),EHe=mHe(),cd=[],yHe=CHe(cd.sort),pa0=CHe(cd.push),la0=bse(function(){cd.sort(void 0)}),Aa0=bse(function(){cd.sort(null)}),da0=ca0("sort"),BHe=!bse(function(){if(OHe)return OHe<70;if(!(zHe&&zHe>3)){if(ua0)return!0;if(EHe)return EHe<603;var t="",e,r,s,n;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:s=3;break;case 68:case 71:s=4;break;default:s=2}for(n=0;n<47;n++)cd.push({k:r+n,v:s})}for(cd.sort(function(i,a){return a.v-i.v}),n=0;n<cd.length;n++)r=cd[n].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),fa0=la0||!Aa0||!da0||!BHe,ha0=o(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:gHe(e)>gHe(r)?1:-1}},"getSortCompare");sa0({target:"Array",proto:!0,forced:fa0},{sort:o(function(e){e!==void 0&&na0(e);var r=ia0(this);if(BHe)return e===void 0?yHe(r):yHe(r,e);var s=[],n=MHe(r),i,a;for(a=0;a<n;a++)a in r&&pa0(s,r[a]);for(aa0(s,ha0(e)),i=MHe(s),a=0;a<i;)r[a]=s[a++];for(;a<n;)oa0(r,a++);return r},"sort")})});var IHe=b((Pu1,qHe)=>{"use strict";DHe();var ba0=Ba();qHe.exports=ba0("Array","sort")});var wHe=b((Qu1,RHe)=>{"use strict";var ma0=Bn(),Ma0=IHe(),mse=Array.prototype;RHe.exports=function(t){var e=t.sort;return t===mse||ma0(mse,t)&&e===mse.sort?Ma0:e}});var NHe=b((ku1,SHe)=>{"use strict";var ga0=wHe();SHe.exports=ga0});var vHe=b((Uu1,FHe)=>{FHe.exports=NHe()});var THe=b(()=>{});var WHe=b((Xu1,_He)=>{"use strict";var za0=T1(),Oa0=J0(),xHe=za0.RegExp,Ea0=!Oa0(function(){var t=!0;try{xHe(".","d")}catch{t=!1}var e={},r="",s=t?"dgimsy":"gimsy",n=o(function(u,p){Object.defineProperty(e,u,{get:o(function(){return r+=p,!0},"get")})},"addGetter"),i={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(i.hasIndices="d");for(var a in i)n(a,i[a]);var c=Object.getOwnPropertyDescriptor(xHe.prototype,"flags").get.call(e);return c!==s||r!==s});_He.exports={correct:Ea0}});var PHe=b(($u1,LHe)=>{"use strict";var ya0=fl();LHe.exports=function(){var t=ya0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var UHe=b((ju1,kHe)=>{"use strict";var Ca0=Do(),Ba0=Qs(),Da0=Bn(),QHe=WHe(),qa0=PHe(),Ia0=RegExp.prototype;kHe.exports=QHe.correct?function(t){return t.flags}:function(t){return!QHe.correct&&Da0(Ia0,t)&&!Ba0(t,"flags")?Ca0(qa0,t):t.flags}});var HHe=b((Yu1,GHe)=>{"use strict";THe();var Ra0=UHe();GHe.exports=Ra0});var $He=b((Ju1,VHe)=>{"use strict";var wa0=Bn(),Sa0=HHe(),XHe=RegExp.prototype;VHe.exports=function(t){return t===XHe||wa0(XHe,t)?Sa0(t):t.flags}});var YHe=b((Ku1,jHe)=>{"use strict";var Na0=$He();jHe.exports=Na0});var KHe=b((Zu1,JHe)=>{JHe.exports=YHe()});var mXe=b((U4,bXe)=>{"use strict";var ks=du(),Fa0=bu( Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,va0.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(Q4,"_createForOfIteratorHelper");function ka0(t,e){var r;if(t){if(typeof t=="string")return ZHe(t,e);var s=(0,Io.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,Wa0.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ZHe(t,e)}}o(ka0,"_unsupportedIterableToArray");function ZHe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}o(ZHe,"_arrayLikeToArray");var g0="xregexp",oh={astral:!1,namespacing:!1},K0={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},Mu={},L4={},Zg={},Mse=[],ez="default",eXe="class",Ua0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},Ga0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,Ha0=K0.exec.call(/()??/,"")[1]===void 0,Xa0=(0,ih.default)(/x/)!==void 0,Va0={},iXe=Va0.toString;function zse(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),s=".a".replace(new RegExp("a",r),".")==="..";s&&(e=!1)}}catch{e=!1}return e}o(zse,"hasNativeFlag");var oXe=zse("u"),Ose=zse("y"),aXe={g:!0,i:!0,m:!0,u:oXe,y:Ose};function cXe(t,e,r,s,n){var i;if(t[g0]={captureNames:e},n)return t;if(t.__proto__)t.__proto__=pe.prototype;else for(var a in pe.prototype)t[a]=pe.prototype[a];return t[g0].source=r,t[g0].flags=s&&(0,Qa0.default)(i=s.split("")).call(i).join(""),t}o(cXe,"augment");function P4(t){return K0.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}o(P4,"clipDuplicates");function ch(t,e){var r;if(!pe.isRegExp(t))throw new TypeError("Type RegExp expected");var s=t[g0]||{},n=$a0(t),i="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(n=K0.replace.call(n,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(i+="g"),e.addY&&(i+="y"),i&&(n=P4(n+i)),e.isInternalOnly||(s.source!==void 0&&(c=s.source),(0,ih.default)(s)!=null&&(u=i?P4((0,ih.default)(s)+i):(0,ih.default)(s))),t=cXe(new RegExp(e.source||t.source,n),ja0(t)?(0,Io.default)(r=s.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}o(ch,"copyRegex");function uXe(t){return(0,nXe.default)(t,16)}o(uXe,"dec");function pXe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||K0.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||Ya0(t.input,t.index+t[0].length,r)?"":"(?:)"}o(pXe,"getContextualTokenSeparator");function $a0(t){return Xa0?(0,ih.default)(t):K0.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}o($a0,"getNativeFlags");function ja0(t){return!!(t[g0]&&t[g0].captureNames)}o(ja0,"hasNamedCapture");function lXe(t){return(0,nXe.default)(t,10).toString(16)}o(lXe,"hex");function Ya0(t,e,r){var s="\\(\\?#[^)]*\\)",n="#[^#\\n]*",i="[?*+]|{\\d+(?:,\\d*)?}";return K0.test.call((0,ah.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,Io.default)(t).call(t,e))}o(Ya0,"isQuantifierNext");function Ese(t,e){return iXe.call(t)==="[object ".concat(e,"]")}o(Ese,"isType");function AXe(t){for(;t.length<4;)t="0".concat(t);return t}o(AXe,"pad4");function Ja0(t,e){if(P4(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=K0.replace.call(t,/^\(\?([\w$]+)\)/,function(i,a){if(K0.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(i));return e=P4(e+a),""});var r=Q4(e),s;try{for(r.s();!(s=r.n()).done;){var n=s.value;if(!aXe[n])throw new SyntaxError("Unknown regex flag ".concat(n))}}catch(i){r.e(i)}finally{r.f()}return{pattern:t,flags:e}}o(Ja0,"prepareFlags");function dXe(t){var e={};return Ese(t,"String")?((0,gse.default)(pe).call(pe,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}o(dXe,"prepareOptions");function tXe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");aXe[t]=!0}o(tXe,"registerFlag");function Ka0(t,e,r,s,n){for(var i=Mse.length,a=t[r],c=null,u,p;i--;)if(p=Mse[i],!(p.leadChar&&p.leadChar!==a||p.scope!==s&&p.scope!=="all"||p.flag&&!(0,ah.default)(e).call(e,p.flag))&&(u=pe.exec(t,p.regex,r,"sticky"),u)){c={matchLength:u[0].length,output:p.handler.call(n,u,s,e),reparse:p.reparse};break}return c}o(Ka0,"runTokens");function fXe(t){oh.astral=t}o(fXe,"setAstral");function hXe(t){oh.namespacing=t}o(hXe Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i=!0,a=!1,c;return{s:o(function(){r=(0,Fc0.default)(t)},"s"),n:o(function(){var p=r.next();return i=p.done,p},"n"),e:o(function(p){a=!0,c=p},"e"),f:o(function(){try{!i&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}o(Qc0,"_createForOfIteratorHelper");function kc0(t,e){var r;if(t){if(typeof t=="string")return ZXe(t,e);var s=(0,Wc0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(s==="Object"&&t.constructor&&(s=t.constructor.name),s==="Map"||s==="Set")return(0,_c0.default)(t);if(s==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return ZXe(t,e)}}o(kc0,"_unsupportedIterableToArray");function ZXe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,s=new Array(e);r<e;r++)s[r]=t[r];return s}o(ZXe,"_arrayLikeToArray");var Uc0=o(function(e){var r={},s=e._dec,n=e._hex,i=e._pad4;function a(d){return d.replace(/[- _]+/g,"").toLowerCase()}o(a,"normalize");function c(d){var h=/^\\[xu](.+)/.exec(d);return h?s(h[1]):d.charCodeAt(d[0]==="\\"?1:0)}o(c,"charCode");function u(d){var h="",M=-1;return(0,Pc0.default)(e).call(e,d,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(z){var C=c(z[1]);C>M+1&&(h+="\\u".concat(i(n(M+1))),C>M+2&&(h+="-\\u".concat(i(n(C-1))))),M=c(z[2]||z[1])}),M<65535&&(h+="\\u".concat(i(n(M+1))),M<65534&&(h+="-\\uFFFF")),h}o(u,"invertBmp");function p(d){var h="b!";return r[d][h]||(r[d][h]=u(r[d].bmp))}o(p,"cacheInvertedBmp");function l(d,h){var M=r[d],z="";if(M.bmp&&!M.isBmpLast){var C;z=(0,Dse.default)(C="[".concat(M.bmp,"]")).call(C,M.astral?"|":"")}if(M.astral&&(z+=M.astral),M.isBmpLast&&M.bmp){var E;z+=(0,Dse.default)(E="".concat(M.astral?"|":"","[")).call(E,M.bmp,"]")}return h?"(?:(?!".concat(z,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(z,")")}o(l,"buildAstral");function A(d,h){var M=h?"a!":"a=";return r[d][M]||(r[d][M]=l(d,h))}o(A,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(d,h,M){var z="Invalid double negation ",C="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",I="Astral mode does not support Unicode tokens within character classes",w=d[1]==="P"||!!d[2],N=(0,Lc0.default)(M).call(M,"A"),x=a(d[4]||d[3]),P=r[x];if(d[1]==="P"&&d[2])throw new SyntaxError(z+d[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(C+d[0]);if(P.inverseOf){if(x=a(P.inverseOf),!r.hasOwnProperty(x)){var j;throw new ReferenceError((0,Dse.default)(j="".concat(E+d[0]," -> ")).call(j,P.inverseOf))}P=r[x],w=!w}if(!(P.bmp||N))throw new SyntaxError(B+d[0]);if(N){if(h==="class")throw new SyntaxError(I);return A(x,w)}return h==="class"?w?p(x):P.bmp:"".concat((w?"[^":"[")+P.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(d){var h="Unicode token requires name",M="Unicode token has no character data ",z=Qc0(d),C;try{for(z.s();!(C=z.n()).done;){var E=C.value;if(!E.name)throw new Error(h);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(M+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){z.e(B)}finally{z.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(d){var h=a(d);return r[h]}},"_default");V4.default=Uc0;eVe.exports=V4.default});var sVe=b((yp1,rVe)=>{rVe.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",bmp:"\uA6A0-\uA6FF"},{name:"InBamum_Supplement",astral:"\uD81A[\uDC00-\uDE3F]"},{name:"InBasic_Latin",bmp:"\0-\x7F"},{name:"InBassa_Vah",astral:"\uD81A[\uDED0-\uDEFF]"},{name:"InBatak",bmp:"\u1BC0-\u1BFF"},{name:"InBengali",bmp:"\u0980-\u09FF"},{name:"InBhaiksuki",astral:"\uD807[\uDC00-\uDC6F]"},{name:"InBlock_Elements",bmp:"\u2580-\u259F"},{name:"InBopomofo",bmp:"\u3100-\u312F"},{name:"InBopomofo_Extended",bmp:"\u31A0-\u31BF"},{name:"InBox_Drawing",bmp:"\u2500-\u257F"},{name:"InBrahmi",astral:"\uD804[\uDC00-\uDC7F]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28FF"},{name:"InBuginese",bmp:"\u1A00-\u1A1F"},{name:"InBuhid",bmp:"\u1740-\u175F"},{ Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}o(Ude,"getBooleanInput");function PP(t,e){if(process.env.GITHUB_OUTPUT||"")return Mz("OUTPUT",vB(t,e));process.stdout.write(LP.EOL),Ia("set-output",{name:t},qa(e))}o(PP,"setOutput");function Gde(t){process.exitCode=WP.Failure,qb(t)}o(Gde,"setFailed");function Gu(){return process.env.RUNNER_DEBUG==="1"}o(Gu,"isDebug");function T(t){Ia("debug",{},t)}o(T,"debug");function qb(t,e={}){Ia("error",j_(e),t instanceof Error?t.toString():t)}o(qb,"error");function Rt(t,e={}){Ia("warning",j_(e),t instanceof Error?t.toString():t)}o(Rt,"warning");function W(t){process.stdout.write(t+LP.EOL)}o(W,"info");function Yd(t){J_("group",t)}o(Yd,"startGroup");function Jd(){J_("endgroup")}o(Jd,"endGroup");function Mr(t,e){return qpt(this,void 0,void 0,function*(){Yd(t);let r;try{r=yield e()}finally{Jd()}return r})}o(Mr,"group");function Tq(t,e){if(process.env.GITHUB_STATE||"")return Mz("STATE",vB(t,e));Ia("save-state",{name:t},qa(e))}o(Tq,"saveState");function Hde(t){return process.env[`STATE_${t}`]||""}o(Hde,"getState");var Ww=_(require("fs"),1),KX=_(require("os"),1),ZX=_(require("path"),1);var Vde=_(require("os"),1);function qO(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}o(qO,"toCommandValue");function $de(t,e,r){let s=new QP(t,e,r);process.stdout.write(s.toString()+Vde.EOL)}o($de,"issueCommand");var Xde="::",QP=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=Xde+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}=${Rpt(n)}`)}}return e+=`${Xde}${Ipt(this.message)}`,e}};function Ipt(t){return qO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}o(Ipt,"escapeData");function Rpt(t){return qO(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}o(Rpt,"escapeProperty");var Kde=_(require("os"),1);var Yde=require("os"),IO=require("fs");var kP=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},{access:wpt,appendFile:Spt,writeFile:Npt}=IO.promises,jde="GITHUB_STEP_SUMMARY";var UP=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return kP(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[jde];if(!e)throw new Error(`Unable to find environment variable for $${jde}. Check if your runtime environment supports job summaries.`);try{yield wpt(e,IO.constants.R_OK|IO.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 kP(this,void 0,void 0,function*(){let r=!!e?.overwrite,s=yield this.filePath();return yield(r?Npt:Spt)(s,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return kP(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(Yde.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:u,colspan:p,rowspan:l}=a,A=c?"th":"td",d=Object.assign(Object.assign({},p&&{colspan:p}),l&&{rowspan:l});return this.wrap(A,u,d)}).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(Line truncated
`+new Error().stack),h=!1}return M.apply(this,arguments)},M)}i(ue,"deprecate");var qe={};function Qe(d,M){e.deprecationHandler!=null&&e.deprecationHandler(d,M),qe[d]||(Q(M),qe[d]=!0)}i(Qe,"deprecateSimple"),e.suppressDeprecationWarnings=!1,e.deprecationHandler=null;function Re(d){return typeof Function<"u"&&d instanceof Function||Object.prototype.toString.call(d)==="[object Function]"}i(Re,"isFunction");function ge(d){var M,h;for(h in d)s(d,h)&&(M=d[h],Re(M)?this[h]=M:this["_"+h]=M);this._config=d,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}i(ge,"set");function Ue(d,M){var h=l({},d),O;for(O in M)s(M,O)&&(o(d[O])&&o(M[O])?(h[O]={},l(h[O],d[O]),l(h[O],M[O])):M[O]!=null?h[O]=M[O]:delete h[O]);for(O in d)s(d,O)&&!s(M,O)&&o(d[O])&&(h[O]=l({},h[O]));return h}i(Ue,"mergeConfigs");function pe(d){d!=null&&this.set(d)}i(pe,"Locale");var Ge;Object.keys?Ge=Object.keys:Ge=i(function(d){var M,h=[];for(M in d)s(d,M)&&h.push(M);return h},"keys");var J={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function _e(d,M,h){var O=this._calendar[d]||this._calendar.sameElse;return Re(O)?O.call(M,h):O}i(_e,"calendar");function g0(d,M,h){var O=""+Math.abs(d),C=M-O.length,D=d>=0;return(D?h?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+O}i(g0,"zeroFill");var ft=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,p0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,V1={},y0={};function ne(d,M,h,O){var C=O;typeof O=="string"&&(C=i(function(){return this[O]()},"func")),d&&(y0[d]=C),M&&(y0[M[0]]=function(){return g0(C.apply(this,arguments),M[1],M[2])}),h&&(y0[h]=function(){return this.localeData().ordinal(C.apply(this,arguments),d)})}i(ne,"addFormatToken");function vo(d){return d.match(/\[[\s\S]/)?d.replace(/^\[|\]$/g,""):d.replace(/\\/g,"")}i(vo,"removeFormattingTokens");function cn(d){var M=d.match(ft),h,O;for(h=0,O=M.length;h<O;h++)y0[M[h]]?M[h]=y0[M[h]]:M[h]=vo(M[h]);return function(C){var D="",F;for(F=0;F<O;F++)D+=Re(M[F])?M[F].call(C,d):M[F];return D}}i(cn,"makeFormatFunction");function b0(d,M){return d.isValid()?(M=Kt(M,d.localeData()),V1[M]=V1[M]||cn(M),V1[M](d)):d.localeData().invalidDate()}i(b0,"formatMoment");function Kt(d,M){var h=5;function O(C){return M.longDateFormat(C)||C}for(i(O,"replaceLongDateFormatTokens"),p0.lastIndex=0;h>=0&&p0.test(d);)d=d.replace(p0,O),p0.lastIndex=0,h-=1;return d}i(Kt,"expandFormat");var kh={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function Uh(d){var M=this._longDateFormat[d],h=this._longDateFormat[d.toUpperCase()];return M||!h?M:(this._longDateFormat[d]=h.match(ft).map(function(O){return O==="MMMM"||O==="MM"||O==="DD"||O==="dddd"?O.slice(1):O}).join(""),this._longDateFormat[d])}i(Uh,"longDateFormat");var gD="Invalid date";function Yc(){return this._invalidDate}i(Yc,"invalidDate");var R="%d",T=/\d{1,2}/;function v(d){return this._ordinal.replace("%d",d)}i(v,"ordinal");var k={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function De(d,M,h,O){var C=this._relativeTime[h];return Re(C)?C(d,M,h,O):C.replace(/%d/i,d)}i(De,"relativeTime");function e0(d,M){var h=this._relativeTime[d>0?"future":"past"];return Re(h)?h(M):h.replace(/%s/i,M)}i(e0,"pastFuture");var K0={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function ve(d){return typeof d=="string"?K0[d]||K0[d.toLowerCase()]:void 0}i(ve,"normalizeUnits");function B0(d){var M={},h,O;for(O in d)s(d,O)&&(h=ve(O),h&&(M[h]=d[O]));return M}i(B0,"normalizeObjectUnits");var H7={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function B4e(d){var M=[],h;for(h in d)s(d,h)&&M.push({unit:h,priority:H7[h]});return M.sort(function(O,C){return O.priority-C.priority}),M Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}i(D30,"_nonIterableRest");Eh.exports=D30,Eh.exports.__esModule=!0,Eh.exports.default=Eh.exports});var W3e=m((cb1,Ch)=>{var I30=hge(),R30=u3e(),N30=S3e(),w30=F3e();function S30(t,e){return I30(t)||R30(t,e)||N30(t,e)||w30()}i(S30,"_slicedToArray");Ch.exports=S30,Ch.exports.__esModule=!0,Ch.exports.default=Ch.exports});var T3e=m((pb1,x3e)=>{"use strict";var F30=sD().forEach,W30=mh(),x30=W30("forEach");x3e.exports=x30?[].forEach:i(function(e){return F30(this,e,arguments.length>1?arguments[1]:void 0)},"forEach")});var L3e=m(()=>{"use strict";var T30=w0(),v3e=T3e();T30({target:"Array",proto:!0,forced:[].forEach!==v3e},{forEach:v3e})});var _3e=m((bb1,Q3e)=>{"use strict";L3e();var v30=To();Q3e.exports=v30("Array","forEach")});var k3e=m((Mb1,P3e)=>{"use strict";var L30=_3e();P3e.exports=L30});var U3e=m(()=>{});var H3e=m((hb1,G3e)=>{"use strict";var Q30=Id(),_30=jt(),P30=Br(),k30=k3e();U3e();var l7=Array.prototype,U30={DOMTokenList:!0,NodeList:!0};G3e.exports=function(t){var e=t.forEach;return t===l7||P30(l7,t)&&e===l7.forEach||_30(U30,Q30(t))?k30:e}});var d7=m((zb1,X3e)=>{X3e.exports=H3e()});var V3e=m(()=>{"use strict";var G30=w0(),H30=kq().includes,X30=d1(),V30=VP(),Y30=X30(function(){return!Array(1).includes()});G30({target:"Array",proto:!0,forced:Y30},{includes:i(function(e){return H30(this,e,arguments.length>1?arguments[1]:void 0)},"includes")});V30("includes")});var J3e=m((Cb1,Y3e)=>{"use strict";V3e();var J30=To();Y3e.exports=J30("Array","includes")});var $3e=m((yb1,j3e)=>{"use strict";var j30=sn(),$30=za(),K30=D1(),Z30=K30("match");j3e.exports=function(t){var e;return j30(t)&&((e=t[Z30])!==void 0?!!e:$30(t)==="RegExp")}});var Z3e=m((Bb1,K3e)=>{"use strict";var eE0=$3e(),tE0=TypeError;K3e.exports=function(t){if(eE0(t))throw new tE0("The method doesn't accept regular expressions");return t}});var tEe=m((qb1,eEe)=>{"use strict";var rE0=D1(),nE0=rE0("match");eEe.exports=function(t){var e=/./;try{"/./"[t](e)}catch{try{return e[nE0]=!1,"/./"[t](e)}catch{}}return!1}});var nEe=m(()=>{"use strict";var oE0=w0(),sE0=t1(),iE0=Z3e(),aE0=kp(),rEe=ci(),cE0=tEe(),uE0=sE0("".indexOf);oE0({target:"String",proto:!0,forced:!cE0("includes")},{includes:i(function(e){return!!~uE0(rEe(aE0(this)),rEe(iE0(e)),arguments.length>1?arguments[1]:void 0)},"includes")})});var sEe=m((Nb1,oEe)=>{"use strict";nEe();var pE0=To();oEe.exports=pE0("String","includes")});var cEe=m((wb1,aEe)=>{"use strict";var iEe=Br(),AE0=J3e(),lE0=sEe(),b7=Array.prototype,M7=String.prototype;aEe.exports=function(t){var e=t.includes;return t===b7||iEe(b7,t)&&e===b7.includes?AE0:typeof t=="string"||t===M7||iEe(M7,t)&&e===M7.includes?lE0:e}});var pEe=m((Sb1,uEe)=>{"use strict";var dE0=cEe();uEe.exports=dE0});var yh=m((Fb1,AEe)=>{AEe.exports=pEe()});var f7=m((Wb1,lEe)=>{"use strict";lEe.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var MEe=m((xb1,bEe)=>{"use strict";var bE0=t1(),ME0=kp(),fE0=ci(),h7=f7(),dEe=bE0("".replace),mE0=RegExp("^["+h7+"]+"),hE0=RegExp("(^|[^"+h7+"])["+h7+"]+$"),m7=i(function(t){return function(e){var r=fE0(ME0(e));return t&1&&(r=dEe(r,mE0,"")),t&2&&(r=dEe(r,hE0,"$1")),r}},"createMethod");bEe.exports={start:m7(1),end:m7(2),trim:m7(3)}});var EEe=m((vb1,gEe)=>{"use strict";var zEe=X1(),zE0=d1(),OE0=t1(),gE0=ci(),EE0=MEe().trim,fEe=f7(),Bh=zEe.parseInt,mEe=zEe.Symbol,hEe=mEe&&mEe.iterator,OEe=/^[+-]?0x/i,CE0=OE0(OEe.exec),yE0=Bh(fEe+"08")!==8||Bh(fEe+"0x16")!==22||hEe&&!zE0(function(){Bh(Object(hEe))});gEe.exports=yE0?i(function(e,r){var n=EE0(gE0(e));return Bh(n,r>>>0||(CE0(OEe,n)?16:10))},"parseInt"):Bh});var yEe=m(()=>{"use strict";var BE0=w0(),CEe=EEe();BE0({global:!0,forced:parseInt!==CEe},{parseInt:CEe})});var qEe=m((Pb1,BEe)=>{"use strict";yEe();var qE0=So();BEe.exports=qE0.parseInt});var IEe=m((kb1,DEe)=>{"use strict";var DE0=qEe();DEe.exports=DE0});var NEe=m((Ub1,REe)=>{REe.exports=IEe()});var bD=m((Gb1,wEe)=>{wEe.exports=A7()});var WEe=m((Hb1,FEe)=>{"use strict";var SEe=Km(),IE0=TypeError;FEe.exports=function(t,e){if(!delete t[e])throw new IE0("Cannot delete property "+SEe(e)+" of "+SEe(t))}});var vEe=m((Xb1,TEe)=>{"use strict";var xEe=ph(),RE0=Math.floor,z7=i(function(t,e){var r=t.length;if(r<8)for(var n=1,o,s;n<r;){for(s=n,o=t[n];s&&e(t[s-1],o)>0;)t[s]=t[--s];s!==n++&&(t[s]=o)}else for(var a=RE0(r/2),c=z7(xEe(t,0,a),e),u=z7(xEe(t,a),e),p=c.length,A=u.length,l=0,b=0;l<p||b<A;)t[l+b]=l<p&&b<A?e(c[l],u[b])<=0?c[l++]:u[b++]:l<p?c[l++]:u[b++];return t},"sort");TEe.exports=z7});var _Ee=m((Yb1,QEe)=>{"use strict";var NE0=Od(),LEe=NE0.match(/firefox\/(\d+)/i);QEe.exports=!!LEe&&+LEe[1]});var kEe=m((Jb1,PEe)=>{"use strict";var wE0=Od();PEe.exports=/MSIE|Trident/.test(wE0)});var HEe=m((jb1,GEe)=>{"use strict";var SE0=Od(),UEe=SE0.match(/AppleWebKit\/(\d+)\./);GEe.exports=!!UEe&&+UEe[1]});var eCe=m(()=>{"use strict";var FE0=w0(),KEe=t1(),WE0=Gp(),xE0=ii(),XEe=Ea(),TE0=WEe(),VEe=ci(),O7=d1(),vE0=vEe(),LE0=mh(),YEe=_Ee(),QE0=kEe(),JEe=gd(),jEe=HEe(),Gc=[],$Ee=KEe(Gc.sort),_E0=KEe(Gc.push),PE0=O7(function(){Gc.sort(void 0)}),kE0=O7(function(){Gc.sort(null)}),UE0=LE0("sort"),ZEe=!O7(function(){if(JEe)return JEe<70;if(!(YEe&&YEe>3)){if(QE0)return!0;if(jEe)return jEe<603;var t="",e,r,n,o;for(e=65;e<76;e++){switch(r=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(o=0;o<47;o++)Gc.push({k:r+o,v:n})}for(Gc.sort(function(s,a){return a.v-s.v}),o=0;o<Gc.length;o++)r=Gc[o].k.charAt(0),t.charAt(t.length-1)!==r&&(t+=r);return t!=="DGBEFHACIJK"}}),GE0=PE0||!kE0||!UE0||!ZEe,HE0=i(function(t){return function(e,r){return r===void 0?-1:e===void 0?1:t!==void 0?+t(e,r)||0:VEe(e)>VEe(r)?1:-1}},"getSortCompare");FE0({target:"Array",proto:!0,forced:GE0},{sort:i(function(e){e!==void 0&&WE0(e);var r=xE0(this);if(ZEe)return e===void 0?$Ee(r):$Ee(r,e);var n=[],o=XEe(r),s,a;for(a=0;a<o;a++)a in r&&_E0(n,r[a]);for(vE0(n,HE0(e)),s=XEe(n),a=0;a<s;)r[a]=n[a++];for(;a<o;)TE0(r,a++);return r},"sort")})});var rCe=m((eM1,tCe)=>{"use strict";eCe();var XE0=To();tCe.exports=XE0("Array","sort")});var oCe=m((tM1,nCe)=>{"use strict";var VE0=Br(),YE0=rCe(),g7=Array.prototype;nCe.exports=function(t){var e=t.sort;return t===g7||VE0(g7,t)&&e===g7.sort?YE0:e}});var iCe=m((rM1,sCe)=>{"use strict";var JE0=oCe();sCe.exports=JE0});var cCe=m((nM1,aCe)=>{aCe.exports=iCe()});var uCe=m(()=>{});var lCe=m((iM1,ACe)=>{"use strict";var jE0=X1(),$E0=d1(),pCe=jE0.RegExp,KE0=!$E0(function(){var t=!0;try{pCe(".","d")}catch{t=!1}var e={},r="",n=t?"dgimsy":"gimsy",o=i(function(u,p){Object.defineProperty(e,u,{get:i(function(){return r+=p,!0},"get")})},"addGetter"),s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};t&&(s.hasIndices="d");for(var a in s)o(a,s[a]);var c=Object.getOwnPropertyDescriptor(pCe.prototype,"flags").get.call(e);return c!==n||r!==n});ACe.exports={correct:KE0}});var bCe=m((cM1,dCe)=>{"use strict";var ZE0=ga();dCe.exports=function(){var t=ZE0(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}});var mCe=m((uM1,fCe)=>{"use strict";var eC0=Kn(),tC0=jt(),rC0=Br(),MCe=lCe(),nC0=bCe(),oC0=RegExp.prototype;fCe.exports=MCe.correct?function(t){return t.flags}:function(t){return!MCe.correct&&rC0(oC0,t)&&!tC0(t,"flags")?eC0(nC0,t):t.flags}});var zCe=m((pM1,hCe)=>{"use strict";uCe();var sC0=mCe();hCe.exports=sC0});var ECe=m((AM1,gCe)=>{"use strict";var iC0=Br(),aC0=zCe(),OCe=RegExp.prototype;gCe.exports=function(t){return t===OCe||iC0(OCe,t)?aC0(t):t.flags}});var yCe=m((lM1,CCe)=>{"use strict";var cC0=ECe();CCe.exports=cC0});var qCe=m((dM1,BCe)=>{BCe.exports=yCe()});var HCe=m((Nh,GCe)=>{"use strict";var $t=oi(),uC0=ai();uC0(Nh,"__esModule",{ Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,pC0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(Ih,"_createForOfIteratorHelper");function hC0(t,e){var r;if(t){if(typeof t=="string")return DCe(t,e);var n=(0,eo.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,bC0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return DCe(t,e)}}i(hC0,"_unsupportedIterableToArray");function DCe(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(DCe,"_arrayLikeToArray");var _0="xregexp",Zp={astral:!1,namespacing:!1},b1={exec:RegExp.prototype.exec,test:RegExp.prototype.test,match:String.prototype.match,replace:String.prototype.replace,split:String.prototype.split},ui={},qh={},Sd={},E7=[],Fd="default",ICe="class",zC0={default:/\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9]\d*|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|\(\?(?:[:=!]|<[=!])|[?*+]\?|{\d+(?:,\d*)?}\??|[\s\S]/,class:/\\(?:[0-3][0-7]{0,2}|[4-7][0-7]?|x[\dA-Fa-f]{2}|u(?:[\dA-Fa-f]{4}|{[\dA-Fa-f]+})|c[A-Za-z]|[\s\S])|[\s\S]/},OC0=/\$(?:{([\w$]+)}|<([\w$]+)>|(\d\d?|[\s\S]))/g,gC0=b1.exec.call(/()??/,"")[1]===void 0,EC0=(0,Kp.default)(/x/)!==void 0,CC0={},FCe=CC0.toString;function y7(t){var e=!0;try{if(new RegExp("",t),t==="y"){var r=(function(){return"gy"})(),n=".a".replace(new RegExp("a",r),".")==="..";n&&(e=!1)}}catch{e=!1}return e}i(y7,"hasNativeFlag");var WCe=y7("u"),B7=y7("y"),xCe={g:!0,i:!0,m:!0,u:WCe,y:B7};function TCe(t,e,r,n,o){var s;if(t[_0]={captureNames:e},o)return t;if(t.__proto__)t.__proto__=Y.prototype;else for(var a in Y.prototype)t[a]=Y.prototype[a];return t[_0].source=r,t[_0].flags=n&&(0,mC0.default)(s=n.split("")).call(s).join(""),t}i(TCe,"augment");function Dh(t){return b1.replace.call(t,/([\s\S])(?=[\s\S]*\1)/g,"")}i(Dh,"clipDuplicates");function tA(t,e){var r;if(!Y.isRegExp(t))throw new TypeError("Type RegExp expected");var n=t[_0]||{},o=yC0(t),s="",a="",c=null,u=null;return e=e||{},e.removeG&&(a+="g"),e.removeY&&(a+="y"),a&&(o=b1.replace.call(o,new RegExp("[".concat(a,"]+"),"g"),"")),e.addG&&(s+="g"),e.addY&&(s+="y"),s&&(o=Dh(o+s)),e.isInternalOnly||(n.source!==void 0&&(c=n.source),(0,Kp.default)(n)!=null&&(u=s?Dh((0,Kp.default)(n)+s):(0,Kp.default)(n))),t=TCe(new RegExp(e.source||t.source,o),BC0(t)?(0,eo.default)(r=n.captureNames).call(r,0):null,c,u,e.isInternalOnly),t}i(tA,"copyRegex");function vCe(t){return(0,SCe.default)(t,16)}i(vCe,"dec");function LCe(t,e,r){return t.input[t.index-1]==="("||t.input[t.index+t[0].length]===")"||t.input[t.index-1]==="|"||t.input[t.index+t[0].length]==="|"||t.index<1||t.index+t[0].length>=t.input.length||b1.test.call(/^\(\?[:=!]/,t.input.substr(t.index-3,3))||qC0(t.input,t.index+t[0].length,r)?"":"(?:)"}i(LCe,"getContextualTokenSeparator");function yC0(t){return EC0?(0,Kp.default)(t):b1.exec.call(/\/([a-z]*)$/i,RegExp.prototype.toString.call(t))[1]}i(yC0,"getNativeFlags");function BC0(t){return!!(t[_0]&&t[_0].captureNames)}i(BC0,"hasNamedCapture");function QCe(t){return(0,SCe.default)(t,10).toString(16)}i(QCe,"hex");function qC0(t,e,r){var n="\\(\\?#[^)]*\\)",o="#[^#\\n]*",s="[?*+]|{\\d+(?:,\\d*)?}";return b1.test.call((0,eA.default)(r).call(r,"x")?/^(?:\s|#[^#\n]*|\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/:/^(?:\(\?#[^)]*\))*(?:[?*+]|{\d+(?:,\d*)?})/,(0,eo.default)(t).call(t,e))}i(qC0,"isQuantifierNext");function q7(t,e){return FCe.call(t)==="[object ".concat(e,"]")}i(q7,"isType");function _Ce(t){for(;t.length<4;)t="0".concat(t);return t}i(_Ce,"pad4");function DC0(t,e){if(Dh(e)!==e)throw new SyntaxError("Invalid duplicate regex flag ".concat(e));t=b1.replace.call(t,/^\(\?([\w$]+)\)/,function(s,a){if(b1.test.call(/[gy]/,a))throw new SyntaxError("Cannot use flag g or y in mode modifier ".concat(s));return e=Dh(e+a),""});var r=Ih(e),n;try{for(r.s();!(n=r.n()).done;){var o=n.value;if(!xCe[o])throw new SyntaxError("Unknown regex flag ".concat(o))}}catch(s){r.e(s)}finally{r.f()}return{pattern:t,flags:e}}i(DC0,"prepareFlags");function PCe(t){var e={};return q7(t,"String")?((0,C7.default)(Y).call(Y,t,/[^\s,]+/,function(r){e[r]=!0}),e):t}i(PCe,"prepareOptions");function RCe(t){if(!/^[\w$]$/.test(t))throw new Error("Flag must be a single character A-Za-z0-9_$");xCe[t]=!0}i(RCe,"registerFlag");function IC0(t,e,r,n,o){for(var s=E7.length,a=t[r],c=null,u,p;s--;)if(p=E7[s],!(p.leadChar&&p.leadChar!==a||p.scope!==n&&p.scope!=="all"||p.flag&&!(0,eA.default)(e).call(e,p.flag))&&(u=Y.exec(t,p.regex,r,"sticky"),u)){c={matchLength:u[0].length,output:p.handler.call(o,u,n,e),reparse:p.reparse};break}return c}i(IC0,"runTokens");function kCe(t){Zp.astral=t}i(kCe,"setAstral");function UCe(t){Zp.namespacing=t}i(UCe,"setNamespacing");f Line truncated
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var s=!0,a=!1,c;return{s:i(function(){r=(0,uy0.default)(t)},"s"),n:i(function(){var p=r.next();return s=p.done,p},"n"),e:i(function(p){a=!0,c=p},"e"),f:i(function(){try{!s&&r.return!=null&&r.return()}finally{if(a)throw c}},"f")}}i(my0,"_createForOfIteratorHelper");function hy0(t,e){var r;if(t){if(typeof t=="string")return Dye(t,e);var n=(0,by0.default)(r=Object.prototype.toString.call(t)).call(r,8,-1);if(n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set")return(0,dy0.default)(t);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Dye(t,e)}}i(hy0,"_unsupportedIterableToArray");function Dye(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}i(Dye,"_arrayLikeToArray");var zy0=i(function(e){var r={},n=e._dec,o=e._hex,s=e._pad4;function a(b){return b.replace(/[- _]+/g,"").toLowerCase()}i(a,"normalize");function c(b){var f=/^\\[xu](.+)/.exec(b);return f?n(f[1]):b.charCodeAt(b[0]==="\\"?1:0)}i(c,"charCode");function u(b){var f="",z=-1;return(0,fy0.default)(e).call(e,b,/(\\x..|\\u....|\\?[\s\S])(?:-(\\x..|\\u....|\\?[\s\S]))?/,function(g){var y=c(g[1]);y>z+1&&(f+="\\u".concat(s(o(z+1))),y>z+2&&(f+="-\\u".concat(s(o(y-1))))),z=c(g[2]||g[1])}),z<65535&&(f+="\\u".concat(s(o(z+1))),z<65534&&(f+="-\\uFFFF")),f}i(u,"invertBmp");function p(b){var f="b!";return r[b][f]||(r[b][f]=u(r[b].bmp))}i(p,"cacheInvertedBmp");function A(b,f){var z=r[b],g="";if(z.bmp&&!z.isBmpLast){var y;g=(0,N7.default)(y="[".concat(z.bmp,"]")).call(y,z.astral?"|":"")}if(z.astral&&(g+=z.astral),z.isBmpLast&&z.bmp){var E;g+=(0,N7.default)(E="".concat(z.astral?"|":"","[")).call(E,z.bmp,"]")}return f?"(?:(?!".concat(g,")(?:[\uD800-\uDBFF][\uDC00-\uDFFF]|[\0-\uFFFF]))"):"(?:".concat(g,")")}i(A,"buildAstral");function l(b,f){var z=f?"a!":"a=";return r[b][z]||(r[b][z]=A(b,f))}i(l,"cacheAstral"),e.addToken(/\\([pP])(?:{(\^?)([^}]*)}|([A-Za-z]))/,function(b,f,z){var g="Invalid double negation ",y="Unknown Unicode token ",E="Unicode token missing data ",B="Astral mode required for Unicode token ",q="Astral mode does not support Unicode tokens within character classes",I=b[1]==="P"||!!b[2],W=(0,My0.default)(z).call(z,"A"),x=a(b[4]||b[3]),Q=r[x];if(b[1]==="P"&&b[2])throw new SyntaxError(g+b[0]);if(!r.hasOwnProperty(x))throw new SyntaxError(y+b[0]);if(Q.inverseOf){if(x=a(Q.inverseOf),!r.hasOwnProperty(x)){var ue;throw new ReferenceError((0,N7.default)(ue="".concat(E+b[0]," -> ")).call(ue,Q.inverseOf))}Q=r[x],I=!I}if(!(Q.bmp||W))throw new SyntaxError(B+b[0]);if(W){if(f==="class")throw new SyntaxError(q);return l(x,I)}return f==="class"?I?p(x):Q.bmp:"".concat((I?"[^":"[")+Q.bmp,"]")},{scope:"all",optionalFlags:"A",leadChar:"\\"}),e.addUnicodeData=function(b){var f="Unicode token requires name",z="Unicode token has no character data ",g=my0(b),y;try{for(g.s();!(y=g.n()).done;){var E=y.value;if(!E.name)throw new Error(f);if(!(E.inverseOf||E.bmp||E.astral))throw new Error(z+E.name);r[a(E.name)]=E,E.alias&&(r[a(E.alias)]=E)}}catch(B){g.e(B)}finally{g.f()}e.cache.flush("patterns")},e._getUnicodeProperty=function(b){var f=a(b);return r[f]}},"_default");Wh.default=zy0;Iye.exports=Wh.default});var wye=m((vM1,Nye)=>{Nye.exports=[{name:"InAdlam",astral:"\uD83A[\uDD00-\uDD5F]"},{name:"InAegean_Numbers",astral:"\uD800[\uDD00-\uDD3F]"},{name:"InAhom",astral:"\uD805[\uDF00-\uDF3F]"},{name:"InAlchemical_Symbols",astral:"\uD83D[\uDF00-\uDF7F]"},{name:"InAlphabetic_Presentation_Forms",bmp:"\uFB00-\uFB4F"},{name:"InAnatolian_Hieroglyphs",astral:"\uD811[\uDC00-\uDE7F]"},{name:"InAncient_Greek_Musical_Notation",astral:"\uD834[\uDE00-\uDE4F]"},{name:"InAncient_Greek_Numbers",astral:"\uD800[\uDD40-\uDD8F]"},{name:"InAncient_Symbols",astral:"\uD800[\uDD90-\uDDCF]"},{name:"InArabic",bmp:"\u0600-\u06FF"},{name:"InArabic_Extended_A",bmp:"\u08A0-\u08FF"},{name:"InArabic_Mathematical_Alphabetic_Symbols",astral:"\uD83B[\uDE00-\uDEFF]"},{name:"InArabic_Presentation_Forms_A",bmp:"\uFB50-\uFDFF"},{name:"InArabic_Presentation_Forms_B",bmp:"\uFE70-\uFEFF"},{name:"InArabic_Supplement",bmp:"\u0750-\u077F"},{name:"InArmenian",bmp:"\u0530-\u058F"},{name:"InArrows",bmp:"\u2190-\u21FF"},{name:"InAvestan",astral:"\uD802[\uDF00-\uDF3F]"},{name:"InBalinese",bmp:"\u1B00-\u1B7F"},{name:"InBamum",bmp:"\uA6A0-\uA6FF"},{name:"InBamum_Supplement",astral:"\uD81A[\uDC00-\uDE3F]"},{name:"InBasic_Latin",bmp:"\0-\x7F"},{name:"InBassa_Vah",astral:"\uD81A[\uDED0-\uDEFF]"},{name:"InBatak",bmp:"\u1BC0-\u1BFF"},{name:"InBengali",bmp:"\u0980-\u09FF"},{name:"InBhaiksuki",astral:"\uD807[\uDC00-\uDC6F]"},{name:"InBlock_Elements",bmp:"\u2580-\u259F"},{name:"InBopomofo",bmp:"\u3100-\u312F"},{name:"InBopomofo_Extended",bmp:"\u31A0-\u31BF"},{name:"InBox_Drawing",bmp:"\u2500-\u257F"},{name:"InBrahmi",astral:"\uD804[\uDC00-\uDC7F]"},{name:"InBraille_Patterns",bmp:"\u2800-\u28FF"},{name:"InBuginese",bmp:"\u1A00-\u1A1F"},{name:"InBuhid",bmp:"\u1740-\u175F"},{ Line truncated
Support boolean input list: \`true | True | TRUE | false | False | FALSE\``)}i(L$,"getBooleanInput");function xN(t,e){if(process.env.GITHUB_OUTPUT||"")return Hd("OUTPUT",Az(t,e));process.stdout.write(WN.EOL),_o("set-output",{name:t},Qo(e))}i(xN,"setOutput");function Q$(t){process.exitCode=FN.Failure,ul(t)}i(Q$,"setFailed");function Ti(){return process.env.RUNNER_DEBUG==="1"}i(Ti,"isDebug");function N(t){_o("debug",{},t)}i(N,"debug");function ul(t,e={}){_o("error",GD(e),t instanceof Error?t.toString():t)}i(ul,"error");function Ke(t,e={}){_o("warning",GD(e),t instanceof Error?t.toString():t)}i(Ke,"warning");function S(t){process.stdout.write(t+WN.EOL)}i(S,"info");function Du(t){XD("group",t)}i(Du,"startGroup");function Iu(){XD("endgroup")}i(Iu,"endGroup");function at(t,e){return XQe(this,void 0,void 0,function*(){Du(t);let r;try{r=yield e()}finally{Iu()}return r})}i(at,"group");function lg(t,e){if(process.env.GITHUB_STATE||"")return Hd("STATE",Az(t,e));_o("save-state",{name:t},Qo(e))}i(lg,"saveState");function _$(t){return process.env[`STATE_${t}`]||""}i(_$,"getState");var fy=w(require("fs"),1),Vv=w(require("os"),1),Yv=w(require("path"),1);var k$=w(require("os"),1);function eM(t){return t==null?"":typeof t=="string"||t instanceof String?t:JSON.stringify(t)}i(eM,"toCommandValue");function U$(t,e,r){let n=new TN(t,e,r);process.stdout.write(n.toString()+k$.EOL)}i(U$,"issueCommand");var P$="::",TN=class{static{i(this,"Command")}constructor(e,r,n){e||(e="missing.command"),this.command=e,this.properties=r,this.message=n}toString(){let e=P$+this.command;if(this.properties&&Object.keys(this.properties).length>0){e+=" ";let r=!0;for(let n in this.properties)if(this.properties.hasOwnProperty(n)){let o=this.properties[n];o&&(r?r=!1:e+=",",e+=`${n}=${YQe(o)}`)}}return e+=`${P$}${VQe(this.message)}`,e}};function VQe(t){return eM(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}i(VQe,"escapeData");function YQe(t){return eM(t).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}i(YQe,"escapeProperty");var V$=w(require("os"),1);var H$=require("os"),tM=require("fs");var vN=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},{access:JQe,appendFile:jQe,writeFile:$Qe}=tM.promises,G$="GITHUB_STEP_SUMMARY";var LN=class{static{i(this,"Summary")}constructor(){this._buffer=""}filePath(){return vN(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let e=process.env[G$];if(!e)throw new Error(`Unable to find environment variable for $${G$}. Check if your runtime environment supports job summaries.`);try{yield JQe(e,tM.constants.R_OK|tM.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${e}'. Check if the file has correct read/write permissions.`)}return this._filePath=e,this._filePath})}wrap(e,r,n={}){let o=Object.entries(n).map(([s,a])=>` ${s}="${a}"`).join("");return r?`<${e}${o}>${r}</${e}>`:`<${e}${o}>`}write(e){return vN(this,void 0,void 0,function*(){let r=!!e?.overwrite,n=yield this.filePath();return yield(r?$Qe:jQe)(n,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return vN(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(H$.EOL)}addCodeBlock(e,r){let n=Object.assign({},r&&{lang:r}),o=this.wrap("pre",this.wrap("code",e),n);return this.addRaw(o).addEOL()}addList(e,r=!1){let n=r?"ol":"ul",o=e.map(a=>this.wrap("li",a)).join(""),s=this.wrap(n,o);return this.addRaw(s).addEOL()}addTable(e){let r=e.map(o=>{let s=o.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:p,rowspan:A}=a,l=c?"th":"td",b=Object.assign(Object.assign({},p&&{colspan:p}),A&&{rowspan:A});return this.wrap(l,u,b)}).join("");return this.wrap("tr",s)}).join(""),n=this.wrap("table",r);return this.addRaw(n).addEOL()}addDetails(e,r){let n=this.wrap("details",this.wrap("summary",e)+r);return this.addRaw(n).addEOL()}addImage(e,r,n){let{width:o,height:s}=n||{},a=Object.assign(Object.assign({},o&&{width:o}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:e,alt:r},a));return this.addRaw(c).addEOL()}addHeading(e,r){let n=`h${r}`,o=["h1","h2","h3","h4","h5","h6"].includes(n)?n:"h1",s=this.wrap(o,e);return this.addRaw(s).addEOL()}addSeparator(){let e=this.wrap("hr",null);return this.addRaw(e).addEOL()}addBreak(){let e=this.wrap("br",null);return this.addRaw(e).addEOL()}addQuote(e,r){let n=Object.assign({},r&&{cite:r}),o=this.wrap("blockquote",e,n);return this.addRaw(o).addEOL()}addLinLine 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 QO(i));return s.searchPaths.push(...CQ(s.patterns)),s})}static stat(e,r,s){return wQ(this,void 0,void 0,function*(){let n;if(r.followSymbolicLinks)try{n=yield vb.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){_i(`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 vb.promises.lstat(e.path);if(n.isDirectory()&&r.followSymbolicLinks){let i=yield vb.promises.realpath(e.path);for(;s.length>=e.level;)s.pop();if(s.some(a=>a===i)){_i(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}s.push(i)}return n})}};var g2t=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function whe(t,e){return g2t(this,void 0,void 0,function*(){return yield tI.create(t,e)})}o(whe,"create");var mI=_(require("crypto"),1),Wb=_(require("fs"),1),t2=_(require("path"),1),yme=_(Ome(),1),Cme=_(require("util"),1);var $O;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})($O||($O={}));var As;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(As||(As={}));var Vn;(function(t){t.GNU="gnu",t.BSD="bsd"})(Vn||(Vn={}));var hI=2,bI=5e3,JQ=5e3,KQ=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Eme=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,jO="cache.tar",ZQ="manifest.txt",r30=10*Math.pow(1024,3);var _b=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},Dbt=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,u){a=t[i](a),n(c,u,a.done,a.value)})}}function n(i,a,c,u){Promise.resolve(u).then(function(p){i({value:p,done:c})},a)}},qbt="1.0";function YO(){return _b(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=t2.join(s,"actions","temp")}let r=t2.join(e,mI.randomUUID());return yield Uu(r),r})}o(YO,"createTempDirectory");function Ha(t){return Wb.statSync(t).size}o(Ha,"getArchiveFileSizeInBytes");function ek(t){return _b(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(),u=yield whe(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,l=Dbt(u.globGenerator()),A;A=yield l.next(),e=A.done,!e;p=!0){n=A.value,p=!1;let h=t2.relative(c,n).replace(new RegExp(`\\${t2.sep}`,"g"),"/");T(`Matched: ${h}`),h===""?a.push("."):a.push(`${h}`)}}catch(d){r={error:d}}finally{try{!p&&!e&&(s=l.return)&&(yield s.call(l))}finally{if(r)throw r.error}}return a})}o(ek,"resolvePaths");function JO(t){return _b(this,void 0,void 0,function*(){return Cme.promisify(Wb.unlink)(t)})}o(JO,"unlinkFile");function Bme(t){return _b(this,arguments,void 0,function*(e,r=[]){let s="";r.push("--version"),T(`Checking ${e} ${r.join(" ")}`);try{yield Gn(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:o(n=>s+=n.toString(),"stdout"),stderr:o(n=>s+=n.toString(),"stderr")}})}catch(n){T(n.message)}return s=s.trim(),T(s),s})}o(Bme,"getVersion");function KO(){return _b(this,void 0,void 0,function*(){let t=yield Bme("zstd",["--quiet"]),e=yme.clean(t);return T(`zstd version: ${e}`),t===""?As.Gzip:As.ZstdWithoutLong})}o(KO,"getCompressionMethod");function Kl(t){return t===As.Gzip?$O.Gzip:$O.Zstd}o(Kl,"getCacheFileName");function Dme(){return _b(this,void 0,void 0,function*(){return Wb.existsSync(KQ)?KQ:(yield Bme("tar")).toLowerCase().includes("gnu tar")?mr("tar"):""})}o(Dme,"getGnuTarPathOnWindows");function tk(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}o(tk,"assertDefined");function Lb(t,e,r=!1){let s=t.slice();return e&&s.push(e),process.platform==="win32"&&!r&&s.push("windows-only"),s.push(qbt),mI.createHash("sha256").update(s.join("|")).digest("hex")}o(Lb,"getCacheVersion");function qme(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}o(qme,"getRuntimeToken");var e3=_(require("http"),1),nk=_(require("https"),1);function rk(t){let e=t.protocol==="https:";if(Ibt(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 gI(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new gI(`http://${r}`)}else return}o(rk,"getProxyUrl");function Ibt(t){if(!t.hostname)return!1;let e=t.hostname;if(Rbt(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(Ibt,"checkBypass");function Rbt(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(Rbt,"isLoopbackAddress");var gI=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 Zl=_(gz(),1),Ime=_(Cb(),1);var n1=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},W0;(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"})(W0||(W0={}));var ds;(function(t){t.Accept="accept",t.ContentType="content-type"})(ds||(ds={}));var $u;(function(t){t.ApplicationJson="application/json"})($u||($u={}));var Sbt=[W0.MovedPermanently,W0.ResourceMoved,W0.SeeOther,W0.TemporaryRedirect,W0.PermanentRedirect],Nbt=[W0.BadGateway,W0.ServiceUnavailable,W0.GatewayTimeout],Fbt=["OPTIONS","GET","DELETE","HEAD"],vbt=10,Tbt=5,Xa=class t extends Error{static{o(this,"HttpClientError")}const Line truncated
${Gbt.sanitize({...this,request:{...this.request,agent:s},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function BI(t){return t instanceof fs?!0:s2(t)&&t.name==="RestError"}o(BI,"isRestError");function Zs(t,e){return Buffer.from(t,e)}o(Zs,"stringToUint8Array");var DI=_(require("node:http"),1),qI=_(require("node:https"),1),fk=_(require("node:zlib"),1),Xme=require("node:stream");var Pi=t3("ts-http-runtime");var Hbt={};function r3(t){return t&&typeof t.pipe=="function"}o(r3,"isReadableStream");function Hme(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(Hme,"isStreamComplete");function Vme(t){return t&&typeof t.byteLength=="number"}o(Vme,"isArrayBuffer");var II=class extends Xme.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}},hk=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 Va("The operation was aborted. Request has already been canceled.");s=o(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",s)}let n;e.timeout>0&&(n=setTimeout(()=>{let p=new Yo;Pi.info(`request to '${p.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 p=jbt(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let M=e.onUploadProgress,z=new II(M);z.on("error",C=>{Pi.error("Error in upload progress",C)}),r3(c)?c.pipe(z):z.end(c),c=z}let p=await this.makeRequest(e,r,c);n!==void 0&&clearTimeout(n);let l=Xbt(p),d={status:p.statusCode??0,headers:l,request:e};if(e.method==="HEAD")return p.resume(),d;u=a?Vbt(p,l):p;let h=e.onDownloadProgress;if(h){let M=new II(h);M.on("error",z=>{Pi.error("Error in download progress",z)}),u.pipe(M),u=M}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=u:d.bodyAsText=await $bt(u),d}finally{if(e.abortSignal&&s){let p=Promise.resolve();r3(c)&&(p=Hme(c));let l=Promise.resolve();r3(u)&&(l=Hme(u)),Promise.all([p,l]).then(()=>{s&&e.abortSignal?.removeEventListener("abort",s)}).catch(A=>{Pi.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((u,p)=>{let l=i?DI.default.request(c,u):qI.default.request(c,u);l.once("error",A=>{p(new fs(A.message,{code:A.code??fs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let A=new Va("The operation was aborted. Rejecting from abort signal callback while making request.");l.destroy(A),p(A)}),s&&r3(s)?s.pipe(l):s?typeof s=="string"||Buffer.isBuffer(s)?l.end(s):Vme(s)?l.end(ArrayBuffer.isView(s)?Buffer.from(s.buffer):Buffer.from(s)):(Pi.error("Unrecognized body type",s),p(new fs("Unrecognized body type"))):l.end()})}getOrCreateAgent(e,r){let s=e.disableKeepAlive;if(r)return s?DI.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new DI.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(s&&!e.tlsSettings)return qI.default.globalAgent;let n=e.tlsSettings??Hbt,i=this.cachedHttpsAgents.get(n);return i&&i.options.keepAlive===!s||(Pi.info("No cached TLS Agent exist, creating a new Agent"),i=new qI.default.Agent({keepAlive:!s,...n}),this.cachedHttpsAgents.set(n,i)),i}}};function Xbt(t){let e=$n();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(Xbt,"getResponseHeaders");function Vbt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let s=fk.default.createGunzip();return t.pipe(s),s}else if(r==="deflate"){let s=fk.default.createInflate();return t.pipe(s),s}return t}o(Vbt,"getDecodedResponseStream");function $bt(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 fs(`Error reading response as text: ${n.message}`,{code:fs.PARSE_ERROR}))})})}o($bt,"streamToText");function jbt(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}o(DMt,"encodeHeaders");function qMt(t){return t instanceof Uint8Array?t.byteLength:JI(t)?t.size===-1?void 0:t.size:void 0}o(qMt,"getLength");function IMt(t){let e=0;for(let r of t){let s=qMt(r);if(s===void 0)return;e+=s}return e}o(IMt,"getTotalLength");async function RMt(t,e,r){let s=[Zs(`--${r}`,"utf-8"),...e.flatMap(i=>[Zs(`\r
`,"utf-8"),Zs(DMt(i.headers),"utf-8"),Zs(`\r
`,"utf-8"),i.body,Zs(`\r
--${r}`,"utf-8")]),Zs(`--\r
`));let o=e.split(`
`).map(s=>s.trim());for(let s of o)!s||s.startsWith("#")||n.patterns.push(new bM(s));return n.searchPaths.push(...zw(n.patterns)),n})}static stat(e,r,n){return Bw(this,void 0,void 0,function*(){let o;if(r.followSymbolicLinks)try{o=yield fl.promises.stat(e.path)}catch(s){if(s.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){gn(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw s}else o=yield fl.promises.lstat(e.path);if(o.isDirectory()&&r.followSymbolicLinks){let s=yield fl.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(a=>a===s)){gn(`Symlink cycle detected for path '${e.path}' and realpath '${s}'`);return}n.push(s)}return o})}};var Lke=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function Bee(t,e){return Lke(this,void 0,void 0,function*(){return yield Sg.create(t,e)})}i(Bee,"create");var Yg=w(require("crypto"),1),Ol=w(require("fs"),1),Su=w(require("path"),1),h1e=w(f1e(),1),z1e=w(require("util"),1);var gM;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(gM||(gM={}));var Lt;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Lt||(Lt={}));var kr;(function(t){t.GNU="gnu",t.BSD="bsd"})(kr||(kr={}));var Xg=2,Vg=5e3,Xw=5e3,Vw=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,m1e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,EM="cache.tar",Yw="manifest.txt",ES0=10*Math.pow(1024,3);var zl=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},HUe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(s){r[s]=t[s]&&function(a){return new Promise(function(c,u){a=t[s](a),o(c,u,a.done,a.value)})}}function o(s,a,c,u){Promise.resolve(u).then(function(p){s({value:p,done:c})},a)}},XUe="1.0";function CM(){return zl(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Su.join(n,"actions","temp")}let r=Su.join(e,Yg.randomUUID());return yield xi(r),r})}i(CM,"createTempDirectory");function ns(t){return Ol.statSync(t).size}i(ns,"getArchiveFileSizeInBytes");function Jw(t){return zl(this,void 0,void 0,function*(){var e,r,n,o,s;let a=[],c=(s=process.env.GITHUB_WORKSPACE)!==null&&s!==void 0?s:process.cwd(),u=yield Bee(t.join(`
`),{implicitDescendants:!1});try{for(var p=!0,A=HUe(u.globGenerator()),l;l=yield A.next(),e=l.done,!e;p=!0){o=l.value,p=!1;let f=Su.relative(c,o).replace(new RegExp(`\\${Su.sep}`,"g"),"/");N(`Matched: ${f}`),f===""?a.push("."):a.push(`${f}`)}}catch(b){r={error:b}}finally{try{!p&&!e&&(n=A.return)&&(yield n.call(A))}finally{if(r)throw r.error}}return a})}i(Jw,"resolvePaths");function yM(t){return zl(this,void 0,void 0,function*(){return z1e.promisify(Ol.unlink)(t)})}i(yM,"unlinkFile");function O1e(t){return zl(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),N(`Checking ${e} ${r.join(" ")}`);try{yield Qr(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:i(o=>n+=o.toString(),"stdout"),stderr:i(o=>n+=o.toString(),"stderr")}})}catch(o){N(o.message)}return n=n.trim(),N(n),n})}i(O1e,"getVersion");function BM(){return zl(this,void 0,void 0,function*(){let t=yield O1e("zstd",["--quiet"]),e=h1e.clean(t);return N(`zstd version: ${e}`),t===""?Lt.Gzip:Lt.ZstdWithoutLong})}i(BM,"getCompressionMethod");function rc(t){return t===Lt.Gzip?gM.Gzip:gM.Zstd}i(rc,"getCacheFileName");function g1e(){return zl(this,void 0,void 0,function*(){return Ol.existsSync(Vw)?Vw:(yield O1e("tar")).toLowerCase().includes("gnu tar")?it("tar"):""})}i(g1e,"getGnuTarPathOnWindows");function jw(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}i(jw,"assertDefined");function gl(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(XUe),Yg.createHash("sha256").update(n.join("|")).digest("hex")}i(gl,"getCacheVersion");function E1e(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}i(E1e,"getRuntimeToken");var DM=w(require("http"),1),Zw=w(require("https"),1);function $w(t){let e=t.protocol==="https:";if(VUe(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 jg(r)}catch{if(!r.startsWith("http://")&&!r.startsWith("https://"))return new jg(`http://${r}`)}else return}i($w,"getProxyUrl");function VUe(t){if(!t.hostname)return!1;let e=t.hostname;if(YUe(e))return!0;let r=process.env.no_proxy||process.env.NO_PROXY||"";if(!r)return!1;let n;t.port?n=Number(t.port):t.protocol==="http:"?n=80:t.protocol==="https:"&&(n=443);let o=[t.hostname.toUpperCase()];typeof n=="number"&&o.push(`${o[0]}:${n}`);for(let s of r.split(",").map(a=>a.trim().toUpperCase()).filter(a=>a))if(s==="*"||o.some(a=>a===s||a.endsWith(`.${s}`)||s.startsWith(".")&&a.endsWith(`${s}`)))return!0;return!1}i(VUe,"checkBypass");function YUe(t){let e=t.toLowerCase();return e==="localhost"||e.startsWith("127.")||e.startsWith("[::1]")||e.startsWith("[0:0:0:0:0:0:0:1]")}i(YUe,"isLoopbackAddress");var jg=class extends URL{static{i(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 nc=w(Xd(),1),C1e=w(il(),1);var z1=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},n1;(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"})(n1||(n1={}));var Qt;(function(t){t.Accept="accept",t.ContentType="content-type"})(Qt||(Qt={}));var _i;(function(t){t.ApplicationJson="application/json"})(_i||(_i={}));var jUe=[n1.MovedPermanently,n1.ResourceMoved,n1.SeeOther,n1.TemporaryRedirect,n1.PermanentRedirect],$Ue=[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout],KUe=["OPTIONS","GET","DELETE","HEAD"],ZUe=10,eGe=5,os=class t extends Error{static{i(this,"HttpClientError")}const Line truncated
${uGe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,"value"),enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function r3(t){return t instanceof _t?!0:Wu(t)&&t.name==="RestError"}i(r3,"isRestError");function sr(t,e){return Buffer.from(t,e)}i(sr,"stringToUint8Array");var n3=w(require("node:http"),1),o3=w(require("node:https"),1),u6=w(require("node:zlib"),1),P1e=require("node:stream");var yn=IM("ts-http-runtime");var pGe={};function RM(t){return t&&typeof t.pipe=="function"}i(RM,"isReadableStream");function _1e(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=i(()=>{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)})}i(_1e,"isStreamComplete");function k1e(t){return t&&typeof t.byteLength=="number"}i(k1e,"isArrayBuffer");var s3=class extends P1e.Transform{static{i(this,"ReportTransform")}loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(o){n(o)}}constructor(e){super(),this.progressCallback=e}},p6=class{static{i(this,"NodeHttpClient")}cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new ss("The operation was aborted. Request has already been canceled.");n=i(p=>{p.type==="abort"&&r.abort()},"abortListener"),e.abortSignal.addEventListener("abort",n)}let o;e.timeout>0&&(o=setTimeout(()=>{let p=new mo;yn.info(`request to '${p.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let s=e.headers.get("Accept-Encoding"),a=s?.includes("gzip")||s?.includes("deflate"),c=typeof e.body=="function"?e.body():e.body;if(c&&!e.headers.has("Content-Length")){let p=bGe(c);p!==null&&e.headers.set("Content-Length",p)}let u;try{if(c&&e.onUploadProgress){let z=e.onUploadProgress,g=new s3(z);g.on("error",y=>{yn.error("Error in upload progress",y)}),RM(c)?c.pipe(g):g.end(c),c=g}let p=await this.makeRequest(e,r,c);o!==void 0&&clearTimeout(o);let A=AGe(p),b={status:p.statusCode??0,headers:A,request:e};if(e.method==="HEAD")return p.resume(),b;u=a?lGe(p,A):p;let f=e.onDownloadProgress;if(f){let z=new s3(f);z.on("error",g=>{yn.error("Error in download progress",g)}),u.pipe(z),u=z}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(b.status)?b.readableStreamBody=u:b.bodyAsText=await dGe(u),b}finally{if(e.abortSignal&&n){let p=Promise.resolve();RM(c)&&(p=_1e(c));let A=Promise.resolve();RM(u)&&(A=_1e(u)),Promise.all([p,A]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{yn.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let o=new URL(e.url),s=o.protocol!=="https:";if(s&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let c={agent:e.agent??this.getOrCreateAgent(e,s),hostname:o.hostname,path:`${o.pathname}${o.search}`,port:o.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((u,p)=>{let A=s?n3.default.request(c,u):o3.default.request(c,u);A.once("error",l=>{p(new _t(l.message,{code:l.code??_t.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new ss("The operation was aborted. Rejecting from abort signal callback while making request.");A.destroy(l),p(l)}),n&&RM(n)?n.pipe(A):n?typeof n=="string"||Buffer.isBuffer(n)?A.end(n):k1e(n)?A.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(yn.error("Unrecognized body type",n),p(new _t("Unrecognized body type"))):A.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?n3.default.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new n3.default.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return o3.default.globalAgent;let o=e.tlsSettings??pGe,s=this.cachedHttpsAgents.get(o);return s&&s.options.keepAlive===!n||(yn.info("No cached TLS Agent exist, creating a new Agent"),s=new o3.default.Agent({keepAlive:!n,...o}),this.cachedHttpsAgents.set(o,s)),s}}};function AGe(t){let e=Ur();for(let r of Object.keys(t.headers)){let n=t.headers[r];Array.isArray(n)?n.length>0&&e.set(r,n[0]):n&&e.set(r,n)}return e}i(AGe,"getResponseHeaders");function lGe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=u6.default.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=u6.default.createInflate();return t.pipe(n),n}return t}i(lGe,"getDecodedResponseStream");function dGe(t){return new Promise((e,r)=>{let n=[];t.on("data",o=>{Buffer.isBuffer(o)?n.push(o):n.push(Buffer.from(o))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",o=>{o&&o?.name==="AbortError"?r(o):r(new _t(`Error reading response as text: ${o.message}`,{code:_t.PARSE_ERROR}))})})}i(dGe,"streamToText");function bGe(t){return t?Buffer.isBuffer(t)?t.length: Line truncated
`;return e}i(HHe,"encodeHeaders");function XHe(t){return t instanceof Uint8Array?t.byteLength:R3(t)?t.size===-1?void 0:t.size:void 0}i(XHe,"getLength");function VHe(t){let e=0;for(let r of t){let n=XHe(r);if(n===void 0)return;e+=n}return e}i(VHe,"getTotalLength");async function YHe(t,e,r){let n=[sr(`--${r}`,"utf-8"),...e.flatMap(s=>[sr(`\r
`,"utf-8"),sr(HHe(s.headers),"utf-8"),sr(`\r
`,"utf-8"),s.body,sr(`\r
--${r}`,"utf-8")]),sr(`--\r
\r
`,"utf-8")],n=IMt(s);n&&t.headers.set("Content-Length",n),t.body=await jMe(s)}o(RMt,"buildRequestBody");var o3="multipartPolicy",wMt=70,SMt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function NMt(t){if(t.length>wMt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!SMt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}o(NMt,"assertValidBoundary");function ZI(){return{name:o3,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?NMt(r):r=BMt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await RMt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}o(ZI,"multipartPolicy");function eR(){return CI()}o(eR,"createEmptyPipeline");var YMe=OI({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),eB0=YMe.logger;function Ya(t){return YMe.createClientLogger(t)}o(Ya,"createClientLogger");var Ja=Ya("core-rest-pipeline");function Tk(t={}){return wI({logger:Ja.info,...t})}o(Tk,"logPolicy");var xk=SI;function _k(t={}){return NI(t)}o(_k,"redirectPolicy");var tR=_(require("node:os"),1),rR=_(require("node:process"),1);function JMe(){return"User-Agent"}o(JMe,"getHeaderName");async function KMe(t){if(rR.default&&rR.default.versions){let e=`${tR.default.type()} ${tR.default.release()}; ${tR.default.arch()}`,r=rR.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(KMe,"setPlatformSpecificData");var sR="1.22.2";function PMt(t){let e=[];for(let[r,s]of t){let n=s?`${r}/${s}`:r;e.push(n)}return e.join(" ")}o(PMt,"getUserAgentString");function ZMe(){return JMe()}o(ZMe,"getUserAgentHeaderName");async function nR(t){let e=new Map;e.set("core-rest-pipeline",sR),await KMe(e);let r=PMt(e);return t?`${t} ${r}`:r}o(nR,"getUserAgentValue");var ege=ZMe(),tge="userAgentPolicy";function Wk(t={}){let e=nR(t.userAgentPrefix);return{name:tge,async sendRequest(r,s){return r.headers.has(ege)||r.headers.set(ege,await e),s(r)}}}o(Wk,"userAgentPolicy");var Kn=class extends Error{static{o(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function Lk(t,e){let{cleanupBeforeAbort:r,abortSignal:s,abortErrorMsg:n}=e??{};return new Promise((i,a)=>{function c(){a(new Kn(n??"The operation was aborted."))}o(c,"rejectOnAbort");function u(){s?.removeEventListener("abort",p)}o(u,"removeListeners");function p(){r?.(),u(),c()}if(o(p,"onAbort"),s?.aborted)return c();try{t(l=>{u(),i(l)},l=>{u(),a(l)})}catch(l){a(l)}s?.addEventListener("abort",p)})}o(Lk,"createAbortablePromise");var HMt="The delay was aborted.";function a3(t,e){let r,{abortSignal:s,abortErrorMsg:n}=e??{};return Lk(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:o(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:s,abortErrorMsg:n??HMt})}o(a3,"delay");function tA(t){if(s2(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(tA,"getErrorMessage");function rge(t){return s2(t)}o(rge,"isError");function $b(){return r2()}o($b,"randomUUID");var _t=o2;var sge=Symbol("rawContent");function Qk(t){return typeof t[sge]=="function"}o(Qk,"hasRawContent");function nge(t){return Qk(t)?t[sge]():t}o(nge,"getRawContent");var iR=o3;function kk(){let t=ZI();return{name:iR,sendRequest:o(async(e,r)=>{if(e.multipartBody)for(let s of e.multipartBody.parts)Qk(s.body)&&(s.body=nge(s.body));return t.sendRequest(e,r)},"sendRequest")}}o(kk,"multipartPolicy");var Uk=FI;function Gk(){return vI()}o(Gk,"decompressResponsePolicy");function Hk(t={}){return _I(t)}o(Hk,"defaultRetryPolicy");function Xk(){return WI()}o(Xk,"formDataPolicy");function rA(t){return wk(t)}o(rA,"getDefaultProxySettings");function Vk(t,e){return $I(t,e)}o(Vk,"proxyPolicy");var ige="setClientRequestIdPolicy";function $k(t="x-ms-client-request-id"){return{name:ige,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}o($k,"setClientRequestIdPolicy");function jk(t){return jI(t)}o(jk,"agentPolicy");function Yk(t){return YI(t)}o(Yk,"tlsPolicy");var jb={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function oge(t={}){let e=new Jk(t.parentContext);return t.span&&(e=e.setValue(jb.span,t.span)),t.namespace&&(e=e.setValue(jb.namespace,t.namespace)),e}o(oge,"createTracingContext");var Jk=class t{static{o(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[i]!=="\r";i++)u+=t[i];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),i--),!hzt(u)){let A;return u.trim().length===0?A="Invalid space after '<'.":A="Tag '"+u+"' is an invalid name.",i1("InvalidTag",A,hs(t,i))}let p=pzt(t,i);if(p===!1)return i1("InvalidAttr","Attributes for '"+u+"' have open quote.",hs(t,i));let l=p.value;if(i=p.index,l[l.length-1]==="/"){let A=i-l.length;l=l.substring(0,l.length-1);let d=Uge(l,e);if(d===!0)s=!0;else return i1(d.err.code,d.err.msg,hs(t,A+d.err.line))}else if(c)if(p.tagClosed){if(l.trim().length>0)return i1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",hs(t,a));if(r.length===0)return i1("InvalidTag","Closing tag '"+u+"' has not been opened.",hs(t,a));{let A=r.pop();if(u!==A.tagName){let d=hs(t,A.tagStartPos);return i1("InvalidTag","Expected closing tag '"+A.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+u+"'.",hs(t,a))}r.length==0&&(n=!0)}}else return i1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",hs(t,i));else{let A=Uge(l,e);if(A!==!0)return i1(A.err.code,A.err.msg,hs(t,i-l.length+A.err.line));if(n===!0)return i1("InvalidXml","Multiple possible root nodes found.",hs(t,i));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),s=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=kge(t,i);continue}else if(t[i+1]==="?"){if(i=Qge(t,++i),i.err)return i}else break;else if(t[i]==="&"){let A=dzt(t,i);if(A==-1)return i1("InvalidChar","char '&' is not expected.",hs(t,i));i=A}else if(n===!0&&!Pge(t[i]))return i1("InvalidXml","Extra text at the end",hs(t,i));t[i]==="<"&&i--}}else{if(Pge(t[i]))continue;return i1("InvalidChar","char '"+t[i]+"' is not expected.",hs(t,i))}if(s){if(r.length==1)return i1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",hs(t,r[0].tagStartPos));if(r.length>0)return i1("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return i1("InvalidXml","Start tag expected.",1);return!0}o(MR,"validate");function Pge(t){return t===" "||t===" "||t===`
`||t==="\r"}o(Pge,"isWhiteSpace");function Qge(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 i1("InvalidXml","XML declaration allowed only at the start of the document.",hs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}o(Qge,"readPI");function kge(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(kge,"readCommentAndCDATA");var czt='"',uzt="'";function pzt(t,e){let r="",s="",n=!1;for(;e<t.length;e++){if(t[e]===czt||t[e]===uzt)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(pzt,"readAttributeStr");var lzt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Uge(t,e){let r=bR(t,lzt),s={};for(let n=0;n<r.length;n++){if(r[n][1].length===0)return i1("InvalidAttr","Attribute '"+r[n][2]+"' has no space in starting.",g3(r[n]));if(r[n][3]!==void 0&&r[n][4]===void 0)return i1("InvalidAttr","Attribute '"+r[n][2]+"' is without value.",g3(r[n]));if(r[n][3]===void 0&&!e.allowBooleanAttributes)return i1("InvalidAttr","boolean attribute '"+r[n][2]+"' is not allowed.",g3(r[n]));let i=r[n][2];if(!fzt(i))return i1("InvalidAttr","Attribute '"+i+"' is an invalid name.",g3(r[n]));if(!Object.prototype.hasOwnProperty.call(s,i))s[i]=1;else return i1("InvalidAttr","Attribute '"+i+"' is repeated.",g3(r[n]))}return!0}o(Uge,"validateAttributeString");function Azt(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(Azt,"validateNumberAmpersand");function dzt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Azt(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(dzt,"validateAmpersand");function i1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}o(i1,"getErrorObject");function fzt(t){return h7(t)}o(fzt,"validateAttrName");function hzt(t){return h7(t)}o(hzt,"validateTagName");function hs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}o(hs,"getLineNumberForPosition");function g3(t){return t.startIndex+t[1].length}o(g3,"getPositionFromMatch");var Gge={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"},Hge={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"},Xge={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new sn("!xml"),r=e,s="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let n=this.options,i=new E3(n.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let l=em(t,">",c,"Closing Tag is not closed."),A=t.substring(c+2,l).trim();if(n.removeNSPrefix){let h=A.indexOf(":");h!==-1&&(A=A.substr(h+1))}A=y7(n.transformTagName,A,"",n).tagName,r&&(s=this.saveTextToParentTag(s,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(A&&n.unpairedTagsSet.has(A))throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);d&&n.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),s="",c=l}else if(p===63){let l=C7(t,c,!1,"?>");if(!l)throw new Error("Pi Tag is not closed.");s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let A=this.buildAttributesMap(l.tagExp,this.matcher,l.tagName,!0);if(A){let d=A[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(n.ignoreDeclaration&&l.tagName==="?xml"||n.ignorePiTags)){let d=new sn(l.tagName);d.add(n.textNodeName,""),l.tagName!==l.tagExp&&l.attrExpPresent&&n.ignoreAttributes!==!0&&(d[":@"]=A),this.addChild(r,d,this.readonlyMatcher,c)}c=l.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let l=em(t,"-->",c+4,"Comment is not closed.");if(n.commentPropName){let A=t.substring(c+4,l-2);s=this.saveTextToParentTag(s,r,this.readonlyMatcher),r.add(n.commentPropName,[{[n.textNodeName]:A}])}c=l}else if(p===33&&t.charCodeAt(c+2)===68){let l=i.readDocType(t,c);this.entityDecoder.addInputEntities(l.entities),c=l.i}else if(p===33&&t.charCodeAt(c+2)===91){let l=em(t,"]]>",c,"CDATA is not closed.")-2,A=t.substring(c+9,l);s=this.saveTextToParentTag(s,r,this.readonlyMatcher);let d=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),n.cdataPropName?r.add(n.cdataPropName,[{[n.textNodeName]:A}]):r.add(n.textNodeName,d),c=l+2}else{let l=C7(t,c,n.removeNSPrefix);if(!l){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let A=l.tagName,d=l.rawTagName,h=l.tagExp,M=l.attrExpPresent,z=l.closeIndex;if({tagName:A,tagExp:h}=y7(n.transformTagName,A,h,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 C=r;C&&n.unpairedTagsSet.has(C.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(E=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),h=A):h=h.substr(0,h.length-1),M=A!==h);let B=null,I={},w;w=Wzt(d),A!==e.tagname&&this.matcher.push(A,{},w),A!==h&&M&&(B=this.buildAttributesMap(h,this.matcher,A),B&&(I=_zt(B,n))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let N=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=l.closeIndex;else if(n.unpairedTagsSet.has(A))c=l.closeIndex;else{let j=this.readStopNodeData(t,d,z+1);if(!j)throw new Error(`Unexpected end of ${d}`);c=j.i,x=j.tagContent}let P=new sn(A);B&&(P[":@"]=B),P.add(n.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,P,this.readonlyMatcher,N)}else{if(E){({tagName:A,tagExp:h}=y7(n.transformTagName,A,h,n));let x=new sn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(n.unpairedTagsSet.has(A)){let x=new sn(A);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=l.closeIndex;continue}else{let x=new sn(A);if(this.tagsNodeStack.length>n.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,N),r=x}s="",c=z}}}else s+=t[c];return e.child},"parseXml");function Gzt(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(Gzt,"addChild");function Hzt(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(Hzt,"replaceEntitiesValue");function Xzt(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(Xzt,"saveTextToParentTag");function Vzt(){return this.stopNodeExpressionsSet.Line truncated
`;function rOt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(w7(r)==="?xml"){let n=r[":@"];if(n){let i=e.attributeNamePrefix+"version";if(n[i])return n[i]}}return"1.0"}o(rOt,"detectXmlVersionFromArray");function Aze(t,e,r,s,n){return!r.sanitizeName||A2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(Aze,"resolveTagName");function R7(t,e){let r="";e.format&&(r=tOt);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 ti(c)):c instanceof ti&&s.push(c)}let n=rOt(t,e),i=new ec;return dze(t,e,r,i,s,n)}o(R7,"toXml");function dze(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 u=t.toString();return u=I7(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],l=w7(p);if(l===void 0)continue;let d=l===e.textNodeName||l===e.cdataPropName||l===e.commentPropName||l[0]==="?"?l:Aze(l,!1,e,s,i),h=sOt(p[":@"],e);s.push(d,h);let M=iOt(s,n);if(d===e.textNodeName){let I=p[l];M||(I=e.tagValueProcessor(d,I),I=I7(I,e)),c&&(a+=r),a+=I,c=!1,s.pop();continue}else if(d===e.cdataPropName){c&&(a+=r);let I=p[l][0][e.textNodeName],w=yR(I);a+=`<![CDATA[${w}]]>`,c=!1,s.pop();continue}else if(d===e.commentPropName){let I=p[l][0][e.textNodeName],w=ER(I);a+=r+`<!--${w}-->`,c=!0,s.pop();continue}else if(d[0]==="?"){let I=lze(p[":@"],e,M,s,i);a+=(d==="?xml"?"":r)+`<${d}${I}?>`,c=!0,s.pop();continue}let z=r;z!==""&&(z+=e.indentBy);let C=lze(p[":@"],e,M,s,i),E=r+`<${d}${C}`,B;M?B=fze(p[l],e):B=dze(p[l],e,z,s,n,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${d}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${d}>`),c=!0,s.pop()}return a}o(dze,"arrToStr");function sOt(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]=iA(t[n]),s=!0}return s?r:null}o(sOt,"extractAttributeValues");function fze(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=w7(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=nOt(n[":@"],e),c=fze(n[i],e);!c||c.length===0?r+=`<${i}${a}/>`:r+=`<${i}${a}>${c}</${i}>`}}}return r}o(fze,"getRawContent");function nOt(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)}="${iA(n)}"`}return r}o(nOt,"attr_to_str_raw");function w7(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(w7,"propName");function lze(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),u=r?c:Aze(c,!0,e,s,n),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=I7(p,e)),p===!0&&e.suppressBooleanAttributes?i+=` ${u}`:i+=` ${u}="${iA(p)}"`}return i}o(lze,"attr_to_str");function iOt(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(iOt,"checkStopNode");function I7(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(I7,"replaceEntitiesValue");function S7(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(S7,"getIgnoreAttributesFn");var oOt={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 on(t){if(this.options=Object.assign({},oOt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,"utf-8")],o=VHe(n);o&&t.headers.set("Content-Length",o),t.body=await Xte(n)}i(YHe,"buildRequestBody");var SM="multipartPolicy",JHe=70,jHe=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function $He(t){if(t.length>JHe)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!jHe.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}i($He,"assertValidBoundary");function w3(){return{name:SM,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",o=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!o)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,s,a]=o;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?$He(r):r=GHe(),t.headers.set("Content-Type",`${s}; boundary=${r}`),await YHe(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}i(w3,"multipartPolicy");function S3(){return t3()}i(S3,"createEmptyPipeline");var Vte=Kg({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ov0=Vte.logger;function cs(t){return Vte.createClientLogger(t)}i(cs,"createClientLogger");var us=cs("core-rest-pipeline");function R6(t={}){return a3({logger:us.info,...t})}i(R6,"logPolicy");var N6=c3;function w6(t={}){return u3(t)}i(w6,"redirectPolicy");var F3=w(require("node:os"),1),W3=w(require("node:process"),1);function Yte(){return"User-Agent"}i(Yte,"getHeaderName");async function Jte(t){if(W3.default&&W3.default.versions){let e=`${F3.default.type()} ${F3.default.release()}; ${F3.default.arch()}`,r=W3.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})`)}}i(Jte,"setPlatformSpecificData");var x3="1.22.2";function sXe(t){let e=[];for(let[r,n]of t){let o=n?`${r}/${n}`:r;e.push(o)}return e.join(" ")}i(sXe,"getUserAgentString");function jte(){return Yte()}i(jte,"getUserAgentHeaderName");async function T3(t){let e=new Map;e.set("core-rest-pipeline",x3),await Jte(e);let r=sXe(e);return t?`${t} ${r}`:r}i(T3,"getUserAgentValue");var $te=jte(),Kte="userAgentPolicy";function S6(t={}){let e=T3(t.userAgentPrefix);return{name:Kte,async sendRequest(r,n){return r.headers.has($te)||r.headers.set($te,await e),n(r)}}}i(S6,"userAgentPolicy");var Vr=class extends Error{static{i(this,"AbortError")}constructor(e){super(e),this.name="AbortError"}};function F6(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:o}=e??{};return new Promise((s,a)=>{function c(){a(new Vr(o??"The operation was aborted."))}i(c,"rejectOnAbort");function u(){n?.removeEventListener("abort",p)}i(u,"removeListeners");function p(){r?.(),u(),c()}if(i(p,"onAbort"),n?.aborted)return c();try{t(A=>{u(),s(A)},A=>{u(),a(A)})}catch(A){a(A)}n?.addEventListener("abort",p)})}i(F6,"createAbortablePromise");var pXe="The delay was aborted.";function FM(t,e){let r,{abortSignal:n,abortErrorMsg:o}=e??{};return F6(s=>{r=setTimeout(s,t)},{cleanupBeforeAbort:i(()=>clearTimeout(r),"cleanupBeforeAbort"),abortSignal:n,abortErrorMsg:o??pXe})}i(FM,"delay");function sc(t){if(Wu(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}`}}i(sc,"getErrorMessage");function Zte(t){return Wu(t)}i(Zte,"isError");function Nl(){return Fu()}i(Nl,"randomUUID");var l0=vu;var ere=Symbol("rawContent");function x6(t){return typeof t[ere]=="function"}i(x6,"hasRawContent");function tre(t){return x6(t)?t[ere]():t}i(tre,"getRawContent");var v3=SM;function T6(){let t=w3();return{name:v3,sendRequest:i(async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)x6(n.body)&&(n.body=tre(n.body));return t.sendRequest(e,r)},"sendRequest")}}i(T6,"multipartPolicy");var v6=p3;function L6(){return A3()}i(L6,"decompressResponsePolicy");function Q6(t={}){return b3(t)}i(Q6,"defaultRetryPolicy");function _6(){return M3()}i(_6,"formDataPolicy");function ic(t){return y6(t)}i(ic,"getDefaultProxySettings");function P6(t,e){return q3(t,e)}i(P6,"proxyPolicy");var rre="setClientRequestIdPolicy";function k6(t="x-ms-client-request-id"){return{name:rre,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}i(k6,"setClientRequestIdPolicy");function U6(t){return D3(t)}i(U6,"agentPolicy");function G6(t){return I3(t)}i(G6,"tlsPolicy");var wl={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function nre(t={}){let e=new H6(t.parentContext);return t.span&&(e=e.setValue(wl.span,t.span)),t.namespace&&(e=e.setValue(wl.namespace,t.namespace)),e}i(nre,"createTracingContext");var H6=class t{static{i(this,"TracingContextImpl")}_contextMap;constructor(e){this._contextMap=e i Line truncated
`&&t[s]!=="\r";s++)u+=t[s];if(u=u.trim(),u[u.length-1]==="/"&&(u=u.substring(0,u.length-1),s--),!WVe(u)){let l;return u.trim().length===0?l="Invalid space after '<'.":l="Tag '"+u+"' is an invalid name.",O1("InvalidTag",l,Pt(t,s))}let p=RVe(t,s);if(p===!1)return O1("InvalidAttr","Attributes for '"+u+"' have open quote.",Pt(t,s));let A=p.value;if(s=p.index,A[A.length-1]==="/"){let l=s-A.length;A=A.substring(0,A.length-1);let b=_re(A,e);if(b===!0)n=!0;else return O1(b.err.code,b.err.msg,Pt(t,l+b.err.line))}else if(c)if(p.tagClosed){if(A.trim().length>0)return O1("InvalidTag","Closing tag '"+u+"' can't have attributes or invalid starting.",Pt(t,a));if(r.length===0)return O1("InvalidTag","Closing tag '"+u+"' has not been opened.",Pt(t,a));{let l=r.pop();if(u!==l.tagName){let b=Pt(t,l.tagStartPos);return O1("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+b.line+", col "+b.col+") instead of closing tag '"+u+"'.",Pt(t,a))}r.length==0&&(o=!0)}}else return O1("InvalidTag","Closing tag '"+u+"' doesn't have proper closing.",Pt(t,s));else{let l=_re(A,e);if(l!==!0)return O1(l.err.code,l.err.msg,Pt(t,s-A.length+l.err.line));if(o===!0)return O1("InvalidXml","Multiple possible root nodes found.",Pt(t,s));e.unpairedTags.indexOf(u)!==-1||r.push({tagName:u,tagStartPos:a}),n=!0}for(s++;s<t.length;s++)if(t[s]==="<")if(t[s+1]==="!"){s++,s=Qre(t,s);continue}else if(t[s+1]==="?"){if(s=Lre(t,++s),s.err)return s}else break;else if(t[s]==="&"){let l=SVe(t,s);if(l==-1)return O1("InvalidChar","char '&' is not expected.",Pt(t,s));s=l}else if(o===!0&&!vre(t[s]))return O1("InvalidXml","Extra text at the end",Pt(t,s));t[s]==="<"&&s--}}else{if(vre(t[s]))continue;return O1("InvalidChar","char '"+t[s]+"' is not expected.",Pt(t,s))}if(n){if(r.length==1)return O1("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Pt(t,r[0].tagStartPos));if(r.length>0)return O1("InvalidXml","Invalid '"+JSON.stringify(r.map(s=>s.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return O1("InvalidXml","Start tag expected.",1);return!0}i(j3,"validate");function vre(t){return t===" "||t===" "||t===`
`||t==="\r"}i(vre,"isWhiteSpace");function Lre(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return O1("InvalidXml","XML declaration allowed only at the start of the document.",Pt(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}i(Lre,"readPI");function Qre(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}i(Qre,"readCommentAndCDATA");var DVe='"',IVe="'";function RVe(t,e){let r="",n="",o=!1;for(;e<t.length;e++){if(t[e]===DVe||t[e]===IVe)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){o=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:o}}i(RVe,"readAttributeStr");var NVe=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function _re(t,e){let r=Y3(t,NVe),n={};for(let o=0;o<r.length;o++){if(r[o][1].length===0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' has no space in starting.",HM(r[o]));if(r[o][3]!==void 0&&r[o][4]===void 0)return O1("InvalidAttr","Attribute '"+r[o][2]+"' is without value.",HM(r[o]));if(r[o][3]===void 0&&!e.allowBooleanAttributes)return O1("InvalidAttr","boolean attribute '"+r[o][2]+"' is not allowed.",HM(r[o]));let s=r[o][2];if(!FVe(s))return O1("InvalidAttr","Attribute '"+s+"' is an invalid name.",HM(r[o]));if(!Object.prototype.hasOwnProperty.call(n,s))n[s]=1;else return O1("InvalidAttr","Attribute '"+s+"' is repeated.",HM(r[o]))}return!0}i(_re,"validateAttributeString");function wVe(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}i(wVe,"validateNumberAmpersand");function SVe(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,wVe(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}i(SVe,"validateAmpersand");function O1(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}i(O1,"getErrorObject");function FVe(t){return uS(t)}i(FVe,"validateAttrName");function WVe(t){return uS(t)}i(WVe,"validateTagName");function Pt(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}i(Pt,"getLineNumberForPosition");function HM(t){return t.startIndex+t[1].length}i(HM,"getPositionFromMatch");var Pre={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"},kre={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"},Ure={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\Line truncated
`);let e=new ur("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let o=this.options,s=new YM(o.processEntities),a=t.length;for(let c=0;c<a;c++)if(t[c]==="<"){let p=t.charCodeAt(c+1);if(p===47){let A=Tl(t,">",c,"Closing Tag is not closed."),l=t.substring(c+2,A).trim();if(o.removeNSPrefix){let f=l.indexOf(":");f!==-1&&(l=l.substr(f+1))}l=mS(o.transformTagName,l,"",o).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let b=this.matcher.getCurrentTag();if(l&&o.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);b&&o.unpairedTagsSet.has(b)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",c=A}else if(p===63){let A=hS(t,c,!1,"?>");if(!A)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(A.tagExp,this.matcher,A.tagName,!0);if(l){let b=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(b)||1),s.setXmlVersion(Number(b)||1)}if(!(o.ignoreDeclaration&&A.tagName==="?xml"||o.ignorePiTags)){let b=new ur(A.tagName);b.add(o.textNodeName,""),A.tagName!==A.tagExp&&A.attrExpPresent&&o.ignoreAttributes!==!0&&(b[":@"]=l),this.addChild(r,b,this.readonlyMatcher,c)}c=A.closeIndex+1}else if(p===33&&t.charCodeAt(c+2)===45&&t.charCodeAt(c+3)===45){let A=Tl(t,"-->",c+4,"Comment is not closed.");if(o.commentPropName){let l=t.substring(c+4,A-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(o.commentPropName,[{[o.textNodeName]:l}])}c=A}else if(p===33&&t.charCodeAt(c+2)===68){let A=s.readDocType(t,c);this.entityDecoder.addInputEntities(A.entities),c=A.i}else if(p===33&&t.charCodeAt(c+2)===91){let A=Tl(t,"]]>",c,"CDATA is not closed.")-2,l=t.substring(c+9,A);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let b=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);b==null&&(b=""),o.cdataPropName?r.add(o.cdataPropName,[{[o.textNodeName]:l}]):r.add(o.textNodeName,b),c=A+2}else{let A=hS(t,c,o.removeNSPrefix);if(!A){let x=t.substring(Math.max(0,c-50),Math.min(a,c+50));throw new Error(`readTagExp returned undefined at position ${c}. Context: "${x}"`)}let l=A.tagName,b=A.rawTagName,f=A.tagExp,z=A.attrExpPresent,g=A.closeIndex;if({tagName:l,tagExp:f}=mS(o.transformTagName,l,f,o),o.strictReservedNames&&(l===o.commentPropName||l===o.cdataPropName||l===o.textNodeName||l===o.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let y=r;y&&o.unpairedTagsSet.has(y.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let E=!1;f.length>0&&f.lastIndexOf("/")===f.length-1&&(E=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),f=l):f=f.substr(0,f.length-1),z=l!==f);let B=null,q={},I;I=nYe(b),l!==e.tagname&&this.matcher.push(l,{},I),l!==f&&z&&(B=this.buildAttributesMap(f,this.matcher,l),B&&(q=rYe(B,o))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let W=c;if(this.isCurrentNodeStopNode){let x="";if(E)c=A.closeIndex;else if(o.unpairedTagsSet.has(l))c=A.closeIndex;else{let ue=this.readStopNodeData(t,b,g+1);if(!ue)throw new Error(`Unexpected end of ${b}`);c=ue.i,x=ue.tagContent}let Q=new ur(l);B&&(Q[":@"]=B),Q.add(o.textNodeName,x),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,Q,this.readonlyMatcher,W)}else{if(E){({tagName:l,tagExp:f}=mS(o.transformTagName,l,f,o));let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(o.unpairedTagsSet.has(l)){let x=new ur(l);B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,c=A.closeIndex;continue}else{let x=new ur(l);if(this.tagsNodeStack.length>o.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),B&&(x[":@"]=B),this.addChild(r,x,this.readonlyMatcher,W),r=x}n="",c=g}}}else n+=t[c];return e.child},"parseXml");function uYe(t,e,r,n){this.options.captureMetaData||(n=void 0);let o=this.options.jPath?r.toString():r,s=this.options.updateTag(e.tagname,o,e[":@"]);s===!1||(typeof s=="string"&&(e.tagname=s),t.addChild(e,n))}i(uYe,"addChild");function pYe(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let o=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,o)))return t}if(n.tagFilter){let o=this.options.jPath?r.toString():r;if(!n.tagFilter(e,o))return t}return this.entityDecoder.decode(t)}i(pYe,"replaceEntitiesValue");function AYe(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}i(AYe,"saveTextToParentTag");function lYe(){return this.stopNodeExpressionsLine truncated
`;function gYe(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(yS(r)==="?xml"){let o=r[":@"];if(o){let s=e.attributeNamePrefix+"version";if(o[s])return o[s]}}return"1.0"}i(gYe,"detectXmlVersionFromArray");function une(t,e,r,n,o){return!r.sanitizeName||ku(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(une,"resolveTagName");function CS(t,e){let r="";e.format&&(r=OYe);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new jr(c)):c instanceof jr&&n.push(c)}let o=gYe(t,e),s=new ls;return pne(t,e,r,s,n,o)}i(CS,"toXml");function pne(t,e,r,n,o,s){let a="",c=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let u=t.toString();return u=ES(u,e),u}return""}for(let u=0;u<t.length;u++){let p=t[u],A=yS(p);if(A===void 0)continue;let b=A===e.textNodeName||A===e.cdataPropName||A===e.commentPropName||A[0]==="?"?A:une(A,!1,e,n,s),f=EYe(p[":@"],e);n.push(b,f);let z=yYe(n,o);if(b===e.textNodeName){let q=p[A];z||(q=e.tagValueProcessor(b,q),q=ES(q,e)),c&&(a+=r),a+=q,c=!1,n.pop();continue}else if(b===e.cdataPropName){c&&(a+=r);let q=p[A][0][e.textNodeName],I=tE(q);a+=`<![CDATA[${I}]]>`,c=!1,n.pop();continue}else if(b===e.commentPropName){let q=p[A][0][e.textNodeName],I=eE(q);a+=r+`<!--${I}-->`,c=!0,n.pop();continue}else if(b[0]==="?"){let q=cne(p[":@"],e,z,n,s);a+=(b==="?xml"?"":r)+`<${b}${q}?>`,c=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let y=cne(p[":@"],e,z,n,s),E=r+`<${b}${y}`,B;z?B=Ane(p[A],e):B=pne(p[A],e,g,n,o,s),e.unpairedTags.indexOf(b)!==-1?e.suppressUnpairedNode?a+=E+">":a+=E+"/>":(!B||B.length===0)&&e.suppressEmptyNode?a+=E+"/>":B&&B.endsWith(">")?a+=E+`>${B}${r}</${b}>`:(a+=E+">",B&&r!==""&&(B.includes("/>")||B.includes("</"))?a+=r+e.indentBy+B+r:a+=B,a+=`</${b}>`),c=!0,n.pop()}return a}i(pne,"arrToStr");function EYe(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let s=o.startsWith(e.attributeNamePrefix)?o.substr(e.attributeNamePrefix.length):o;r[s]=uc(t[o]),n=!0}return n?r:null}i(EYe,"extractAttributeValues");function Ane(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let o=t[n],s=yS(o);if(s===e.textNodeName)r+=o[s];else if(s===e.cdataPropName)r+=o[s][0][e.textNodeName];else if(s===e.commentPropName)r+=o[s][0][e.textNodeName];else{if(s&&s[0]==="?")continue;if(s){let a=CYe(o[":@"],e),c=Ane(o[s],e);!c||c.length===0?r+=`<${s}${a}/>`:r+=`<${s}${a}>${c}</${s}>`}}}return r}i(Ane,"getRawContent");function CYe(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=t[n];o===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${uc(o)}"`}return r}i(CYe,"attr_to_str_raw");function yS(t){let e=Object.keys(t);for(let r=0;r<e.length;r++){let n=e[r];if(Object.prototype.hasOwnProperty.call(t,n)&&n!==":@")return n}}i(yS,"propName");function cne(t,e,r,n,o){let s="";if(t&&!e.ignoreAttributes)for(let a in t){if(!Object.prototype.hasOwnProperty.call(t,a))continue;let c=a.substr(e.attributeNamePrefix.length),u=r?c:une(c,!0,e,n,o),p;r?p=t[a]:(p=e.attributeValueProcessor(a,t[a]),p=ES(p,e)),p===!0&&e.suppressBooleanAttributes?s+=` ${u}`:s+=` ${u}="${uc(p)}"`}return s}i(cne,"attr_to_str");function yYe(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}i(yYe,"checkStopNode");function ES(t,e){if(t&&t.length>0&&e.processEntities)for(let r=0;r<e.entities.length;r++){let n=e.entities[r];t=t.replace(n.regex,n.val)}return t}i(ES,"replaceEntitiesValue");function BS(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}i(BS,"getIgnoreAttributesFn");var BYe={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:i(function(t,e){return e},"tagValueProcessor"),attributeValueProcessor:i(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 Ar(t){if(this.options=Object.assign({},BYe,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&ArraLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}o(on,"Builder");function aOt(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(aOt,"detectXmlVersionFromObj");function N7(t,e,r,s,n){return!r.sanitizeName||A2(t,{xmlVersion:n})?t:r.sanitizeName(t,{isAttribute:e,matcher:s.readOnly()})}o(N7,"resolveTagName");on.prototype.build=function(t){if(this.options.preserveOrder)return R7(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ec,r=aOt(t,this.options);return this.j2x(t,0,e,r).val}};on.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 u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let l=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:N7(u,!1,this.options,r,s);if(typeof t[u]>"u")this.isAttribute(u)&&(i+="");else if(t[u]===null)this.isAttribute(u)||l===this.options.cdataPropName||l===this.options.commentPropName?i+="":l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(t[u]instanceof Date)i+=this.buildTextValNode(t[u],l,"",e,r);else if(typeof t[u]!="object"){let A=this.isAttribute(u);if(A&&!this.ignoreAttributesFn(A,a)){let d=N7(A,!0,this.options,r,s);n+=this.buildAttrPairStr(d,""+t[u],c)}else if(!A)if(u===this.options.textNodeName){let d=this.options.tagValueProcessor(u,""+t[u]);i+=this.replaceEntitiesValue(d)}else{r.push(l);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[u];h===""?i+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:i+=this.indentate(e)+"<"+l+">"+h+"</"+l+this.tagEndChar}else i+=this.buildTextValNode(t[u],l,"",e,r)}}else if(Array.isArray(t[u])){let A=t[u].length,d="",h="";for(let M=0;M<A;M++){let z=t[u][M];if(!(typeof z>"u"))if(z===null)l[0]==="?"?i+=this.indentate(e)+"<"+l+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+l+"/"+this.tagEndChar;else if(typeof z=="object")if(this.options.oneListGroup){r.push(l);let C=this.j2x(z,e+1,r,s);r.pop(),d+=C.val,this.options.attributesGroupName&&z.hasOwnProperty(this.options.attributesGroupName)&&(h+=C.attrStr)}else d+=this.processTextOrObjNode(z,l,e,r,s);else if(this.options.oneListGroup){let C=this.options.tagValueProcessor(l,z);C=this.replaceEntitiesValue(C),d+=C}else{r.push(l);let C=this.checkStopNode(r);if(r.pop(),C){let E=""+z;E===""?d+=this.indentate(e)+"<"+l+this.closeTag(l)+this.tagEndChar:d+=this.indentate(e)+"<"+l+">"+E+"</"+l+this.tagEndChar}else d+=this.buildTextValNode(z,l,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,l,h,e)),i+=d}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let A=Object.keys(t[u]),d=A.length;for(let h=0;h<d;h++){let M=N7(A[h],!0,this.options,r,s);n+=this.buildAttrPairStr(M,""+t[u][A[h]],c)}}else i+=this.processTextOrObjNode(t[u],l,e,r,s)}return{attrStr:n,val:i}};on.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+'="'+iA(e)+'"'};function cOt(t,e,r,s,n){let i=this.extractAttributes(t);if(s.push(e,i),this.checkStopNode(s)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return s.pop(),this.buildObjectNode(u,e,p,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(cOt,"processTextOrObjNode");on.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]=iA(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]=iA(t[s]),r=!0)}return r?e:null};on.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="")}i(Ar,"Builder");function qYe(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let o=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(o)return o}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}i(qYe,"detectXmlVersionFromObj");function qS(t,e,r,n,o){return!r.sanitizeName||ku(t,{xmlVersion:o})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}i(qS,"resolveTagName");Ar.prototype.build=function(t){if(this.options.preserveOrder)return CS(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new ls,r=qYe(t,this.options);return this.j2x(t,0,e,r).val}};Ar.prototype.j2x=function(t,e,r,n){let o="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let a=this.options.jPath?r.toString():r,c=this.checkStopNode(r);for(let u in t){if(!Object.prototype.hasOwnProperty.call(t,u))continue;let A=u===this.options.textNodeName||u===this.options.cdataPropName||u===this.options.commentPropName||this.options.attributesGroupName&&u===this.options.attributesGroupName||this.isAttribute(u)||u[0]==="?"?u:qS(u,!1,this.options,r,n);if(typeof t[u]>"u")this.isAttribute(u)&&(s+="");else if(t[u]===null)this.isAttribute(u)||A===this.options.cdataPropName||A===this.options.commentPropName?s+="":A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(t[u]instanceof Date)s+=this.buildTextValNode(t[u],A,"",e,r);else if(typeof t[u]!="object"){let l=this.isAttribute(u);if(l&&!this.ignoreAttributesFn(l,a)){let b=qS(l,!0,this.options,r,n);o+=this.buildAttrPairStr(b,""+t[u],c)}else if(!l)if(u===this.options.textNodeName){let b=this.options.tagValueProcessor(u,""+t[u]);s+=this.replaceEntitiesValue(b)}else{r.push(A);let b=this.checkStopNode(r);if(r.pop(),b){let f=""+t[u];f===""?s+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:s+=this.indentate(e)+"<"+A+">"+f+"</"+A+this.tagEndChar}else s+=this.buildTextValNode(t[u],A,"",e,r)}}else if(Array.isArray(t[u])){let l=t[u].length,b="",f="";for(let z=0;z<l;z++){let g=t[u][z];if(!(typeof g>"u"))if(g===null)A[0]==="?"?s+=this.indentate(e)+"<"+A+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+A+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(A);let y=this.j2x(g,e+1,r,n);r.pop(),b+=y.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(f+=y.attrStr)}else b+=this.processTextOrObjNode(g,A,e,r,n);else if(this.options.oneListGroup){let y=this.options.tagValueProcessor(A,g);y=this.replaceEntitiesValue(y),b+=y}else{r.push(A);let y=this.checkStopNode(r);if(r.pop(),y){let E=""+g;E===""?b+=this.indentate(e)+"<"+A+this.closeTag(A)+this.tagEndChar:b+=this.indentate(e)+"<"+A+">"+E+"</"+A+this.tagEndChar}else b+=this.buildTextValNode(g,A,"",e,r)}}this.options.oneListGroup&&(b=this.buildObjectNode(b,A,f,e)),s+=b}else if(this.options.attributesGroupName&&u===this.options.attributesGroupName){let l=Object.keys(t[u]),b=l.length;for(let f=0;f<b;f++){let z=qS(l[f],!0,this.options,r,n);o+=this.buildAttrPairStr(z,""+t[u][l[f]],c)}}else s+=this.processTextOrObjNode(t[u],A,e,r,n)}return{attrStr:o,val:s}};Ar.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+'="'+uc(e)+'"'};function DYe(t,e,r,n,o){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let u=this.buildRawContent(t),p=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(u,e,p,r)}let c=this.j2x(t,r+1,n,o);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,c.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,c.attrStr,r,n):this.buildObjectNode(c.val,e,c.attrStr,r)}i(DYe,"processTextOrObjNode");Ar.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let o in n){if(!Object.prototype.hasOwnProperty.call(n,o))continue;let s=o.startsWith(this.options.attributeNamePrefix)?o.substring(this.options.attributeNamePrefix.length):o;e[s]=uc(n[o]),r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let o=this.isAttribute(n);o&&(e[o]=uc(t[n]),r=!0)}return r?e:null};Ar.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(Ve.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${s}`),e}getHeaderValueToSign(e,r){let s=e.headers.get(r);return!s||r===Ve.CONTENT_LENGTH&&s==="0"?"":s}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(n=>n.name.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE));r.sort((n,i)=>vR(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=SR(e.url)||"/",s="";s+=`/${this.factory.accountName}${r}`;let n=NR(e.url),i={};if(n){let a=[];for(let c in n)if(Object.prototype.hasOwnProperty.call(n,c)){let u=c.toLowerCase();i[u]=n[c],a.push(u)}a.sort();for(let c of a)s+=`
${c}:${decodeURIComponent(i[c])}`}return s}};var L0=class extends h2{static{o(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new q3(e,r,this)}computeHMACSHA256(e){return(0,Eze.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var R1=Ya("storage-common");var Gi;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Gi||(Gi={}));var aA={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},mOt=new Kn("The operation was aborted."),I3=class extends tc{static{o(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,s=aA){super(e,r),this.retryOptions={retryPolicyType:s.retryPolicyType?s.retryPolicyType:aA.retryPolicyType,maxTries:s.maxTries&&s.maxTries>=1?Math.floor(s.maxTries):aA.maxTries,tryTimeoutInMs:s.tryTimeoutInMs&&s.tryTimeoutInMs>=0?s.tryTimeoutInMs:aA.tryTimeoutInMs,retryDelayInMs:s.retryDelayInMs&&s.retryDelayInMs>=0?Math.min(s.retryDelayInMs,s.maxRetryDelayInMs?s.maxRetryDelayInMs:aA.maxRetryDelayInMs):aA.retryDelayInMs,maxRetryDelayInMs:s.maxRetryDelayInMs&&s.maxRetryDelayInMs>=0?s.maxRetryDelayInMs:aA.maxRetryDelayInMs,secondaryHost:s.secondaryHost?s.secondaryHost:aA.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=wR(n.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(n.url=oA(n.url,Zu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(R1.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(R1.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 R1.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 R1.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 R1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return R1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(s&&s?.status>=400){let a=s.headers.get(Ve.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')?(R1.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 Gi.EXPONENTIAL:n=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Gi.FIXED:n=this.retryOptions.retryDelayInMs;break}else n=Math.random()*1e3;return R1.info(`RetryPolicy: Delay for ${n}ms`),FR(n,s,mOt)}};var R3=class{static{o(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new I3(e,r,this.retryOptions)}};var MOt="storageBrowserPolicy";function yze(){return{name:MOt,async sendRequest(t,e){return _t||((t.method==="GET"||t.method==="HEAD")&&(t.url=oA(t.url,Zu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Ve.COOKIE),t.headers.delete(Ve.CONTENT_LENGTH)),e(t)}}}o(yze,"storageBrowserPolicy");var gOt="StorageCorrectContentLengthPolicy";function Cze(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Ve.CONTENT_LENGTH,Buffer.byteLength(e.body))}return o(t,"correctContentLength"),{name:gOt,async sendRequest(e,r){return t(e),r(e)}}}o(Cze,"storageCorrectContentLengthPolicy");var zOt="storageRetryPolicy",rm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Gi.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},OOt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],EOt=new Kn("The operation was aborted.");function Bze(t={}){let e=t.retryPolicyType??rm.retryPolicyType,r=t.maxTries??rm.maxTries,s=t.retryDelayInMs??rm.retryDelayInMs,n=t.maxRetryDelayInMs??rm.maxRetryDelayInMs,i=t.secondaryHost??rm.secondaryHost,a=t.tryTimeoutInMs??rm.tryTimeoutInMs;function c({isPrimaryRetry:p,attempt:l,response:A,error:d}){if(l>=r)return Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(Be.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===Be.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(o=>o.name.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE));r.sort((o,s)=>lE(o.name.toLowerCase(),s.name.toLowerCase())),r=r.filter((o,s,a)=>!(s>0&&o.name.toLowerCase()===a[s-1].name.toLowerCase()));let n="";return r.forEach(o=>{n+=`${o.name.toLowerCase().trimRight()}:${o.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=uE(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let o=pE(e.url),s={};if(o){let a=[];for(let c in o)if(Object.prototype.hasOwnProperty.call(o,c)){let u=c.toLowerCase();s[u]=o[c],a.push(u)}a.sort();for(let c of a)n+=`
${c}:${decodeURIComponent(s[c])}`}return n}};var o1=class extends Hu{static{i(this,"StorageSharedKeyCredential")}accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new ZM(e,r,this)}computeHMACSHA256(e){return(0,zne.createHmac)("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Q1=cs("storage-common");var In;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(In||(In={}));var Ac={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},TYe=new Vr("The operation was aborted."),ef=class extends ds{static{i(this,"StorageRetryPolicy")}retryOptions;constructor(e,r,n=Ac){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Ac.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Ac.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Ac.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs):Ac.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Ac.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Ac.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let o=e.clone(),s=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;s||(o.url=cE(o.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(o.url=pc(o.url,Hi.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let a;try{if(Q1.info(`RetryPolicy: =====> Try=${n} ${s?"Primary":"Secondary"}`),a=await this._nextPolicy.sendRequest(o),!this.shouldRetry(s,n,a))return a;r=r||!s&&a.status===404}catch(c){if(Q1.error(`RetryPolicy: Caught error, message: ${c.message}, code: ${c.code}`),!this.shouldRetry(s,n,a,c))throw c}return await this.delay(s,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,o){if(r>=this.retryOptions.maxTries)return Q1.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let s=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(o){for(let a of s)if(o.name.toUpperCase().includes(a)||o.message.toUpperCase().includes(a)||o.code&&o.code.toString().toUpperCase()===a)return Q1.info(`RetryPolicy: Network error ${a} found, will retry.`),!0}if(n||o){let a=n?n.status:o?o.statusCode:0;if(!e&&a===404)return Q1.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(a===503||a===500)return Q1.info(`RetryPolicy: Will retry for status code ${a}.`),!0}if(n&&n?.status>=400){let a=n.headers.get(Be.X_MS_CopySourceErrorCode);if(a!==void 0)switch(a){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return o?.code==="PARSE_ERROR"&&o?.message.startsWith('Error "Error: Unclosed root tag')?(Q1.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let o=0;if(e)switch(this.retryOptions.retryPolicyType){case In.EXPONENTIAL:o=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case In.FIXED:o=this.retryOptions.retryDelayInMs;break}else o=Math.random()*1e3;return Q1.info(`RetryPolicy: Delay for ${o}ms`),AE(o,n,TYe)}};var tf=class{static{i(this,"StorageRetryPolicyFactory")}retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new ef(e,r,this.retryOptions)}};var vYe="storageBrowserPolicy";function One(){return{name:vYe,async sendRequest(t,e){return l0||((t.method==="GET"||t.method==="HEAD")&&(t.url=pc(t.url,Hi.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(Be.COOKIE),t.headers.delete(Be.CONTENT_LENGTH)),e(t)}}}i(One,"storageBrowserPolicy");var LYe="StorageCorrectContentLengthPolicy";function gne(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(Be.CONTENT_LENGTH,Buffer.byteLength(e.body))}return i(t,"correctContentLength"),{name:LYe,async sendRequest(e,r){return t(e),r(e)}}}i(gne,"storageCorrectContentLengthPolicy");var QYe="storageRetryPolicy",Ll={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:In.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_Ye=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],PYe=new Vr("The operation was aborted.");function Ene(t={}){let e=t.retryPolicyType??Ll.retryPolicyType,r=t.maxTries??Ll.maxTries,n=t.retryDelayInMs??Ll.retryDelayInMs,o=t.maxRetryDelayInMs??Ll.maxRetryDelayInMs,s=t.secondaryHost??Ll.secondaryHost,a=t.tryTimeoutInMs??Ll.tryTimeoutInMs;function c({isPrimaryRetry:p,attempt:A,response:l,error:b}){if(A>=r)return Line truncated
`)+`
`+s(i)+n(i),c=(0,Dze.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");i.headers.set(Ve.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}o(e,"signRequest");function r(i,a){let c=i.headers.get(a);return!c||a===Ve.CONTENT_LENGTH&&c==="0"?"":c}o(r,"getHeaderValueToSign");function s(i){let a=[];for(let[u,p]of i.headers)u.toLowerCase().startsWith(Ve.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>vR(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,l)=>!(p>0&&u.name.toLowerCase()===l[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}o(s,"getCanonicalizedHeadersString");function n(i){let a=SR(i.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=NR(i.url),p={};if(u){let l=[];for(let A in u)if(Object.prototype.hasOwnProperty.call(u,A)){let d=A.toLowerCase();p[d]=u[A],l.push(d)}l.sort();for(let A of l)c+=`
${A}:${decodeURIComponent(p[A])}`}return c}return o(n,"getCanonicalizedResourceString"),{name:yOt,async sendRequest(i,a){return e(i),a(i)}}}o(_7,"storageSharedKeyCredentialPolicy");var COt="storageRequestFailureDetailsParserPolicy";function qze(){return{name:COt,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(qze,"storageRequestFailureDetailsParserPolicy");var Ize=require("node:crypto");var TR=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,Ize.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var xR="12.31.0",_R="2026-02-06";var WR="https://storage.azure.com/.default",ep={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Jo="",W7="*",BOt=1*1024*1024;var DOt=4*BOt;var Rze="AES256",wze="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Sze=["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"],Nze=["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"],Fze="BlobUsesCustomerSpecifiedEncryption",vze="BlobDoesNotUseCustomerSpecifiedEncryption",Tze=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function tp(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(tp,"isPipelineLike");var w3=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 o1(t,e={}){t||(t=new B0);let r=new w3([],e);return r._credential=t,r}o(o1,"newPipeline");function qOt(t){let e=[IOt,xze,ROt,wOt,SOt,NOt,vOt];if(t.factories.length){let r=t.factories.filter(s=>!e.some(n=>n(s)));if(r.length){let s=r.some(n=>FOt(n));return{wrappedPolicies:d7(r),afterRetry:s}}}}o(qOt,"processDownlevelPipeline");function L7(t){let{httpClient:e,...r}=t.options,s=t._coreHttpClient;s||(s=e?f7(e):x7(),t._coreHttpClient=s);let n=t._corePipeline;if(!n){let i=`azsdk-js-azure-storage-blob/${xR}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;n=A3({...r,loggingOptions:{additionalAllowedHeaderNames:Sze,additionalAllowedQueryParameters:Nze,logger:BR.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:CR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:v7,serializerOptions:{xml:{xmlCharKey:"#"}}}}),n.removePolicy({phase:"Retry"}),n.removePolicy({name:Uk}),n.addPolicy(Cze()),n.addPolicy(Bze(r.retryOptions),{phase:"R Line truncated
`),i=e.computeHMACSHA256(n);return{sasQueryParameters:new ra(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(qEt,"generateBlobSASQueryParameters20150405");function IEt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ta(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 ra(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(IEt,"generateBlobSASQueryParameters20181109");function REt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ta(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 ra(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(REt,"generateBlobSASQueryParameters20201206");function wEt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ta(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 ra(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(wEt,"generateBlobSASQueryParametersUDK20181109");function SEt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ta(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 ra(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(SEt,"generateBlobSASQueryParametersUDK20200210");function NEt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ta(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 ra(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(NEt,"generateBlobSASQueryParametersUDK20201206");function FEt(t,e){if(t=C2(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=Mc.parse(t.permissions.toString()).toString():n=gc.parse(t.permissions.toString()).toString());let i=[n||"",t.startsOn?Wt(t.startsOn,!1):"",t.expiresOn?Wt(t.expiresOn,!1):"",y2(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Wt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Wt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ta(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 ra(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(FEt,"generateBlobSASQueryParametersUDK20250705");function y2(t,e,r){let s=[`/blob/${t}/${e}`];return r&&s.push(`/${r}`),s.join("")}o(y2,"getCanonicalName");function C2(t){let e=t.version?t.version:_R;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(C2,"SASSignatureValuesSanityCheckAndAutofill");var k3=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=$b()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Jo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jo||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 qe.withSpan("BlobLeaseClient-acquireLease",r,async s=>Fe(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!==Jo||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Jo||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 qe.withSpan("BlobLeaseClient-changeLease",r,async s=>{let n=Fe(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!==Jo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Jo||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 qe.withSpan("BlobLeaseClient-releaseLease",e,async r=>Fe(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!==Jo||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Jo||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};fm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var I2=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"}};I2.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var K3=class extends Error{static{o(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var Uyt=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},RH=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);W(`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 L3e(t,e,r){return Uyt(this,void 0,void 0,function*(){var s;let n=new cp(t),i=n.getBlockBlobClient(),a=new RH((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(),T(`BlobClient: ${n.name}:${n.accountName}:${n.containerName}`);let u=yield i.uploadFile(e,c);if(u._response.status>=400)throw new k5(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw Rt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}o(L3e,"uploadCacheArchiveSDK");var Q3e=_(require("buffer"),1),zc=_(require("fs"),1),k3e=_(require("stream"),1),U3e=_(require("util"),1);var U5=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function G5(t){return t?t>=200&&t<300:!1}o(G5,"isSuccessStatusCode");function Gyt(t){return t?t>=500:!0}o(Gyt,"isServerErrorStatusCode");function Hyt(t){return t?[W0.BadGateway,W0.ServiceUnavailable,W0.GatewayTimeout].includes(t):!1}o(Hyt,"isRetryableStatusCode");function Xyt(t){return U5(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}o(Xyt,"sleep");function P3e(t,e,r){return U5(this,arguments,void 0,function*(s,n,i,a=hI,c=bI,u=void 0){let p="",l=1;for(;l<=a;){let A,d,h=!1;try{A=yield n()}catch(M){u&&(A=u(M)),h=!0,p=M.message}if(A&&(d=i(A),!Gyt(d)))return A;if(d&&(h=Hyt(d),p=`Cache service responded with ${d}`),T(`${s} - Attempt ${l} of ${a} failed with error: ${p}`),!h){T(`${s} - Error is not retryable`);break}yield Xyt(c),l++}throw Error(`${s} failed: ${p}`)})}o(P3e,"retry");function Z3(t,e){return U5(this,arguments,void 0,function*(r,s,n=hI,i=bI){return yield P3e(r,s,a=>a.statusCode,n,i,a=>{if(a instanceof Xa)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}o(Z3,"retryTypedResponse");function hm(t,e){return U5(this,arguments,void 0,function*(r,s,n=hI,i=bI){return yield P3e(r,s,a=>a.message.statusCode,n,i)})}o(hm,"retryHttpClientResponse");var ji=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})};function Vyt(t,e){return ji(this,void 0,void 0,function*(){yield U3e.promisify(k3e.pipeline)(t.message,e)})}o(Vyt,"pipeResponseToStream");var H5=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,T(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of i?.artifactCaches||[])T(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}o(eCt,"printCachesListForDiagnostics");function FH(t,e,r){return cn(this,void 0,void 0,function*(){let s=new Z3e.URL(t),n=V3e(r);s.hostname.endsWith(".blob.core.windows.net")?n.useAzureSdk?yield H3e(t,e,n):n.concurrentBlobDownloads?yield G3e(t,e,n):yield X5(t,e):yield X5(t,e)})}o(FH,"downloadCache");function tEe(t,e,r){return cn(this,void 0,void 0,function*(){let s=NH(),n=Lb(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:n,cacheSize:r?.cacheSize};return yield Z3("reserveCache",()=>cn(this,void 0,void 0,function*(){return s.postJson(tE("caches"),i)}))})}o(tEe,"reserveCache");function K3e(t,e){return`bytes ${t}-${e}/*`}o(K3e,"getContentRange");function tCt(t,e,r,s,n){return cn(this,void 0,void 0,function*(){T(`Uploading chunk of size ${n-s+1} bytes at offset ${s} with content range: ${K3e(s,n)}`);let i={"Content-Type":"application/octet-stream","Content-Range":K3e(s,n)},a=yield hm(`uploadChunk (start: ${s}, end: ${n})`,()=>cn(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!G5(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}o(tCt,"uploadChunk");function rCt(t,e,r,s){return cn(this,void 0,void 0,function*(){let n=Ha(r),i=tE(`caches/${e.toString()}`),a=bm.openSync(r,"r"),c=wH(s),u=tk("uploadConcurrency",c.uploadConcurrency),p=tk("uploadChunkSize",c.uploadChunkSize),l=[...new Array(u).keys()];T("Awaiting all uploads");let A=0;try{yield Promise.all(l.map(()=>cn(this,void 0,void 0,function*(){for(;A<n;){let d=Math.min(n-A,p),h=A,M=A+d-1;A+=p,yield tCt(t,i,()=>bm.createReadStream(r,{fd:a,start:h,end:M,autoClose:!1}).on("error",z=>{throw new Error(`Cache upload failed because file read failed with ${z.message}`)}),h,M)}})))}finally{bm.closeSync(a)}})}o(rCt,"uploadFile");function sCt(t,e,r){return cn(this,void 0,void 0,function*(){let s={size:r};return yield Z3("commitCache",()=>cn(this,void 0,void 0,function*(){return t.postJson(tE(`caches/${e.toString()}`),s)}))})}o(sCt,"commitCache");function vH(t,e,r,s){return cn(this,void 0,void 0,function*(){if(wH(s).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield L3e(r,e,s)}else{let i=NH();T("Upload cache"),yield rCt(i,t,e,s),T("Commiting cache");let a=Ha(e);W(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield sCt(i,t,a);if(!G5(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);W("Cache saved successfully")}})}o(vH,"saveCache");var jEe=_(kEe(),1),u1=_(c1(),1),ni=_(c1(),1),F2=_(c1(),1),v2=_(c1(),1),T2=_(c1(),1);var IX=_(c1(),1),RX=_(c1(),1),XEe=_(c1(),1),VEe=_(c1(),1),$Ee=_(c1(),1);var BX=_(c1(),1),DX=_(c1(),1),UEe=_(c1(),1),GEe=_(c1(),1),HEe=_(c1(),1);var qX=class extends HEe.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,GEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,UEe.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,u]=e.tag();switch(c){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let p=s.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?DX.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,s){e.scope!==""&&r.tag(1,BX.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,BX.WireType.Varint).int64(e.permission);let n=s.writeUnknownFields;return n!==!1&&(n==!0?DX.UnknownFieldHandler.onWrite:n)(this.typeName,e,r),r}},Fw=new qX;var wX=class extends $Ee.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(()=>Fw,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,VEe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,XEe.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,u]=e.tag();switch(c){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(Fw.internalBinaryRead(e,e.uint32(),s));break;default:let p=s.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let l=e.skip(u);p!==!1&&(p===!0?RX.UnknownFieldHandler.onRead:p)(this.typeName,i,c,u,l)}}return i}internalBinaryWrite(e,r,s){e.repositoryId!== Line truncated
`));let s=yield HX(r,"create");yield XX(s,t)})}o($X,"createTar");var Fm=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(l){try{p(s.next(l))}catch(A){a(A)}}o(c,"fulfilled");function u(l){try{p(s.throw(l))}catch(A){a(A)}}o(u,"rejected");function p(l){l.done?i(l.value):n(l.value).then(c,u)}o(p,"step"),p((s=s.apply(t,e||[])).next())})},ia=class t extends Error{static{o(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Nm=class t extends Error{static{o(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},_w=class t extends Error{static{o(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ZEe(t){if(!t||t.length===0)throw new ia("Path Validation Error: At least one directory or file path is required")}o(ZEe,"checkPaths");function jX(t){if(t.length>512)throw new ia(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ia(`Key Validation Error: ${t} cannot contain commas.`)}o(jX,"checkKey");function YX(){return eE()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}o(YX,"isFeatureAvailable");function eye(t,e,r,s){return Fm(this,arguments,void 0,function*(n,i,a,c,u=!1){let p=eE();return T(`Cache service version: ${p}`),ZEe(n),p==="v2"?yield MBt(n,i,a,c,u):yield mBt(n,i,a,c,u)})}o(eye,"restoreCache");function mBt(t,e,r,s){return Fm(this,arguments,void 0,function*(n,i,a,c,u=!1){a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of p)jX(d);let l=yield KO(),A="";try{let d=yield eEe(p,n,{compressionMethod:l,enableCrossOsArchive:u});if(!d?.archiveLocation)return;if(c?.lookupOnly)return W("Lookup only - skipping download"),d.cacheKey;A=mE.join(yield YO(),Kl(l)),T(`Archive Path: ${A}`),yield FH(d.archiveLocation,A,c),Gu()&&(yield bE(A,l));let h=Ha(A);return W(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield VX(A,l),W("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ia.name)throw d;h instanceof Xa&&typeof h.statusCode=="number"&&h.statusCode>=500?qb(`Failed to restore: ${d.message}`):Rt(`Failed to restore: ${d.message}`)}finally{try{yield JO(A)}catch(d){T(`Failed to delete archive: ${d}`)}}})}o(mBt,"restoreCacheV1");function MBt(t,e,r,s){return Fm(this,arguments,void 0,function*(n,i,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[i,...a];if(T("Resolved Keys:"),T(JSON.stringify(p)),p.length>10)throw new ia("Key Validation Error: Keys are limited to a maximum of 10.");for(let A of p)jX(A);let l="";try{let A=GX(),d=yield KO(),h={key:i,restoreKeys:a,version:Lb(n,d,u)},M=yield A.GetCacheEntryDownloadURL(h);if(!M.ok){T(`Cache not found for version ${h.version} of keys: ${p.join(", ")}`);return}if(h.key!==M.matchedKey?W(`Cache hit for restore-key: ${M.matchedKey}`):W(`Cache hit for: ${M.matchedKey}`),c?.lookupOnly)return W("Lookup only - skipping download"),M.matchedKey;l=mE.join(yield YO(),Kl(d)),T(`Archive path: ${l}`),T(`Starting download of archive to: ${l}`),yield FH(M.signedDownloadUrl,l,c);let C=Ha(l);return W(`Cache Size: ~${Math.round(C/(1024*1024))} MB (${C} B)`),Gu()&&(yield bE(l,d)),yield VX(l,d),W("Cache restored successfully"),M.matchedKey}catch(A){let d=A;if(d.name===ia.name)throw A;d instanceof Xa&&typeof d.statusCode=="number"&&d.statusCode>=500?qb(`Failed to restore: ${A.message}`):Rt(`Failed to restore: ${A.message}`)}finally{try{l&&(yield JO(l))}catch(A){T(`Failed to delete archive: ${A}`)}}})}o(MBt,"restoreCacheV2");function JX(t,e,r){return Fm(this,arguments,void 0,function*(s,n,i,a=!1){let c=eE();return T(`Cache service version: ${c}`),ZEe(s),jX(n),c==="v2"?yield zBt(s,n,i,a):yield gBt(s,n,i,a)})}o(JX,"saveCache");function gBt(t,e,r){return Fm(this,arguments,void 0,function*(s,n,i,a=!1){var c,u,p,l,A;let d=yield KO(),h=-1,M=yield ek(s);if(T("Cache Paths:"),T(`${JSON.stringify(M)}`),M.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let z=yield YO(),C=mE.join(z,Kl(d));T(`Archive Path: ${C}`);try{yield $X(z,M,d),Gu()&&(yield bE(C,d));let E=10*1024*1024*1024,B=Ha(C);if(T(`File Size: ${B}`),B>E&&!SH())throw new Error(`Cache size of ~${Math.round(B/(1024*1024))} MB (${B} B) is over the 10GB limit, not saving cache.`);T("Reserving Cache");let I=yield tEe(n,s,{compressionMethod:d,enableCrossOsArchive:a,cacheSize:B});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)h=(u=I?.result)===null||u===void 0?void 0:u.cacheId;else throw I?.statusCode===400?new Error((l=(p=I?.error)===null||p===void 0?void 0:p.message)!==null&&l!==void 0?l:`Cache size of ~${Math.round(B/(1024*Line truncated
`+n(s)+o(s),c=(0,Cne.createHmac)("sha256",t.accountKey).update(a,"utf8").digest("base64");s.headers.set(Be.AUTHORIZATION,`SharedKey ${t.accountName}:${c}`)}i(e,"signRequest");function r(s,a){let c=s.headers.get(a);return!c||a===Be.CONTENT_LENGTH&&c==="0"?"":c}i(r,"getHeaderValueToSign");function n(s){let a=[];for(let[u,p]of s.headers)u.toLowerCase().startsWith(Be.PREFIX_FOR_STORAGE)&&a.push({name:u,value:p});a.sort((u,p)=>lE(u.name.toLowerCase(),p.name.toLowerCase())),a=a.filter((u,p,A)=>!(p>0&&u.name.toLowerCase()===A[p-1].name.toLowerCase()));let c="";return a.forEach(u=>{c+=`${u.name.toLowerCase().trimRight()}:${u.value.trimLeft()}
`}),c}i(n,"getCanonicalizedHeadersString");function o(s){let a=uE(s.url)||"/",c="";c+=`/${t.accountName}${a}`;let u=pE(s.url),p={};if(u){let A=[];for(let l in u)if(Object.prototype.hasOwnProperty.call(u,l)){let b=l.toLowerCase();p[b]=u[l],A.push(b)}A.sort();for(let l of A)c+=`
${l}:${decodeURIComponent(p[l])}`}return c}return i(o,"getCanonicalizedResourceString"),{name:kYe,async sendRequest(s,a){return e(s),a(s)}}}i(wS,"storageSharedKeyCredentialPolicy");var UYe="storageRequestFailureDetailsParserPolicy";function yne(){return{name:UYe,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}}}}i(yne,"storageRequestFailureDetailsParserPolicy");var Bne=require("node:crypto");var dE=class{static{i(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,Bne.createHmac)("sha256",this.key).update(e,"utf8").digest("base64")}};var bE="12.31.0",ME="2026-02-06";var fE="https://storage.azure.com/.default",Xi={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var ho="",SS="*",GYe=1*1024*1024;var HYe=4*GYe;var qne="AES256",Dne="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Ine=["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"],Rne=["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"],Nne="BlobUsesCustomerSpecifiedEncryption",wne="BlobDoesNotUseCustomerSpecifiedEncryption",Sne=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Vi(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}i(Vi,"isPipelineLike");var rf=class{static{i(this,"Pipeline")}factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function g1(t,e={}){t||(t=new H0);let r=new rf([],e);return r._credential=t,r}i(g1,"newPipeline");function XYe(t){let e=[VYe,Fne,YYe,JYe,jYe,$Ye,ZYe];if(t.factories.length){let r=t.factories.filter(n=>!e.some(o=>o(n)));if(r.length){let n=r.some(o=>KYe(o));return{wrappedPolicies:aS(r),afterRetry:n}}}}i(XYe,"processDownlevelPipeline");function FS(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?cS(e):NS(),t._coreHttpClient=n);let o=t._corePipeline;if(!o){let s=`azsdk-js-azure-storage-blob/${bE}`,a=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${s}`:`${s}`;o=LM({...r,loggingOptions:{additionalAllowedHeaderNames:Ine,additionalAllowedQueryParameters:Rne,logger:nE.info},userAgentOptions:{userAgentPrefix:a},serializationOptions:{stringifyXML:rE,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:IS,serializerOptions:{xml:{xmlCharKey:"#"}}}}),o.removePolicy({phase:"Retry"}),o.removePolicy({name:v6}),o.addPolicy(gne()),o.addPolicy(Ene(r.retryOptions),{phase:"R Line truncated
`),s=e.computeHMACSHA256(o);return{sasQueryParameters:new Co(t.version,s,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:o}}i(Xje,"generateBlobSASQueryParameters20150405");function Vje(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}i(Vje,"generateBlobSASQueryParameters20181109");function Yje(t,e){if(t=ep(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl?t.cacheControl:"",t.contentDisposition?t.contentDisposition:"",t.contentEncoding?t.contentEncoding:"",t.contentLanguage?t.contentLanguage:"",t.contentType?t.contentType:""].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:s}}i(Yje,"generateBlobSASQueryParameters20201206");function Jje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:s}}i(Jje,"generateBlobSASQueryParametersUDK20181109");function jje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:s}}i(jje,"generateBlobSASQueryParametersUDK20200210");function $je(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:s}}i($je,"generateBlobSASQueryParametersUDK20201206");function Kje(t,e){if(t=ep(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let o;t.permissions&&(t.blobName?o=Ns.parse(t.permissions.toString()).toString():o=ws.parse(t.permissions.toString()).toString());let s=[o||"",t.startsOn?d0(t.startsOn,!1):"",t.expiresOn?d0(t.expiresOn,!1):"",Zu(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?d0(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?d0(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Eo(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),a=e.computeHMACSHA256(s);return{sasQueryParameters:new Co(t.version,a,o,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:s}}i(Kje,"generateBlobSASQueryParametersUDK20250705");function Zu(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}i(Zu,"getCanonicalName");function ep(t){let e=t.version?t.version:ME;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}i(ep,"SASSignatureValuesSanityCheckAndAutofill");var Mf=class{static{i(this,"BlobLeaseClient")}_leaseId;_url;_containerOrBlobOperation;_isContainer;get leaseId(){return this._leaseId}get url(){return this._url}constructor(e,r){let n=e.storageClientContext;this._url=e.url,e.name===void 0?(this._isContainer=!0,this._containerOrBlobOperation=n.container):(this._isContainer=!1,this._containerOrBlobOperation=n.blob),r||(r=Nl()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||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 ce.withSpan("BlobLeaseClient-acquireLease",r,async n=>de(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==ho||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==ho||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 ce.withSpan("BlobLeaseClient-changeLease",r,async n=>{let o=de(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,o})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==ho||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ho||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 ce.withSpan("BlobLeaseClient-releaseLease",e,async r=>de(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!==ho||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==ho||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default val Line truncated
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};jl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var op=class extends Error{static{i(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"}};op.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Bf=class extends Error{static{i(this,"RateLimitError")}constructor(e){super(e),this.name="RateLimitError"}};var cKe=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},CT=class{static{i(this,"UploadProgress")}constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,o=(e/(1024*1024)/(n/1e3)).toFixed(1);S(`Sent ${e} of ${this.contentLength} (${r}%), ${o} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=i(()=>{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 Tse(t,e,r){return cKe(this,void 0,void 0,function*(){var n;let o=new ea(t),s=o.getBlockBlobClient(),a=new CT((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),c={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:a.onProgress()};try{a.startDisplayTimer(),N(`BlobClient: ${o.name}:${o.accountName}:${o.containerName}`);let u=yield s.uploadFile(e,c);if(u._response.status>=400)throw new OC(`uploadCacheArchiveSDK: upload failed with status code ${u._response.status}`);return u}catch(u){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${u.message}`),u}finally{a.stopDisplayTimer()}})}i(Tse,"uploadCacheArchiveSDK");var Lse=w(require("buffer"),1),Ss=w(require("fs"),1),Qse=w(require("stream"),1),_se=w(require("util"),1);var gC=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function EC(t){return t?t>=200&&t<300:!1}i(EC,"isSuccessStatusCode");function uKe(t){return t?t>=500:!0}i(uKe,"isServerErrorStatusCode");function pKe(t){return t?[n1.BadGateway,n1.ServiceUnavailable,n1.GatewayTimeout].includes(t):!1}i(pKe,"isRetryableStatusCode");function AKe(t){return gC(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}i(AKe,"sleep");function vse(t,e,r){return gC(this,arguments,void 0,function*(n,o,s,a=Xg,c=Vg,u=void 0){let p="",A=1;for(;A<=a;){let l,b,f=!1;try{l=yield o()}catch(z){u&&(l=u(z)),f=!0,p=z.message}if(l&&(b=s(l),!uKe(b)))return l;if(b&&(f=pKe(b),p=`Cache service responded with ${b}`),N(`${n} - Attempt ${A} of ${a} failed with error: ${p}`),!f){N(`${n} - Error is not retryable`);break}yield AKe(c),A++}throw Error(`${n} failed: ${p}`)})}i(vse,"retry");function qf(t,e){return gC(this,arguments,void 0,function*(r,n,o=Xg,s=Vg){return yield vse(r,n,a=>a.statusCode,o,s,a=>{if(a instanceof os)return{statusCode:a.statusCode,result:null,headers:{},error:a}})})}i(qf,"retryTypedResponse");function $l(t,e){return gC(this,arguments,void 0,function*(r,n,o=Xg,s=Vg){return yield vse(r,n,a=>a.message.statusCode,o,s)})}i($l,"retryHttpClientResponse");var Fn=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})};function lKe(t,e){return Fn(this,void 0,void 0,function*(){yield _se.promisify(Qse.pipeline)(t.message,e)})}i(lKe,"pipeResponseToStream");var CC=class{static{i(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,N(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){th Line truncated
Other caches with similar key:`);for(let c of s?.artifactCaches||[])N(`Cache Key: ${c?.cacheKey}, Cache Version: ${c?.cacheVersion}, Cache Scope: ${c?.scope}, Cache Created: ${c?.creationTime}`)}}})}i(zKe,"printCachesListForDiagnostics");function DT(t,e,r){return dr(this,void 0,void 0,function*(){let n=new jse.URL(t),o=Gse(r);n.hostname.endsWith(".blob.core.windows.net")?o.useAzureSdk?yield kse(t,e,o):o.concurrentBlobDownloads?yield Pse(t,e,o):yield yC(t,e):yield yC(t,e)})}i(DT,"downloadCache");function Kse(t,e,r){return dr(this,void 0,void 0,function*(){let n=qT(),o=gl(e,r?.compressionMethod,r?.enableCrossOsArchive),s={key:t,version:o,cacheSize:r?.cacheSize};return yield qf("reserveCache",()=>dr(this,void 0,void 0,function*(){return n.postJson(If("caches"),s)}))})}i(Kse,"reserveCache");function Jse(t,e){return`bytes ${t}-${e}/*`}i(Jse,"getContentRange");function OKe(t,e,r,n,o){return dr(this,void 0,void 0,function*(){N(`Uploading chunk of size ${o-n+1} bytes at offset ${n} with content range: ${Jse(n,o)}`);let s={"Content-Type":"application/octet-stream","Content-Range":Jse(n,o)},a=yield $l(`uploadChunk (start: ${n}, end: ${o})`,()=>dr(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),s)}));if(!EC(a.message.statusCode))throw new Error(`Cache service responded with ${a.message.statusCode} during upload chunk.`)})}i(OKe,"uploadChunk");function gKe(t,e,r,n){return dr(this,void 0,void 0,function*(){let o=ns(r),s=If(`caches/${e.toString()}`),a=Kl.openSync(r,"r"),c=yT(n),u=jw("uploadConcurrency",c.uploadConcurrency),p=jw("uploadChunkSize",c.uploadChunkSize),A=[...new Array(u).keys()];N("Awaiting all uploads");let l=0;try{yield Promise.all(A.map(()=>dr(this,void 0,void 0,function*(){for(;l<o;){let b=Math.min(o-l,p),f=l,z=l+b-1;l+=p,yield OKe(t,s,()=>Kl.createReadStream(r,{fd:a,start:f,end:z,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),f,z)}})))}finally{Kl.closeSync(a)}})}i(gKe,"uploadFile");function EKe(t,e,r){return dr(this,void 0,void 0,function*(){let n={size:r};return yield qf("commitCache",()=>dr(this,void 0,void 0,function*(){return t.postJson(If(`caches/${e.toString()}`),n)}))})}i(EKe,"commitCache");function IT(t,e,r,n){return dr(this,void 0,void 0,function*(){if(yT(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Tse(r,e,n)}else{let s=qT();N("Upload cache"),yield gKe(s,t,e,n),N("Commiting cache");let a=ns(e);S(`Cache Size: ~${Math.round(a/(1024*1024))} MB (${a} B)`);let c=yield EKe(s,t,a);if(!EC(c.statusCode))throw new Error(`Cache service responded with ${c.statusCode} during commit cache.`);S("Cache saved successfully")}})}i(IT,"saveCache");var Xie=w(Qie(),1),y1=w(C1(),1),Zr=w(C1(),1),up=w(C1(),1),pp=w(C1(),1),Ap=w(C1(),1);var Ev=w(C1(),1),Cv=w(C1(),1),Uie=w(C1(),1),Gie=w(C1(),1),Hie=w(C1(),1);var zv=w(C1(),1),Ov=w(C1(),1),_ie=w(C1(),1),Pie=w(C1(),1),kie=w(C1(),1);var gv=class extends kie.MessageType{static{i(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,Pie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_ie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.scope=e.string();break;case 2:s.permission=e.int64().toString();break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Ov.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,zv.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,zv.WireType.Varint).int64(e.permission);let o=n.writeUnknownFields;return o!==!1&&(o==!0?Ov.UnknownFieldHandler.onWrite:o)(this.typeName,e,r),r}},Ay=new gv;var yv=class extends Hie.MessageType{static{i(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:i(()=>Ay,"T")}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Gie.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Uie.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,o){let s=o??this.create(),a=e.pos+r;for(;e.pos<a;){let[c,u]=e.tag();switch(c){case 1:s.repositoryId=e.int64().toString();break;case 2:s.scope.push(Ay.internalBinaryRead(e,e.uint32(),n));break;default:let p=n.readUnknownField;if(p==="throw")throw new globalThis.Error(`Unknown field ${c} (wire type ${u}) for ${this.typeName}`);let A=e.skip(u);p!==!1&&(p===!0?Cv.UnknownFieldHandler.onRead:p)(this.typeName,s,c,u,A)}}return s}internalBinaryWrite(e,r,n){e.repositoryId!== Line truncated
`));let n=yield Qv(r,"create");yield _v(n,t)})}i(kv,"createTar");var M2=function(t,e,r,n){function o(s){return s instanceof r?s:new r(function(a){a(s)})}return i(o,"adopt"),new(r||(r=Promise))(function(s,a){function c(A){try{p(n.next(A))}catch(l){a(l)}}i(c,"fulfilled");function u(A){try{p(n.throw(A))}catch(l){a(l)}}i(u,"rejected");function p(A){A.done?s(A.value):o(A.value).then(c,u)}i(p,"step"),p((n=n.apply(t,e||[])).next())})},qo=class t extends Error{static{i(this,"ValidationError")}constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},lp=class t extends Error{static{i(this,"ReserveCacheError")}constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},Uv="cache write denied:",b2=class t extends lp{static{i(this,"CacheWriteDeniedError")}constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},My=class t extends Error{static{i(this,"FinalizeCacheError")}constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jie(t){if(!t||t.length===0)throw new qo("Path Validation Error: At least one directory or file path is required")}i(jie,"checkPaths");function Gv(t){if(t.length>512)throw new qo(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new qo(`Key Validation Error: ${t} cannot contain commas.`)}i(Gv,"checkKey");function Hv(){return Df()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}i(Hv,"isFeatureAvailable");function $ie(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){let p=Df();return N(`Cache service version: ${p}`),jie(o),p==="v2"?yield ve0(o,s,a,c,u):yield Te0(o,s,a,c,u)})}i($ie,"restoreCache");function Te0(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let b of p)Gv(b);let A=yield BM(),l="";try{let b=yield $se(p,o,{compressionMethod:A,enableCrossOsArchive:u});if(!b?.archiveLocation)return;if(c?.lookupOnly)return S("Lookup only - skipping download"),b.cacheKey;l=Gf.join(yield CM(),rc(A)),N(`Archive Path: ${l}`),yield DT(b.archiveLocation,l,c),Ti()&&(yield Uf(l,A));let f=ns(l);return S(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield Pv(l,A),S("Cache restored successfully"),b.cacheKey}catch(b){let f=b;if(f.name===qo.name)throw b;f instanceof os&&typeof f.statusCode=="number"&&f.statusCode>=500?ul(`Failed to restore: ${b.message}`):Ke(`Failed to restore: ${b.message}`)}finally{try{yield yM(l)}catch(b){N(`Failed to delete archive: ${b}`)}}})}i(Te0,"restoreCacheV1");function ve0(t,e,r,n){return M2(this,arguments,void 0,function*(o,s,a,c,u=!1){c=Object.assign(Object.assign({},c),{useAzureSdk:!0}),a=a||[];let p=[s,...a];if(N("Resolved Keys:"),N(JSON.stringify(p)),p.length>10)throw new qo("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of p)Gv(l);let A="";try{let l=Lv(),b=yield BM(),f={key:s,restoreKeys:a,version:gl(o,b,u)},z=yield l.GetCacheEntryDownloadURL(f);if(!z.ok){N(`Cache not found for version ${f.version} of keys: ${p.join(", ")}`);return}if(f.key!==z.matchedKey?S(`Cache hit for restore-key: ${z.matchedKey}`):S(`Cache hit for: ${z.matchedKey}`),c?.lookupOnly)return S("Lookup only - skipping download"),z.matchedKey;A=Gf.join(yield CM(),rc(b)),N(`Archive path: ${A}`),N(`Starting download of archive to: ${A}`),yield DT(z.signedDownloadUrl,A,c);let y=ns(A);return S(`Cache Size: ~${Math.round(y/(1024*1024))} MB (${y} B)`),Ti()&&(yield Uf(A,b)),yield Pv(A,b),S("Cache restored successfully"),z.matchedKey}catch(l){let b=l;if(b.name===qo.name)throw l;b instanceof os&&typeof b.statusCode=="number"&&b.statusCode>=500?ul(`Failed to restore: ${l.message}`):Ke(`Failed to restore: ${l.message}`)}finally{try{A&&(yield yM(A))}catch(l){N(`Failed to delete archive: ${l}`)}}})}i(ve0,"restoreCacheV2");function Xv(t,e,r){return M2(this,arguments,void 0,function*(n,o,s,a=!1){let c=Df();return N(`Cache service version: ${c}`),jie(n),Gv(o),c==="v2"?yield Qe0(n,o,s,a):yield Le0(n,o,s,a)})}i(Xv,"saveCache");function Le0(t,e,r){return M2(this,arguments,void 0,function*(n,o,s,a=!1){var c,u,p,A,l,b;let f=yield BM(),z=-1,g=yield Jw(n);if(N("Cache Paths:"),N(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let y=yield CM(),E=Gf.join(y,rc(f));N(`Archive Path: ${E}`);try{yield kv(y,g,f),Ti()&&(yield Uf(E,f));let B=10*1024*1024*1024,q=ns(E);if(N(`File Size: ${q}`),q>B&&!BT())throw new Error(`Cache size of ~${Math.round(q/(1024*1024))} MB (${q} B) is over the 10GB limit, not saving cache.`);N("Reserving Cache");let I=yield Kse(o,n,{compressionMethod:f,enableCrossOsArchive:a,cacheSize:q});if(!((c=I?.result)===null||c===void 0)&&c.cacheId)z=(u=I?.result)= Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}o(fDt,"_buildMessageForResponseErrors");var hDt=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(fDt(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},bDt=["method","baseUrl","url","headers","request","query","mediaType","operationName"],mDt=["query","method","url"],Qye=/\/api\/v3\/?$/;function MDt(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(mDt.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)=>bDt.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 Qye.test(i)&&(n.url=i.replace(Qye,"/api/graphql")),t(n).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new hDt(n,c,a.data)}return a.data.data})}o(MDt,"graphql");function pV(t,e){let r=t.defaults(e);return Object.assign(o((n,i)=>MDt(r,n,i),"newApi"),{defaults:pV.bind(null,r),endpoint:r.endpoint})}o(pV,"withDefaults");var NQ0=pV(OE,{headers:{"user-agent":`octokit-graphql.js/${dDt} ${bA()}`},method:"POST",url:"/graphql"});function kye(t){return pV(t,{method:"POST",url:"/graphql"})}o(kye,"withCustomRequest");var lV="(?:[a-zA-Z0-9_-]+)",Uye="\\.",Gye=new RegExp(`^${lV}${Uye}${lV}${Uye}${lV}$`),gDt=Gye.test.bind(Gye);async function zDt(t){let e=gDt(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(zDt,"auth");function ODt(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(ODt,"withAuthorizationPrefix");async function EDt(t,e,r,s){let n=e.endpoint.merge(r,s);return n.headers.authorization=ODt(t),e(n)}o(EDt,"hook");var Hye=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(zDt.bind(null,e),{hook:EDt.bind(null,e)})},"createTokenAuth2");var AV="7.0.6";var Xye=o(()=>{},"noop"),yDt=console.warn.bind(console),CDt=console.error.bind(console);function BDt(t={}){return typeof t.debug!="function"&&(t.debug=Xye),typeof t.info!="function"&&(t.info=Xye),typeof t.warn!="function"&&(t.warn=yDt),typeof t.error!="function"&&(t.error=CDt),t}o(BDt,"createLogger");var Vye=`octokit-core.js/${AV} ${bA()}`,Yw=class{static{o(this,"Octokit")}static VERSION=AV;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 zye.Collection,s={baseUrl:OE.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} ${Vye}`:Vye,e.baseUrl&&(s.baseUrl=e.baseUrl),e.previews&&(s.mediaType.previews=e.previews),e.timeZone&&(s.headers["time-zone"]=e.timeZone),this.request=OE.defaults(s),this.graphql=kye(this.request).defaults(s),this.log=BDt(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=Hye(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 dV="17.0.0";var DDt={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
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:u,encoding:p,from_line:l,ltrim:A,max_record_size:d,raw:h,relax_quotes:M,rtrim:z,skip_empty_lines:C,to:E,to_line:B}=this.options,{comment:I,escape:w,quote:N,record_delimiter:x}=this.options,{bomSkipped:P,previousBuf:j,rawBuffer:Ee,escapeIsQuote:we}=this.state,Z;if(j===void 0)if(s===void 0){a();return}else Z=s;else j!==void 0&&s===void 0?Z=j:Z=Buffer.concat([j,s]);if(P===!1)if(c===!1)this.state.bomSkipped=!0;else if(Z.length<3){if(n===!1){this.state.previousBuf=Z;return}}else{for(let J in Jm)if(Jm[J].compare(Z,0,Jm[J].length)===0){let _e=Jm[J].length;this.state.bufBytesStart+=_e,Z=Z.slice(_e);let re=H$({...this.original_options,encoding:J});for(let Ce in re)this.options[Ce]=re[Ce];({comment:I,escape:w,quote:N}=this.options);break}this.state.bomSkipped=!0}let Se=Z.length,Y;for(Y=0;Y<Se&&!this.__needMoreData(Y,Se,n);Y++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),B!==-1&&this.info.lines>B){this.state.stop=!0,a();return}this.state.quoting===!1&&x.length===0&&this.__autoDiscoverRecordDelimiter(Z,Y)&&(x=this.options.record_delimiter);let J=Z[Y];if(h===!0&&Ee.append(J),(J===pNt||J===lNt)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(w!==null&&this.state.quoting===!0&&this.__isEscape(Z,Y,J)&&Y+w.length<Se)if(we){if(this.__isQuote(Z,Y+w.length)){this.state.escaping=!0,Y+=w.length-1;continue}}else{this.state.escaping=!0,Y+=w.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(Z,Y))if(this.state.quoting===!0){let Ce=Z[Y+N.length],dt=z&&this.__isCharTrimable(Z,Y+N.length),Gt=I!==null&&this.__compareBytes(I,Z,Y+N.length,Ce),He=this.__isDelimiter(Z,Y+N.length,Ce),u0=x.length===0?this.__autoDiscoverRecordDelimiter(Z,Y+N.length):this.__isRecordDelimiter(Ce,Z,Y+N.length);if(w!==null&&this.__isEscape(Z,Y,J)&&this.__isQuote(Z,Y+w.length))Y+=w.length-1;else if(!Ce||He||u0||Gt||dt){this.state.quoting=!1,this.state.wasQuoting=!0,Y+=N.length-1;continue}else if(M===!1){let Tt=this.__error(new qt("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(Ce)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Tt!==void 0)return Tt}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(N),Y+=N.length-1}else if(this.state.field.length!==0){if(M===!1){let Ce=this.__infoField(),dt=Object.keys(Jm).map(He=>Jm[He].equals(this.state.field.toString())?He:!1).filter(Boolean)[0],Gt=this.__error(new qt("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(Ce.column)} at line ${Ce.lines}, value is ${JSON.stringify(this.state.field.toString(p))}`,dt?`(${dt} bom)`:void 0],this.options,Ce,{field:this.state.field}));if(Gt!==void 0)return Gt}}else{this.state.quoting=!0,Y+=N.length-1;continue}if(this.state.quoting===!1){let Ce=this.__isRecordDelimiter(J,Z,Y);if(Ce!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),Y+=Ce-1;continue}if(C===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,Y+=Ce-1;continue}this.info.bytes=this.state.bufBytesStart+Y;let He=this.__onField();if(He!==void 0)return He;this.info.bytes=this.state.bufBytesStart+Y+Ce;let u0=this.__onRecord(i);if(u0!==void 0)return u0;if(E!==-1&&this.info.records>=E){this.state.stop=!0,a();return}}this.state.commenting=!1,Y+=Ce-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,Z,Y,J)!==0){this.state.commenting=!0;continue}let dt=this.__isDelimiter(Z,Y,J);if(dt!==0){this.info.bytes=this.state.bufBytesStart+Y;let Gt=this.__onField();if(Gt!==void 0)return Gt;Y+=dt-1;continue}}}if(this.state.commenting===!1&&d!==0&&this.state.record_length+this.state.field.length>d)return this.__error(new qt("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${d}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let _e=A===!1||this.state.quoting===!0||this.state.field.length!==0||!this.__isCharTrimable(Z,Y),re=z===!1||this.state.wasQuoting===!1;if(_e===!0&&re===!0)this.state.field.append(J);else{if(z===!0&&!this.__isCharTrimable(Z,Y))return this.__error(new qt("CSV_NON_TRIMABLE_CHAR_AFTER_CLOSING_QUOTE",["Invalid Closing Quote:","found non trimable byte after quote",`at line ${this.info.lines}`],this.options,this.__infoField()));_e===!1&&(Y+=this.__isCharTrimable(Z,Y)-1);continue}}if(n===!0 Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==s[n+p])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(u){return u}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 ui=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?{}:[],s=oqe(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(Hn(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let s=[];if(e=="")return s;let n=ui(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=Hn(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 mr("powershell",!0),n=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${s}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${n}' ${i.join(" ")}`]}}static isDirectory(e){try{return aqe.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 X$.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 X$.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,s){return cqe.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=UE.default.resolve(e);return UE.default.resolve(r).startsWith(s.endsWith(UE.default.sep)?s:`${s}${UE.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 Wr=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||GE.default.join(uqe.default.homedir(),".docker")}static configFile(){let e=GE.default.join(t.configDir,"config.json");if(V$.default.existsSync(e))return JSON.parse(V$.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await mr("docker",!0).then(e=>(T(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(T(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}catch{return!1}}st Line truncated
More info: ${u.url}`);let h=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,M=!1;for(let z of a)if(z.remote||z.path.endsWith(p)&&z.content===l){c.push({title:A,message:d,file:z.path,startLine:h}),M=!0;break}M||T(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${A}`)}return c}};var X2=_(require("fs"),1),$$=_(require("path"),1);var ZS=class t{static{o(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new i0,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(([h])=>!r.has(h)),i=St.parseBoolOrDefault(s["fetch-by-commit"]),a=e?.ref||s.ref||gs.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=`${wt.serverURL}/${gs.repo.owner}/${gs.repo.repo}.git`,u=e?.checksum||s.checksum,p=e?.subdir||s.subdir,l=e?.format;if(!l){if(l="fragment",n.length>0)l="query";else if(St.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(l="query")}catch{}}let A=gs.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(A=typeof gs.payload.pull_request?.head?.sha=="string"?gs.payload.pull_request.head.sha:a);let d=u||A;if(l==="query"){let h=[`ref=${i||u?a:d}`],M=i?d:u;M&&h.push(`checksum=${M}`),p&&p!=="."&&h.push(`subdir=${p}`);for(let[z,C]of n)h.push(`${z}=${C}`);return`${c}?${h.join("&")}`}return`${c}#${d}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return $$.default.join(Dt.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(X2.default.existsSync(e))return X2.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return $$.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!X2.default.existsSync(e))return;let r=X2.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(!X2.default.existsSync(n))throw new Error(`secret file ${n} not found`);return[s,n]}let i=Dt.tmpName({tmpdir:Dt.tmpDir()});return X2.default.writeFileSync(i,n),[s,i]}static getProvenanceInput(e){let r=Hn(e);if(!r)return r;try{return Ude(e)?`builder-id=${wt.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${wt.workflowRunURL(!0)}`;let r=ui(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=${wt.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let s="registry",n="",i="",a=ui(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?s=u[1]:u[0]==="repository"?n=u[1]:u[0]==="ghtoken"&&(i=u[1])}return s==="gha"&&(n||(e=`${e},repository=${wt.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=ui(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(u=>u.trim())))if(i=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let s=ui(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let n of s)for(let[i,a]of n.map(c=>c.split("=").map(u=>u.trim())))if(i=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=ui(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&&La(i),[n,i]}};var j$=_(require("fs"),1),lqe=_(require("path"),1);var eN=class t{static{o(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new i0,this.metadataFilename=`bake-metadata-${St.generateRandomString()}.json`}getMetadataFilePath(){return lqe.default.join(Dt.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!j$.default.existsSync(e))return;let r=j$.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 u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!St.isValidRef(u)){i.push(u);continue}if(n)throw new Error("Only one remote bake definition can be defined");n=u}}n&&s.push(n);for(let u of i)s.push("--file",u);if(e.overrides)for(let u of e.overrides)s.push("--set",u);if(e.vars)for(let u of e.vars)s.push("--var",u);if(e.allow)for(let u of e.allow)s.push("--allow",u);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 ke.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.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=ui(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=ui(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=ui(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=ui(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],n="";for(let i of s){let[a,c]=i.toString().split(/(?<=^[^=]+?)=/).map(u=>u.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, Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);T(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let s=r.match(/^HEAD, (.*)$/);if(!s||!s[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let n=s[1].trim();if(n.startsWith("tag: "))return`refs/tags/${n.split(":")[1].trim()}`;if(n.match(/^pull\/\d+\/(head|merge)$/))return`refs/${n}`;let a=n.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=n.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await ke.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let i=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return i?`refs/heads/${i[1]}`:r}let s=await t.exec(["tag","--contains","HEAD"]),[n]=s.split(`
`).map(i=>i.trim()).filter(i=>i.length>0);if(n)return`refs/tags/${n}`;throw new Error("Cannot infer ref from detached HEAD")}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[s]=r.split(`
`).map(n=>n.trim()).filter(n=>n.length>0);return s}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var jWe=require("crypto"),uu=_(require("fs"),1),sd=_(require("path"),1);var s4=_(XE(),1),pu=_(lxe(),1),YWe=_(W0e(),1),Fg=_(kWe(),1);var A1e=_(XE(),1);var GWe=_(oa(),1);var UWe="application/vnd.oci.empty.v1+json";var cl=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 ke.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(T(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(T(`Cosign.isAvailable error: ${r}`),!1));return T(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await ke.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 ke.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let s=r??await this.version();if(!s)return T("Cosign.versionSatisfies false: undefined version"),!1;let n=GWe.satisfies(s,e)||/^[0-9a-f]{7}$/.exec(s)!==null;return T(`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 u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(i=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===A1e.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===UWe&&typeof p.digest=="string"&&(s=p.digest)}if(!n&&u&&u.mediaType===A1e.BUNDLE_V03_MEDIA_TYPE&&(n=u),n&&(r||s)){i=void 0;break}}return{bundle:n,signatureManifestDigest:r||s,errors:i}}};var d1e=_(require("fs"),1);var XT=class t{static{o(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new i0}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 u=i.get(c);return u?u.platform?.os===n.os&&u.platform?.architecture===n.architecture&&(u.platform?.variant??"")===(n.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],s=Dt.tmpName({tmpdir:Dt.tmpDir(),template:"imagetools-metadata-XXXXXX"}),n=[],i=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&n.push(u);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){W(`[command]${a.command} ${a.args.join(" ")}`),W("Skipped create command");return}return await ke.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(!d1e.default.existsSync(s))return;let u=d1e.default.readFileSync(s,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let p=JSON.parse(u),l=p["containerimage.descriptor"];return l?{digest:p["containerimage.digest"]||l.digest,descriptor:l,imageNames:p["image.name"]?p["image.name"].split(",").map(A=>A.trim()):[]}:void 0}})}async inspect(e,r,s){let n=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(n.command,n.args,s);let i=e.retryLimit??15,a;for(let c=0;c<i;c++)try{return await this.execInspe Line truncated
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,s){return await ke.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|not found: not found)/i.test(e)}};var HWe="application/vnd.in-toto+json";var XWe="https://fulcio.sigstore.dev",VWe="https://rekor.sigstore.dev",$We="https://timestamp.sigstore.dev",$f="https://search.sigstore.dev";var nKt="slsaprovenance1",nd=class t{static{o(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new cl,this.imageTools=e?.imageTools||new XT}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=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.noTransparencyLog(e.noTransparencyLog),i=[];await this.cosign.versionSatisfies(">=3.0.4")?await Mr("Creating Sigstore protobuf signing config",async()=>{let a=Dt.tmpName({template:"signing-config-XXXXXX.json",tmpdir:Dt.tmpDir()}),c=["signing-config","create","--with-default-services=true",`--out=${a}`];n&&c.push("--no-default-rekor=true"),await ke.exec(this.cosign.binPath,c,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),W(JSON.stringify(JSON.parse(uu.default.readFileSync(a,{encoding:"utf-8"})),null,2)),i.push(`--signing-config=${a}`)}):(i.push("--use-signing-config"),n&&i.push("--tlog-upload=false"));for(let a of e.imageNames){let c=await this.imageTools.attestationDigests({name:`${a}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let u of c){let p=`${a}@${u}`;await Mr(`Signing attestation manifest ${p}`,async()=>{let l=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...i];W(`[command]${this.cosign.binPath} ${[...l,p].join(" ")}`);let A=await ke.getExecOutput(this.cosign.binPath,["--verbose",...l,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),d=cl.parseCommandOutput(A.stderr.trim());if(A.exitCode!=0)if(d.errors&&d.errors.length>0){let M=d.errors.map(z=>`- [${z.code}] ${z.message} : ${z.detail}`).join(`
`)}i(F00,"_buildMessageForResponseErrors");var W00=class extends Error{static{i(this,"GraphqlResponseError")}constructor(t,e,r){super(F00(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},x00=["method","baseUrl","url","headers","request","query","mediaType","operationName"],T00=["query","method","url"],Lae=/\/api\/v3\/?$/;function v00(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(T00.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,o=Object.keys(n).reduce((a,c)=>x00.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),s=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return Lae.test(s)&&(o.url=s.replace(Lae,"/api/graphql")),t(o).then(a=>{if(a.data.errors){let c={};for(let u of Object.keys(a.headers))c[u]=a.headers[u];throw new W00(o,c,a.data)}return a.data.data})}i(v00,"graphql");function sL(t,e){let r=t.defaults(e);return Object.assign(i((o,s)=>v00(r,o,s),"newApi"),{defaults:sL.bind(null,r),endpoint:r.endpoint})}i(sL,"withDefaults");var KZ0=sL(Yf,{headers:{"user-agent":`octokit-graphql.js/${S00} ${Oc()}`},method:"POST",url:"/graphql"});function Qae(t){return sL(t,{method:"POST",url:"/graphql"})}i(Qae,"withCustomRequest");var iL="(?:[a-zA-Z0-9_-]+)",_ae="\\.",Pae=new RegExp(`^${iL}${_ae}${iL}${_ae}${iL}$`),L00=Pae.test.bind(Pae);async function Q00(t){let e=L00(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}i(Q00,"auth");function _00(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}i(_00,"withAuthorizationPrefix");async function P00(t,e,r,n){let o=e.endpoint.merge(r,n);return o.headers.authorization=_00(t),e(o)}i(P00,"hook");var kae=i(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(Q00.bind(null,e),{hook:P00.bind(null,e)})},"createTokenAuth2");var aL="7.0.6";var Uae=i(()=>{},"noop"),k00=console.warn.bind(console),U00=console.error.bind(console);function G00(t={}){return typeof t.debug!="function"&&(t.debug=Uae),typeof t.info!="function"&&(t.info=Uae),typeof t.warn!="function"&&(t.warn=k00),typeof t.error!="function"&&(t.error=U00),t}i(G00,"createLogger");var Gae=`octokit-core.js/${aL} ${Oc()}`,Iy=class{static{i(this,"Octokit")}static VERSION=aL;static defaults(e){return class extends this{static{i(this,"OctokitWithDefaults")}constructor(...n){let o=n[0]||{};if(typeof e=="function"){super(e(o));return}super(Object.assign({},e,o,o.userAgent&&e.userAgent?{userAgent:`${o.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{i(this,"NewOctokit")}static plugins=r.concat(e.filter(o=>!r.includes(o)))}}constructor(e={}){let r=new mae.Collection,n={baseUrl:Yf.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${Gae}`:Gae,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Yf.defaults(n),this.graphql=Qae(this.request).defaults(n),this.log=G00(e.log),this.hook=r,e.authStrategy){let{authStrategy:s,...a}=e,c=s(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let s=kae(e.auth);r.wrap("request",s.hook),this.auth=s}let o=this.constructor;for(let s=0;s<o.plugins.length;++s)Object.assign(this,o.plugins[s](this,e))}request;graphql;log;hook;auth};var cL="17.0.0";var H00={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
`,a).length:l,p?(c===null?0:c.length)+u.length:0,p?u.length+l:0);return b<f},"__needMoreData"),parse:i(function(n,o,s,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:A,from_line:l,ltrim:b,max_record_size:f,raw:z,relax_quotes:g,rtrim:y,skip_empty_lines:E,to:B,to_line:q}=this.options,{comment:I,escape:W,quote:x,record_delimiter:Q}=this.options,{bomSkipped:ue,delimiterDiscovered:qe,delimiterBufPrevious:Qe,rawBuffer:Re,escapeIsQuote:ge}=this.state;if(!qe&&p){let _e;if(Qe===void 0?_e=n:Qe!==void 0&&n===void 0?_e=Qe:_e=Buffer.concat([Qe,n]),n=void 0,o||_e.length>p.size)this.options.delimiter=[Buffer.from(tle(_e,this.options.delimiter_auto))],this.state.previousBuf=_e,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=_e;return}}let{previousBuf:Ue}=this.state,pe;if(Ue===void 0)if(n===void 0){a();return}else pe=n;else Ue!==void 0&&n===void 0?pe=Ue:pe=Buffer.concat([Ue,n]);if(ue===!1)if(c===!1)this.state.bomSkipped=!0;else if(pe.length<3){if(o===!1){this.state.previousBuf=pe;return}}else{for(let _e in W2)if(W2[_e].compare(pe,0,W2[_e].length)===0){let g0=W2[_e].length;this.state.bufBytesStart+=g0,pe=pe.slice(g0);let ft=F2({...this.original_options,encoding:_e});for(let p0 in ft)this.options[p0]=ft[p0];({comment:I,escape:W,quote:x}=this.options);break}this.state.bomSkipped=!0}let Ge=pe.length,J;for(J=0;J<Ge&&!this.__needMoreData(J,Ge,o);J++){if(this.state.wasRowDelimiter===!0&&(this.info.lines++,this.state.wasRowDelimiter=!1),q!==-1&&this.info.lines>q){this.state.stop=!0,a();return}this.state.quoting===!1&&Q.length===0&&this.__autoDiscoverRecordDelimiter(pe,J)&&(Q=this.options.record_delimiter);let _e=pe[J];if(z===!0&&Re.append(_e),(_e===Di0||_e===Ii0)&&this.state.wasRowDelimiter===!1&&(this.state.wasRowDelimiter=!0),this.state.escaping===!0)this.state.escaping=!1;else{if(W!==null&&this.state.quoting===!0&&this.__isEscape(pe,J,_e)&&J+W.length<Ge)if(ge){if(this.__isQuote(pe,J+W.length)){this.state.escaping=!0,J+=W.length-1;continue}}else{this.state.escaping=!0,J+=W.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(pe,J))if(this.state.quoting===!0){let p0=pe[J+x.length],V1=y&&this.__isCharTrimable(pe,J+x.length),y0=I!==null&&this.__compareBytes(I,pe,J+x.length,p0),ne=this.__isDelimiter(pe,J+x.length,p0),vo=Q.length===0?this.__autoDiscoverRecordDelimiter(pe,J+x.length):this.__isRecordDelimiter(p0,pe,J+x.length);if(W!==null&&this.__isEscape(pe,J,_e)&&this.__isQuote(pe,J+W.length))J+=W.length-1;else if(!p0||ne||vo||y0||V1){this.state.quoting=!1,this.state.wasQuoting=!0,J+=x.length-1;continue}else if(g===!1){let cn=this.__error(new Ve("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(p0)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(cn!==void 0)return cn}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),J+=x.length-1}else if(this.state.field.length!==0){if(g===!1){let p0=this.__infoField(),V1=Object.keys(W2).map(ne=>W2[ne].equals(this.state.field.toString())?ne:!1).filter(Boolean)[0],y0=this.__error(new Ve("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(p0.column)} at line ${p0.lines}, value is ${JSON.stringify(this.state.field.toString(A))}`,V1?`(${V1} bom)`:void 0],this.options,p0,{field:this.state.field}));if(y0!==void 0)return y0}}else{this.state.quoting=!0,J+=x.length-1;continue}if(this.state.quoting===!1){let p0=this.__isRecordDelimiter(_e,pe,J);if(p0!==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)>=l){this.state.enabled=!0,this.__resetField(),this.__resetRecord(),J+=p0-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,J+=p0-1;continue}this.info.bytes=this.state.bufBytesStart+J;let ne=this.__onField();if(ne!==void 0)return ne;this.info.bytes=this.state.bufBytesStart+J+p0;let vo=this.__onRecord(s);if(vo!==void 0)return vo;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,J+=p0-1;continue}if(this.state.commenting)continue;if(I!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(I,pe,J,_e)!==0){this.state.commenting=!0;continue}let V1=this.__isDelimiter(pe,J,_e);if(V1!==0){this.info.bytes=this.state.bufBytesStart+J;let y0=this.__onField();if(y0!==void 0)return y0;J+=V1-1;continue}}}if(this.state.commenting===!1&&f!==0&&this.state.record_length+this.state.field.length>f)return this.__error(new Ve("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 g0=b===!1||th Line truncated
`,s),Buffer.from(`
`,s),Buffer.from("\r",s)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==n[o+p])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:i(function(n){let{encoding:o,raw:s,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,s?this.state.rawBuffer.toString(o):void 0)}catch(u){return u}return}else return c},"__error"),__infoDataSet:i(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:i(function(){let{columns:n,raw:o,encoding:s}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:o?this.state.rawBuffer.toString(s):void 0}},"__infoRecord"),__infoField:i(function(){let{columns:n}=this.options,o=Array.isArray(n),s=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:s,column:o===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var F1=i(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=w4(e),o=i(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),s=i(()=>{},"close"),a=n.parse(t,!0,o,s);if(a!==void 0)throw a;return r},"parse");var c0=class t{static{i(this,"Util")}static getInputList(e,r){return this.getList(_r(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let o=F1(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let s of o)s.length==1?r?.ignoreComma?n.push(s[0]):n.push(...s[0].split(",")):r?.ignoreComma?n.push(s.join(",")):n.push(...s);return n.filter(s=>s).map(s=>r?.trimWhitespace===!1?s:s.trim())}static getInputNumber(e){let r=_r(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await it("powershell",!0),o=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),s=[];if(r)for(let a in r)s.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${o}' ${s.join(" ")}`]}}static isDirectory(e){try{return nle.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return _Q.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,o)).toFixed(2))+" "+n[o]}static generateRandomString(e=10){return _Q.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return ole.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=mm.default.resolve(e);return mm.default.resolve(r).startsWith(n.endsWith(mm.default.sep)?n:`${n}${mm.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),o=Math.floor(r%3600/60),s=r%60,a=[];return n&&a.push(`${n}h`),o&&a.push(`${o}m`),(s||a.length===0)&&a.push(`${s}s`),a.join("")}};var Bt=class t{static{i(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||hm.default.join(sle.default.homedir(),".docker")}static configFile(){let e=hm.default.join(t.configDir,"config.json");if(PQ.default.existsSync(e))return JSON.parse(PQ.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await it("docker",!0).then(e=>(N(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(N(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}ca Line truncated
More info: ${u.url}`);let f=u.range&&u.range.length>0?u.range[0]?.start.line:void 0,z=!1;for(let g of a)if(g.remote||g.path.endsWith(p)&&g.content===A){c.push({title:l,message:b,file:g.path,startLine:f}),z=!0;break}z||N(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${p}: ${l}`)}return c}};var Cp=w(require("fs"),1),kQ=w(require("path"),1);var S4=class t{static{i(this,"Build")}buildx;iidFilename;metadataFilename;constructor(e){this.buildx=e?.buildx||new N0,this.iidFilename=`build-iidfile-${c0.generateRandomString()}.txt`,this.metadataFilename=`build-metadata-${c0.generateRandomString()}.json`}async gitContext(e){let r=new Set(["ref","checksum","subdir"]),n=e?.attrs||{},o=Object.entries(n).filter(([f])=>!r.has(f)),s=c0.parseBoolOrDefault(n["fetch-by-commit"]),a=e?.ref||n.ref||Ht.ref;a.startsWith("refs/")?a.startsWith("refs/pull/")&&c0.parseBoolOrDefault(process.env.DOCKER_DEFAULT_GIT_CONTEXT_PR_HEAD_REF)&&(a=a.replace(/\/merge$/g,"/head")):a=`refs/heads/${a}`;let c=`${a0.serverURL}/${Ht.repo.owner}/${Ht.repo.repo}.git`,u=e?.checksum||n.checksum,p=e?.subdir||n.subdir,A=e?.format;if(!A){if(A="fragment",o.length>0)A="query";else if(c0.parseBoolOrDefault(process.env.BUILDX_SEND_GIT_QUERY_AS_INPUT))try{await this.buildx.versionSatisfies(">=0.29.0")&&(A="query")}catch{}}let l=Ht.sha||a;a.startsWith("refs/pull/")&&a.endsWith("/head")&&(l=typeof Ht.payload.pull_request?.head?.sha=="string"?Ht.payload.pull_request.head.sha:a);let b=u||l;if(A==="query"){let f=[`ref=${s||u?a:b}`],z=s?b:u;z&&f.push(`checksum=${z}`),p&&p!=="."&&f.push(`subdir=${p}`);for(let[g,y]of o)f.push(`${g}=${y}`);return`${c}?${f.join("&")}`}return`${c}#${b}${p&&p!=="."?`:${p}`:""}`}getImageIDFilePath(){return kQ.default.join(s0.tmpDir(),this.iidFilename)}resolveImageID(){let e=this.getImageIDFilePath();if(Cp.default.existsSync(e))return Cp.default.readFileSync(e,{encoding:"utf-8"}).trim()}getMetadataFilePath(){return kQ.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!Cp.default.existsSync(e))return;let r=Cp.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,n]=t.resolveSecret(e,{redact:!0});return`id=${r},src=${n}`}static resolveSecretFile(e){let[r,n]=t.resolveSecret(e,{asFile:!0});return`id=${r},src=${n}`}static resolveSecretEnv(e){let[r,n]=t.parseSecretKvp(e);return`id=${r},env=${n}`}static resolveSecret(e,r){let[n,o]=t.parseSecretKvp(e,r?.redact);if(r?.asFile){if(!Cp.default.existsSync(o))throw new Error(`secret file ${o} not found`);return[n,o]}let s=s0.tmpName({tmpdir:s0.tmpDir()});return Cp.default.writeFileSync(s,o),[n,s]}static getProvenanceInput(e){let r=_r(e);if(!r)return r;try{return L$(e)?`builder-id=${a0.workflowRunURL(!0)}`:"false"}catch{return t.resolveProvenanceAttrs(r)}}static resolveProvenanceAttrs(e){if(!e)return`builder-id=${a0.workflowRunURL(!0)}`;let r=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of r)if(n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim())[0]=="builder-id")return e;return`${e},builder-id=${a0.workflowRunURL(!0)}`}static resolveCacheToAttrs(e,r){if(!e)return e;let n="registry",o="",s="",a=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let c of a){let u=c.toString().split(/(?<=^[^=]+?)=/).map(p=>p.trim());u[0]==="type"?n=u[1]:u[0]==="repository"?o=u[1]:u[0]==="ghtoken"&&(s=u[1])}return n==="gha"&&(o||(e=`${e},repository=${a0.repository}`),!s&&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 n=F1(r.join(`
`),{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n){if(o.length==1&&!o[0].startsWith("type="))return e=="local";for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0}return!1}static hasAttestationType(e,r){let n=F1(r,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0});for(let o of n)for(let[s,a]of o.map(c=>c.split("=").map(u=>u.trim())))if(s=="type"&&a==e)return!0;return!1}static resolveAttestationAttrs(e){let r=F1(e,{delimiter:",",trim:!0,columns:!1,relaxColumnCount:!0}),n=[];for(let o of r)for(let s of o)try{let a=c0.parseBool(s);n.push(`disabled=${!a}`)}catch{n.push(s)}return n.join(",")}static hasGitAuthTokenSecret(e,r){for(let n of e){if(r&&n.startsWith(`GIT_AUTH_TOKEN.${r}=`))return!0;if(n.startsWith("GIT_AUTH_TOKEN="))return!0}return!1}static parseSecretKvp(e,r){let n=e.indexOf("="),o=e.substring(0,n),s=e.substring(n+1);if(o.length==0||s.length==0)throw new Error(`${e} is not a valid secret`);return r&&$o(s),[o,s]}};var UQ=w(require("fs"),1),ale=w(require("path"),1);var F4=class t{static{i(this,"Bake")}buildx;metadataFilename;constructor(e){this.buildx=e?.buildx||new N0,this.metadataFilename=`bake-metadata-${c0.generateRandomString()}.json`}getMetadataFilePath(){return ale.default.join(s0.tmpDir(),this.metadataFilename)}resolveMetadata(){let e=this.getMetadataFilePath();if(!UQ.default.existsSync(e))return;let r=UQ.default.readFileSync(e,{encoding:"utf-8"}).trim();if(r!=="null")return JSON.parse(r)}resolveRefs(e){if(!e&&(e=this.resolveMetadata(),!e))return;let r=new Array;for(let n in e)"buildx.build.ref"in e[n]&&r.push(e[n]["buildx.build.ref"]);return r.length>0?r:void 0}resolveWarnings(e){if(!(!e&&(e=this.resolveMetadata(),!e))&&"buildx.build.warnings"in e)return e["buildx.build.warnings"]}async getDefinition(e,r){r=r||{ignoreReturnCode:!0},r.ignoreReturnCode=!0,r.env=Object.assign({},process.env,r.env||{},e.githubToken?{BUILDX_BAKE_GIT_AUTH_TOKEN:e.githubToken}:{});let n=["bake"],o,s=[],a=[...e.files||[],e.source];if(a){for(let u of a.map(p=>p?p.trim():""))if(u.length!=0){if(!c0.isValidRef(u)){s.push(u);continue}if(o)throw new Error("Only one remote bake definition can be defined");o=u}}o&&n.push(o);for(let u of s)n.push("--file",u);if(e.overrides)for(let u of e.overrides)n.push("--set",u);if(e.vars)for(let u of e.vars)n.push("--var",u);if(e.allow)for(let u of e.allow)n.push("--allow",u);e.call&&n.push("--call",e.call),e.load&&n.push("--load"),e.noCache&&n.push("--no-cache"),e.provenance&&n.push("--provenance",e.provenance),e.push&&n.push("--push"),e.sbom&&n.push("--sbom",e.sbom);let c=await this.buildx.getCommand([...n,"--print",...e.targets||[]]);return await Oe.getExecOutput(c.command,c.args,r).then(u=>{if(u.stderr.length>0&&u.exitCode!=0)throw new Error(`cannot parse bake definitions: ${u.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return t.parseDefinition(u.stdout.trim())})}static parseDefinition(e){let r=JSON.parse(e);for(let n in r.target){let o=r.target[n];o.attest&&Array.isArray(o.attest)&&(o.attest=o.attest.map(s=>t.parseAttestEntry(s))),o["cache-from"]&&Array.isArray(o["cache-from"])&&(o["cache-from"]=o["cache-from"].map(s=>t.parseCacheEntry(s))),o["cache-to"]&&Array.isArray(o["cache-to"])&&(o["cache-to"]=o["cache-to"].map(s=>t.parseCacheEntry(s))),o.output&&Array.isArray(o.output)&&(o.output=o.output.map(s=>t.parseExportEntry(s))),o.secret&&Array.isArray(o.secret)&&(o.secret=o.secret.map(s=>t.parseSecretEntry(s))),o.ssh&&Array.isArray(o.ssh)&&(o.ssh=o.ssh.map(s=>t.parseSSHEntry(s)))}return r}static parseAttestEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());switch(s){case"type":r.type=a;break;case"disabled":r.disabled=c0.parseBool(a);break;default:r[s]=a}}return r}static parseCacheEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&!n[0].includes("="))return r.type="registry",r.ref=n[0],r;for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseExportEntry(e){if(typeof e!="string")return e;let r={type:""},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0];if(n.length===1&&n[0]===e&&!e.startsWith("type="))return e!=="-"?(r.type="local",r.dest=e,r):(r.type="tar",r.dest=e,r);for(let o of n){let[s,a]=o.toString().split(/(?<=^[^=]+?)=/).map(c=>c.trim());s==="type"?r.type=a:r[s]=a}return r}static parseSecretEntry(e){if(typeof e!="string")return e;let r={},n=F1(e,{relaxColumnCount:!0,skipEmptyLines:!0})[0],o="";for(let s of n){let[a,c]=s.toString().split(/(?<=^[^=]+?)=/).map(u=>u.trim());switch(a){case"type":o=c;break;case"id":r.id=c;break;case"source":case"src":r.src=c;break;case"env":r.env=c;break}}return o==="env"&&!r.env&&(r.env=r.src,r.src=void 0),r}static parseSSHEntry(e){if(typeof e!="string")return e;let r={},[n,o]=e.split("=",2);return r.id=n, Line truncated
`)[0])}static async isHeadDetached(){return await t.exec(["branch","--show-current"]).then(e=>e.length==0)}static async getDetachedRef(){let e=await t.exec(["show","-s","--pretty=%D"]);N(`detached HEAD ref: ${e}`);let r=e.replace(/^grafted, /,"").trim();if(r==="HEAD")return await t.inferRefFromHead();let n=r.match(/^HEAD, (.*)$/);if(!n||!n[1])throw new Error(`Cannot find detached HEAD ref in "${e}"`);let o=n[1].trim();if(o.startsWith("tag: "))return await t.findDetachedTagRef(o,e);if(o.match(/^pull\/\d+\/(head|merge)$/))return`refs/${o}`;let a=o.match(/^[^/]+\/[^/]+, (.+)$/);if(a)return`refs/heads/${a[1].trim()}`;let c=o.match(/^[^/]+\/(.+)$/);if(c)return`refs/heads/${c[1].trim()}`;throw new Error(`Unsupported detached HEAD ref in "${e}"`)}static async exec(e=[]){return await Oe.getExecOutput("git",e,{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.stderr.length>0&&r.exitCode!=0)throw new Error(r.stderr);return r.stdout.trim()})}static async inferRefFromHead(){let e=await t.findContainingRef("refs/heads/");if(e)return e;let r=await t.findContainingRef("refs/remotes/");if(r){let s=r.match(/^refs\/remotes\/[^/]+\/(.+)$/);return s?`refs/heads/${s[1]}`:r}let n=await t.exec(["tag","--contains","HEAD"]),[o]=n.split(`
`).map(s=>s.trim()).filter(s=>s.length>0);if(o)return`refs/tags/${o}`;throw new Error("Cannot infer ref from detached HEAD")}static async findDetachedTagRef(e,r){let o=(await t.exec(["for-each-ref","--format=%(refname)","--points-at","HEAD","refs/tags/"])).split(`
`).map(s=>s.trim()).filter(s=>s.length>0).sort((s,a)=>a.length-s.length);for(let s of o){let a=`tag: ${s.slice(10)}`;if(e===a||e.startsWith(`${a}, `))return s}if(o.length===1)return o[0];throw new Error(`Cannot find detached tag ref in "${r}"`)}static async findContainingRef(e){let r=await t.exec(["for-each-ref","--format=%(refname)","--contains","HEAD","--sort=-committerdate",e]),[n]=r.split(`
`).map(o=>o.trim()).filter(o=>o.length>0);return n}static async commitDate(e){return new Date(await t.exec(["show","-s",'--format="%ci"',e]))}};var Cbe=require("crypto"),ei=w(require("fs"),1),ti=w(require("path"),1);var Ad=w($Q(),1),ybe=w(l_(),1),ld=w(zbe(),1);var fP=w($Q(),1);var gbe=w(_n(),1);var Obe="application/vnd.oci.empty.v1+json";var Zs=class{static{i(this,"Cosign")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"cosign",this._version="",this._versionOnce=!1}async isAvailable(){let e=await Oe.getExecOutput(this.binPath,[],{ignoreReturnCode:!0,silent:!0}).then(r=>r.stderr.length>0&&r.exitCode!=0?(N(`Cosign.isAvailable cmd err: ${r.stderr.trim()}`),!1):r.exitCode==0).catch(r=>(N(`Cosign.isAvailable error: ${r}`),!1));return N(`Cosign.isAvailable: ${e}`),e}async version(){return this._versionOnce?this._version:(this._versionOnce=!0,this._version=await Oe.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 Oe.exec(this.binPath,["version","--json"],{failOnStdErr:!1})}async versionSatisfies(e,r){let n=r??await this.version();if(!n)return N("Cosign.versionSatisfies false: undefined version"),!1;let o=gbe.satisfies(n,e)||/^[0-9a-f]{7}$/.exec(n)!==null;return N(`Cosign.versionSatisfies ${n} statisfies ${e}: ${o}`),o}static parseCommandOutput(e){let r,n,o,s;for(let a of e.split(/\r?\n/)){let c=a.trim();if(!c.startsWith("{")||!c.endsWith("}"))continue;let u;try{u=JSON.parse(c)}catch{continue}if(u&&Array.isArray(u.errors)&&u.errors.length>0&&(s=u.errors),!r&&u&&Array.isArray(u.manifests)&&u.manifests.length>0){let p=u.manifests[0];p?.artifactType===fP.BUNDLE_V03_MEDIA_TYPE&&typeof p.digest=="string"?r=p.digest:p?.artifactType===Obe&&typeof p.digest=="string"&&(n=p.digest)}if(!o&&u&&u.mediaType===fP.BUNDLE_V03_MEDIA_TYPE&&(o=u),o&&(r||n)){s=void 0;break}}return{bundle:o,signatureManifestDigest:r||n,errors:s}}};var mP=w(require("fs"),1);var pq=class t{static{i(this,"ImageTools")}buildx;constructor(e){this.buildx=e?.buildx||new N0}async getCommand(e){return await this.buildx.getCommand(["imagetools",...e])}async getInspectCommand(e){return await this.getCommand(["inspect",...e])}async getCreateCommand(e){return await this.getCommand(["create",...e])}async inspectImage(e){return await this.inspect(e,"{{json .Image}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"config"),r;throw new Error("Unexpected output format")})}async inspectManifest(e){return await this.inspect(e,"{{json .Manifest}}",r=>{if(typeof r=="object"&&!Array.isArray(r)&&r!==null)return Object.prototype.hasOwnProperty.call(r,"manifests"),r;throw new Error("Unexpected output format")})}async attestationDescriptors(e){let r=await this.inspectManifest(e);if(typeof r!="object"||r===null||!("manifests"in r)||!Array.isArray(r.manifests))throw new Error(`No descriptor found for ${e.name}`);let n=r.manifests.filter(a=>a.annotations?.["vnd.docker.reference.type"]==="attestation-manifest");if(!e.platform)return n;let o=e.platform,s=new Map;for(let a of r.manifests)a.digest&&s.set(a.digest,a);return n.filter(a=>{let c=a.annotations?.["vnd.docker.reference.digest"];if(!c)return!1;let u=s.get(c);return u?u.platform?.os===o.os&&u.platform?.architecture===o.architecture&&(u.platform?.variant??"")===(o.variant??""):!1})}async attestationDigests(e){return(await this.attestationDescriptors(e)).map(r=>r.digest)}async create(e){let r=[],n=s0.tmpName({tmpdir:s0.tmpDir(),template:"imagetools-metadata-XXXXXX"}),o=[],s=[];for(let c of e.sources){if(c.startsWith("cwd://")){let u=c.substring(6);u.length>0&&o.push(u);continue}s.push(c)}if(e.tags)for(let c of e.tags)r.push("--tag",c);if(e.platforms)for(let c of e.platforms)r.push("--platform",c);if(e.annotations)for(let c of e.annotations)r.push("--annotation",c);e.dryRun?r.push("--dry-run"):r.push("--metadata-file",n);for(let c of o)r.push("--file",c);for(let c of s)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 Oe.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(!mP.default.existsSync(n))return;let u=mP.default.readFileSync(n,{encoding:"utf-8"}).trim();if(u===""||u==="null")return;let p=JSON.parse(u),A=p["containerimage.descriptor"];return A?{digest:p["containerimage.digest"]||A.digest,descriptor:A,imageNames:p["image.name"]?p["image.name"].split(",").map(l=>l.trim()):[]}:void 0}})}async inspect(e,r,n){let o=await this.getInspectCommand([e.name,"--format",r]);if(!e.retryOnManifestUnknown)return await this.execInspect(o.command,o.args,n);let s=e.retryLimit??15,a;for(let c=0;c<s;c++)try{return await this.execInspect(o.command,o.args,n Line truncated
${a.message}`),await new Promise(p=>setTimeout(p,Math.pow(2,c)*100))}throw a??new Error(`ImageTools inspect command failed for ${e.name}`)}async execInspect(e,r,n){return await Oe.getExecOutput(e,r,{ignoreReturnCode:!0,silent:!0}).then(o=>{if(o.stderr.length>0&&o.exitCode!=0)throw new Error(o.stderr.trim());return n(JSON.parse(o.stdout))})}static isManifestUnknownError(e){return/(MANIFEST_UNKNOWN|manifest unknown)/i.test(e)||/:\s*not found$/i.test(e)}};var Pp="https://search.sigstore.dev";var Ebe="slsaprovenance1",_c=class t{static{i(this,"Sigstore")}cosign;imageTools;constructor(e){this.cosign=e?.cosign||new Zs,this.imageTools=e?.imageTools||new pq}async signAttestationManifests(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign attestation manifests");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog);for(let o of e.imageNames){let s=await this.imageTools.attestationDigests({name:`${o}@${e.imageDigest}`,retryOnManifestUnknown:e.retryOnManifestUnknown,retryLimit:e.retryLimit});for(let a of s){let c=`${o}@${a}`;await at(`Signing attestation manifest ${c}`,async()=>{let u=["sign","--yes","--oidc-provider","github-actions","--registry-referrers-mode","oci-1-1","--new-bundle-format",...n];S(`[command]${this.cosign.binPath} ${[...u,c].join(" ")}`);let p=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...u,c],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),A=Zs.parseCommandOutput(p.stderr.trim());if(p.exitCode!=0)if(A.errors&&A.errors.length>0){let b=A.errors.map(f=>`- [${f.code}] ${f.message} : ${f.detail}`).join(`
`);throw new Error(`Cosign sign command failed with errors:
${M}`)}else throw new Error(`Cosign sign command failed with: ${A.stderr.trim().split(/\r?\n/).filter(M=>M.length>0).pop()??"unknown error"}`);let h=t.parseBundle((0,s4.bundleFromJSON)(d.bundle));h.tlogID&&W(`Uploaded to Rekor transparency log: ${$f}?logIndex=${h.tlogID}`),W(`Signature manifest pushed: https://oci.dag.dev/?referrers=${p}`),r[p]={...h,imageName:a}})}}}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 Mr(`Verifying signature of ${n}`,async()=>{let a=await this.verifyImageAttestation(n,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!i.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown});W(`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}`,u=await this.verifyImageAttestation(c,r);W(`Signature manifest verified: https://oci.dag.dev/?image=${i}@${u.signatureManifestDigest}`),s[c]=u}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","--new-bundle-format","--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){W(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);let a=await ke.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: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=cl.parseCommandOutput(a.stderr.trim());return{cosignArgs:s,signatureManifestDigest:c.signatureManifestDigest}}let n=r.retryLimit??15,i;W(`[command]${this.cosign.binPath} ${[...s,e].join(" ")}`);for(let a=0;a<n;a++){let c=await ke.getExecOutput(this.cosign.binPath,["--verbose",...s,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=cl.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:s,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(l=>`- [${l.code}] ${l.message} : ${l.detail}`).join(`
`);if(i=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(l=>l.code==="MANIFEST_UNKNOWN"))W(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${n}...
${p}`),await new Promise(l=>setTimeout(l,Math.pow(2,a)*100));else throw i}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw i}async signProvenanceBlobs(e){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=this.signingEndpoints(e.noTransparencyLog);W(`Using Sigstore signing endpoint: ${s.fulcioURL}`);let n=t.getProvenanceBlobs(e);for(let i of Object.keys(n))await Mr(`Signing ${i}`,async()=>{let a=n[i],c=sd.default.join(sd.default.dirname(i),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){Rt(`No subjects found in provenance ${i}, skip signing.`);return}let p=await t.signPayload({data:a,type:HWe},s),l=t.parseBundle(p);W("Provenance blob signed for:");for(let A of u){let[d,h]=Object.entries(A.digest)[0]||[];W(` - ${A.name} (${d}:${h})`)}l.tlogID&&W(`Attestation signature uploaded to Rekor transparency log: ${$f}?logIndex=${l.tlogID}`),W(`Writing Sigstore bundle to: ${c}`),uu.default.writeFileSync(c,JSON.stringify(l.payload,null,2),{encoding:"utf-8"}),r[i]={...l,bundlePath:c,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=sd.default.dirname(n);await Mr(`Verifying signature bundle ${i.bundlePath}`,async()=>{for(let c of i.subjects){let u=sd.default.join(a,c.name);W(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??nKt];(r.noTransparencyLog||!i.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let l=await ke.getExecOutput(this.cosign.binPath,[...p,"--bundle",i.bundlePath,u],{ignoreReturnCode:!0});if(l.stderr.length>0&&l.exitCode!=0)throw new Error(l.stderr);s[u]={bundlePath:i.bundlePath,cosignArgs:p}}})}return s}async verifyArtifact(e,r,s){W("Verifying keyless verification bundle signature");let n=JSON.parse(uu.default.readFileSync(r,"utf-8")),i=(0,s4.bundleFromJSON)(n);W("Fetching Sigstore TUF trusted root metadata");let a=await YWe.getTrustedRoot(),c=(0,Fg.toTrustMaterial)(a);try{W("Verifying artifact signature");let u=(0,Fg.toSignedEntity)(i,uu.default.readFileSync(e)),p=t.parseCertificate(i),l=i.verificationMaterial.tlogEntries,A=l.length>0?l[0].logIndex:void 0;if(s?.subjectAlternativeName&&s?.subjectAlternativeName instanceof RegExp){let M=p.subjectAltName?.replace(/^uri:/i,"");if(M){if(!M.match(s.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${M}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let h=new Fg.Verifier(c).verify(u,{subjectAlternativeName:s?.subjectAlternativeName&&typeof s.subjectAlternativeName=="string"?s.subjectAlternativeName:void 0,extensions:s?.issuer?{issuer:s.issuer}:void 0});return T(`Sigstore.verifyArtifact signer: ${JSON.stringify(h)}`),{payload:n,certificate:p.toString(),tlogID:A}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}signingEndpoints(e){return e=t.noTransparencyLog(e),W(`Upload to transparency log: ${e?"disabled":"enabled"}`),{fulcioURL:XWe,rekorURL:e?void 0:VWe,tsaServerURL:$We}}static noTransparencyLog(e){return e??wt.context.payload.repository?.private}static getProvenanceBlobs(e){let r=sd.default.join(e.localExportDir,"provenance.json");if(uu.default.existsSync(r))return{[r]:uu.default.readFileSync(r)};let s=uu.default.readdirSync(e.localExportDir,{withFileTypes:!0}),n=s.filter(i=>i.isDirectory());if(n.length>0&&n.length===s.length&&n.every(i=>uu.default.existsSync(sd.default.join(e.localExportDir,i.name,"provenance.json")))){let i={};for(let a of n){let c=sd.default.join(e.localExportDir,a.name,"provenance.json");i[c]=uu.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 async signPayload(e,r,s,n){let i=[],a=new pu.FulcioSigner({identityProvider:new pu.CIContextProvider("sigstore"),fulcioBaseURL:r.fulcioURL,timeout:s,retry:n});return r.rekorURL&&i.push(new pu.RekorWitness({rekorBaseURL:r.rekorURL,fetchOnConflict:!0,timeout:s,retry:n})),r.tsaServerURL&&i.push(new pu.TSAWitness({tsaBaseURL:r.tsaServerURL,timeout:s,retry:n})),new pu.DSSEBundleBuilder({signer:a,witnesses:i}).create(e)}static parseBundle(e){let r=t.parseCertificate(e),s=e.verificationMaterial.tlogEntries,n=s.length>0?s[0].logIndex:void 0;return{payload:(0,s4.bundleToJSON)(e),certificate:r.toString(),tlogID:n}} Line truncated
`)){let[p,...l]=u.split(":"),A=p.toLowerCase(),d=l.map(h=>h.trim()).join(":");if(p.length!=0)switch(!0){case A=="name":s=void 0,r.name==null?r.name=d:(i&&n.gcPolicy&&(n.gcPolicy.push(i),i=void 0),n.name&&r.nodes.push(n),n={name:d});break;case A=="driver":s=void 0,r.driver=d;break;case A=="last activity":s=void 0,r.lastActivity=new Date(d);break;case A=="endpoint":s=void 0,n.endpoint=d;break;case A=="driver options":s=void 0,n["driver-opts"]=(d.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(h=>h.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case A=="status":s=void 0,n.status=d;break;case A=="buildkit daemon flags":case A=="flags":s=void 0,n["buildkitd-flags"]=d;break;case A=="buildkit version":case A=="buildkit":s=void 0,n.buildkit=d;break;case A=="platforms":{if(s=void 0,!d)break;let h=[];if(d.includes("*"))for(let M of d.split(", "))M.includes("*")&&h.push(M.replace(/\*/g,""));else h=d.split(", ");n.platforms=h.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=p.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[p.trim()]=!!d;break}case"label":{n.labels=n.labels||{},n.labels[p.trim()]=d;break}case"devices":{switch(A.trim()){case"name":{n.devices&&a&&n.devices.push(a),a={},a.name=d;break}case"on-demand":{a&&d&&(a.onDemand=d=="true");break}case"automatically allowed":{a&&d&&(a.autoAllow=d=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=d)}break}case"gcpolicy":{switch(n.gcPolicy=n.gcPolicy||[],i=i||{},A.trim()){case"all":{i.all=d=="true";break}case"filters":{d&&(i.filter=d.split(","));break}case"keep duration":{i.keepDuration=d;break}case"keep bytes":{i.keepBytes=d;break}case"reserved space":{i.reservedSpace=d;break}case"max used space":{i.maxUsedSpace=d;break}case"min free space":{i.minFreeSpace=d;break}}break}case"file":{c&&n.files&&(n.files[c].length>0&&(n.files[c]+=`
`),n.files[c]+=u.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 JWe=_(oa(),1);var $T=_(require("fs"),1);var jT=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(!$T.default.existsSync(e))throw new Error(`config file ${e} not found`);e=$T.default.readFileSync(e,{encoding:"utf-8"})}let s=Dt.tmpName({tmpdir:Dt.tmpDir()});return $T.default.writeFileSync(s,e),s}};var YT=class{static{o(this,"BuildKit")}buildx;config;constructor(e){this.config=new jT,this.buildx=e?.buildx||new i0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Rt(r)}return e.buildkit}async getVersionWithinImage(e){return T(`BuildKit.getVersionWithinImage nodeName: ${e}`),Wr.getExecOutput(["inspect","--format","{{.Config.Image}}",`${i0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return T(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Wr.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 Tg({buildx:this.buildx}).inspect(e));for(let n of s.nodes){let i=n.buildkit;if(T(`BuildKit.versionSatisfies ${i}: ${r}`),!i)try{i=await this.getVersionWithinImage(n.name||"")}catch{return T(`BuildKit.versionSatisfies ${n.name}: can't get version`),!1}if(T(`BuildKit.versionSatisfies ${n.name}: version ${i}`),s.driver=="docker"&&!i.endsWith("-moby")||!JWe.satisfies(i.replace(/-moby$/,""),r))return!1}return!0}};var JT=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 Wr.isAvailable();return T(`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 ke.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(s=>s.stderr.length>0&&s.exitCode!=0?(T(`Compose.isAvailable cmd err: ${s.stderr.trim()}`),!1):s.exitCode==0).catch(s=>(T(`Compose.isAvailable error: ${s}`),!1));return T(`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 ke.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 ke.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 pl=_(require("fs"),1),Au=_(require("os"),1),xg=_(require("path"),1);var ZT=_(oa(),1),h1e=_(require("util"),1);var KT=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);T(`Install.download version: ${s.version}`);let n=await t.getRelease(s,this.githubToken);T(`Install.download release tag name: ${n.tag_name}`);let i=await this.vspec(n.tag_name);T(`Install.download vspec: ${i}`);let a=ZT.clean(i)||"";if(!ZT.valid(a))throw new Error(`Invalid Compose version "${i}".`);let c=new X1({htcName:s.key!="official"?`compose-dl-bin-${s.key}`:"compose-dl-bin",htcVersion:i,baseCacheDir:xg.default.join(Au.default.homedir(),".bin","docker-compose"),cacheFile:Au.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return W(`Compose binary found in ${u}`),u;let p=h1e.format(s.downloadURL,i,this.filename());W(`Downloading ${p}`);let l=await xi(p,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${l}`);let A=await c.save(l);return W(`Cached to ${A}`),A}async installStandalone(e,r){W("Standalone mode"),r=r||Dt.tmpDir();let s=xg.default.join(r,"compose-bin-standalone");pl.default.existsSync(s)||pl.default.mkdirSync(s,{recursive:!0});let n=Au.default.platform()=="win32"?"compose.exe":"compose",i=xg.default.join(s,n);return pl.default.copyFileSync(e,i),W("Fixing perms"),pl.default.chmodSync(i,"0755"),Qa(s),W("Added Compose to PATH"),W(`Binary path: ${i}`),i}async installPlugin(e,r){W("Docker plugin mode"),r=r||Wr.configDir;let s=xg.default.join(r,"cli-plugins");pl.default.existsSync(s)||pl.default.mkdirSync(s,{recursive:!0});let n=Au.defau Line truncated
${b}`)}else throw new Error(`Cosign sign command failed with: ${p.stderr.trim().split(/\r?\n/).filter(b=>b.length>0).pop()??"unknown error"}`);let l=t.parseBundle((0,Ad.bundleFromJSON)(A.bundle));l.tlogID&&S(`Uploaded to Rekor transparency log: ${Pp}?logIndex=${l.tlogID}`),S(`Signature manifest pushed: https://oci.dag.dev/?referrers=${c}`),r[c]={...l,imageName:o}})}}}catch(n){throw new Error(`Signing BuildKit attestation manifests failed: ${n.message}`)}return r}async verifySignedManifests(e,r){let n={};for(let[o,s]of Object.entries(e))await at(`Verifying signature of ${o}`,async()=>{let a=await this.verifyImageAttestation(o,{certificateIdentityRegexp:r.certificateIdentityRegexp,noTransparencyLog:r.noTransparencyLog||!s.tlogID,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});S(`Signature manifest verified: https://oci.dag.dev/?image=${s.imageName}@${a.signatureManifestDigest}`),n[o]=a});return n}async verifyImageAttestations(e,r){let n={},o=await this.imageTools.attestationDigests({name:e,platform:r.platform,retryOnManifestUnknown:r.retryOnManifestUnknown,retryLimit:r.retryLimit});if(o.length===0)throw new Error(`No attestation manifests found for ${e}`);let s=e.split(":",1)[0];for(let a of o){let c=`${s}@${a}`,u=await this.verifyImageAttestation(c,r);S(`Signature manifest verified: https://oci.dag.dev/?image=${s}@${u.signatureManifestDigest}`),n[c]=u}return n}async verifyImageAttestation(e,r){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed manifests");let n=["verify","--experimental-oci11","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp];if(r.noTransparencyLog&&n.push("--use-signed-timestamps","--insecure-ignore-tlog"),!r.retryOnManifestUnknown){S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);let a=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})});if(a.exitCode!==0)throw new Error(`Cosign verify command failed with: ${a.stderr.trim().split(/\r?\n/).filter(u=>u.length>0).pop()??"unknown error"}`);let c=Zs.parseCommandOutput(a.stderr.trim());return{cosignArgs:n,signatureManifestDigest:c.signatureManifestDigest}}let o=r.retryLimit??15,s;S(`[command]${this.cosign.binPath} ${[...n,e].join(" ")}`);for(let a=0;a<o;a++){let c=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...n,e],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),u=Zs.parseCommandOutput(c.stderr.trim());if(c.exitCode===0)return{cosignArgs:n,signatureManifestDigest:u.signatureManifestDigest};if(u.errors&&u.errors.length>0){let p=u.errors.map(A=>`- [${A.code}] ${A.message} : ${A.detail}`).join(`
`);if(s=new Error(`Cosign verify command failed with errors:
${p}`),u.errors.some(A=>A.code==="MANIFEST_UNKNOWN"))S(`Cosign verify command failed with MANIFEST_UNKNOWN, retrying attempt ${a+1}/${o}...
${p}`),await new Promise(A=>setTimeout(A,Math.pow(2,a)*100));else throw s}else throw new Error(`Cosign verify command failed with: ${c.stderr.trim().split(/\r?\n/).filter(p=>p.length>0).pop()??"unknown error"}`)}throw s}async signProvenanceBlobs(e){if(!await this.cosign.isAvailable())throw new Error("Cosign is required to sign provenance blobs");let r={};try{if(!process.env.ACTIONS_ID_TOKEN_REQUEST_URL)throw new Error('missing "id-token" permission. Please add "permissions: id-token: write" to your workflow.');let n=await this.cosignSigningConfigArgs(e.noTransparencyLog),o=t.getProvenanceBlobs(e);for(let s of Object.keys(o))await at(`Signing ${s}`,async()=>{let a=o[s],c=ti.default.join(ti.default.dirname(s),`${e.name??"provenance"}.sigstore.json`),u=t.getProvenanceSubjects(a);if(u.length===0){Ke(`No subjects found in provenance ${s}, skip signing.`);return}let p=ti.default.join(ti.default.dirname(s),u[0].name),A=["attest-blob","--yes","--oidc-provider","github-actions","--new-bundle-format","--statement",s,"--type",Ebe,"--bundle",c,...n];S(`[command]${this.cosign.binPath} ${[...A,p].join(" ")}`);let l=await Oe.getExecOutput(this.cosign.binPath,["--verbose",...A,p],{ignoreReturnCode:!0,silent:!0,env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),b=Zs.parseCommandOutput(l.stderr.trim());if(l.exitCode!=0)if(b.errors&&b.errors.length>0){let z=b.errors.map(g=>`- [${g.code}] ${g.message} : ${g.detail}`).join(`
`);throw new Error(`Cosign attest-blob command failed with errors:
${z}`)}else throw new Error(`Cosign attest-blob command failed with: ${l.stderr.trim().split(/\r?\n/).filter(z=>z.length>0).pop()??"unknown error"}`);let f=t.parseBundle((0,Ad.bundleFromJSON)(JSON.parse(ei.default.readFileSync(c,{encoding:"utf-8"}))));S("Provenance blob signed for:");for(let z of u){let[g,y]=Object.entries(z.digest)[0]||[];S(` - ${z.name} (${g}:${y})`)}f.tlogID&&S(`Attestation signature uploaded to Rekor transparency log: ${Pp}?logIndex=${f.tlogID}`),S(`Sigstore bundle written to: ${c}`),r[s]={...f,bundlePath:c,subjects:u}})}catch(n){throw new Error(`Signing BuildKit provenance blobs failed: ${n.message}`)}return r}async verifySignedArtifacts(e,r){let n={};if(!await this.cosign.isAvailable())throw new Error("Cosign is required to verify signed artifacts");for(let[o,s]of Object.entries(e)){let a=ti.default.dirname(o);await at(`Verifying signature bundle ${s.bundlePath}`,async()=>{for(let c of s.subjects){let u=ti.default.join(a,c.name);S(`Verifying signed artifact ${u}`);let p=["verify-blob-attestation","--new-bundle-format","--certificate-oidc-issuer","https://token.actions.githubusercontent.com","--certificate-identity-regexp",r.certificateIdentityRegexp,"--type",r.predicateType??Ebe];(r.noTransparencyLog||!s.tlogID)&&p.push("--use-signed-timestamps","--insecure-ignore-tlog");let A=await Oe.getExecOutput(this.cosign.binPath,[...p,"--bundle",s.bundlePath,u],{ignoreReturnCode:!0});if(A.stderr.length>0&&A.exitCode!=0)throw new Error(A.stderr);n[u]={bundlePath:s.bundlePath,cosignArgs:p}}})}return n}async verifyArtifact(e,r,n){S("Verifying keyless verification bundle signature");let o=JSON.parse(ei.default.readFileSync(r,"utf-8")),s=(0,Ad.bundleFromJSON)(o);S("Fetching Sigstore TUF trusted root metadata");let a=await ybe.getTrustedRoot(),c=(0,ld.toTrustMaterial)(a);try{S("Verifying artifact signature");let u=(0,ld.toSignedEntity)(s,ei.default.readFileSync(e)),p=t.parseCertificate(s),A=s.verificationMaterial.tlogEntries,l=A.length>0?A[0].logIndex:void 0;if(n?.subjectAlternativeName&&n?.subjectAlternativeName instanceof RegExp){let z=p.subjectAltName?.replace(/^uri:/i,"");if(z){if(!z.match(n.subjectAlternativeName))throw new Error(`Signing certificate subjectAlternativeName "${z}" does not match expected pattern`)}else throw new Error("Signing certificate does not contain subjectAltName")}let f=new ld.Verifier(c).verify(u,{subjectAlternativeName:n?.subjectAlternativeName&&typeof n.subjectAlternativeName=="string"?n.subjectAlternativeName:void 0,extensions:n?.issuer?{issuer:n.issuer}:void 0});return N(`Sigstore.verifyArtifact signer: ${JSON.stringify(f)}`),{payload:o,certificate:p.toString(),tlogID:l}}catch(u){throw new Error(`Failed to verify artifact signature: ${u}`)}}static noTransparencyLog(e){return e??a0.context.payload.repository?.private??!1}async cosignSigningConfigArgs(e){let r=[],n=t.noTransparencyLog(e);return S(`Upload to transparency log: ${n?"disabled":"enabled"}`),await this.cosign.versionSatisfies(">=3.0.4")?await at("Creating Sigstore protobuf signing config",async()=>{let o=s0.tmpName({template:"signing-config-XXXXXX.json",tmpdir:s0.tmpDir()}),s=["signing-config","create","--with-default-services=true",`--out=${o}`];n&&s.push("--no-default-rekor=true"),await Oe.exec(this.cosign.binPath,s,{env:Object.assign({},process.env,{COSIGN_EXPERIMENTAL:"1"})}),S(JSON.stringify(JSON.parse(ei.default.readFileSync(o,{encoding:"utf-8"})),null,2)),r.push(`--signing-config=${o}`)}):(r.push("--use-signing-config"),n&&r.push("--tlog-upload=false")),r}static getProvenanceBlobs(e){let r=ti.default.join(e.localExportDir,"provenance.json");if(ei.default.existsSync(r))return{[r]:ei.default.readFileSync(r)};let n=ei.default.readdirSync(e.localExportDir,{withFileTypes:!0}),o=n.filter(s=>s.isDirectory());if(o.length>0&&o.length===n.length&&o.every(s=>ei.default.existsSync(ti.default.join(e.localExportDir,s.name,"provenance.json")))){let s={};for(let a of o){let c=ti.default.join(e.localExportDir,a.name,"provenance.json");s[c]=ei.default.readFileSync(c)}return s}throw new Error(`No valid provenance.json found in ${e.localExportDir}`)}static getProvenanceSubjects(e){return JSON.parse(e.toString()).subject.map(n=>({name:n.name,digest:n.digest}))}static parseBundle(e){let r=t.parseCertificate(e),n=e.verificationMaterial.tlogEntries,o=n.length>0?n[0].logIndex:void 0;return{payload:(0,Ad.bundleToJSON)(e),certificate:r.toString(),tlogID:o}}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 Cbe.X509Certificate(r)}};var Aq=class t{static{i(this,"Install")}standalone;githubToken;sigstore;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.sigstore=e?.sigstore||new _c} Line truncated
`)){let[p,...A]=u.split(":"),l=p.toLowerCase(),b=A.map(f=>f.trim()).join(":");if(p.length!=0)switch(!0){case l=="name":n=void 0,r.name==null?r.name=b:(s&&o.gcPolicy&&(o.gcPolicy.push(s),s=void 0),o.name&&r.nodes.push(o),o={name:b});break;case l=="driver":n=void 0,r.driver=b;break;case l=="last activity":n=void 0,r.lastActivity=new Date(b);break;case l=="endpoint":n=void 0,o.endpoint=b;break;case l=="driver options":n=void 0,o["driver-opts"]=(b.match(/([a-zA-Z0-9_.]+)="([^"]*)"/g)||[]).map(f=>f.replace(/^(.*)="(.*)"$/g,"$1=$2"));break;case l=="status":n=void 0,o.status=b;break;case l=="buildkit daemon flags":case l=="flags":n=void 0,o["buildkitd-flags"]=b;break;case l=="buildkit version":case l=="buildkit":n=void 0,o.buildkit=b;break;case l=="platforms":{if(n=void 0,!b)break;let f=[];if(b.includes("*"))for(let z of b.split(", "))z.includes("*")&&f.push(z.replace(/\*/g,""));else f=b.split(", ");o.platforms=f.join(",");break}case l=="features":n="features",o.features={};break;case l=="labels":n="label",o.labels={};break;case l=="devices":n="devices",o.devices=o.devices||[];break;case l.startsWith("gc policy rule#"):n="gcpolicy",o.gcPolicy&&s&&(o.gcPolicy.push(s),s=void 0);break;case l.startsWith("file#"):n="file",c=p.split("#")[1],o.files=o.files||{},o.files[c]="";break;default:switch(n&&n!=="devices"&&o.devices&&a&&(o.devices.push(a),a=void 0),n||""){case"features":{o.features=o.features||{},o.features[p.trim()]=!!b;break}case"label":{o.labels=o.labels||{},o.labels[p.trim()]=b;break}case"devices":{switch(l.trim()){case"name":{o.devices&&a&&o.devices.push(a),a={},a.name=b;break}case"on-demand":{a&&b&&(a.onDemand=b=="true");break}case"automatically allowed":{a&&b&&(a.autoAllow=b=="true");break}case"annotations":{a&&(a.annotations=a.annotations||{});break}default:a&&a.annotations&&(a.annotations[p.trim()]=b)}break}case"gcpolicy":{switch(o.gcPolicy=o.gcPolicy||[],s=s||{},l.trim()){case"all":{s.all=b=="true";break}case"filters":{b&&(s.filter=b.split(","));break}case"keep duration":{s.keepDuration=b;break}case"keep bytes":{s.keepBytes=b;break}case"reserved space":{s.reservedSpace=b;break}case"max used space":{s.maxUsedSpace=b;break}case"min free space":{s.minFreeSpace=b;break}}break}case"file":{c&&o.files&&(o.files[c].length>0&&(o.files[c]+=`
`),o.files[c]+=u.replace(/^\s>\s?/,""));break}}}}return a&&o.devices&&o.devices.push(a),s&&o.gcPolicy&&o.gcPolicy.push(s),o.name&&r.nodes.push(o),r}};var Bbe=w(_n(),1);var lq=w(require("fs"),1);var dq=class{static{i(this,"Config")}resolveFromString(e){return this.resolve(e,!1)}resolveFromFile(e){return this.resolve(e,!0)}resolve(e,r){if(r){if(!lq.default.existsSync(e))throw new Error(`config file ${e} not found`);e=lq.default.readFileSync(e,{encoding:"utf-8"})}let n=s0.tmpName({tmpdir:s0.tmpDir()});return lq.default.writeFileSync(n,e),n}};var bq=class{static{i(this,"BuildKit")}buildx;config;constructor(e){this.config=new dq,this.buildx=e?.buildx||new N0}async getVersion(e){if(!e.buildkit&&e.name)try{return await this.getVersionWithinImage(e.name)}catch(r){Ke(r)}return e.buildkit}async getVersionWithinImage(e){return N(`BuildKit.getVersionWithinImage nodeName: ${e}`),Bt.getExecOutput(["inspect","--format","{{.Config.Image}}",`${N0.containerNamePrefix}${e}`],{ignoreReturnCode:!0,silent:!0}).then(r=>{if(r.exitCode==0&&r.stdout.length>0)return N(`BuildKit.getVersionWithinImage image: ${r.stdout.trim()}`),Bt.getExecOutput(["run","--rm",r.stdout.trim(),"--version"],{ignoreReturnCode:!0,silent:!0}).then(n=>{if(n.exitCode==0&&n.stdout.length>0)return`${r.stdout.trim()} => ${n.stdout.trim()}`;if(n.stderr.length>0)throw new Error(r.stderr.trim());return n.stdout.trim()});if(r.stderr.length>0)throw new Error(r.stderr.trim());return r.stdout.trim()})}async versionSatisfies(e,r,n){n||(n=await new bd({buildx:this.buildx}).inspect(e));for(let o of n.nodes){let s=o.buildkit;if(N(`BuildKit.versionSatisfies ${s}: ${r}`),!s)try{s=await this.getVersionWithinImage(o.name||"")}catch{return N(`BuildKit.versionSatisfies ${o.name}: can't get version`),!1}if(N(`BuildKit.versionSatisfies ${o.name}: version ${s}`),n.driver=="docker"&&!s.endsWith("-moby")||!Bbe.satisfies(s.replace(/-moby$/,""),r))return!1}return!0}};var Mq=class t{static{i(this,"Compose")}_version;_versionOnce;_standalone;constructor(e){this._standalone=e?.standalone,this._version="",this._versionOnce=!1}async isStandalone(){let e=this._standalone??!await Bt.isAvailable();return N(`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 Oe.getExecOutput(e.command,e.args,{ignoreReturnCode:!0,silent:!0}).then(n=>n.stderr.length>0&&n.exitCode!=0?(N(`Compose.isAvailable cmd err: ${n.stderr.trim()}`),!1):n.exitCode==0).catch(n=>(N(`Compose.isAvailable error: ${n}`),!1));return N(`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 Oe.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 Oe.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),ni=w(require("os"),1),Md=w(require("path"),1);var mq=w(_n(),1),zP=w(require("util"),1);var fq=class t{static{i(this,"Install")}standalone;githubToken;constructor(e){this.standalone=e?.standalone,this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN}async download(e,r){let n=await t.getDownloadVersion(e);N(`Install.download version: ${n.version}`);let o=await t.getRelease(n,this.githubToken);N(`Install.download release tag name: ${o.tag_name}`);let s=await this.vspec(o.tag_name);N(`Install.download vspec: ${s}`);let a=mq.clean(s)||"";if(!mq.valid(a))throw new Error(`Invalid Compose version "${s}".`);let c=new rt({htcName:n.key!="official"?`compose-dl-bin-${n.key}`:"compose-dl-bin",htcVersion:s,baseCacheDir:Md.default.join(ni.default.homedir(),".bin","docker-compose"),cacheFile:ni.default.platform()=="win32"?"docker-compose.exe":"docker-compose",ghaNoCache:r}),u=await c.find();if(u)return S(`Compose binary found in ${u}`),u;let p=zP.format(n.downloadURL,s,this.filename());S(`Downloading ${p}`);let A=await On(p,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${A}`);let l=await c.save(A);return S(`Cached to ${l}`),l}async installStandalone(e,r){S("Standalone mode"),r=r||s0.tmpDir();let n=Md.default.join(r,"compose-bin-standalone");ma.default.existsSync(n)||ma.default.mkdirSync(n,{recursive:!0});let o=ni.default.platform()=="win32"?"compose.exe":"compose",s=Md.default.join(n,o);return ma.default.copyFileSync(e,s),S("Fixing perms"),ma.default.chmodSync(s,"0755"),Zo(n),S("Added Compose to PATH"),S(`Binary path: ${s}`),s}async installPlugin(e,r){S("Docker plugin mode"),r=r||Bt.configDir;let n=Md.default.join(r,"cli-plugins");ma.default.existsSync(n)||ma.default.mkdirSync(n,{recursive:!0});let o=ni.default Line truncated
# syntax=docker/dockerfile:1
ARG GO_VERSION="1.24"
@@ -231,13 +207,10 @@ EOT
FROM scratch
COPY --from=builder /out /
`;var ex=class t{static{o(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new i0,this.sigstore=e?.sigstore||new nd}async download(e){let r=await t.getDownloadVersion(e.version);T(`Install.download version: ${r.version}`);let s=await t.getRelease(r,this.githubToken);T(`Install.download release tag name: ${s.tag_name}`);let n=await this.vspec(s.tag_name);T(`Install.download vspec: ${n}`);let i=Wg.clean(n)||"";if(!Wg.valid(i))throw new Error(`Invalid Cosign version "${n}".`);let a=new X1({htcName:"cosign-dl-bin",htcVersion:n,baseCacheDir:_g.default.join(ga.default.homedir(),".bin"),cacheFile:ga.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return W(`Cosign binary found in ${c}`),c;let u=b1e.format(r.downloadURL,n,this.filename());W(`Downloading ${u}`);let p=await xi(u,void 0,this.githubToken);T(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&Wg.satisfies(n,">=3.0.1")&&await this.verifySignature(p,u);let l=await a.save(p,e.skipState);return W(`Cached to ${l}`),l}async build(e,r,s){let n=await this.vspec(e);T(`Install.build vspec: ${n}`);let i=new X1({htcName:"cosign-build-bin",htcVersion:n,baseCacheDir:_g.default.join(ga.default.homedir(),".bin"),cacheFile:ga.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await i.find();if(a)return W(`Cosign binary found in ${a}`),a;let c=_g.default.join(Dt.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await ke.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(KWe)}).then(A=>{if(A.stderr.length>0&&A.exitCode!=0)throw new Error(`build failed with: ${A.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),l=await i.save(p,s);return W(`Cached to ${l}`),l}async install(e,r){r=r||Dt.tmpDir();let s=_g.default.join(r,"cosign-bin");n4.default.existsSync(s)||n4.default.mkdirSync(s,{recursive:!0});let n=ga.default.platform()=="win32"?"cosign.exe":"cosign",i=_g.default.join(s,n);return n4.default.copyFileSync(e,i),W("Fixing perms"),n4.default.chmodSync(i,"0755"),Qa(s),W("Added Cosign to PATH"),W(`Binary path: ${i}`),i}async buildCommand(e,r){let s=await new i0({standalone:!0}).isAvailable(),n=await new i0({standalone:!1}).isAvailable(),i=!1;if(await this.buildx.isStandalone()&&s)T("Install.buildCommand: Buildx standalone found, build with it"),i=!0;else if(!await this.buildx.isStandalone()&&n)T("Install.buildCommand: Buildx plugin found, build with it"),i=!1;else if(s)T("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),i=!0;else if(n)T("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 i0({standalone:i}).getCommand(a)}async verifySignature(e,r){let s=`${r}.sigstore.json`;W(`Downloading keyless verification bundle at ${s}`);let n=await xi(s,void 0,this.githubToken);T(`Install.verifySignature bundlePath: ${n}`);let i=await this.sigstore.verifyArtifact(e,n,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});W(`Cosign binary signature verified! ${i.tlogID?`${$f}?logIndex=${i.tlogID}`:""}`)}filename(){let e;switch(ga.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=ga.default.arch();break}}let r=ga.default.platform()=="win32"?"windows":ga.default.platform(),s=ga.default.platform()=="win32"?".exe":"";return b1e.format("cosign-%s-%s%s",r,e,s)}async vspec(e){if(!St.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return W(`Use ${p} version spec cache key for ${e}`),p}let[r,s]=e.split("#");s.length==0&&(s="master");let n;s.match(/^[0-9a-fA-F]{40}$/)?n=s:n=await mp.remoteSha(r,s,process.env.GIT_AUTH_TOKEN);let[i,a]=r.substring(19).split("/"),c=`${i}/${St.trimSuffix(a,".git")}/${n}`,u=St.hash(c);return W(`Use ${u} version spec cache key for ${c}`),u}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 wt({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 ZWe=_(oa(),1);var tx=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 ke.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,s Line truncated
`,sepLabels:Hn("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:Hn("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:Hn("bake-target")||"docker-metadata-action",githubToken:Hn("github-token")}}o(tLe,"getInputs");async function rLe(t,e){switch(t){case"workflow":return await iKt(e);case"git":return await oKt();default:throw new Error(`Invalid context source: ${t}`)}}o(rLe,"getContext");async function iKt(t){let e=wt.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await aKt(e.sha,t),...e}}o(iKt,"getContextFromWorkflow");async function oKt(){let t=await mp.context();return{commitDate:await mp.commitDate(t.sha),...t}}o(oKt,"getContextFromGit");async function aKt(t,e){let r=wt.context.payload;if(r.commits){let s=r.commits.find(n=>n.id===t)?.timestamp;if(s)return new Date(s)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let s=await e.github.octokit.rest.repos.getCommit({owner:wt.context.repo.owner,repo:wt.context.repo.repo,ref:t});if(s.data.commit.committer?.date)return new Date(s.data.commit.committer.date);throw new Error("Committer date not found")}catch(s){return T(`Failed to get commit date from GitHub API: ${s.message}`),new Date}}o(aKt,"getCommitDateFromWorkflow");var gl=_(k$(),1),Uje=_(require("fs"),1),Gje=_(require("path"),1),oB=_(cLe(),1),yi=_(UVe(),1),oz=_(vje(),1);var ht=class t extends Error{static{o(this,"CsvError")}constructor(e,r,s,...n){Array.isArray(r)&&(r=r.join(" ").trim()),super(r),Error.captureStackTrace!==void 0&&Error.captureStackTrace(this,t),this.code=e;for(let i of n)for(let a in i){let c=i[a];this[a]=Buffer.isBuffer(c)?c.toString(s.encoding):c==null?c:JSON.parse(JSON.stringify(c))}}};var iB=o(function(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)},"is_object");var A_=o(function(t){let e=[];for(let r=0,s=t.length;r<s;r++){let n=t[r];if(n==null||n===!1)e[r]={disabled:!0};else if(typeof n=="string"||typeof n=="number")e[r]={name:`${n}`};else if(iB(n)){if(typeof n.name!="string")throw new ht("CSV_OPTION_COLUMNS_MISSING_NAME",["Option columns missing name:",`property "name" is required at position ${r}`,"when column is an object literal"]);e[r]=n}else throw new ht("CSV_INVALID_COLUMN_DEFINITION",["Invalid column definition:","expect a string or a literal object,",`got ${JSON.stringify(n)} at position ${r}`])}return e},"normalize_columns_array");var ine=class{static{o(this,"ResizeableBuffer")}constructor(e=100){this.size=e,this.length=0,this.buf=Buffer.allocUnsafe(e)}prepend(e){if(Buffer.isBuffer(e)){let r=this.length+e.length;if(r>=this.size&&(this.resize(),r>=this.size))throw Error("INVALID_BUFFER_STATE");let s=this.buf;this.buf=Buffer.allocUnsafe(this.size),e.copy(this.buf,0),s.copy(this.buf,e.length),this.length+=e.length}else{let r=this.length++;r===this.size&&this.resize();let s=this.clone();this.buf[0]=e,s.copy(this.buf,1,0,r)}}append(e){let r=this.length++;r===this.size&&this.resize(),this.buf[r]=e}clone(){return Buffer.from(this.buf.slice(0,this.length))}resize(){let e=this.length;this.size=this.size*2;let r=Buffer.allocUnsafe(this.size);this.buf.copy(r,0,0,e),this.buf=r}toString(e){return e?this.buf.slice(0,this.length).toString(e):Uint8Array.prototype.slice.call(this.buf.slice(0,this.length))}toJSON(){return this.toString("utf8")}reset(){this.length=0}},one=ine;var Tje=o(function(t){let e=[32,9,10,13,12,11,160,5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8232,8233,8239,8287,12288,65279].reduce((s,n)=>{let i=Buffer.from(String.fromCharCode(n),t.encoding);return n!==63&&i.length===1&&i[0]===63||s.push(i),s},[]),r=new Uint8Array(256);for(let s of e)r[s[0]]=1;return{bomSkipped:!1,bufBytesStart:0,castField:t.cast_function,commenting:!1,delimiterBufPrevious:void 0,delimiterDiscovered:!1,error:void 0,enabled:t.from_line===1,escaping:!1,escapeIsQuote:Buffer.isBuffer(t.escape)&&Buffer.isBuffer(t.quote)&&Buffer.compare(t.escape,t.quote)===0,expectedRecordLength:Array.isArray(t.columns)?t.columns.length:void 0,field:new one(20),firstLineToHeaders:t.cast_first_line_to_header,needMoreDataSize:Math.max(t.comment!==null?t.comment.length:0,...t.delimiter?t.delimiter.map(s=>s.length):[],t.delimiter_auto?1:0,t.quote!==null?t.quote.length:0,...e.map(s=>s.length)),previousBuf:void 0,quoting:!1,stop:!1,rawBuffer:new one(100),record:[],recordHasError:!1,record_length:0,recordDelimiterMaxLength:t.record_delimiter.length===0?0:Math.max(...t.record_delimiter.map(s=>s.length)),trimChars:[Buffer.from(" ",t.encoding)[0],Buffer.from(" ",t.encoding)[0]],wasQuoting:!1,wasRowDelimiter:!1,timchars:e,timcharFirstBytes:r}},"init_state");var xje=o(function(t){return t.replace(/([A-Z])/g,function(e,r){return"_"+r.toLowerCase()})},"underscore");var nz=o(function(t){let e={};for(let s in t)e[xje(s)]=t[s];if(e.encoding===void 0||e.encoding===!0)e.encoding="utf8";else if(e.encoding Line truncated
`,a).length:A,p?(c===null?0:c.length)+u.length:0,p?u.length+A:0);return d<h},"__needMoreData"),parse:o(function(s,n,i,a){let{bom:c,comment_no_infix:u,delimiter_auto:p,encoding:l,from_line:A,ltrim:d,max_record_size:h,raw:M,relax_quotes:z,rtrim:C,skip_empty_lines:E,to:B,to_line:I}=this.options,{comment:w,escape:N,quote:x,record_delimiter:P}=this.options,{bomSkipped:j,delimiterDiscovered:Ee,delimiterBufPrevious:we,rawBuffer:Z,escapeIsQuote:Se}=this.state;if(!Ee&&p){let Ce;if(we===void 0?Ce=s:we!==void 0&&s===void 0?Ce=we:Ce=Buffer.concat([we,s]),s=void 0,n||Ce.length>p.size)this.options.delimiter=[Buffer.from(_je(Ce,this.options.delimiter_auto))],this.state.previousBuf=Ce,this.state.delimiterBufPrevious=void 0,this.state.delimiterDiscovered=!0;else{this.state.delimiterBufPrevious=Ce;return}}let{previousBuf:Y}=this.state,J;if(Y===void 0)if(s===void 0){a();return}else J=s;else Y!==void 0&&s===void 0?J=Y:J=Buffer.concat([Y,s]);if(j===!1)if(c===!1)this.state.bomSkipped=!0;else if(J.length<3){if(n===!1){this.state.previousBuf=J;return}}else{for(let Ce in iz)if(iz[Ce].compare(J,0,iz[Ce].length)===0){let dt=iz[Ce].length;this.state.bufBytesStart+=dt,J=J.slice(dt);let Gt=nz({...this.original_options,encoding:Ce});for(let He in Gt)this.options[He]=Gt[He];({comment:w,escape:N,quote:x}=this.options);break}this.state.bomSkipped=!0}let _e=J.length,re;for(re=0;re<_e&&!this.__needMoreData(re,_e,n);re++){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&&P.length===0&&this.__autoDiscoverRecordDelimiter(J,re)&&(P=this.options.record_delimiter);let Ce=J[re];if(M===!0&&Z.append(Ce),(Ce===nd0||Ce===id0)&&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(J,re,Ce)&&re+N.length<_e)if(Se){if(this.__isQuote(J,re+N.length)){this.state.escaping=!0,re+=N.length-1;continue}}else{this.state.escaping=!0,re+=N.length-1;continue}if(this.state.commenting===!1&&this.__isQuote(J,re))if(this.state.quoting===!0){let He=J[re+x.length],u0=C&&this.__isCharTrimable(J,re+x.length),Tt=w!==null&&this.__compareBytes(w,J,re+x.length,He),ce=this.__isDelimiter(J,re+x.length,He),Ci=P.length===0?this.__autoDiscoverRecordDelimiter(J,re+x.length):this.__isRecordDelimiter(He,J,re+x.length);if(N!==null&&this.__isEscape(J,re,Ce)&&this.__isQuote(J,re+N.length))re+=N.length-1;else if(!He||ce||Ci||Tt||u0){this.state.quoting=!1,this.state.wasQuoting=!0,re+=x.length-1;continue}else if(z===!1){let Gs=this.__error(new ht("CSV_INVALID_CLOSING_QUOTE",["Invalid Closing Quote:",`got "${String.fromCharCode(He)}"`,`at line ${this.info.lines}`,"instead of delimiter, record delimiter, trimable character","(if activated) or comment"],this.options,this.__infoField()));if(Gs!==void 0)return Gs}else this.state.quoting=!1,this.state.wasQuoting=!0,this.state.field.prepend(x),re+=x.length-1}else if(this.state.field.length!==0){if(z===!1){let He=this.__infoField(),u0=Object.keys(iz).map(ce=>iz[ce].equals(this.state.field.toString())?ce:!1).filter(Boolean)[0],Tt=this.__error(new ht("INVALID_OPENING_QUOTE",["Invalid Opening Quote:",`a quote is found on field ${JSON.stringify(He.column)} at line ${He.lines}, value is ${JSON.stringify(this.state.field.toString(l))}`,u0?`(${u0} bom)`:void 0],this.options,He,{field:this.state.field}));if(Tt!==void 0)return Tt}}else{this.state.quoting=!0,re+=x.length-1;continue}if(this.state.quoting===!1){let He=this.__isRecordDelimiter(Ce,J,re);if(He!==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(),re+=He-1;continue}if(E===!0&&this.state.wasQuoting===!1&&this.state.record.length===0&&this.state.field.length===0){this.info.empty_lines++,re+=He-1;continue}this.info.bytes=this.state.bufBytesStart+re;let ce=this.__onField();if(ce!==void 0)return ce;this.info.bytes=this.state.bufBytesStart+re+He;let Ci=this.__onRecord(i);if(Ci!==void 0)return Ci;if(B!==-1&&this.info.records>=B){this.state.stop=!0,a();return}}this.state.commenting=!1,re+=He-1;continue}if(this.state.commenting)continue;if(w!==null&&(u===!1||this.state.record.length===0&&this.state.field.length===0)&&this.__compareBytes(w,J,re,Ce)!==0){this.state.commenting=!0;continue}let u0=this.__isDelimiter(J,re,Ce);if(u0!==0){this.info.bytes=this.state.bufBytesStart+re;let Tt=this.__onField();if(Tt!==void 0)return Tt;re+=u0-1;continue}}}if(this.state.commenting===!1&&h!==0&&this.state.record_length+this.state.field.length>h)return this.__error(new ht("CSV_MAX_RECORD_SIZE",["Max Record Size:","record exceed the maximum number of tolerated bytes",`of ${h}`,`at line ${this.info.lines}`],this.options,this.__infoField()));let dt=d===!1||th Line truncated
`,i),Buffer.from(`
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let u=a[c].length;for(let p=0;p<u;p++)if(a[c][p]!==s[n+p])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(u){return u}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 uh=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],s=d_(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");function Pje(t){let e=[];if(t.length==1){let r=!1,s=uh(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let n of s){let i=n.toString().split("=").map(a=>a.trim());if(i.length==1)e.push({name:i[0],enable:!0});else{r=!0;break}}if(!r)return Lje(e)}e=[];for(let r of t){let s={name:"",enable:!0},n=uh(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let i of n){let a=i.toString().split("=").map(c=>c.trim());if(a.length==1)s.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{s.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);s.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(s.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(s)}return Lje(e)}o(Pje,"Transform");function Lje(t){Yd("Processing images input");for(let e of t)W(`name=${e.name},enable=${e.enable}`);return Jd(),t}o(Lje,"output");var cne=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(cne||{}),f_=(s=>(s.Branch="branch",s.Tag="tag",s.PR="pr",s))(f_||{}),h_=(r=>(r.Short="short",r.Long="long",r))(h_||{}),ane=class{static{o(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},ad0={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function Qje(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let s of t)e.push(cd0(s));let r=e.sort((s,n)=>Number(s.attrs.priority)<Number(n.attrs.priority)?1:Number(s.attrs.priority)>Number(n.attrs.priority)?-1:0);Yd("Processing tags input");for(let s of r)W(s.toString());return Jd(),r}o(Qje,"Transform");function cd0(t){let e=uh(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new ane;for(let s of e){let n=s.toString().split(/(?<=^[^=]+?)=/).map(i=>i.trim());if(n.length==1)r.attrs.value=n[0];else{let i=n[0].toLowerCase(),a=n[1];switch(i){case"type":{if(!Object.values(cne).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[i]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);if(Object.prototype.hasOwnProperty.call(r.attrs,"group")||(r.attrs.group="0"),isNaN(+r.attrs.group))throw new Error(`Invalid match group for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value="");break}case"edge":{Object.prototype.hasOwnProperty.call(r.attrs,"branch")||(r.attrs.branch="");break}case"ref":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"event"))throw new Error(`Missing event attribute for ${t}`);if(!Object.keys(f_).map(s=>f_[s]).includes(r.attrs.event))throw new Error(`Invalid event for ${t}`);r.attrs.event=="pr"&&!Object.prototype.hasOwnProperty.call(r.attrs,"prefix")&&(r.attrs.prefix="pr-");break} Line truncated
`;var hq=class t{static{i(this,"Install")}githubToken;buildx;sigstore;constructor(e){this.githubToken=e?.githubToken||process.env.GITHUB_TOKEN,this.buildx=e?.buildx||new N0,this.sigstore=e?.sigstore||new _c}async download(e){let r=await t.getDownloadVersion(e.version);N(`Install.download version: ${r.version}`);let n=await t.getRelease(r,this.githubToken);N(`Install.download release tag name: ${n.tag_name}`);let o=await this.vspec(n.tag_name);N(`Install.download vspec: ${o}`);let s=md.clean(o)||"";if(!md.valid(s))throw new Error(`Invalid Cosign version "${o}".`);let a=new rt({htcName:"cosign-dl-bin",htcVersion:o,baseCacheDir:fd.default.join(No.default.homedir(),".bin"),cacheFile:No.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:e.ghaNoCache}),c=await a.find();if(c)return S(`Cosign binary found in ${c}`),c;let u=OP.format(r.downloadURL,o,this.filename());S(`Downloading ${u}`);let p=await On(u,void 0,this.githubToken);N(`Install.download htcDownloadPath: ${p}`),e.verifySignature&&md.satisfies(o,">=3.0.1")&&await this.verifySignature(p,u);let A=await a.save(p,e.skipState);return S(`Cached to ${A}`),A}async build(e,r,n){let o=await this.vspec(e);N(`Install.build vspec: ${o}`);let s=new rt({htcName:"cosign-build-bin",htcVersion:o,baseCacheDir:fd.default.join(No.default.homedir(),".bin"),cacheFile:No.default.platform()=="win32"?"cosign.exe":"cosign",ghaNoCache:r}),a=await s.find();if(a)return S(`Cosign binary found in ${a}`),a;let c=fd.default.join(s0.tmpDir(),"cosign-build-cache"),u=await this.buildCommand(e,c),p=await Oe.getExecOutput(u.command,u.args,{ignoreReturnCode:!0,input:Buffer.from(qbe)}).then(l=>{if(l.stderr.length>0&&l.exitCode!=0)throw new Error(`build failed with: ${l.stderr.match(/(.*)\s*$/)?.[0]?.trim()??"unknown error"}`);return`${c}/cosign`}),A=await s.save(p,n);return S(`Cached to ${A}`),A}async install(e,r){r=r||s0.tmpDir();let n=fd.default.join(r,"cosign-bin");Hm.default.existsSync(n)||Hm.default.mkdirSync(n,{recursive:!0});let o=No.default.platform()=="win32"?"cosign.exe":"cosign",s=fd.default.join(n,o);return Hm.default.copyFileSync(e,s),S("Fixing perms"),Hm.default.chmodSync(s,"0755"),Zo(n),S("Added Cosign to PATH"),S(`Binary path: ${s}`),s}async buildCommand(e,r){let n=await new N0({standalone:!0}).isAvailable(),o=await new N0({standalone:!1}).isAvailable(),s=!1;if(await this.buildx.isStandalone()&&n)N("Install.buildCommand: Buildx standalone found, build with it"),s=!0;else if(!await this.buildx.isStandalone()&&o)N("Install.buildCommand: Buildx plugin found, build with it"),s=!1;else if(n)N("Install.buildCommand: Buildx plugin not found, but standalone found so trying to build with it"),s=!0;else if(o)N("Install.buildCommand: Buildx standalone not found, but plugin found so trying to build with it"),s=!1;else throw new Error(`Neither buildx standalone or plugin have been found to build from ref ${e}`);let a=["build","--platform","local","--build-arg","BUILDKIT_CONTEXT_KEEP_GIT_DIR=1","--output",`type=local,dest=${r}`];return process.env.GIT_AUTH_TOKEN&&a.push("--secret","id=GIT_AUTH_TOKEN"),a.push("-f-",e),await new N0({standalone:s}).getCommand(a)}async verifySignature(e,r){let n=`${r}.sigstore.json`;S(`Downloading keyless verification bundle at ${n}`);let o=await On(n,void 0,this.githubToken);N(`Install.verifySignature bundlePath: ${o}`);let s=await this.sigstore.verifyArtifact(e,o,{subjectAlternativeName:"keyless@projectsigstore.iam.gserviceaccount.com",issuer:"https://accounts.google.com"});S(`Cosign binary signature verified! ${s.tlogID?`${Pp}?logIndex=${s.tlogID}`:""}`)}filename(){let e;switch(No.default.arch()){case"x64":{e="amd64";break}case"ppc64":{e="ppc64le";break}default:{e=No.default.arch();break}}let r=No.default.platform()=="win32"?"windows":No.default.platform(),n=No.default.platform()=="win32"?".exe":"";return OP.format("cosign-%s-%s%s",r,e,n)}async vspec(e){if(!c0.isValidRef(e)){let p=e.replace(/^v+|v+$/g,"");return S(`Use ${p} version spec cache key for ${e}`),p}let[r,n]=e.split("#");n.length==0&&(n="master");let o;n.match(/^[0-9a-fA-F]{40}$/)?o=n:o=await ua.remoteSha(r,n,process.env.GIT_AUTH_TOKEN);let[s,a]=r.substring(19).split("/"),c=`${s}/${c0.trimSuffix(a,".git")}/${o}`,u=c0.hash(c);return S(`Use ${u} version spec cache key for ${c}`),u}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 o=await new a0({token:r}).releases("Cosign",e.contentOpts);if(!o[e.version])throw new Error(`Cannot find Cosign release ${e.version} in releases JSON`);return o[e.version]}};var Dbe=w(_n(),1);var zq=class{static{i(this,"Regctl")}binPath;_version;_versionOnce;constructor(e){this.binPath=e?.binPath||"regctl",this._version="",this._versionOnce=!1}async blobGet(e){return await Oe.getExecOutput(this.binPath,["blob","get",e.repository,e.digest],{ignoreReturnCode:!0,sil Line truncated
`,sepLabels:_r("sep-labels",{trimWhitespace:!1})||`
`,sepAnnotations:_r("sep-annotations",{trimWhitespace:!1})||`
`,bakeTarget:_r("bake-target")||"docker-metadata-action",githubToken:_r("github-token")}}i(Rbe,"getInputs");async function Nbe(t,e){switch(t){case"workflow":return await x20(e);case"git":return await T20();default:throw new Error(`Invalid context source: ${t}`)}}i(Nbe,"getContext");async function x20(t){let e=a0.context;return/pull_request_target/.test(e.eventName)&&(e.ref=`refs/pull/${e.payload.number}/merge`),/true/i.test(process.env.DOCKER_METADATA_PR_HEAD_SHA||"")&&(/pull_request/.test(e.eventName)||/pull_request_target/.test(e.eventName))&&e.payload?.pull_request?.head?.sha!=null&&(e.sha=e.payload.pull_request.head.sha),{commitDate:await v20(e.sha,t),...e}}i(x20,"getContextFromWorkflow");async function T20(){let t=await ua.context();return{commitDate:await ua.commitDate(t.sha),...t}}i(T20,"getContextFromGit");async function v20(t,e){let r=a0.context.payload;if(r.commits){let n=r.commits.find(o=>o.id===t)?.timestamp;if(n)return new Date(n)}if(r.head_commit&&r.head_commit.id===t)return new Date(r.head_commit.timestamp);try{let n=await e.github.octokit.rest.repos.getCommit({owner:a0.context.repo.owner,repo:a0.context.repo.repo,ref:t});if(n.data.commit.committer?.date)return new Date(n.data.commit.committer.date);throw new Error("Committer date not found")}catch(n){return N(`Failed to get commit date from GitHub API: ${n.message}`),new Date}}i(v20,"getCommitDateFromWorkflow");var qa=w(vQ(),1),E4e=w(require("fs"),1),C4e=w(require("path"),1),Ph=w(Tbe(),1),an=w(m4e(),1),xd=w(_n(),1);function z4e(t){let e=[];if(t.length==1){let r=!1,n=F1(t[0],{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let o of n){let s=o.toString().split("=").map(a=>a.trim());if(s.length==1)e.push({name:s[0],enable:!0});else{r=!0;break}}if(!r)return h4e(e)}e=[];for(let r of t){let n={name:"",enable:!0},o=F1(r,{relaxColumnCount:!0,skipEmptyLines:!0})[0];for(let s of o){let a=s.toString().split("=").map(c=>c.trim());if(a.length==1)n.name=a[0];else{let c=a[0].toLowerCase(),u=a[1];switch(c){case"name":{n.name=u;break}case"enable":{if(!["true","false"].includes(u))throw new Error(`Invalid enable attribute value: ${r}`);n.enable=/true/i.test(u);break}default:throw new Error(`Unknown image attribute: ${r}`)}}}if(n.name.length==0)throw new Error(`Image name attribute empty: ${r}`);e.push(n)}return h4e(e)}i(z4e,"Transform");function h4e(t){Du("Processing images input");for(let e of t)S(`name=${e.name},enable=${e.enable}`);return Iu(),t}i(h4e,"output");var G7=(u=>(u.Schedule="schedule",u.Semver="semver",u.Pep440="pep440",u.Match="match",u.Edge="edge",u.Ref="ref",u.Raw="raw",u.Sha="sha",u))(G7||{}),hD=(n=>(n.Branch="branch",n.Tag="tag",n.PR="pr",n))(hD||{}),zD=(r=>(r.Short="short",r.Long="long",r))(zD||{}),U7=class{static{i(this,"Tag")}type;attrs;constructor(){this.attrs={}}toString(){let e=[`type=${this.type}`];for(let r in this.attrs)e.push(`${r}=${this.attrs[r]}`);return e.join(",")}},D40={schedule:"1000",semver:"900",pep440:"900",match:"800",edge:"700",ref:"600",raw:"200",sha:"100"};function O4e(t){let e=[];t.length==0&&(t=["type=schedule","type=ref,event=branch","type=ref,event=tag","type=ref,event=pr"]);for(let n of t)e.push(I40(n));let r=e.sort((n,o)=>Number(n.attrs.priority)<Number(o.attrs.priority)?1:Number(n.attrs.priority)>Number(o.attrs.priority)?-1:0);Du("Processing tags input");for(let n of r)S(n.toString());return Iu(),r}i(O4e,"Transform");function I40(t){let e=F1(t,{relaxColumnCount:!0,skipEmptyLines:!0})[0],r=new U7;for(let n of e){let o=n.toString().split(/(?<=^[^=]+?)=/).map(s=>s.trim());if(o.length==1)r.attrs.value=o[0];else{let s=o[0].toLowerCase(),a=o[1];switch(s){case"type":{if(!Object.values(G7).includes(a))throw new Error(`Unknown tag type attribute: ${a}`);r.type=a;break}default:{r.attrs[s]=a;break}}}}switch(r.type==null&&(r.type="raw"),r.type){case"schedule":{Object.prototype.hasOwnProperty.call(r.attrs,"pattern")||(r.attrs.pattern="nightly");break}case"semver":case"pep440":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value=""),Object.prototype.hasOwnProperty.call(r.attrs,"match")||(r.attrs.match="");break}case"match":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"pattern"))throw new Error(`Missing pattern attribute for ${t}`);if(Object.prototype.hasOwnProperty.call(r.attrs,"group")||(r.attrs.group="0"),isNaN(+r.attrs.group))throw new Error(`Invalid match group for ${t}`);Object.prototype.hasOwnProperty.call(r.attrs,"value")||(r.attrs.value="");break}case"edge":{Object.prototype.hasOwnProperty.call(r.attrs,"branch")||(r.attrs.branch="");break}case"ref":{if(!Object.prototype.hasOwnProperty.call(r.attrs,"event"))throw new Error(`Missing event attribute for ${t}`);if(!Object.keys(hD).map(n=>hD[n]).includes(r.attrs.event))throw new Error(`Invalid event for ${t}`);r.attrs.event=="pr"&&!Object.prototype.hasOwnProperty.call(r.attrs,"prefix")&&(r.attrs.prefix="pr-");break}case"raw":{if(!Object. Line truncated
/*! Bundled license information:
undici/lib/web/fetch/body.js:
@@ -255,44 +228,6 @@ tmp/lib/tmp.js:
* MIT Licensed
*)
negotiator/index.js:
(*!
* negotiator
* Copyright(c) 2012 Federico Romero
* Copyright(c) 2012-2014 Isaac Z. Schlueter
* Copyright(c) 2015 Douglas Christopher Wilson
* MIT Licensed
*)
imurmurhash/imurmurhash.js:
(**
* @preserve
* JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
*
* @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
* @see http://github.com/homebrewing/brauhaus-diff
* @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
* @see http://github.com/garycourt/murmurhash-js
* @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
* @see http://sites.google.com/site/murmurhash/
*)
make-fetch-happen/lib/fetch.js:
make-fetch-happen/lib/fetch.js:
(**
* @license
* Copyright (c) 2010-2012 Mikeal Rogers
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
* http://www.apache.org/licenses/LICENSE-2.0
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an "AS
* IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language
* governing permissions and limitations under the License.
*)
moment/moment.js:
(*! moment.js *)
(*! version : 2.30.1 *)
Generated Vendored
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "srBAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,IAAQ,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,IACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeG,IACrBH,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,IAAUH,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,IAAUH,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,IAAmBJ,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,IAAA,sBAiBT,SAASM,IAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,IAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
"sources": ["../node_modules/tunnel/lib/tunnel.js", "../node_modules/tunnel/index.js", "../node_modules/undici/lib/core/symbols.js", "../node_modules/undici/lib/core/errors.js", "../node_modules/undici/lib/core/constants.js", "../node_modules/undici/lib/core/tree.js", "../node_modules/undici/lib/core/util.js", "../node_modules/undici/lib/core/diagnostics.js", "../node_modules/undici/lib/core/request.js", "../node_modules/undici/lib/dispatcher/dispatcher.js", "../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../node_modules/undici/lib/util/timers.js", "../node_modules/undici/lib/core/connect.js", "../node_modules/undici/lib/llhttp/utils.js", "../node_modules/undici/lib/llhttp/constants.js", "../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../node_modules/undici/lib/web/fetch/constants.js", "../node_modules/undici/lib/web/fetch/global.js", "../node_modules/undici/lib/web/fetch/data-url.js", "../node_modules/undici/lib/web/fetch/webidl.js", "../node_modules/undici/lib/web/fetch/util.js", "../node_modules/undici/lib/web/fetch/symbols.js", "../node_modules/undici/lib/web/fetch/file.js", "../node_modules/undici/lib/web/fetch/formdata.js", "../node_modules/undici/lib/web/fetch/formdata-parser.js", "../node_modules/undici/lib/web/fetch/body.js", "../node_modules/undici/lib/dispatcher/client-h1.js", "../node_modules/undici/lib/dispatcher/client-h2.js", "../node_modules/undici/lib/handler/redirect-handler.js", "../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../node_modules/undici/lib/dispatcher/client.js", "../node_modules/undici/lib/dispatcher/fixed-queue.js", "../node_modules/undici/lib/dispatcher/pool-stats.js", "../node_modules/undici/lib/dispatcher/pool-base.js", "../node_modules/undici/lib/dispatcher/pool.js", "../node_modules/undici/lib/dispatcher/balanced-pool.js", "../node_modules/undici/lib/dispatcher/agent.js", "../node_modules/undici/lib/dispatcher/proxy-agent.js", "../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../node_modules/undici/lib/handler/retry-handler.js", "../node_modules/undici/lib/dispatcher/retry-agent.js", "../node_modules/undici/lib/api/readable.js", "../node_modules/undici/lib/api/util.js", "../node_modules/undici/lib/api/api-request.js", "../node_modules/undici/lib/api/abort-signal.js", "../node_modules/undici/lib/api/api-stream.js", "../node_modules/undici/lib/api/api-pipeline.js", "../node_modules/undici/lib/api/api-upgrade.js", "../node_modules/undici/lib/api/api-connect.js", "../node_modules/undici/lib/api/index.js", "../node_modules/undici/lib/mock/mock-errors.js", "../node_modules/undici/lib/mock/mock-symbols.js", "../node_modules/undici/lib/mock/mock-utils.js", "../node_modules/undici/lib/mock/mock-interceptor.js", "../node_modules/undici/lib/mock/mock-client.js", "../node_modules/undici/lib/mock/mock-pool.js", "../node_modules/undici/lib/mock/pluralizer.js", "../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../node_modules/undici/lib/mock/mock-agent.js", "../node_modules/undici/lib/global.js", "../node_modules/undici/lib/handler/decorator-handler.js", "../node_modules/undici/lib/interceptor/redirect.js", "../node_modules/undici/lib/interceptor/retry.js", "../node_modules/undici/lib/interceptor/dump.js", "../node_modules/undici/lib/interceptor/dns.js", "../node_modules/undici/lib/web/fetch/headers.js", "../node_modules/undici/lib/web/fetch/response.js", "../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../node_modules/undici/lib/web/fetch/request.js", "../node_modules/undici/lib/web/fetch/index.js", "../node_modules/undici/lib/web/fileapi/symbols.js", "../node_modules/undici/lib/web/fileapi/progressevent.js", "../node_modules/undici/lib/web/fileapi/encoding.js", "../node_modules/undici/lib/web/fileapi/util.js", "../node_modules/undici/lib/web/fileapi/filereader.js", "../node_modules/undici/lib/web/cache/symbols.js", "../node_modules/undici/lib/web/cache/util.js", "../node_modules/undici/lib/web/cache/cache.js", "../node_modules/undici/lib/web/cache/cachestorage.js", "../node_modules/undici/lib/web/cookies/constants.js", "../node_modules/undici/lib/web/cookies/util.js", "../node_modules/undici/lib/web/cookies/parse.js", "../node_modules/undici/lib/web/cookies/index.js", "../node_modules/undici/lib/web/websocket/events.js", "../node_modules/undici/lib/web/websocket/constants.js", "../node_modules/undici/lib/web/websocket/symbols.js", "../node_modules/undici/lib/web/websocket/util.js", "../node_modules/undici/lib/web/websocket/frame.js", "../node_modules/undici/lib/web/websocket/connection.js", "../node_modules/undici/lib/web/websocket/permessage-deflate.js", "../node_modules/undici/lib/web/websocket/receiver.js", "../node_modules/undici/lib/web/websocket/sender.js", "../node_modules/undici/lib/web/websocket/websocket.js", "../node_modules/undici/lib/web/eventsource/util.js", "../node_modules/undici/lib/web/eventsource/eventsource-stream.js",Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": "ipBAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,QAAQ,KAAK,EACnBC,IAAM,QAAQ,KAAK,EACnBC,GAAO,QAAQ,MAAM,EACrBC,GAAQ,QAAQ,OAAO,EACvBC,IAAS,QAAQ,QAAQ,EACzBC,IAAS,QAAQ,QAAQ,EACzBC,IAAO,QAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAJSE,EAAAP,IAAA,gBAMT,SAASC,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAN,IAAA,iBAQT,SAASC,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAJSE,EAAAL,IAAA,iBAMT,SAASC,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeG,GACrBH,EAAM,YAAc,IACbA,CACT,CANSE,EAAAJ,IAAA,kBAST,SAASG,GAAeF,EAAS,CAC/B,IAAIK,EAAO,KACXA,EAAK,QAAUL,GAAW,CAAC,EAC3BK,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcd,GAAK,MAAM,kBACxDc,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQF,EAAA,SAAgBG,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIT,EAAUU,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASb,EAAQ,MAAQa,EAAQ,OAASb,EAAQ,KAAM,CAGlEK,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,EAdgB,SAcf,CACH,CAvBSH,EAAAD,GAAA,kBAwBTP,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAaC,EAAA,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPL,EAAUe,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKL,CAAO,EAC1B,MACF,CAGAK,EAAK,aAAaL,EAAS,SAASM,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQN,CAAO,CACnC,CAFSG,EAAAa,EAAA,UAIT,SAASC,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CALSd,EAAAc,EAAA,kBAMX,CAAC,CACH,EA5BsC,cA8BtCf,GAAe,UAAU,aAAeC,EAAA,SAAsBH,EAASmB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAML,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVqB,EAAe,aAAerB,EAAQ,cAEpCqB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAHSzB,EAAAqB,EAAA,cAKT,SAASC,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CALS1B,EAAAsB,EAAA,aAOT,SAASC,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CA3BSH,EAAAuB,EAAA,aA6BT,SAASC,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb9B,EAAQ,QAAQ,KAAK,QAAS8B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CAVSjB,EAAAwB,EAAA,UAWX,EAnFwC,gBAqFxCzB,GAAe,UAAU,aAAeC,EAAA,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAfwC,gBAiBxC,SAASF,GAAmBJ,EAASmB,EAAI,CACvC,IAAId,EAAO,KACXH,GAAe,UAAU,aAAa,KAAKG,EAAML,EAAS,SAASM,EAAQ,CACzE,IAAI2B,EAAajC,EAAQ,QAAQ,UAAU,MAAM,EAC7CkC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIjC,EAAQ,IACpE,CAAC,EAGGmC,EAAe7C,IAAI,QAAQ,EAAG4C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAdShC,EAAAC,GAAA,sBAiBT,SAASM,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CATSJ,EAAAO,GAAA,aAWT,SAASK,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAdSjC,EAAAY,GAAA,gBAiBT,IAAIO,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQnB,EAAA,UAAW,CACjB,IAAIuC,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "__name", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "__name", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "__name", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "__name", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "__name", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "resetLine truncated
}
Generated Vendored
+27 -683
View File
@@ -3,11 +3,10 @@ https://www.npmjs.com/package/generate-license-file
The following npm packages may be included in this product:
- @sigstore/bundle@4.0.0
- @sigstore/core@3.2.1
- @sigstore/bundle@5.0.0
- @sigstore/core@4.0.1
- @sigstore/protobuf-specs@0.5.0
- @sigstore/sign@4.1.1
- @sigstore/tuf@4.0.2
- @sigstore/tuf@5.0.0
These packages each contain the following license:
@@ -217,7 +216,7 @@ Apache License
The following npm package may be included in this product:
- @docker/actions-toolkit@0.91.0
- @docker/actions-toolkit@0.92.0
This package contains the following license:
@@ -1759,12 +1758,11 @@ SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- @isaacs/balanced-match@4.0.1
- balanced-match@4.0.4
These packages each contain the following license:
This package contains the following license:
(MIT)
@@ -1794,7 +1792,7 @@ SOFTWARE.
The following npm package may be included in this product:
- js-yaml@4.3.0
- js-yaml@5.2.0
This package contains the following license:
@@ -1822,46 +1820,11 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- negotiator@1.0.0
This package contains the following license:
(The MIT License)
Copyright (c) 2012-2014 Federico Romero
Copyright (c) 2012-2014 Isaac Z. Schlueter
Copyright (c) 2014-2015 Douglas Christopher Wilson
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
- agent-base@7.1.1
- agent-base@7.1.4
- https-proxy-agent@7.0.4
- https-proxy-agent@7.0.6
- socks-proxy-agent@8.0.3
These packages each contain the following license:
@@ -2060,12 +2023,11 @@ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH RE
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- path-scurry@1.11.1
- path-scurry@2.0.0
These packages each contain the following license:
This package contains the following license:
# Blue Oak Model License
@@ -2128,9 +2090,7 @@ software or this license, under any kind of legal claim.***
The following npm packages may be included in this product:
- jackspeak@3.4.3
- jackspeak@4.1.1
- minimatch@10.1.1
- minimatch@10.2.4
- minimatch@10.2.5
These packages each contain the following license:
@@ -2238,35 +2198,6 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm package may be included in this product:
- @npmcli/fs@4.0.0
This package contains the following license:
<!-- This file is automatically added by @npmcli/template-oss. Do not edit. -->
ISC License
Copyright npm, Inc.
Permission to use, copy, modify, and/or distribute this
software for any purpose with or without fee is hereby
granted, provided that the above copyright notice and this
permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND NPM DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO
EVENT SHALL NPM BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- argparse@2.0.1
@@ -2700,7 +2631,7 @@ END OF TERMS AND CONDITIONS
The following npm package may be included in this product:
- @sigstore/verify@3.1.1
- @sigstore/verify@4.1.0
This package contains the following license:
@@ -2708,39 +2639,6 @@ Apache-2.0
-----------
The following npm package may be included in this product:
- sprintf-js@1.1.3
This package contains the following license:
Copyright (c) 2007-present, Alexandru Mărășteanu <hello@alexei.ro>
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
* Neither the name of this software nor the names of its contributors may be
used to endorse or promote products derived from this software without
specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm package may be included in this product:
- async@3.2.5
@@ -2769,63 +2667,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- iconv-lite@0.7.2
This package contains the following license:
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- ip-address@9.0.5
This package contains the following license:
Copyright (C) 2011 by Beau Gunderson
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.3
@@ -3037,34 +2878,6 @@ OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- @gar/promise-retry@1.0.2
This package contains the following license:
Copyright (c) 2014 IndigoUnited
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is furnished
to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
-----------
The following npm package may be included in this product:
- core-js-pure@3.46.0
@@ -3402,24 +3215,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- http-cache-semantics@4.1.1
This package contains the following license:
Copyright 2016-2018 Kornel Lesiński
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-----------
The following npm packages may be included in this product:
- emoji-regex@8.0.0
@@ -3479,20 +3274,6 @@ IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-filename@4.0.0
This package contains the following license:
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- lodash@4.18.1
@@ -3549,184 +3330,12 @@ terms above.
-----------
The following npm package may be included in this product:
- @npmcli/agent@4.0.0
This package contains the following license:
ISC
-----------
The following npm package may be included in this product:
- cacache@20.0.1
This package contains the following license:
ISC License
Copyright (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- make-fetch-happen@15.0.4
- make-fetch-happen@15.0.5
These packages each contain the following license:
ISC License
Copyright 2017-2022 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- ssri@12.0.0
- ssri@13.0.1
These packages each contain the following license:
ISC License
Copyright 2021 (c) npm, Inc.
Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted, provided that the
above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE COPYRIGHT HOLDER DISCLAIMS
ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR
CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE
USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- jsbn@1.1.0
This package contains the following license:
Licensing
---------
This software is covered under the following copyright:
/*
* Copyright (c) 2003-2005 Tom Wu
* All Rights Reserved.
*
* Permission is hereby granted, free of charge, to any person obtaining
* a copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
* without limitation the rights to use, copy, modify, merge, publish,
* distribute, sublicense, and/or sell copies of the Software, and to
* permit persons to whom the Software is furnished to do so, subject to
* the following conditions:
*
* The above copyright notice and this permission notice shall be
* included in all copies or substantial portions of the Software.
*
* THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
* EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
* WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
*
* IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
* INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
* RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
* THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
* OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
* In addition, the following condition applies:
*
* All redistributions must retain an intact copy of this copyright notice
* and disclaimer.
*/
Address all questions regarding this license to:
Tom Wu
tjw@cs.Stanford.EDU
-----------
The following npm package may be included in this product:
- minizlib@3.1.0
This package contains the following license:
Minizlib was created by Isaac Z. Schlueter.
It is a derivative work of the Node.js project.
"""
Copyright (c) 2017-2023 Isaac Z. Schlueter and Contributors
Copyright (c) 2017-2023 Node.js contributors. All rights reserved.
Copyright (c) 2017-2023 Joyent, Inc. and other Node contributors. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
"""
-----------
The following npm packages may be included in this product:
- @nodable/entities@2.1.0
- binary@0.3.0
- browserify-zlib@0.1.4
- eastasianwidth@0.2.0
- imurmurhash@0.1.4
- is-gzip@1.0.0
- isarray@1.0.0
- xml-naming@0.1.0
@@ -3951,36 +3560,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- safer-buffer@2.1.2
This package contains the following license:
MIT License
Copyright (c) 2018 Nikita Skovoroda <chalkerx@gmail.com>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- @octokit/plugin-retry@8.1.0
@@ -4044,8 +3623,8 @@ SOFTWARE.
The following npm packages may be included in this product:
- @tufjs/canonical-json@2.0.0
- @tufjs/models@4.1.0
- tuf-js@4.1.0
- @tufjs/models@5.0.0
- tuf-js@6.0.0
These packages each contain the following license:
@@ -4166,36 +3745,6 @@ SOFTWARE.
-----------
The following npm package may be included in this product:
- @npmcli/redact@4.0.0
This package contains the following license:
MIT License
Copyright (c) 2024 npm
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
-----------
The following npm package may be included in this product:
- fast-xml-builder@1.2.0
@@ -4279,7 +3828,6 @@ The following npm packages may be included in this product:
- ansi-regex@6.0.1
- ansi-styles@6.2.1
- is-stream@2.0.1
- p-map@7.0.3
- string-width@5.1.2
- strip-ansi@7.1.0
- wrap-ansi@7.0.0
@@ -4324,12 +3872,11 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- @isaacs/brace-expansion@5.0.1
- brace-expansion@5.0.6
- brace-expansion@5.0.7
These packages each contain the following license:
This package contains the following license:
MIT License
@@ -4515,12 +4062,11 @@ IN THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- glob@10.5.0
- glob@11.0.3
These packages each contain the following license:
This package contains the following license:
The ISC License
@@ -4540,12 +4086,11 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- lru-cache@10.2.2
- lru-cache@11.2.2
These packages each contain the following license:
This package contains the following license:
The ISC License
@@ -4639,40 +4184,15 @@ ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm packages may be included in this product:
- foreground-child@3.1.1
- foreground-child@3.3.1
These packages each contain the following license:
The ISC License
Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass@3.3.6
- foreground-child@3.1.1
This package contains the following license:
The ISC License
Copyright (c) 2017-2022 npm, Inc., Isaac Z. Schlueter, and Contributors
Copyright (c) 2015-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -4713,54 +4233,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-collect@2.0.1
This package contains the following license:
The ISC License
Copyright (c) 2019-2023 Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- proc-log@6.1.0
This package contains the following license:
The ISC License
Copyright (c) GitHub, Inc.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- inherits@2.0.4
@@ -4787,21 +4259,14 @@ PERFORMANCE OF THIS SOFTWARE.
The following npm packages may be included in this product:
- fs-minipass@3.0.3
- isexe@2.0.0
- lru-cache@6.0.0
- minimatch@3.1.2
- minipass-flush@1.0.5
- minipass-pipeline@1.2.4
- minipass-sized@2.0.0
- once@1.4.0
- semver@7.6.0
- semver@7.7.3
- semver@7.8.1
- semver@7.8.5
- which@2.0.2
- wrappy@1.0.2
- yallist@4.0.0
These packages each contain the following license:
@@ -4823,30 +4288,6 @@ IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- unique-slug@5.0.0
This package contains the following license:
The ISC License
Copyright npm, Inc
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-----------
The following npm package may be included in this product:
- xregexp@4.4.1
@@ -4969,12 +4410,11 @@ THE SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- csv-parse@6.2.1
- csv-parse@7.0.0
These packages each contain the following license:
This package contains the following license:
The MIT License (MIT)
@@ -5030,64 +4470,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- socks@2.8.3
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- smart-buffer@4.2.0
This package contains the following license:
The MIT License (MIT)
Copyright (c) 2013-2017 Josh Glazebrook
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
-----------
The following npm package may be included in this product:
- base64-js@1.5.1
@@ -5364,12 +4746,11 @@ SOFTWARE.
-----------
The following npm packages may be included in this product:
The following npm package may be included in this product:
- cross-spawn@7.0.5
- cross-spawn@7.0.6
These packages each contain the following license:
This package contains the following license:
The MIT License (MIT)
@@ -5673,43 +5054,6 @@ THE SOFTWARE.
-----------
The following npm package may be included in this product:
- minipass-fetch@5.0.2
This package contains the following license:
The MIT License (MIT)
Copyright (c) Isaac Z. Schlueter and Contributors
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
---
Note: This is a derivative work based on "node-fetch" by David Frank,
modified and distributed under the terms of the MIT license above.
https://github.com/bitinn/node-fetch
-----------
The following npm package may be included in this product:
- moment-timezone@0.6.2
@@ -5742,7 +5086,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
The following npm packages may be included in this product:
- @actions/artifact@6.2.1
- @actions/cache@6.0.1
- @actions/cache@6.1.0
- @actions/core@3.0.0
- @actions/core@3.0.1
- @actions/exec@3.0.0