[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-04-03 03:36:46 +00:00
1 parent ff9ae24c39
commit f5dfb43fc8
9 files changed
+595 -617

No files matched your search

+132 -147
View File
@@ -1,114 +1,114 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var GOe=Object.create;var zF=Object.defineProperty;var qOe=Object.getOwnPropertyDescriptor;var YOe=Object.getOwnPropertyNames;var VOe=Object.getPrototypeOf,WOe=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)zF(t,r,{get:e[r],enumerable:!0})},JOe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of YOe(e))!WOe.call(t,s)&&s!==r&&zF(t,s,{get:()=>e[s],enumerable:!(n=qOe(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?GOe(VOe(t)):{},JOe(e||!t||!t.__esModule?zF(r,"default",{value:t,enumerable:!0}):r,t));var T$=m(hp=>{"use strict";var nqt=b("net"),ZOe=b("tls"),$F=b("http"),w$=b("https"),e3e=b("events"),sqt=b("assert"),t3e=b("util");hp.httpOverHttp=r3e;hp.httpsOverHttp=n3e;hp.httpOverHttps=s3e;hp.httpsOverHttps=i3e;function r3e(t){var e=new tu(t);return e.request=$F.request,e}function n3e(t){var e=new tu(t);return e.request=$F.request,e.createSocket=S$,e.defaultPort=443,e}function s3e(t){var e=new tu(t);return e.request=w$.request,e}function i3e(t){var e=new tu(t);return e.request=w$.request,e.createSocket=S$,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||$F.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=N$(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}t3e.inherits(tu,e3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=ZF({request:e},i.options,N$(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=ZF({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),ml("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){ml("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){ml("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return ml("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),ml(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function S$(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=ZF({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=ZOe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function N$(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function ZF(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var ml;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?ml=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)}:ml=function(){};hp.debug=ml});var eM=m((oqt,x$)=>{x$.exports=T$()});var yr=m((aqt,R$)=>{R$.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 Lt=m((Aqt,tZ)=>{"use strict";var D$=Symbol.for("undici.error.UND_ERR"),Br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[D$]===!0}[D$]=!0},k$=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),tM=class extends Br{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[k$]===!0}[k$]=!0},v$=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),rM=class extends Br{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[v$]===!0}[v$]=!0},_$=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),nM=class extends Br{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[_$]===!0}[_$]=!0},F$=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),sM=class extends Br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[F$]===!0}[F$]=!0},M$=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),iM=class extends Br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function y4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(i4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function B4e(){return"allowed"}function b4e(){return"success"}function Q4e(){return"success"}function w4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function S4e(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&&KM(t.origin)&&!KM(zC(t))&&(e=null);break;case"same-origin":N1(t,zC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function bp(t,e){return t}function N4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:bp(t.domainLookupStartTime,r),domainLookupEndTime:bp(t.domainLookupEndTime,r),connectionStartTime:bp(t.connectionStartTime,r),connectionEndTime:bp(t.connectionEndTime,r),secureConnectionStartTime:bp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T4e(t){return bp(u4e.now(),t)}function x4e(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}}function gee(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R4e(t){return{referrerPolicy:t.referrerPolicy}}function D4e(t){let e=t.referrerPolicy;bh(e);let r=null;if(t.referrer==="client"){let a=cee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=jM(r),s=jM(r,!0);n.toString().length>4096&&(n=s);let i=N1(t,n),o=JC(n)&&!JC(t.url);switch(e){case"origin":return s??jM(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=zC(t);return N1(n,a)?n:JC(n)&&!JC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function jM(t,e){return bh(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)}function JC(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"))}}function k4e(t,e){if(S1===void 0)return!0;let r=pee(e);if(r==="no metadata"||r.length===0)return!0;let n=_4e(r),s=F4e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=S1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),M4e(A,a))return!0}return!1}var v4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function pee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=v4e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();lee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function _4e(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}function F4e(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}function M4e(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}function L4e(t){}function N1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function U4e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function P4e(t){return t.controller.state==="aborted"}function O4e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function H4e(t){return h4e[t.toLowerCase()]??t}function G4e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return bh(typeof e=="string"),e}var q4e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function mee(t,e,r=0,n=1){class s{ Line truncated
`);function C6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function I6e(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}function y6e(t,e){x1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&R1(t,m6e,i)||i.position===t.length-4&&R1(t,E6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=B6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",C6e(u)||(u=""),h=new g6e([d],c,{type:u})):h=u6e(Buffer.from(d)),x1(xee(A)),x1(typeof h=="string"&&xee(h)||d6e(h)),s.push(h6e(A,h,c))}}function B6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=wp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=nL(o,!0,!0,a=>a===9||a===32),!l6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,wp(a=>a===32||a===9,t,e),c6e(o)){case"content-disposition":{if(r=n=null,!R1(t,p6e,e)||(e.position+=17,r=kee(t,e),r===null))return"failure";if(R1(t,Dee,e)){let a=e.position+Dee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=kee(t,e),n===null))return"failure"}break}case"content-type":{let a=wp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),s=Ree(a);break}case"content-transfer-encoding":{let a=wp(A=>A!==10&&A!==13,t,e);a=nL(a,!1,!0,A=>A===9||A===32),i=Ree(a);break}default:wp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function kee(t,e){x1(t[e.position-1]===34);let r=wp(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)}function wp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function nL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function R1(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}vee.exports={multipartFormDataParser:y6e,validateBoundary:I6e}});var Tp=m((vqt,Yee)=>{"use strict";var XC=dt(),{ReadableStreamFrom:b6e,isBlobLike:Fee,isReadableStreamLike:Q6e,readableStreamClose:w6e,createDeferredPromise:S6e,fullyReadBody:N6e,extractMimeType:T6e,utf8DecodeBytes:Uee}=Ti(),{FormData:Mee}=KC(),{kState:Np}=El(),{webidl:x6e}=zn(),{Blob:R6e}=b("node:buffer"),sL=b("node:assert"),{isErrored:Pee,isDisturbed:D6e}=b("node:stream"),{isArrayBuffer:k6e}=b("node:util/types"),{serializeAMimeType:v6e}=$s(),{multipartFormDataParser:_6e}=_ee(),iL;try{let t=b("node:crypto");iL=e=>t.randomInt(0,e)}catch{iL=t=>Math.floor(Math.random(t))}var D1=new TextEncoder;function F6e(){}var Oee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Hee;Oee&&(Hee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!D6e(e)&&!Pee(e)&&e.cancel("Response object has been garbage collected").catch(F6e)}));function Gee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Fee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?D1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>w6e(A))},start(){},type:"bytes"}),sL(Q6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(k6e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${iL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
var s3e=Object.create;var eM=Object.defineProperty;var i3e=Object.getOwnPropertyDescriptor;var o3e=Object.getOwnPropertyNames;var a3e=Object.getPrototypeOf,A3e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var m=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),ya=(t,e)=>{for(var r in e)eM(t,r,{get:e[r],enumerable:!0})},c3e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of o3e(e))!A3e.call(t,s)&&s!==r&&eM(t,s,{get:()=>e[s],enumerable:!(n=i3e(e,s))||n.enumerable});return t};var ce=(t,e,r)=>(r=t!=null?s3e(a3e(t)):{},c3e(e||!t||!t.__esModule?eM(r,"default",{value:t,enumerable:!0}):r,t));var PX=m(fp=>{"use strict";var Bqt=b("net"),g3e=b("tls"),sM=b("http"),MX=b("https"),p3e=b("events"),bqt=b("assert"),m3e=b("util");fp.httpOverHttp=E3e;fp.httpsOverHttp=C3e;fp.httpOverHttps=I3e;fp.httpsOverHttps=y3e;function E3e(t){var e=new tu(t);return e.request=sM.request,e}function C3e(t){var e=new tu(t);return e.request=sM.request,e.createSocket=LX,e.defaultPort=443,e}function I3e(t){var e=new tu(t);return e.request=MX.request,e}function y3e(t){var e=new tu(t);return e.request=MX.request,e.createSocket=LX,e.defaultPort=443,e}function tu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||sM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=UX(s,i,o),A=0,c=e.requests.length;A<c;++A){var u=e.requests[A];if(u.host===a.host&&u.port===a.port){e.requests.splice(A,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}m3e.inherits(tu,p3e.EventEmitter);tu.prototype.addRequest=function(e,r,n,s){var i=this,o=iM({request:e},i.options,UX(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",A),a.on("close",c),a.on("agentRemove",c),e.onSocket(a);function A(){i.emit("free",a,o)}function c(u){i.removeSocket(a),a.removeListener("free",A),a.removeListener("close",c),a.removeListener("agentRemove",c)}})};tu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=iM({},n.proxyOptions,{method:"CONNECT",path:e.host+":"+e.port,agent:!1,headers:{host:e.host+":"+e.port}});e.localAddress&&(i.localAddress=e.localAddress),i.proxyAuth&&(i.headers=i.headers||{},i.headers["Proxy-Authorization"]="Basic "+new Buffer(i.proxyAuth).toString("base64")),El("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",A),o.once("connect",c),o.once("error",u),o.end();function a(l){l.upgrade=!0}function A(l,d,h){process.nextTick(function(){c(l,d,h)})}function c(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){El("tunneling socket could not be established, statusCode=%d",l.statusCode),d.destroy();var f=new Error("tunneling socket could not be established, statusCode="+l.statusCode);f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}if(h.length>0){El("got illegal response body from proxy"),d.destroy();var f=new Error("got illegal response body from proxy");f.code="ECONNRESET",e.request.emit("error",f),n.removeSocket(s);return}return El("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),El(`tunneling socket could not be established, cause=%s
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};tu.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function LX(t,e){var r=this;tu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=iM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=g3e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function UX(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function iM(t){for(var e=1,r=arguments.length;e<r;++e){var n=arguments[e];if(typeof n=="object")for(var s=Object.keys(n),i=0,o=s.length;i<o;++i){var a=s[i];n[a]!==void 0&&(t[a]=n[a])}}return t}var El;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?El=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)}:El=function(){};fp.debug=El});var oM=m((wqt,OX)=>{OX.exports=PX()});var Br=m((Sqt,HX)=>{HX.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 Lt=m((Nqt,dZ)=>{"use strict";var GX=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[GX]===!0}[GX]=!0},qX=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),aM=class extends br{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[qX]===!0}[qX]=!0},YX=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),AM=class extends br{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[YX]===!0}[YX]=!0},VX=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),cM=class extends br{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[VX]===!0}[VX]=!0},WX=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),uM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[WX]===!0}[WX]=!0},JX=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),lM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.st Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function L4e(t,e){let{headersList:r}=e,n=(r.get("referrer-policy",!0)??"").split(","),s="";if(n.length>0)for(let i=n.length;i!==0;i--){let o=n[i-1].trim();if(y4e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function U4e(){return"allowed"}function P4e(){return"success"}function O4e(){return"success"}function H4e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function G4e(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&&rL(t.origin)&&!rL(jC(t))&&(e=null);break;case"same-origin":x1(t,jC(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Qp(t,e){return t}function q4e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Qp(t.domainLookupStartTime,r),domainLookupEndTime:Qp(t.domainLookupEndTime,r),connectionStartTime:Qp(t.connectionStartTime,r),connectionEndTime:Qp(t.connectionEndTime,r),secureConnectionStartTime:Qp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Y4e(t){return Qp(S4e.now(),t)}function V4e(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}}function See(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function W4e(t){return{referrerPolicy:t.referrerPolicy}}function J4e(t){let e=t.referrerPolicy;Qh(e);let r=null;if(t.referrer==="client"){let a=Iee();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=tL(r),s=tL(r,!0);n.toString().length>4096&&(n=s);let i=x1(t,n),o=zC(n)&&!zC(t.url);switch(e){case"origin":return s??tL(r,!0);case"unsafe-url":return n;case"same-origin":return i?s:"no-referrer";case"origin-when-cross-origin":return i?n:s;case"strict-origin-when-cross-origin":{let a=jC(t);return x1(n,a)?n:zC(n)&&!zC(a)?"no-referrer":s}default:return o?"no-referrer":s}}function tL(t,e){return Qh(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)}function zC(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"))}}function z4e(t,e){if(T1===void 0)return!0;let r=Nee(e);if(r==="no metadata"||r.length===0)return!0;let n=K4e(r),s=$4e(r,n);for(let i of s){let o=i.algo,a=i.hash,A=T1.createHash(o).update(t).digest("base64");if(A[A.length-1]==="="&&(A[A.length-2]==="="?A=A.slice(0,-2):A=A.slice(0,-1)),X4e(A,a))return!0}return!1}var j4e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Nee(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=j4e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Bee.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function K4e(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}function $4e(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}function X4e(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}function Z4e(t){}function x1(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function e6e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function t6e(t){return t.controller.state==="aborted"}function r6e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function n6e(t){return x4e[t.toLowerCase()]??t}function s6e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Qh(typeof e=="string"),e}var i6e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Tee(t,e,r=0,n=1){class s{ Line truncated
`);function F6e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function M6e(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}function L6e(t,e){D1(e!=="failure"&&e.essence==="multipart/form-data");let r=e.parameters.get("boundary");if(r===void 0)return"failure";let n=Buffer.from(`--${r}`,"utf8"),s=[],i={position:0};for(;t[i.position]===13&&t[i.position+1]===10;)i.position+=2;let o=t.length;for(;t[o-1]===10&&t[o-2]===13;)o-=2;for(o!==t.length&&(t=t.subarray(0,o));;){if(t.subarray(i.position,i.position+n.length).equals(n))i.position+=n.length;else return"failure";if(i.position===t.length-2&&k1(t,v6e,i)||i.position===t.length-4&&k1(t,_6e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=U6e(t,i);if(a==="failure")return"failure";let{name:A,filename:c,contentType:u,encoding:l}=a;i.position+=2;let d;{let f=t.indexOf(n.subarray(2),i.position);if(f===-1)return"failure";d=t.subarray(i.position,f-4),i.position+=d.length,l==="base64"&&(d=Buffer.from(d.toString(),"base64"))}if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let h;c!==null?(u??="text/plain",F6e(u)||(u=""),h=new D6e([d],c,{type:u})):h=S6e(Buffer.from(d)),D1(Oee(A)),D1(typeof h=="string"&&Oee(h)||T6e(h)),s.push(x6e(A,h,c))}}function U6e(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10)return r===null?"failure":{name:r,filename:n,contentType:s,encoding:i};let o=Sp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=cL(o,!0,!0,a=>a===9||a===32),!N6e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Sp(a=>a===32||a===9,t,e),w6e(o)){case"content-disposition":{if(r=n=null,!k1(t,k6e,e)||(e.position+=17,r=qee(t,e),r===null))return"failure";if(k1(t,Gee,e)){let a=e.position+Gee.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=qee(t,e),n===null))return"failure"}break}case"content-type":{let a=Sp(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),s=Hee(a);break}case"content-transfer-encoding":{let a=Sp(A=>A!==10&&A!==13,t,e);a=cL(a,!1,!0,A=>A===9||A===32),i=Hee(a);break}default:Sp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function qee(t,e){D1(t[e.position-1]===34);let r=Sp(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)}function Sp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function cL(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function k1(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}Yee.exports={multipartFormDataParser:L6e,validateBoundary:M6e}});var xp=m((Xqt,tte)=>{"use strict";var XC=dt(),{ReadableStreamFrom:P6e,isBlobLike:Wee,isReadableStreamLike:O6e,readableStreamClose:H6e,createDeferredPromise:G6e,fullyReadBody:q6e,extractMimeType:Y6e,utf8DecodeBytes:jee}=Ti(),{FormData:Jee}=$C(),{kState:Tp}=Cl(),{webidl:V6e}=zn(),{Blob:W6e}=b("node:buffer"),uL=b("node:assert"),{isErrored:Kee,isDisturbed:J6e}=b("node:stream"),{isArrayBuffer:z6e}=b("node:util/types"),{serializeAMimeType:j6e}=Xs(),{multipartFormDataParser:K6e}=Vee(),lL;try{let t=b("node:crypto");lL=e=>t.randomInt(0,e)}catch{lL=t=>Math.floor(Math.random(t))}var v1=new TextEncoder;function $6e(){}var $ee=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Xee;$ee&&(Xee=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!J6e(e)&&!Kee(e)&&e.cancel("Response object has been garbage collected").catch($6e)}));function Zee(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Wee(t)?r=t.stream():r=new ReadableStream({async pull(A){let c=typeof s=="string"?v1.encode(s):s;c.byteLength&&A.enqueue(c),queueMicrotask(()=>H6e(A))},start(){},type:"bytes"}),uL(O6e(r));let n=null,s=null,i=null,o=null;if(typeof t=="string")s=t,o="text/plain;charset=UTF-8";else if(t instanceof URLSearchParams)s=t.toString(),o="application/x-www-form-urlencoded;charset=UTF-8";else if(z6e(t))s=new Uint8Array(t.slice());else if(ArrayBuffer.isView(t))s=new Uint8Array(t.buffer.slice(t.byteOffset,t.byteOffset+t.byteLength));else if(XC.isFormDataLike(t)){let A=`----formdata-undici-0${`${lL(1e11)}`.padStart(11,"0")}`,c=`--${A}\r
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=D1.encode(c+`; name="${u(l(I))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,E]of t)if(typeof E=="string"){let C=v1.encode(c+`; name="${u(l(I))}"\r
\r
${l(E)}\r
`);d.push(C),i+=C.byteLength}else{let C=D1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
`);d.push(C),i+=C.byteLength}else{let C=v1.encode(`${c}; name="${u(l(I))}"`+(E.name?`; filename="${u(E.name)}"`:"")+`\r
Content-Type: ${E.type||"application/octet-stream"}\r
\r
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=D1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Fee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:b6e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Pee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function M6e(t,e=!1){return t instanceof ReadableStream&&(sL(!XC.isDisturbed(t),"The body has already been consumed."),sL(!t.locked,"The stream is locked.")),Gee(t,e)}function L6e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function U6e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function P6e(t){return{blob(){return Sp(this,r=>{let n=Lee(this);return n===null?n="":n&&(n=v6e(n)),new R6e([r],{type:n})},t)},arrayBuffer(){return Sp(this,r=>new Uint8Array(r).buffer,t)},text(){return Sp(this,Uee,t)},json(){return Sp(this,H6e,t)},formData(){return Sp(this,r=>{let n=Lee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=_6e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Mee;return i[Np]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Mee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Sp(this,r=>new Uint8Array(r),t)}}}function O6e(t){Object.assign(t.prototype,P6e(t))}async function Sp(t,e,r){if(x6e.brandCheck(t,r),qee(t))throw new TypeError("Body is unusable: Body has already been read");U6e(t[Np]);let n=S6e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Np].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await N6e(t[Np].body,i,s),n.promise)}function qee(t){let e=t[Np].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function H6e(t){return JSON.parse(Uee(t))}function Lee(t){let e=t[Np].headersList,r=T6e(e);return r==="failure"?null:r}Yee.exports={extractBody:Gee,safelyExtractBody:M6e,cloneBody:L6e,mixinBody:O6e,streamRegistry:Hee,hasFinalizationRegistry:Oee,bodyUnusable:qee}});var tte=m((_qt,ete)=>{"use strict";var Ge=b("node:assert"),$e=dt(),{channels:Vee}=gp(),oL=HM(),{RequestContentLengthMismatchError:Qh,ResponseContentLengthMismatchError:G6e,RequestAbortedError:Xee,HeadersTimeoutError:q6e,HeadersOverflowError:Y6e,SocketError:L1,InformationalError:xp,BodyTimeoutError:V6e,HTTPParserError:W6e,ResponseExceededMaxSizeError:J6e}=Lt(),{kUrl:$ee,kReset:Zs,kClient:uL,kParser:Mr,kBlocking:eI,kRunning:is,kPending:z6e,kSize:Wee,kWriting:Il,kQueue:ba,kNoRef:$C,kKeepAliveDefaultTimeout:j6e,kHostHeader:K6e,kPendingIdx:X6e,kRunningIdx:yo,kError:Bo,kPipelining:F1,kSocket:Rp,kKeepAliveTimeoutValue:U1,kMaxHeadersSize:aL,kKeepAliveMaxTimeout:$6e,kKeepAliveTimeoutThreshold:Z6e,kHeadersTimeout:e5e,kBodyTimeout:t5e,kStrictContentLength:lL,kMaxRequests:Jee,kCounter:r5e,kMaxResponseSize:n5e,kOnError:s5e,kResume:Cl,kHTTPContext:Zee}=yr(),mA=HZ(),i5e=Buffer.alloc(0),k1=Buffer[Symbol.species],v1=$e.addListener,o5e=$e.removeAllListeners,AL;async function a5e(){let t=process.env.JEST_WORKER_ID?YM():void 0,e;try{e=await WebAssembly.compile(YZ())}catch{e=await WebAssembly.compile(t||YM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onStatus(new k1(EA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderField(new k1(EA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderValue(new k1(EA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onBody(new k1(EA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var cL=null,dL=a5e();dL.catch();var fn=null,EA=null,_1=0,CA=null,A5e=0,ZC=1,Dp=2|ZC,M1=4|ZC,hL=8|A5e,fL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[aL])&&e[aL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this. Line truncated
`);d.push(C,E,h),typeof E.size=="number"?i+=C.byteLength+E.size+h.byteLength:f=!0}let p=v1.encode(`--${A}--\r
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${A}`}else if(Wee(t))s=t,i=t.size,t.type&&(o=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(XC.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:P6e(t)}if((typeof s=="string"||XC.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let A;r=new ReadableStream({async start(){A=n(t)[Symbol.asyncIterator]()},async pull(c){let{value:u,done:l}=await A.next();if(l)queueMicrotask(()=>{c.close(),c.byobRequest?.respond(0)});else if(!Kee(r)){let d=new Uint8Array(u);d.byteLength&&c.enqueue(d)}return c.desiredSize>0},async cancel(c){await A.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function X6e(t,e=!1){return t instanceof ReadableStream&&(uL(!XC.isDisturbed(t),"The body has already been consumed."),uL(!t.locked,"The stream is locked.")),Zee(t,e)}function Z6e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function e5e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function t5e(t){return{blob(){return Np(this,r=>{let n=zee(this);return n===null?n="":n&&(n=j6e(n)),new W6e([r],{type:n})},t)},arrayBuffer(){return Np(this,r=>new Uint8Array(r).buffer,t)},text(){return Np(this,jee,t)},json(){return Np(this,n5e,t)},formData(){return Np(this,r=>{let n=zee(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=K6e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Jee;return i[Tp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Jee;for(let[o,a]of s)i.append(o,a);return i}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t)},bytes(){return Np(this,r=>new Uint8Array(r),t)}}}function r5e(t){Object.assign(t.prototype,t5e(t))}async function Np(t,e,r){if(V6e.brandCheck(t,r),ete(t))throw new TypeError("Body is unusable: Body has already been read");e5e(t[Tp]);let n=G6e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Tp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await q6e(t[Tp].body,i,s),n.promise)}function ete(t){let e=t[Tp].body;return e!=null&&(e.stream.locked||XC.isDisturbed(e.stream))}function n5e(t){return JSON.parse(jee(t))}function zee(t){let e=t[Tp].headersList,r=Y6e(e);return r==="failure"?null:r}tte.exports={extractBody:Zee,safelyExtractBody:X6e,cloneBody:Z6e,mixinBody:r5e,streamRegistry:Xee,hasFinalizationRegistry:$ee,bodyUnusable:ete}});var dte=m((Zqt,lte)=>{"use strict";var Ge=b("node:assert"),Ze=dt(),{channels:rte}=pp(),dL=JM(),{RequestContentLengthMismatchError:wh,ResponseContentLengthMismatchError:s5e,RequestAbortedError:Ate,HeadersTimeoutError:i5e,HeadersOverflowError:o5e,SocketError:P1,InformationalError:Rp,BodyTimeoutError:a5e,HTTPParserError:A5e,ResponseExceededMaxSizeError:c5e}=Lt(),{kUrl:cte,kReset:Zs,kClient:pL,kParser:Mr,kBlocking:tI,kRunning:is,kPending:u5e,kSize:nte,kWriting:yl,kQueue:ba,kNoRef:ZC,kKeepAliveDefaultTimeout:l5e,kHostHeader:d5e,kPendingIdx:h5e,kRunningIdx:yo,kError:Bo,kPipelining:L1,kSocket:Dp,kKeepAliveTimeoutValue:O1,kMaxHeadersSize:hL,kKeepAliveMaxTimeout:f5e,kKeepAliveTimeoutThreshold:g5e,kHeadersTimeout:p5e,kBodyTimeout:m5e,kStrictContentLength:mL,kMaxRequests:ste,kCounter:E5e,kMaxResponseSize:C5e,kOnError:I5e,kResume:Il,kHTTPContext:ute}=Br(),mA=XZ(),y5e=Buffer.alloc(0),_1=Buffer[Symbol.species],F1=Ze.addListener,B5e=Ze.removeAllListeners,fL;async function b5e(){let t=process.env.JEST_WORKER_ID?KM():void 0,e;try{e=await WebAssembly.compile(tee())}catch{e=await WebAssembly.compile(t||KM())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onStatus(new _1(EA.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(fn.ptr===r),fn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderField(new _1(EA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onHeaderValue(new _1(EA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(fn.ptr===r),fn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(fn.ptr===r);let i=n-CA+EA.byteOffset;return fn.onBody(new _1(EA.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(fn.ptr===r),fn.onMessageComplete()||0)}})}var gL=null,EL=b5e();EL.catch();var fn=null,EA=null,M1=0,CA=null,Q5e=0,eI=1,kp=2|eI,U1=4|eI,CL=8|Q5e,IL=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[hL])&&e[hL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[K6e],i?p+=`connection: upgrade\r
`:p+=t[d5e],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[F1]&&!h[Zs]?p+=`connection: keep-alive\r
`:t[L1]&&!h[Zs]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return Vee.sendHeaders.hasSubscribers&&Vee.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?jee(f,null,t,e,h,u,p,l):$e.isBuffer(A)?jee(f,A,t,e,h,u,p,l):$e.isBlobLike(A)?typeof A.stream=="function"?Kee(f,A.stream(),t,e,h,u,p,l):f5e(f,A,t,e,h,u,p,l):$e.isStream(A)?h5e(f,A,t,e,h,u,p,l):$e.isIterable(A)?Kee(f,A,t,e,h,u,p,l):Ge(!1),!0}function h5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new P1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){$e.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Xee;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[Il]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?$e.destroy(e,f):$e.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function jee(t,e,r,n,s,i,o,a){try{e?$e.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return rte.sendHeaders.hasSubscribers&&rte.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?ote(f,null,t,e,h,u,p,l):Ze.isBuffer(A)?ote(f,A,t,e,h,u,p,l):Ze.isBlobLike(A)?typeof A.stream=="function"?ate(f,A.stream(),t,e,h,u,p,l):R5e(f,A,t,e,h,u,p,l):Ze.isStream(A)?x5e(f,A,t,e,h,u,p,l):Ze.isIterable(A)?ate(f,A,t,e,h,u,p,l):Ge(!1),!0}function x5e(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"stream body cannot be pipelined");let A=!1,c=new H1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Ze.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new Ate;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ge(s.destroyed||s[yl]&&r[is]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Ze.destroy(e,f):Ze.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(()=>h(e.errored)):(e.endEmitted??e.readableEnded)&&setImmediate(()=>h(null)),(e.closeEmitted??e.closed)&&setImmediate(d)}function ote(t,e,r,n,s,i,o,a){try{e?Ze.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Zs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[Cl]()}catch(A){t(A)}}async function f5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Qh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Il]()}catch(A){t(A)}}async function R5e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new wh;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[Cl]()}catch(A){t(A)}}async function Kee(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new P1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var P1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Il]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[lL])throw new Qh;process.emitWarning(new Qh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[Zs]=!0),r[Il]()}catch(A){t(A)}}async function ate(t,e,r,n,s,i,o,a){Ge(i!==0||r[is]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ge(A===null),s[Bo]?h(s[Bo]):A=d});s.on("close",c).on("drain",c);let l=new H1({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Bo])throw s[Bo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var H1=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[yl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[Bo])throw r[Bo];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[mL])throw new wh;process.emitWarning(new wh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===Dp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Il]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Mr].timeout&&r[Mr].timeoutType===kp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[yl]=!1,e[Bo])throw e[Bo];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[lL])throw new Qh;process.emitWarning(new Qh)}e[Mr].timeout&&e[Mr].timeoutType===Dp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Cl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Il]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};ete.exports=c5e});var cte=m((Fqt,Ate)=>{"use strict";var bo=b("node:assert"),{pipeline:g5e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:gL,RequestAbortedError:rte,SocketError:tI,InformationalError:pL}=Lt(),{kUrl:O1,kReset:G1,kClient:kp,kRunning:q1,kPending:p5e,kQueue:yl,kPendingIdx:mL,kRunningIdx:Qa,kError:Sa,kSocket:xn,kStrictContentLength:m5e,kOnError:EL,kMaxConcurrentStreams:ate,kHTTP2Session:wa,kResume:Bl,kSize:E5e,kHTTPContext:C5e}=yr(),au=Symbol("open streams"),nte,ste=!1,H1;try{H1=b("node:http2")}catch{H1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:I5e,HTTP2_HEADER_METHOD:y5e,HTTP2_HEADER_PATH:B5e,HTTP2_HEADER_SCHEME:b5e,HTTP2_HEADER_CONTENT_LENGTH:Q5e,HTTP2_HEADER_EXPECT:w5e,HTTP2_HEADER_STATUS:S5e}}=H1;function N5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function T5e(t,e){t[xn]=e,ste||(ste=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=H1.connect(t[O1],{createConnection:()=>e,peerMaxConcurrentStreams:t[ate]});r[au]=0,r[kp]=t,r[xn]=e,mt.addListener(r,"error",R5e),mt.addListener(r,"frameError",D5e),mt.addListener(r,"end",k5e),mt.addListener(r,"goaway",v5e),mt.addListener(r,"close",function(){let{[kp]:s}=this,{[xn]:i}=s,o=this[xn][Sa]||this[Sa]||new tI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[p5e]===0);let a=s[yl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[kp][EL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new tI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new tI("closed",mt.getSocketInfo(this));t[xn]=null,this[wa]!=null&&this[wa].destroy(s),t[mL]=t[Qa],bo(t[q1]===0),t.emit("disconnect",t[O1],[t],s),t[Bl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return F5e(t,...s)},resume(){x5e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function x5e(t){let e=t[xn];e?.destroyed===!1&&(t[E5e]===0&&t[ate]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function R5e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xn][Sa]=t,this[kp][EL](t)}function D5e(t,e,r){if(r===0){let n=new pL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xn][Sa]=n,this[kp][EL](n)}}function k5e(){let t=new tI("other side closed",mt.getSocketInfo(this[xn]));this.destroy(t),mt.destroy(this[xn],t)}function v5e(t){let e=this[Sa]||new tI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[kp];if(r[xn]=null,r[C5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[xn],e),r[Qa]<r[yl].length){let n=r[yl][r[Qa]];r[yl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[mL]=r[Qa]}bo(r[q1]===0),r.emit("disconnect",r[O1],[r],e),r[Bl]()}function _5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function F5e(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[O1];l[I5e]=i||`${h}${f?`:${f}`:""}`,l[y5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new rte,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[yl][t[Qa]++]=null,t[Bl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[yl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[yl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[B5e]=s,l[b5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){nte??=Tp().extractBody;let[R,M]=nte(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),_5e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[m5e])return mt.errorRequest(t,e,new gL),!1;process.emitWarning(new gL)}E!=null&&(bo(u,"no body must not have content length"),l[Q5e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[w5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[aHe]=A??3e5,this[oHe]=s??3e5,this[AHe]=C??!0,this[cHe]=R,this[BL]=Y,this[Ql]=null,this[fHe]=P>-1?P:-1,this[pHe]=Z??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[iI]=Ae=>QL(this,Ae),this[gHe]=Ae=>yte(this,Ae)}get pipelining(){return this[J1]}set pipelining(e){this[J1]=e,this[iI](!0)}get[AI](){return this[Na].length-this[Ta]}get[aI](){return this[Ta]-this[cu]}get[oI](){return this[Na].length-this[cu]}get[Z5e](){return!!this[Kr]&&!this[_p]&&!this[Kr].destroyed}get[yL](){return!!(this[Kr]?.busy(null)||this[oI]>=(Ite(this)||1)||this[AI]>0)}[$5e](e){Bte(this),this.once("connect",e)}[hHe](e,r){let n=e.origin||this[yA].origin,s=new W5e(n,e,r);return this[Na].push(s),this[Sh]||(wh.bodyLength(s.body)==null&&wh.isIterable(s.body)?(this[Sh]=1,queueMicrotask(()=>QL(this))):this[iI](!0)),this[Sh]&&this[wl]!==2&&this[yL]&&(this[wl]=2),this[wl]<2}async[lHe](){return new Promise(e=>{this[oI]?this[Ql]=e:e(null)})}async[dHe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];wh.errorRequest(this,o,e)}let s=()=>{this[Ql]&&(this[Ql](),this[Ql]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[iI]()})}},CHe=W1();function yte(t,e){if(t[aI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];wh.errorRequest(t,s,e)}Au(t[oI]===0)}}async function Bte(t){Au(!t[_p]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Cte.isIP(o)),r=o}t[_p]=!0,vp.beforeConnect.hasSubscribers&&vp.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[bl],localAddress:t[sI]},connector:t[nI]});try{let i=await new Promise((o,a)=>{t[nI]({host:e,hostname:r,protocol:n,port:s,servername:t[bl],localAddress:t[sI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){wh.destroy(i.on("error",mte),new j5e);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await EHe(t,i):await mHe(t,i)}catch(o){throw i.destroy().on("error",mte),o}t[_p]=!1,i[uHe]=0,i[BL]=t[BL],i[X5e]=t,i[tHe]=null,vp.connected.hasSubscribers&&vp.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[bl],localAddress:t[sI]},connector:t[nI],socket:i}),t.emit("connect",t[yA],[t])}catch(i){if(t.destroyed)return;if(t[_p]=!1,vp.connectError.hasSubscribers&&vp.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[bl],localAddress:t[sI]},connector:t[nI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[aI]===0);t[AI]>0&&t[Na][t[Ta]].servername===t[bl];){let o=t[Na][t[Ta]++];wh.errorRequest(t,o,i)}else yte(t,i);t.emit("connectionError",t[yA],[t],i)}t[iI]()}function Ete(t){t[wl]=0,t.emit("drain",t[yA],[t])}function QL(t,e){t[Sh]!==2&&(t[Sh]=2,IHe(t,e),t[Sh]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function IHe(t,e){for(;;){if(t.destroyed){Au(t[AI]===0);return}if(t[Ql]&&!t[oI]){t[Ql](),t[Ql]=null;return}if(t[Kr]&&t[Kr].resume(),t[yL])t[wl]=2;else if(t[wl]===2){e?(t[wl]=1,queueMicrotask(()=>Ete(t))):Ete(t);continue}if(t[AI]===0||t[aI]>=(Ite(t)||1))return;let r=t[Na][t[Ta]];if(t[yA].protocol==="https:"&&t[bl]!==r.servername){if(t[aI]>0)return;t[bl]=r.servername,t[Kr]?.destroy(new z5e("servername changed"),()=>{t[Kr]=null,QL(t)})}if(t[_p])return;if(!t[Kr]){Bte(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}bte.exports=bL});var wL=m((Oqt,Qte)=>{"use strict";var z1=class{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)}};Qte.exports=class{constructor(){this.head=this.tail=new z1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new z1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Ste=m((Hqt,wte)=>{var{kFree:yHe,kConnected:BHe,kPending:bHe,kQueued:QHe,kRunning:wHe,kSize:SHe}=yr(),Nh=Symbol("pool"),SL=class{constructor(e){this[Nh]=e}get connected(){return this[Nh][BHe]}get free(){return this[Nh][yHe]}get pending(){return this[Nh][bHe]}get queued(){return this[Nh][QHe]}get running(){return this[Nh][wHe]}get size(){return this[Nh][SHe]}};wte.exports=SL});var kL=m((Gqt,Mte)=>{"use strict";var NHe=Cp(),THe=wL(),{kConnected:NL,kSize:Nte,kRunning:Tte,kPending:xte,kQueued:cI,kBusy:xHe,kFree:RHe,kUrl:DHe,kClose:kHe,kDestroy:vHe,kDispatch:_He}=yr(),FHe=Ste(),ei=Symbol("clients"),Ts=Symbol("needDrain"),uI=Symbol("queue"),TL=Symbol("closed resolve"),xL=Symbol("onDrain"),Rte=Symbol("onConnect"),Dte=Symbol("onDisconnect"),kte=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[mL])throw new wh;process.emitWarning(new wh)}e[Mr].timeout&&e[Mr].timeoutType===kp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Il]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[yl]=!1,e&&(Ge(n[is]<=1,"pipeline should only contain this request"),s(e))}};lte.exports=w5e});var Ite=m((eYt,Cte)=>{"use strict";var bo=b("node:assert"),{pipeline:D5e}=b("node:stream"),mt=dt(),{RequestContentLengthMismatchError:yL,RequestAbortedError:hte,SocketError:rI,InformationalError:BL}=Lt(),{kUrl:G1,kReset:Y1,kClient:vp,kRunning:V1,kPending:k5e,kQueue:Bl,kPendingIdx:bL,kRunningIdx:Qa,kError:Sa,kSocket:xn,kStrictContentLength:v5e,kOnError:QL,kMaxConcurrentStreams:Ete,kHTTP2Session:wa,kResume:bl,kSize:_5e,kHTTPContext:F5e}=Br(),au=Symbol("open streams"),fte,gte=!1,q1;try{q1=b("node:http2")}catch{q1={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:M5e,HTTP2_HEADER_METHOD:L5e,HTTP2_HEADER_PATH:U5e,HTTP2_HEADER_SCHEME:P5e,HTTP2_HEADER_CONTENT_LENGTH:O5e,HTTP2_HEADER_EXPECT:H5e,HTTP2_HEADER_STATUS:G5e}}=q1;function q5e(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}async function Y5e(t,e){t[xn]=e,gte||(gte=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=q1.connect(t[G1],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ete]});r[au]=0,r[vp]=t,r[xn]=e,mt.addListener(r,"error",W5e),mt.addListener(r,"frameError",J5e),mt.addListener(r,"end",z5e),mt.addListener(r,"goaway",j5e),mt.addListener(r,"close",function(){let{[vp]:s}=this,{[xn]:i}=s,o=this[xn][Sa]||this[Sa]||new rI("closed",mt.getSocketInfo(i));if(s[wa]=null,s.destroyed){bo(s[k5e]===0);let a=s[Bl].splice(s[Qa]);for(let A=0;A<a.length;A++){let c=a[A];mt.errorRequest(s,c,o)}}}),r.unref(),t[wa]=r,e[wa]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Sa]=s,this[vp][QL](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new rI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Sa]||new rI("closed",mt.getSocketInfo(this));t[xn]=null,this[wa]!=null&&this[wa].destroy(s),t[bL]=t[Qa],bo(t[V1]===0),t.emit("disconnect",t[G1],[t],s),t[bl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return $5e(t,...s)},resume(){V5e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function V5e(t){let e=t[xn];e?.destroyed===!1&&(t[_5e]===0&&t[Ete]===0?(e.unref(),t[wa].unref()):(e.ref(),t[wa].ref()))}function W5e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[xn][Sa]=t,this[vp][QL](t)}function J5e(t,e,r){if(r===0){let n=new BL(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[xn][Sa]=n,this[vp][QL](n)}}function z5e(){let t=new rI("other side closed",mt.getSocketInfo(this[xn]));this.destroy(t),mt.destroy(this[xn],t)}function j5e(t){let e=this[Sa]||new rI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[vp];if(r[xn]=null,r[F5e]=null,this[wa]!=null&&(this[wa].destroy(e),this[wa]=null),mt.destroy(this[xn],e),r[Qa]<r[Bl].length){let n=r[Bl][r[Qa]];r[Bl][r[Qa]++]=null,mt.errorRequest(r,n,e),r[bL]=r[Qa]}bo(r[V1]===0),r.emit("disconnect",r[G1],[r],e),r[bl]()}function K5e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $5e(t,e){let r=t[wa],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:A,headers:c}=e,{body:u}=e;if(o)return mt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let R=0;R<c.length;R+=2){let M=c[R+0],Y=c[R+1];if(Array.isArray(Y))for(let v=0;v<Y.length;v++)l[M]?l[M]+=`,${Y[v]}`:l[M]=Y[v];else l[M]=Y}let d,{hostname:h,port:f}=t[G1];l[M5e]=i||`${h}${f?`:${f}`:""}`,l[L5e]=n;let p=R=>{e.aborted||e.completed||(R=R||new hte,mt.errorRequest(t,e,R),d!=null&&mt.destroy(d,R),mt.destroy(u,R),t[Bl][t[Qa]++]=null,t[bl]())};try{e.onConnect(p)}catch(R){mt.errorRequest(t,e,R)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:A}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[au],t[Bl][t[Qa]++]=null}),d.once("close",()=>{r[au]-=1,r[au]===0&&r.unref()}),!0;l[U5e]=s,l[P5e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let E=mt.bodyLength(u);if(mt.isFormDataLike(u)){fte??=xp().extractBody;let[R,M]=fte(u);l["content-type"]=M,u=R.stream,E=R.length}if(E==null&&(E=e.contentLength),(E===0||!I)&&(E=null),K5e(n)&&E>0&&e.contentLength!=null&&e.contentLength!==E){if(t[v5e])return mt.errorRequest(t,e,new yL),!1;process.emitWarning(new yL)}E!=null&&(bo(u,"no body must not have content length"),l[O5e]=`${E}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[H5e]="100-continue",d=r.request(l,{endStream:C,signal:A}),d.once("cont Line truncated
`,this[bHe]=A??3e5,this[BHe]=s??3e5,this[QHe]=C??!0,this[wHe]=R,this[TL]=Y,this[wl]=null,this[RHe]=P>-1?P:-1,this[kHe]=ee??100,this[Kr]=null,this[Na]=[],this[cu]=0,this[Ta]=0,this[oI]=Ae=>RL(this,Ae),this[DHe]=Ae=>kte(this,Ae)}get pipelining(){return this[j1]}set pipelining(e){this[j1]=e,this[oI](!0)}get[cI](){return this[Na].length-this[Ta]}get[AI](){return this[Ta]-this[cu]}get[aI](){return this[Na].length-this[cu]}get[gHe](){return!!this[Kr]&&!this[Fp]&&!this[Kr].destroyed}get[NL](){return!!(this[Kr]?.busy(null)||this[aI]>=(Dte(this)||1)||this[cI]>0)}[fHe](e){vte(this),this.once("connect",e)}[xHe](e,r){let n=e.origin||this[yA].origin,s=new AHe(n,e,r);return this[Na].push(s),this[Nh]||(Sh.bodyLength(s.body)==null&&Sh.isIterable(s.body)?(this[Nh]=1,queueMicrotask(()=>RL(this))):this[oI](!0)),this[Nh]&&this[Sl]!==2&&this[NL]&&(this[Sl]=2),this[Sl]<2}async[NHe](){return new Promise(e=>{this[aI]?this[wl]=e:e(null)})}async[THe](e){return new Promise(r=>{let n=this[Na].splice(this[Ta]);for(let i=0;i<n.length;i++){let o=n[i];Sh.errorRequest(this,o,e)}let s=()=>{this[wl]&&(this[wl](),this[wl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[oI]()})}},FHe=z1();function kte(t,e){if(t[AI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Au(t[Ta]===t[cu]);let r=t[Na].splice(t[cu]);for(let n=0;n<r.length;n++){let s=r[n];Sh.errorRequest(t,s,e)}Au(t[aI]===0)}}async function vte(t){Au(!t[Fp]),Au(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yA];if(r[0]==="["){let i=r.indexOf("]");Au(i!==-1);let o=r.substring(1,i);Au(Rte.isIP(o)),r=o}t[Fp]=!0,_p.beforeConnect.hasSubscribers&&_p.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI]});try{let i=await new Promise((o,a)=>{t[sI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ql],localAddress:t[iI]},(A,c)=>{A?a(A):o(c)})});if(t.destroyed){Sh.destroy(i.on("error",Tte),new lHe);return}Au(i);try{t[Kr]=i.alpnProtocol==="h2"?await _He(t,i):await vHe(t,i)}catch(o){throw i.destroy().on("error",Tte),o}t[Fp]=!1,i[SHe]=0,i[TL]=t[TL],i[hHe]=t,i[mHe]=null,_p.connected.hasSubscribers&&_p.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI],socket:i}),t.emit("connect",t[yA],[t])}catch(i){if(t.destroyed)return;if(t[Fp]=!1,_p.connectError.hasSubscribers&&_p.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Ql],localAddress:t[iI]},connector:t[sI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Au(t[AI]===0);t[cI]>0&&t[Na][t[Ta]].servername===t[Ql];){let o=t[Na][t[Ta]++];Sh.errorRequest(t,o,i)}else kte(t,i);t.emit("connectionError",t[yA],[t],i)}t[oI]()}function xte(t){t[Sl]=0,t.emit("drain",t[yA],[t])}function RL(t,e){t[Nh]!==2&&(t[Nh]=2,MHe(t,e),t[Nh]=0,t[cu]>256&&(t[Na].splice(0,t[cu]),t[Ta]-=t[cu],t[cu]=0))}function MHe(t,e){for(;;){if(t.destroyed){Au(t[cI]===0);return}if(t[wl]&&!t[aI]){t[wl](),t[wl]=null;return}if(t[Kr]&&t[Kr].resume(),t[NL])t[Sl]=2;else if(t[Sl]===2){e?(t[Sl]=1,queueMicrotask(()=>xte(t))):xte(t);continue}if(t[cI]===0||t[AI]>=(Dte(t)||1))return;let r=t[Na][t[Ta]];if(t[yA].protocol==="https:"&&t[Ql]!==r.servername){if(t[AI]>0)return;t[Ql]=r.servername,t[Kr]?.destroy(new uHe("servername changed"),()=>{t[Kr]=null,RL(t)})}if(t[Fp])return;if(!t[Kr]){vte(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ta]++:t[Na].splice(t[Ta],1)}}_te.exports=xL});var DL=m((iYt,Fte)=>{"use strict";var K1=class{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)}};Fte.exports=class{constructor(){this.head=this.tail=new K1}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new K1),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Lte=m((oYt,Mte)=>{var{kFree:LHe,kConnected:UHe,kPending:PHe,kQueued:OHe,kRunning:HHe,kSize:GHe}=Br(),Th=Symbol("pool"),kL=class{constructor(e){this[Th]=e}get connected(){return this[Th][UHe]}get free(){return this[Th][LHe]}get pending(){return this[Th][PHe]}get queued(){return this[Th][OHe]}get running(){return this[Th][HHe]}get size(){return this[Th][GHe]}};Mte.exports=kL});var UL=m((aYt,Jte)=>{"use strict";var qHe=Ip(),YHe=DL(),{kConnected:vL,kSize:Ute,kRunning:Pte,kPending:Ote,kQueued:uI,kBusy:VHe,kFree:WHe,kUrl:JHe,kClose:zHe,kDestroy:jHe,kDispatch:KHe}=Br(),$He=Lte(),ei=Symbol("clients"),Ts=Symbol("needDrain"),lI=Symbol("queue"),_L=Symbol("closed resolve"),FL=Symbol("onDrain"),Hte=Symbol("onConnect"),Gte=Symbol("onDisconnect"),qte=Symbol("onC Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Gne.exports=kU});var dS=m((pYt,Jne)=>{"use strict";var Yne=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:aqe}=Lt(),Aqe=Lp();Wne()===void 0&&Vne(new Aqe);function Vne(t){if(!t||typeof t.dispatch!="function")throw new aqe("Argument agent must implement Agent");Object.defineProperty(globalThis,Yne,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Wne(){return globalThis[Yne]}Jne.exports={setGlobalDispatcher:Vne,getGlobalDispatcher:Wne}});var hS=m((EYt,zne)=>{"use strict";zne.exports=class{#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 Kne=m((CYt,jne)=>{"use strict";var cqe=V1();jne.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new cqe(r,o,s,i);return r(a,A)}}});var $ne=m((IYt,Xne)=>{"use strict";var uqe=rS();Xne.exports=t=>e=>function(n,s){return e(n,new uqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var ese=m((yYt,Zne)=>{"use strict";var lqe=dt(),{InvalidArgumentError:dqe,RequestAbortedError:hqe}=Lt(),fqe=hS(),vU=class extends fqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new dqe("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,n,s){let o=lqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new hqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function gqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new vU({maxSize:i},s);return e(n,o)}}Zne.exports=gqe});var nse=m((BYt,rse)=>{"use strict";var{isIP:pqe}=b("node:net"),{lookup:mqe}=b("node:dns"),Eqe=hS(),{InvalidArgumentError:Jp,InformationalError:Cqe}=Lt(),tse=Math.pow(2,31)-1,_U=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Cqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){mqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===tse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===tse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new FU(this,e,r)}},FU=class extends Eqe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Moe(i)&&(r[s]=i);break;case"id":Loe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Moe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Loe(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}}};Uoe.exports={EventSourceStream:IP}});var Joe=m((ZYt,Woe)=>{"use strict";var{pipeline:xWe}=b("node:stream"),{fetching:RWe}=bI(),{makeRequest:DWe}=Kp(),{webidl:fu}=zn(),{EventSourceStream:kWe}=Poe(),{parseMIMEType:vWe}=$s(),{createFastMessageEvent:_We}=rm(),{isNetworkError:Ooe}=yI(),{delay:FWe}=EP(),{kEnumerableProperty:Gh}=dt(),{environmentSettingsObject:Hoe}=Ti(),Goe=!1,qoe=3e3,MI=0,Yoe=1,LI=2,MWe="anonymous",LWe="use-credentials",am=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=MI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),Goe||(Goe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:qoe};let s=Hoe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=MWe;r.withCredentials&&(o=LWe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Hoe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=DWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===LI)return;this.#r=MI;let e={request:this.#s,dispatcher:this.#a},r=n=>{Ooe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Ooe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?vWe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=Yoe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new kWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(_We(A.type,A.options))}});xWe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=RWe(e)}async#c(){this.#r!==LI&&(this.#r=MI,this.dispatchEvent(new Event("error")),await FWe(this.#o.reconnectionTime),this.#r===MI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==LI&&(this.#r=LI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Voe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:MI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Yoe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1}};Object.defineProperties(am,Voe);Object.defineProperties(am.prototype,Voe);Object.defineProperties(am.prototype,{close:Gh,onerror:Gh,onmessage:Gh,onopen:Gh,readyState:Gh,url:Gh,withCredentials:Gh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);Woe.exports={EventSource:am,defaultReconnectionTime:qoe}});var tN=m((eVt,Ye)=>{"use strict";var UWe=Fp(),zoe=HC(),PWe=Mp(),OWe=Vte(),HWe=Lp(),GWe=VL(),qWe=gre(),YWe=yre(),joe=Lt(),eN=dt(),{InvalidArgumentError:ZS}=joe,Am=ane(),VWe=qC(),WWe=SU(),JWe=qne(),zWe=xU(),jWe=hU(),KWe=rS(),{getGlobalDispatcher:Koe,setGlobalDispatcher:XWe}=dS(),$We=hS(),ZWe=V1(),eJe=W1();Object.assign(zoe.prototype,Am);Ye.exports.Dispatcher=zoe;Ye.exports.Client=UWe;Ye.exports.Pool=PWe;Ye.exports.BalancedPool=OWe;Ye.exports.Agent=HWe;Ye.exports.ProxyAgent=GWe;Ye.exports.EnvHttpProxyAgent=qWe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?lO:C.type==="?"?uO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),Z=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var Ke="";Ae===""&&e!==wN&&(Ke="$");var it=z+Z+Ae+Ke+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===wN)return[n,s];if(!s)return jje(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=zje;function zje(){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?lO:e.dot?Oje:Hje,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===zh?r:typeof o=="string"?Kje(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=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;jI.sep!=="/"&&(e=e.split(jI.sep).join("/")),e=e.split(GAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(zh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===zh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===zh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===zh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===zh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function jje(t){return t.replace(/\\(.)/g,"$1")}function Kje(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ZI=m((j7t,jAe)=>{"use strict";var nKe="2.0.0",sKe=Number.MAX_SAFE_INTEGER||9007199254740991,iKe=16,oKe=250,aKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];jAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:iKe,MAX_SAFE_BUILD_LENGTH:oKe,MAX_SAFE_INTEGER:sKe,RELEASE_TYPES:aKe,SEMVER_SPEC_VERSION:nKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ey=m((K7t,KAe)=>{"use strict";var AKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};KAe.exports=AKe});var mm=m((xA,XAe)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:hO,MAX_SAFE_BUILD_LENGTH:cKe,MAX_LENGTH:uKe}=ZI(),lKe=ey();xA=XAe.exports={};var dKe=xA.re=[],hKe=xA.safeRe=[],me=xA.src=[],fKe=xA.safeSrc=[],Ee=xA.t={},gKe=0,fO="[a-zA-Z0-9-]",pKe=[["\\s",1],["\\d",uKe],[fO,cKe]],mKe=t=>{for(let[e,r]of pKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};Zne.exports=UU});var fS=m((FYt,sse)=>{"use strict";var tse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bqe}=Lt(),Qqe=Up();nse()===void 0&&rse(new Qqe);function rse(t){if(!t||typeof t.dispatch!="function")throw new bqe("Argument agent must implement Agent");Object.defineProperty(globalThis,tse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function nse(){return globalThis[tse]}sse.exports={setGlobalDispatcher:rse,getGlobalDispatcher:nse}});var gS=m((LYt,ise)=>{"use strict";ise.exports=class{#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 ase=m((UYt,ose)=>{"use strict";var wqe=J1();ose.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let A=new wqe(r,o,s,i);return r(a,A)}}});var cse=m((PYt,Ase)=>{"use strict";var Sqe=sS();Ase.exports=t=>e=>function(n,s){return e(n,new Sqe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var lse=m((OYt,use)=>{"use strict";var Nqe=dt(),{InvalidArgumentError:Tqe,RequestAbortedError:xqe}=Lt(),Rqe=gS(),PU=class extends Rqe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new Tqe("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,n,s){let o=Nqe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new xqe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function Dqe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new PU({maxSize:i},s);return e(n,o)}}use.exports=Dqe});var fse=m((HYt,hse)=>{"use strict";var{isIP:kqe}=b("node:net"),{lookup:vqe}=b("node:dns"),_qe=gS(),{InvalidArgumentError:zp,InformationalError:Fqe}=Lt(),dse=Math.pow(2,31)-1,OU=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Fqe("No DNS entries found"));return}this.setRecords(e,a);let A=this.#n.get(e.hostname),c=this.pick(e,A,i.affinity),u;typeof c.port=="number"?u=`:${c.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${c.family===6?`[${c.address}]`:c.address}${u}`)});else{let o=this.pick(e,s,i.affinity);if(o==null){this.#n.delete(e.hostname),this.runLookup(e,r,n);return}let a;typeof o.port=="number"?a=`:${o.port}`:e.port!==""?a=`:${e.port}`:a="",n(null,`${e.protocol}//${o.family===6?`[${o.address}]`:o.address}${a}`)}}#r(e,r,n){vqe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===dse?(r.offset=0,n=4):(r.offset++,n=(r.offset&1)===1?6:4)),i[n]!=null&&i[n].ips.length>0?a=i[n]:a=i[n===4?6:4]):a=i[n],a==null||a.ips.length===0)return s;a.offset==null||a.offset===dse?a.offset=0:a.offset++;let A=a.offset%a.ips.length;return s=a.ips[A]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(A,1),this.pick(e,r,n)):s}setRecords(e,r){let n=Date.now(),s={records:{4:null,6:null}};for(let i of r){i.timestamp=n,typeof i.ttl=="number"?i.ttl=Math.min(i.ttl,this.#e):i.ttl=this.#e;let o=s.records[i.family]??{ips:[]};o.ips.push(i),s.records[i.family]=o}this.#n.set(e.hostname,s)}getHandler(e,r){return new HU(this,e,r)}},HU=class extends _qe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Joe(i)&&(r[s]=i);break;case"id":zoe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Joe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&zoe(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}}};joe.exports={EventSourceStream:SP}});var sae=m((EVt,nae)=>{"use strict";var{pipeline:VWe}=b("node:stream"),{fetching:WWe}=QI(),{makeRequest:JWe}=$p(),{webidl:fu}=zn(),{EventSourceStream:zWe}=Koe(),{parseMIMEType:jWe}=Xs(),{createFastMessageEvent:KWe}=nm(),{isNetworkError:$oe}=BI(),{delay:$We}=QP(),{kEnumerableProperty:qh}=dt(),{environmentSettingsObject:Xoe}=Ti(),Zoe=!1,eae=3e3,LI=0,tae=1,UI=2,XWe="anonymous",ZWe="use-credentials",Am=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=LI;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),fu.util.markAsUncloneable(this);let n="EventSource constructor";fu.argumentLengthCheck(arguments,1,n),Zoe||(Zoe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=fu.converters.USVString(e,n,"url"),r=fu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:eae};let s=Xoe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=XWe;r.withCredentials&&(o=ZWe,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Xoe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=JWe(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===UI)return;this.#r=LI;let e={request:this.#s,dispatcher:this.#a},r=n=>{$oe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if($oe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?jWe(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=tae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new zWe({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(KWe(A.type,A.options))}});VWe(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=WWe(e)}async#c(){this.#r!==UI&&(this.#r=LI,this.dispatchEvent(new Event("error")),await $We(this.#o.reconnectionTime),this.#r===LI&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A()))}close(){fu.brandCheck(this,t),this.#r!==UI&&(this.#r=UI,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},rae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:LI,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:tae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:UI,writable:!1}};Object.defineProperties(Am,rae);Object.defineProperties(Am.prototype,rae);Object.defineProperties(Am.prototype,{close:qh,onerror:qh,onmessage:qh,onopen:qh,readyState:qh,url:qh,withCredentials:qh});fu.converters.EventSourceInitDict=fu.dictionaryConverter([{key:"withCredentials",converter:fu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:fu.converters.any}]);nae.exports={EventSource:Am,defaultReconnectionTime:eae}});var nN=m((CVt,Ye)=>{"use strict";var eJe=Mp(),iae=GC(),tJe=Lp(),rJe=rre(),nJe=Up(),sJe=$L(),iJe=Sre(),oJe=kre(),oae=Lt(),rN=dt(),{InvalidArgumentError:tN}=oae,cm=Ene(),aJe=YC(),AJe=kU(),cJe=ese(),uJe=FU(),lJe=CU(),dJe=sS(),{getGlobalDispatcher:aae,setGlobalDispatcher:hJe}=fS(),fJe=gS(),gJe=J1(),pJe=z1();Object.assign(iae.prototype,cm);Ye.exports.Dispatcher=iae;Ye.exports.Client=eJe;Ye.exports.Pool=tJe;Ye.exports.BalancedPool=rJe;Ye.exports.Agent=nJe;Ye.exports.ProxyAgent=sJe;Ye.exports.EnvHttpProxyAgent=iJe;Ye.exports Line truncated
%s`,M,M,C,n);var Y=C.type==="*"?mO:C.type==="?"?pO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var v=!1;switch(n.charAt(0)){case"[":case".":case"(":v=!0}for(var P=a.length-1;P>-1;P--){var D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),ne=n.slice(D.reEnd-8,D.reEnd),Ae=n.slice(D.reEnd);ne+=Ae;var ge=z.split("(").length-1,De=Ae;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");Ae=De;var $e="";Ae===""&&e!==NN&&($e="$");var it=z+ee+Ae+$e+ne;n=it}if(n!==""&&s&&(n="(?=.)"+n),v&&(n=d+n),e===NN)return[n,s];if(!s)return lKe(t);var Wt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Wt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Ui.makeRe=function(t,e){return new An(t,e||{}).makeRe()};An.prototype.makeRe=uKe;function uKe(){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?mO:e.dot?rKe:nKe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===jh?r:typeof o=="string"?dKe(o):o._src}).join("\\/")}).join("|");s="^(?:"+s+")$",this.negate&&(s="^(?!"+s+").*$");try{this.regexp=new RegExp(s,n)}catch{this.regexp=!1}return this.regexp}Ui.match=function(t,e,r){r=r||{};var n=new An(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};An.prototype.match=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;KI.sep!=="/"&&(e=e.split(KI.sep).join("/")),e=e.split(ZAe),this.debug(this.pattern,"split",e);var s=this.set;this.debug(this.pattern,"set",s);var i,o;for(o=e.length-1;o>=0&&(i=e[o],!i);o--);for(o=0;o<s.length;o++){var a=s[o],A=e;n.matchBase&&a.length===1&&(A=[i]);var c=this.matchOne(A,a,r);if(c)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};An.prototype.matchOne=function(t,e,r){return e.indexOf(jh)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};An.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===jh){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===jh){a=i;break}var A=e.slice(s,o),c=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(A.length){var l=t.slice(n,n+A.length);if(!this._matchOne(l,A,r,0,0))return!1;n+=A.length}var d=0;if(u.length){if(u.length+n>t.length)return!1;var h=t.length-u.length;if(this._matchOne(t,u,r,h,0))d=u.length;else{if(t[t.length-1]!==""||n+u.length===t.length||(h--,!this._matchOne(t,u,r,h,0)))return!1;d=u.length+1}}if(!c.length){var f=!!d;for(i=n;i<t.length-d;i++){var p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],E=I[0],C=0,y=[0],R=0;R<c.length;R++){var M=c[R];M===jh?(y.push(C),E=[[],0],I.push(E)):(E[0].push(M),C++)}for(var Y=I.length-1,v=t.length-d,P=0;P<I.length;P++)I[P][1]=v-(y[Y--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};An.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var A=r;A<t.length;A++){o=!0;var c=t[A];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1}return o}for(var u=a[0],l=a[1];r<=l;){var d=this._matchOne(t.slice(0,r+u.length),u,s,r,0);if(d&&i<this.maxGlobstarRecursion){var h=this._matchGlobStarBodySections(t,e,r+u.length,n+1,s,i+1,o);if(h!==!1)return h}var c=t[r];if(c==="."||c===".."||!this.options.dot&&c.charAt(0)===".")return!1;r++}return s||null};An.prototype._matchOne=function(t,e,r,n,s){var i,o,a,A;for(i=n,o=s,a=t.length,A=e.length;i<a&&o<A;i++,o++){this.debug("matchOne loop");var c=e[o],u=t[i];if(this.debug(e,c,u),c===!1||c===jh)return!1;var l;if(typeof c=="string"?(l=u===c,this.debug("string match",c,u,l)):(l=u.match(c),this.debug("pattern match",c,u,l)),!l)return!1}if(i===a&&o===A)return!0;if(i===a)return r;if(o===A)return i===a-1&&t[i]==="";throw new Error("wtf?")};function lKe(t){return t.replace(/\\(.)/g,"$1")}function dKe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var ty=m((hWt,lce)=>{"use strict";var IKe="2.0.0",yKe=Number.MAX_SAFE_INTEGER||9007199254740991,BKe=16,bKe=250,QKe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];lce.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:BKe,MAX_SAFE_BUILD_LENGTH:bKe,MAX_SAFE_INTEGER:yKe,RELEASE_TYPES:QKe,SEMVER_SPEC_VERSION:IKe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ry=m((fWt,dce)=>{"use strict";var wKe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};dce.exports=wKe});var Em=m((xA,hce)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:yO,MAX_SAFE_BUILD_LENGTH:SKe,MAX_LENGTH:NKe}=ty(),TKe=ry();xA=hce.exports={};var xKe=xA.re=[],RKe=xA.safeRe=[],me=xA.src=[],DKe=xA.safeSrc=[],Ee=xA.t={},kKe=0,BO="[a-zA-Z0-9-]",vKe=[["\\s",1],["\\d",NKe],[BO,SKe]],_Ke=t=>{for(let[e,r]of vKe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
`).join(`
`+i),t.push(s+"m+"+lT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=JZe()+e+" "+t[0]}function JZe(){return Dn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function zZe(...t){return process.stderr.write(uT.formatWithOptions(Dn.inspectOpts,...t)+`
`)}function jZe(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function KZe(){return process.env.DEBUG}function XZe(t){t.inspectOpts={};let e=Object.keys(Dn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dn.inspectOpts[e[r]]}lT.exports=e3()(Dn);var{formatters:Nle}=lT.exports;Nle.o=function(t){return this.inspectOpts.colors=this.useColors,uT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Nle.O=function(t){return this.inspectOpts.colors=this.useColors,uT.inspect(t,this.inspectOpts)}});var dT=m((Izt,n3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?n3.exports=yle():n3.exports=Tle()});var Dle=m(ai=>{"use strict";var $Ze=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),ZZe=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xle=ai&&ai.__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)&&$Ze(e,t,r);return ZZe(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var eet=xle(b("http")),tet=xle(b("https"));async function Rle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Rle;async function ret(t){let r=(await Rle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=ret;function net(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?tet:eet).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=net});var i3=m(Hi=>{"use strict";var vle=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),set=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_le=Hi&&Hi.__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)&&vle(e,t,r);return set(e,t),e},iet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&vle(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var oet=_le(b("net")),kle=_le(b("http")),aet=b("https");iet(Dle(),Hi);var kA=Symbol("AgentBaseInternalState"),s3=class extends kle.Agent{constructor(e){super(e),this[kA]={}}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 oet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?aet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof kle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=s3});var Fle=m(Sm=>{"use strict";var Aet=Sm&&Sm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Sm,"__esModule",{value:!0});Sm.parseProxyResponse=void 0;var cet=Aet(dT()),hT=(0,cet.default)("https-proxy-agent:parse-proxy-response");function uet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),hT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),hT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+hT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=uet()+e+" "+t[0]}function uet(){return Dn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function det(...t){return process.stderr.write(dT.formatWithOptions(Dn.inspectOpts,...t)+`
`)}function het(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function fet(){return process.env.DEBUG}function get(t){t.inspectOpts={};let e=Object.keys(Dn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Dn.inspectOpts[e[r]]}hT.exports=A3()(Dn);var{formatters:qle}=hT.exports;qle.o=function(t){return this.inspectOpts.colors=this.useColors,dT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};qle.O=function(t){return this.inspectOpts.colors=this.useColors,dT.inspect(t,this.inspectOpts)}});var fT=m((Uzt,l3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?l3.exports=Lle():l3.exports=Yle()});var Jle=m(ai=>{"use strict";var pet=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),met=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vle=ai&&ai.__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)&&pet(e,t,r);return met(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Eet=Vle(b("http")),Cet=Vle(b("https"));async function Wle(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Wle;async function Iet(t){let r=(await Wle(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=Iet;function yet(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Cet:Eet).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=yet});var h3=m(Hi=>{"use strict";var jle=Hi&&Hi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Bet=Hi&&Hi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Kle=Hi&&Hi.__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)&&jle(e,t,r);return Bet(e,t),e},bet=Hi&&Hi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&jle(e,t,r)};Object.defineProperty(Hi,"__esModule",{value:!0});Hi.Agent=void 0;var Qet=Kle(b("net")),zle=Kle(b("http")),wet=b("https");bet(Jle(),Hi);var kA=Symbol("AgentBaseInternalState"),d3=class extends zle.Agent{constructor(e){super(e),this[kA]={}}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 Qet.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?wet.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof zle.Agent)try{return a.addRequest(e,s)}catch(A){return n(A)}this[kA].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kA].currentSocket;if(this[kA].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kA].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kA]&&(this[kA].defaultPort=e)}get protocol(){return this[kA].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kA]&&(this[kA].protocol=e)}};Hi.Agent=d3});var $le=m(Nm=>{"use strict";var Net=Nm&&Nm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Nm,"__esModule",{value:!0});Nm.parseProxyResponse=void 0;var Tet=Net(fT()),gT=(0,Tet.default)("https-proxy-agent:parse-proxy-response");function xet(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?c(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",A),t.removeListener("readable",i)}function a(){o(),gT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function A(u){o(),gT("onerror %o",u),r(u)}function c(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){hT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}hT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Sm.parseProxyResponse=uet});var Hle=m(ko=>{"use strict";var det=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),het=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Ple=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&det(e,t,r);return het(e,t),e},Ole=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var fT=Ple(b("net")),Mle=Ple(b("tls")),fet=Ole(b("assert")),get=Ole(dT()),pet=i3(),met=b("url"),Eet=Fle(),gy=(0,get.default)("https-proxy-agent"),Lle=t=>t.servername===void 0&&t.host&&!fT.isIP(t.host)?{...t,servername:t.host}:t,gT=class extends pet.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new met.URL(e):e,this.proxyHeaders=r?.headers??{},gy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Ule(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(gy("Creating `tls.Socket`: %o",this.connectOpts),s=Mle.connect(Lle(this.connectOpts))):(gy("Creating `net.Socket`: %o",this.connectOpts),s=fT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=fT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){gT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],E=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let R=y.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,R).toLowerCase(),Y=y.slice(R+1).trimStart(),v=C[M];typeof v=="string"?C[M]=[v,Y]:Array.isArray(v)?v.push(Y):C[M]=Y}gT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:E,headers:C},buffered:l})}t.on("error",A),t.on("end",a),i()})}Nm.parseProxyResponse=xet});var nde=m(ko=>{"use strict";var Ret=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Det=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),tde=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ret(e,t,r);return Det(e,t),e},rde=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var pT=tde(b("net")),Xle=tde(b("tls")),ket=rde(b("assert")),vet=rde(fT()),_et=h3(),Fet=b("url"),Met=$le(),my=(0,vet.default)("https-proxy-agent"),Zle=t=>t.servername===void 0&&t.host&&!pT.isIP(t.host)?{...t,servername:t.host}:t,mT=class extends _et.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Fet.URL(e):e,this.proxyHeaders=r?.headers??{},my("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ede(r,"headers"):null,host:n,port:s}}async connect(e,r){let{proxy:n}=this;if(!r.host)throw new TypeError('No "host" provided');let s;n.protocol==="https:"?(my("Creating `tls.Socket`: %o",this.connectOpts),s=Xle.connect(Zle(this.connectOpts))):(my("Creating `net.Socket`: %o",this.connectOpts),s=pT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=pT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(n.username||n.password){let d=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(d).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let d of Object.keys(i))a+=`${d}: ${i[d]}\r
`;let A=(0,Eet.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Cet),r.secureEndpoint?(gy("Upgrading socket connection to TLS"),Mle.connect({...Ule(Lle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new fT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{gy("Replaying proxy buffer for failed request"),(0,fet.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};gT.protocols=["http","https"];ko.HttpsProxyAgent=gT;function Cet(t){t.resume()}function Ule(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Yle=m(vo=>{"use strict";var Iet=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),yet=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),qle=vo&&vo.__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)&&Iet(e,t,r);return yet(e,t),e},Bet=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var bet=qle(b("net")),Qet=qle(b("tls")),wet=Bet(dT()),Net=b("events"),Tet=i3(),Gle=b("url"),Nm=(0,wet.default)("http-proxy-agent"),pT=class extends Tet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Gle.URL(e):e,this.proxyHeaders=r?.headers??{},Nm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?xet(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new Gle.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Nm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Nm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let A=(0,Met.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:c,buffered:u}=await A;if(e.emit("proxyConnect",c),this.emit("proxyConnect",c,e),c.statusCode===200)return e.once("socket",Let),r.secureEndpoint?(my("Upgrading socket connection to TLS"),Xle.connect({...ede(Zle(r),"host","path","port"),socket:s})):s;s.destroy();let l=new pT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{my("Replaying proxy buffer for failed request"),(0,ket.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};mT.protocols=["http","https"];ko.HttpsProxyAgent=mT;function Let(t){t.resume()}function ede(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ode=m(vo=>{"use strict";var Uet=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Pet=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ide=vo&&vo.__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)&&Uet(e,t,r);return Pet(e,t),e},Oet=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var Het=ide(b("net")),Get=ide(b("tls")),qet=Oet(fT()),Yet=b("events"),Vet=h3(),sde=b("url"),Tm=(0,qet.default)("http-proxy-agent"),ET=class extends Vet.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new sde.URL(e):e,this.proxyHeaders=r?.headers??{},Tm("Creating new HttpProxyAgent instance: %o",this.proxy.href);let n=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={...r?Wet(r,"headers"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",o=`${s}//${i}`,a=new sde.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let A=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let c=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;A["Proxy-Authorization"]=`Basic ${Buffer.from(c).toString("base64")}`}A["Proxy-Connection"]||(A["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let c of Object.keys(A)){let u=A[c];u&&e.setHeader(c,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;Tm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Tm("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
\r
`)+4,e.outputData[0].data=e._header+n.substring(s),Nm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Nm("Creating `tls.Socket`: %o",this.connectOpts),i=Qet.connect(this.connectOpts)):(Nm("Creating `net.Socket`: %o",this.connectOpts),i=bet.connect(this.connectOpts)),await(0,Net.once)(i,"connect"),i}};pT.protocols=["http","https"];vo.HttpProxyAgent=pT;function xet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Bde=m(RT=>{"use strict";Object.defineProperty(RT,"__esModule",{value:!0});RT.state=void 0;RT.state={instrumenterImplementation:void 0}});var Pde=m(FT=>{"use strict";Object.defineProperty(FT,"__esModule",{value:!0});FT.state=void 0;FT.state={operationRequestMap:new WeakMap}});var $fe=m((zur,Qot)=>{Qot.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var ege=m((jur,Zfe)=>{var wot=$fe();Zfe.exports={version:wot.version}});var iR=m(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});jm.isJsonObject=jm.typeofJsonValue=void 0;function _ot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}jm.typeofJsonValue=_ot;function Fot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}jm.isJsonObject=Fot});var aR=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.base64encode=Km.base64decode=void 0;var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),oR=[];for(let t=0;t<vu.length;t++)oR[vu[t].charCodeAt(0)]=t;oR[45]=vu.indexOf("+");oR[95]=vu.indexOf("/");function Mot(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=oR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}Km.base64decode=Mot;function Lot(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=vu[s|n>>6],e+=vu[n&63],r=0;break}return r&&(e+=vu[s],e+="=",r==1&&(e+="=")),e}Km.base64encode=Lot});var ige=m(AR=>{"use strict";Object.defineProperty(AR,"__esModule",{value:!0});AR.utf8read=void 0;var $5=t=>String.fromCharCode.apply(String,t);function Uot(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push($5(n)),s=0);return r.length?(s&&r.push($5(n.slice(0,s))),r.join("")):$5(n.slice(0,s))}AR.utf8read=Uot});var cB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var Pot;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(Pot=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function Oot(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=Oot;var Hot;(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"})(Hot=nc.WireType||(nc.WireType={}))});var uR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function Got(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=Got;function qot(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=qot;var cR=65536*65536;function Yot(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=cR&&(s=s+(n/cR|0),n=n%cR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=Yot;function Vot(t,e){if(e>>>0<=2097151)return""+(cR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=Vot;function Wot(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)}}hi.varint32write=Wot;function Jot(){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}hi.varint32read=Jot});var td=m(ed=>{"use strict";Object.defineProperty(ed,"__esModule",{value:!0});ed.PbLong=ed.PbULong=ed.detectBi=void 0;var uB=uR(),or;function oge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}ed.detectBi=oge;oge();function age(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Age=/^-?[0-9]+$/,dR=4294967296,lR=2147483648,hR=c Line truncated
`)}};LR.RpcError=wH});var NH=m(PR=>{"use strict";Object.defineProperty(PR,"__esModule",{value:!0});PR.mergeRpcOptions=void 0;var Uge=ct();function gAt(t,e){if(!e)return t;let r={};UR(t,r),UR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Uge.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Uge.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},UR(t.meta,r.meta),UR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}PR.mergeRpcOptions=gAt;function UR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var xH=m(Tf=>{"use strict";Object.defineProperty(Tf,"__esModule",{value:!0});Tf.Deferred=Tf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=Tf.DeferredState||(Tf.DeferredState={}));var TH=class{constructor(e=!0){this._state=oc.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!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};Tf.Deferred=TH});var DH=m(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.RpcOutputStreamController=void 0;var Pge=xH(),xf=ct(),RH=class{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){xf.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){xf.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){xf.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(){xf.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:()=>{let e=this._itState;xf.assert(e,"bad state"),xf.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 Pge.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;xf.assert(n.state==Pge.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};OR.RpcOutputStreamController=RH});var vH=m(n0=>{"use strict";var pAt=n0&&n0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(n0,"__esModule",{value:!0});n0.UnaryCall=void 0;var kH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 pAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};n0.UnaryCall=kH});var FH=m(s0=>{"use strict";var mAt=s0&&s0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(s0,"__esModule",{value:!0});s0.ServerStreamingCall=void 0;var _H=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Tm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Tm("Creating `tls.Socket`: %o",this.connectOpts),i=Get.connect(this.connectOpts)):(Tm("Creating `net.Socket`: %o",this.connectOpts),i=Het.connect(this.connectOpts)),await(0,Yet.once)(i,"connect"),i}};ET.protocols=["http","https"];vo.HttpProxyAgent=ET;function Wet(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Ude=m(kT=>{"use strict";Object.defineProperty(kT,"__esModule",{value:!0});kT.state=void 0;kT.state={instrumenterImplementation:void 0}});var the=m(LT=>{"use strict";Object.defineProperty(LT,"__esModule",{value:!0});LT.state=void 0;LT.state={operationRequestMap:new WeakMap}});var fge=m((dlr,Hot)=>{Hot.exports={name:"@actions/cache",version:"6.0.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.0","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.0","@actions/io":"^3.0.0","@azure/core-rest-pipeline":"^1.22.0","@azure/storage-blob":"^12.30.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.3"},devDependencies:{"@protobuf-ts/plugin":"^2.9.4","@types/node":"^25.1.0","@types/semver":"^7.7.1",typescript:"^5.2.2"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var pge=m((hlr,gge)=>{var Got=fge();gge.exports={version:Got.version}});var aR=m(Km=>{"use strict";Object.defineProperty(Km,"__esModule",{value:!0});Km.isJsonObject=Km.typeofJsonValue=void 0;function $ot(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Km.typeofJsonValue=$ot;function Xot(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Km.isJsonObject=Xot});var cR=m($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});$m.base64encode=$m.base64decode=void 0;var _u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),AR=[];for(let t=0;t<_u.length;t++)AR[_u[t].charCodeAt(0)]=t;AR[45]=_u.indexOf("+");AR[95]=_u.indexOf("/");function Zot(t){let e=t.length*3/4;t[t.length-2]=="="?e-=2:t[t.length-1]=="="&&(e-=1);let r=new Uint8Array(e),n=0,s=0,i,o=0;for(let a=0;a<t.length;a++){if(i=AR[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
`:case"\r":case" ":case" ":continue;default:throw Error("invalid base64 string.")}switch(s){case 0:o=i,s=1;break;case 1:r[n++]=o<<2|(i&48)>>4,o=i,s=2;break;case 2:r[n++]=(o&15)<<4|(i&60)>>2,o=i,s=3;break;case 3:r[n++]=(o&3)<<6|i,s=0;break}}if(s==1)throw Error("invalid base64 string.");return r.subarray(0,n)}$m.base64decode=Zot;function eat(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=_u[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=_u[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=_u[s|n>>6],e+=_u[n&63],r=0;break}return r&&(e+=_u[s],e+="=",r==1&&(e+="=")),e}$m.base64encode=eat});var yge=m(uR=>{"use strict";Object.defineProperty(uR,"__esModule",{value:!0});uR.utf8read=void 0;var oH=t=>String.fromCharCode.apply(String,t);function tat(t){if(t.length<1)return"";let e=0,r=[],n=[],s=0,i,o=t.length;for(;e<o;)i=t[e++],i<128?n[s++]=i:i>191&&i<224?n[s++]=(i&31)<<6|t[e++]&63:i>239&&i<365?(i=((i&7)<<18|(t[e++]&63)<<12|(t[e++]&63)<<6|t[e++]&63)-65536,n[s++]=55296+(i>>10),n[s++]=56320+(i&1023)):n[s++]=(i&15)<<12|(t[e++]&63)<<6|t[e++]&63,s>8191&&(r.push(oH(n)),s=0);return r.length?(s&&r.push(oH(n.slice(0,s))),r.join("")):oH(n.slice(0,s))}uR.utf8read=tat});var lB=m(nc=>{"use strict";Object.defineProperty(nc,"__esModule",{value:!0});nc.WireType=nc.mergeBinaryOptions=nc.UnknownFieldHandler=void 0;var rat;(function(t){t.symbol=Symbol.for("protobuf-ts/unknown"),t.onRead=(r,n,s,i,o)=>{(e(n)?n[t.symbol]:n[t.symbol]=[]).push({no:s,wireType:i,data:o})},t.onWrite=(r,n,s)=>{for(let{no:i,wireType:o,data:a}of t.list(n))s.tag(i,o).raw(a)},t.list=(r,n)=>{if(e(r)){let s=r[t.symbol];return n?s.filter(i=>i.no==n):s}return[]},t.last=(r,n)=>t.list(r,n).slice(-1)[0];let e=r=>r&&Array.isArray(r[t.symbol])})(rat=nc.UnknownFieldHandler||(nc.UnknownFieldHandler={}));function nat(t,e){return Object.assign(Object.assign({},t),e)}nc.mergeBinaryOptions=nat;var sat;(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"})(sat=nc.WireType||(nc.WireType={}))});var dR=m(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function iat(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=iat;function oat(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),A=(a?o|128:o)&255;if(r.push(A),!a)return}let n=t>>>28&15|(e&7)<<4,s=e>>3!=0;if(r.push((s?n|128:n)&255),!!s){for(let i=3;i<31;i=i+7){let o=e>>>i,a=!!(o>>>7),A=(a?o|128:o)&255;if(r.push(A),!a)return}r.push(e>>>31&1)}}hi.varint64write=oat;var lR=65536*65536;function aat(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let A=Number(t.slice(o,a));s*=r,n=n*r+A,n>=lR&&(s=s+(n/lR|0),n=n%lR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=aat;function Aat(t,e){if(e>>>0<=2097151)return""+(lR*e+(t>>>0));let r=t&16777215,n=(t>>>24|e<<8)>>>0&16777215,s=e>>16&65535,i=r+n*6777216+s*6710656,o=n+s*8147497,a=s*2,A=1e7;i>=A&&(o+=Math.floor(i/A),i%=A),o>=A&&(a+=Math.floor(o/A),o%=A);function c(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return c(a,0)+c(o,a)+c(i,1)}hi.int64toString=Aat;function cat(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)}}hi.varint32write=cat;function uat(){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}hi.varint32read=uat});var rd=m(td=>{"use strict";Object.defineProperty(td,"__esModule",{value:!0});td.PbLong=td.PbULong=td.detectBi=void 0;var dB=dR(),or;function Bge(){let t=new DataView(new ArrayBuffer(8));or=globalThis.BigInt!==void 0&&typeof t.getBigInt64=="function"&&typeof t.getBigUint64=="function"&&typeof t.setBigInt64=="function"&&typeof t.setBigUint64=="function"?{MIN:BigInt("-9223372036854775808"),MAX:BigInt("9223372036854775807"),UMIN:BigInt("0"),UMAX:BigInt("18446744073709551615"),C:BigInt,V:t}:void 0}td.detectBi=Bge;Bge();function bge(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Qge=/^-?[0-9]+$/,fR=4294967296,hR=2147483648,gR=c Line truncated
`)}};PR.RpcError=vH});var FH=m(HR=>{"use strict";Object.defineProperty(HR,"__esModule",{value:!0});HR.mergeRpcOptions=void 0;var epe=ct();function kAt(t,e){if(!e)return t;let r={};OR(t,r),OR(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=epe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=epe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},OR(t.meta,r.meta),OR(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}HR.mergeRpcOptions=kAt;function OR(t,e){if(!t)return;let r=e;for(let[n,s]of Object.entries(t))s instanceof Date?r[n]=new Date(s.getTime()):Array.isArray(s)?r[n]=s.concat():r[n]=s}});var LH=m(xf=>{"use strict";Object.defineProperty(xf,"__esModule",{value:!0});xf.Deferred=xf.DeferredState=void 0;var oc;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oc=xf.DeferredState||(xf.DeferredState={}));var MH=class{constructor(e=!0){this._state=oc.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!==oc.PENDING)throw new Error(`cannot resolve ${oc[this.state].toLowerCase()}`);this._resolve(e),this._state=oc.RESOLVED}reject(e){if(this.state!==oc.PENDING)throw new Error(`cannot reject ${oc[this.state].toLowerCase()}`);this._reject(e),this._state=oc.REJECTED}resolvePending(e){this._state===oc.PENDING&&this.resolve(e)}rejectPending(e){this._state===oc.PENDING&&this.reject(e)}};xf.Deferred=MH});var PH=m(GR=>{"use strict";Object.defineProperty(GR,"__esModule",{value:!0});GR.RpcOutputStreamController=void 0;var tpe=LH(),Rf=ct(),UH=class{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){Rf.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){Rf.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){Rf.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(){Rf.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:()=>{let e=this._itState;Rf.assert(e,"bad state"),Rf.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 tpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Rf.assert(n.state==tpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};GR.RpcOutputStreamController=UH});var HH=m(s0=>{"use strict";var vAt=s0&&s0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(s0,"__esModule",{value:!0});s0.UnaryCall=void 0;var OH=class{constructor(e,r,n,s,i,o,a){this.method=e,this.requestHeaders=r,this.request=n,this.headers=s,this.response=i,this.status=o,this.trailers=a}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 vAt(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};s0.UnaryCall=OH});var qH=m(i0=>{"use strict";var _At=i0&&i0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};Object.defineProperty(i0,"__esModule",{value:!0});i0.ServerStreamingCall=void 0;var GH=class{constructor(e 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 pEe=m(gEe=>{"use strict";var gq=Hu().Buffer;gEe._dbcs=Gu;var Kn=-1,fEe=-2,ta=-10,Os=-1e3,v0=new Array(256),tb=-1;for(g2=0;g2<256;g2++)v0[g2]=Kn;var g2;function Gu(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]=v0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(v0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(v0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=fEe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function t0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(Omt.has(s)){r=s;break}}return r}function r0t(t,e){let r=t0t(e);r!==""&&(t.referrerPolicy=r)}function n0t(){return"allowed"}function s0t(){return"success"}function i0t(){return"success"}function o0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function a0t(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&&vY(t.origin)&&!vY(Zf(t))&&(e=null);break;case"same-origin":ub(t,Zf(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function U0(t,e){return t}function A0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:U0(t.domainLookupStartTime,r),domainLookupEndTime:U0(t.domainLookupEndTime,r),connectionStartTime:U0(t.connectionStartTime,r),connectionEndTime:U0(t.connectionEndTime,r),secureConnectionStartTime:U0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function c0t(t){return U0(Ymt.now(),t)}function u0t(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}}function WIe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function l0t(t){return{referrerPolicy:t.referrerPolicy}}function d0t(t){let e=t.referrerPolicy;lb(e);let r=null;if(t.referrer==="client"){let i=HIe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Bd.is.URL(t.referrer)&&(r=t.referrer);let n=kY(r),s=kY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??kY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Zf(t);return $f(n)&&!$f(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Zf(t);return ub(n,i)?n:$f(n)&&!$f(i)?"no-referrer":s}case"same-origin":return ub(t,n)?n:"no-referrer";case"origin-when-cross-origin":return ub(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Zf(t);return $f(n)&&!$f(i)?"no-referrer":n}}}function kY(t,e=!1){return lb(Bd.is.URL(t)),t=new URL(t),KIe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var h0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),f0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function JIe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),f0t(t)):h0t(t)}function g0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||JIe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function $f(t){return Bd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:g0t(t.origin):!1}function p0t(t){}function ub(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function m0t(t){return t.controller.state==="aborted"}function E0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function C0t(t){return Wmt[t.toLowerCase()]??t}var I0t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function zIe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,I0t),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function y0t(t,e,r,n=0,s=1){let i=zIe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Bd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>GY(a)&&a!==59,t,e);i=OY.decode(o)}return{name:n,value:i}}function V0t(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=HY(o,!0,!0,a=>a===9||a===32),!L0t.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),M0t(o)){case"content-disposition":{if(r=n=null,sa(A=>GY(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=Y0t(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=HY(a,!1,!0,A=>A===9||A===32),s=rye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=HY(a,!1,!0,A=>A===9||A===32),i=rye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function HY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function W0t(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}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function J0t(t){return t<=31||t===127}function z0t(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function GY(t){return t<=127&&t!==32&&t!==9&&!J0t(t)&&!z0t(t)}nye.exports={multipartFormDataParser:q0t,validateBoundary:G0t}});var db=m((c0r,iye)=>{"use strict";function j0t(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}iye.exports={createDeferredPromise:j0t}});var H0=m((u0r,uye)=>{"use strict";var VY=et(),{ReadableStreamFrom:K0t,readableStreamClose:X0t,fullyReadBody:$0t,extractMimeType:Z0t}=eo(),{FormData:oye,setFormDataState:eEt}=O2(),{webidl:Za}=Xn(),qY=b("node:assert"),{isErrored:YY,isDisturbed:tEt}=b("node:stream"),{isUint8Array:rEt}=b("node:util/types"),{serializeAMimeType:nEt}=na(),{multipartFormDataParser:sEt}=sye(),{createDeferredPromise:iEt}=db(),{parseJSONFromBytes:oEt}=Vu(),{utf8DecodeBytes:aEt}=_2(),{runtimeFeatures:AEt}=Wu(),cEt=AEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),H2=new TextEncoder;function uEt(){}var lEt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!tEt(e)&&!YY(e)&&e.cancel("Response object has been garbage collected").catch(uEt)});function Aye(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),qY(Za.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let c=`----formdata-undici-0${`${cEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
\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 kEe=m(DEe=>{"use strict";var Sq=Gu().Buffer;DEe._dbcs=qu;var Kn=-1,REe=-2,ta=-10,Os=-1e3,_0=new Array(256),nb=-1;for(y2=0;y2<256;y2++)_0[y2]=Kn;var y2;function qu(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]=_0.slice(0),this.decodeTableSeq=[];for(var n=0;n<r.length;n++)this._addDecodeChunk(r[n]);if(typeof t.gb18030=="function"){this.gb18030=t.gb18030();var s=this.decodeTables.length;this.decodeTables.push(_0.slice(0));var i=this.decodeTables.length;this.decodeTables.push(_0.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],A=48;A<=57;A++){if(a[A]===Kn)a[A]=Os-s;else if(a[A]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var c=this.decodeTables[Os-a[A]],u=129;u<=254;u++){if(c[u]===Kn)c[u]=Os-i;else{if(c[u]===Os-i)continue;if(c[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-c[u]],d=48;d<=57;d++)l[d]===Kn&&(l[d]=REe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function I0t(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(i0t.has(s)){r=s;break}}return r}function y0t(t,e){let r=I0t(e);r!==""&&(t.referrerPolicy=r)}function B0t(){return"allowed"}function b0t(){return"success"}function Q0t(){return"success"}function w0t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function S0t(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&&YY(t.origin)&&!YY(eg(t))&&(e=null);break;case"same-origin":db(t,eg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function P0(t,e){return t}function N0t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:P0(t.domainLookupStartTime,r),domainLookupEndTime:P0(t.domainLookupEndTime,r),connectionStartTime:P0(t.connectionStartTime,r),connectionEndTime:P0(t.connectionEndTime,r),secureConnectionStartTime:P0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T0t(t){return P0(c0t.now(),t)}function x0t(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}}function Aye(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function R0t(t){return{referrerPolicy:t.referrerPolicy}}function D0t(t){let e=t.referrerPolicy;hb(e);let r=null;if(t.referrer==="client"){let i=nye();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else bd.is.URL(t.referrer)&&(r=t.referrer);let n=qY(r),s=qY(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qY(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=eg(t);return db(n,i)?n:Zf(n)&&!Zf(i)?"no-referrer":s}case"same-origin":return db(t,n)?n:"no-referrer";case"origin-when-cross-origin":return db(t,n)?n:s;case"no-referrer-when-downgrade":{let i=eg(t);return Zf(n)&&!Zf(i)?"no-referrer":n}}}function qY(t,e=!1){return hb(bd.is.URL(t)),t=new URL(t),dye(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var k0t=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),v0t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function cye(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),v0t(t)):k0t(t)}function _0t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||cye(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Zf(t){return bd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:_0t(t.origin):!1}function F0t(t){}function db(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function M0t(t){return t.controller.state==="aborted"}function L0t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function U0t(t){return l0t[t.toLowerCase()]??t}var P0t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function uye(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),A=a.length;if(o>=A)return{value:void 0,done:!0};let{[r]:c,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=c;break;case"value":l=u;break;case"key+value":l=[c,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,P0t),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function O0t(t,e,r,n=0,s=1){let i=uye(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return bd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=sa(a=>ZY(a)&&a!==59,t,e);i=$Y.decode(o)}return{name:n,value:i}}function uEt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=sa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XY(o,!0,!0,a=>a===9||a===32),!rEt.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,sa(a=>a===32||a===9,t,e),tEt(o)){case"content-disposition":{if(r=n=null,sa(A=>ZY(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let A=cEt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(n=A.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=sa(A=>A!==10&&A!==13,t,e);a=XY(a,!1,!0,A=>A===9||A===32),s=Eye(a);break}case"content-transfer-encoding":{let a=sa(A=>A!==10&&A!==13,t,e);a=XY(a,!1,!0,A=>A===9||A===32),i=Eye(a);break}default:sa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function sa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XY(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function lEt(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}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function dEt(t){return t<=31||t===127}function hEt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function ZY(t){return t<=127&&t!==32&&t!==9&&!dEt(t)&&!hEt(t)}Cye.exports={multipartFormDataParser:AEt,validateBoundary:aEt}});var fb=m((k0r,yye)=>{"use strict";function fEt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}yye.exports={createDeferredPromise:fEt}});var G0=m((v0r,Sye)=>{"use strict";var rV=et(),{ReadableStreamFrom:gEt,readableStreamClose:pEt,fullyReadBody:mEt,extractMimeType:EEt}=eo(),{FormData:Bye,setFormDataState:CEt}=W2(),{webidl:Za}=$n(),eV=b("node:assert"),{isErrored:tV,isDisturbed:IEt}=b("node:stream"),{isUint8Array:yEt}=b("node:util/types"),{serializeAMimeType:BEt}=na(),{multipartFormDataParser:bEt}=Iye(),{createDeferredPromise:QEt}=fb(),{parseJSONFromBytes:wEt}=Wu(),{utf8DecodeBytes:SEt}=O2(),{runtimeFeatures:NEt}=Ju(),TEt=NEt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),J2=new TextEncoder;function xEt(){}var REt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!IEt(e)&&!tV(e)&&e.cancel("Response object has been garbage collected").catch(xEt)});function Qye(t,e=!1){let r=null,n=null;Za.is.ReadableStream(t)?r=t:Za.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(c){n=c},cancel(){},type:"bytes"}),eV(Za.is.ReadableStream(r));let s=null,i=null,o=null,a=null;if(typeof t=="string")i=t,a="text/plain;charset=UTF-8";else if(Za.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(Za.is.BufferSource(t))i=Za.util.getCopyOfBytesHeldByBufferSource(t);else if(Za.is.FormData(t)){let c=`----formdata-undici-0${`${TEt(1e11)}`.padStart(11,"0")}`,u=`--${c}\r
Content-Disposition: form-data`;let l=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=E=>E.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=H2.encode(u+`; name="${l(d(E))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[E,C]of t)if(typeof C=="string"){let y=J2.encode(u+`; name="${l(d(E))}"\r
\r
${d(C)}\r
`);h.push(y),o+=y.byteLength}else{let y=H2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=J2.encode(`${u}; name="${l(d(E))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
Content-Type: ${C.type||"application/octet-stream"}\r
\r
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=H2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Za.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(VY.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:K0t(t)}return(typeof i=="string"||rEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(YY(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!YY(r)&&n.enqueue(typeof c=="string"?H2.encode(c):new Uint8Array(c));queueMicrotask(()=>X0t(n))})(),[{stream:r,source:i,length:o},a]}function dEt(t,e=!1){return Za.is.ReadableStream(t)&&(qY(!VY.isDisturbed(t),"The body has already been consumed."),qY(!t.locked,"The stream is locked.")),Aye(t,e)}function hEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function fEt(t,e){return{blob(){return O0(this,n=>{let s=aye(e(this));return s===null?s="":s&&(s=nEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return O0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return O0(this,aEt,t,e)},json(){return O0(this,oEt,t,e)},formData(){return O0(this,n=>{let s=aye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=sEt(n,s),o=new oye;return eEt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new oye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return O0(this,n=>new Uint8Array(n),t,e)}}}function gEt(t,e){Object.assign(t.prototype,fEt(t,e))}function O0(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),cye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=iEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):($0t(t.body,o,i),s.promise)}function cye(t){let e=t.body;return e!=null&&(e.stream.locked||VY.isDisturbed(e.stream))}function aye(t){let e=t.headersList,r=Z0t(e);return r==="failure"?null:r}uye.exports={extractBody:Aye,safelyExtractBody:dEt,cloneBody:hEt,mixinBody:gEt,streamRegistry:lEt,bodyUnusable:cye}});var yye=m((l0r,Iye)=>{"use strict";var Ve=b("node:assert"),We=et(),{channels:lye}=Id(),WY=Nq(),{RequestContentLengthMismatchError:eg,ResponseContentLengthMismatchError:pEt,RequestAbortedError:mye,HeadersTimeoutError:mEt,HeadersOverflowError:EEt,SocketError:gb,InformationalError:G0,BodyTimeoutError:CEt,HTTPParserError:IEt,ResponseExceededMaxSizeError:yEt}=je(),{kUrl:Eye,kReset:yi,kClient:ZY,kParser:Wr,kBlocking:pb,kRunning:gs,kPending:BEt,kSize:dye,kWriting:Qd,kQueue:eA,kNoRef:hb,kKeepAliveDefaultTimeout:bEt,kHostHeader:QEt,kPendingIdx:wEt,kRunningIdx:ia,kError:oa,kPipelining:Y2,kSocket:q0,kKeepAliveTimeoutValue:W2,kMaxHeadersSize:SEt,kKeepAliveMaxTimeout:NEt,kKeepAliveTimeoutThreshold:TEt,kHeadersTimeout:xEt,kBodyTimeout:REt,kStrictContentLength:jY,kMaxRequests:hye,kCounter:DEt,kMaxResponseSize:kEt,kOnError:vEt,kResume:bd,kHTTPContext:Cye,kClosed:KY}=Xt(),mc=uIe(),_Et=Buffer.alloc(0),G2=Buffer[Symbol.species],FEt=We.removeAllListeners,JY;function MEt(){let t=process.env.JEST_WORKER_ID?CY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(hIe())}catch{}return e||(e=new WebAssembly.Module(t||CY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onStatus(new G2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderField(new G2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderValue(new G2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onBody(new G2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var zY=null,yn=null,Ec=null,q2=0,Cc=null,LEt=0,fb=1,Y0=2|fb,V2=4|fb,XY=8|LEt,$Y=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[SEt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[kEt]}setTi Line truncated
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=J2.encode(`--${c}--\r
`);h.push(I),o+=I.byteLength,p&&(o=null),i=t,s=async function*(){for(let E of h)E.stream?yield*E.stream():yield E},a=`multipart/form-data; boundary=${c}`}else if(Za.is.Blob(t))i=t,o=t.size,t.type&&(a=t.type);else if(typeof t[Symbol.asyncIterator]=="function"){if(e)throw new TypeError("keepalive");if(rV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=Za.is.ReadableStream(t)?t:gEt(t)}return(typeof i=="string"||yEt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let c=s(),u=c?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(tV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else c?.length&&!tV(r)&&n.enqueue(typeof c=="string"?J2.encode(c):new Uint8Array(c));queueMicrotask(()=>pEt(n))})(),[{stream:r,source:i,length:o},a]}function DEt(t,e=!1){return Za.is.ReadableStream(t)&&(eV(!rV.isDisturbed(t),"The body has already been consumed."),eV(!t.locked,"The stream is locked.")),Qye(t,e)}function kEt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function vEt(t,e){return{blob(){return H0(this,n=>{let s=bye(e(this));return s===null?s="":s&&(s=BEt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return H0(this,n=>new Uint8Array(n).buffer,t,e)},text(){return H0(this,SEt,t,e)},json(){return H0(this,wEt,t,e)},formData(){return H0(this,n=>{let s=bye(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=bEt(n,s),o=new Bye;return CEt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Bye;for(let[a,A]of i)o.append(a,A);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return H0(this,n=>new Uint8Array(n),t,e)}}}function _Et(t,e){Object.assign(t.prototype,vEt(t,e))}function H0(t,e,r,n){try{Za.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),wye(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=QEt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(A){i(A)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(mEt(t.body,o,i),s.promise)}function wye(t){let e=t.body;return e!=null&&(e.stream.locked||rV.isDisturbed(e.stream))}function bye(t){let e=t.headersList,r=EEt(e);return r==="failure"?null:r}Sye.exports={extractBody:Qye,safelyExtractBody:DEt,cloneBody:kEt,mixinBody:_Et,streamRegistry:REt,bodyUnusable:wye}});var Lye=m((_0r,Mye)=>{"use strict";var Ve=b("node:assert"),Je=et(),{channels:Nye}=yd(),nV=Uq(),{RequestContentLengthMismatchError:tg,ResponseContentLengthMismatchError:FEt,RequestAbortedError:vye,HeadersTimeoutError:MEt,HeadersOverflowError:LEt,SocketError:mb,InformationalError:q0,BodyTimeoutError:UEt,HTTPParserError:PEt,ResponseExceededMaxSizeError:OEt}=Ke(),{kUrl:_ye,kReset:yi,kClient:uV,kParser:Wr,kBlocking:Eb,kRunning:gs,kPending:HEt,kSize:Tye,kWriting:wd,kQueue:eA,kNoRef:gb,kKeepAliveDefaultTimeout:GEt,kHostHeader:qEt,kPendingIdx:YEt,kRunningIdx:ia,kError:oa,kPipelining:K2,kSocket:Y0,kKeepAliveTimeoutValue:X2,kMaxHeadersSize:VEt,kKeepAliveMaxTimeout:WEt,kKeepAliveTimeoutThreshold:JEt,kHeadersTimeout:zEt,kBodyTimeout:jEt,kStrictContentLength:oV,kMaxRequests:xye,kCounter:KEt,kMaxResponseSize:$Et,kOnError:XEt,kResume:Qd,kHTTPContext:Fye,kClosed:aV}=$t(),mc=SIe(),ZEt=Buffer.alloc(0),z2=Buffer[Symbol.species],eCt=Je.removeAllListeners,sV;function tCt(){let t=process.env.JEST_WORKER_ID?RY():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(xIe())}catch{}return e||(e=new WebAssembly.Module(t||RY())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onStatus(new z2(Ec.buffer,o,i))},wasm_on_message_begin:n=>(Ve(yn.ptr===n),yn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderField(new z2(Ec.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onHeaderValue(new z2(Ec.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(Ve(yn.ptr===n),yn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{Ve(yn.ptr===n);let o=s-Cc+Ec.byteOffset;return yn.onBody(new z2(Ec.buffer,o,i))},wasm_on_message_complete:n=>(Ve(yn.ptr===n),yn.onMessageComplete())}})}var iV=null,yn=null,Ec=null,j2=0,Cc=null,rCt=0,pb=1,V0=2|pb,$2=4|pb,AV=8|rCt,cV=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(mc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[VEt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[$Et]}setTi Line truncated
`;if(typeof s=="string"?p+=`host: ${s}\r
`:p+=t[QEt],i?p+=`connection: upgrade\r
`:p+=t[qEt],i?p+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Y2]&&!h[yi]?p+=`connection: keep-alive\r
`:t[K2]&&!h[yi]?p+=`connection: keep-alive\r
`:p+=`connection: close\r
`,Array.isArray(c))for(let I=0;I<c.length;I+=2){let E=c[I+0],C=c[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${E}: ${C[y]}\r
`;else p+=`${E}: ${C}\r
`}return lye.sendHeaders.hasSubscribers&&lye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?gye(f,null,t,e,h,u,p,l):We.isBuffer(A)?gye(f,A,t,e,h,u,p,l):We.isBlobLike(A)?typeof A.stream=="function"?pye(f,A.stream(),t,e,h,u,p,l):zEt(f,A,t,e,h,u,p,l):We.isStream(A)?JEt(f,A,t,e,h,u,p,l):We.isIterable(A)?pye(f,A,t,e,h,u,p,l):Ve(!1),!0}function JEt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new J2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){We.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new mye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[Qd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?We.destroy(e,f):We.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function gye(t,e,r,n,s,i,o,a){try{e?We.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return Nye.sendHeaders.hasSubscribers&&Nye.sendHeaders.publish({request:e,headers:p,socket:h}),!A||d===0?Dye(f,null,t,e,h,u,p,l):Je.isBuffer(A)?Dye(f,A,t,e,h,u,p,l):Je.isBlobLike(A)?typeof A.stream=="function"?kye(f,A.stream(),t,e,h,u,p,l):hCt(f,A,t,e,h,u,p,l):Je.isStream(A)?dCt(f,A,t,e,h,u,p,l):Je.isIterable(A)?kye(f,A,t,e,h,u,p,l):Ve(!1),!0}function dCt(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"stream body cannot be pipelined");let A=!1,c=new Z2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!A)try{!c.write(f)&&this.pause&&this.pause()}catch(p){Je.destroy(this,p)}},l=function(){A||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!A){let f=new vye;queueMicrotask(()=>h(f))}},h=function(f){if(!A){if(A=!0,Ve(s.destroyed||s[wd]&&r[gs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{c.end()}catch(p){f=p}c.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Dye(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(Ve(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[yi]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Ve(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[bd]()}catch(A){t(A)}}async function zEt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new eg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Qd]()}catch(A){t(A)}}async function hCt(t,e,r,n,s,i,o,a){Ve(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new tg;let A=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[bd]()}catch(A){t(A)}}async function pye(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new J2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var J2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[Qd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[jY])throw new eg;process.emitWarning(new eg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"),s.write(A),s.uncork(),n.onBodySent(A),n.onRequestSent(),!a&&n.reset!==!1&&(s[yi]=!0),r[Qd]()}catch(A){t(A)}}async function kye(t,e,r,n,s,i,o,a){Ve(i!==0||r[gs]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let d=A;A=null,d()}}let u=()=>new Promise((d,h)=>{Ve(A===null),s[oa]?h(s[oa]):A=d});s.on("close",c).on("drain",c);let l=new Z2({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[oa])throw s[oa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",c).off("drain",c)}}var Z2=class{constructor({abort:e,socket:r,request:n,contentLength:s,client:i,expectsPayload:o,header:a}){this.socket=r,this.request=n,this.contentLength=s,this.client=i,this.bytesWritten=0,this.expectsPayload=o,this.header=a,this.abort=e,r[wd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:A}=this;if(r[oa])throw r[oa];if(r.destroyed)return!1;let c=Buffer.byteLength(e);if(!c)return!0;if(s!==null&&o+c>s){if(i[oV])throw new tg;process.emitWarning(new tg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!0),s===null?r.write(`${A}transfer-encoding: chunked\r
`,"latin1"):r.write(`${A}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
${c.toString(16)}\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===Y0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Qd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=c;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[Wr].timeout&&r[Wr].timeoutType===V0&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[wd]=!1,e[oa])throw e[oa];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[jY])throw new eg;process.emitWarning(new eg)}e[Wr].timeout&&e[Wr].timeoutType===Y0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[bd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Qd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Iye.exports=UEt});var Rye=m((d0r,xye)=>{"use strict";var Aa=b("node:assert"),{pipeline:jEt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:nV,RequestAbortedError:KEt,SocketError:Ib,InformationalError:wd,InvalidArgumentError:XEt}=je(),{kUrl:Cb,kReset:X2,kClient:to,kRunning:yb,kPending:$Et,kQueue:Sd,kPendingIdx:iV,kRunningIdx:tA,kError:ro,kSocket:kr,kStrictContentLength:ZEt,kOnError:V0,kMaxConcurrentStreams:j2,kPingInterval:Bye,kHTTP2Session:zu,kHTTP2InitialWindowSize:eCt,kHTTP2ConnectionWindowSize:tCt,kResume:Ic,kSize:rCt,kHTTPContext:oV,kClosed:sV,kBodyTimeout:nCt,kEnableConnectProtocol:mb,kRemoteSettings:Eb,kHTTP2Stream:z2,kHTTP2SessionState:aV}=Xt(),{channels:bye}=Id(),aa=Symbol("open streams"),Qye,K2;try{K2=b("node:http2")}catch{K2={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:sCt,HTTP2_HEADER_METHOD:wye,HTTP2_HEADER_PATH:Sye,HTTP2_HEADER_SCHEME:eV,HTTP2_HEADER_CONTENT_LENGTH:iCt,HTTP2_HEADER_EXPECT:oCt,HTTP2_HEADER_STATUS:tV,HTTP2_HEADER_PROTOCOL:aCt,NGHTTP2_REFUSED_STREAM:ACt,NGHTTP2_CANCEL:cCt}}=K2;function rV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function uCt(t,e){t[kr]=e;let r=t[eCt],n=t[tCt],s=K2.connect(t[Cb],{createConnection:()=>e,peerMaxConcurrentStreams:t[j2],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[aV]={ping:{interval:t[Bye]===0?null:setInterval(fCt,t[Bye],s).unref()}},s[mb]=!1,s[Eb]=!1,n&&ut.addListener(s,"connect",dCt.bind(s,n)),ut.addListener(s,"error",gCt),ut.addListener(s,"frameError",pCt),ut.addListener(s,"end",mCt),ut.addListener(s,"goaway",ECt),ut.addListener(s,"close",CCt),ut.addListener(s,"remoteSettings",hCt),s.unref(),t[zu]=s,e[zu]=s,ut.addListener(e,"error",yCt),ut.addListener(e,"end",BCt),ut.addListener(e,"close",ICt),e[sV]=!1,e.on("close",bCt),{version:"h2",defaultPipelining:1/0,write(i){return wCt(t,i)},resume(){lCt(t)},destroy(i,o){e[sV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[yb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Eb]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Eb]===!1;return!1}}}function lCt(t){let e=t[kr];e?.destroyed===!1&&(t[rCt]===0||t[j2]===0?(e.unref(),t[zu].unref()):(e.ref(),t[zu].ref()))}function dCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function hCt(t){if(this[to][j2]=t.maxConcurrentStreams??this[to][j2],this[Eb]===!0&&this[mb]===!0&&t.enableConnectProtocol===!1){let e=new wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][V0](e);return}this[mb]=t.enableConnectProtocol??this[mb],this[Eb]=!0,this[to][Ic]()}function fCt(t){let e=t[aV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new wd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[V0](a)}else i.emit("ping",s)}}function gCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][V0](t)}function pCt(t,e,r){if(r===0){let n=new wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][V0](n)}}function mCt(){let t=new Ib("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function ECt(t){let e=this[ro]||new Ib(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[oV]=null,this.close(),this[zu]=null,ut.destroy(this[kr],e),r[tA]<r[Sd].length){let n=r[Sd][r[tA]];r[Sd][r[tA]++]=null,ut.errorRequest(r,n,e),r[iV]=r[tA]}Aa(r[yb]===0),r.emit("disconnect",r[Cb],[r],e),r.emit("connectionError",r[Cb],[r],e),r[Ic]()}function CCt(){let{[to]:t,[aV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new Ib("closed",ut.getSocketInfo(r));if(t[kr]=null,t[oV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[$Et]===0);let s=t[Sd].splice(t[tA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function ICt(){let t=this[ro]||new Ib("closed",ut.getSocketInfo(this)),e=this[zu][to];e[kr]=null,e[oV]=null,this[zu]!==null&&this[zu].destroy(t),e[iV]=e[tA],Aa(e[yb]===0),e.emit("disconnect",e[Cb],[e],t),e[Ic]()}function yCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][V0](t)}function BCt(){ut.destroy(this,new Ib("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;bye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[oCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[z2]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[z2]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[tV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),rV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Sd][t[tA]++]=null,t[Ic]()):(E(new wd("HTTP/2: stream half-closed (remote)")),t[Sd][t[tA]++]=null,t[iV]=t[tA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new wd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?Nye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?Nye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Tye(E,f,d.stream(),t,e,t[kr],y,C):NCt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?SCt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?Tye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function Nye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[X2]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function SCt(t,e,r,n,s,i,o,a){Aa(a!==0||i[yb]===0,"stream body cannot be pipelined");let A=jEt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[X2]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function NCt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new nV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[X2]=!0),n[Ic]()}catch(A){t(A)}}async function Tye(t,e,r,n,s,i,o,a){Aa(o!==0||n[yb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[X2]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}xye.exports=uCt});var Dd=m((h0r,Pye)=>{"use strict";var ju=b("node:assert"),Fye=b("node:net"),Bb=b("node:http"),tg=et(),{ClientStats:TCt}=rY(),{channels:W0}=Id(),xCt=$Ce(),RCt=jf(),{InvalidArgumentError:gr,InformationalError:DCt,ClientDestroyedError:kCt}=je(),vCt=Kf(),{kUrl:yc,kServerName:Rd,kClient:_Ct,kBusy:AV,kConnect:FCt,kResuming:rg,kRunning:Sb,kPending:Nb,kSize:bb,kQueue:rA,kConnected:MCt,kConnecting:J0,kNeedDrain:Td,kKeepAliveDefaultTimeout:Dye,kHostHeader:LCt,kPendingIdx:nA,kRunningIdx:Ku,kError:UCt,kPipelining:$2,kKeepAliveTimeoutValue:PCt,kMaxHeadersSize:OCt,kKeepAliveMaxTimeout:HCt,kKeepAliveTimeoutThreshold:GCt,kHeadersTimeout:qCt,kBodyTimeout:YCt,kStrictContentLength:VCt,kConnector:Qb,kMaxRequests:cV,kCounter:WCt,kClose:JCt,kDestroy:zCt,kDispatch:jCt,kLocalAddress:wb,kMaxResponseSize:KCt,kOnError:XCt,kHTTPContext:nn,kMaxConcurrentStreams:$Ct,kHTTP2InitialWindowSize:ZCt,kHTTP2ConnectionWindowSize:eIt,kResume:xd,kPingInterval:tIt}=Xt(),rIt=yye(),nIt=Rye(),Nd=Symbol("kClosedResolve"),sIt=Bb&&Bb.maxHeaderSize&&Number.isInteger(Bb.maxHeaderSize)&&Bb.maxHeaderSize>0?()=>Bb.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},kye=()=>{};function Mye(t){return t[$2]??t[nn]?.defaultPipelining??1}var uV=class extends RCt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:Z,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("unsu Line truncated
`,this[YCt]=a??3e5,this[qCt]=n??3e5,this[VCt]=E??!0,this[cV]=R,this[Nd]=null,this[KCt]=Y>-1?Y:-1,this[nn]=null,this[$Ct]=D??100,this[ZCt]=ne??262144,this[eIt]=Ae??524288,this[tIt]=ge??6e4,this[rA]=[],this[Ku]=0,this[nA]=0,this[xd]=De=>lV(this,De),this[XCt]=De=>Lye(this,De)}get pipelining(){return this[$2]}set pipelining(e){this[$2]=e,this[xd](!0)}get stats(){return new TCt(this)}get[Nb](){return this[rA].length-this[nA]}get[Sb](){return this[nA]-this[Ku]}get[bb](){return this[rA].length-this[Ku]}get[MCt](){return!!this[nn]&&!this[J0]&&!this[nn].destroyed}get[AV](){return!!(this[nn]?.busy(null)||this[bb]>=(Mye(this)||1)||this[Nb]>0)}[FCt](e){Uye(this),this.once("connect",e)}[jCt](e,r){let n=new xCt(this[yc].origin,e,r);return this[rA].push(n),this[rg]||(tg.bodyLength(n.body)==null&&tg.isIterable(n.body)?(this[rg]=1,queueMicrotask(()=>lV(this))):this[xd](!0)),this[rg]&&this[Td]!==2&&this[AV]&&(this[Td]=2),this[Td]<2}[JCt](){return new Promise(e=>{this[bb]?this[Nd]=e:e(null)})}[zCt](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];tg.errorRequest(this,o,e)}let s=()=>{this[Nd]&&(this[Nd](),this[Nd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[xd]()})}};function Lye(t,e){if(t[Sb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ju(t[nA]===t[Ku]);let r=t[rA].splice(t[Ku]);for(let n=0;n<r.length;n++){let s=r[n];tg.errorRequest(t,s,e)}ju(t[bb]===0)}}function Uye(t){ju(!t[J0]),ju(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");ju(i!==-1);let o=r.substring(1,i);ju(Fye.isIPv6(o)),r=o}t[J0]=!0,W0.beforeConnect.hasSubscribers&&W0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Rd],localAddress:t[wb]},connector:t[Qb]}),t[Qb]({host:e,hostname:r,protocol:n,port:s,servername:t[Rd],localAddress:t[wb]},(i,o)=>{if(i){vye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[xd]();return}if(t.destroyed){tg.destroy(o.on("error",kye),new kCt),t[xd]();return}ju(o);try{t[nn]=o.alpnProtocol==="h2"?nIt(t,o):rIt(t,o)}catch(a){o.destroy().on("error",kye),vye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[xd]();return}t[J0]=!1,o[WCt]=0,o[cV]=t[cV],o[_Ct]=t,o[UCt]=null,W0.connected.hasSubscribers&&W0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Rd],localAddress:t[wb]},connector:t[Qb],socket:o}),t.emit("connect",t[yc],[t]),t[xd]()})}function vye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[J0]=!1,W0.connectError.hasSubscribers&&W0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Rd],localAddress:t[wb]},connector:t[Qb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ju(t[Sb]===0);t[Nb]>0&&t[rA][t[nA]].servername===t[Rd];){let o=t[rA][t[nA]++];tg.errorRequest(t,o,e)}else Lye(t,e);t.emit("connectionError",t[yc],[t],e)}}function _ye(t){t[Td]=0,t.emit("drain",t[yc],[t])}function lV(t,e){t[rg]!==2&&(t[rg]=2,iIt(t,e),t[rg]=0,t[Ku]>256&&(t[rA].splice(0,t[Ku]),t[nA]-=t[Ku],t[Ku]=0))}function iIt(t,e){for(;;){if(t.destroyed){ju(t[Nb]===0);return}if(t[Nd]&&!t[bb]){t[Nd](),t[Nd]=null;return}if(t[nn]&&t[nn].resume(),t[AV])t[Td]=2;else if(t[Td]===2){e?(t[Td]=1,queueMicrotask(()=>_ye(t))):_ye(t);continue}if(t[Nb]===0||t[Sb]>=(Mye(t)||1))return;let r=t[rA][t[nA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[Rd]!==r.servername){if(t[Sb]>0)return;t[Rd]=r.servername,t[nn]?.destroy(new DCt("servername changed"),()=>{t[nn]=null,lV(t)})}if(t[J0])return;if(!t[nn]){Uye(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}Pye.exports=uV});var dV=m((g0r,Oye)=>{"use strict";var Z2=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};Oye.exports=class{constructor(){this.head=this.tail=new Z2}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Z2),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ek=m((p0r,jye)=>{"use strict";var{PoolStats:oIt}=rY(),aIt=jf(),AIt=dV(),{kConnected:hV,kSize:Hye,kRunning:Gye,kPending:qye,kQueued:Tb,kBusy:cIt,kFree:uIt,kUrl:lIt,kClose:dIt,kDestroy:hIt,kDispatch:fIt}=Xt(),qn=Symbol("clients"),Hs=Symbol("needDrain"),xb=Symbol("queue"),fV=Symbol("closed resolve"),gV=Symbol("onDrain"),Yye=Symbol("onConnect"),Vye=Symbol("onDisconnect"),Wye=Symbol("onConnectionError"),pV=Symbol("get dispatcher"),Jye=Symbol("add client"),zye=Symbol("remove client"),mV=class extends aIt{[xb]=new AIt;[Tb]=0;[qn]=[];[Hs]=!1;[gV](e,r,n){let s=this[xb],i=!1;for(;!i;){let o=s.shi Line truncated
`,"latin1"),r!==null&&s!==r){if(n[oV])throw new tg;process.emitWarning(new tg)}e[Wr].timeout&&e[Wr].timeoutType===V0&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Qd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[wd]=!1,e&&(Ve(n[gs]<=1,"pipeline should only contain this request"),s(e))}};Mye.exports=nCt});var Wye=m((F0r,Vye)=>{"use strict";var Aa=b("node:assert"),{pipeline:fCt}=b("node:stream"),ut=et(),{RequestContentLengthMismatchError:fV,RequestAbortedError:gCt,SocketError:Bb,InformationalError:Sd,InvalidArgumentError:pCt}=Ke(),{kUrl:yb,kReset:nk,kClient:to,kRunning:bb,kPending:mCt,kQueue:Nd,kPendingIdx:pV,kRunningIdx:tA,kError:ro,kSocket:kr,kStrictContentLength:ECt,kOnError:W0,kMaxConcurrentStreams:tk,kPingInterval:Uye,kHTTP2Session:ju,kHTTP2InitialWindowSize:CCt,kHTTP2ConnectionWindowSize:ICt,kResume:Ic,kSize:yCt,kHTTPContext:mV,kClosed:gV,kBodyTimeout:BCt,kEnableConnectProtocol:Cb,kRemoteSettings:Ib,kHTTP2Stream:ek,kHTTP2SessionState:EV}=$t(),{channels:Pye}=yd(),aa=Symbol("open streams"),Oye,rk;try{rk=b("node:http2")}catch{rk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:bCt,HTTP2_HEADER_METHOD:Hye,HTTP2_HEADER_PATH:Gye,HTTP2_HEADER_SCHEME:lV,HTTP2_HEADER_CONTENT_LENGTH:QCt,HTTP2_HEADER_EXPECT:wCt,HTTP2_HEADER_STATUS:dV,HTTP2_HEADER_PROTOCOL:SCt,NGHTTP2_REFUSED_STREAM:NCt,NGHTTP2_CANCEL:TCt}}=rk;function hV(t){let e=[];for(let[r,n]of Object.entries(t))if(Array.isArray(n))for(let s of n)e.push(Buffer.from(r),Buffer.from(s));else e.push(Buffer.from(r),Buffer.from(n));return e}function xCt(t,e){t[kr]=e;let r=t[CCt],n=t[ICt],s=rk.connect(t[yb],{createConnection:()=>e,peerMaxConcurrentStreams:t[tk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[to]=t,s[kr]=e,s[EV]={ping:{interval:t[Uye]===0?null:setInterval(vCt,t[Uye],s).unref()}},s[Cb]=!1,s[Ib]=!1,n&&ut.addListener(s,"connect",DCt.bind(s,n)),ut.addListener(s,"error",_Ct),ut.addListener(s,"frameError",FCt),ut.addListener(s,"end",MCt),ut.addListener(s,"goaway",LCt),ut.addListener(s,"close",UCt),ut.addListener(s,"remoteSettings",kCt),s.unref(),t[ju]=s,e[ju]=s,ut.addListener(e,"error",OCt),ut.addListener(e,"end",HCt),ut.addListener(e,"close",PCt),e[gV]=!1,e.on("close",GCt),{version:"h2",defaultPipelining:1/0,write(i){return YCt(t,i)},resume(){RCt(t)},destroy(i,o){e[gV]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[bb]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ib]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ib]===!1;return!1}}}function RCt(t){let e=t[kr];e?.destroyed===!1&&(t[yCt]===0||t[tk]===0?(e.unref(),t[ju].unref()):(e.ref(),t[ju].ref()))}function DCt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function kCt(t){if(this[to][tk]=t.maxConcurrentStreams??this[to][tk],this[Ib]===!0&&this[Cb]===!0&&t.enableConnectProtocol===!1){let e=new Sd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][ro]=e,this[to][W0](e);return}this[Cb]=t.enableConnectProtocol??this[Cb],this[Ib]=!0,this[to][Ic]()}function vCt(t){let e=t[EV];if((t.closed||t.destroyed)&&e.ping.interval!=null){clearInterval(e.ping.interval),e.ping.interval=null;return}t.ping(r.bind(t));function r(n,s){let i=this[to],o=this[to];if(n!=null){let a=new Sd(`HTTP/2: "PING" errored - type ${n.message}`);o[ro]=a,i[W0](a)}else i.emit("ping",s)}}function _Ct(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][ro]=t,this[to][W0](t)}function FCt(t,e,r){if(r===0){let n=new Sd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][ro]=n,this[to][W0](n)}}function MCt(){let t=new Bb("other side closed",ut.getSocketInfo(this[kr]));this.destroy(t),ut.destroy(this[kr],t)}function LCt(t){let e=this[ro]||new Bb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[kr])),r=this[to];if(r[kr]=null,r[mV]=null,this.close(),this[ju]=null,ut.destroy(this[kr],e),r[tA]<r[Nd].length){let n=r[Nd][r[tA]];r[Nd][r[tA]++]=null,ut.errorRequest(r,n,e),r[pV]=r[tA]}Aa(r[bb]===0),r.emit("disconnect",r[yb],[r],e),r.emit("connectionError",r[yb],[r],e),r[Ic]()}function UCt(){let{[to]:t,[EV]:e}=this,{[kr]:r}=t,n=this[kr][ro]||this[ro]||new Bb("closed",ut.getSocketInfo(r));if(t[kr]=null,t[mV]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){Aa(t[mCt]===0);let s=t[Nd].splice(t[tA]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function PCt(){let t=this[ro]||new Bb("closed",ut.getSocketInfo(this)),e=this[ju][to];e[kr]=null,e[mV]=null,this[ju]!==null&&this[ju].destroy(t),e[pV]=e[tA],Aa(e[bb]===0),e.emit("disconnect",e[yb],[e],t),e[Ic]()}function OCt(t){Aa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ro]=t,this[to][W0](t)}function HCt(){ut.destroy(this,new Bb("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;Pye.sendHeaders.publish({request:e,headers:v,socket:n[kr]})}let R=s==="GET"||s==="HEAD"||d===null;A?(h[wCt]="100-continue",f=n.request(h,{endStream:R,signal:c}),f[ek]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:R,signal:c}),f[ek]=!0,Y()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",v=>{let{[dV]:P,...D}=v;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),hV(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Nd][t[tA]++]=null,t[Ic]()):(E(new Sd("HTTP/2: stream half-closed (remote)")),t[Nd][t[tA]++]=null,t[pV]=t[tA],t[Ic]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(v){f.removeAllListeners("data"),E(v)}),f.once("frameError",(v,P)=>{f.removeAllListeners("data"),E(new Sd(`HTTP/2: "frameError" received - type ${v}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let v=new Sd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref(),E(v)}),f.once("trailers",v=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(v))}),!0;function Y(){!d||y===0?qye(E,f,null,t,e,t[kr],y,C):ut.isBuffer(d)?qye(E,f,d,t,e,t[kr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Yye(E,f,d.stream(),t,e,t[kr],y,C):WCt(E,f,d,t,e,t[kr],y,C):ut.isStream(d)?VCt(E,t[kr],C,f,d,t,e,y):ut.isIterable(d)?Yye(E,f,d,t,e,t[kr],y,C):Aa(!1)}}function qye(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(Aa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[nk]=!0),s.onRequestSent(),n[Ic]()}catch(A){t(A)}}function VCt(t,e,r,n,s,i,o,a){Aa(a!==0||i[bb]===0,"stream body cannot be pipelined");let A=fCt(s,n,u=>{u?(ut.destroy(A,u),t(u)):(ut.removeAllListeners(A),o.onRequestSent(),r||(e[nk]=!0),i[Ic]())});ut.addListener(A,"data",c);function c(u){o.onBodySent(u)}}async function WCt(t,e,r,n,s,i,o,a){Aa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new fV;let A=Buffer.from(await r.arrayBuffer());e.cork(),e.write(A),e.uncork(),e.end(),s.onBodySent(A),s.onRequestSent(),a||(i[nk]=!0),n[Ic]()}catch(A){t(A)}}async function Yye(t,e,r,n,s,i,o,a){Aa(o!==0||n[bb]===0,"iterator body cannot be pipelined");let A=null;function c(){if(A){let l=A;A=null,l()}}let u=()=>new Promise((l,d)=>{Aa(A===null),i[ro]?d(i[ro]):A=l});e.on("close",c).on("drain",c);try{for await(let l of r){if(i[ro])throw i[ro];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[nk]=!0),n[Ic]()}catch(l){t(l)}finally{e.off("close",c).off("drain",c)}}Vye.exports=xCt});var kd=m((M0r,tBe)=>{"use strict";var Ku=b("node:assert"),$ye=b("node:net"),Qb=b("node:http"),rg=et(),{ClientStats:JCt}=hY(),{channels:J0}=yd(),zCt=fIe(),jCt=Kf(),{InvalidArgumentError:pr,InformationalError:KCt,ClientDestroyedError:$Ct}=Ke(),XCt=$f(),{kUrl:yc,kServerName:Dd,kClient:ZCt,kBusy:CV,kConnect:eIt,kResuming:ng,kRunning:Tb,kPending:xb,kSize:wb,kQueue:rA,kConnected:tIt,kConnecting:z0,kNeedDrain:xd,kKeepAliveDefaultTimeout:Jye,kHostHeader:rIt,kPendingIdx:nA,kRunningIdx:$u,kError:nIt,kPipelining:sk,kKeepAliveTimeoutValue:sIt,kMaxHeadersSize:iIt,kKeepAliveMaxTimeout:oIt,kKeepAliveTimeoutThreshold:aIt,kHeadersTimeout:AIt,kBodyTimeout:cIt,kStrictContentLength:uIt,kConnector:Sb,kMaxRequests:IV,kCounter:lIt,kClose:dIt,kDestroy:hIt,kDispatch:fIt,kLocalAddress:Nb,kMaxResponseSize:gIt,kOnError:pIt,kHTTPContext:nn,kMaxConcurrentStreams:mIt,kHTTP2InitialWindowSize:EIt,kHTTP2ConnectionWindowSize:CIt,kResume:Rd,kPingInterval:IIt}=$t(),yIt=Lye(),BIt=Wye(),Td=Symbol("kClosedResolve"),bIt=Qb&&Qb.maxHeaderSize&&Number.isInteger(Qb.maxHeaderSize)&&Qb.maxHeaderSize>0?()=>Qb.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},zye=()=>{};function Xye(t){return t[sk]??t[nn]?.defaultPipelining??1}var yV=class extends jCt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:A,keepAlive:c,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:p,tls:I,strictContentLength:E,maxCachedSessions:C,connect:y,maxRequestsPerClient:R,localAddress:M,maxResponseSize:Y,autoSelectFamily:v,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:ne,connectionWindowSize:Ae,pingInterval:ge}={}){if(c!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(A!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new pr("uns Line truncated
`,this[cIt]=a??3e5,this[AIt]=n??3e5,this[uIt]=E??!0,this[IV]=R,this[Td]=null,this[gIt]=Y>-1?Y:-1,this[nn]=null,this[mIt]=D??100,this[EIt]=ne??262144,this[CIt]=Ae??524288,this[IIt]=ge??6e4,this[rA]=[],this[$u]=0,this[nA]=0,this[Rd]=De=>BV(this,De),this[pIt]=De=>Zye(this,De)}get pipelining(){return this[sk]}set pipelining(e){this[sk]=e,this[Rd](!0)}get stats(){return new JCt(this)}get[xb](){return this[rA].length-this[nA]}get[Tb](){return this[nA]-this[$u]}get[wb](){return this[rA].length-this[$u]}get[tIt](){return!!this[nn]&&!this[z0]&&!this[nn].destroyed}get[CV](){return!!(this[nn]?.busy(null)||this[wb]>=(Xye(this)||1)||this[xb]>0)}[eIt](e){eBe(this),this.once("connect",e)}[fIt](e,r){let n=new zCt(this[yc].origin,e,r);return this[rA].push(n),this[ng]||(rg.bodyLength(n.body)==null&&rg.isIterable(n.body)?(this[ng]=1,queueMicrotask(()=>BV(this))):this[Rd](!0)),this[ng]&&this[xd]!==2&&this[CV]&&(this[xd]=2),this[xd]<2}[dIt](){return new Promise(e=>{this[wb]?this[Td]=e:e(null)})}[hIt](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];rg.errorRequest(this,o,e)}let s=()=>{this[Td]&&(this[Td](),this[Td]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Rd]()})}};function Zye(t,e){if(t[Tb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Ku(t[nA]===t[$u]);let r=t[rA].splice(t[$u]);for(let n=0;n<r.length;n++){let s=r[n];rg.errorRequest(t,s,e)}Ku(t[wb]===0)}}function eBe(t){Ku(!t[z0]),Ku(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");Ku(i!==-1);let o=r.substring(1,i);Ku($ye.isIPv6(o)),r=o}t[z0]=!0,J0.beforeConnect.hasSubscribers&&J0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb]}),t[Sb]({host:e,hostname:r,protocol:n,port:s,servername:t[Dd],localAddress:t[Nb]},(i,o)=>{if(i){jye(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}if(t.destroyed){rg.destroy(o.on("error",zye),new $Ct),t[Rd]();return}Ku(o);try{t[nn]=o.alpnProtocol==="h2"?BIt(t,o):yIt(t,o)}catch(a){o.destroy().on("error",zye),jye(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Rd]();return}t[z0]=!1,o[lIt]=0,o[IV]=t[IV],o[ZCt]=t,o[nIt]=null,J0.connected.hasSubscribers&&J0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb],socket:o}),t.emit("connect",t[yc],[t]),t[Rd]()})}function jye(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[z0]=!1,J0.connectError.hasSubscribers&&J0.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Dd],localAddress:t[Nb]},connector:t[Sb],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Ku(t[Tb]===0);t[xb]>0&&t[rA][t[nA]].servername===t[Dd];){let o=t[rA][t[nA]++];rg.errorRequest(t,o,e)}else Zye(t,e);t.emit("connectionError",t[yc],[t],e)}}function Kye(t){t[xd]=0,t.emit("drain",t[yc],[t])}function BV(t,e){t[ng]!==2&&(t[ng]=2,QIt(t,e),t[ng]=0,t[$u]>256&&(t[rA].splice(0,t[$u]),t[nA]-=t[$u],t[$u]=0))}function QIt(t,e){for(;;){if(t.destroyed){Ku(t[xb]===0);return}if(t[Td]&&!t[wb]){t[Td](),t[Td]=null;return}if(t[nn]&&t[nn].resume(),t[CV])t[xd]=2;else if(t[xd]===2){e?(t[xd]=1,queueMicrotask(()=>Kye(t))):Kye(t);continue}if(t[xb]===0||t[Tb]>=(Xye(t)||1))return;let r=t[rA][t[nA]];if(r===null)return;if(t[yc].protocol==="https:"&&t[Dd]!==r.servername){if(t[Tb]>0)return;t[Dd]=r.servername,t[nn]?.destroy(new KCt("servername changed"),()=>{t[nn]=null,BV(t)})}if(t[z0])return;if(!t[nn]){eBe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}tBe.exports=yV});var bV=m((U0r,rBe)=>{"use strict";var ik=class{bottom=0;top=0;list=new Array(2048).fill(void 0);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)}};rBe.exports=class{constructor(){this.head=this.tail=new ik}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ik),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var ok=m((P0r,lBe)=>{"use strict";var{PoolStats:wIt}=hY(),SIt=Kf(),NIt=bV(),{kConnected:QV,kSize:nBe,kRunning:sBe,kPending:iBe,kQueued:Rb,kBusy:TIt,kFree:xIt,kUrl:RIt,kClose:DIt,kDestroy:kIt,kDispatch:vIt}=$t(),qn=Symbol("clients"),Hs=Symbol("needDrain"),Db=Symbol("queue"),wV=Symbol("closed resolve"),SV=Symbol("onDrain"),oBe=Symbol("onConnect"),aBe=Symbol("onDisconnect"),ABe=Symbol("onConnectionError"),NV=Symbol("get dispatcher"),cBe=Symbol("add client"),uBe=Symbol("remove client"),TV=class extends SIt{[Db]=new NIt;[Rb]=0;[qn]=[];[Hs]=!1;[SV](e,r,n){let s=this[Db],i=!1;for(;!i;){let o=s.shi Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};mQe.exports=k7});var _7=m((J0r,yQe)=>{"use strict";var{InvalidArgumentError:lbt}=je(),{runtimeFeatures:dbt}=Wu();function hbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var EQe=dbt.has("crypto")?b("node:crypto"):null,fbt=EQe?.hash?t=>EQe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function IQe(t){return Array.isArray(t)&&(t.length&1)===0}function gbt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function pbt(t){let e={};if(!t)return e;if(IQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var CQe=["record","playback","update"];function mbt(t){if(!CQe.includes(t))throw new lbt(`Invalid snapshot mode: ${t}. Must be one of: ${CQe.join(", ")}`)}yQe.exports={createHeaderFilters:hbt,hashId:fbt,isUndiciHeaders:IQe,normalizeHeaders:pbt,isUrlExcludedFactory:gbt,validateSnapshotMode:mbt}});var RQe=m((z0r,xQe)=>{"use strict";var{writeFile:Ebt,readFile:Cbt,mkdir:Ibt}=b("node:fs/promises"),{dirname:ybt,resolve:BQe}=b("node:path"),{setTimeout:Bbt,clearTimeout:bQe}=b("node:timers"),{InvalidArgumentError:QQe,UndiciError:bbt}=je(),{hashId:Qbt,isUrlExcludedFactory:wbt,normalizeHeaders:wQe,createHeaderFilters:SQe}=_7();function qb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||wQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:NQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function NQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function TQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Yb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return Qbt(r)}var F7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=SQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=wbt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=qb(e,this.#a,this.matchOptions),s=Yb(n),i=wQe(r.headers),o={statusCode:r.statusCode,headers:TQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=qb(e,this.#a,this.matchOptions),n=Yb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new QQe("Snapshot path is required");try{let n=await Cbt(BQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new bbt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new QQe("Snapshot path is required");let n=BQe(r);await Ibt(ybt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Ebt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};vQe.exports=q7});var V7=m((pEr,LQe)=>{"use strict";var{InvalidArgumentError:Rbt}=Ke(),{runtimeFeatures:Dbt}=Ju();function kbt(t={}){let{ignoreHeaders:e=[],excludeHeaders:r=[],matchHeaders:n=[],caseSensitive:s=!1}=t;return{ignore:new Set(e.map(i=>s?i:i.toLowerCase())),exclude:new Set(r.map(i=>s?i:i.toLowerCase())),match:new Set(n.map(i=>s?i:i.toLowerCase()))}}var _Qe=Dbt.has("crypto")?b("node:crypto"):null,vbt=_Qe?.hash?t=>_Qe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function MQe(t){return Array.isArray(t)&&(t.length&1)===0}function _bt(t=[]){return t.length===0?()=>!1:function(r){let n;for(let s of t)if(typeof s=="string"){if(n||(n=r.toLowerCase()),n.includes(s.toLowerCase()))return!0}else if(s instanceof RegExp&&s.test(r))return!0;return!1}}function Fbt(t){let e={};if(!t)return e;if(MQe(t)){for(let r=0;r<t.length;r+=2){let n=t[r],s=t[r+1];if(n&&s!==void 0){let i=Buffer.isBuffer(n)?n.toString():n,o=Buffer.isBuffer(s)?s.toString():s;e[i.toLowerCase()]=o}}return e}if(t&&typeof t=="object")for(let[r,n]of Object.entries(t))r&&typeof r=="string"&&(e[r.toLowerCase()]=Array.isArray(n)?n.join(", "):String(n));return e}var FQe=["record","playback","update"];function Mbt(t){if(!FQe.includes(t))throw new Rbt(`Invalid snapshot mode: ${t}. Must be one of: ${FQe.join(", ")}`)}LQe.exports={createHeaderFilters:kbt,hashId:vbt,isUndiciHeaders:MQe,normalizeHeaders:Fbt,isUrlExcludedFactory:_bt,validateSnapshotMode:Mbt}});var WQe=m((mEr,VQe)=>{"use strict";var{writeFile:Lbt,readFile:Ubt,mkdir:Pbt}=b("node:fs/promises"),{dirname:Obt,resolve:UQe}=b("node:path"),{setTimeout:Hbt,clearTimeout:PQe}=b("node:timers"),{InvalidArgumentError:OQe,UndiciError:Gbt}=Ke(),{hashId:qbt,isUrlExcludedFactory:Ybt,normalizeHeaders:HQe,createHeaderFilters:GQe}=V7();function Vb(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||HQe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:qQe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function qQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[A,c]of Object.entries(t)){let u=n?A:A.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=c)}return s}function YQe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{exclude:i}=e;for(let[o,a]of Object.entries(t)){let A=n?o:o.toLowerCase();i.has(A)||(s[A]=a)}return s}function Wb(t){let e=[t.method,t.url];if(t.headers&&typeof t.headers=="object"){let n=Object.keys(t.headers).sort();for(let s of n){let i=Array.isArray(t.headers[s])?t.headers[s]:[t.headers[s]];e.push(s);for(let o of i.sort())e.push(String(o))}}e.push(t.body);let r=e.join("|");return qbt(r)}var W7=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=GQe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=Ybt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=Vb(e,this.#a,this.matchOptions),s=Wb(n),i=HQe(r.headers),o={statusCode:r.statusCode,headers:YQe(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let A=this.#n.keys().next().value;this.#n.delete(A)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#i&&this.#r&&this.#c()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=Vb(e,this.#a,this.matchOptions),n=Wb(r),s=this.#n.get(n);if(!s)return;let i=s.callCount||0,o=Math.min(i,s.responses.length-1);return s.callCount=i+1,{...s,response:s.responses[o]}}async loadSnapshots(e){let r=e||this.#r;if(!r)throw new OQe("Snapshot path is required");try{let n=await Ubt(UQe(r),"utf8"),s=JSON.parse(n);if(Array.isArray(s)){this.#n.clear();for(let{hash:i,snapshot:o}of s)this.#n.set(i,o)}else this.#n=new Map(Object.entries(s))}catch(n){if(n.code==="ENOENT")this.#n.clear();else throw new Gbt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new OQe("Snapshot path is required");let n=UQe(r);await Pbt(Obt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await Lbt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
@@ -191,108 +191,93 @@ ${e.format(r)}`.trim())}};mQe.exports=k7});var _7=m((J0r,yQe)=>{"use strict";var
ORDER BY cachedAt DESC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){nW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){nW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){nW(e),lwt(r);let n=0,s=[],i=this;return new uwt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!dwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function dwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var pg=m((pEr,Lwe)=>{"use strict";var{kConstruct:hwt}=Xt(),{kEnumerableProperty:AE}=et(),{iteratorMixin:fwt,isValidHeaderName:zb,isValidHeaderValue:kwe}=eo(),{webidl:wt}=Xn(),iW=b("node:assert"),Dk=b("node:util");function Dwe(t){return t===10||t===13||t===9||t===32}function vwe(t){let e=0,r=t.length;for(;r>e&&Dwe(t.charCodeAt(r-1));)--r;for(;r>e&&Dwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function _we(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});oW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)oW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function oW(t,e,r){if(r=vwe(r),zb(e)){if(!kwe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Mwe(t)==="immutable")throw new TypeError("immutable");return vk(t).append(e,r,!1)}function gwt(t){let e=vk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function Fwe(t,e){return t[0]<e[0]?-1:1}var kk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":YSe(i)&&(r[s]=i);break;case"id":VSe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&YSe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&VSe(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}}};WSe.exports={EventSourceStream:qW}});var tNe=m((HEr,eNe)=>{"use strict";var{pipeline:kTt}=b("node:stream"),{fetching:vTt}=Zb(),{makeRequest:_Tt}=uE(),{webidl:qs}=Xn(),{EventSourceStream:FTt}=JSe(),{parseMIMEType:MTt}=na(),{createFastMessageEvent:LTt}=sv(),{isNetworkError:zSe}=Kb(),{kEnumerableProperty:Qg}=et(),{environmentSettingsObject:jSe}=eo(),KSe=!1,XSe=3e3,oQ=0,$Se=1,aQ=2,UTt="anonymous",PTt="use-credentials",IE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=oQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),KSe||(KSe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=jSe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=UTt;r.withCredentials===!0&&(o=PTt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jSe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=_Tt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===aQ)return;this.#r=oQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!zSe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(zSe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?MTt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=$Se,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new FTt({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(LTt(A.type,A.options))}});kTt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=vTt(e)}#c(){this.#r!==aQ&&(this.#r=oQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===oQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==aQ&&(this.#r=aQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},ZSe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:oQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:$Se,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:aQ,writable:!1}};Object.defineProperties(IE,ZSe);Object.defineProperties(IE.prototype,ZSe);Object.defineProperties(IE.prototype,{close:Qg,onerror:Qg,onmessage:Qg,onopen:Qg,readyState:Qg,url:Qg,withCredentials:Qg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>XSe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);eNe.exports={EventSource:IE,defaultReconnectionTime:XSe}});var aNe=m((GEr,pe)=>{"use strict";var OTt=Dd(),nNe=ib(),HTt=ng(),GTt=nBe(),qTt=aBe(),YTt=og(),VTt=LV(),WTt=vV(),JTt=YBe(),zTt=KBe(),jTt=ZBe(),sNe=je(),mv=et(),{InvalidArgumentError:pv}=sNe,yE=_be(),KTt=Kf(),XTt=y7(),{MockCallHistory:$T Line truncated
`)}close(){this.#n.close()}get(e){fW(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){fW(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){fW(e),Rwt(r);let n=0,s=[],i=this;return new xwt({decodeStrings:!0,write(o,a,A){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),A()},final(o){i.set(e,{...r,body:s}),o()}})}delete(e){if(typeof e!="object")throw new TypeError(`expected key to be object, got ${typeof e}`);this.#o.run(this.#d(e))}#u(){if(Number.isFinite(this.#t)&&this.size<=this.#t)return 0;{let e=this.#a.run(Date.now()).changes;if(e)return e}{let e=this.#c?.run(Math.max(Math.floor(this.#t*.1),1)).changes;if(e)return e}return 0}get size(){let{total:e}=this.#A.get();return e}#d(e){return`${e.origin}/${e.path}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let A of o){if(a>=A.deleteAt&&!r)return;let c=!0;if(A.vary){let u=JSON.parse(A.vary);for(let l in u)if(!Dwt(s[l],u[l])){c=!1;break}}if(c)return A}}};function Dwt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var mg=m((PEr,Zwe)=>{"use strict";var{kConstruct:kwt}=$t(),{kEnumerableProperty:cE}=et(),{iteratorMixin:vwt,isValidHeaderName:Kb,isValidHeaderValue:zwe}=eo(),{webidl:wt}=$n(),pW=b("node:assert"),Lk=b("node:util");function Jwe(t){return t===10||t===13||t===9||t===32}function jwe(t){let e=0,r=t.length;for(;r>e&&Jwe(t.charCodeAt(r-1));)--r;for(;r>e&&Jwe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Kwe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw wt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});mW(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)mW(t,r[n],e[r[n]])}else throw wt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function mW(t,e,r){if(r=jwe(r),Kb(e)){if(!zwe(r))throw wt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw wt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Xwe(t)==="immutable")throw new TypeError("immutable");return Pk(t).append(e,r,!1)}function _wt(t){let e=Pk(t);if(!e)return[];if(e.sortedMap)return e.sortedMap;let r=[],n=e.toSortedArray(),s=e.cookies;if(s===null||s.length===1)return e.sortedMap=n;for(let i=0;i<n.length;++i){let{0:o,1:a}=n[i];if(o==="set-cookie")for(let A=0;A<s.length;++A)r.push([o,s[A]]);else r.push([o,a])}return e.sortedMap=r}function $we(t,e){return t[0]<e[0]?-1:1}var Uk=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size! Line truncated
${i}`;break;case"retry":oNe(i)&&(r[s]=i);break;case"id":aNe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&oNe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&aNe(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}}};ANe.exports={EventSourceStream:eJ}});var mNe=m((uCr,pNe)=>{"use strict";var{pipeline:$Tt}=b("node:stream"),{fetching:XTt}=tQ(),{makeRequest:ZTt}=lE(),{webidl:qs}=$n(),{EventSourceStream:ext}=cNe(),{parseMIMEType:txt}=na(),{createFastMessageEvent:rxt}=uv(),{isNetworkError:uNe}=Xb(),{kEnumerableProperty:wg}=et(),{environmentSettingsObject:lNe}=eo(),dNe=!1,hNe=3e3,AQ=0,fNe=1,cQ=2,nxt="anonymous",sxt="use-credentials",yE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=AQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),qs.util.markAsUncloneable(this);let n="EventSource constructor";qs.argumentLengthCheck(arguments,1,n),dNe||(dNe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=qs.converters.USVString(e),r=qs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=lNe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(A){throw new DOMException(A,"SyntaxError")}this.#t=i.href;let o=nxt;r.withCredentials===!0&&(o=sxt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=lNe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=ZTt(a),this.#A()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#A(){if(this.#r===cQ)return;this.#r=AQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!uNe(n))return this.#c()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(uNe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#c();return}let s=n.headersList.get("content-type",!0),i=s!==null?txt(s):"failure",o=i!=="failure"&&i.essence==="text/event-stream";if(n.status!==200||o===!1){this.close(),this.dispatchEvent(new Event("error"));return}this.#r=fNe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new ext({eventSourceSettings:this.#o,push:A=>{this.dispatchEvent(rxt(A.type,A.options))}});$Tt(n.body.stream,a,A=>{A?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=XTt(e)}#c(){this.#r!==cQ&&(this.#r=AQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===AQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#A())},this.#o.reconnectionTime)?.unref())}close(){qs.brandCheck(this,t),this.#r!==cQ&&(this.#r=cQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("open",r),this.#e.open=e):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("message",r),this.#e.message=e):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error);let r=qs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},gNe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:AQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:fNe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:cQ,writable:!1}};Object.defineProperties(yE,gNe);Object.defineProperties(yE.prototype,gNe);Object.defineProperties(yE.prototype,{close:wg,onerror:wg,onmessage:wg,onopen:wg,readyState:wg,url:wg,withCredentials:wg});qs.converters.EventSourceInitDict=qs.dictionaryConverter([{key:"withCredentials",converter:qs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:qs.converters.any},{key:"node",converter:qs.dictionaryConverter([{key:"reconnectionTime",converter:qs.converters["unsigned long"],defaultValue:()=>hNe},{key:"dispatcher",converter:qs.converters.any}]),defaultValue:()=>({})}]);pNe.exports={EventSource:yE,defaultReconnectionTime:hNe}});var bNe=m((lCr,pe)=>{"use strict";var ixt=kd(),CNe=ab(),oxt=sg(),axt=CBe(),Axt=bBe(),cxt=ag(),uxt=zV(),lxt=YV(),dxt=obe(),hxt=dbe(),fxt=gbe(),INe=Ke(),bv=et(),{InvalidArgumentError:Bv}=INe,BE=Kbe(),gxt=$f(),pxt=k7(),{MockCallHistory:mx Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return cxt(e,r).catch(n=>{throw rNe?oNe(n,rNe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=pg().Headers;pe.exports.Response=Kb().Response;pe.exports.Request=uE().Request;pe.exports.FormData=O2().FormData;var{setGlobalOrigin:uxt,getGlobalOrigin:lxt}=BY();pe.exports.setGlobalOrigin=uxt;pe.exports.getGlobalOrigin=lxt;var{CacheStorage:dxt}=O1e(),{kConstruct:hxt}=Xt();pe.exports.caches=new dxt(hxt);var{deleteCookie:fxt,getCookies:gxt,getSetCookies:pxt,setCookie:mxt,parseCookie:Ext}=Z1e();pe.exports.deleteCookie=fxt;pe.exports.getCookies=gxt;pe.exports.getSetCookies=pxt;pe.exports.setCookie=mxt;pe.exports.parseCookie=Ext;var{parseMIMEType:Cxt,serializeAMimeType:Ixt}=na();pe.exports.parseMIMEType=Cxt;pe.exports.serializeAMimeType=Ixt;var{CloseEvent:yxt,ErrorEvent:Bxt,MessageEvent:bxt}=sv(),{WebSocket:Qxt,ping:wxt}=vSe();pe.exports.WebSocket=Qxt;pe.exports.CloseEvent=yxt;pe.exports.ErrorEvent=Bxt;pe.exports.MessageEvent=bxt;pe.exports.ping=wxt;pe.exports.WebSocketStream=HSe().WebSocketStream;pe.exports.WebSocketError=UW().WebSocketError;pe.exports.request=AQ(yE.request);pe.exports.stream=AQ(yE.stream);pe.exports.pipeline=AQ(yE.pipeline);pe.exports.connect=AQ(yE.connect);pe.exports.upgrade=AQ(yE.upgrade);pe.exports.MockClient=XTt;pe.exports.MockCallHistory=$Tt;pe.exports.MockCallHistoryLog=ZTt;pe.exports.MockPool=txt;pe.exports.MockAgent=ext;pe.exports.SnapshotAgent=rxt;pe.exports.mockErrors=nxt;var{EventSource:Sxt}=tNe();pe.exports.EventSource=Sxt;function Nxt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Nxt});var cQ=m(Yd=>{"use strict";Yd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Yd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Yd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Yd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Yd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Yd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Yd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var cNe=m((VEr,ANe)=>{"use strict";var{asciiLowercase:Ev,solelyContainsHTTPTokenCodePoints:Txt,soleyContainsHTTPQuotedStringTokenCodePoints:xxt}=cQ();ANe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Ev(String(e)),this._map.get(e)}has(e){return e=Ev(String(e)),this._map.has(e)}set(e,r){if(e=Ev(String(e)),r=String(r),!Txt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!xxt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Ev(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var dNe=m((WEr,lNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Rxt,removeTrailingHTTPWhitespace:uNe,isHTTPWhitespaceChar:Dxt,solelyContainsHTTPTokenCodePoints:YW,soleyContainsHTTPQuotedStringTokenCodePoints:kxt,asciiLowercase:VW,collectAnHTTPQuotedString:vxt}=cQ();lNe.exports=t=>{t=Rxt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!YW(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=uNe(n),n.length===0||!YW(n))return null;let s={type:VW(r),subtype:VW(n),parameters:new Map};for(;e<t.length;){for(++e;Dxt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=VW(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=vxt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=uNe(o),o==="")continue}i.length>0&&YW(i)&&kxt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var fNe=m((JEr,hNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:_xt}=cQ();hNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!_xt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var ENe=m((jEr,mNe)=>{"use strict";var Fxt=cNe(),Mxt=dNe(),Lxt=fNe(),{asciiLowercase:gNe,solelyContainsHTTPTokenCodePoints:pNe}=cQ();mNe.exports=class{constructor(e){e=String(e);let r=Mxt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new Fxt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=gNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!pNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=gNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!pNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Lxt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var GNe=m(Bn=>{"use strict";var eJ=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),pRt=eJ(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?JJ:f.type==="?"?KJ:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=cDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),Z=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+Z,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=Z;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");Z=De;let Ke=Z===""&&r!==zJ?"(?:$|\\/)":"";s=D+z+Z+Ke+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===zJ)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return lDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?JJ:r.dot?aDt:ADt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?hDt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;jJ.sep!=="/"&&(e=e.split(jJ.sep).join("/")),e=e.split(exe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=NE});var Axe=m((zIr,axe)=>{axe.exports=oxe;var ZJ=b("fs"),{EventEmitter:gDt}=b("events"),{Minimatch:$J}=nxe(),{resolve:pDt}=b("path");function mDt(t,e){return new Promise((r,n)=>{ZJ.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function sxe(t,e){return new Promise((r,n)=>{(e?ZJ.stat:ZJ.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?sxe(t,!1):null):r(null):r(o)})})}async function*ixe(t,e,r,n,s,i){let o=await mDt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await sxe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*ixe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*EDt(t,e,r,n){yield*ixe("",t,e,r,n,!0)}function CDt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var kv=class extends gDt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=CDt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new $J(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new $J(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new $J(i,{dot:!0}))}this.iterator=EDt(pDt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive=!0}ab Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function TC(Q){let B=NC(Q.toString()),w=B.match(PF);if(w||(w=B.match(OF)),!w)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Txt(e,r).catch(n=>{throw ENe?BNe(n,ENe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=mg().Headers;pe.exports.Response=Xb().Response;pe.exports.Request=lE().Request;pe.exports.FormData=W2().FormData;var{setGlobalOrigin:xxt,getGlobalOrigin:Rxt}=vY();pe.exports.setGlobalOrigin=xxt;pe.exports.getGlobalOrigin=Rxt;var{CacheStorage:Dxt}=rSe(),{kConstruct:kxt}=$t();pe.exports.caches=new Dxt(kxt);var{deleteCookie:vxt,getCookies:_xt,getSetCookies:Fxt,setCookie:Mxt,parseCookie:Lxt}=gSe();pe.exports.deleteCookie=vxt;pe.exports.getCookies=_xt;pe.exports.getSetCookies=Fxt;pe.exports.setCookie=Mxt;pe.exports.parseCookie=Lxt;var{parseMIMEType:Uxt,serializeAMimeType:Pxt}=na();pe.exports.parseMIMEType=Uxt;pe.exports.serializeAMimeType=Pxt;var{CloseEvent:Oxt,ErrorEvent:Hxt,MessageEvent:Gxt}=uv(),{WebSocket:qxt,ping:Yxt}=jSe();pe.exports.WebSocket=qxt;pe.exports.CloseEvent=Oxt;pe.exports.ErrorEvent=Hxt;pe.exports.MessageEvent=Gxt;pe.exports.ping=Yxt;pe.exports.WebSocketStream=nNe().WebSocketStream;pe.exports.WebSocketError=jW().WebSocketError;pe.exports.request=uQ(BE.request);pe.exports.stream=uQ(BE.stream);pe.exports.pipeline=uQ(BE.pipeline);pe.exports.connect=uQ(BE.connect);pe.exports.upgrade=uQ(BE.upgrade);pe.exports.MockClient=pxt;pe.exports.MockCallHistory=mxt;pe.exports.MockCallHistoryLog=Ext;pe.exports.MockPool=Ixt;pe.exports.MockAgent=Cxt;pe.exports.SnapshotAgent=yxt;pe.exports.mockErrors=Bxt;var{EventSource:Vxt}=mNe();pe.exports.EventSource=Vxt;function Wxt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=Wxt});var lQ=m(Vd=>{"use strict";Vd.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Vd.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Vd.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";Vd.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Vd.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Vd.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Vd.collectAnHTTPQuotedString=(t,e)=>{let r="";for(e++;;){for(;e<t.length&&t[e]!=='"'&&t[e]!=="\\";)r+=t[e],++e;if(e>=t.length)break;let n=t[e];if(++e,n==="\\"){if(e>=t.length){r+="\\";break}r+=t[e],++e}else break}return[r,e]}});var wNe=m((fCr,QNe)=>{"use strict";var{asciiLowercase:Qv,solelyContainsHTTPTokenCodePoints:Jxt,soleyContainsHTTPQuotedStringTokenCodePoints:zxt}=lQ();QNe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=Qv(String(e)),this._map.get(e)}has(e){return e=Qv(String(e)),this._map.has(e)}set(e,r){if(e=Qv(String(e)),r=String(r),!Jxt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!zxt(r))throw new Error(`Invalid MIME type parameter value "${r}": only HTTP quoted-string token code points are valid.`);return this._map.set(e,r)}clear(){this._map.clear()}delete(e){return e=Qv(String(e)),this._map.delete(e)}forEach(e,r){this._map.forEach(e,r)}keys(){return this._map.keys()}values(){return this._map.values()}entries(){return this._map.entries()}[Symbol.iterator](){return this._map[Symbol.iterator]()}}});var TNe=m((gCr,NNe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:jxt,removeTrailingHTTPWhitespace:SNe,isHTTPWhitespaceChar:Kxt,solelyContainsHTTPTokenCodePoints:tJ,soleyContainsHTTPQuotedStringTokenCodePoints:$xt,asciiLowercase:rJ,collectAnHTTPQuotedString:Xxt}=lQ();NNe.exports=t=>{t=jxt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!tJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=SNe(n),n.length===0||!tJ(n))return null;let s={type:rJ(r),subtype:rJ(n),parameters:new Map};for(;e<t.length;){for(++e;Kxt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=rJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Xxt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=SNe(o),o==="")continue}i.length>0&&tJ(i)&&$xt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var RNe=m((pCr,xNe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Zxt}=lQ();xNe.exports=t=>{let e=`${t.type}/${t.subtype}`;if(t.parameters.size===0)return e;for(let[r,n]of t.parameters)e+=";",e+=r,e+="=",(!Zxt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var _Ne=m((ECr,vNe)=>{"use strict";var eRt=wNe(),tRt=TNe(),rRt=RNe(),{asciiLowercase:DNe,solelyContainsHTTPTokenCodePoints:kNe}=lQ();vNe.exports=class{constructor(e){e=String(e);let r=tRt(e);if(r===null)throw new Error(`Could not parse MIME type string "${e}"`);this._type=r.type,this._subtype=r.subtype,this._parameters=new eRt(r.parameters)}static parse(e){try{return new this(e)}catch{return null}}get essence(){return`${this.type}/${this.subtype}`}get type(){return this._type}set type(e){if(e=DNe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!kNe(e))throw new Error(`Invalid type ${e}: must contain only HTTP token code points`);this._type=e}get subtype(){return this._subtype}set subtype(e){if(e=DNe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!kNe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return rRt(this)}isJavaScript({prohibitParameters:e=!1}={}){switch(this._type){case"text":switch(this._subtype){case"ecmascript":case"javascript":case"javascript1.0":case"javascript1.1":case"javascript1.2":case"javascript1.3":case"javascript1.4":case"javascript1.5":case"jscript":case"livescript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}case"application":switch(this._subtype){case"ecmascript":case"javascript":case"x-ecmascript":case"x-javascript":return!e||this._parameters.size===0;default:return!1}default:return!1}}isXML(){return this._subtype==="xml"&&(this._type==="text"||this._type==="application")||this._subtype.endsWith("+xml")}isHTML(){return this._subtype==="html"&&this._type==="text"}}});var sTe=m(Bn=>{"use strict";var lJ=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),FRt=lJ(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i(await(0,r.stat)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,A={})=>{let{ignoreErrors:c=!1}=A;try{return i((0,e.statSync)(a),A)}catch(u){let l=u;if(c||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,A)=>a.isFile()&&o(a,A),o=(a,A)=>{let c=A.uid??process.getuid?.(),u=A.groups??process.getgroups?.()Line truncated
%s`,v,v,f,s);let P=f.type==="*"?sz:f.type==="?"?az:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+v}R(),o&&(s+="\\\\");let M=TDt[s.charAt(0)];for(let v=A.length-1;v>-1;v--){let P=A[v],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),ne=s.slice(P.reEnd-8,P.reEnd)+ee,Ae=D.split(")").length,ge=D.split("(").length-Ae,De=ee;for(let it=0;it<ge;it++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==iz?"(?:$|\\/)":"";s=D+z+ee+$e+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===iz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return RDt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?sz:r.dot?SDt:NDt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?kDt(a):a===Ys?Ys:a._src).reduce((a,A)=>(a[a.length-1]===Ys&&A===Ys||a.push(A),a),[]),o.forEach((a,A)=>{a!==Ys||o[A-1]===Ys||(A===0?o.length>1?o[A+1]="(?:\\/|"+n+"\\/)?"+o[A+1]:o[A]=n:A===o.length-1?o[A-1]+="(?:\\/|"+n+")?":(o[A-1]+="(?:\\/|\\/"+n+"\\/)"+o[A+1],o[A+1]=Ys))}),o.filter(a=>a!==Ys).join("/"))).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,s)}catch{this.regexp=!1}return this.regexp}match(e,r=this.partial){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let n=this.options;oz.sep!=="/"&&(e=e.split(oz.sep).join("/")),e=e.split(pxe),this.debug(this.pattern,"split",e);let s=this.set;this.debug(this.pattern,"set",s);let i;for(let o=e.length-1;o>=0&&(i=e[o],!i);o--);for(let o=0;o<s.length;o++){let a=s[o],A=e;if(n.matchBase&&a.length===1&&(A=[i]),this.matchOne(A,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return lo.defaults(e).Minimatch}};lo.Minimatch=TE});var Qxe=m((myr,bxe)=>{bxe.exports=Bxe;var uz=b("fs"),{EventEmitter:_Dt}=b("events"),{Minimatch:cz}=Cxe(),{resolve:FDt}=b("path");function MDt(t,e){return new Promise((r,n)=>{uz.readdir(t,{withFileTypes:!0},(s,i)=>{if(s)switch(s.code){case"ENOTDIR":e?n(s):r([]);break;case"ENOTSUP":case"ENOENT":case"ENAMETOOLONG":case"UNKNOWN":r([]);break;default:n(s);break}else r(i)})})}function Ixe(t,e){return new Promise((r,n)=>{(e?uz.stat:uz.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?Ixe(t,!1):null):r(null):r(o)})})}async function*yxe(t,e,r,n,s,i){let o=await MDt(e+t,i);for(let a of o){let A=a.name;A===void 0&&(A=a,n=!0);let c=t+"/"+A,u=c.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await Ixe(l,r)),!d&&a.name!==void 0&&(d=a),d===null&&(d={isDirectory:()=>!1}),d.isDirectory()?s(u)||(yield{relative:u,absolute:l,stats:d},yield*yxe(c,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*LDt(t,e,r,n){yield*yxe("",t,e,r,n,!0)}function UDt(t){return{pattern:t.pattern,dot:!!t.dot,noglobstar:!!t.noglobstar,matchBase:!!t.matchBase,nocase:!!t.nocase,ignore:t.ignore,skip:t.skip,follow:!!t.follow,stat:!!t.stat,nodir:!!t.nodir,mark:!!t.mark,silent:!!t.silent,absolute:!!t.absolute}}var Uv=class extends _Dt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=UDt(r||{}),this.matchers=[],this.options.pattern){let s=Array.isArray(this.options.pattern)?this.options.pattern:[this.options.pattern];this.matchers=s.map(i=>new cz(i,{dot:this.options.dot,noglobstar:this.options.noglobstar,matchBase:this.options.matchBase,nocase:this.options.nocase}))}if(this.ignoreMatchers=[],this.options.ignore){let s=Array.isArray(this.options.ignore)?this.options.ignore:[this.options.ignore];this.ignoreMatchers=s.map(i=>new cz(i,{dot:!0}))}if(this.skipMatchers=[],this.options.skip){let s=Array.isArray(this.options.skip)?this.options.skip:[this.options.skip];this.skipMatchers=s.map(i=>new cz(i,{dot:!0}))}this.iterator=LDt(FDt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive Line truncated
`,w);w=H===-1?Q.length:H}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let H=Q.indexOf("*/",w);H!==-1?(w=H+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function xC(Q){let B=TC(Q.toString()),w=B.match(VF);if(w||(w=B.match(WF)),!w)throw new Error(`could not parse args in autoInject
Source:
`+B);let[,F]=w;return F.replace(/\s/g,"").split(_w).map(H=>H.replace(Fw,"").trim())}function xC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=TC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,yt){var Ft=V.map(St=>Se[St]);Ft.push(yt),I(H)(...Ft)}}),SC(w,B)}class RC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):DC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):DC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function DC(Q,B){Q.length=1,Q.head=Q.tail=B}function Ap(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function yt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,Nn;function Co(Ch,...UC){if(Ch)return Pe?Nn(Ch):Ir();if(UC.length<=1)return Ir(UC[0]);Ir(UC)}var dp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(dp):Mt._tasks.push(dp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ch,UC)=>{Ir=Ch,Nn=UC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var Nn=Ue[Nt],Co=V.indexOf(Nn);Co===0?V.shift():Co>0&&V.splice(Co,1),Nn.callback(be,...Pe),be!=null&&yt("error",be,Nn.data)}H<=Mt.concurrency-Mt.buffer&&yt("unsaturated"),Mt.idle()&&yt("drain"),Mt.process()}}function lp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>yt("drain")),!0):!1}let Eh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(Ir,Nn)=>{if(Ir)return Nt(Ir);Pe(Nn)})});Se(Ue),j(Ue,be)};var LC=!1,Mt={_tasks:new RC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?lp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?lp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?lp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?lp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!LC){for(LC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}H+=1,Mt._tasks.length===0&&yt("empty"),H===Mt.concurrency&&yt("saturated");var Nn=ne(Eo(Ue));F(be,Nn)}LC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Eh("saturated")},unsaturated:{writable:!1,value:Eh("unsaturated")},empty:{writable:!1,value:Eh("empty")},drain:{writable:!1,value:Eh("drain")},error:{writable:!1,value:Eh("error")}}),Mt}function kC(Q,B){return Ap(Q,1,B)}function cp(Q,B,w){return Ap(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return Xs(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function up(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Mw(...Q){return up(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var G=E(N,4);function K(Q,B,w){return G(Q,1/0,B,w)}var X=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(Exe=global[Zn]||[],Ixe(vr,Exe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Cxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,Lv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Cxe()}return Object.defineProperty(e,Lv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Dg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var Exe;global[Zn]||Ixe(global,vr[Zn]);nz.exports=tz(TDt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(nz.exports=tz(vr),vr.__patched=!0);function tz(t){SDt(t),t.gracefulify=tz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,Z){return typeof z=="function"&&(Z=z,z=null),ne(D,z,Z);function ne(Ae,ge,De,Ke){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?TE([ne,[Ae,ge,De],it,Ke||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),Ae(D,z,Z,ne);function Ae(ge,De,Ke,it,Wt){return n(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?TE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),Ae(D,z,Z,ne);function Ae(ge,De,Ke,it,Wt){return i(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?TE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,Z,ne){return typeof Z=="function"&&(ne=Z,Z=0),Ae(D,z,Z,ne);function Ae(ge,De,Ke,it,Wt){return a(ge,De,Ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?TE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,Z){typeof z=="function"&&(Z=z,z=null);var ne=u.test(process.version)?function(De,Ke,it,Wt){return c(De,Ae(De,Ke,it,Wt))}:function(De,Ke,it,Wt){return c(De,Ke,Ae(De,Ke,it,Wt))};return ne(D,z,Z);function Ae(ge,De,Ke,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?TE([ne,[ge,De,Ke],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof Ke=="function"&&Ke.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=NDt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,Z){z?(D.destroy(),D.emit("error",z)):(D.fd=Z,D.emit("open",Z))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,Z,ne){return typeof Z=="function"&&(ne=Z,Z=null),Ae(D,z,Z,ne);function Ae(ge,De,Ke,it,Wt){return v(ge,De,Ke,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?TE([Ae,[ge,De,Ke,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function TE(t){Dg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),rz()}var Mv;function Cxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);rz()}function rz(){if(clearTimeout(Mv),Mv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Dg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Dg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(Dg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Mv===void 0&&(Mv=setTimeout(rz,0))}}});var Uv=m((ZIr,yxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable=t=>Pc(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};ZDe.exports={AggregateError:Pz,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var Oz=m((cBr,e2e)=>{"use strict";e2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((uBr,n2e)=>{"use strict";var{format:X_t,inspect:n_}=Oz(),{AggregateError:$_t}=xr(),Z_t=globalThis.AggregateError||$_t,eFt=Symbol("kIsNodeError"),tFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],rFt=/^([A-Z][a-z0-9]*)+$/,nFt="__node_internal_",s_={};function _g(t,e){if(!t)throw new s_.ERR_INTERNAL_ASSERTION(e)}function t2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function sFt(t,e,r){if(typeof e=="function")return _g(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return _g(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:X_t(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(sFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[eFt]=!0,s_[t]=n}function r2e(t){let e=nFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function iFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new Z_t([e,t],e.message);return r.code=e.code,r}return t||e}var Hz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new s_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{_g(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)_g(typeof A=="string","All expected entries have to be of type string"),tFt.includes(A)?s.push(A.toLowerCase()):rFt.test(A)?i.push(A):(_g(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=CX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=CX(" "+s+"="+n[s]+`
`);return kt.from(r)};gC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};gC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,uh(e.mode&p9t,6),100),kt.write(r,uh(e.uid,6),108),kt.write(r,uh(e.gid,6),116),b9t(e.size,r,124),kt.write(r,uh(e.mtime.getTime()/1e3|0,11),136),r[156]=kF+y9t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(wUe,r,Sw),kt.copy(h9t,r,IX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,uh(e.devmajor||0,6),329),kt.write(r,uh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,uh(NUe(r),6),148),r)};gC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-kF,i=fC(e,0,100,r),o=ch(e,100,8),a=ch(e,108,8),A=ch(e,116,8),c=ch(e,124,12),u=ch(e,136,12),l=I9t(s),d=e[157]===0?null:fC(e,157,100,r),h=fC(e,265,32),f=fC(e,297,32),p=ch(e,329,8),I=ch(e,337,8),E=NUe(e);if(E===256)return null;if(E!==ch(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(m9t(e))e[345]&&(i=fC(e,345,155,r)+"/"+i);else if(!E9t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function m9t(t){return kt.equals(wUe,t.subarray(Sw,Sw+6))}function E9t(t){return kt.equals(f9t,t.subarray(Sw,Sw+6))&&kt.equals(g9t,t.subarray(IX,IX+2))}function C9t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function I9t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function y9t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function SUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function NUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function uh(t,e){return t=t.toString(8),t.length>e?d9t.slice(0,e)+" ":l9t.slice(0,e-t.length)+t+" "}function B9t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function b9t(t,e,r){t.toString(8).length>11?B9t(t,e,r):kt.write(e,uh(t,11),r)}function Q9t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function ch(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Q9t(t);{for(;e<t.length&&t[e]===32;)e++;let n=C9t(SUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function fC(t,e,r,n){return kt.toString(t.subarray(e,SUe(t,0,e,e+r)),n)}function CX(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var kUe=m((MQr,DUe)=>{var{Writable:w9t,Readable:S9t,getStreamError:TUe}=EX(),N9t=nX(),xUe=cC(),pC=yX(),T9t=xUe.alloc(0),bX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new N9t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return T9t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return xUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},QX=class extends S9t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(TUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=RUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},wX=class extends w9t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function pae(t,e){if(process.env.GITHUB_OUTPUT||"")return PC("OUTPUT",i1(t,e));process.stdout.write(RP.EOL),Ba("set-output",{name:t},hA(e))}function Yh(t){process.exitCode=xP.Failure,TA(t)}function _a(){return process.env.RUNNER_DEBUG==="1"}function q(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",r1(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Ba("warning",r1(e),t instanceof Error?t.toString():t)}function mae(t,e={}){Ba("notice",r1(e),t instanceof Error?t.toString():t)}function ee(t){process.stdout.write(t+RP.EOL)}function HJe(t){KF("group",t)}function GJe(){KF("endgroup")}function uN(t,e){return OJe(this,void 0,void 0,function*(){HJe(t);let r;try{r=yield e()}finally{GJe()}return r})}function cm(t,e){if(process.env.GITHUB_STATE||"")return PC("STATE",i1(t,e));Ba("save-state",{name:t},hA(e))}import*as KW from"fs";import*as XW from"path";import*as yv from"os";import{readFileSync as qJe,existsSync as YJe}from"fs";import{EOL as VJe}from"os";var um=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(YJe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(qJe(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${VJe}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var FP=ce(Bae(),1),bae=ce(tN(),1),sze=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Qae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function wae(t){return new FP.HttpClient().getAgent(t)}function ize(t){return new FP.HttpClient().getAgentDispatcher(t)}function Sae(t){let e=ize(t);return(n,s)=>sze(this,void 0,void 0,function*(){return(0,bae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Nae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function mN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function EN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>EN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Tae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function xae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Rae=Function.bind,Dae=Rae.bind(Rae);function kae(t,e,r){let n=Dae(xae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Dae(Tae,null).apply(null,i)})}function aze(){let t=Symbol("Singular"),e={registry:{}},r=EN.bind(null,e,t);return kae(r,e,t),r}function Aze(){let t={registry:{}},e=EN.bind(null,t);return kae(e,t),e}var vae={Singular:aze,Collection:Aze};var $P=ce(zP(),1);var iAe=ce(zP(),1);var tje="0.0.0-developmen Line truncated
`+B);let[,F]=w;return F.replace(/\s/g,"").split(Mw).map(H=>H.replace(Lw,"").trim())}function RC(Q,B){var w={};return Object.keys(Q).forEach(F=>{var H=Q[F],V,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))V=[...H],H=V.pop(),w[F]=V.concat(V.length>0?te:H);else if(j)w[F]=H;else{if(V=xC(H),H.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(te)}function te(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(H)(...Ft)}}),NC(w,B)}class DC{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):kC(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):kC(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function kC(Q,B){Q.length=1,Q.head=Q.tail=B}function cp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),H=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function te(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var yr,Nn;function Co(Ih,...PC){if(Ih)return Pe?Nn(Ih):yr();if(PC.length<=1)return yr(PC[0]);yr(PC)}var hp=Mt._createTaskItem(Ue,Pe?Co:Nt||Co);if(be?Mt._tasks.unshift(hp):Mt._tasks.push(hp),Ft||(Ft=!0,c(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ih,PC)=>{yr=Ih,Nn=PC})}function Eo(Ue){return function(be,...Pe){H-=1;for(var Nt=0,yr=Ue.length;Nt<yr;Nt++){var Nn=Ue[Nt],Co=V.indexOf(Nn);Co===0?V.shift():Co>0&&V.splice(Co,1),Nn.callback(be,...Pe),be!=null&&Bt("error",be,Nn.data)}H<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function dp(Ue){return Ue.length===0&&Mt.idle()?(c(()=>Bt("drain")),!0):!1}let Ch=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{te(Ue,(yr,Nn)=>{if(yr)return Nt(yr);Pe(Nn)})});Se(Ue),j(Ue,be)};var UC=!1,Mt={_tasks:new DC,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?dp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!UC){for(UC=!0;!Mt.paused&&H<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var yr=Mt._tasks.shift();Ue.push(yr),V.push(yr),be.push(yr.data)}H+=1,Mt._tasks.length===0&&Bt("empty"),H===Mt.concurrency&&Bt("saturated");var Nn=ne(Eo(Ue));F(be,Nn)}UC=!1}},length(){return Mt._tasks.length},running(){return H},workersList(){return V},idle(){return Mt._tasks.length+H===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,c(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Ch("saturated")},unsaturated:{writable:!1,value:Ch("unsaturated")},empty:{writable:!1,value:Ch("empty")},drain:{writable:!1,value:Ch("drain")},error:{writable:!1,value:Ch("error")}}),Mt}function vC(Q,B){return cp(Q,1,B)}function up(Q,B,w){return cp(Q,B,w)}function mo(Q,B,w,F){F=Y(F);var H=I(w);return $s(Q,(V,J,j)=>{H(B,V,(te,Se)=>{B=Se,j(te)})},V=>F(V,B))}var Ia=E(mo,4);function lp(...Q){var B=Q.map(I);return function(...w){var F=this,H=w[w.length-1];return typeof H=="function"?w.pop():H=eu(),Ia(B,w,(V,J,j)=>{J.apply(F,V.concat((te,...Se)=>{j(te,Se)}))},(V,J)=>H(V,...J)),H[Zc]}}function Uw(...Q){return lp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var O=E(we,4);function N(Q,B,w,F){var H=I(w);return O(Q,B,(V,J)=>{H(V,(j,...te)=>j?J(j):J(j,te))},(V,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(V,j)})}var q=E(N,4);function K(Q,B,w){return q(Q,1/0,B,w)}var $=E(K,3);function oe(Q,B,w){retur Line truncated
GFS4: `),console.error(t)});vr[Zn]||(_xe=global[Zn]||[],Mxe(vr,_xe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||Fxe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,qv,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),Fxe()}return Object.defineProperty(e,qv,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){kg(vr[Zn]),b("assert").equal(vr[Zn].length,0)}));var _xe;global[Zn]||Mxe(global,vr[Zn]);fz.exports=dz(JDt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(fz.exports=dz(vr),vr.__patched=!0);function dz(t){VDt(t),t.gracefulify=dz,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),ne(D,z,ee);function ne(Ae,ge,De,$e){return e(Ae,ge,function(it){it&&(it.code==="EMFILE"||it.code==="ENFILE")?xE([ne,[Ae,ge,De],it,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=A);function A(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=0),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}var c=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var ne=u.test(process.version)?function(De,$e,it,Wt){return c(De,Ae(De,$e,it,Wt))}:function(De,$e,it,Wt){return c(De,$e,Ae(De,$e,it,Wt))};return ne(D,z,ee);function Ae(ge,De,$e,it){return function(Wt,vt){Wt&&(Wt.code==="EMFILE"||Wt.code==="ENFILE")?xE([ne,[ge,De,$e],Wt,it||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Wt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=WDt(t);E=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(E.prototype=Object.create(h.prototype),E.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=R),Object.defineProperty(t,"ReadStream",{get:function(){return E},set:function(D){E=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=E;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function E(D,z){return this instanceof E?(h.apply(this,arguments),this):E.apply(Object.create(E.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function R(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var v=t.open;t.open=P;function P(D,z,ee,ne){return typeof ee=="function"&&(ne=ee,ee=null),Ae(D,z,ee,ne);function Ae(ge,De,$e,it,Wt){return v(ge,De,$e,function(vt,hn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?xE([Ae,[ge,De,$e,it],vt,Wt||Date.now(),Date.now()]):typeof it=="function"&&it.apply(this,arguments)})}}return t}function xE(t){kg("ENQUEUE",t[0].name,t[1]),vr[Zn].push(t),hz()}var Gv;function Fxe(){for(var t=Date.now(),e=0;e<vr[Zn].length;++e)vr[Zn][e].length>2&&(vr[Zn][e][3]=t,vr[Zn][e][4]=t);hz()}function hz(){if(clearTimeout(Gv),Gv=void 0,vr[Zn].length!==0){var t=vr[Zn].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)kg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){kg("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,A=Math.max(i-s,1),c=Math.min(A*1.2,100);a>=c?(kg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[Zn].push(t)}Gv===void 0&&(Gv=setTimeout(hz,0))}}});var Yv=m((Byr,Lxe)=>{"use strict";var Pc=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Pc.writable=t=>Pc(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Pc.readable= Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};g2e.exports={AggregateError:Kz,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var $z=m((kBr,p2e)=>{"use strict";p2e.exports={format(t,...e){return t.replace(/%([sdifj])/g,function(...[r,n]){let s=e.shift();return n==="f"?s.toFixed(6):n==="j"?JSON.stringify(s):n==="s"&&typeof s=="object"?`${s.constructor!==Object?s.constructor.name:""} {}`.trim():s.toString()})},inspect(t){switch(typeof t){case"string":if(t.includes("'"))if(t.includes('"')){if(!t.includes("`")&&!t.includes("${"))return`\`${t}\``}else return`"${t}"`;return`'${t}'`;case"number":return isNaN(t)?"NaN":Object.is(t,-0)?String(t):t;case"bigint":return`${String(t)}n`;case"boolean":case"undefined":return String(t);case"object":return"{}"}}}});var bs=m((vBr,C2e)=>{"use strict";var{format:pFt,inspect:c_}=$z(),{AggregateError:mFt}=xr(),EFt=globalThis.AggregateError||mFt,CFt=Symbol("kIsNodeError"),IFt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],yFt=/^([A-Z][a-z0-9]*)+$/,BFt="__node_internal_",u_={};function Fg(t,e){if(!t)throw new u_.ERR_INTERNAL_ASSERTION(e)}function m2e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function bFt(t,e,r){if(typeof e=="function")return Fg(e.length<=r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${e.length}).`),e(...r);let n=(e.match(/%[dfijoOs]/g)||[]).length;return Fg(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:pFt(e,...r)}function ts(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(bFt(t,e,i))}toString(){return`${this.name} [${t}]: ${this.message}`}}Object.defineProperties(n.prototype,{name:{value:r.name,writable:!0,enumerable:!1,configurable:!0},toString:{value(){return`${this.name} [${t}]: ${this.message}`},writable:!0,enumerable:!1,configurable:!0}}),n.prototype.code=t,n.prototype[CFt]=!0,u_[t]=n}function E2e(t){let e=BFt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function QFt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new EFt([e,t],e.message);return r.code=e.code,r}return t||e}var Xz=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new u_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ts("ERR_ASSERTION","%s",Error);ts("ERR_INVALID_ARG_TYPE",(t,e,r)=>{Fg(typeof t=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let n="The ";t.endsWith(" argument")?n+=`${t} `:n+=`"${t}" ${t.includes(".")?"property":"argument"} `,n+="must be ";let s=[],i=[],o=[];for(let A of e)Fg(typeof A=="string","All expected entries have to be of type string"),IFt.includes(A)?s.push(A.toLowerCase()):yFt.test(A)?i.push(A):(Fg(A!=="object",'The value "object" should be written as "Object"'),o.push(A));if(i.length>0){let A=s.indexOf("object");A!==-1&&(s.splice(s,A,1),i.push("Object"))}if(s.length>0){switch(s.length){case 1:n+=`of type ${s[0]}`;break;case 2:n+=`one of type ${s[0]} or ${s[1]}`;break;default:{lLine truncated
`)),e.linkname&&(r+=R$(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=R$(" "+s+"="+n[s]+`
`);return kt.from(r)};pC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};pC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,lh(e.mode&F9t,6),100),kt.write(r,lh(e.uid,6),108),kt.write(r,lh(e.gid,6),116),G9t(e.size,r,124),kt.write(r,lh(e.mtime.getTime()/1e3|0,11),136),r[156]=UF+O9t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(HUe,r,Tw),kt.copy(k9t,r,D$),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,lh(e.devmajor||0,6),329),kt.write(r,lh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,lh(qUe(r),6),148),r)};pC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-UF,i=gC(e,0,100,r),o=uh(e,100,8),a=uh(e,108,8),A=uh(e,116,8),c=uh(e,124,12),u=uh(e,136,12),l=P9t(s),d=e[157]===0?null:gC(e,157,100,r),h=gC(e,265,32),f=gC(e,297,32),p=uh(e,329,8),I=uh(e,337,8),E=qUe(e);if(E===256)return null;if(E!==uh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(M9t(e))e[345]&&(i=gC(e,345,155,r)+"/"+i);else if(!L9t(e)){if(!n)throw new Error("Invalid tar header: unknown format.")}return s===0&&i&&i[i.length-1]==="/"&&(s=5),{name:i,mode:o,uid:a,gid:A,size:c,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:p,devminor:I,pax:null}};function M9t(t){return kt.equals(HUe,t.subarray(Tw,Tw+6))}function L9t(t){return kt.equals(v9t,t.subarray(Tw,Tw+6))&&kt.equals(_9t,t.subarray(D$,D$+2))}function U9t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function P9t(t){switch(t){case 0:return"file";case 1:return"link";case 2:return"symlink";case 3:return"character-device";case 4:return"block-device";case 5:return"directory";case 6:return"fifo";case 7:return"contiguous-file";case 72:return"pax-header";case 55:return"pax-global-header";case 27:return"gnu-long-link-path";case 28:case 30:return"gnu-long-path"}return null}function O9t(t){switch(t){case"file":return 0;case"link":return 1;case"symlink":return 2;case"character-device":return 3;case"block-device":return 4;case"directory":return 5;case"fifo":return 6;case"contiguous-file":return 7;case"pax-header":return 72}return 0}function GUe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function qUe(t){let e=256;for(let r=0;r<148;r++)e+=t[r];for(let r=156;r<512;r++)e+=t[r];return e}function lh(t,e){return t=t.toString(8),t.length>e?D9t.slice(0,e)+" ":R9t.slice(0,e-t.length)+t+" "}function H9t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function G9t(t,e,r){t.toString(8).length>11?H9t(t,e,r):kt.write(e,lh(t,11),r)}function q9t(t){let e;if(t[0]===128)e=!0;else if(t[0]===255)e=!1;else return null;let r=[],n;for(n=t.length-1;n>0;n--){let o=t[n];e?r.push(o):r.push(255-o)}let s=0,i=r.length;for(n=0;n<i;n++)s+=r[n]*Math.pow(256,n);return e?s:-1*s}function uh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return q9t(t);{for(;e<t.length&&t[e]===32;)e++;let n=U9t(GUe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(kt.toString(t.subarray(e,n)),8)}}function gC(t,e,r,n){return kt.toString(t.subarray(e,GUe(t,0,e,e+r)),n)}function R$(t){let e=kt.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var zUe=m((iwr,JUe)=>{var{Writable:Y9t,Readable:V9t,getStreamError:YUe}=x$(),W9t=f$(),VUe=uC(),mC=k$(),J9t=VUe.alloc(0),_$=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new W9t,this._offset=0}push(e){this.buffered+=e.byteLength,this.queue.push(e)}shiftFirst(e){return this._buffered===0?null:this._next(e)}shift(e){if(e>this.buffered)return null;if(e===0)return J9t;let r=this._next(e);if(e===r.byteLength)return r;let n=[r];for(;(e-=r.byteLength)>0;)r=this._next(e),n.push(r);return VUe.concat(n)}_next(e){let r=this.queue.peek(),n=r.byteLength-this._offset;if(e>=n){let s=this._offset?r.subarray(this._offset,r.byteLength):r;return this.queue.shift(),this._offset=0,this.buffered-=n,this.shifted+=n,s}return this.buffered-=e,this.shifted+=e,r.subarray(this._offset,this._offset+=e)}},F$=class extends V9t{constructor(e,r,n){super(),this.header=r,this.offset=n,this._parent=e}_read(e){this.header.size===0&&this.push(null),this._parent._stream===this&&this._parent._update(),e(null)}_predestroy(){this._parent.destroy(YUe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=WUe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},M$=class extends Y9t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Nae(t,e){if(process.env.GITHUB_OUTPUT||"")return OC("OUTPUT",a1(t,e));process.stdout.write(MP.EOL),Ba("set-output",{name:t},hA(e))}function Vh(t){process.exitCode=FP.Failure,TA(t)}function _a(){return process.env.RUNNER_DEBUG==="1"}function G(t){Ba("debug",{},t)}function TA(t,e={}){Ba("error",s1(e),t instanceof Error?t.toString():t)}function We(t,e={}){Ba("warning",s1(e),t instanceof Error?t.toString():t)}function Tae(t,e={}){Ba("notice",s1(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+MP.EOL)}function nze(t){rM("group",t)}function sze(){rM("endgroup")}function dN(t,e){return rze(this,void 0,void 0,function*(){nze(t);let r;try{r=yield e()}finally{sze()}return r})}function mu(t,e){if(process.env.GITHUB_STATE||"")return OC("STATE",a1(t,e));Ba("save-state",{name:t},hA(e))}function um(t){return process.env[`STATE_${t}`]||""}import*as aJ from"fs";import*as AJ from"path";import*as Nv from"os";import{readFileSync as ize,existsSync as oze}from"fs";import{EOL as aze}from"os";var lm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(oze(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(ize(process.env.GITHUB_EVENT_PATH,{encoding:"utf8"}));else{let s=process.env.GITHUB_EVENT_PATH;process.stdout.write(`GITHUB_EVENT_PATH ${s} does not exist${aze}`)}this.eventName=process.env.GITHUB_EVENT_NAME,this.sha=process.env.GITHUB_SHA,this.ref=process.env.GITHUB_REF,this.workflow=process.env.GITHUB_WORKFLOW,this.action=process.env.GITHUB_ACTION,this.actor=process.env.GITHUB_ACTOR,this.job=process.env.GITHUB_JOB,this.runAttempt=parseInt(process.env.GITHUB_RUN_ATTEMPT,10),this.runNumber=parseInt(process.env.GITHUB_RUN_NUMBER,10),this.runId=parseInt(process.env.GITHUB_RUN_ID,10),this.apiUrl=(e=process.env.GITHUB_API_URL)!==null&&e!==void 0?e:"https://api.github.com",this.serverUrl=(r=process.env.GITHUB_SERVER_URL)!==null&&r!==void 0?r:"https://github.com",this.graphqlUrl=(n=process.env.GITHUB_GRAPHQL_URL)!==null&&n!==void 0?n:"https://api.github.com/graphql"}get issue(){let e=this.payload;return Object.assign(Object.assign({},this.repo),{number:(e.issue||e.pull_request||e).number})}get repo(){if(process.env.GITHUB_REPOSITORY){let[e,r]=process.env.GITHUB_REPOSITORY.split("/");return{owner:e,repo:r}}if(this.payload.repository)return{owner:this.payload.repository.owner.login,repo:this.payload.repository.name};throw new Error("context.repo requires a GITHUB_REPOSITORY environment variable like 'owner/repo'")}};var HP=ce(vae(),1),_ae=ce(nN(),1),Ize=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Fae(t,e){if(!t&&!e.auth)throw new Error("Parameter token or opts.auth is required");if(t&&e.auth)throw new Error("Parameters token and opts.auth may not both be specified");return typeof e.auth=="string"?e.auth:`token ${t}`}function Mae(t){return new HP.HttpClient().getAgent(t)}function yze(t){return new HP.HttpClient().getAgentDispatcher(t)}function Lae(t){let e=yze(t);return(n,s)=>Ize(this,void 0,void 0,function*(){return(0,_ae.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Uae(){return process.env.GITHUB_API_URL||"https://api.github.com"}function CN(){return typeof navigator=="object"&&"userAgent"in navigator?navigator.userAgent:typeof process=="object"&&process.version!==void 0?`Node.js/${process.version.substr(1)} (${process.platform}; ${process.arch})`:"<environment undetectable>"}function IN(t,e,r,n){if(typeof r!="function")throw new Error("method for before hook must be a function");return n||(n={}),Array.isArray(e)?e.reverse().reduce((s,i)=>IN.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function Pae(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(A=>(a=A,s(a,o))).then(()=>a)}),e==="error"&&(n=(i,o)=>Promise.resolve().then(i.bind(null,o)).catch(a=>s(a,o))),t.registry[r].push({hook:n,orig:s})}function Oae(t,e,r){if(!t.registry[e])return;let n=t.registry[e].map(s=>s.orig).indexOf(r);n!==-1&&t.registry[e].splice(n,1)}var Hae=Function.bind,Gae=Hae.bind(Hae);function qae(t,e,r){let n=Gae(Oae,null).apply(null,r?[e,r]:[e]);t.api={remove:n},t.remove=n,["before","error","after","wrap"].forEach(s=>{let i=r?[e,s,r]:[e,s];t[s]=t.api[s]=Gae(Pae,null).apply(null,i)})}function bze(){let t=Symbol("Singular"),e={registry:{}},r=IN.bind(null,e,t);return qae(r,e,t),r}function Qze(){let t={registry:{}},e=IN.bind(null,t);return qae(e,t),e}var Yae={Singular:bze,Collection:Qze};var sO=ce(e Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var nje=class extends Error{constructor(t,e,r){super(rje(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},sje=["method","baseUrl","url","headers","request","query","mediaType","operationName"],ije=["query","method","url"],sAe=/\/api\/v3\/?$/;function oje(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 o in r)if(ije.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>sje.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return sAe.test(i)&&(s.url=i.replace(sAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new nje(s,a,o.data)}return o.data.data})}function jP(t,e){let r=t.defaults(e);return Object.assign((s,i)=>oje(r,s,i),{defaults:jP.bind(null,r),endpoint:r.endpoint})}var t7t=jP(iAe.request,{headers:{"user-agent":`octokit-graphql.js/${tje} ${mN()}`},method:"POST",url:"/graphql"});function oAe(t){return jP(t,{method:"POST",url:"/graphql"})}var KP="(?:[a-zA-Z0-9_-]+)",aAe="\\.",AAe=new RegExp(`^${KP}${aAe}${KP}${aAe}${KP}$`),aje=AAe.test.bind(AAe);async function Aje(t){let e=aje(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"}}function cje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function uje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=cje(t),e(s)}var cAe=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(Aje.bind(null,e),{hook:uje.bind(null,e)})};var XP="7.0.6";var uAe=()=>{},lje=console.warn.bind(console),dje=console.error.bind(console);function hje(t={}){return typeof t.debug!="function"&&(t.debug=uAe),typeof t.info!="function"&&(t.info=uAe),typeof t.warn!="function"&&(t.warn=lje),typeof t.error!="function"&&(t.error=dje),t}var lAe=`octokit-core.js/${XP} ${mN()}`,yN=class{static VERSION=XP;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new vae.Collection,n={baseUrl:$P.request.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} ${lAe}`:lAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=$P.request.defaults(n),this.graphql=oAe(this.request).defaults(n),this.log=hje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=cAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var ZP="17.0.0";var fje={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`)}var Cje=class extends Error{constructor(t,e,r){super(Eje(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},Ije=["method","baseUrl","url","headers","request","query","mediaType","operationName"],yje=["query","method","url"],gAe=/\/api\/v3\/?$/;function Bje(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 o in r)if(yje.includes(o))return Promise.reject(new Error(`[@octokit/graphql] "${o}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((o,a)=>Ije.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return gAe.test(i)&&(s.url=i.replace(gAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let A of Object.keys(o.headers))a[A]=o.headers[A];throw new Cje(s,a,o.data)}return o.data.data})}function tO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Bje(r,s,i),{defaults:tO.bind(null,r),endpoint:r.endpoint})}var I7t=tO(pAe.request,{headers:{"user-agent":`octokit-graphql.js/${mje} ${CN()}`},method:"POST",url:"/graphql"});function mAe(t){return tO(t,{method:"POST",url:"/graphql"})}var rO="(?:[a-zA-Z0-9_-]+)",EAe="\\.",CAe=new RegExp(`^${rO}${EAe}${rO}${EAe}${rO}$`),bje=CAe.test.bind(CAe);async function Qje(t){let e=bje(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"}}function wje(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Sje(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=wje(t),e(s)}var IAe=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(Qje.bind(null,e),{hook:Sje.bind(null,e)})};var nO="7.0.6";var yAe=()=>{},Nje=console.warn.bind(console),Tje=console.error.bind(console);function xje(t={}){return typeof t.debug!="function"&&(t.debug=yAe),typeof t.info!="function"&&(t.info=yAe),typeof t.warn!="function"&&(t.warn=Nje),typeof t.error!="function"&&(t.error=Tje),t}var BAe=`octokit-core.js/${nO} ${CN()}`,bN=class{static VERSION=nO;static defaults(e){return class extends this{constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Yae.Collection,n={baseUrl:sO.request.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} ${BAe}`:BAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=sO.request.defaults(n),this.graphql=mAe(this.request).defaults(n),this.log=xje(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...o}=e,a=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:o},e.auth));r.wrap("request",a.hook),this.auth=a}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=IAe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var iO="17.0.0";var Rje={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"],createHostedRunnerForOrg:["POST /orgs/{org}/actions/hosted-runners"],createOrUpdateEnvironmentSecret:["PUT /repos/{owner}/{repo}/environments/{environment_name}/secrets/{secret_name}"],createOrUpdateOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}"],createOrUpdateRepoSecret:["PUT /repos/{owner}/{repo}/actions/secrets/{secr Line truncated
`),e=e.replace(/\r/g,`
`));let s=e.split(`
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...aO(n.patterns)),n})}static stat(e,r,n){return dO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield pm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield pm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var rKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function xN(t,e){return rKe(this,void 0,void 0,function*(){return yield NN.create(t,e)})}var Uue=ce(oy(),1);import*as YN from"crypto";import*as Cm from"fs";import*as Zh from"path";import*as Pue from"util";var ay;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(ay||(ay={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var GN=2,qN=5e3,kO=5e3,vO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Lue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Ay="cache.tar",_O="manifest.txt",PWt=10*Math.pow(1024,3);var Em=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},$$e=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},Z$e="1.0";function cy(){return Em(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=Zh.join(n,"actions","temp")}let r=Zh.join(e,YN.randomUUID());return yield qh(r),r})}function RA(t){return Cm.statSync(t).size}function FO(t){return Em(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield xN(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=$$e(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=Zh.relative(a,s).replace(new RegExp(`\\${Zh.sep}`,"g"),"/");q(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function uy(t){return Em(this,void 0,void 0,function*(){return Pue.promisify(Cm.unlink)(t)})}function Oue(t){return Em(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield NA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function ly(){return Em(this,void 0,void 0,function*(){let t=yield Oue("zstd",["--quiet"]),e=Uue.clean(t);return q(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function Gl(t){return t===vs.Gzip?ay.Gzip:ay.Zstd}function Hue(){return Em(this,void 0,void 0,function*(){return Cm.existsSync(vO)?vO:(yield Oue("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function MO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Im(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Z$e),YN.createHash("sha256").update(n.join("|")).digest("hex")}function Gue(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as zm from"fs";import{URL as Sot}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as eZe}from"node:os";import tZe from"node:util";import rZe from"node:process";function que(t,...e){rZe.stderr.write(`${tZe.format(t,...e)}${eZe}`)}var Yue=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Wue,LO=[],UO=[],WN=[];Yue&&PO(Yue);var Jue=Object.assign(t=>zue(t),{enable:PO,enabled:OO,disable:nZe,log:que});function PO(t){Wue=t,LO=[],UO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?UO.push(r.substring(1)):LO.push(r);for(let r of WN)r.enabled=OO(r.namespace)}function OO(t){if(t.endsWith("*"))return!0;for(let e of UO)if(Vue(t,e))return!1;for(let e of LO)if(Vue(t,e))return!0;return!1}function Vue(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function nZe(){let t=Wue||"";return PO(""),t}function zue(t){let e=Object.assign(r,{enabled:OO(t),destroy:sZe,log:Jue.log,namespace:t,extend:iZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return WN.push(e),e}function sZe(){let t=WN.indexOf(this);return t>=0?(WN.splice(t,1),!0):!1}function iZe(t){let e=zue(`${this.namespace}:${t}`);return e.log=this.log,e}var ym=Jue;var HO=["verbose","info","warning","error"],jue={verbose:400,info:300,warning:200,error:100};function Kue(t,e){e.log=(...r)=>{t.log(...r)}}function Xue(t){return HO.includes(t)}function oZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=ym(t.namespace);s.log=(...u)=>{ym.log(...u)};function i(u){if(u&&!Xue(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${HO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);ym.enable(l.join(","))}r&&(Xue(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${HO.join(", ")}.`));function o(u){return!!(n&&jue[u.level]<=jue[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Kue(u,d),o(d)){let h=ym.disable();ym.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return Kue(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var $ue=oZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),aZe=$ue.logger;function dy(t){return $ue.createClientLogger(t)}function JN(t){return t.toLowerCase()}function*AZe(t){for(let e of t.values())yield[e.name,e.value]}var GO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(JN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(JN(e))?.value}has(e){return this._headersMap.has(JN(e))}delete(e){this._headersMap.delete(JN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${dZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function KN(t){return t instanceof _s?!0:tf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import WO from"node:http";import JO from"node:https";import tle from"node:zlib";import{Transform as hZe}from"node:stream";var Ro=dy("ts-http-runtime");var fZe={};function hy(t){return t&&typeof t.pipe=="function"}function rle(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function nle(t){return t&&typeof t.byteLength=="number"}var XN=class extends hZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},zO=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Ua;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=EZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new XN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),hy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=gZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?pZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new XN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await mZe(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();hy(a)&&(c=rle(a));let u=Promise.resolve();hy(A)&&(u=rle(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?WO.request(a,A):JO.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&hy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):nle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?WO.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new WO.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return JO.globalAgent;let s=e.tlsSettings??fZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new JO.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function gZe(t){let e=Oi();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}function pZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=tle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=tle.createInflate();return t.pipe(n),n}return t}function mZe(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function EZe(t){return t?Buffer.isBuffer(t)?t.length:hy(t)?null:nle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function sle(){return new zO}function $N(){return sle()}var jO="logPolicy";function ZN(t={}){let e=t.logger??Ro.info,r=new Ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:jO,async sendRequest(n,s){if(!e. Line truncated
`;return e}function Get(t){return t instanceof Uint8Array?t.byteLength:yT(t)?t.size===-1?void 0:t.size:void 0}function qet(t){let e=0;for(let r of t){let n=Get(r);if(n===void 0)return;e+=n}return e}async function Yet(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(Het(i.headers),"utf-8"),ii(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new XI(i));return n.searchPaths.push(...hO(n.patterns)),n})}static stat(e,r,n){return EO(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield mm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield mm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield mm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as CO from"crypto";import*as DN from"fs";import*as ice from"stream";import*as oce from"util";import*as ace from"path";var EKe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},CKe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}};function Ace(t,e){return EKe(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,A,c;let u=s?Z:G,l=!1,d=n||((c=process.env.GITHUB_WORKSPACE)!==null&&c!==void 0?c:process.cwd()),h=CO.createHash("sha256"),f=0;try{for(var p=!0,I=CKe(r.globGenerator()),E;E=yield I.next(),i=E.done,!i;p=!0){A=E.value,p=!1;let C=A;if(u(C),!C.startsWith(`${d}${ace.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(DN.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=CO.createHash("sha256");yield oce.promisify(ice.pipeline)(DN.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var cce=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function ey(t,e){return cce(this,void 0,void 0,function*(){return yield xN.create(t,e)})}function uce(t){return cce(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield ey(e,{followSymbolicLinks:i});return Ace(o,r,s)})}var ele=ce(Ay(),1);import*as WN from"crypto";import*as Im from"fs";import*as ef from"path";import*as tle from"util";var cy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(cy||(cy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Pi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Pi||(Pi={}));var YN=2,VN=5e3,OO=5e3,HO=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Zue=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,uy="cache.tar",GO="manifest.txt",nJt=10*Math.pow(1024,3);var Cm=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},gZe=function(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof __values=="function"?__values(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(o){return new Promise(function(a,A){o=t[i](o),s(a,A,o.done,o.value)})}}function s(i,o,a,A){Promise.resolve(A).then(function(c){i({value:c,done:a})},o)}},pZe="1.0";function ly(){return Cm(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=ef.join(n,"actions","temp")}let r=ef.join(e,WN.randomUUID());return yield Yh(r),r})}function RA(t){return Im.statSync(t).size}function qO(t){return Cm(this,void 0,void 0,function*(){var e,r,n,s,i;let o=[],a=(i=process.env.GITHUB_WORKSPACE)!==null&&i!==void 0?i:process.cwd(),A=yield ey(t.join(`
`),{implicitDescendants:!1});try{for(var c=!0,u=gZe(A.globGenerator()),l;l=yield u.next(),e=l.done,!e;c=!0){s=l.value,c=!1;let h=ef.relative(a,s).replace(new RegExp(`\\${ef.sep}`,"g"),"/");G(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!c&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function dy(t){return Cm(this,void 0,void 0,function*(){return tle.promisify(Im.unlink)(t)})}function rle(t){return Cm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield NA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function hy(){return Cm(this,void 0,void 0,function*(){let t=yield rle("zstd",["--quiet"]),e=ele.clean(t);return G(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function ql(t){return t===vs.Gzip?cy.Gzip:cy.Zstd}function nle(){return Cm(this,void 0,void 0,function*(){return Im.existsSync(HO)?HO:(yield rle("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function YO(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(pZe),WN.createHash("sha256").update(n.join("|")).digest("hex")}function sle(){let t=process.env.ACTIONS_RUNTIME_TOKEN;if(!t)throw new Error("Unable to get the ACTIONS_RUNTIME_TOKEN env variable");return t}import*as jm from"fs";import{URL as qot}from"url";var DA=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as mZe}from"node:os";import EZe from"node:util";import CZe from"node:process";function ile(t,...e){CZe.stderr.write(`${EZe.format(t,...e)}${mZe}`)}var ole=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ale,VO=[],WO=[],zN=[];ole&&JO(ole);var cle=Object.assign(t=>ule(t),{enable:JO,enabled:zO,disable:IZe,log:ile});function JO(t){Ale=t,VO=[],WO=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?WO.push(r.substring(1)):VO.push(r);for(let r of zN)r.enabled=zO(r.namespace)}function zO(t){if(t.endsWith("*"))return!0;for(let e of WO)if(ale(t,e))return!1;for(let e of VO)if(ale(t,e))return!0;return!1}function ale(t,e){if(e.indexOf("*")===-1)return t===e;let r=e;if(e.indexOf("**")!==-1){let d=[],h="";for(let f of e)f==="*"&&h==="*"||(h=f,d.push(f));r=d.join("")}let n=0,s=0,i=r.length,o=t.length,a=-1,A=-1;for(;n<o&&s<i;)if(r[s]==="*"){if(a=s,s++,s===i)return!0;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=A+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;A=n,n++,s++;continue}else return!1;let c=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return c&&(u||l)}function IZe(){let t=Ale||"";return JO(""),t}function ule(t){let e=Object.assign(r,{enabled:zO(t),destroy:yZe,log:cle.log,namespace:t,extend:BZe});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return zN.push(e),e}function yZe(){let t=zN.indexOf(this);return t>=0?(zN.splice(t,1),!0):!1}function BZe(t){let e=ule(`${this.namespace}:${t}`);return e.log=this.log,e}var Bm=cle;var jO=["verbose","info","warning","error"],lle={verbose:400,info:300,warning:200,error:100};function dle(t,e){e.log=(...r)=>{t.log(...r)}}function hle(t){return jO.includes(t)}function bZe(t){let e=new Set,r=typeof process<"u"&&process.env&&process.env[t.logLevelEnvVarName]||void 0,n,s=Bm(t.namespace);s.log=(...u)=>{Bm.log(...u)};function i(u){if(u&&!hle(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${jO.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Bm.enable(l.join(","))}r&&(hle(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${jO.join(", ")}.`));function o(u){return!!(n&&lle[u.level]<=lle[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(dle(u,d),o(d)){let h=Bm.disable();Bm.enable(h+","+d.namespace)}return e.add(d),d}function A(){return n}function c(u){let l=s.extend(u);return dle(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:A,createClientLogger:c,logger:s}}var fle=bZe({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),QZe=fle.logger;function fy(t){return fle.createClientLogger(t)}function jN(t){return t.toLowerCase()}function*wZe(t){for(let e of t.values())yield[e.name,e.value]}var KO=class{_headersMap;constructor(e){if(this._headersMap=new Map,e)for(let r of Object.keys(e))this.set(r,e[r])}set(e,r){this._headersMap.set(jN(e),{name:e,value:String(r).trim()})}get(e){return this._headersMap.get(jN(e))?.value}has(e){return this._headersMap.has(jN(e))}delete(e){this._headersMap.delete(jN(e))}toJSON(e={}){let r={};if(e.preserveCase)for(let n of this._headersMap.values())r[n.name]= Line truncated
${xZe.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function XN(t){return t instanceof _s?!0:rf(t)&&t.name==="RestError"}function ii(t,e){return Buffer.from(t,e)}import e3 from"node:http";import t3 from"node:https";import mle from"node:zlib";import{Transform as RZe}from"node:stream";var Ro=fy("ts-http-runtime");var DZe={};function gy(t){return t&&typeof t.pipe=="function"}function Ele(t){return t.readable===!1?Promise.resolve():new Promise(e=>{let r=()=>{e(),t.removeListener("close",r),t.removeListener("end",r),t.removeListener("error",r)};t.on("close",r),t.on("end",r),t.on("error",r)})}function Cle(t){return t&&typeof t.byteLength=="number"}var ZN=class extends RZe{loadedBytes=0;progressCallback;_transform(e,r,n){this.push(e),this.loadedBytes+=e.length;try{this.progressCallback({loadedBytes:this.loadedBytes}),n()}catch(s){n(s)}}constructor(e){super(),this.progressCallback=e}},r3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new DA("The operation was aborted. Request has already been canceled.");n=c=>{c.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let c=new Ua;Ro.info(`request to '${c.sanitizeUrl(e.url)}' timed out. canceling...`),r.abort()},e.timeout));let i=e.headers.get("Accept-Encoding"),o=i?.includes("gzip")||i?.includes("deflate"),a=typeof e.body=="function"?e.body():e.body;if(a&&!e.headers.has("Content-Length")){let c=FZe(a);c!==null&&e.headers.set("Content-Length",c)}let A;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new ZN(f);p.on("error",I=>{Ro.error("Error in upload progress",I)}),gy(a)?a.pipe(p):p.end(a),a=p}let c=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=kZe(c),d={status:c.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return c.resume(),d;A=o?vZe(c,u):c;let h=e.onDownloadProgress;if(h){let f=new ZN(h);f.on("error",p=>{Ro.error("Error in download progress",p)}),A.pipe(f),A=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=A:d.bodyAsText=await _Ze(A),d}finally{if(e.abortSignal&&n){let c=Promise.resolve();gy(a)&&(c=Ele(a));let u=Promise.resolve();gy(A)&&(u=Ele(A)),Promise.all([c,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{Ro.warning("Error when cleaning up abortListener on httpRequest",l)})}}}makeRequest(e,r,n){let s=new URL(e.url),i=s.protocol!=="https:";if(i&&!e.allowInsecureConnection)throw new Error(`Cannot connect to ${e.url} while allowInsecureConnection is false.`);let a={agent:e.agent??this.getOrCreateAgent(e,i),hostname:s.hostname,path:`${s.pathname}${s.search}`,port:s.port,method:e.method,headers:e.headers.toJSON({preserveCase:!0}),...e.requestOverrides};return new Promise((A,c)=>{let u=i?e3.request(a,A):t3.request(a,A);u.once("error",l=>{c(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new DA("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),c(l)}),n&&gy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Cle(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer):Buffer.from(n)):(Ro.error("Unrecognized body type",n),c(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?e3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new e3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return t3.globalAgent;let s=e.tlsSettings??DZe,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(Ro.info("No cached TLS Agent exist, creating a new Agent"),i=new t3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function kZe(t){let e=Oi();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}function vZe(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=mle.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=mle.createInflate();return t.pipe(n),n}return t}function _Ze(t){return new Promise((e,r)=>{let n=[];t.on("data",s=>{Buffer.isBuffer(s)?n.push(s):n.push(Buffer.from(s))}),t.on("end",()=>{e(Buffer.concat(n).toString("utf8"))}),t.on("error",s=>{s&&s?.name==="AbortError"?r(s):r(new _s(`Error reading response as text: ${s.message}`,{code:_s.PARSE_ERROR}))})})}function FZe(t){return t?Buffer.isBuffer(t)?t.length:gy(t)?null:Cle(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Ile(){return new r3}function eT(){return Ile()}var n3="logPolicy";function tT(t={}){let e=t.logger??Ro.info,r=new Ua({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:n3,async sendRequest(n,s){if(!e. Line truncated
`;return e}function itt(t){return t instanceof Uint8Array?t.byteLength:bT(t)?t.size===-1?void 0:t.size:void 0}function ott(t){let e=0;for(let r of t){let n=itt(r);if(n===void 0)return;e+=n}return e}async function att(t,e,r){let n=[ii(`--${r}`,"utf-8"),...e.flatMap(i=>[ii(`\r
`,"utf-8"),ii(stt(i.headers),"utf-8"),ii(`\r
`,"utf-8"),i.body,ii(`\r
--${r}`,"utf-8")]),ii(`--\r
\r
`,"utf-8")],s=qet(n);s&&t.headers.set("Content-Length",s),t.body=await ede(n)}var py="multipartPolicy",Vet=70,Wet=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Jet(t){if(t.length>Vet)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Wet.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function BT(){return{name:py,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?Jet(r):r=Oet(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Yet(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function bT(){return jN()}import{EOL as jet}from"node:os";import Ket from"node:util";import*as tde from"node:process";function rde(t,...e){tde.stderr.write(`${Ket.format(t,...e)}${jet}`)}var nde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,sde,h3=[],f3=[],QT=[];nde&&g3(nde);var ide=Object.assign(t=>ode(t),{enable:g3,enabled:p3,disable:Xet,log:rde});function g3(t){sde=t,h3=[],f3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?f3.push(new RegExp(`^${n.substr(1)}$`)):h3.push(new RegExp(`^${n}$`));for(let n of QT)n.enabled=p3(n.namespace)}function p3(t){if(t.endsWith("*"))return!0;for(let e of f3)if(e.test(t))return!1;for(let e of h3)if(e.test(t))return!0;return!1}function Xet(){let t=sde||"";return g3(""),t}function ode(t){let e=Object.assign(r,{enabled:p3(t),destroy:$et,log:ide.log,namespace:t,extend:Zet});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return QT.push(e),e}function $et(){let t=QT.indexOf(this);return t>=0?(QT.splice(t,1),!0):!1}function Zet(t){let e=ode(`${this.namespace}:${t}`);return e.log=this.log,e}var Tm=ide;var Ade=new Set,wT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,m3,E3=Tm("azure");E3.log=(...t)=>{Tm.log(...t)};var C3=["verbose","info","warning","error"];wT&&(lde(wT)?ett(wT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${wT}'; logging is not enabled. Acceptable values: ${C3.join(", ")}.`));function ett(t){if(t&&!lde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${C3.join(",")}`);m3=t;let e=[];for(let r of Ade)ude(r)&&e.push(r.namespace);Tm.enable(e.join(","))}var ade={verbose:400,info:300,warning:200,error:100};function _o(t){let e=E3.extend(t);return cde(E3,e),{error:ST(e,"error"),warning:ST(e,"warning"),info:ST(e,"info"),verbose:ST(e,"verbose")}}function cde(t,e){e.log=(...r)=>{t.log(...r)}}function ST(t,e){let r=Object.assign(t.extend(e),{level:e});if(cde(t,r),ude(r)){let n=Tm.disable();Tm.enable(n+","+r.namespace)}return Ade.add(r),r}function ude(t){return!!(m3&&ade[t.level]<=ade[m3])}function lde(t){return C3.includes(t)}var vA=_o("core-rest-pipeline");function I3(t={}){return ZN({logger:vA.info,...t})}var y3=eT;function B3(t={}){return tT(t)}import b3 from"node:os";import Q3 from"node:process";function dde(){return"User-Agent"}async function hde(t){if(Q3&&Q3.versions){let e=`${b3.type()} ${b3.release()}; ${b3.arch()}`,r=Q3.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})`)}}var NT="1.22.2";function att(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function fde(){return dde()}async function TT(t){let e=new Map;e.set("core-rest-pipeline",NT),await hde(e);let r=att(e);return t?`${t} ${r}`:r}var gde=fde(),pde="userAgentPolicy";function w3(t={}){let e=TT(t.userAgentPrefix);return{name:pde,async sendRequest(r,n){return r.headers.has(gde)||r.headers.set(gde,await e),n(r)}}}var my=class extends Error{constructor(e){super(e),this.name="AbortError"}};function S3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new my(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var dtt="The delay was aborted.";function xm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return S3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dtt})}function Yl(t){if(tf(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}`}}function mde(t){return tf(t)}function Rm(){return ef()}var Ot=sf;var Ede=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Mrt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=Drt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=she(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=she(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=nhe(t,i);continue}else if(t[i+1]==="?"){if(i=rhe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=_rt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!the(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(the(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function the(t){return t===" "||t===" "||t===`
`||t==="\r"}function rhe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function nhe(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}var xrt='"',Rrt="'";function Drt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xrt||t[e]===Rrt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var krt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function she(t,e){let r=OT(t,krt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",xy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",xy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",xy(r[s]));let i=r[s][2];if(!Frt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",xy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",xy(r[s]))}return!0}function vrt(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}function _rt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vrt(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}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Frt(t){return _m(t)}function Mrt(t){return _m(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function xy(t){return t.startIndex+t[1].length}var ihe=t=>Ty.includes(t)?"__"+t:t,Lrt={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:ihe};function Urt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ty.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(HT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ohe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:ohe(!0)}var ahe=function(t){let e=Object.assign({},Lrt,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&Urt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=ihe),e.processEntities=ohe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var qT;typeof Symbol!="function"?qT="@@xmlMetadata":qT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new Dy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=uf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=s8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=i8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=uf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=uf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=i8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=s8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=jrt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=zrt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=s8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function rnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function nnt(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function u8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=dnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return dhe(t,e,r,s,n)}function dhe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=c8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=fhe(A);if(c===void 0)continue;let u=hnt(A[":@"],e);n.push(c,u);let l=gnt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=c8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=lhe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=lhe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=hhe(A[c],e):p=dhe(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function hnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function hhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=fhe(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=fnt(s[":@"],e),a=hhe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function fnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function fhe(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}}function lhe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=c8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function gnt(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}function c8(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}function l8(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}var pnt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function ui(t){if(this.options=Object.assign({},pnt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=l8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Cnt),this.processTextOrObjNode=mnt,this.options.format?(this.indentate=Ent,this.tagEndChar=`>
`,"utf-8")],s=ott(n);s&&t.headers.set("Content-Length",s),t.body=await pde(n)}var Ey="multipartPolicy",Att=70,ctt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function utt(t){if(t.length>Att)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!ctt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function QT(){return{name:Ey,async sendRequest(t,e){if(!t.multipartBody)return e(t);if(t.body)throw new Error("multipartBody and regular body cannot be set at the same time");let r=t.multipartBody.boundary,n=t.headers.get("Content-Type")??"multipart/mixed",s=n.match(/^(multipart\/[^ ;]+)(?:; *boundary=(.+))?$/);if(!s)throw new Error(`Got multipart request body, but content-type header was not multipart: ${n}`);let[,i,o]=s;if(o&&r&&o!==r)throw new Error(`Multipart boundary was specified as ${o} in the header, but got ${r} in the request body`);return r??=o,r?utt(r):r=ntt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await att(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function wT(){return $N()}import{EOL as dtt}from"node:os";import htt from"node:util";import*as mde from"node:process";function Ede(t,...e){mde.stderr.write(`${htt.format(t,...e)}${dtt}`)}var Cde=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Ide,y3=[],B3=[],ST=[];Cde&&b3(Cde);var yde=Object.assign(t=>Bde(t),{enable:b3,enabled:Q3,disable:ftt,log:Ede});function b3(t){Ide=t,y3=[],B3=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?B3.push(new RegExp(`^${n.substr(1)}$`)):y3.push(new RegExp(`^${n}$`));for(let n of ST)n.enabled=Q3(n.namespace)}function Q3(t){if(t.endsWith("*"))return!0;for(let e of B3)if(e.test(t))return!1;for(let e of y3)if(e.test(t))return!0;return!1}function ftt(){let t=Ide||"";return b3(""),t}function Bde(t){let e=Object.assign(r,{enabled:Q3(t),destroy:gtt,log:yde.log,namespace:t,extend:ptt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ST.push(e),e}function gtt(){let t=ST.indexOf(this);return t>=0?(ST.splice(t,1),!0):!1}function ptt(t){let e=Bde(`${this.namespace}:${t}`);return e.log=this.log,e}var xm=yde;var Qde=new Set,NT=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,w3,S3=xm("azure");S3.log=(...t)=>{xm.log(...t)};var N3=["verbose","info","warning","error"];NT&&(Nde(NT)?mtt(NT):console.error(`AZURE_LOG_LEVEL set to unknown log level '${NT}'; logging is not enabled. Acceptable values: ${N3.join(", ")}.`));function mtt(t){if(t&&!Nde(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${N3.join(",")}`);w3=t;let e=[];for(let r of Qde)Sde(r)&&e.push(r.namespace);xm.enable(e.join(","))}var bde={verbose:400,info:300,warning:200,error:100};function _o(t){let e=S3.extend(t);return wde(S3,e),{error:TT(e,"error"),warning:TT(e,"warning"),info:TT(e,"info"),verbose:TT(e,"verbose")}}function wde(t,e){e.log=(...r)=>{t.log(...r)}}function TT(t,e){let r=Object.assign(t.extend(e),{level:e});if(wde(t,r),Sde(r)){let n=xm.disable();xm.enable(n+","+r.namespace)}return Qde.add(r),r}function Sde(t){return!!(w3&&bde[t.level]<=bde[w3])}function Nde(t){return N3.includes(t)}var vA=_o("core-rest-pipeline");function T3(t={}){return tT({logger:vA.info,...t})}var x3=rT;function R3(t={}){return nT(t)}import D3 from"node:os";import k3 from"node:process";function Tde(){return"User-Agent"}async function xde(t){if(k3&&k3.versions){let e=`${D3.type()} ${D3.release()}; ${D3.arch()}`,r=k3.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})`)}}var xT="1.22.2";function Qtt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Rde(){return Tde()}async function RT(t){let e=new Map;e.set("core-rest-pipeline",xT),await xde(e);let r=Qtt(e);return t?`${t} ${r}`:r}var Dde=Rde(),kde="userAgentPolicy";function v3(t={}){let e=RT(t.userAgentPrefix);return{name:kde,async sendRequest(r,n){return r.headers.has(Dde)||r.headers.set(Dde,await e),n(r)}}}var Cy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function _3(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Cy(s??"The operation was aborted."))}function A(){n?.removeEventListener("abort",c)}function c(){r?.(),A(),a()}if(n?.aborted)return a();try{t(u=>{A(),i(u)},u=>{A(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",c)})}var xtt="The delay was aborted.";function Rm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return _3(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??xtt})}function Vl(t){if(rf(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}`}}function vde(t){return rf(t)}function Dm(){return tf()}var Ot=of;var _de=S Line truncated
`&&t[i]!=="\r";i++)A+=t[i];if(A=A.trim(),A[A.length-1]==="/"&&(A=A.substring(0,A.length-1),i--),!Zrt(A)){let l;return A.trim().length===0?l="Invalid space after '<'.":l="Tag '"+A+"' is an invalid name.",Zr("InvalidTag",l,Fs(t,i))}let c=zrt(t,i);if(c===!1)return Zr("InvalidAttr","Attributes for '"+A+"' have open quote.",Fs(t,i));let u=c.value;if(i=c.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Ihe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(c.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+A+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+A+"' has not been opened.",Fs(t,o));{let l=r.pop();if(A!==l.tagName){let d=Fs(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+A+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+A+"' doesn't have proper closing.",Fs(t,i));else{let l=Ihe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(A)!==-1||r.push({tagName:A,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Che(t,i);continue}else if(t[i+1]==="?"){if(i=Ehe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=$rt(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!mhe(t[i]))return Zr("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(mhe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function mhe(t){return t===" "||t===" "||t===`
`||t==="\r"}function Ehe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",Fs(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Che(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}var Wrt='"',Jrt="'";function zrt(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Wrt||t[e]===Jrt)n===""?n=t[e]:n!==t[e]||(n="");else if(t[e]===">"&&n===""){s=!0;break}r+=t[e]}return n!==""?!1:{value:r,index:e,tagClosed:s}}var jrt=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Ihe(t,e){let r=GT(t,jrt),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",Dy(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",Dy(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",Dy(r[s]));let i=r[s][2];if(!Xrt(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",Dy(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",Dy(r[s]))}return!0}function Krt(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}function $rt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Krt(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}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Xrt(t){return Fm(t)}function Zrt(t){return Fm(t)}function Fs(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function Dy(t){return t.startIndex+t[1].length}var yhe=t=>Ry.includes(t)?"__"+t:t,ent={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:yhe};function tnt(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(Ry.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(qT.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function Bhe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:Bhe(!0)}var bhe=function(t){let e=Object.assign({},ent,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&tnt(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=yhe),e.processEntities=Bhe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var VT;typeof Symbol!="function"?VT="@@xmlMetadata":VT=Symbol("XML Node Metadata");var Ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
`);let e=new Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new vy(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=lf(t,">",i,"Closing Tag is not closed."),A=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=A.indexOf(":");u!==-1&&(A=A.substr(u+1))}A=d8(this.options.transformTagName,A,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let c=this.matcher.getCurrentTag();if(A&&this.options.unpairedTags.indexOf(A)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${A}>`);c&&this.options.unpairedTags.indexOf(c)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=h8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let A=new Ai(a.tagName);A.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(A[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,A,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=lf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let A=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:A}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=lf(t,"]]>",i,"CDATA is not closed.")-2,A=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let c=this.parseTextData(A,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);c==null&&(c=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:A}]):r.add(this.options.textNodeName,c),i=a+2}else{let a=h8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let A=a.tagName,c=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options),this.options.strictReservedNames&&(A===this.options.commentPropName||A===this.options.cdataPropName||A===this.options.textNodeName||A===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${A}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,A[A.length-1]==="/"?(A=A.substr(0,A.length-1),u=A):u=u.substr(0,u.length-1),l=A!==u);let p=null,I={},E;E=dnt(c),A!==e.tagname&&this.matcher.push(A,{},E),A!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,A),p&&(I=lnt(p,this.options))),A!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(A)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,c,d+1);if(!M)throw new Error(`Unexpected end of ${c}`);i=M.i,y=M.tagContent}let R=new Ai(A);p&&(R[":@"]=p),R.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,R,this.readonlyMatcher,C)}else{if(f){({tagName:A,tagExp:u}=d8(this.options.transformTagName,A,u,this.options));let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(A)!==-1){let y=new Ai(A);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new Ai(A);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function Cnt(t,e,r,n){this.options.captureMetaData||(n=void 0);let s=this.options.jPath?r.toString():r,i=this.options.updateTag(e.tagname,s,e[":@"]);i===!1||(typeof i=="string"&&(e.tagname=i),t.addChild(e,n))}function Int(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded Line truncated
`;function E8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=xnt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Yi(o)):o instanceof Yi&&n.push(o)}let s=new MA;return The(t,e,r,s,n)}function The(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=m8(a,e),a}return""}for(let a=0;a<t.length;a++){let A=t[a],c=Rhe(A);if(c===void 0)continue;let u=Rnt(A[":@"],e);n.push(c,u);let l=knt(n,s);if(c===e.textNodeName){let I=A[c];l||(I=e.tagValueProcessor(c,I),I=m8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(c===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${A[c][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(c===e.commentPropName){i+=r+`<!--${A[c][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(c[0]==="?"){let I=Nhe(A[":@"],e,l),E=c==="?xml"?"":r,C=A[c][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=E+`<${c}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=Nhe(A[":@"],e,l),f=r+`<${c}${h}`,p;l?p=xhe(A[c],e):p=The(A[c],e,d,n,s),e.unpairedTags.indexOf(c)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${c}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${c}>`),o=!0,n.pop()}return i}function Rnt(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function xhe(t,e){if(!Array.isArray(t))return t!=null?t.toString():"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=Rhe(s);if(i===e.textNodeName)r+=s[i];else if(i===e.cdataPropName)r+=s[i][0][e.textNodeName];else if(i===e.commentPropName)r+=s[i][0][e.textNodeName];else{if(i&&i[0]==="?")continue;if(i){let o=Dnt(s[":@"],e),a=xhe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Dnt(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Rhe(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}}function Nhe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=m8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function knt(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}function m8(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}function C8(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}var vnt={attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,cdataPropName:!1,format:!1,indentBy:" ",suppressEmptyNode:!1,suppressUnpairedNode:!0,suppressBooleanAttributes:!0,tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},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};function ui(t){if(this.options=Object.assign({},vnt,t),this.options.stopNodes&&Array.isArray(this.options.stopNodes)&&(this.options.stopNodes=this.options.stopNodes.map(e=>typeof e=="string"&&e.startsWith("*.")?".."+e.substring(2):e)),this.stopNodeExpressions=[],this.options.stopNodes&&Array.isArray(this.options.stopNodes))for(let e=0;e<this.options.stopNodes.length;e++){let r=this.options.stopNodes[e];typeof r=="string"?this.stopNodeExpressions.push(new Yi(r)):r instanceof Yi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=C8(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Mnt),this.processTextOrObjNode=_nt,this.options.format?(this.indentate=Fnt,this.tagEndChar=`>
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return u8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.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+'="'+e+'"'};function mnt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}ui.prototype.build=function(t){if(this.options.preserveOrder)return E8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new MA;return this.j2x(t,0,e).val}};ui.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let A=this.isAttribute(a);if(A&&!this.ignoreAttributesFn(A,i))n+=this.buildAttrPairStr(A,""+t[a],o);else if(!A)if(a===this.options.textNodeName){let c=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(c)}else{r.push(a);let c=this.checkStopNode(r);if(r.pop(),c){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let A=t[a].length,c="",u="";for(let l=0;l<A;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),c+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else c+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),c+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?c+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:c+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else c+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(c=this.buildObjectNode(c,a,u,e)),s+=c}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let A=Object.keys(t[a]),c=A.length;for(let u=0;u<c;u++)n+=this.buildAttrPairStr(A[u],""+t[a][A[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};ui.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+'="'+e+'"'};function _nt(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,A,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};ui.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.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};ui.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length): Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(ze.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===ze.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE));r.sort((s,i)=>ex(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=XT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=$T(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends df{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new My(e,r,this)}computeHMACSHA256(e){return xnt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var hf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var jl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Rnt=new hf("The operation was aborted."),Ly=class extends LA{retryOptions;constructor(e,r,n=jl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:jl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):jl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:jl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:jl.maxRetryDelayInMs):jl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:jl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:jl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=KT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=zl(s.url,Qu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(ze.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),ZT(s,n,Rnt)}};var Uy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Ly(e,r,this.retryOptions)}};var Dnt="storageBrowserPolicy";function Che(){return{name:Dnt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=zl(t.url,Qu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(ze.COOKIE),t.headers.delete(ze.CONTENT_LENGTH)),e(t)}}}var knt="StorageCorrectContentLengthPolicy";function Ihe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(ze.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:knt,async sendRequest(e,r){return t(e),r(e)}}}var vnt="storageRetryPolicy",Mm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},_nt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Fnt=new hf("The operation was aborted.");function yhe(t={}){let e=t.retryPolicyType??Mm.retryPolicyType,r=t.maxTries??Mm.maxTries,n=t.retryDelayInMs??Mm.retryDelayInMs,s=t.maxRetryDelayInMs??Mm.maxRetryDelayInMs,i=t.secondaryHost??Mm.secondaryHost,o=t.tryTimeoutInMs??Mm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of _nt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>rx(s.name.toLowerCase(),i.name.toLowerCase())),r=r.filter((s,i,o)=>!(i>0&&s.name.toLowerCase()===o[i-1].name.toLowerCase()));let n="";return r.forEach(s=>{n+=`${s.name.toLowerCase().trimRight()}:${s.value.trimLeft()}
`}),n}getCanonicalizedResourceString(e){let r=ZT(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=ex(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let A=a.toLowerCase();i[A]=s[a],o.push(A)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Ur=class extends hf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new Uy(e,r,this)}computeHMACSHA256(e){return Wnt("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var ff=class extends Error{constructor(e){super(e),this.name="AbortError"}};var pn=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var Kl={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Jnt=new ff("The operation was aborted."),Py=class extends LA{retryOptions;constructor(e,r,n=Kl){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:Kl.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):Kl.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:Kl.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:Kl.maxRetryDelayInMs):Kl.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:Kl.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:Kl.secondaryHost}}async sendRequest(e){return this.attemptSendRequest(e,!1,1)}async attemptSendRequest(e,r,n){let s=e.clone(),i=r||!this.retryOptions.secondaryHost||!(e.method==="GET"||e.method==="HEAD"||e.method==="OPTIONS")||n%2===1;i||(s.url=XT(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=jl(s.url,wu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(pn.info(`RetryPolicy: =====> Try=${n} ${i?"Primary":"Secondary"}`),o=await this._nextPolicy.sendRequest(s),!this.shouldRetry(i,n,o))return o;r=r||!i&&o.status===404}catch(a){if(pn.error(`RetryPolicy: Caught error, message: ${a.message}, code: ${a.code}`),!this.shouldRetry(i,n,o,a))throw a}return await this.delay(i,n,e.abortSignal),this.attemptSendRequest(e,r,++n)}shouldRetry(e,r,n,s){if(r>=this.retryOptions.maxTries)return pn.info(`RetryPolicy: Attempt(s) ${r} >= maxTries ${this.retryOptions.maxTries}, no further try.`),!1;let i=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"];if(s){for(let o of i)if(s.name.toUpperCase().includes(o)||s.message.toUpperCase().includes(o)||s.code&&s.code.toString().toUpperCase()===o)return pn.info(`RetryPolicy: Network error ${o} found, will retry.`),!0}if(n||s){let o=n?n.status:s?s.statusCode:0;if(!e&&o===404)return pn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return pn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(pn.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return pn.info(`RetryPolicy: Delay for ${s}ms`),tx(s,n,Jnt)}};var Oy=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new Py(e,r,this.retryOptions)}};var znt="storageBrowserPolicy";function Fhe(){return{name:znt,async sendRequest(t,e){return Ot||((t.method==="GET"||t.method==="HEAD")&&(t.url=jl(t.url,wu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var jnt="StorageCorrectContentLengthPolicy";function Mhe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:jnt,async sendRequest(e,r){return t(e),r(e)}}}var Knt="storageRetryPolicy",Lm={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},$nt=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Xnt=new ff("The operation was aborted.");function Lhe(t={}){let e=t.retryPolicyType??Lm.retryPolicyType,r=t.maxTries??Lm.maxTries,n=t.retryDelayInMs??Lm.retryDelayInMs,s=t.maxRetryDelayInMs??Lm.maxRetryDelayInMs,i=t.secondaryHost??Lm.secondaryHost,o=t.tryTimeoutInMs??Lm.tryTimeoutInMs;function a({isPrimaryRetry:c,attempt:u,response:l,error:d}){if(u>=r)return pn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of $nt)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Mnt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(ze.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===ze.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(ze.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>ex(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=XT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=$T(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:Lnt,async sendRequest(i,o){return e(i),o(i)}}}var Unt="storageRequestFailureDetailsParserPolicy";function Bhe(){return{name:Unt,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}}}}import{createHmac as Pnt}from"node:crypto";var tx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Pnt("sha256",this.key).update(e,"utf8").digest("base64")}};var rx="12.31.0",nx="2026-02-06";var sx="https://storage.azure.com/.default",wu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Pa="",m8="*",Ont=1*1024*1024;var Hnt=4*Ont;var bhe="AES256",Qhe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",whe=["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"],She=["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"],Nhe="BlobUsesCustomerSpecifiedEncryption",The="BlobDoesNotUseCustomerSpecifiedEncryption",xhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Su(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Py=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Py([],e);return r._credential=t,r}function Gnt(t){let e=[qnt,Rhe,Ynt,Vnt,Wnt,Jnt,jnt];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>znt(s));return{wrappedPolicies:e8(r),afterRetry:n}}}}function E8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?t8(e):g8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${rx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=By({...r,loggingOptions:{additionalAllowedHeaderNames:whe,additionalAllowedQueryParameters:She,logger:VT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:YT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:h8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:R3}),s.addPolicy(Ihe()),s.addPolicy(yhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Bhe()),s.addPolicy(Che());let a=Gnt(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=C8(t);Gi(A)?s.addPolicy(km({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ya(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function qit(t,e){if(t=Bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function Yit(t,e){if(t=Bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Vit(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function Wit(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function Jit(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function zit(t,e){if(t=Bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",yf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function yf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Bf(t){let e=t.version?t.version:nx;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}var Xy=class{_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=Rm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};Wm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var wf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};wf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var iB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var mot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},W5=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function qfe(t,e,r){return mot(this,void 0,void 0,function*(){var n;let s=new Va(t),i=s.getBlockBlobClient(),o=new W5((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new $x(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as Vfe from"buffer";import*as rc from"fs";import*as Wfe from"stream";import*as Jfe from"util";var Zx=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function eR(t){return t?t>=200&&t<300:!1}function Eot(t){return t?t>=500:!0}function Cot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Iot(t){return Zx(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Yfe(t,e,r){return Zx(this,arguments,void 0,function*(n,s,i,o=GN,a=qN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Eot(d)))return l;if(d&&(h=Cot(d),c=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){q(`${n} - Error is not retryable`);break}yield Iot(a),u++}throw Error(`${n} failed: ${c}`)})}function oB(t,e){return Zx(this,arguments,void 0,function*(r,n,s=GN,i=qN){return yield Yfe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function Jm(t,e){return Zx(this,arguments,void 0,function*(r,n,s=GN,i=qN){return yield Yfe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function yot(t,e){return Oo(this,void 0,void 0,function*(){yield Jfe.promisify(Wfe.pipeline)(t.message,e)})}var tR=class{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,q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function K5(t,e,r){return di(this,void 0,void 0,function*(){let n=new Sot(t),s=Xfe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield jfe(t,e,s):s.concurrentBlobDownloads?yield zfe(t,e,s):yield rR(t,e):yield rR(t,e)})}function sge(t,e,r){return di(this,void 0,void 0,function*(){let n=j5(),s=Im(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield oB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(AB("caches"),i)}))})}function rge(t,e){return`bytes ${t}-${e}/*`}function Rot(t,e,r,n,s){return di(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${rge(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":rge(n,s)},o=yield Jm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!eR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Dot(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=AB(`caches/${e.toString()}`),o=zm.openSync(r,"r"),a=J5(n),A=MO("uploadConcurrency",a.uploadConcurrency),c=MO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Rot(t,i,()=>zm.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{zm.closeSync(o)}})}function kot(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield oB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(AB(`caches/${e.toString()}`),n)}))})}function X5(t,e,r,n){return di(this,void 0,void 0,function*(){if(J5(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield qfe(r,e,n)}else{let i=j5();q("Upload cache"),yield Dot(i,t,e,n),q("Commiting cache");let o=RA(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield kot(i,t,o);if(!eR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var Xge=ce(GH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Rf=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1);var WH=ce(ct(),1),JH=ce(ct(),1),zge=ce(ct(),1),jge=ce(ct(),1),Kge=ce(ct(),1);var qH=ce(ct(),1),YH=ce(ct(),1),Vge=ce(ct(),1),Wge=ce(ct(),1),Jge=ce(ct(),1),VH=class extends Jge.MessageType{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,Wge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Vge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?YH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,qH.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,qH.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?YH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},qR=new VH;var zH=class extends Kge.MessageType{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:()=>qR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,jge.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,zge.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(qR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?JH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,WH.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)qR.internalBinaryWrite(e.scope[i],r.tag(2,WH.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?JH.UnknownFieldHandler.onWrite Line truncated
`));let n=yield c9(r,"create");yield u9(n,t)})}var u0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},sd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},WR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function tpe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function h9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function rpe(){return aB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function npe(t,e,r,n){return u0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=aB();return q(`Cache service version: ${c}`),tpe(s),c==="v2"?yield jAt(s,i,o,a,A):yield zAt(s,i,o,a,A)})}function zAt(t,e,r,n){return u0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)h9(d);let u=yield ly(),l="";try{let d=yield nge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return ee("Lookup only - skipping download"),d.cacheKey;l=QB.join(yield cy(),Gl(u)),q(`Archive Path: ${l}`),yield K5(d.archiveLocation,l,a),_a()&&(yield bB(l,u));let h=RA(l);return ee(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield l9(l,u),ee("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof wA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{yield uy(l)}catch(d){q(`Failed to delete archive: ${d}`)}}})}function jAt(t,e,r,n){return u0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)h9(l);let u="";try{let l=A9(),d=yield ly(),h={key:i,restoreKeys:o,version:Im(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){q(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?ee(`Cache hit for restore-key: ${f.matchedKey}`):ee(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return ee("Lookup only - skipping download"),f.matchedKey;u=QB.join(yield cy(),Gl(d)),q(`Archive path: ${u}`),q(`Starting download of archive to: ${u}`),yield K5(f.signedDownloadUrl,u,a);let I=RA(u);return ee(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),_a()&&(yield bB(u,d)),yield l9(u,d),ee("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof wA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):Ze(`Failed to restore: ${l.message}`)}finally{try{u&&(yield uy(u))}catch(l){q(`Failed to delete archive: ${l}`)}}})}function spe(t,e,r){return u0(this,arguments,void 0,function*(n,s,i,o=!1){let a=aB();return q(`Cache service version: ${a}`),tpe(n),h9(s),a==="v2"?yield XAt(n,s,i,o):yield KAt(n,s,i,o)})}function KAt(t,e,r){return u0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield ly(),h=-1,f=yield FO(n);if(q("Cache Paths:"),q(`${JSON.stringify(f)}`),f.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 p=yield cy(),I=QB.join(p,Gl(d));q(`Archive Path: ${I}`);try{yield d9(p,f,d),_a()&&(yield bB(I,d));let E=10*1024*1024*1024,C=RA(I);if(q(`File Size: ${C}`),C>E&&!z5())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);q("Reserving Cache");let y=yield sge(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new sd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);q(`Saving Cache (ID: ${h})`),yield X5(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name Line truncated
See ${r.getDocumentationLink()}`;ope.push(n),Yh(n)}function ape(){cm("deprecation-collector_deprecations",JSON.stringify(f9)),cm("deprecation-collector_errors",JSON.stringify(ope))}import*as KR from"path";var Ape="GRADLE_ACTION_ID";var tD=".setup-gradle",XR=class t{getDependencyGraphOption(){let e=Qr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Qr("artifact-retention-days");return rct("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,tct())}getReportDirectory(){let e=Qr("dependency-graph-report-dir");return KR.resolve(id(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return vf("dependency-graph-exclude-projects")}getIncludeProjects(){return vf("dependency-graph-include-projects")}getExcludeConfigurations(){return vf("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return vf("dependency-graph-include-configurations")}getPluginRepository(){return new $R}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){q(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var l0=class{isCacheDisabled(){return rpe()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=SB("gradle-home-cache-cleanup");if(e!==void 0)return zR("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Qr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return Qr("cache-encryption-key")}getCacheIncludes(){return DP("gradle-home-cache-includes")}getCacheExcludes(){return DP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Qr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Qr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Qr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Qr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return SB("develocity-injection-enabled")}getDevelocityUrl(){return Qr("develocity-url")}getDevelocityAllowUntrustedServer(){return SB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return SB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return SB("develocity-enforce-url")}getDevelocityPluginVersion(){return Qr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Qr("develocity-ccud-plugin-version")}getPluginRepository(){return new $R}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},$R=class{getUrl(){return vf("gradle-plugin-repository-url")}getUsername(){return vf("gradle-plugin-repository-username")}getPassword(){return vf("gradle-plugin-repository-password")}},ZR=class{getGradleVersion(){return Qr("gradle-version")}getBuildRootDirectory(){let e=id(),r=Qr("build-root-directory");return r===""?KR.resolve(e):KR.resolve(e,r)}getDependen Line truncated
`+n(i)+s(i),a=Znt("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[A,c]of i.headers)A.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:A,value:c});o.sort((A,c)=>rx(A.name.toLowerCase(),c.name.toLowerCase())),o=o.filter((A,c,u)=>!(c>0&&A.name.toLowerCase()===u[c-1].name.toLowerCase()));let a="";return o.forEach(A=>{a+=`${A.name.toLowerCase().trimRight()}:${A.value.trimLeft()}
`}),a}function s(i){let o=ZT(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let A=ex(i.url),c={};if(A){let u=[];for(let l in A)if(Object.prototype.hasOwnProperty.call(A,l)){let d=l.toLowerCase();c[d]=A[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(c[l])}`}return a}return{name:est,async sendRequest(i,o){return e(i),o(i)}}}var tst="storageRequestFailureDetailsParserPolicy";function Uhe(){return{name:tst,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}}}}import{createHmac as rst}from"node:crypto";var nx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return rst("sha256",this.key).update(e,"utf8").digest("base64")}};var sx="12.31.0",ix="2026-02-06";var ox="https://storage.azure.com/.default",Su={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Pa="",w8="*",nst=1*1024*1024;var sst=4*nst;var Phe="AES256",Ohe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Hhe=["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"],Ghe=["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"],qhe="BlobUsesCustomerSpecifiedEncryption",Yhe="BlobDoesNotUseCustomerSpecifiedEncryption",Vhe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Nu(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var Hy=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new Sr);let r=new Hy([],e);return r._credential=t,r}function ist(t){let e=[ost,Whe,ast,Ast,cst,ust,dst];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>lst(s));return{wrappedPolicies:A8(r),afterRetry:n}}}}function S8(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?c8(e):b8(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${sx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=Qy({...r,loggingOptions:{additionalAllowedHeaderNames:Hhe,additionalAllowedQueryParameters:Ghe,logger:JT.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:WT,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:y8,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:U3}),s.addPolicy(Mhe()),s.addPolicy(Lhe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Uhe()),s.addPolicy(Fhe());let a=ist(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let A=N8(t);Gi(A)?s.addPolicy(vm({credential:A,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ya(t.version,i,n,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:s}}function oot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType),stringToSign:i}}function aot(t,e){if(t=bf(t),!t.identifier&&!(t.permissions&&t.expiresOn))throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when 'identifier' is not provided.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?qa(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(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,void 0,void 0,void 0,t.encryptionScope),stringToSign:i}}function Aot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey),stringToSign:i}}function cot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId),stringToSign:i}}function uot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope),stringToSign:i}}function lot(t,e){if(t=bf(t),!t.permissions||!t.expiresOn)throw new RangeError("Must provide 'permissions' and 'expiresOn' for Blob SAS generation when generating user delegation SAS.");let r="c",n=t.snapshotTime;t.blobName&&(r="b",t.snapshotTime?r="bs":t.versionId&&(r="bv",n=t.versionId));let s;t.permissions&&(t.blobName?s=ec.parse(t.permissions.toString()).toString():s=tc.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ht(t.startsOn,!1):"",t.expiresOn?Ht(t.expiresOn,!1):"",Bf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ht(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ht(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?qa(t.ipRange):"",t.protocol?t.protocol:"",t.version,r,n,t.encryptionScope,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType].join(`
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Ya(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function Bf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function bf(t){let e=t.version?t.version:ix;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}var Zy=class{_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=Dm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(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!==Pa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(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!==Pa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Pa||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 Be.withSpan("BlobLeaseClient-renewLease",e,async r=>this._containerOrBlobOperation.renewLease(this._leaseId,{abortSignal:e.ab 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"}};Jm.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Sf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries. Usage is recalculated every 6-12 hours.
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"}};Sf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var aB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var _ot=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},eH=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function ige(t,e,r){return _ot(this,void 0,void 0,function*(){var n;let s=new Va(t),i=s.getBlockBlobClient(),o=new eH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let A=yield i.uploadFile(e,a);if(A._response.status>=400)throw new eR(`uploadCacheArchiveSDK: upload failed with status code ${A._response.status}`);return A}catch(A){throw We(`uploadCacheArchiveSDK: internal error uploading cache archive: ${A.message}`),A}finally{o.stopDisplayTimer()}})}import*as age from"buffer";import*as rc from"fs";import*as Age from"stream";import*as cge from"util";var tR=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function rR(t){return t?t>=200&&t<300:!1}function Fot(t){return t?t>=500:!0}function Mot(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Lot(t){return tR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function oge(t,e,r){return tR(this,arguments,void 0,function*(n,s,i,o=YN,a=VN,A=void 0){let c="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){A&&(l=A(f)),h=!0,c=f.message}if(l&&(d=i(l),!Fot(d)))return l;if(d&&(h=Mot(d),c=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${c}`),!h){G(`${n} - Error is not retryable`);break}yield Lot(a),u++}throw Error(`${n} failed: ${c}`)})}function AB(t,e){return tR(this,arguments,void 0,function*(r,n,s=YN,i=VN){return yield oge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function zm(t,e){return tR(this,arguments,void 0,function*(r,n,s=YN,i=VN){return yield oge(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function Uot(t,e){return Oo(this,void 0,void 0,function*(){yield cge.promisify(Age.pipeline)(t.message,e)})}var nR=class{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,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);Z(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3) Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function sH(t,e,r){return di(this,void 0,void 0,function*(){let n=new qot(t),s=hge(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield lge(t,e,s):s.concurrentBlobDownloads?yield uge(t,e,s):yield sR(t,e):yield sR(t,e)})}function Ige(t,e,r){return di(this,void 0,void 0,function*(){let n=nH(),s=ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield AB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(uB("caches"),i)}))})}function Ege(t,e){return`bytes ${t}-${e}/*`}function Jot(t,e,r,n,s){return di(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ege(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ege(n,s)},o=yield zm(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!rR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function zot(t,e,r,n){return di(this,void 0,void 0,function*(){let s=RA(r),i=uB(`caches/${e.toString()}`),o=jm.openSync(r,"r"),a=tH(n),A=YO("uploadConcurrency",a.uploadConcurrency),c=YO("uploadChunkSize",a.uploadChunkSize),u=[...new Array(A).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,c),h=l,f=l+d-1;l+=c,yield Jot(t,i,()=>jm.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{jm.closeSync(o)}})}function jot(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield AB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(uB(`caches/${e.toString()}`),n)}))})}function iH(t,e,r,n){return di(this,void 0,void 0,function*(){if(tH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield ige(r,e,n)}else{let i=nH();G("Upload cache"),yield zot(i,t,e,n),G("Commiting cache");let o=RA(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield jot(i,t,o);if(!rR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var hpe=ce(KH(),1),rn=ce(ct(),1),Ji=ce(ct(),1),Df=ce(ct(),1),kf=ce(ct(),1),vf=ce(ct(),1);var e9=ce(ct(),1),t9=ce(ct(),1),upe=ce(ct(),1),lpe=ce(ct(),1),dpe=ce(ct(),1);var $H=ce(ct(),1),XH=ce(ct(),1),ape=ce(ct(),1),Ape=ce(ct(),1),cpe=ce(ct(),1),ZH=class extends cpe.MessageType{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,Ape.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,ape.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?XH.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,$H.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,$H.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XH.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},VR=new ZH;var r9=class extends dpe.MessageType{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:()=>VR}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,lpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,upe.reflectionMergePartial)(this,r,e),r}internalBinaryRead(e,r,n,s){let i=s??this.create(),o=e.pos+r;for(;e.pos<o;){let[a,A]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(VR.internalBinaryRead(e,e.uint32(),n));break;default:let c=n.readUnknownField;if(c==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${A}) for ${this.typeName}`);let u=e.skip(A);c!==!1&&(c===!0?t9.UnknownFieldHandler.onRead:c)(this.typeName,i,a,A,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,e9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)VR.internalBinaryWrite(e.scope[i],r.tag(2,e9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?t9.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield m9(r,"create");yield E9(n,t)})}var l0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},ji=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},id=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},zR=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function mpe(t){if(!t||t.length===0)throw new ji("Path Validation Error: At least one directory or file path is required")}function y9(t){if(t.length>512)throw new ji(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ji(`Key Validation Error: ${t} cannot contain commas.`)}function Epe(){return cB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function jR(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){let c=cB();return G(`Cache service version: ${c}`),mpe(s),c==="v2"?yield dct(s,i,o,a,A):yield lct(s,i,o,a,A)})}function lct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of c)y9(d);let u=yield hy(),l="";try{let d=yield Cge(c,s,{compressionMethod:u,enableCrossOsArchive:A});if(!d?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),d.cacheKey;l=SB.join(yield ly(),ql(u)),G(`Archive Path: ${l}`),yield sH(d.archiveLocation,l,a),_a()&&(yield wB(l,u));let h=RA(l);return Z(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield C9(l,u),Z("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===ji.name)throw d;h instanceof wA&&typeof h.statusCode=="number"&&h.statusCode>=500?TA(`Failed to restore: ${d.message}`):We(`Failed to restore: ${d.message}`)}finally{try{yield dy(l)}catch(d){G(`Failed to delete archive: ${d}`)}}})}function dct(t,e,r,n){return l0(this,arguments,void 0,function*(s,i,o,a,A=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let c=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(c)),c.length>10)throw new ji("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of c)y9(l);let u="";try{let l=p9(),d=yield hy(),h={key:i,restoreKeys:o,version:ym(s,d,A)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){G(`Cache not found for version ${h.version} of keys: ${c.join(", ")}`);return}if(h.key!==f.matchedKey?Z(`Cache hit for restore-key: ${f.matchedKey}`):Z(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),f.matchedKey;u=SB.join(yield ly(),ql(d)),G(`Archive path: ${u}`),G(`Starting download of archive to: ${u}`),yield sH(f.signedDownloadUrl,u,a);let I=RA(u);return Z(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),_a()&&(yield wB(u,d)),yield C9(u,d),Z("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===ji.name)throw l;d instanceof wA&&typeof d.statusCode=="number"&&d.statusCode>=500?TA(`Failed to restore: ${l.message}`):We(`Failed to restore: ${l.message}`)}finally{try{u&&(yield dy(u))}catch(l){G(`Failed to delete archive: ${l}`)}}})}function KR(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){let a=cB();return G(`Cache service version: ${a}`),mpe(n),y9(s),a==="v2"?yield fct(n,s,i,o):yield hct(n,s,i,o)})}function hct(t,e,r){return l0(this,arguments,void 0,function*(n,s,i,o=!1){var a,A,c,u,l;let d=yield hy(),h=-1,f=yield qO(n);if(G("Cache Paths:"),G(`${JSON.stringify(f)}`),f.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 p=yield ly(),I=SB.join(p,ql(d));G(`Archive Path: ${I}`);try{yield I9(p,f,d),_a()&&(yield wB(I,d));let E=10*1024*1024*1024,C=RA(I);if(G(`File Size: ${C}`),C>E&&!rH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);G("Reserving Cache");let y=yield Ige(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(A=y?.result)===null||A===void 0?void 0:A.cacheId;else throw y?.statusCode===400?new Error((u=(c=y?.error)===null||c===void 0?void 0:c.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new id(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);G(`Saving Cache (ID: ${h})`),yield iH(h,I,"",i)}catch(E){let C=E;if(C.name===ji.name)throw E;C.name===id.name Line truncated
See ${r.getDocumentationLink()}`;Cpe.push(n),Vh(n)}function Ipe(){mu("deprecation-collector_deprecations",JSON.stringify(b9)),mu("deprecation-collector_errors",JSON.stringify(Cpe))}import*as eD from"path";var ype="GRADLE_ACTION_ID";var iD=".setup-gradle",tD=class t{getDependencyGraphOption(){let e=hr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return Ac("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return Ect("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(si.workflow,si.job,mct())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return eD.resolve(od(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return _f("dependency-graph-exclude-projects")}getIncludeProjects(){return _f("dependency-graph-include-projects")}getExcludeConfigurations(){return _f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return _f("dependency-graph-include-configurations")}getPluginRepository(){return new rD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var d0=class{isCacheDisabled(){return Epe()?Ac("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Ac("cache-read-only")}isCacheWriteOnly(){return Ac("cache-write-only")}isCacheOverwriteExisting(){return Ac("cache-overwrite-existing")}isCacheStrictMatch(){return Ac("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=TB("gradle-home-cache-cleanup");if(e!==void 0)return XR("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=hr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return hr("cache-encryption-key")}getCacheIncludes(){return LP("gradle-home-cache-includes")}getCacheExcludes(){return LP("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Yo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Yo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Ac("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return hr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return hr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return hr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return hr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return TB("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return TB("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return TB("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return TB("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new rD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(We("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},rD=class{getUrl(){return _f("gradle-plugin-repository-url")}getUsername(){return _f("gradle-plugin-repository Line truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Npe}], make sure you have checked out the target repository`);return`${bct}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Sct=`
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
`,cct=`
***********************************************************
LICENSING NOTICE
The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
You can suppress this message by accepting the terms in your action configuration: see https://github.com/gradle/actions/blob/main/README.md
***********************************************************
`,uct=`
> [!IMPORTANT]
> #### Licensing notice
>
> The caching functionality in \`gradle-actions\` has been extracted into \`gradle-actions-caching\`, a proprietary commercial component that is not covered by the MIT License.
> The bundled \`gradle-actions-caching\` component is licensed and governed by a separate license, available at https://gradle.com/legal/terms-of-use/.
>
> The \`gradle-actions-caching\` component is used only when caching is enabled and is not loaded or used when caching is disabled.
>
> Use of the \`gradle-actions-caching\` component is subject to a separate license, available at https://gradle.com/legal/terms-of-use/.
> If you do not agree to these license terms, do not use the \`gradle-actions-caching\` component.
>
>You can suppress this message by [accepting the terms in your action configuration](https://github.com/gradle/actions/blob/main/README.md).
`,p9=class{async restore(e,r){}async save(e,r,n){return Act}},m9=class{constructor(e){this.delegate=e}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${uct}`}};async function gpe(t){if(t.isCacheDisabled())return new p9;let e=await lct();return t.isCacheLicenseAccepted()?e:(await hct(),new m9(e))}async function lct(){let t=dct();return await import(act(t).href)}function dct(){let t=import.meta.dirname,e=fpe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(hpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}async function hct(){console.info(cct)}import sD from"fs";import ppe from"path";var iD=class{constructor(e){this.cacheFile=ppe.resolve(e,tD,"valid-wrappers.json")}load(){if(sD.existsSync(this.cacheFile))try{return JSON.parse(sD.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];sD.mkdirSync(ppe.dirname(this.cacheFile),{recursive:!0}),sD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Bpe=ce(Ipe(),1);import*as ype from"util";import*as oD from"path";import*as aD from"fs";var Cct=ype.promisify(aD.readdir);async function bpe(t){return(await Qpe(t)).filter(r=>(0,Bpe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>oD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Qpe(t){let e=await Cct(t),r=await Promise.all(e.map(async n=>{let s=oD.resolve(t,n),i=aD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Qpe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var yct={_useHtmlParser2:!1};function d0(t,e){if(!t)return e??yct;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var H9={};ya(H9,{contains:()=>BD,extract:()=>gut,html:()=>lut,merge:()=>Jpe,parseHTML:()=>hut,root:()=>fut,text:()=>Pf,xml:()=>dut});var ud={};ya(ud,{DocumentPosition:()=>Jo,append:()=>Jct,appendChild:()=>Wct,compareDocumentPosition:()=>qpe,existsOne:()=>Hpe,filter:()=>m0,find:()=>ED,findAll:()=>Xct,findOne:()=>CD,findOneChild:()=>Kct,getAttributeValue:()=>Gct,getChildren:()=>p0,getElementById:()=>tut,getElements:()=>eut,getElementsByClassName:()=>rut,getElementsByTagName:()=>Uf,getElementsByTagType:()=>nut,getFeed:()=>O9,getInnerHTML:()=>Hct,getName:()=>Yct,getOuterHTML:()=>Ppe,getParent:()=>Ope,getSiblings:()=>U9,getText:()=>gD,hasAttrib:()=>qct,hasChildren:()=>rr,innerText:()=>DB,isCDATA:()=>h0,isComment:()=>Lf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>pD,prepend:()=>jct,prependChild:()=>zct,prevElementSibling:()=>mD,removeElement:()=>Lu,removeSubsets:()=>sut,replaceElement:()=>Vct,testElement:()=>Zct,textContent:()=>Mu,uniqueSort:()=>Ad});var Vo={};ya(Vo,{CDATA:()=>S9,Comment:()=>B9,Directive:()=>y9,Doctype:()=>N9,ElementType:()=>bt,Root:()=>C9,Script:()=>b9,Style:()=>Q9,Tag:()=>w9,Text:()=>I9,isTag:()=>E9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function E9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var C9=bt.Root,I9=bt.Text,y9=bt.Directive,B9=bt.Comment,b9=bt.Script,Q9=bt.Style,w9=bt.Tag,S9=bt.CDATA,N9=bt.Doctype;var AD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return f0(this,e)}},NB=class extends AD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends NB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},_f=class extends NB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Ff=class extends NB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},TB=class extends AD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},xB=class extends TB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends TB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Mf=class extends TB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void 0?void 0:r[e],prefix:(n=this["x-attribsPrefix"])===null||n===void 0?void 0:n[e]}})}};function Qe(t){return E9(t)}function h0(t){return t. Line truncated
`:gD(t.children):h0(t)?gD(t.children):gi(t)?t.data:""}function Mu(t){return Array.isArray(t)?t.map(Mu).join(""):rr(t)&&!Lf(t)?Mu(t.children):gi(t)?t.data:""}function DB(t){return Array.isArray(t)?t.map(DB).join(""):rr(t)&&(t.type===bt.Tag||h0(t))?DB(t.children):gi(t)?t.data:""}function p0(t){return rr(t)?t.children:[]}function Ope(t){return t.parent||null}function U9(t){let e=Ope(t);if(e!=null)return p0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Gct(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function qct(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Yct(t){return t.name}function pD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function mD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Lu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function Vct(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Wct(t,e){if(Lu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function Jct(t,e){Lu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function zct(t,e){if(Lu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function jct(t,e){Lu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function m0(t,e,r=!0,n=1/0){return ED(t,Array.isArray(e)?e:[e],r,n)}function ED(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Kct(t,e){return e.find(t)}function CD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=CD(t,i.children,!0);if(o)return o}}return null}function Hpe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&Hpe(t,r.children))}function Xct(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var ID={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function P9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function $ct(t,e){return r=>t(r)||e(r)}function Gpe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(ID,r)?ID[r](n):P9(r,n)});return e.length===0?null:e.reduce($ct)}function Zct(t,e){let r=Gpe(t);return r?r(e):!0}function eut(t,e,r,n=1/0){let s=Gpe(t);return s?m0(s,e,r,n):[]}function tut(t,e,r=!0){return Array.isArray(e)||(e=[e]),CD(P9("id",t),e,r)}function Uf(t,e,r=!0,n=1/0){return m0(ID.tag_name(t),e,r,n)}function rut(t,e,r=!0,n=1/0){return m0(P9("class",t),e,r,n)}function nut(t,e,r=!0,n=1/0){return m0(ID.tag_type(t),e,r,n)}function sut(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function qpe(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function Ad(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=qpe(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function O9(t){let e=yD(cut,t);return e?e.name==="feed"?iut(e):out(e):null}function iut(t){var e;let r=t.children,n={type:"atom",items:Uf("entry",r).map(o=>{var a;let{children:A}=o,c={media:Ype(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=yD("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=cd("summary",A)||cd("conten Line truncated
`,Nct="Enhanced Caching: This build is using the proprietary 'gradle-actions-caching' provider for optimized caching support. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for terms of use and opt-out instructions.",Tct=`
> [!NOTE]
> ### \u26A1\uFE0F Enhanced Caching enabled
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
`,xct="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Rct=`
> [!NOTE]
> ### \u{1F6E1}\uFE0F Basic Caching enabled
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
>
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,T9=class{async restore(e,r){}async save(e,r,n){return Sct}},cD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
${this.summary}`}};async function Dpe(t){if(t.isCacheDisabled())return N9("Cache is disabled: will not restore state from previous builds."),new T9;if(t.getCacheProvider()==="basic")return N9(xct),new cD(new AD,Rct);N9(Nct);let e=await Dct();return t.isCacheLicenseAccepted()?e:new cD(e,Tct)}async function Dct(){let t=kct();return await import(wct(t).href)}function kct(){let t=import.meta.dirname,e=Rpe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(xpe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function N9(t){console.info(t)}import uD from"fs";import kpe from"path";var lD=class{constructor(e){this.cacheFile=kpe.resolve(e,iD,"valid-wrappers.json")}load(){if(uD.existsSync(this.cacheFile))try{return JSON.parse(uD.readFileSync(this.cacheFile,"utf-8"))}catch(e){We(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];uD.mkdirSync(kpe.dirname(this.cacheFile),{recursive:!0}),uD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Upe=ce(Mpe(),1);import*as Lpe from"util";import*as dD from"path";import*as hD from"fs";var Uct=Lpe.promisify(hD.readdir);async function Ppe(t){return(await Ope(t)).filter(r=>(0,Upe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>dD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Ope(t){let e=await Uct(t),r=await Promise.all(e.map(async n=>{let s=dD.resolve(t,n),i=hD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ope(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Oct={_useHtmlParser2:!1};function h0(t,e){if(!t)return e??Oct;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var X9={};ya(X9,{contains:()=>TD,extract:()=>_ut,html:()=>Rut,merge:()=>cme,parseHTML:()=>kut,root:()=>vut,text:()=>Of,xml:()=>Dut});var ld={};ya(ld,{DocumentPosition:()=>Jo,append:()=>dut,appendChild:()=>lut,compareDocumentPosition:()=>ime,existsOne:()=>nme,filter:()=>E0,find:()=>QD,findAll:()=>put,findOne:()=>wD,findOneChild:()=>gut,getAttributeValue:()=>aut,getChildren:()=>m0,getElementById:()=>Iut,getElements:()=>Cut,getElementsByClassName:()=>yut,getElementsByTagName:()=>Pf,getElementsByTagType:()=>But,getFeed:()=>$9,getInnerHTML:()=>out,getName:()=>cut,getOuterHTML:()=>tme,getParent:()=>rme,getSiblings:()=>j9,getText:()=>yD,hasAttrib:()=>Aut,hasChildren:()=>rr,innerText:()=>vB,isCDATA:()=>f0,isComment:()=>Uf,isDocument:()=>Wo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>BD,prepend:()=>fut,prependChild:()=>hut,prevElementSibling:()=>bD,removeElement:()=>Uu,removeSubsets:()=>but,replaceElement:()=>uut,testElement:()=>Eut,textContent:()=>Lu,uniqueSort:()=>cd});var Vo={};ya(Vo,{CDATA:()=>L9,Comment:()=>v9,Directive:()=>k9,Doctype:()=>U9,ElementType:()=>bt,Root:()=>R9,Script:()=>_9,Style:()=>F9,Tag:()=>M9,Text:()=>D9,isTag:()=>x9});var bt;(function(t){t.Root="root",t.Text="text",t.Directive="directive",t.Comment="comment",t.Script="script",t.Style="style",t.Tag="tag",t.CDATA="cdata",t.Doctype="doctype"})(bt||(bt={}));function x9(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var R9=bt.Root,D9=bt.Text,k9=bt.Directive,v9=bt.Comment,_9=bt.Script,F9=bt.Style,M9=bt.Tag,L9=bt.CDATA,U9=bt.Doctype;var fD=class{constructor(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}get parentNode(){return this.parent}set parentNode(e){this.parent=e}get previousSibling(){return this.prev}set previousSibling(e){this.prev=e}get nextSibling(){return this.next}set nextSibling(e){this.next=e}cloneNode(e=!1){return g0(this,e)}},xB=class extends fD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},uc=class extends xB{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ff=class extends xB{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},Mf=class extends xB{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},RB=class extends fD{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},DB=class extends RB{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Ki=class extends RB{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},Lf=class extends RB{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void Line truncated
`:yD(t.children):f0(t)?yD(t.children):gi(t)?t.data:""}function Lu(t){return Array.isArray(t)?t.map(Lu).join(""):rr(t)&&!Uf(t)?Lu(t.children):gi(t)?t.data:""}function vB(t){return Array.isArray(t)?t.map(vB).join(""):rr(t)&&(t.type===bt.Tag||f0(t))?vB(t.children):gi(t)?t.data:""}function m0(t){return rr(t)?t.children:[]}function rme(t){return t.parent||null}function j9(t){let e=rme(t);if(e!=null)return m0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function aut(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Aut(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function cut(t){return t.name}function BD(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function bD(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Uu(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function uut(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function lut(t,e){if(Uu(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function dut(t,e){Uu(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function hut(t,e){if(Uu(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function fut(t,e){Uu(e);let{parent:r}=t;if(r){let n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}function E0(t,e,r=!0,n=1/0){return QD(t,Array.isArray(e)?e:[e],r,n)}function QD(t,e,r,n){let s=[],i=[Array.isArray(e)?e:[e]],o=[0];for(;;){if(o[0]>=i[0].length){if(o.length===1)return s;i.shift(),o.shift();continue}let a=i[0][o[0]++];if(t(a)&&(s.push(a),--n<=0))return s;r&&rr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function gut(t,e){return e.find(t)}function wD(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Qe(i)&&t(i))return i;if(r&&rr(i)&&i.children.length>0){let o=wD(t,i.children,!0);if(o)return o}}return null}function nme(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&nme(t,r.children))}function put(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),rr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var SD={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function K9(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function mut(t,e){return r=>t(r)||e(r)}function sme(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(SD,r)?SD[r](n):K9(r,n)});return e.length===0?null:e.reduce(mut)}function Eut(t,e){let r=sme(t);return r?r(e):!0}function Cut(t,e,r,n=1/0){let s=sme(t);return s?E0(s,e,r,n):[]}function Iut(t,e,r=!0){return Array.isArray(e)||(e=[e]),wD(K9("id",t),e,r)}function Pf(t,e,r=!0,n=1/0){return E0(SD.tag_name(t),e,r,n)}function yut(t,e,r=!0,n=1/0){return E0(K9("class",t),e,r,n)}function But(t,e,r=!0,n=1/0){return E0(SD.tag_type(t),e,r,n)}function but(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(Jo||(Jo={}));function ime(t,e){let r=[],n=[];if(t===e)return 0;let s=rr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=rr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return Jo.DISCONNECTED;let a=r[o-1],A=a.children,c=r[o],u=n[o];return A.indexOf(c)>A.indexOf(u)?a===e?Jo.FOLLOWING|Jo.CONTAINED_BY:Jo.FOLLOWING:a===t?Jo.PRECEDING|Jo.CONTAINS:Jo.PRECEDING}function cd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=ime(e,r);return n&Jo.PRECEDING?-1:n&Jo.FOLLOWING?1:0}),t}function $9(t){let e=ND(Tut,t);return e?e.name==="feed"?Qut(e):wut(e):null}function Qut(t){var e;let r=t.children,n={type:"atom",items:Pf("entry",r).map(o=>{var a;let{children:A}=o,c={media:ome(A)};pi(c,"id","id",A),pi(c,"title","title",A);let u=(a=ND("link",A))===null||a===void 0?void 0:a.attribs.href;u&&(c.link=u);let l=ud("summary",A)||ud("conten Line truncated
:is(button, input, select, textarea, optgroup, option)[disabled],
optgroup[disabled] > option,
fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(ld(),1);var nG={};function sG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function iG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function rG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var tG=(t,e,r,n,s)=>{let i=s(e,rG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},_D={is:tG,matches:tG,where:tG,not(t,e,r,n,s){let i=s(e,rG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=rG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UB))?[nG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=sG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...iG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function kme(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in _D))throw new Error(`Unknown pseudo-class :${o}(${a})`);return _D[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:vD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Dme.parse)(c);return _D.is(t,u,r,n,s)}if(typeof A=="function")return eG(A,o,a,1),u=>A(u,a)&&t(u);if(o in S0)return S0[o](t,a,r,n);if(o in OB){let u=OB[o];return eG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=ce(Q0(),1);function oG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function vme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),Nme[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return kme(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=oG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=oG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=oG(c,i));return!1};case Xo.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case Xo.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case Xo.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case Xo.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function _me(t,e,r){let n=FD(t,e,r);return sG(n,e.adapter)}function FD(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return MD(n,e,r)}function Fme(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(Fme)))}var elt={type:ja.SelectorType.Descendant},tlt={type:"_flexibleDescendant"},rlt={type:ja.SelectorType.Pseudo,name:"scope",data:null};function nlt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===nG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(Xme,`\r
`)}}).toArray()}var BG={};ya(BG,{extract:()=>Edt});function mdt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Edt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=mdt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var fd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};fd.prototype.cheerio="[cheerio object]";fd.prototype.splice=Array.prototype.splice;fd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(fd.prototype,j9,EG,CG,IG,yG,BG);function $me(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=d0(s),a=t(n,o,i,null);class A extends fd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=d0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&kB(u)?t(u,f,!1,null).children:Cdt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?kB(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,H9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Cdt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var Idt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function GD(t){return t>=55296&&t<=57343}function Zme(t){return t>=56320&&t<=57343}function e0e(t,e){return(t-55296)*1024+9216+e}function qD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function YD(t){return t>=64976&&t<=65007||Idt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Ko=ce(dd(),1);var fG={};function gG(t,e){return t===Ko.default.falseFunc?Ko.default.falseFunc:r=>e.isTag(r)&&t(r)}function pG(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function hG(t){return{xmlMode:!!t.xmlMode,lowerCaseAttributeNames:!!t.lowerCaseAttributeNames,lowerCaseTags:!!t.lowerCaseTags,quirksMode:!!t.quirksMode,cacheResults:!!t.cacheResults,pseudos:t.pseudos,adapter:t.adapter,equals:t.equals}}var dG=(t,e,r,n,s)=>{let i=s(e,hG(r),n);return i===Ko.default.trueFunc?t:i===Ko.default.falseFunc?Ko.default.falseFunc:o=>i(o)&&t(o)},OD={is:dG,matches:dG,where:dG,not(t,e,r,n,s){let i=s(e,hG(r),n);return i===Ko.default.falseFunc?t:i===Ko.default.trueFunc?Ko.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hG(r);o.relativeSelector=!0;let a=e.some(u=>u.some(OB))?[fG]:void 0,A=s(e,o,a);if(A===Ko.default.falseFunc)return Ko.default.falseFunc;let c=gG(A,i);if(a&&A!==Ko.default.trueFunc){let{shouldTestNextSiblings:u=!1}=A;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...pG(l,i)]:d;return i.existsOne(c,h)}}return u=>t(u)&&i.existsOne(c,i.getChildren(u))}};function zme(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in OD))throw new Error(`Unknown pseudo-class :${o}(${a})`);return OD[o](t,a,r,n,s)}let A=(i=r.pseudos)===null||i===void 0?void 0:i[o],c=typeof A=="string"?A:PD[o];if(typeof c=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,Jme.parse)(c);return OD.is(t,u,r,n,s)}if(typeof A=="function")return lG(A,o,a,1),u=>A(u,a)&&t(u);if(o in N0)return N0[o](t,a,r,n);if(o in GB){let u=GB[o];return lG(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var $o=ce(w0(),1);function mG(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function jme(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case $o.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case $o.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case $o.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),qme[e.action](t,e,r)}case $o.SelectorType.Pseudo:return zme(t,e,r,n,s);case $o.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(c){return i.getName(c)===a&&t(c)}}case $o.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(c){let u=c;for(;u=mG(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(c){let u=c;for(;u=mG(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(A){let c=A;do if(t(c))return!0;while(c=mG(c,i));return!1};case $o.SelectorType.Parent:return function(A){return i.getChildren(A).some(c=>i.isTag(c)&&t(c))};case $o.SelectorType.Child:return function(A){let c=i.getParent(A);return c!=null&&i.isTag(c)&&t(c)};case $o.SelectorType.Sibling:return function(A){let c=i.getSiblings(A);for(let u=0;u<c.length;u++){let l=c[u];if(o(A,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case $o.SelectorType.Adjacent:return i.prevElementSibling?function(A){let c=i.prevElementSibling(A);return c!=null&&t(c)}:function(A){let c=i.getSiblings(A),u;for(let l=0;l<c.length;l++){let d=c[l];if(o(A,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case $o.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function Kme(t,e,r){let n=HD(t,e,r);return gG(n,e.adapter)}function HD(t,e,r){let n=typeof t=="string"?(0,ja.parse)(t):t;return GD(n,e,r)}function $me(t){return t.type===ja.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some($me)))}var Clt={type:ja.SelectorType.Descendant},Ilt={type:"_flexibleDescendant"},ylt={type:ja.SelectorType.Pseudo,name:"scope",data:null};function Blt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fG||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(h0e,`\r
`)}}).toArray()}var vG={};ya(vG,{extract:()=>Ldt});function Mdt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function Ldt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Mdt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?A=>this._make(A).prop(o):A=>this._make(A).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((A,c)=>a(c,r,e)).get();else{let A=this._findBySelector(i,1);e[r]=A.length>0?a(A[0],r,e):void 0}}return e}var gd=class{constructor(e,r,n){if(this.length=0,this.options=n,this._root=r,e){for(let s=0;s<e.length;s++)this[s]=e[s];this.length=e.length}}};gd.prototype.cheerio="[cheerio object]";gd.prototype.splice=Array.prototype.splice;gd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(gd.prototype,oG,xG,RG,DG,kG,vG);function f0e(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=h0(s),a=t(n,o,i,null);class A extends gd{_make(l,d){let h=c(l,d);return h.prevObject=this,h}_parse(l,d,h,f){return t(l,d,h,f)}_render(l){return e(l,this.options)}}function c(u,l,d=a,h){if(u&&zo(u))return u;let f=h0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=zo(p)?p:new A(p,null,f);if(I._root=I,!u)return new A(void 0,I,f);let E=typeof u=="string"&&_B(u)?t(u,f,!1,null).children:Udt(u)?[u]:Array.isArray(u)?u:void 0,C=new A(E,I,f);if(E)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,R=l?typeof l=="string"?_B(l)?new A([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):zo(l)?l:new A(Array.isArray(l)?l:[l],I,f):I;return R?R.find(y):C}return Object.assign(c,X9,{load:r,_root:a,_options:o,fn:A.prototype,prototype:A.prototype}),c}}function Udt(t){return!!t.name||t.type===Vo.Root||t.type===Vo.Text||t.type===Vo.Comment}var Pdt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),lr="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function zD(t){return t>=55296&&t<=57343}function g0e(t){return t>=56320&&t<=57343}function p0e(t,e){return(t-55296)*1024+9216+e}function jD(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function KD(t){return t>=64976&&t<=65007||Pdt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo Line truncated
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
`)}`}},Iv=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var wg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function SNe(t){if(t instanceof AggregateError){Yh("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&ee(e.stack)}else t instanceof wg?(Yh(String(t)),t.stack&&ee(t.stack)):(Yh(String(t)),t instanceof Error&&t.stack&&ee(t.stack))}async function NNe(t,e,r){if(!t.doValidateWrappers())return;let n=new iD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await wNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await uN("All Gradle Wrapper jars are valid",async()=>{q(`Loaded previously validated checksums from cache: ${i.join(", ")}`),ee(o.toDisplayString())});else throw ee(o.toDisplayString()),new wg(`At least one Gradle Wrapper Jar failed validation!
`)}`}},Sv=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var Sg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function GNe(t){if(t instanceof AggregateError){Vh("Multiple errors returned");for(let e of t.errors)TA(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof Sg?(Vh(String(t)),t.stack&&Z(t.stack)):(Vh(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function qNe(t,e,r){if(!t.doValidateWrappers())return;let n=new lD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await HNe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await dN("All Gradle Wrapper jars are valid",async()=>{G(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new Sg(`At least one Gradle Wrapper Jar failed validation!
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Sg from"path";function TNe(t,e,r){let n=Sg.resolve(e,tD);uo.mkdirSync(n,{recursive:!0}),Kxt(e),Xxt(t),_a()&&$xt(e),r&&jn("GRADLE_ENCRYPTION_KEY",r)}function Kxt(t){let e=Sg.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Zxt("init-scripts",n),i=Sg.resolve(e,n);uo.writeFileSync(i,s)}}function Xxt(t){let e=eRt();if(e==null)return;let r=Sg.resolve(t,".m2"),n=Sg.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),ee(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=tRt(s,e);uo.writeFileSync(n,i),ee(`Merged default JDK locations into ${n}`)}}function $xt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import uo from"fs";import Ng from"path";function YNe(t,e,r){let n=Ng.resolve(e,iD);uo.mkdirSync(n,{recursive:!0}),gRt(e),pRt(t),_a()&&mRt(e),r&&jn("GRADLE_ENCRYPTION_KEY",r)}function gRt(t){let e=Ng.resolve(t,"init.d");uo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=ERt("init-scripts",n),i=Ng.resolve(e,n);uo.writeFileSync(i,s)}}function pRt(t){let e=CRt();if(e==null)return;let r=Ng.resolve(t,".m2"),n=Ng.resolve(r,"toolchains.xml");if(!uo.existsSync(n))uo.mkdirSync(r,{recursive:!0}),uo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=uo.readFileSync(n,"utf8"),i=IRt(s,e);uo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function mRt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=Sg.resolve(t,"gradle.properties");if(uo.existsSync(r)){ee(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else ee(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function Zxt(...t){let e=import.meta.dirname,r=Sg.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function eRt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
`,r=Ng.resolve(t,"gradle.properties");if(uo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=uo.readFileSync(r,"utf-8");uo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),uo.writeFileSync(r,e)}function ERt(...t){let e=import.meta.dirname,r=Ng.resolve(e,"..","..","..","sources","src","resources",...t);return uo.readFileSync(r,"utf8")}function CRt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
<toolchains>
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
@@ -306,49 +291,49 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function tRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var jW="GRADLE_BUILD_ACTION_SETUP_COMPLETED",rRt="GRADLE_USER_HOME";async function xNe(t,e,r){let n=await RNe(),s=await sRt();return process.env[jW]?(ee("Gradle setup only performed on first gradle/actions step in workflow."),!1):(jn(jW,!0),cm(jW,!0),cm(rRt,s),TNe(n,s,t.getCacheEncryptionKey()),await(await gpe(t)).restore(s,nRt(t)),await NNe(r,id(),s),await dpe(e),!0)}function nRt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function sRt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=id();return XW.resolve(r,t)}let e=XW.resolve(await RNe(),".gradle");if(KW.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),jn("GRADLE_USER_HOME",e),e;if(yv.platform()==="win32"&&e.startsWith("C:\\")&&KW.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),jn("GRADLE_USER_HOME",r),r}return jn("GRADLE_USER_HOME",e),e}async function RNe(){let t=await qI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return ee("Could not determine user.home from java -version output. Using os.homedir()."),yv.homedir();let n=r[1];return q(`Determined user.home from java -version output: '${n}'`),n}import*as BE from"fs";import*as uTe from"os";import*as Vd from"path";import*as ZW from"crypto";import*as Tg from"fs";var oRt=ce(oy(),1);import*as uQ from"path";var Qv=ce(oy(),1);import*as kNe from"stream";import*as vNe from"util";import{ok as ARt}from"assert";var DNe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Bv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return DNe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;ee(i.message)}let s=this.getSleepAmount();ee(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return DNe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ng=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},bv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},cRt=process.platform==="win32",LCr=process.platform==="darwin",uRt="actions/tool-cache";function _Ne(t,e,r,n){return Ng(this,void 0,void 0,function*(){e=e||uQ.join(MNe(),ZW.randomUUID()),yield qh(uQ.dirname(e)),q(`Downloading ${t}`),q(`Destination ${e}`);let s=3,i=$W("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=$W("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Bv(s,i,o).execute(()=>Ng(this,void 0,void 0,function*(){return yield lRt(t,e||"",r,n)}),A=>!(A instanceof bv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function lRt(t,e,r,n){return Ng(this,void 0,void 0,function*(){if(Tg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(uRt,[],{allowRetries:!1});r&&(q("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new bv(i.message.statusCode);throw q(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=vNe.promisify(kNe.pipeline),A=$W("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,Tg.createWriteStream(e)),q("download complete"),c=!0,e}finally{if(!c){q("download failed");try{yield oae(e)}catch(u){q(`Failed to delete '${e}'. ${u.message}`)}}}})}function FNe(t,e){return Ng(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield fRt(e),cRt?yield dRt(t,e):yield hRt(t,e),e})}function dRt(t,e){return Ng(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace Line truncated
`," Line feed \\n"]]),wTe=new Map([...GJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function STe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of wTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
`}function IRt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var oJ="GRADLE_BUILD_ACTION_SETUP_COMPLETED",yRt="GRADLE_USER_HOME";async function VNe(t,e,r){let n=await WNe(),s=await bRt();return process.env[oJ]?(Z("Gradle setup only performed on first gradle/actions step in workflow."),!1):(jn(oJ,!0),mu(oJ,!0),mu(yRt,s),YNe(n,s,t.getCacheEncryptionKey()),await(await Dpe(t)).restore(s,BRt(t)),await qNe(r,od(),s),await wpe(e),!0)}function BRt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function bRt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=od();return AJ.resolve(r,t)}let e=AJ.resolve(await WNe(),".gradle");if(aJ.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),jn("GRADLE_USER_HOME",e),e;if(Nv.platform()==="win32"&&e.startsWith("C:\\")&&aJ.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),jn("GRADLE_USER_HOME",r),r}return jn("GRADLE_USER_HOME",e),e}async function WNe(){let t=await YI("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return Z("Could not determine user.home from java -version output. Using os.homedir()."),Nv.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as bE from"fs";import*as STe from"os";import*as Wd from"path";import*as uJ from"crypto";import*as xg from"fs";var wRt=ce(Ay(),1);import*as dQ from"path";var Rv=ce(Ay(),1);import*as zNe from"stream";import*as jNe from"util";import{ok as NRt}from"assert";var JNe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},Tv=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return JNe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;Z(i.message)}let s=this.getSleepAmount();Z(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return JNe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Tg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},xv=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},TRt=process.platform==="win32",oIr=process.platform==="darwin",xRt="actions/tool-cache";function KNe(t,e,r,n){return Tg(this,void 0,void 0,function*(){e=e||dQ.join(XNe(),uJ.randomUUID()),yield Yh(dQ.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=cJ("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=cJ("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new Tv(s,i,o).execute(()=>Tg(this,void 0,void 0,function*(){return yield RRt(t,e||"",r,n)}),A=>!(A instanceof xv&&A.httpStatusCode&&A.httpStatusCode<500&&A.httpStatusCode!==408&&A.httpStatusCode!==429))})}function RRt(t,e,r,n){return Tg(this,void 0,void 0,function*(){if(xg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(xRt,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new xv(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=jNe.promisify(zNe.pipeline),A=cJ("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),c=!1;try{return yield o(A,xg.createWriteStream(e)),G("download complete"),c=!0,e}finally{if(!c){G("download failed");try{yield mae(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function $Ne(t,e){return Tg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield vRt(e),TRt?yield DRt(t,e):yield kRt(t,e),e})}function DRt(t,e){return Tg(this,void 0,void 0,function*(){let r=t.replace(/'/g,"''").replace(/"|\nLine truncated
`," Line feed \\n"]]),HTe=new Map([...ZJ,["\\"," Backslash \\"],["/"," Forward slash /"]]);function GTe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of HTe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(wTe.values()).toString()}
Invalid characters include: ${Array.from(HTe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);ee("Artifact name is valid!")}function qJ(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of GJ)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);Z("Artifact name is valid!")}function ez(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of ZJ)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(GJ.values()).toString()}
Invalid characters include: ${Array.from(ZJ.values()).toString()}
The following characters are not allowed in files that are uploaded due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.
`)}var RTe=ce(xTe(),1);function Mc(){return`@actions/artifact-${RTe.version}`}var Tv=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},nl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},sl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Wd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},il=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};il.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var xg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
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"}};xg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Rg=class extends Error{};Rg.prototype.name="InvalidTokenError";function KRt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function XRt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return KRt(e)}catch{return atob(e)}}function DTe(t,e){if(typeof t!="string")throw new Rg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Rg(`Invalid token specified: missing part #${r+1}`);let s;try{s=XRt(n)}catch(i){throw new Rg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Rg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var xv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=Sv(),e=DTe(t);if(!e.scp)throw xv;let r=e.scp.split(" ");if(r.length===0)throw xv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw xv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw xv}function kTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function vTe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&kTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&kTe(t.signed_url)}var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},YJ=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=Sv();this.baseUrl=fTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return Rv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Rv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Rv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(vTe(c),q(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(xg.isUsageErrorMessage(c.msg))throw new xg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof xg)throw a;if(il.isNetworkErrorCode(a?.code))throw new il(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);ee(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Rv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new YJ(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new Nv(e)}import*as SE from"fs";import{normalize as _Te,resolve as FTe}from"path";function MTe(t){if(!SE.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&Ze("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);ee(`Redirecting to blob download url: ${GPe(u)}`);try{ee(`Starting download of artifact to: ${r}`);let l=yield qPe(u,r,e?.skipDecompress);ee("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function WPe(){return IC(this,arguments,void 0,function*(t=gTe()){return(yield wGt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield LPe.mkdir(t,{recursive:!0})),t})}var NGt=5,TGt=[400,401,403,404,422];function yC(t,e=NGt,r=TGt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var JPe="6.0.0";function ip(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}ip.VERSION=JPe;var KPe=ce(zPe(),1),XPe=ce(YP(),1),xGt="0.0.0-development";async function jPe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function RGt(t,e,r,n){let s=new KPe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(DGt.bind(null,t,e,r),n)}async function DGt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new XPe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return jPe(t,e,i,n)}return s}function op(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",jPe.bind(null,r,t)),t.hook.wrap("request",RGt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}op.VERSION=xGt;var $Pe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function MF(t,e,r,n,s){return $Pe(this,void 0,void 0,function*(){var i;let[o,a]=yC(Wh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Fa(s,A,op,ip).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new nl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}
`)}var WTe=ce(VTe(),1);function Mc(){return`@actions/artifact-${WTe.version}`}var _v=class extends Error{constructor(e=[]){let r="No files were found to upload";e.length>0&&(r+=`: ${e.join(", ")}`),super(r),this.files=e,this.name="FilesNotFoundError"}},sl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},il=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},Jd=class extends Error{constructor(e="@actions/artifact v2.0.0+, upload-artifact@v4+ and download-artifact@v4+ are not currently supported on GHES."){super(e),this.name="GHESNotSupportedError"}},ol=class extends Error{constructor(e){let r=`Unable to make request: ${e}
If you are using self-hosted runners, please make sure your runner has access to all GitHub endpoints: https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/about-self-hosted-runners#communication-between-self-hosted-runners-and-github`;super(r),this.code=e,this.name="NetworkError"}};ol.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Rg=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts. Usage is recalculated every 6-12 hours.
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"}};Rg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var Dg=class extends Error{};Dg.prototype.name="InvalidTokenError";function gDt(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function pDt(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return gDt(e)}catch{return atob(e)}}function JTe(t,e){if(typeof t!="string")throw new Dg("Invalid token specified: must be a string");e||(e={});let r=e.header===!0?0:1,n=t.split(".")[r];if(typeof n!="string")throw new Dg(`Invalid token specified: missing part #${r+1}`);let s;try{s=pDt(n)}catch(i){throw new Dg(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new Dg(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var Fv=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function Lc(){let t=kv(),e=JTe(t);if(!e.scp)throw Fv;let r=e.scp.split(" ");if(r.length===0)throw Fv;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw Fv;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return G(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),G(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw Fv}function zTe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(va(r),va(encodeURIComponent(r)))}catch(e){G(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function jTe(t){if(typeof t!="object"||t===null){G("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&zTe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&zTe(t.signed_url)}var Mv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},tz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=kv();this.baseUrl=RTe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new pu(i)])}request(e,r,n,s){return Mv(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;G(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>Mv(this,void 0,void 0,function*(){return this.httpClient.post(i,JSON.stringify(s),o)}));return a}catch(a){throw new Error(`Failed to ${r}: ${a.message}`)}})}retryableRequest(e){return Mv(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),A=a.message.statusCode;s=yield a.readBody(),G(`[Response] - ${a.message.statusCode}`),G(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let c=JSON.parse(s);if(jTe(c),G(`Body: ${JSON.stringify(c,null,2)}`),this.isSuccessStatusCode(A))return{response:a,body:c};if(i=this.isRetryableHttpStatusCode(A),n=`Failed request: (${A}) ${a.message.statusMessage}`,c.msg){if(Rg.isUsageErrorMessage(c.msg))throw new Rg;n=`${n}: ${c.msg}`}}catch(a){if(a instanceof SyntaxError&&G(`Raw Body: ${s}`),a instanceof Rg)throw a;if(ol.isNetworkErrorCode(a?.code))throw new ol(a?.code);i=!0,n=a.message}if(!i)throw new Error(`Received non-retryable error: ${n}`);if(r+1===this.maxAttempts)throw new Error(`Failed to make request after ${this.maxAttempts} attempts: ${n}`);let o=this.getExponentialRetryTimeMilliseconds(r);Z(`Attempt ${r+1} of ${this.maxAttempts} failed with error: ${n}. Retrying request in ${o} ms...`),yield this.sleep(o),r++}throw new Error("Request failed")})}isSuccessStatusCode(e){return e?e>=200&&e<300:!1}isRetryableHttpStatusCode(e){return e?[tr.BadGateway,tr.GatewayTimeout,tr.InternalServerError,tr.ServiceUnavailable,tr.TooManyRequests].includes(e):!1}sleep(e){return Mv(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e))})}getExponentialRetryTimeMilliseconds(e){if(e<0)throw new Error("attempt should be a positive integer");if(e===0)return this.baseRetryIntervalMilliseconds;let r=this.baseRetryIntervalMilliseconds*Math.pow(this.retryMultiplier,e),n=r*this.retryMultiplier;return Math.trunc(Math.random()*(n-r)+r)}};function Uc(t){let e=new tz(Mc(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new vv(e)}import*as NE from"fs";import{normalize as KTe,resolve as $Te}from"path";function XTe(t){if(!NE.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);A.length>1&&We("Multiple artifacts found, defaulting to first.");let c={workflowRunBackendId:A[0].workflowRunBackendId,workflowJobRunBackendId:A[0].workflowJobRunBackendId,name:A[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(c);Z(`Redirecting to blob download url: ${sOe(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield iOe(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,G(`Computed digest: ${l.sha256Digest}`),G(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function AOe(){return yC(this,arguments,void 0,function*(t=DTe()){return(yield YGt(t))?G(`Artifact destination folder already exists: ${t}`):(G(`Artifact destination folder does not exist, creating: ${t}`),yield ZPe.mkdir(t,{recursive:!0})),t})}var WGt=5,JGt=[400,401,403,404,422];function BC(t,e=WGt,r=JGt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return G(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var cOe="6.0.0";function op(t){t.hook.wrap("request",(e,r)=>{t.log.debug("request",r);let n=Date.now(),s=t.request.endpoint.parse(r),i=s.url.replace(r.baseUrl,"");return e(r).then(o=>{let a=o.headers["x-github-request-id"];return t.log.info(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o}).catch(o=>{let a=o.response?.headers["x-github-request-id"]||"UNKNOWN";throw t.log.error(`${s.method} ${i} - ${o.status} with id ${a} in ${Date.now()-n}ms`),o})})}op.VERSION=cOe;var dOe=ce(uOe(),1),hOe=ce(KP(),1),zGt="0.0.0-development";async function lOe(t,e,r,n){if(!r.request||!r.request.request)throw r;if(r.status>=400&&!t.doNotRetry.includes(r.status)){let s=n.request.retries!=null?n.request.retries:t.retries,i=Math.pow((n.request.retryCount||0)+1,2);throw e.retry.retryRequest(r,s,i)}throw r}async function jGt(t,e,r,n){let s=new dOe.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,A=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return A*t.retryAfterBaseValue}),s.schedule(KGt.bind(null,t,e,r),n)}async function KGt(t,e,r,n){let s=await r(r,n);if(s.data&&s.data.errors&&s.data.errors.length>0&&/Something went wrong while executing your query/.test(s.data.errors[0].message)){let i=new hOe.RequestError(s.data.errors[0].message,500,{request:n,response:s});return lOe(t,e,i,n)}return s}function ap(t,e){let r=Object.assign({enabled:!0,retryAfterBaseValue:1e3,doNotRetry:[400,401,403,404,410,422,451],retries:3},e.retry);return r.enabled&&(t.hook.error("request",lOe.bind(null,r,t)),t.hook.wrap("request",jGt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}ap.VERSION=zGt;var fOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function GF(t,e,r,n,s){return fOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},u=yield Fa(s,A,ap,op).request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts{?name}",{owner:r,repo:n,run_id:e,name:t});if(u.status!==200)throw new sl(`Invalid response from GitHub API: ${u.status} (${(i=u?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);if(u.data.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function ZPe(t){return $Pe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],G(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function gOe(t){return fOe(this,void 0,void 0,function*(){var e;let r=Uc(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=Lc(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:Es.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new il(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var eOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function tOe(t,e,r,n,s){return eOe(this,void 0,void 0,function*(){var i;let[o,a]=yC(Wh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Fa(s,A,op,ip),u=yield MF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new nl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function rOe(t){return eOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new sl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return ee(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var nOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},LF=ETe(),UF=100,kGt=Math.ceil(LF/UF);function sOe(t,e,r,n){return nOe(this,arguments,void 0,function*(s,i,o,a,A=!1){ee(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=yC(Wh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Fa(a,d,op,ip),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:UF,page:f}),I=Math.ceil(p.total_count/UF),E=p.total_count;E>LF&&(Ze(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${LF}. Results will be incomplete as only the first ${LF} artifacts will be returned`),I=kGt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){q(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:UF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=oOe(c)),ee(`Found ${c.length} artifact(s)`),{artifacts:c}})}function iOe(){return nOe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=oOe(o)),ee(`Found ${o.length} artifact(s)`),{artifacts:o}})}function oOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var kw=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},vGt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},BC=class{uploadArtifact(e,r,n,s){return kw(this,void 0,void 0,function*(){try{if(bE())throw new Wd;return rPe(e,r,n,s)}catch(i){throw Ze(`Artifact upload failed with error: ${i}.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let a=o.artifacts[0];return o.artifacts.length>1&&(a=o.artifacts.sort((A,c)=>Number(c.databaseId)-Number(A.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var pOe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})};function mOe(t,e,r,n,s){return pOe(this,void 0,void 0,function*(){var i;let[o,a]=BC(Jh),A={log:void 0,userAgent:Mc(),previews:void 0,retry:o,request:a},c=Fa(s,A,ap,op),u=yield GF(t,e,r,n,s),l=yield c.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new sl(`Invalid response from GitHub API: ${l.status} (${(i=l?.headers)===null||i===void 0?void 0:i["x-github-request-id"]})`);return{id:u.artifact.id}})}function EOe(t){return pOe(this,void 0,void 0,function*(){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:Es.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new il(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((c,u)=>Number(u.databaseId)-Number(c.databaseId))[0],G(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},A=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${A.artifactId}) deleted`),{id:Number(A.artifactId)}})}var COe=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},qF=_Te(),YF=100,$Gt=Math.ceil(qF/YF);function IOe(t,e,r,n){return COe(this,arguments,void 0,function*(s,i,o,a,A=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let c=[],[u,l]=BC(Jh),d={log:void 0,userAgent:Mc(),previews:void 0,retry:u,request:l},h=Fa(a,d,ap,op),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:YF,page:f}),I=Math.ceil(p.total_count/YF),E=p.total_count;E>qF&&(We(`Workflow run ${s} has ${E} artifacts, exceeding the limit of ${qF}. Results will be incomplete as only the first ${qF} artifacts will be returned`),I=$Gt);for(let C of p.artifacts)c.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){G(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:YF,page:f});for(let y of C.artifacts)c.push({name:y.name,id:y.id,size:y.size_in_bytes,createdAt:y.created_at?new Date(y.created_at):void 0,digest:y.digest})}return A&&(c=BOe(c)),Z(`Found ${c.length} artifact(s)`),{artifacts:c}})}function yOe(){return COe(this,arguments,void 0,function*(t=!1){let e=Uc(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=Lc(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var A;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?ms.toDate(a.createdAt):void 0,digest:(A=a.digest)===null||A===void 0?void 0:A.value}});return t&&(o=BOe(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function BOe(t){t.sort((n,s)=>s.id-n.id);let e=[],r=new Set;for(let n of t)r.has(n.name)||(e.push(n),r.add(n.name));return e}var _w=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{c(n.next(u))}catch(l){o(l)}}function A(u){try{c(n.throw(u))}catch(l){o(l)}}function c(u){u.done?i(u.value):s(u.value).then(a,A)}c((n=n.apply(t,e||[])).next())})},XGt=function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,n=Object.getOwnPropertySymbols(t);s<n.length;s++)e.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(t,n[s])&&(r[n[s]]=t[n[s]]);return r},bC=class{uploadArtifact(e,r,n,s){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;return EPe(e,r,n,s)}catch(i){throw We(`Artifact upload failed with error: ${i}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return kw(this,void 0,void 0,function*(){try{if(bE())throw new Wd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=vGt(r,["findBy"]);return YPe(e,n,s,i,o)}return VPe(e,r)}catch(n){throw Ze(`Download Artifact failed with error: ${n}.
If the error persists, please check whether Actions is operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),i}})}downloadArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=XGt(r,["findBy"]);return oOe(e,n,s,i,o)}return aOe(e,r)}catch(n){throw We(`Download Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return kw(this,void 0,void 0,function*(){try{if(bE())throw new Wd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return sOe(r,n,s,i,e?.latest)}return iOe(e?.latest)}catch(r){throw Ze(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return IOe(r,n,s,i,e?.latest)}return yOe(e?.latest)}catch(r){throw We(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return kw(this,void 0,void 0,function*(){try{if(bE())throw new Wd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return MF(e,n,s,i,o)}return ZPe(e)}catch(n){throw Ze(`Get Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return GF(e,n,s,i,o)}return gOe(e)}catch(n){throw We(`Get Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return kw(this,void 0,void 0,function*(){try{if(bE())throw new Wd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return tOe(e,i,n,s,o)}return rOe(e)}catch(n){throw Ze(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return _w(this,void 0,void 0,function*(){try{if(QE())throw new Jd;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return mOe(e,i,n,s,o)}return EOe(e)}catch(n){throw We(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var N1r=new BC;import*as OX from"path";import HX from"fs";var _Gt="dependency-graph_";async function aOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await FGt(t);return}ee("Enabling dependency graph generation"),jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",WGt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",id()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&jn(t,e)}async function FGt(t){if(JGt()){ee("Dependency graph not supported in the ACT environment.");return}try{await UGt(await MGt(t))}catch(e){YGt(t,"download-and-submit",e)}}async function MGt(t){let e=si.payload.workflow_run?{token:rD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new BC,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(_Gt)),s=t.getDownloadArtifactName();s&&(ee(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});ee(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return LGt()}async function LGt(){let r=(await(await xN(`${HGt()}/**/*.json`)).glob()).filter(n=>!GGt(n));return r.forEach(qGt),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function UGt(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await OGt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=PGt(e,r)),r}}function PGt(t,e){let n=`Dependency submission failed for ${AOe(t)}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var K1r=new bC;import*as $$ from"path";import X$ from"fs";var ZGt="dependency-graph_";async function bOe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await eqt(t);return}Z("Enabling dependency graph generation"),jn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Ks("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Ks("GITHUB_DEPENDENCY_GRAPH_JOB_ID",si.runId.toString()),Ks("GITHUB_DEPENDENCY_GRAPH_REF",si.ref),Ks("GITHUB_DEPENDENCY_GRAPH_SHA",lqt()),Ks("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",od()),Ks("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Ks("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Ks("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Ks("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Ks("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Ks("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Ks("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Ks("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Ks(t,e){process.env[t]||e!==void 0&&jn(t,e)}async function eqt(t){if(dqt()){Z("Dependency graph not supported in the ACT environment.");return}try{await nqt(await tqt(t))}catch(e){cqt(t,"download-and-submit",e)}}async function tqt(t){let e=si.payload.workflow_run?{token:oD(),workflowRunId:si.payload.workflow_run.id,repositoryName:si.repo.repo,repositoryOwner:si.repo.owner}:void 0,r=new bC,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(ZGt)),s=t.getDownloadArtifactName();s&&(Z(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});Z(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return rqt()}async function rqt(){let r=(await(await ey(`${oqt()}/**/*.json`)).glob()).filter(n=>!aqt(n));return r.forEach(Aqt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function nqt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await iqt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=sqt(e,r)),r}}function sqt(t,e){let n=`Dependency submission failed for ${QOe(t)}.
${e.message}`;return e.message==="Resource not accessible by integration"?`${n}
Please ensure that the 'contents: write' permission is available for the workflow job.
Note that this permission is never available for a 'pull_request' trigger from a repository fork.
`:n}async function OGt(t){let e=VGt(),r=HX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=AOe(t);mae(`Submitted ${i}: ${s.data.message}`)}function HGt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function GGt(t){let e=`${t}.processed`;return HX.existsSync(e)}function qGt(t){let e=`${t}.processed`;HX.writeFileSync(e,"")}function YGt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new wg(r);Ze(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function VGt(){return Fa(rD())}function AOe(t){let e=id();return OX.relative(e,t)}function WGt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function JGt(){return process.env.ACT!==void 0}function jGt(t=process.platform){return t==="win32"?50:0}async function cOe(t=process.platform){let e=jGt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function KGt(){try{wB()==="gradle/gradle-build-action"&&jR("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),cpe("gradle/actions/setup-gradle"),await xNe(new l0,new Yo,new eD),await aOe(new XR);let t=new ZR;t.verifyNoArguments(),await rJ(t.getGradleVersion()),ape()}catch(t){SNe(t)}await cOe()}KGt();export{KGt as run};
`:n}async function iqt(t){let e=uqt(),r=X$.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=si.repo.owner,n.repo=si.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=QOe(t);Tae(`Submitted ${i}: ${s.data.message}`)}function oqt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function aqt(t){let e=`${t}.processed`;return X$.existsSync(e)}function Aqt(t){let e=`${t}.processed`;X$.writeFileSync(e,"")}function cqt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new Sg(r);We(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function uqt(){return Fa(oD())}function QOe(t){let e=od();return $$.relative(e,t)}function lqt(){let t=si;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function dqt(){return process.env.ACT!==void 0}function fqt(t=process.platform){return t==="win32"?50:0}async function wOe(t=process.platform){let e=fqt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function gqt(){try{NB()==="gradle/gradle-build-action"&&ZR("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),Bpe("gradle/actions/setup-gradle"),await VNe(new d0,new Yo,new sD),await bOe(new tD);let t=new nD;t.verifyNoArguments(),await hJ(t.getGradleVersion()),Ipe()}catch(t){GNe(t)}await wOe()}gqt();export{gqt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js: