[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-08-25 15:45:34 +00:00
1 parent 910b061d4d
commit 346a44564f
9 files changed
+333 -333

No files matched your search

+80 -80
View File
@@ -1,9 +1,9 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var e6e=Object.create;var pL=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(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 C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},xa=(t,e)=>{for(var r in e)pL(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&pL(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?pL(r,"default",{value:t,enumerable:!0}):r,t));var See=C(Kp=>{"use strict";var XWt=Q("net"),l6e=Q("tls"),IL=Q("http"),bee=Q("https"),d6e=Q("events"),ZWt=Q("assert"),h6e=Q("util");Kp.httpOverHttp=f6e;Kp.httpsOverHttp=g6e;Kp.httpOverHttps=p6e;Kp.httpsOverHttps=m6e;function f6e(t){var e=new Au(t);return e.request=IL.request,e}function g6e(t){var e=new Au(t);return e.request=IL.request,e.createSocket=Qee,e.defaultPort=443,e}function p6e(t){var e=new Au(t);return e.request=bee.request,e}function m6e(t){var e=new Au(t);return e.request=bee.request,e.createSocket=Qee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||IL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=wee(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Au,d6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=yL({request:e},i.options,wee(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=yL({},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")),kl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){kl("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){kl("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 kl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kl(`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)}};Au.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 Qee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=yL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function wee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function yL(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 kl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kl=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)}:kl=function(){};Kp.debug=kl});var BL=C((tJt,Nee)=>{Nee.exports=See()});var br=C((rJt,Tee)=>{Tee.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 _t=C((nJt,Zee)=>{"use strict";var xee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xee]===!0}[xee]=!0},Ree=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),bL=class extends Qr{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[Ree]===!0}[Ree]=!0},Dee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),QL=class extends Qr{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[Dee]===!0}[Dee]=!0},kee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),wL=class extends Qr{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[kee]===!0}[kee]=!0},vee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),SL=class extends Qr{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[vee]===!0}[vee]=!0},_ee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),NL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vHe(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(mHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function _He(){return"allowed"}function FHe(){return"success"}function MHe(){return"success"}function LHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UHe(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&&EU(t.origin)&&!EU(OI(t))&&(e=null);break;case"same-origin":vS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function om(t,e){return t}function PHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OHe(t){return om(BHe.now(),t)}function HHe(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 hre(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function GHe(t){return{referrerPolicy:t.referrerPolicy}}function qHe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=are();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=mU(r),s=mU(r,!0);n.toString().length>4096&&(n=s);let i=vS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??mU(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=OI(t);return vS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function mU(t,e){return Yh(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 PI(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 YHe(t,e){if(kS===void 0)return!0;let r=fre(e);if(r==="no metadata"||r.length===0)return!0;let n=WHe(r),s=JHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=kS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),zHe(c,a))return!0}return!1}var VHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function fre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=VHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Are.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function WHe(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 JHe(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 zHe(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 jHe(t){}function vS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $He(t){return t.controller.state==="aborted"}function XHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ZHe(t){return wHe[t.toLowerCase()]??t}function e9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var t9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gre(t,e,r=0,n=1){class s{ Line truncated
`);function D9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k9e(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 v9e(t,e){FS(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&&MS(t,x9e,i)||i.position===t.length-4&&MS(t,R9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,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;A!==null?(u??="text/plain",D9e(u)||(u=""),h=new N9e([d],A,{type:u})):h=B9e(Buffer.from(d)),FS(Nre(c)),FS(typeof h=="string"&&Nre(h)||Q9e(h)),s.push(w9e(c,h,A))}}function _9e(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=cm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=wU(o,!0,!0,a=>a===9||a===32),!b9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(a=>a===32||a===9,t,e),y9e(o)){case"content-disposition":{if(r=n=null,!MS(t,T9e,e)||(e.position+=17,r=Rre(t,e),r===null))return"failure";if(MS(t,xre,e)){let a=e.position+xre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Rre(t,e),n===null))return"failure"}break}case"content-type":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),s=Tre(a);break}case"content-transfer-encoding":{let a=cm(c=>c!==10&&c!==13,t,e);a=wU(a,!1,!0,c=>c===9||c===32),i=Tre(a);break}default:cm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Rre(t,e){FS(t[e.position-1]===34);let r=cm(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function wU(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 MS(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}Dre.exports={multipartFormDataParser:v9e,validateBoundary:k9e}});var lm=C((TJt,Gre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:F9e,isBlobLike:vre,isReadableStreamLike:M9e,readableStreamClose:L9e,createDeferredPromise:U9e,fullyReadBody:P9e,extractMimeType:O9e,utf8DecodeBytes:Mre}=vi(),{FormData:_re}=GI(),{kState:um}=vl(),{webidl:H9e}=Xn(),{Blob:G9e}=Q("node:buffer"),SU=Q("node:assert"),{isErrored:Lre,isDisturbed:q9e}=Q("node:stream"),{isArrayBuffer:Y9e}=Q("node:util/types"),{serializeAMimeType:V9e}=ei(),{multipartFormDataParser:W9e}=kre(),NU;try{let t=Q("node:crypto");NU=e=>t.randomInt(0,e)}catch{NU=t=>Math.floor(Math.random(t))}var LS=new TextEncoder;function J9e(){}var Ure=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pre;Ure&&(Pre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!q9e(e)&&!Lre(e)&&e.cancel("Response object has been garbage collected").catch(J9e)}));function Ore(t,e=!1){let r=null;t instanceof ReadableStream?r=t:vre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?LS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>L9e(c))},start(){},type:"bytes"}),SU(M9e(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(Y9e(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${NU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
var e6e=Object.create;var EL=Object.defineProperty;var t6e=Object.getOwnPropertyDescriptor;var r6e=Object.getOwnPropertyNames;var n6e=Object.getPrototypeOf,s6e=Object.prototype.hasOwnProperty;var Q=(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 C=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ra=(t,e)=>{for(var r in e)EL(t,r,{get:e[r],enumerable:!0})},i6e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of r6e(e))!s6e.call(t,s)&&s!==r&&EL(t,s,{get:()=>e[s],enumerable:!(n=t6e(e,s))||n.enumerable});return t};var ge=(t,e,r)=>(r=t!=null?e6e(n6e(t)):{},i6e(e||!t||!t.__esModule?EL(r,"default",{value:t,enumerable:!0}):r,t));var See=C(Kp=>{"use strict";var ZWt=Q("net"),l6e=Q("tls"),BL=Q("http"),bee=Q("https"),d6e=Q("events"),eJt=Q("assert"),h6e=Q("util");Kp.httpOverHttp=f6e;Kp.httpsOverHttp=g6e;Kp.httpOverHttps=p6e;Kp.httpsOverHttps=m6e;function f6e(t){var e=new Au(t);return e.request=BL.request,e}function g6e(t){var e=new Au(t);return e.request=BL.request,e.createSocket=Qee,e.defaultPort=443,e}function p6e(t){var e=new Au(t);return e.request=bee.request,e}function m6e(t){var e=new Au(t);return e.request=bee.request,e.createSocket=Qee,e.defaultPort=443,e}function Au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||BL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=wee(s,i,o),c=0,A=e.requests.length;c<A;++c){var u=e.requests[c];if(u.host===a.host&&u.port===a.port){e.requests.splice(c,1),u.request.onSocket(n);return}}n.destroy(),e.removeSocket(n)})}h6e.inherits(Au,d6e.EventEmitter);Au.prototype.addRequest=function(e,r,n,s){var i=this,o=bL({request:e},i.options,wee(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};Au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=bL({},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")),kl("making CONNECT request");var o=n.request(i);o.useChunkedEncodingByDefault=!1,o.once("response",a),o.once("upgrade",c),o.once("connect",A),o.once("error",u),o.end();function a(l){l.upgrade=!0}function c(l,d,h){process.nextTick(function(){A(l,d,h)})}function A(l,d,h){if(o.removeAllListeners(),d.removeAllListeners(),l.statusCode!==200){kl("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){kl("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 kl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),kl(`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)}};Au.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 Qee(t,e){var r=this;Au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=bL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=l6e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function wee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function bL(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 kl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?kl=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)}:kl=function(){};Kp.debug=kl});var QL=C((rJt,Nee)=>{Nee.exports=See()});var br=C((nJt,Tee)=>{Tee.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 _t=C((sJt,Zee)=>{"use strict";var xee=Symbol.for("undici.error.UND_ERR"),Qr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[xee]===!0}[xee]=!0},Ree=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),wL=class extends Qr{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[Ree]===!0}[Ree]=!0},Dee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),SL=class extends Qr{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[Dee]===!0}[Dee]=!0},kee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),NL=class extends Qr{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[kee]===!0}[kee]=!0},vee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),TL=class extends Qr{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[vee]===!0}[vee]=!0},_ee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),xL=class extends Qr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function vHe(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(mHe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function _He(){return"allowed"}function FHe(){return"success"}function MHe(){return"success"}function LHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function UHe(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&&IU(t.origin)&&!IU(OI(t))&&(e=null);break;case"same-origin":vS(t,OI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function om(t,e){return t}function PHe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:om(t.domainLookupStartTime,r),domainLookupEndTime:om(t.domainLookupEndTime,r),connectionStartTime:om(t.connectionStartTime,r),connectionEndTime:om(t.connectionEndTime,r),secureConnectionStartTime:om(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function OHe(t){return om(BHe.now(),t)}function HHe(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 hre(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function GHe(t){return{referrerPolicy:t.referrerPolicy}}function qHe(t){let e=t.referrerPolicy;Yh(e);let r=null;if(t.referrer==="client"){let a=are();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=CU(r),s=CU(r,!0);n.toString().length>4096&&(n=s);let i=vS(t,n),o=PI(n)&&!PI(t.url);switch(e){case"origin":return s??CU(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=OI(t);return vS(n,a)?n:PI(n)&&!PI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function CU(t,e){return Yh(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 PI(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 YHe(t,e){if(kS===void 0)return!0;let r=fre(e);if(r==="no metadata"||r.length===0)return!0;let n=WHe(r),s=JHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=kS.createHash(o).update(t).digest("base64");if(c[c.length-1]==="="&&(c[c.length-2]==="="?c=c.slice(0,-2):c=c.slice(0,-1)),zHe(c,a))return!0}return!1}var VHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function fre(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=VHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Are.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function WHe(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 JHe(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 zHe(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 jHe(t){}function vS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function KHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function $He(t){return t.controller.state==="aborted"}function XHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function ZHe(t){return wHe[t.toLowerCase()]??t}function e9e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Yh(typeof e=="string"),e}var t9e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function gre(t,e,r=0,n=1){class s{ Line truncated
`);function D9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function k9e(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 v9e(t,e){FS(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&&MS(t,x9e,i)||i.position===t.length-4&&MS(t,R9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=_9e(t,i);if(a==="failure")return"failure";let{name:c,filename:A,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;A!==null?(u??="text/plain",D9e(u)||(u=""),h=new N9e([d],A,{type:u})):h=B9e(Buffer.from(d)),FS(Nre(c)),FS(typeof h=="string"&&Nre(h)||Q9e(h)),s.push(w9e(c,h,A))}}function _9e(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=cm(a=>a!==10&&a!==13&&a!==58,t,e);if(o=NU(o,!0,!0,a=>a===9||a===32),!b9e.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,cm(a=>a===32||a===9,t,e),y9e(o)){case"content-disposition":{if(r=n=null,!MS(t,T9e,e)||(e.position+=17,r=Rre(t,e),r===null))return"failure";if(MS(t,xre,e)){let a=e.position+xre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Rre(t,e),n===null))return"failure"}break}case"content-type":{let a=cm(c=>c!==10&&c!==13,t,e);a=NU(a,!1,!0,c=>c===9||c===32),s=Tre(a);break}case"content-transfer-encoding":{let a=cm(c=>c!==10&&c!==13,t,e);a=NU(a,!1,!0,c=>c===9||c===32),i=Tre(a);break}default:cm(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function Rre(t,e){FS(t[e.position-1]===34);let r=cm(n=>n!==10&&n!==13&&n!==34,t,e);return t[e.position]!==34?null:(e.position++,r=new TextDecoder().decode(r).replace(/%0A/ig,`
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function cm(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function NU(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 MS(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}Dre.exports={multipartFormDataParser:v9e,validateBoundary:k9e}});var lm=C((xJt,Gre)=>{"use strict";var qI=dt(),{ReadableStreamFrom:F9e,isBlobLike:vre,isReadableStreamLike:M9e,readableStreamClose:L9e,createDeferredPromise:U9e,fullyReadBody:P9e,extractMimeType:O9e,utf8DecodeBytes:Mre}=vi(),{FormData:_re}=GI(),{kState:um}=vl(),{webidl:H9e}=Xn(),{Blob:G9e}=Q("node:buffer"),TU=Q("node:assert"),{isErrored:Lre,isDisturbed:q9e}=Q("node:stream"),{isArrayBuffer:Y9e}=Q("node:util/types"),{serializeAMimeType:V9e}=ei(),{multipartFormDataParser:W9e}=kre(),xU;try{let t=Q("node:crypto");xU=e=>t.randomInt(0,e)}catch{xU=t=>Math.floor(Math.random(t))}var LS=new TextEncoder;function J9e(){}var Ure=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Pre;Ure&&(Pre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!q9e(e)&&!Lre(e)&&e.cancel("Response object has been garbage collected").catch(J9e)}));function Ore(t,e=!1){let r=null;t instanceof ReadableStream?r=t:vre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?LS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>L9e(c))},start(){},type:"bytes"}),TU(M9e(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(Y9e(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(qI.isFormDataLike(t)){let c=`----formdata-undici-0${`${xU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=LS.encode(A+`; name="${u(l(E))}"\r
\r
@@ -12,7 +12,7 @@ ${l(m)}\r
Content-Type: ${m.type||"application/octet-stream"}\r
\r
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=LS.encode(`--${c}--\r
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(vre(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(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Lre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function z9e(t,e=!1){return t instanceof ReadableStream&&(SU(!qI.isDisturbed(t),"The body has already been consumed."),SU(!t.locked,"The stream is locked.")),Ore(t,e)}function j9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function K9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $9e(t){return{blob(){return Am(this,r=>{let n=Fre(this);return n===null?n="":n&&(n=V9e(n)),new G9e([r],{type:n})},t)},arrayBuffer(){return Am(this,r=>new Uint8Array(r).buffer,t)},text(){return Am(this,Mre,t)},json(){return Am(this,Z9e,t)},formData(){return Am(this,r=>{let n=Fre(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=W9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _re;return i[um]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new _re;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 Am(this,r=>new Uint8Array(r),t)}}}function X9e(t){Object.assign(t.prototype,$9e(t))}async function Am(t,e,r){if(H9e.brandCheck(t,r),Hre(t))throw new TypeError("Body is unusable: Body has already been read");K9e(t[um]);let n=U9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[um].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await P9e(t[um].body,i,s),n.promise)}function Hre(t){let e=t[um].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function Z9e(t){return JSON.parse(Mre(t))}function Fre(t){let e=t[um].headersList,r=O9e(e);return r==="failure"?null:r}Gre.exports={extractBody:Ore,safelyExtractBody:z9e,cloneBody:j9e,mixinBody:X9e,streamRegistry:Pre,hasFinalizationRegistry:Ure,bodyUnusable:Hre}});var sne=C((xJt,nne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:qre}=Xp(),TU=AU(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:Yre,RequestAbortedError:Xre,InvalidArgumentError:eGe,HeadersTimeoutError:tGe,HeadersOverflowError:rGe,SocketError:dm,InformationalError:hm,BodyTimeoutError:nGe,HTTPParserError:sGe,ResponseExceededMaxSizeError:iGe}=_t(),{kUrl:Zre,kReset:ti,kClient:HS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ene,kSize:Vre,kWriting:_l,kQueue:Da,kNoRef:YI,kKeepAliveDefaultTimeout:oGe,kHostHeader:aGe,kPendingIdx:cGe,kRunningIdx:To,kError:Ts,kPipelining:GS,kSocket:Jh,kKeepAliveTimeoutValue:YS,kMaxHeadersSize:xU,kKeepAliveMaxTimeout:AGe,kKeepAliveTimeoutThreshold:uGe,kHeadersTimeout:lGe,kBodyTimeout:dGe,kStrictContentLength:kU,kMaxRequests:Wre,kCounter:hGe,kMaxResponseSize:fGe,kOnError:Jre,kResume:gu,kHTTPContext:tne}=br(),_i=Pte(),zre=Buffer.alloc(0),US=Buffer[Symbol.species],PS=Pe.addListener,gGe=Pe.removeAllListeners,zh=Symbol("kIdleSocketValidation"),Wh=Symbol("kIdleSocketValidationTimeout"),MU=Symbol("kSocketUsed"),RU;async function pGe(){let t=process.env.JEST_WORKER_ID?dU():void 0,e;try{e=await WebAssembly.compile(Gte())}catch{e=await WebAssembly.compile(t||dU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onStatus(new US(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderField(new US(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderValue(new US(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onBody(new US(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var DU=null,vU=pGe();vU.catch();var Ur=null,Tc=null,OS=0,xc=null,mGe=0,VI=1,fm=2|VI,qS=4|VI,_U=8|mGe,FU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[xU])&&e[xU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`);d.push(g),i+=g.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(vre(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(qI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:F9e(t)}if((typeof s=="string"||qI.isBuffer(s))&&(i=Buffer.byteLength(s)),n!=null){let c;r=new ReadableStream({async start(){c=n(t)[Symbol.asyncIterator]()},async pull(A){let{value:u,done:l}=await c.next();if(l)queueMicrotask(()=>{A.close(),A.byobRequest?.respond(0)});else if(!Lre(r)){let d=new Uint8Array(u);d.byteLength&&A.enqueue(d)}return A.desiredSize>0},async cancel(A){await c.return()},type:"bytes"})}return[{stream:r,source:s,length:i},o]}function z9e(t,e=!1){return t instanceof ReadableStream&&(TU(!qI.isDisturbed(t),"The body has already been consumed."),TU(!t.locked,"The stream is locked.")),Ore(t,e)}function j9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function K9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function $9e(t){return{blob(){return Am(this,r=>{let n=Fre(this);return n===null?n="":n&&(n=V9e(n)),new G9e([r],{type:n})},t)},arrayBuffer(){return Am(this,r=>new Uint8Array(r).buffer,t)},text(){return Am(this,Mre,t)},json(){return Am(this,Z9e,t)},formData(){return Am(this,r=>{let n=Fre(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=W9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new _re;return i[um]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new _re;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 Am(this,r=>new Uint8Array(r),t)}}}function X9e(t){Object.assign(t.prototype,$9e(t))}async function Am(t,e,r){if(H9e.brandCheck(t,r),Hre(t))throw new TypeError("Body is unusable: Body has already been read");K9e(t[um]);let n=U9e(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[um].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await P9e(t[um].body,i,s),n.promise)}function Hre(t){let e=t[um].body;return e!=null&&(e.stream.locked||qI.isDisturbed(e.stream))}function Z9e(t){return JSON.parse(Mre(t))}function Fre(t){let e=t[um].headersList,r=O9e(e);return r==="failure"?null:r}Gre.exports={extractBody:Ore,safelyExtractBody:z9e,cloneBody:j9e,mixinBody:X9e,streamRegistry:Pre,hasFinalizationRegistry:Ure,bodyUnusable:Hre}});var sne=C((RJt,nne)=>{"use strict";var Me=Q("node:assert"),Pe=dt(),{channels:qre}=Xp(),RU=lU(),{RequestContentLengthMismatchError:Vh,ResponseContentLengthMismatchError:Yre,RequestAbortedError:Xre,InvalidArgumentError:eGe,HeadersTimeoutError:tGe,HeadersOverflowError:rGe,SocketError:dm,InformationalError:hm,BodyTimeoutError:nGe,HTTPParserError:sGe,ResponseExceededMaxSizeError:iGe}=_t(),{kUrl:Zre,kReset:ti,kClient:HS,kParser:lr,kBlocking:WI,kRunning:cn,kPending:ene,kSize:Vre,kWriting:_l,kQueue:ka,kNoRef:YI,kKeepAliveDefaultTimeout:oGe,kHostHeader:aGe,kPendingIdx:cGe,kRunningIdx:To,kError:Ts,kPipelining:GS,kSocket:Jh,kKeepAliveTimeoutValue:YS,kMaxHeadersSize:DU,kKeepAliveMaxTimeout:AGe,kKeepAliveTimeoutThreshold:uGe,kHeadersTimeout:lGe,kBodyTimeout:dGe,kStrictContentLength:_U,kMaxRequests:Wre,kCounter:hGe,kMaxResponseSize:fGe,kOnError:Jre,kResume:gu,kHTTPContext:tne}=br(),_i=Pte(),zre=Buffer.alloc(0),US=Buffer[Symbol.species],PS=Pe.addListener,gGe=Pe.removeAllListeners,zh=Symbol("kIdleSocketValidation"),Wh=Symbol("kIdleSocketValidationTimeout"),UU=Symbol("kSocketUsed"),kU;async function pGe(){let t=process.env.JEST_WORKER_ID?fU():void 0,e;try{e=await WebAssembly.compile(Gte())}catch{e=await WebAssembly.compile(t||fU())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onStatus(new US(Tc.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Ur.ptr===r),Ur.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderField(new US(Tc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onHeaderValue(new US(Tc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Ur.ptr===r),Ur.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Ur.ptr===r);let i=n-xc+Tc.byteOffset;return Ur.onBody(new US(Tc.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Ur.ptr===r),Ur.onMessageComplete()||0)}})}var vU=null,FU=pGe();FU.catch();var Ur=null,Tc=null,OS=0,xc=null,mGe=0,VI=1,fm=2|VI,qS=4|VI,MU=8|mGe,LU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[DU])&&e[DU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(_i.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[aGe],i?g+=`connection: upgrade\r
upgrade: ${i}\r
@@ -27,7 +27,7 @@ upgrade: ${i}\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[gu]()}catch(c){t(c)}}async function QGe(t,e,r,n,s,i,o,a){Me(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Vh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function $re(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var VS=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[_l]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[kU])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[ti]=!0),r[gu]()}catch(c){t(c)}}async function $re(t,e,r,n,s,i,o,a){Me(i!==0||r[cn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{Me(c===null),s[Ts]?h(s[Ts]):c=d});s.on("close",A).on("drain",A);let l=new VS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ts])throw s[Ts];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var VS=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[_l]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ts])throw r[Ts];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[_U])throw new Vh;process.emitWarning(new Vh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[ti]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
@@ -38,60 +38,60 @@ ${A.toString(16)}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[kU])throw new Vh;process.emitWarning(new Vh)}e[lr].timeout&&e[lr].timeoutType===fm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_l]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};nne.exports=EGe});var dne=C((RJt,lne)=>{"use strict";var xo=Q("node:assert"),{pipeline:wGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:LU,RequestAbortedError:ine,SocketError:JI,InformationalError:UU}=_t(),{kUrl:WS,kReset:zS,kClient:gm,kRunning:jS,kPending:SGe,kQueue:Fl,kPendingIdx:PU,kRunningIdx:ka,kError:_a,kSocket:vn,kStrictContentLength:NGe,kOnError:OU,kMaxConcurrentStreams:une,kHTTP2Session:va,kResume:Ml,kSize:TGe,kHTTPContext:xGe}=br(),pu=Symbol("open streams"),one,ane=!1,JS;try{JS=Q("node:http2")}catch{JS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RGe,HTTP2_HEADER_METHOD:DGe,HTTP2_HEADER_PATH:kGe,HTTP2_HEADER_SCHEME:vGe,HTTP2_HEADER_CONTENT_LENGTH:_Ge,HTTP2_HEADER_EXPECT:FGe,HTTP2_HEADER_STATUS:MGe}}=JS;function LGe(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 UGe(t,e){t[vn]=e,ane||(ane=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=JS.connect(t[WS],{createConnection:()=>e,peerMaxConcurrentStreams:t[une]});r[pu]=0,r[gm]=t,r[vn]=e,Et.addListener(r,"error",OGe),Et.addListener(r,"frameError",HGe),Et.addListener(r,"end",GGe),Et.addListener(r,"goaway",qGe),Et.addListener(r,"close",function(){let{[gm]:s}=this,{[vn]:i}=s,o=this[vn][_a]||this[_a]||new JI("closed",Et.getSocketInfo(i));if(s[va]=null,s.destroyed){xo(s[SGe]===0);let a=s[Fl].splice(s[ka]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[va]=r,e[va]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[_a]=s,this[gm][OU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[_a]||new JI("closed",Et.getSocketInfo(this));t[vn]=null,this[va]!=null&&this[va].destroy(s),t[PU]=t[ka],xo(t[jS]===0),t.emit("disconnect",t[WS],[t],s),t[Ml]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VGe(t,...s)},resume(){PGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function PGe(t){let e=t[vn];e?.destroyed===!1&&(t[TGe]===0&&t[une]===0?(e.unref(),t[va].unref()):(e.ref(),t[va].ref()))}function OGe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][_a]=t,this[gm][OU](t)}function HGe(t,e,r){if(r===0){let n=new UU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vn][_a]=n,this[gm][OU](n)}}function GGe(){let t=new JI("other side closed",Et.getSocketInfo(this[vn]));this.destroy(t),Et.destroy(this[vn],t)}function qGe(t){let e=this[_a]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[gm];if(r[vn]=null,r[xGe]=null,this[va]!=null&&(this[va].destroy(e),this[va]=null),Et.destroy(this[vn],e),r[ka]<r[Fl].length){let n=r[Fl][r[ka]];r[Fl][r[ka]++]=null,Et.errorRequest(r,n,e),r[PU]=r[ka]}xo(r[jS]===0),r.emit("disconnect",r[WS],[r],e),r[Ml]()}function YGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VGe(t,e){let r=t[va],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[WS];l[RGe]=i||`${h}${f?`:${f}`:""}`,l[DGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new ine,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Fl][t[ka]++]=null,t[Ml]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Fl][t[ka]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[kGe]=s,l[vGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){one??=lm().extractBody;let[B,M]=one(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),YGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[NGe])return Et.errorRequest(t,e,new LU),!1;process.emitWarning(new LU)}m!=null&&(xo(u,"no body must not have content length"),l[_Ge]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[FGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[mqe]=c??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[YU]=V,this[Ul]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=X??100,this[Xr]=null,this[Fa]=[],this[Eu]=0,this[Ma]=0,this[$I]=ue=>WU(this,ue),this[wqe]=ue=>Qne(this,ue)}get pipelining(){return this[ZS]}set pipelining(e){this[ZS]=e,this[$I](!0)}get[ey](){return this[Fa].length-this[Ma]}get[ZI](){return this[Ma]-this[Eu]}get[XI](){return this[Fa].length-this[Eu]}get[Aqe](){return!!this[Xr]&&!this[mm]&&!this[Xr].destroyed}get[qU](){return!!(this[Xr]?.busy(null)||this[XI]>=(bne(this)||1)||this[ey]>0)}[cqe](e){wne(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[Dc].origin,s=new rqe(n,e,r);return this[Fa].push(s),this[Kh]||(jh.bodyLength(s.body)==null&&jh.isIterable(s.body)?(this[Kh]=1,queueMicrotask(()=>WU(this))):this[$I](!0)),this[Kh]&&this[Pl]!==2&&this[qU]&&(this[Pl]=2),this[Pl]<2}async[yqe](){return new Promise(e=>{this[XI]?this[Ul]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[Fa].splice(this[Ma]);for(let i=0;i<n.length;i++){let o=n[i];jh.errorRequest(this,o,e)}let s=()=>{this[Ul]&&(this[Ul](),this[Ul]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},xqe=XS();function Qne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[Ma]===t[Eu]);let r=t[Fa].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];jh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function wne(t){mu(!t[mm]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Bne.isIP(o)),r=o}t[mm]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ll],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){jh.destroy(i.on("error",Ine),new iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",Ine),o}t[mm]=!1,i[Iqe]=0,i[YU]=t[YU],i[aqe]=t,i[lqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[mm]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Fa][t[Ma]].servername===t[Ll];){let o=t[Fa][t[Ma]++];jh.errorRequest(t,o,i)}else Qne(t,i);t.emit("connectionError",t[Dc],[t],i)}t[$I]()}function yne(t){t[Pl]=0,t.emit("drain",t[Dc],[t])}function WU(t,e){t[Kh]!==2&&(t[Kh]=2,Rqe(t,e),t[Kh]=0,t[Eu]>256&&(t[Fa].splice(0,t[Eu]),t[Ma]-=t[Eu],t[Eu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Ul]&&!t[XI]){t[Ul](),t[Ul]=null;return}if(t[Xr]&&t[Xr].resume(),t[qU])t[Pl]=2;else if(t[Pl]===2){e?(t[Pl]=1,queueMicrotask(()=>yne(t))):yne(t);continue}if(t[ey]===0||t[ZI]>=(bne(t)||1))return;let r=t[Fa][t[Ma]];if(t[Dc].protocol==="https:"&&t[Ll]!==r.servername){if(t[ZI]>0)return;t[Ll]=r.servername,t[Xr]?.destroy(new sqe("servername changed"),()=>{t[Xr]=null,WU(t)})}if(t[mm])return;if(!t[Xr]){wne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[Ma]++:t[Fa].splice(t[Ma],1)}}Sne.exports=VU});var JU=C((FJt,Nne)=>{"use strict";var eN=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)}};Nne.exports=class{constructor(){this.head=this.tail=new eN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xne=C((MJt,Tne)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:_qe,kRunning:Fqe,kSize:Mqe}=br(),$h=Symbol("pool"),zU=class{constructor(e){this[$h]=e}get connected(){return this[$h][kqe]}get free(){return this[$h][Dqe]}get pending(){return this[$h][vqe]}get queued(){return this[$h][_qe]}get running(){return this[$h][Fqe]}get size(){return this[$h][Mqe]}};Tne.exports=zU});var eP=C((LJt,Pne)=>{"use strict";var Lqe=rm(),Uqe=JU(),{kConnected:jU,kSize:Rne,kRunning:Dne,kPending:kne,kQueued:ty,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=br(),Vqe=xne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),KU=Symbol("closed resolve"),$U=Symbol("onDrain"),vne=Symbol("onConnect"),_ne=Symbol("onDisconnect"),Fne=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[_U])throw new Vh;process.emitWarning(new Vh)}e[lr].timeout&&e[lr].timeoutType===fm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[gu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[_l]=!1,e&&(Me(n[cn]<=1,"pipeline should only contain this request"),s(e))}};nne.exports=EGe});var dne=C((DJt,lne)=>{"use strict";var xo=Q("node:assert"),{pipeline:wGe}=Q("node:stream"),Et=dt(),{RequestContentLengthMismatchError:PU,RequestAbortedError:ine,SocketError:JI,InformationalError:OU}=_t(),{kUrl:WS,kReset:zS,kClient:gm,kRunning:jS,kPending:SGe,kQueue:Fl,kPendingIdx:HU,kRunningIdx:va,kError:Fa,kSocket:vn,kStrictContentLength:NGe,kOnError:GU,kMaxConcurrentStreams:une,kHTTP2Session:_a,kResume:Ml,kSize:TGe,kHTTPContext:xGe}=br(),pu=Symbol("open streams"),one,ane=!1,JS;try{JS=Q("node:http2")}catch{JS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:RGe,HTTP2_HEADER_METHOD:DGe,HTTP2_HEADER_PATH:kGe,HTTP2_HEADER_SCHEME:vGe,HTTP2_HEADER_CONTENT_LENGTH:_Ge,HTTP2_HEADER_EXPECT:FGe,HTTP2_HEADER_STATUS:MGe}}=JS;function LGe(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 UGe(t,e){t[vn]=e,ane||(ane=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=JS.connect(t[WS],{createConnection:()=>e,peerMaxConcurrentStreams:t[une]});r[pu]=0,r[gm]=t,r[vn]=e,Et.addListener(r,"error",OGe),Et.addListener(r,"frameError",HGe),Et.addListener(r,"end",GGe),Et.addListener(r,"goaway",qGe),Et.addListener(r,"close",function(){let{[gm]:s}=this,{[vn]:i}=s,o=this[vn][Fa]||this[Fa]||new JI("closed",Et.getSocketInfo(i));if(s[_a]=null,s.destroyed){xo(s[SGe]===0);let a=s[Fl].splice(s[va]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[_a]=r,e[_a]=r,Et.addListener(e,"error",function(s){xo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Fa]=s,this[gm][GU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new JI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Fa]||new JI("closed",Et.getSocketInfo(this));t[vn]=null,this[_a]!=null&&this[_a].destroy(s),t[HU]=t[va],xo(t[jS]===0),t.emit("disconnect",t[WS],[t],s),t[Ml]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return VGe(t,...s)},resume(){PGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function PGe(t){let e=t[vn];e?.destroyed===!1&&(t[TGe]===0&&t[une]===0?(e.unref(),t[_a].unref()):(e.ref(),t[_a].ref()))}function OGe(t){xo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vn][Fa]=t,this[gm][GU](t)}function HGe(t,e,r){if(r===0){let n=new OU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vn][Fa]=n,this[gm][GU](n)}}function GGe(){let t=new JI("other side closed",Et.getSocketInfo(this[vn]));this.destroy(t),Et.destroy(this[vn],t)}function qGe(t){let e=this[Fa]||new JI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[gm];if(r[vn]=null,r[xGe]=null,this[_a]!=null&&(this[_a].destroy(e),this[_a]=null),Et.destroy(this[vn],e),r[va]<r[Fl].length){let n=r[Fl][r[va]];r[Fl][r[va]++]=null,Et.errorRequest(r,n,e),r[HU]=r[va]}xo(r[jS]===0),r.emit("disconnect",r[WS],[r],e),r[Ml]()}function YGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function VGe(t,e){let r=t[_a],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],V=A[B+1];if(Array.isArray(V))for(let k=0;k<V.length;k++)l[M]?l[M]+=`,${V[k]}`:l[M]=V[k];else l[M]=V}let d,{hostname:h,port:f}=t[WS];l[RGe]=i||`${h}${f?`:${f}`:""}`,l[DGe]=n;let g=B=>{e.aborted||e.completed||(B=B||new ine,Et.errorRequest(t,e,B),d!=null&&Et.destroy(d,B),Et.destroy(u,B),t[Fl][t[va]++]=null,t[Ml]())};try{e.onConnect(g)}catch(B){Et.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[pu],t[Fl][t[va]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[pu],t[Fl][t[va]++]=null}),d.once("close",()=>{r[pu]-=1,r[pu]===0&&r.unref()}),!0;l[kGe]=s,l[vGe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){one??=lm().extractBody;let[B,M]=one(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),YGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[NGe])return Et.errorRequest(t,e,new PU),!1;process.emitWarning(new PU)}m!=null&&(xo(u,"no body must not have content length"),l[_Ge]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[FGe]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[mqe]=c??3e5,this[pqe]=s??3e5,this[Eqe]=I??!0,this[Cqe]=B,this[WU]=V,this[Ul]=null,this[Qqe]=P>-1?P:-1,this[Sqe]=X??100,this[Xr]=null,this[Ma]=[],this[Eu]=0,this[La]=0,this[$I]=ue=>zU(this,ue),this[wqe]=ue=>Qne(this,ue)}get pipelining(){return this[ZS]}set pipelining(e){this[ZS]=e,this[$I](!0)}get[ey](){return this[Ma].length-this[La]}get[ZI](){return this[La]-this[Eu]}get[XI](){return this[Ma].length-this[Eu]}get[Aqe](){return!!this[Xr]&&!this[mm]&&!this[Xr].destroyed}get[VU](){return!!(this[Xr]?.busy(null)||this[XI]>=(bne(this)||1)||this[ey]>0)}[cqe](e){wne(this),this.once("connect",e)}[bqe](e,r){let n=e.origin||this[Dc].origin,s=new rqe(n,e,r);return this[Ma].push(s),this[Kh]||(jh.bodyLength(s.body)==null&&jh.isIterable(s.body)?(this[Kh]=1,queueMicrotask(()=>zU(this))):this[$I](!0)),this[Kh]&&this[Pl]!==2&&this[VU]&&(this[Pl]=2),this[Pl]<2}async[yqe](){return new Promise(e=>{this[XI]?this[Ul]=e:e(null)})}async[Bqe](e){return new Promise(r=>{let n=this[Ma].splice(this[La]);for(let i=0;i<n.length;i++){let o=n[i];jh.errorRequest(this,o,e)}let s=()=>{this[Ul]&&(this[Ul](),this[Ul]=null),r(null)};this[Xr]?(this[Xr].destroy(e,s),this[Xr]=null):queueMicrotask(s),this[$I]()})}},xqe=XS();function Qne(t,e){if(t[ZI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){mu(t[La]===t[Eu]);let r=t[Ma].splice(t[Eu]);for(let n=0;n<r.length;n++){let s=r[n];jh.errorRequest(t,s,e)}mu(t[XI]===0)}}async function wne(t){mu(!t[mm]),mu(!t[Xr]);let{host:e,hostname:r,protocol:n,port:s}=t[Dc];if(r[0]==="["){let i=r.indexOf("]");mu(i!==-1);let o=r.substring(1,i);mu(Bne.isIP(o)),r=o}t[mm]=!0,pm.beforeConnect.hasSubscribers&&pm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI]});try{let i=await new Promise((o,a)=>{t[jI]({host:e,hostname:r,protocol:n,port:s,servername:t[Ll],localAddress:t[KI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){jh.destroy(i.on("error",Ine),new iqe);return}mu(i);try{t[Xr]=i.alpnProtocol==="h2"?await Tqe(t,i):await Nqe(t,i)}catch(o){throw i.destroy().on("error",Ine),o}t[mm]=!1,i[Iqe]=0,i[WU]=t[WU],i[aqe]=t,i[lqe]=null,pm.connected.hasSubscribers&&pm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],socket:i}),t.emit("connect",t[Dc],[t])}catch(i){if(t.destroyed)return;if(t[mm]=!1,pm.connectError.hasSubscribers&&pm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Xr]?.version,servername:t[Ll],localAddress:t[KI]},connector:t[jI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(mu(t[ZI]===0);t[ey]>0&&t[Ma][t[La]].servername===t[Ll];){let o=t[Ma][t[La]++];jh.errorRequest(t,o,i)}else Qne(t,i);t.emit("connectionError",t[Dc],[t],i)}t[$I]()}function yne(t){t[Pl]=0,t.emit("drain",t[Dc],[t])}function zU(t,e){t[Kh]!==2&&(t[Kh]=2,Rqe(t,e),t[Kh]=0,t[Eu]>256&&(t[Ma].splice(0,t[Eu]),t[La]-=t[Eu],t[Eu]=0))}function Rqe(t,e){for(;;){if(t.destroyed){mu(t[ey]===0);return}if(t[Ul]&&!t[XI]){t[Ul](),t[Ul]=null;return}if(t[Xr]&&t[Xr].resume(),t[VU])t[Pl]=2;else if(t[Pl]===2){e?(t[Pl]=1,queueMicrotask(()=>yne(t))):yne(t);continue}if(t[ey]===0||t[ZI]>=(bne(t)||1))return;let r=t[Ma][t[La]];if(t[Dc].protocol==="https:"&&t[Ll]!==r.servername){if(t[ZI]>0)return;t[Ll]=r.servername,t[Xr]?.destroy(new sqe("servername changed"),()=>{t[Xr]=null,zU(t)})}if(t[mm])return;if(!t[Xr]){wne(t);return}if(t[Xr].destroyed||t[Xr].busy(r))return;!r.aborted&&t[Xr].write(r)?t[La]++:t[Ma].splice(t[La],1)}}Sne.exports=JU});var jU=C((MJt,Nne)=>{"use strict";var eN=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)}};Nne.exports=class{constructor(){this.head=this.tail=new eN}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new eN),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var xne=C((LJt,Tne)=>{var{kFree:Dqe,kConnected:kqe,kPending:vqe,kQueued:_qe,kRunning:Fqe,kSize:Mqe}=br(),$h=Symbol("pool"),KU=class{constructor(e){this[$h]=e}get connected(){return this[$h][kqe]}get free(){return this[$h][Dqe]}get pending(){return this[$h][vqe]}get queued(){return this[$h][_qe]}get running(){return this[$h][Fqe]}get size(){return this[$h][Mqe]}};Tne.exports=KU});var rP=C((UJt,Pne)=>{"use strict";var Lqe=rm(),Uqe=jU(),{kConnected:$U,kSize:Rne,kRunning:Dne,kPending:kne,kQueued:ty,kBusy:Pqe,kFree:Oqe,kUrl:Hqe,kClose:Gqe,kDestroy:qqe,kDispatch:Yqe}=br(),Vqe=xne(),ri=Symbol("clients"),xs=Symbol("needDrain"),ry=Symbol("queue"),XU=Symbol("closed resolve"),ZU=Symbol("onDrain"),vne=Symbol("onConnect"),_ne=Symbol("onDisconnect"),Fne=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};Wie.exports=eO});var EN=C((lzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((hzt,Xie)=>{"use strict";Xie.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 eoe=C((fzt,Zie)=>{"use strict";var C7e=$S();Zie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new C7e(r,o,s,i);return r(a,c)}}});var roe=C((gzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((pzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),tO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new tO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((mzt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,rO=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.#i}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 x7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.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){N7e(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())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(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===ioe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 nO(this,e,r)}},nO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=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.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(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}}};Hce.exports={EventSourceStream:WO}});var Kce=C((zzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=YO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(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=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=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}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((jzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=hP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=zP(),tKe=Jie(),rKe=$P(),nKe=FP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?v3:I.type==="?"?k3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){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?v3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(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}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),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],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.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(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.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 A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((r$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((n$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:F3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,M3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[M3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};Wie.exports=rO});var EN=C((dzt,$ie)=>{"use strict";var zie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:m7e}=_t(),E7e=Im();Kie()===void 0&&jie(new E7e);function jie(t){if(!t||typeof t.dispatch!="function")throw new m7e("Argument agent must implement Agent");Object.defineProperty(globalThis,zie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kie(){return globalThis[zie]}$ie.exports={setGlobalDispatcher:jie,getGlobalDispatcher:Kie}});var CN=C((fzt,Xie)=>{"use strict";Xie.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 eoe=C((gzt,Zie)=>{"use strict";var C7e=$S();Zie.exports=t=>{let e=t?.maxRedirections;return r=>function(s,i){let{maxRedirections:o=e,...a}=s;if(!o)return r(s,i);let c=new C7e(r,o,s,i);return r(a,c)}}});var roe=C((pzt,toe)=>{"use strict";var I7e=cN();toe.exports=t=>e=>function(n,s){return e(n,new I7e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var soe=C((mzt,noe)=>{"use strict";var y7e=dt(),{InvalidArgumentError:B7e,RequestAbortedError:b7e}=_t(),Q7e=CN(),nO=class extends Q7e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#c=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new B7e("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#c=r}onConnect(e){this.#t=e,this.#c.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#s=e}onHeaders(e,r,n,s){let o=y7e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new b7e(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#c.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#s??e,this.#c.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#c.onError(this.#s):this.#c.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#c.onError(this.reason);return}this.#c.onComplete(e)}}};function w7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new nO({maxSize:i},s);return e(n,o)}}noe.exports=w7e});var aoe=C((Ezt,ooe)=>{"use strict";var{isIP:S7e}=Q("node:net"),{lookup:N7e}=Q("node:dns"),T7e=CN(),{InvalidArgumentError:Dm,InformationalError:x7e}=_t(),ioe=Math.pow(2,31)-1,sO=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.#i}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 x7e("No DNS entries found"));return}this.setRecords(e,a);let c=this.#n.get(e.hostname),A=this.pick(e,c,i.affinity),u;typeof A.port=="number"?u=`:${A.port}`:e.port!==""?u=`:${e.port}`:u="",n(null,`${e.protocol}//${A.family===6?`[${A.address}]`:A.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){N7e(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())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===ioe?(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===ioe?a.offset=0:a.offset++;let c=a.offset%a.ips.length;return s=a.ips[c]??null,s==null?s:Date.now()-s.timestamp>s.ttl?(a.ips.splice(c,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 iO(this,e,r)}},iO=class extends T7e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=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.#i,this.#t,(r,n)=>{if(r) Line truncated
${i}`;break;case"retry":Pce(i)&&(r[s]=i);break;case"id":Oce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Pce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Oce(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}}};Hce.exports={EventSourceStream:zO}});var Kce=C((jzt,jce)=>{"use strict";var{pipeline:Lje}=Q("node:stream"),{fetching:Uje}=fy(),{makeRequest:Pje}=_m(),{webidl:bu}=Xn(),{EventSourceStream:Oje}=Gce(),{parseMIMEType:Hje}=ei(),{createFastMessageEvent:Gje}=Om(),{isNetworkError:qce}=dy(),{delay:qje}=WO(),{kEnumerableProperty:hf}=dt(),{environmentSettingsObject:Yce}=vi(),Vce=!1,Wce=3e3,Ty=0,Jce=1,xy=2,Yje="anonymous",Vje="use-credentials",Vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=Ty;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),bu.util.markAsUncloneable(this);let n="EventSource constructor";bu.argumentLengthCheck(arguments,1,n),Vce||(Vce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=bu.converters.USVString(e,n,"url"),r=bu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Wce};let s=Yce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Yje;r.withCredentials&&(o=Vje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Yce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Pje(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===xy)return;this.#r=Ty;let e={request:this.#i,dispatcher:this.#c},r=n=>{qce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(qce(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Hje(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=Jce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Oje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Gje(c.type,c.options))}});Lje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Uje(e)}async#A(){this.#r!==xy&&(this.#r=Ty,this.dispatchEvent(new Event("error")),await qje(this.#o.reconnectionTime),this.#r===Ty&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){bu.brandCheck(this,t),this.#r!==xy&&(this.#r=xy,this.#s.abort(),this.#i=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}},zce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:Ty,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Jce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:xy,writable:!1}};Object.defineProperties(Vm,zce);Object.defineProperties(Vm.prototype,zce);Object.defineProperties(Vm.prototype,{close:hf,onerror:hf,onmessage:hf,onopen:hf,readyState:hf,url:hf,withCredentials:hf});bu.converters.EventSourceInitDict=bu.dictionaryConverter([{key:"withCredentials",converter:bu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:bu.converters.any}]);jce.exports={EventSource:Vm,defaultReconnectionTime:Wce}});var aT=C((Kzt,ze)=>{"use strict";var Wje=Em(),$ce=vI(),Jje=Cm(),zje=zne(),jje=Im(),Kje=gP(),$je=Ese(),Xje=wse(),Xce=_t(),oT=dt(),{InvalidArgumentError:iT}=Xce,Wm=lie(),Zje=FI(),eKe=KP(),tKe=Jie(),rKe=ZP(),nKe=LP(),sKe=cN(),{getGlobalDispatcher:Zce,setGlobalDispatcher:iKe}=EN(),oKe=CN(),aKe=$S(),cKe=XS();Object.assign($ce.prototype,Wm);ze.exports.Dispatcher=$ce;ze.exports.Client=Wje;ze.exports.Pool=Jje;ze.exports.BalancedPool=zje;ze.exports.Agent=jje;ze.exports.ProxyAgent=Kje;ze.exports.EnvHttpProxyAgent=$je;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?F3:I.type==="?"?_3:"\\"+I.type;s=!0,n=n.slice(0,I.reStart)+V+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var P=a.length-1;P>-1;P--){var v=a[P],z=n.slice(0,v.reStart),X=n.slice(v.reStart,v.reEnd-8),te=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);te+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==RT&&(ke="$");var et=z+X+ce+ke+te;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===RT)return[n,s];if(!s)return PXe(t);var Ft=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Ft)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Vi.makeRe=function(t,e){return new ln(t,e||{}).makeRe()};ln.prototype.makeRe=UXe;function UXe(){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?F3:e.dot?RXe:DXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===If?r:typeof o=="string"?OXe(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}Vi.match=function(t,e,r){r=r||{};var n=new ln(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};ln.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;qy.sep!=="/"&&(e=e.split(qy.sep).join("/")),e=e.split(Pue),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],c=e;n.matchBase&&a.length===1&&(c=[i]);var A=this.matchOne(c,a,r);if(A)return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate};ln.prototype.matchOne=function(t,e,r){return e.indexOf(If)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};ln.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===If){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===If){a=i;break}var c=e.slice(s,o),A=r?e.slice(o+1):e.slice(o+1,a),u=r?[]:e.slice(a+1);if(c.length){var l=t.slice(n,n+c.length);if(!this._matchOne(l,c,r,0,0))return!1;n+=c.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(!A.length){var f=!!d;for(i=n;i<t.length-d;i++){var g=String(t[i]);if(f=!0,g==="."||g===".."||!this.options.dot&&g.charAt(0)===".")return!1}return r||f}for(var E=[[[],0]],m=E[0],I=0,y=[0],B=0;B<A.length;B++){var M=A[B];M===If?(y.push(I),m=[[],0],E.push(m)):(m[0].push(M),I++)}for(var V=E.length-1,k=t.length-d,P=0;P<E.length;P++)E[P][1]=k-(y[V--]+E[P][0].length);return!!this._matchGlobStarBodySections(t,E,n,0,r,0,!!d)};ln.prototype._matchGlobStarBodySections=function(t,e,r,n,s,i,o){var a=e[n];if(!a){for(var c=r;c<t.length;c++){o=!0;var A=t[c];if(A==="."||A===".."||!this.options.dot&&A.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 A=t[r];if(A==="."||A===".."||!this.options.dot&&A.charAt(0)===".")return!1;r++}return s||null};ln.prototype._matchOne=function(t,e,r,n,s){var i,o,a,c;for(i=n,o=s,a=t.length,c=e.length;i<a&&o<c;i++,o++){this.debug("matchOne loop");var A=e[o],u=t[i];if(this.debug(e,A,u),A===!1||A===If)return!1;var l;if(typeof A=="string"?(l=u===A,this.debug("string match",A,u,l)):(l=u.match(A),this.debug("pattern match",A,u,l)),!l)return!1}if(i===a&&o===c)return!0;if(i===a)return r;if(o===c)return i===a-1&&t[i]==="";throw new Error("wtf?")};function PXe(t){return t.replace(/\\(.)/g,"$1")}function OXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Zm=C((n$t,Wue)=>{"use strict";var zXe="2.0.0",jXe=Number.MAX_SAFE_INTEGER||9007199254740991,KXe=16,$Xe=250,XXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Wue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:KXe,MAX_SAFE_BUILD_LENGTH:$Xe,MAX_SAFE_INTEGER:jXe,RELEASE_TYPES:XXe,SEMVER_SPEC_VERSION:zXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Jy=C((s$t,Jue)=>{"use strict";var ZXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Jue.exports=ZXe});var e0=C((Pc,zue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:L3,MAX_SAFE_BUILD_LENGTH:eZe,MAX_LENGTH:tZe}=Zm(),rZe=Jy();Pc=zue.exports={};var nZe=Pc.re=[],sZe=Pc.safeRe=[],me=Pc.src=[],iZe=Pc.safeSrc=[],Ee=Pc.t={},oZe=0,U3="[a-zA-Z0-9-]",aZe=[["\\s",1],["\\d",tZe],[U3,eZe]],cZe=t=>{for(let[e,r]of aZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+px.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=$rt()+e+" "+t[0]}function $rt(){return Fn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Xrt(...t){return process.stderr.write(gx.formatWithOptions(Fn.inspectOpts,...t)+`
`)}function Zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ent(){return process.env.DEBUG}function tnt(t){t.inspectOpts={};let e=Object.keys(Fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fn.inspectOpts[e[r]]}px.exports=w8()(Fn);var{formatters:Bhe}=px.exports;Bhe.o=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bhe.O=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts)}});var mx=C((vZt,T8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?T8.exports=phe():T8.exports=bhe()});var She=C(ui=>{"use strict";var rnt=ui&&ui.__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]})),nnt=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qhe=ui&&ui.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rnt(e,t,r);return nnt(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var snt=Qhe(Q("http")),int=Qhe(Q("https"));async function whe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=whe;async function ont(t){let r=(await whe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ont;function ant(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?int:snt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=ant});var R8=C(zi=>{"use strict";var The=zi&&zi.__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]})),cnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=zi&&zi.__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)&&The(e,t,r);return cnt(e,t),e},Ant=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&The(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var unt=xhe(Q("net")),Nhe=xhe(Q("http")),lnt=Q("https");Ant(She(),zi);var Gc=Symbol("AgentBaseInternalState"),x8=class extends Nhe.Agent{constructor(e){super(e),this[Gc]={}}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 unt.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)?lnt.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 Nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=x8});var Rhe=C(A0=>{"use strict";var dnt=A0&&A0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A0,"__esModule",{value:!0});A0.parseProxyResponse=void 0;var hnt=dnt(mx()),Ex=(0,hnt.default)("https-proxy-agent:parse-proxy-response");function fnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`)}function Zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function ent(){return process.env.DEBUG}function tnt(t){t.inspectOpts={};let e=Object.keys(Fn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Fn.inspectOpts[e[r]]}px.exports=N8()(Fn);var{formatters:Bhe}=px.exports;Bhe.o=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Bhe.O=function(t){return this.inspectOpts.colors=this.useColors,gx.inspect(t,this.inspectOpts)}});var mx=C((_Zt,R8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?R8.exports=phe():R8.exports=bhe()});var She=C(ui=>{"use strict";var rnt=ui&&ui.__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]})),nnt=ui&&ui.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Qhe=ui&&ui.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rnt(e,t,r);return nnt(e,t),e};Object.defineProperty(ui,"__esModule",{value:!0});ui.req=ui.json=ui.toBuffer=void 0;var snt=Qhe(Q("http")),int=Qhe(Q("https"));async function whe(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ui.toBuffer=whe;async function ont(t){let r=(await whe(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ui.json=ont;function ant(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?int:snt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ui.req=ant});var k8=C(zi=>{"use strict";var The=zi&&zi.__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]})),cnt=zi&&zi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),xhe=zi&&zi.__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)&&The(e,t,r);return cnt(e,t),e},Ant=zi&&zi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&The(e,t,r)};Object.defineProperty(zi,"__esModule",{value:!0});zi.Agent=void 0;var unt=xhe(Q("net")),Nhe=xhe(Q("http")),lnt=Q("https");Ant(She(),zi);var Gc=Symbol("AgentBaseInternalState"),D8=class extends Nhe.Agent{constructor(e){super(e),this[Gc]={}}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 unt.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)?lnt.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 Nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Gc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Gc].currentSocket;if(this[Gc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Gc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Gc]&&(this[Gc].defaultPort=e)}get protocol(){return this[Gc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Gc]&&(this[Gc].protocol=e)}};zi.Agent=D8});var Rhe=C(A0=>{"use strict";var dnt=A0&&A0.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(A0,"__esModule",{value:!0});A0.parseProxyResponse=void 0;var hnt=dnt(mx()),Ex=(0,hnt.default)("https-proxy-agent:parse-proxy-response");function fnt(t){return new Promise((e,r)=>{let n=0,s=[];function i(){let u=t.read();u?A(u):t.once("readable",i)}function o(){t.removeListener("end",a),t.removeListener("error",c),t.removeListener("readable",i)}function a(){o(),Ex("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),Ex("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
\r
`);if(d===-1){Ex("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 g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}Ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}A0.parseProxyResponse=fnt});var Mhe=C(Uo=>{"use strict";var gnt=Uo&&Uo.__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]})),pnt=Uo&&Uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=Uo&&Uo.__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)&&gnt(e,t,r);return pnt(e,t),e},Fhe=Uo&&Uo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Uo,"__esModule",{value:!0});Uo.HttpsProxyAgent=void 0;var Cx=_he(Q("net")),Dhe=_he(Q("tls")),mnt=Fhe(Q("assert")),Ent=Fhe(mx()),Cnt=R8(),Int=Q("url"),ynt=Rhe(),cB=(0,Ent.default)("https-proxy-agent"),khe=t=>t.servername===void 0&&t.host&&!Cx.isIP(t.host)?{...t,servername:t.host}:t,Ix=class extends Cnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Int.URL(e):e,this.proxyHeaders=r?.headers??{},cB("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?vhe(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:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Dhe.connect(khe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Cx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Cx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=f.split(" "),E=+g[1],m=g.slice(2).join(" "),I={};for(let y of h){if(!y)continue;let B=y.indexOf(":");if(B===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,B).toLowerCase(),V=y.slice(B+1).trimStart(),k=I[M];typeof k=="string"?I[M]=[k,V]:Array.isArray(k)?k.push(V):I[M]=V}Ex("got proxy server response: %o %o",f,I),o(),e({connect:{statusCode:E,statusText:m,headers:I},buffered:l})}t.on("error",c),t.on("end",a),i()})}A0.parseProxyResponse=fnt});var Mhe=C(Po=>{"use strict";var gnt=Po&&Po.__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]})),pnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_he=Po&&Po.__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)&&gnt(e,t,r);return pnt(e,t),e},Fhe=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpsProxyAgent=void 0;var Cx=_he(Q("net")),Dhe=_he(Q("tls")),mnt=Fhe(Q("assert")),Ent=Fhe(mx()),Cnt=k8(),Int=Q("url"),ynt=Rhe(),cB=(0,Ent.default)("https-proxy-agent"),khe=t=>t.servername===void 0&&t.host&&!Cx.isIP(t.host)?{...t,servername:t.host}:t,Ix=class extends Cnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Int.URL(e):e,this.proxyHeaders=r?.headers??{},cB("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?vhe(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:"?(cB("Creating `tls.Socket`: %o",this.connectOpts),s=Dhe.connect(khe(this.connectOpts))):(cB("Creating `net.Socket`: %o",this.connectOpts),s=Cx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Cx.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 c=(0,ynt.parseProxyResponse)(s);s.write(`${a}\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Bnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Dhe.connect({...vhe(khe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Cx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,mnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ix.protocols=["http","https"];Uo.HttpsProxyAgent=Ix;function Bnt(t){t.resume()}function vhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Phe=C(Po=>{"use strict";var bnt=Po&&Po.__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]})),Qnt=Po&&Po.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uhe=Po&&Po.__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)&&bnt(e,t,r);return Qnt(e,t),e},wnt=Po&&Po.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Po,"__esModule",{value:!0});Po.HttpProxyAgent=void 0;var Snt=Uhe(Q("net")),Nnt=Uhe(Q("tls")),Tnt=wnt(mx()),xnt=Q("events"),Rnt=R8(),Lhe=Q("url"),u0=(0,Tnt.default)("http-proxy-agent"),yx=class extends Rnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lhe.URL(e):e,this.proxyHeaders=r?.headers??{},u0("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?Dnt(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 Lhe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;u0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(u0("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`);let{connect:A,buffered:u}=await c;if(e.emit("proxyConnect",A),this.emit("proxyConnect",A,e),A.statusCode===200)return e.once("socket",Bnt),r.secureEndpoint?(cB("Upgrading socket connection to TLS"),Dhe.connect({...vhe(khe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new Cx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{cB("Replaying proxy buffer for failed request"),(0,mnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Ix.protocols=["http","https"];Po.HttpsProxyAgent=Ix;function Bnt(t){t.resume()}function vhe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Phe=C(Oo=>{"use strict";var bnt=Oo&&Oo.__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]})),Qnt=Oo&&Oo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Uhe=Oo&&Oo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&bnt(e,t,r);return Qnt(e,t),e},wnt=Oo&&Oo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Oo,"__esModule",{value:!0});Oo.HttpProxyAgent=void 0;var Snt=Uhe(Q("net")),Nnt=Uhe(Q("tls")),Tnt=wnt(mx()),xnt=Q("events"),Rnt=k8(),Lhe=Q("url"),u0=(0,Tnt.default)("http-proxy-agent"),yx=class extends Rnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Lhe.URL(e):e,this.proxyHeaders=r?.headers??{},u0("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?Dnt(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 Lhe.URL(e.path,o);r.port!==80&&(a.port=String(r.port)),e.path=String(a);let c=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let A=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;c["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}c["Proxy-Connection"]||(c["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(c)){let u=c[A];u&&e.setHeader(A,u)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;u0("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(u0("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),u0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(u0("Creating `tls.Socket`: %o",this.connectOpts),i=Nnt.connect(this.connectOpts)):(u0("Creating `net.Socket`: %o",this.connectOpts),i=Snt.connect(this.connectOpts)),await(0,xnt.once)(i,"connect"),i}};yx.protocols=["http","https"];Po.HttpProxyAgent=yx;function Dnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Afe=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.state=void 0;vx.state={instrumenterImplementation:void 0}});var Sfe=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.state=void 0;Ux.state={operationRequestMap:new WeakMap}});var Ame=C((_pr,PAt)=>{PAt.exports={name:"@actions/cache",version:"6.2.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.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lme=C((Fpr,ume)=>{var OAt=Ame();ume.exports={version:OAt.version}});var pD=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isJsonObject=_0.typeofJsonValue=void 0;function jAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_0.typeofJsonValue=jAt;function KAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_0.isJsonObject=KAt});var ED=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.base64encode=F0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),mD=[];for(let t=0;t<Gu.length;t++)mD[Gu[t].charCodeAt(0)]=t;mD[45]=Gu.indexOf("+");mD[95]=Gu.indexOf("/");function $At(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=mD[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)}F0.base64decode=$At;function XAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}F0.base64encode=XAt});var pme=C(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.utf8read=void 0;var B9=t=>String.fromCharCode.apply(String,t);function ZAt(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(B9(n)),s=0);return r.length?(s&&r.push(B9(n.slice(0,s))),r.join("")):B9(n.slice(0,s))}CD.utf8read=ZAt});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var eut;(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])})(eut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function tut(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=tut;var rut;(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"})(rut=hA.WireType||(hA.WireType={}))});var yD=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function nut(){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")}mi.varint64read=nut;function sut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!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),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=sut;var ID=65536*65536;function iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=ID&&(s=s+(n/ID|0),n=n%ID)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=iut;function out(t,e){if(e>>>0<=2097151)return""+(ID*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,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=out;function aut(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)}}mi.varint32write=aut;function cut(){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}mi.varint32read=cut});var Id=C(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var ib=yD(),or;function mme(){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}Cd.detectBi=mme;mme();function Eme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cme=/^-?[0-9]+$/,bD=4294967296,BD=2147483648,QD=c Line truncated
`)}};zD.RpcError=j9});var $9=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.mergeRpcOptions=void 0;var jme=At();function Rlt(t,e){if(!e)return t;let r={};jD(t,r),jD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jD(t.meta,r.meta),jD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}KD.mergeRpcOptions=Rlt;function jD(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 Z9=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var X9=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=X9});var tG=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.RpcOutputStreamController=void 0;var Kme=Z9(),Zf=At(),eG=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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 Kme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==Kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};$D.RpcOutputStreamController=eG});var nG=C(G0=>{"use strict";var Dlt=G0&&G0.__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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(G0,"__esModule",{value:!0});G0.UnaryCall=void 0;var rG=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 Dlt(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}})}};G0.UnaryCall=rG});var iG=C(q0=>{"use strict";var klt=q0&&q0.__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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.ServerStreamingCall=void 0;var sG=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),u0("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(u0("Creating `tls.Socket`: %o",this.connectOpts),i=Nnt.connect(this.connectOpts)):(u0("Creating `net.Socket`: %o",this.connectOpts),i=Snt.connect(this.connectOpts)),await(0,xnt.once)(i,"connect"),i}};yx.protocols=["http","https"];Oo.HttpProxyAgent=yx;function Dnt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Afe=C(vx=>{"use strict";Object.defineProperty(vx,"__esModule",{value:!0});vx.state=void 0;vx.state={instrumenterImplementation:void 0}});var Sfe=C(Ux=>{"use strict";Object.defineProperty(Ux,"__esModule",{value:!0});Ux.state=void 0;Ux.state={operationRequestMap:new WeakMap}});var Ame=C((Fpr,PAt)=>{PAt.exports={name:"@actions/cache",version:"6.2.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.1","@actions/exec":"^3.0.0","@actions/glob":"^0.6.1","@actions/http-client":"^4.0.1","@actions/io":"^3.0.2","@azure/core-rest-pipeline":"^1.23.0","@azure/storage-blob":"^12.31.0","@protobuf-ts/runtime-rpc":"^2.11.1",semver:"^7.7.4"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.6.0","@types/semver":"^7.7.1",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var lme=C((Mpr,ume)=>{var OAt=Ame();ume.exports={version:OAt.version}});var pD=C(_0=>{"use strict";Object.defineProperty(_0,"__esModule",{value:!0});_0.isJsonObject=_0.typeofJsonValue=void 0;function jAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}_0.typeofJsonValue=jAt;function KAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}_0.isJsonObject=KAt});var ED=C(F0=>{"use strict";Object.defineProperty(F0,"__esModule",{value:!0});F0.base64encode=F0.base64decode=void 0;var Gu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),mD=[];for(let t=0;t<Gu.length;t++)mD[Gu[t].charCodeAt(0)]=t;mD[45]=Gu.indexOf("+");mD[95]=Gu.indexOf("/");function $At(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=mD[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)}F0.base64decode=$At;function XAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Gu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Gu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Gu[s|n>>6],e+=Gu[n&63],r=0;break}return r&&(e+=Gu[s],e+="=",r==1&&(e+="=")),e}F0.base64encode=XAt});var pme=C(CD=>{"use strict";Object.defineProperty(CD,"__esModule",{value:!0});CD.utf8read=void 0;var Q9=t=>String.fromCharCode.apply(String,t);function ZAt(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(Q9(n)),s=0);return r.length?(s&&r.push(Q9(n.slice(0,s))),r.join("")):Q9(n.slice(0,s))}CD.utf8read=ZAt});var sb=C(hA=>{"use strict";Object.defineProperty(hA,"__esModule",{value:!0});hA.WireType=hA.mergeBinaryOptions=hA.UnknownFieldHandler=void 0;var eut;(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])})(eut=hA.UnknownFieldHandler||(hA.UnknownFieldHandler={}));function tut(t,e){return Object.assign(Object.assign({},t),e)}hA.mergeBinaryOptions=tut;var rut;(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"})(rut=hA.WireType||(hA.WireType={}))});var yD=C(mi=>{"use strict";Object.defineProperty(mi,"__esModule",{value:!0});mi.varint32read=mi.varint32write=mi.int64toString=mi.int64fromString=mi.varint64write=mi.varint64read=void 0;function nut(){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")}mi.varint64read=nut;function sut(t,e,r){for(let i=0;i<28;i=i+7){let o=t>>>i,a=!(!(o>>>7)&&e==0),c=(a?o|128:o)&255;if(r.push(c),!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),c=(a?o|128:o)&255;if(r.push(c),!a)return}r.push(e>>>31&1)}}mi.varint64write=sut;var ID=65536*65536;function iut(t){let e=t[0]=="-";e&&(t=t.slice(1));let r=1e6,n=0,s=0;function i(o,a){let c=Number(t.slice(o,a));s*=r,n=n*r+c,n>=ID&&(s=s+(n/ID|0),n=n%ID)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}mi.int64fromString=iut;function out(t,e){if(e>>>0<=2097151)return""+(ID*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,c=1e7;i>=c&&(o+=Math.floor(i/c),i%=c),o>=c&&(a+=Math.floor(o/c),o%=c);function A(u,l){let d=u?String(u):"";return l?"0000000".slice(d.length)+d:d}return A(a,0)+A(o,a)+A(i,1)}mi.int64toString=out;function aut(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)}}mi.varint32write=aut;function cut(){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}mi.varint32read=cut});var Id=C(Cd=>{"use strict";Object.defineProperty(Cd,"__esModule",{value:!0});Cd.PbLong=Cd.PbULong=Cd.detectBi=void 0;var ib=yD(),or;function mme(){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}Cd.detectBi=mme;mme();function Eme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Cme=/^-?[0-9]+$/,bD=4294967296,BD=2147483648,QD=c Line truncated
`)}};zD.RpcError=$9});var Z9=C(KD=>{"use strict";Object.defineProperty(KD,"__esModule",{value:!0});KD.mergeRpcOptions=void 0;var jme=At();function Rlt(t,e){if(!e)return t;let r={};jD(t,r),jD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=jme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=jme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},jD(t.meta,r.meta),jD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}KD.mergeRpcOptions=Rlt;function jD(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 tG=C(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});Xf.Deferred=Xf.DeferredState=void 0;var pA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(pA=Xf.DeferredState||(Xf.DeferredState={}));var eG=class{constructor(e=!0){this._state=pA.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!==pA.PENDING)throw new Error(`cannot resolve ${pA[this.state].toLowerCase()}`);this._resolve(e),this._state=pA.RESOLVED}reject(e){if(this.state!==pA.PENDING)throw new Error(`cannot reject ${pA[this.state].toLowerCase()}`);this._reject(e),this._state=pA.REJECTED}resolvePending(e){this._state===pA.PENDING&&this.resolve(e)}rejectPending(e){this._state===pA.PENDING&&this.reject(e)}};Xf.Deferred=eG});var nG=C($D=>{"use strict";Object.defineProperty($D,"__esModule",{value:!0});$D.RpcOutputStreamController=void 0;var Kme=tG(),Zf=At(),rG=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){Zf.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){Zf.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){Zf.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(){Zf.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;Zf.assert(e,"bad state"),Zf.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 Kme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Zf.assert(n.state==Kme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};$D.RpcOutputStreamController=rG});var iG=C(G0=>{"use strict";var Dlt=G0&&G0.__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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(G0,"__esModule",{value:!0});G0.UnaryCall=void 0;var sG=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 Dlt(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}})}};G0.UnaryCall=sG});var aG=C(q0=>{"use strict";var klt=q0&&q0.__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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};Object.defineProperty(q0,"__esModule",{value:!0});q0.ServerStreamingCall=void 0;var oG=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 oye=C(iye=>{"use strict";var tV=el().Buffer;iye._dbcs=tl;var rs=-1,sye=-2,aa=-10,Hs=-1e3,yE=new Array(256),oQ=-1;for(Fk=0;Fk<256;Fk++)yE[Fk]=rs;var Fk;function tl(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]=yE.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(yE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(yE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=sye)}}}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 Dyt(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(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(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&&I7(t.origin)&&!I7(Tg(t))&&(e=null);break;case"same-origin":pQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function SE(t,e){return t}function Uyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:SE(t.domainLookupStartTime,r),domainLookupEndTime:SE(t.domainLookupEndTime,r),connectionStartTime:SE(t.connectionStartTime,r),connectionEndTime:SE(t.connectionEndTime,r),secureConnectionStartTime:SE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Pyt(t){return SE(Iyt.now(),t)}function Oyt(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 Fbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;mQ(e);let r=null;if(t.referrer==="client"){let i=Rbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=C7(r),s=C7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??C7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return pQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return pQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return pQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function C7(t,e=!1){return mQ(Yd.is.URL(t)),t=new URL(t),Pbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=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)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Mbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Mbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function pQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lbe(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),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Kyt),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 $yt(t,e,r,n=0,s=1){let i=Lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ua(a=>x7(a)&&a!==59,t,e);i=N7.decode(o)}return{name:n,value:i,extended:s}}function yBt(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 wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ua(a=>a!==10&&a!==13&&a!==58,t,e);if(o=T7(o,!0,!0,a=>a===9||a===32),!hBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,ua(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{r=n=null;let a=!1;if(ua(A=>x7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=IBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),s=Vbe(a);break}case"content-transfer-encoding":{let a=ua(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),i=Vbe(a);break}default:ua(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function ua(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function T7(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 BBt(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 wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(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 x7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Wbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var EQ=C((qbr,zbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zbe.exports={createDeferredPromise:wBt}});var xE=C((Ybr,Zbe)=>{"use strict";var k7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ao(),{FormData:jbe,setFormDataState:RBt}=ov(),{webidl:uc}=ns(),R7=Q("node:assert"),{isErrored:D7,isDisturbed:DBt}=Q("node:stream"),{isUint8Array:kBt}=Q("node:util/types"),{serializeAMimeType:vBt}=Aa(),{multipartFormDataParser:_Bt}=Jbe(),{createDeferredPromise:FBt}=EQ(),{parseJSONFromBytes:MBt}=sl(),{utf8DecodeBytes:LBt}=ev(),{runtimeFeatures:UBt}=il(),PBt=UBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),av=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function $be(t,e=!1){let r=null,n=null;uc.is.ReadableStream(t)?r=t:uc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),R7(uc.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(uc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(uc.is.BufferSource(t))i=uc.util.getCopyOfBytesHeldByBufferSource(t);else if(uc.is.FormData(t)){let A=`----formdata-undici-0${`${PBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\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 oye=C(iye=>{"use strict";var tV=el().Buffer;iye._dbcs=tl;var rs=-1,sye=-2,ca=-10,Hs=-1e3,yE=new Array(256),oQ=-1;for(Lk=0;Lk<256;Lk++)yE[Lk]=rs;var Lk;function tl(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]=yE.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(yE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(yE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hs-o[n]],c=48;c<=57;c++){if(a[c]===rs)a[c]=Hs-s;else if(a[c]>Hs)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hs-a[c]],u=129;u<=254;u++){if(A[u]===rs)A[u]=Hs-i;else{if(A[u]===Hs-i)continue;if(A[u]>Hs)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hs-A[u]],d=48;d<=57;d++)l[d]===rs&&(l[d]=sye)}}}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 kyt(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(myt.has(s)){r=s;break}}return r}function vyt(t,e){let r=kyt(e);r!==""&&(t.referrerPolicy=r)}function _yt(){return"allowed"}function Fyt(){return"success"}function Myt(){return"success"}function Lyt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Uyt(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&&I7(t.origin)&&!I7(Tg(t))&&(e=null);break;case"same-origin":pQ(t,Tg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function SE(t,e){return t}function Pyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:SE(t.domainLookupStartTime,r),domainLookupEndTime:SE(t.domainLookupEndTime,r),connectionStartTime:SE(t.connectionStartTime,r),connectionEndTime:SE(t.connectionEndTime,r),secureConnectionStartTime:SE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Oyt(t){return SE(yyt.now(),t)}function Hyt(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 Fbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Gyt(t){return{referrerPolicy:t.referrerPolicy}}function qyt(t){let e=t.referrerPolicy;mQ(e);let r=null;if(t.referrer==="client"){let i=Rbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Yd.is.URL(t.referrer)&&(r=t.referrer);let n=C7(r),s=C7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??C7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Tg(t);return pQ(n,i)?n:Ng(n)&&!Ng(i)?"no-referrer":s}case"same-origin":return pQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return pQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Tg(t);return Ng(n)&&!Ng(i)?"no-referrer":n}}}function C7(t,e=!1){return mQ(Yd.is.URL(t)),t=new URL(t),Pbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var Yyt=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)$/),Vyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Mbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Vyt(t)):Yyt(t)}function Wyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Mbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Ng(t){return Yd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Wyt(t.origin):!1}function Jyt(t){}function pQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function zyt(t){return t.controller.state==="aborted"}function jyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function Kyt(t){return byt[t.toLowerCase()]??t}var $yt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Lbe(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),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,$yt),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 Xyt(t,e,r,n=0,s=1){let i=Lbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Yd.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=la(a=>x7(a)&&a!==59,t,e);i=N7.decode(o)}return{name:n,value:i,extended:s}}function BBt(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 wi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=la(a=>a!==10&&a!==13&&a!==58,t,e);if(o=T7(o,!0,!0,a=>a===9||a===32),!fBt.test(o.toString()))throw wi("header name does not match the field-name token production");if(t[e.position]!==58)throw wi("expected :");switch(e.position++,la(a=>a===32||a===9,t,e),hBt(o)){case"content-disposition":{r=n=null;let a=!1;if(la(A=>x7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw wi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=yBt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw wi("name attribute is required in content-disposition header");break}case"content-type":{let a=la(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),s=Vbe(a);break}case"content-transfer-encoding":{let a=la(c=>c!==10&&c!==13,t,e);a=T7(a,!1,!0,c=>c===9||c===32),i=Vbe(a);break}default:la(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw wi("expected CRLF");e.position+=2}}function la(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function T7(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 bBt(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 wi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function QBt(t){return t<=31||t===127}function wBt(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 x7(t){return t<=127&&t!==32&&t!==9&&!QBt(t)&&!wBt(t)}Wbe.exports={multipartFormDataParser:IBt,validateBoundary:CBt}});var EQ=C((Ybr,zbe)=>{"use strict";function SBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}zbe.exports={createDeferredPromise:SBt}});var xE=C((Vbr,Zbe)=>{"use strict";var k7=Ze(),{ReadableStreamFrom:NBt,readableStreamClose:TBt,fullyReadBody:xBt,extractMimeType:RBt}=ao(),{FormData:jbe,setFormDataState:DBt}=cv(),{webidl:uc}=ns(),R7=Q("node:assert"),{isErrored:D7,isDisturbed:kBt}=Q("node:stream"),{isUint8Array:vBt}=Q("node:util/types"),{serializeAMimeType:_Bt}=ua(),{multipartFormDataParser:FBt}=Jbe(),{createDeferredPromise:MBt}=EQ(),{parseJSONFromBytes:LBt}=sl(),{utf8DecodeBytes:UBt}=rv(),{runtimeFeatures:PBt}=il(),OBt=PBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Av=new TextEncoder;function HBt(){}var GBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!kBt(e)&&!D7(e)&&e.cancel("Response object has been garbage collected").catch(HBt)});function $be(t,e=!1){let r=null,n=null;uc.is.ReadableStream(t)?r=t:uc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),R7(uc.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(uc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(uc.is.BufferSource(t))i=uc.util.getCopyOfBytesHeldByBufferSource(t);else if(uc.is.FormData(t)){let A=`----formdata-undici-0${`${OBt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
Content-Disposition: form-data`;let l=m=>m.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=m=>m.replace(/\r?\n|\r/g,`\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=av.encode(u+`; name="${l(d(m))}"\r
`),h=[],f=new Uint8Array([13,10]);o=0;let g=!1;for(let[m,I]of t)if(typeof I=="string"){let y=Av.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=av.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=Av.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
Content-Type: ${I.type||"application/octet-stream"}\r
\r
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=av.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(uc.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(k7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=uc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(D7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!D7(r)&&n.enqueue(typeof A=="string"?av.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return uc.is.ReadableStream(t)&&(R7(!k7.isDisturbed(t),"The body has already been consumed."),R7(!t.locked,"The stream is locked.")),$be(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return TE(this,n=>{let s=Kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return TE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return TE(this,LBt,t,e)},json(){return TE(this,MBt,t,e)},formData(){return TE(this,n=>{let s=Kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new jbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return TE(this,n=>new Uint8Array(n),t,e)}}}function VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function TE(t,e,r,n){try{uc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Xbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function Xbe(t){let e=t.body;return e!=null&&(e.stream.locked||k7.isDisturbed(e.stream))}function Kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Zbe.exports={extractBody:$be,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:Xbe}});var fQe=C((Vbr,hQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:eQe}=Gd(),v7=hV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:tQe,RequestAbortedError:AQe,InvalidArgumentError:WBt,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:Rg,InformationalError:RE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Xe(),{kUrl:uQe,kReset:Si,kClient:dv,kParser:pr,kBlocking:yQ,kRunning:fn,kPending:O7,kSize:rQe,kWriting:Vd,kQueue:lc,kNoRef:CQ,kKeepAliveDefaultTimeout:XBt,kHostHeader:ZBt,kPendingIdx:ebt,kRunningIdx:la,kError:Gs,kPipelining:uv,kSocket:kg,kKeepAliveTimeoutValue:hv,kMaxHeadersSize:tbt,kKeepAliveMaxTimeout:rbt,kKeepAliveTimeoutThreshold:nbt,kHeadersTimeout:sbt,kBodyTimeout:ibt,kStrictContentLength:M7,kMaxRequests:nQe,kCounter:obt,kMaxResponseSize:abt,kOnError:sQe,kResume:al,kHTTPContext:lQe,kClosed:L7}=Kt(),co=ZBe(),iQe=Buffer.alloc(0),cv=Buffer[Symbol.species],cbt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),H7=Symbol("kSocketUsed"),_7;function Abt(){let t=process.env.JEST_WORKER_ID?o7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(rbe())}catch{}return e||(e=new WebAssembly.Module(t||o7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new cv(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new cv(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new cv(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new cv(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var F7=null,zr=null,NA=null,Av=0,TA=null,ubt=0,IQ=1,DE=2|IQ,lv=4|IQ,U7=8|ubt,P7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[tbt],this.shouldKeepAliv Line truncated
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=Av.encode(`--${A}--\r
`);h.push(E),o+=E.byteLength,g&&(o=null),i=t,s=async function*(){for(let m of h)m.stream?yield*m.stream():yield m},a=`multipart/form-data; boundary=${A}`}else if(uc.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(k7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=uc.is.ReadableStream(t)?t:NBt(t)}return(typeof i=="string"||vBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(D7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!D7(r)&&n.enqueue(typeof A=="string"?Av.encode(A):new Uint8Array(A));queueMicrotask(()=>TBt(n))})(),[{stream:r,source:i,length:o},a]}function qBt(t,e=!1){return uc.is.ReadableStream(t)&&(R7(!k7.isDisturbed(t),"The body has already been consumed."),R7(!t.locked,"The stream is locked.")),$be(t,e)}function YBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function VBt(t,e){return{blob(){return TE(this,n=>{let s=Kbe(e(this));return s===null?s="":s&&(s=_Bt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return TE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return TE(this,UBt,t,e)},json(){return TE(this,LBt,t,e)},formData(){return TE(this,n=>{let s=Kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=FBt(n,s),o=new jbe;return DBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new jbe;for(let[a,c]of i)o.append(a,c);return o}}throw new TypeError('Content-Type was not one of "multipart/form-data" or "application/x-www-form-urlencoded".')},t,e)},bytes(){return TE(this,n=>new Uint8Array(n),t,e)}}}function WBt(t,e){Object.assign(t.prototype,VBt(t,e))}function TE(t,e,r,n){try{uc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Xbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=MBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(xBt(t.body,o,i),s.promise)}function Xbe(t){let e=t.body;return e!=null&&(e.stream.locked||k7.isDisturbed(e.stream))}function Kbe(t){let e=t.headersList,r=RBt(e);return r==="failure"?null:r}Zbe.exports={extractBody:$be,safelyExtractBody:qBt,cloneBody:YBt,mixinBody:WBt,streamRegistry:GBt,bodyUnusable:Xbe}});var fQe=C((Wbr,hQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:eQe}=Gd(),v7=hV(),{RequestContentLengthMismatchError:xg,ResponseContentLengthMismatchError:tQe,RequestAbortedError:AQe,InvalidArgumentError:JBt,HeadersTimeoutError:zBt,HeadersOverflowError:jBt,SocketError:Rg,InformationalError:RE,BodyTimeoutError:KBt,HTTPParserError:$Bt,ResponseExceededMaxSizeError:XBt}=Xe(),{kUrl:uQe,kReset:Si,kClient:fv,kParser:pr,kBlocking:yQ,kRunning:fn,kPending:O7,kSize:rQe,kWriting:Vd,kQueue:lc,kNoRef:CQ,kKeepAliveDefaultTimeout:ZBt,kHostHeader:ebt,kPendingIdx:tbt,kRunningIdx:da,kError:Gs,kPipelining:dv,kSocket:kg,kKeepAliveTimeoutValue:gv,kMaxHeadersSize:rbt,kKeepAliveMaxTimeout:nbt,kKeepAliveTimeoutThreshold:sbt,kHeadersTimeout:ibt,kBodyTimeout:obt,kStrictContentLength:M7,kMaxRequests:nQe,kCounter:abt,kMaxResponseSize:cbt,kOnError:sQe,kResume:al,kHTTPContext:lQe,kClosed:L7}=Kt(),co=ZBe(),iQe=Buffer.alloc(0),uv=Buffer[Symbol.species],Abt=De.removeAllListeners,vg=Symbol("kIdleSocketValidation"),Dg=Symbol("kIdleSocketValidationTimeout"),H7=Symbol("kSocketUsed"),_7;function ubt(){let t=process.env.JEST_WORKER_ID?o7():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(rbe())}catch{}return e||(e=new WebAssembly.Module(t||o7())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onStatus(new uv(NA.buffer,o,i))},wasm_on_message_begin:n=>(He(zr.ptr===n),zr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderField(new uv(NA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onHeaderValue(new uv(NA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(zr.ptr===n),zr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(zr.ptr===n);let o=s-TA+NA.byteOffset;return zr.onBody(new uv(NA.buffer,o,i))},wasm_on_message_complete:n=>(He(zr.ptr===n),zr.onMessageComplete())}})}var F7=null,zr=null,NA=null,lv=0,TA=null,lbt=0,IQ=1,DE=2|IQ,hv=4|IQ,U7=8|lbt,P7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(co.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[rbt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[ZBt],i?g+=`connection: upgrade\r
`:g+=t[ebt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[uv]&&!h[Si]?g+=`connection: keep-alive\r
`:t[dv]&&!h[Si]?g+=`connection: keep-alive\r
`:g+=`connection: close\r
`,Array.isArray(A))for(let E=0;E<A.length;E+=2){let m=A[E+0],I=A[E+1];if(Array.isArray(I))for(let y=0;y<I.length;y++)g+=`${m}: ${I[y]}\r
`;else g+=`${m}: ${I}\r
`}return eQe.sendHeaders.hasSubscribers&&eQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?aQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?aQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?cQe(f,c.stream(),t,e,h,u,g,l):Bbt(f,c,t,e,h,u,g,l):De.isStream(c)?ybt(f,c,t,e,h,u,g,l):De.isIterable(c)?cQe(f,c,t,e,h,u,g,l):He(!1),!0}function ybt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new AQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Vd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.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 aQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return eQe.sendHeaders.hasSubscribers&&eQe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?aQe(f,null,t,e,h,u,g,l):De.isBuffer(c)?aQe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?cQe(f,c.stream(),t,e,h,u,g,l):bbt(f,c,t,e,h,u,g,l):De.isStream(c)?Bbt(f,c,t,e,h,u,g,l):De.isIterable(c)?cQe(f,c,t,e,h,u,g,l):He(!1),!0}function Bbt(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"stream body cannot be pipelined");let c=!1,A=new pv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o}),u=function(f){if(!c)try{!A.write(f)&&this.pause&&this.pause()}catch(g){De.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new AQe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Vd]&&r[fn]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(g){f=g}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?De.destroy(e,f):De.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 aQe(t,e,r,n,s,i,o,a){try{e?De.isBuffer(e)&&(He(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[Si]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(He(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[al]()}catch(c){t(c)}}async function Bbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[al]()}catch(c){t(c)}}async function bbt(t,e,r,n,s,i,o,a){He(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new xg;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[al]()}catch(c){t(c)}}async function cQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new fv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var fv=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[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[M7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"),s.write(c),s.uncork(),n.onBodySent(c),n.onRequestSent(),!a&&n.reset!==!1&&(s[Si]=!0),r[al]()}catch(c){t(c)}}async function cQe(t,e,r,n,s,i,o,a){He(i!==0||r[fn]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let d=c;c=null,d()}}let u=()=>new Promise((d,h)=>{He(c===null),s[Gs]?h(s[Gs]):c=d});s.on("close",A).on("drain",A);let l=new pv({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Gs])throw s[Gs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var pv=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[Vd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Gs])throw r[Gs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[M7])throw new xg;process.emitWarning(new xg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Si]=!0),s===null?r.write(`${c}transfer-encoding: chunked\r
`,"latin1"):r.write(`${c}content-length: ${s}\r
\r
`,"latin1")),s===null&&r.write(`\r
@@ -102,13 +102,13 @@ ${A.toString(16)}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[M7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===DE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};hQe.exports=lbt});var bQe=C((Wbr,BQe)=>{"use strict";var ha=Q("node:assert"),{pipeline:bbt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:V7,RequestAbortedError:Qbt,SocketError:wQ,InformationalError:Wd,InvalidArgumentError:wbt}=Xe(),{kUrl:QQ,kReset:Ev,kClient:Ao,kRunning:SQ,kPending:Sbt,kQueue:Jd,kPendingIdx:J7,kRunningIdx:dc,kError:uo,kSocket:vr,kStrictContentLength:Nbt,kOnError:kE,kMaxConcurrentStreams:pv,kPingInterval:gQe,kHTTP2Session:cl,kHTTP2InitialWindowSize:Tbt,kHTTP2ConnectionWindowSize:xbt,kResume:xA,kSize:Rbt,kHTTPContext:z7,kClosed:W7,kBodyTimeout:Dbt,kEnableConnectProtocol:BQ,kRemoteSettings:bQ,kHTTP2Stream:gv,kHTTP2SessionState:j7}=Kt(),{channels:pQe}=Gd(),da=Symbol("open streams"),mQe,mv;try{mv=Q("node:http2")}catch{mv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:kbt,HTTP2_HEADER_METHOD:EQe,HTTP2_HEADER_PATH:CQe,HTTP2_HEADER_SCHEME:G7,HTTP2_HEADER_CONTENT_LENGTH:vbt,HTTP2_HEADER_EXPECT:_bt,HTTP2_HEADER_STATUS:q7,HTTP2_HEADER_PROTOCOL:Fbt,NGHTTP2_REFUSED_STREAM:Mbt,NGHTTP2_CANCEL:Lbt}}=mv;function Y7(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 Ubt(t,e){t[vr]=e;let r=t[Tbt],n=t[xbt],s=mv.connect(t[QQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[pv],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[da]=0,s[Ao]=t,s[vr]=e,s[j7]={ping:{interval:t[gQe]===0?null:setInterval(Gbt,t[gQe],s).unref()}},s[BQ]=!1,s[bQ]=!1,n&&ut.addListener(s,"connect",Obt.bind(s,n)),ut.addListener(s,"error",qbt),ut.addListener(s,"frameError",Ybt),ut.addListener(s,"end",Vbt),ut.addListener(s,"goaway",Wbt),ut.addListener(s,"close",Jbt),ut.addListener(s,"remoteSettings",Hbt),s.unref(),t[cl]=s,e[cl]=s,ut.addListener(e,"error",jbt),ut.addListener(e,"end",Kbt),ut.addListener(e,"close",zbt),e[W7]=!1,e.on("close",$bt),{version:"h2",defaultPipelining:1/0,write(i){return Zbt(t,i)},resume(){Pbt(t)},destroy(i,o){e[W7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[SQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!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[bQ]===!1;return!1}}}function Pbt(t){let e=t[vr];e?.destroyed===!1&&(t[Rbt]===0||t[pv]===0?(e.unref(),t[cl].unref()):(e.ref(),t[cl].ref()))}function Obt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Hbt(t){if(this[Ao][pv]=t.maxConcurrentStreams??this[Ao][pv],this[bQ]===!0&&this[BQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][kE](e);return}this[BQ]=t.enableConnectProtocol??this[BQ],this[bQ]=!0,this[Ao][xA]()}function Gbt(t){let e=t[j7];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[Ao],o=this[Ao];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[kE](a)}else i.emit("ping",s)}}function qbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][kE](t)}function Ybt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][kE](n)}}function Vbt(){let t=new wQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function Wbt(t){let e=this[uo]||new wQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[z7]=null,this.close(),this[cl]=null,ut.destroy(this[vr],e),r[dc]<r[Jd].length){let n=r[Jd][r[dc]];r[Jd][r[dc]++]=null,ut.errorRequest(r,n,e),r[J7]=r[dc]}ha(r[SQ]===0),r.emit("disconnect",r[QQ],[r],e),r.emit("connectionError",r[QQ],[r],e),r[xA]()}function Jbt(){let{[Ao]:t,[j7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new wQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[z7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ha(t[Sbt]===0);let s=t[Jd].splice(t[dc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function zbt(){let t=this[uo]||new wQ("closed",ut.getSocketInfo(this)),e=this[cl][Ao];e[vr]=null,e[z7]=null,this[cl]!==null&&this[cl].destroy(t),e[J7]=e[dc],ha(e[SQ]===0),e.emit("disconnect",e[QQ],[e],t),e[xA]()}function jbt(t){ha(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][kE](t)}function Kbt(){ut.destroy(this,new wQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;pQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[_bt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[gv]=!0,V()),++n[da],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[q7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),Y7(v),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[Jd][t[dc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[dc]++]=null,t[J7]=t[dc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[da]-=1,n[da]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?IQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?IQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?yQe(m,f,d.stream(),t,e,t[vr],y,I):tQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?eQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?yQe(m,f,d,t,e,t[vr],y,I):ha(!1)}}function IQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ha(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Ev]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function eQt(t,e,r,n,s,i,o,a){ha(a!==0||i[SQ]===0,"stream body cannot be pipelined");let c=bbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Ev]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function tQt(t,e,r,n,s,i,o,a){ha(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new V7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(c){t(c)}}async function yQe(t,e,r,n,s,i,o,a){ha(o!==0||n[SQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{ha(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Ev]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}BQe.exports=Ubt});var $d=C((Jbr,DQe)=>{"use strict";var Al=Q("node:assert"),NQe=Q("node:net"),NQ=Q("node:http"),_g=Ze(),{ClientStats:rQt}=GV(),{channels:vE}=Gd(),nQt=HBe(),sQt=Qg(),{InvalidArgumentError:mr,InformationalError:iQt,ClientDestroyedError:oQt}=Xe(),aQt=wg(),{kUrl:RA,kServerName:Kd,kClient:cQt,kBusy:$7,kConnect:AQt,kResuming:Fg,kRunning:DQ,kPending:kQ,kSize:TQ,kQueue:hc,kConnected:uQt,kConnecting:_E,kNeedDrain:jd,kKeepAliveDefaultTimeout:QQe,kHostHeader:lQt,kPendingIdx:fc,kRunningIdx:ll,kError:dQt,kPipelining:Cv,kKeepAliveTimeoutValue:hQt,kMaxHeadersSize:fQt,kKeepAliveMaxTimeout:gQt,kKeepAliveTimeoutThreshold:pQt,kHeadersTimeout:mQt,kBodyTimeout:EQt,kStrictContentLength:CQt,kConnector:xQ,kMaxRequests:X7,kCounter:IQt,kClose:yQt,kDestroy:BQt,kDispatch:bQt,kLocalAddress:RQ,kMaxResponseSize:QQt,kOnError:wQt,kHTTPContext:on,kMaxConcurrentStreams:SQt,kHTTP2InitialWindowSize:NQt,kHTTP2ConnectionWindowSize:TQt,kResume:ul,kPingInterval:xQt}=Kt(),RQt=fQe(),DQt=bQe(),zd=Symbol("kClosedResolve"),kQt=NQ&&NQ.maxHeaderSize&&Number.isInteger(NQ.maxHeaderSize)&&NQ.maxHeaderSize>0?()=>NQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},wQe=()=>{};function TQe(t){return t[Cv]??t[on]?.defaultPipelining??1}var Z7=class extends sQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[EQt]=a??3e5,this[mQt]=n??3e5,this[CQt]=m??!0,this[X7]=B,this[zd]=null,this[QQt]=V>-1?V:-1,this[on]=null,this[SQt]=v??100,this[NQt]=te??262144,this[TQt]=ce??524288,this[xQt]=ue??6e4,this[hc]=[],this[ll]=0,this[fc]=0,this[ul]=ke=>eW(this,ke),this[wQt]=ke=>xQe(this,ke)}get pipelining(){return this[Cv]}set pipelining(e){this[Cv]=e,this[ul](!0)}get stats(){return new rQt(this)}get[kQ](){return this[hc].length-this[fc]}get[DQ](){return this[fc]-this[ll]}get[TQ](){return this[hc].length-this[ll]}get[uQt](){return!!this[on]&&!this[_E]&&!this[on].destroyed}get[$7](){return!!(this[on]?.busy(null)||this[TQ]>=(TQe(this)||1)||this[kQ]>0)}[AQt](e){RQe(this),this.once("connect",e)}[bQt](e,r){let n=new nQt(this[RA].origin,e,r);return this[hc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>eW(this))):this[ul](!0)),this[Fg]&&this[jd]!==2&&this[$7]&&(this[jd]=2),this[jd]<2}[yQt](){return new Promise(e=>{this[TQ]?this[zd]=e:e(null)})}[BQt](e){return new Promise(r=>{let n=this[hc].splice(this[fc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ul]()})}};function xQe(t,e){if(t[DQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Al(t[fc]===t[ll]);let r=t[hc].splice(t[ll]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}Al(t[TQ]===0)}}function RQe(t){Al(!t[_E]),Al(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");Al(i!==-1);let o=r.substring(1,i);Al(NQe.isIPv6(o)),r=o}t[_E]=!0,vE.beforeConnect.hasSubscribers&&vE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ]});try{t[xQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[RQ]},(i,o)=>{if(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}if(t.destroyed){_g.destroy(o.on("error",wQe),new oQt),t[ul]();return}Al(o);try{t[on]=o.alpnProtocol==="h2"?DQt(t,o):RQt(t,o)}catch(a){o.destroy().on("error",wQe),K7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}t[_E]=!1,o[IQt]=0,o[X7]=t[X7],o[cQt]=t,o[dQt]=null,vE.connected.hasSubscribers&&vE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],socket:o}),t.emit("connect",t[RA],[t]),t[ul]()})}catch(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]()}}function K7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_E]=!1,vE.connectError.hasSubscribers&&vE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Al(t[DQ]===0);t[kQ]>0&&t[hc][t[fc]].servername===t[Kd];){let o=t[hc][t[fc]++];_g.errorRequest(t,o,e)}else xQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function SQe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function eW(t,e){t[Fg]!==2&&(t[Fg]=2,vQt(t,e),t[Fg]=0,t[ll]>256&&(t[hc].splice(0,t[ll]),t[fc]-=t[ll],t[ll]=0))}function vQt(t,e){for(;;){if(t.destroyed){Al(t[kQ]===0);return}if(t[zd]&&!t[TQ]){t[zd](),t[zd]=null;return}if(t[on]&&t[on].resume(),t[$7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>SQe(t))):SQe(t);continue}if(t[kQ]===0||t[DQ]>=(TQe(t)||1))return;let r=t[hc][t[fc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Kd]!==r.servername){if(t[DQ]>0)return;t[Kd]=r.servername,t[on]?.destroy(new iQt("servername changed"),()=>{t[on]=null,eW(t)})}if(t[_E])return;if(!t[on]){RQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[fc]++:t[hc].splice(t[fc],1)}}DQe.exports=Z7});var tW=C((jbr,kQe)=>{"use strict";var Iv=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)}};kQe.exports=class{constructor(){this.head=this.tail=new Iv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Iv),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 yv=C((Kbr,HQe)=>{"use strict";var{PoolStats:_Qt}=GV(),FQt=Qg(),MQt=tW(),{kConnected:rW,kSize:vQe,kRunning:_Qe,kPending:FQe,kQueued:vQ,kBusy:LQt,kFree:UQt,kUrl:PQt,kClose:OQt,kDestroy:HQt,kDispatch:GQt}=Kt(),Jn=Symbol("clients"),qs=Symbol("needDrain"),_Q=Symbol("queue"),nW=Symbol("closed resolve"),sW=Symbol("onDrain"),MQe=Symbol("onConnect"),LQe=Symbol("onDisconnect"),UQe=Symbol("onConnectionError"),iW=Symbol("get dispatcher"),PQe=Symbol("add client"),OQe=Symbol("remove client"),oW=class extends FQt{[_Q]=new MQt;[vQ]=0;[Jn] Line truncated
`,"latin1"),r!==null&&s!==r){if(n[M7])throw new xg;process.emitWarning(new xg)}e[pr].timeout&&e[pr].timeoutType===DE&&e[pr].timeout.refresh&&e[pr].timeout.refresh(),n[al]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Vd]=!1,e&&(He(n[fn]<=1,"pipeline should only contain this request"),s(e))}};hQe.exports=dbt});var bQe=C((Jbr,BQe)=>{"use strict";var fa=Q("node:assert"),{pipeline:Qbt}=Q("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:V7,RequestAbortedError:wbt,SocketError:wQ,InformationalError:Wd,InvalidArgumentError:Sbt}=Xe(),{kUrl:QQ,kReset:Iv,kClient:Ao,kRunning:SQ,kPending:Nbt,kQueue:Jd,kPendingIdx:J7,kRunningIdx:dc,kError:uo,kSocket:vr,kStrictContentLength:Tbt,kOnError:kE,kMaxConcurrentStreams:Ev,kPingInterval:gQe,kHTTP2Session:cl,kHTTP2InitialWindowSize:xbt,kHTTP2ConnectionWindowSize:Rbt,kResume:xA,kSize:Dbt,kHTTPContext:z7,kClosed:W7,kBodyTimeout:kbt,kEnableConnectProtocol:BQ,kRemoteSettings:bQ,kHTTP2Stream:mv,kHTTP2SessionState:j7}=Kt(),{channels:pQe}=Gd(),ha=Symbol("open streams"),mQe,Cv;try{Cv=Q("node:http2")}catch{Cv={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:vbt,HTTP2_HEADER_METHOD:EQe,HTTP2_HEADER_PATH:CQe,HTTP2_HEADER_SCHEME:G7,HTTP2_HEADER_CONTENT_LENGTH:_bt,HTTP2_HEADER_EXPECT:Fbt,HTTP2_HEADER_STATUS:q7,HTTP2_HEADER_PROTOCOL:Mbt,NGHTTP2_REFUSED_STREAM:Lbt,NGHTTP2_CANCEL:Ubt}}=Cv;function Y7(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 Pbt(t,e){t[vr]=e;let r=t[xbt],n=t[Rbt],s=Cv.connect(t[QQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Ev],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[vr]=e,s[ha]=0,s[Ao]=t,s[vr]=e,s[j7]={ping:{interval:t[gQe]===0?null:setInterval(qbt,t[gQe],s).unref()}},s[BQ]=!1,s[bQ]=!1,n&&ut.addListener(s,"connect",Hbt.bind(s,n)),ut.addListener(s,"error",Ybt),ut.addListener(s,"frameError",Vbt),ut.addListener(s,"end",Wbt),ut.addListener(s,"goaway",Jbt),ut.addListener(s,"close",zbt),ut.addListener(s,"remoteSettings",Gbt),s.unref(),t[cl]=s,e[cl]=s,ut.addListener(e,"error",Kbt),ut.addListener(e,"end",$bt),ut.addListener(e,"close",jbt),e[W7]=!1,e.on("close",Xbt),{version:"h2",defaultPipelining:1/0,write(i){return eQt(t,i)},resume(){Obt(t)},destroy(i,o){e[W7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[SQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[bQ]===!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[bQ]===!1;return!1}}}function Obt(t){let e=t[vr];e?.destroyed===!1&&(t[Dbt]===0||t[Ev]===0?(e.unref(),t[cl].unref()):(e.ref(),t[cl].ref()))}function Hbt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function Gbt(t){if(this[Ao][Ev]=t.maxConcurrentStreams??this[Ao][Ev],this[bQ]===!0&&this[BQ]===!0&&t.enableConnectProtocol===!1){let e=new Wd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[vr][uo]=e,this[Ao][kE](e);return}this[BQ]=t.enableConnectProtocol??this[BQ],this[bQ]=!0,this[Ao][xA]()}function qbt(t){let e=t[j7];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[Ao],o=this[Ao];if(n!=null){let a=new Wd(`HTTP/2: "PING" errored - type ${n.message}`);o[uo]=a,i[kE](a)}else i.emit("ping",s)}}function Ybt(t){fa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[vr][uo]=t,this[Ao][kE](t)}function Vbt(t,e,r){if(r===0){let n=new Wd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[vr][uo]=n,this[Ao][kE](n)}}function Wbt(){let t=new wQ("other side closed",ut.getSocketInfo(this[vr]));this.destroy(t),ut.destroy(this[vr],t)}function Jbt(t){let e=this[uo]||new wQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[vr])),r=this[Ao];if(r[vr]=null,r[z7]=null,this.close(),this[cl]=null,ut.destroy(this[vr],e),r[dc]<r[Jd].length){let n=r[Jd][r[dc]];r[Jd][r[dc]++]=null,ut.errorRequest(r,n,e),r[J7]=r[dc]}fa(r[SQ]===0),r.emit("disconnect",r[QQ],[r],e),r.emit("connectionError",r[QQ],[r],e),r[xA]()}function zbt(){let{[Ao]:t,[j7]:e}=this,{[vr]:r}=t,n=this[vr][uo]||this[uo]||new wQ("closed",ut.getSocketInfo(r));if(t[vr]=null,t[z7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){fa(t[Nbt]===0);let s=t[Jd].splice(t[dc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function jbt(){let t=this[uo]||new wQ("closed",ut.getSocketInfo(this)),e=this[cl][Ao];e[vr]=null,e[z7]=null,this[cl]!==null&&this[cl].destroy(t),e[J7]=e[dc],fa(e[SQ]===0),e.emit("disconnect",e[QQ],[e],t),e[xA]()}function Kbt(t){fa(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[uo]=t,this[Ao][kE](t)}function $bt(){ut.destroy(this,new wQ("other side closed",ut.getSocketInfo(this)))}func Line truncated
`;pQe.sendHeaders.publish({request:e,headers:k,socket:n[vr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[Fbt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[mv]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[mv]=!0,V()),++n[ha],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[q7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),Y7(v),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[Jd][t[dc]++]=null,t[xA]()):(m(new Wd("HTTP/2: stream half-closed (remote)")),t[Jd][t[dc]++]=null,t[J7]=t[dc],t[xA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ha]-=1,n[ha]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Wd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Wd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ha]-=1,n[ha]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function V(){!d||y===0?IQe(m,f,null,t,e,t[vr],y,I):ut.isBuffer(d)?IQe(m,f,d,t,e,t[vr],y,I):ut.isBlobLike(d)?typeof d.stream=="function"?yQe(m,f,d.stream(),t,e,t[vr],y,I):rQt(m,f,d,t,e,t[vr],y,I):ut.isStream(d)?tQt(m,t[vr],I,f,d,t,e,y):ut.isIterable(d)?yQe(m,f,d,t,e,t[vr],y,I):fa(!1)}}function IQe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(fa(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Iv]=!0),s.onRequestSent(),n[xA]()}catch(c){t(c)}}function tQt(t,e,r,n,s,i,o,a){fa(a!==0||i[SQ]===0,"stream body cannot be pipelined");let c=Qbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Iv]=!0),i[xA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function rQt(t,e,r,n,s,i,o,a){fa(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new V7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Iv]=!0),n[xA]()}catch(c){t(c)}}async function yQe(t,e,r,n,s,i,o,a){fa(o!==0||n[SQ]===0,"iterator body cannot be pipelined");let c=null;function A(){if(c){let l=c;c=null,l()}}let u=()=>new Promise((l,d)=>{fa(c===null),i[uo]?d(i[uo]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[uo])throw i[uo];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Iv]=!0),n[xA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}BQe.exports=Pbt});var $d=C((zbr,DQe)=>{"use strict";var Al=Q("node:assert"),NQe=Q("node:net"),NQ=Q("node:http"),_g=Ze(),{ClientStats:nQt}=GV(),{channels:vE}=Gd(),sQt=HBe(),iQt=Qg(),{InvalidArgumentError:mr,InformationalError:oQt,ClientDestroyedError:aQt}=Xe(),cQt=wg(),{kUrl:RA,kServerName:Kd,kClient:AQt,kBusy:$7,kConnect:uQt,kResuming:Fg,kRunning:DQ,kPending:kQ,kSize:TQ,kQueue:hc,kConnected:lQt,kConnecting:_E,kNeedDrain:jd,kKeepAliveDefaultTimeout:QQe,kHostHeader:dQt,kPendingIdx:fc,kRunningIdx:ll,kError:hQt,kPipelining:yv,kKeepAliveTimeoutValue:fQt,kMaxHeadersSize:gQt,kKeepAliveMaxTimeout:pQt,kKeepAliveTimeoutThreshold:mQt,kHeadersTimeout:EQt,kBodyTimeout:CQt,kStrictContentLength:IQt,kConnector:xQ,kMaxRequests:X7,kCounter:yQt,kClose:BQt,kDestroy:bQt,kDispatch:QQt,kLocalAddress:RQ,kMaxResponseSize:wQt,kOnError:SQt,kHTTPContext:on,kMaxConcurrentStreams:NQt,kHTTP2InitialWindowSize:TQt,kHTTP2ConnectionWindowSize:xQt,kResume:ul,kPingInterval:RQt}=Kt(),DQt=fQe(),kQt=bQe(),zd=Symbol("kClosedResolve"),vQt=NQ&&NQ.maxHeaderSize&&Number.isInteger(NQ.maxHeaderSize)&&NQ.maxHeaderSize>0?()=>NQ.maxHeaderSize:()=>{throw new mr("http module not available or http.maxHeaderSize invalid")},wQe=()=>{};function TQe(t){return t[yv]??t[on]?.defaultPipelining??1}var Z7=class extends iQt{constructor(e,{maxHeaderSize:r,headersTimeout:n,socketTimeout:s,requestTimeout:i,connectTimeout:o,bodyTimeout:a,idleTimeout:c,keepAlive:A,keepAliveTimeout:u,maxKeepAliveTimeout:l,keepAliveMaxTimeout:d,keepAliveTimeoutThreshold:h,socketPath:f,pipelining:g,tls:E,strictContentLength:m,maxCachedSessions:I,connect:y,maxRequestsPerClient:B,localAddress:M,maxResponseSize:V,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:v,allowH2:z,useH2c:X,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new mr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new mr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new mr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new mr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[CQt]=a??3e5,this[EQt]=n??3e5,this[IQt]=m??!0,this[X7]=B,this[zd]=null,this[wQt]=V>-1?V:-1,this[on]=null,this[NQt]=v??100,this[TQt]=te??262144,this[xQt]=ce??524288,this[RQt]=ue??6e4,this[hc]=[],this[ll]=0,this[fc]=0,this[ul]=ke=>eW(this,ke),this[SQt]=ke=>xQe(this,ke)}get pipelining(){return this[yv]}set pipelining(e){this[yv]=e,this[ul](!0)}get stats(){return new nQt(this)}get[kQ](){return this[hc].length-this[fc]}get[DQ](){return this[fc]-this[ll]}get[TQ](){return this[hc].length-this[ll]}get[lQt](){return!!this[on]&&!this[_E]&&!this[on].destroyed}get[$7](){return!!(this[on]?.busy(null)||this[TQ]>=(TQe(this)||1)||this[kQ]>0)}[uQt](e){RQe(this),this.once("connect",e)}[QQt](e,r){let n=new sQt(this[RA].origin,e,r);return this[hc].push(n),this[Fg]||(_g.bodyLength(n.body)==null&&_g.isIterable(n.body)?(this[Fg]=1,queueMicrotask(()=>eW(this))):this[ul](!0)),this[Fg]&&this[jd]!==2&&this[$7]&&(this[jd]=2),this[jd]<2}[BQt](){return new Promise(e=>{this[TQ]?this[zd]=e:e(null)})}[bQt](e){return new Promise(r=>{let n=this[hc].splice(this[fc]);for(let i=0;i<n.length;i++){let o=n[i];_g.errorRequest(this,o,e)}let s=()=>{this[zd]&&(this[zd](),this[zd]=null),r(null)};this[on]?(this[on].destroy(e,s),this[on]=null):queueMicrotask(s),this[ul]()})}};function xQe(t,e){if(t[DQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Al(t[fc]===t[ll]);let r=t[hc].splice(t[ll]);for(let n=0;n<r.length;n++){let s=r[n];_g.errorRequest(t,s,e)}Al(t[TQ]===0)}}function RQe(t){Al(!t[_E]),Al(!t[on]);let{host:e,hostname:r,protocol:n,port:s}=t[RA];if(r[0]==="["){let i=r.indexOf("]");Al(i!==-1);let o=r.substring(1,i);Al(NQe.isIPv6(o)),r=o}t[_E]=!0,vE.beforeConnect.hasSubscribers&&vE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ]});try{t[xQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[RQ]},(i,o)=>{if(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}if(t.destroyed){_g.destroy(o.on("error",wQe),new aQt),t[ul]();return}Al(o);try{t[on]=o.alpnProtocol==="h2"?kQt(t,o):DQt(t,o)}catch(a){o.destroy().on("error",wQe),K7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[ul]();return}t[_E]=!1,o[yQt]=0,o[X7]=t[X7],o[AQt]=t,o[hQt]=null,vE.connected.hasSubscribers&&vE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],socket:o}),t.emit("connect",t[RA],[t]),t[ul]()})}catch(i){K7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[ul]()}}function K7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[_E]=!1,vE.connectError.hasSubscribers&&vE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[on]?.version,servername:t[Kd],localAddress:t[RQ]},connector:t[xQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Al(t[DQ]===0);t[kQ]>0&&t[hc][t[fc]].servername===t[Kd];){let o=t[hc][t[fc]++];_g.errorRequest(t,o,e)}else xQe(t,e);t.emit("connectionError",t[RA],[t],e)}}function SQe(t){t[jd]=0,t.emit("drain",t[RA],[t])}function eW(t,e){t[Fg]!==2&&(t[Fg]=2,_Qt(t,e),t[Fg]=0,t[ll]>256&&(t[hc].splice(0,t[ll]),t[fc]-=t[ll],t[ll]=0))}function _Qt(t,e){for(;;){if(t.destroyed){Al(t[kQ]===0);return}if(t[zd]&&!t[TQ]){t[zd](),t[zd]=null;return}if(t[on]&&t[on].resume(),t[$7])t[jd]=2;else if(t[jd]===2){e?(t[jd]=1,queueMicrotask(()=>SQe(t))):SQe(t);continue}if(t[kQ]===0||t[DQ]>=(TQe(t)||1))return;let r=t[hc][t[fc]];if(r===null)return;if(t[RA].protocol==="https:"&&t[Kd]!==r.servername){if(t[DQ]>0)return;t[Kd]=r.servername,t[on]?.destroy(new oQt("servername changed"),()=>{t[on]=null,eW(t)})}if(t[_E])return;if(!t[on]){RQe(t);return}if(t[on].destroyed||t[on].busy(r))return;!r.aborted&&t[on].write(r)?t[fc]++:t[hc].splice(t[fc],1)}}DQe.exports=Z7});var tW=C((Kbr,kQe)=>{"use strict";var Bv=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)}};kQe.exports=class{constructor(){this.head=this.tail=new Bv}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Bv),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 bv=C(($br,HQe)=>{"use strict";var{PoolStats:FQt}=GV(),MQt=Qg(),LQt=tW(),{kConnected:rW,kSize:vQe,kRunning:_Qe,kPending:FQe,kQueued:vQ,kBusy:UQt,kFree:PQt,kUrl:OQt,kClose:HQt,kDestroy:GQt,kDispatch:qQt}=Kt(),Jn=Symbol("clients"),qs=Symbol("needDrain"),_Q=Symbol("queue"),nW=Symbol("closed resolve"),sW=Symbol("onDrain"),MQe=Symbol("onConnect"),LQe=Symbol("onDisconnect"),UQe=Symbol("onConnectionError"),iW=Symbol("get dispatcher"),PQe=Symbol("add client"),OQe=Symbol("remove client"),oW=class extends MQt{[_Q]=new LQt;[vQ]=0;[Jn] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var{InvalidArgumentError:USt}=Xe(),{runtimeFeatures:PSt}=il();function OSt(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 hSe=PSt.has("crypto")?Q("node:crypto"):null,HSt=hSe?.hash?t=>hSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function gSe(t){return Array.isArray(t)&&(t.length&1)===0}function GSt(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 qSt(t){let e={};if(!t)return e;if(gSe(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 fSe=["record","playback","update"];function YSt(t){if(!fSe.includes(t))throw new USt(`Invalid snapshot mode: ${t}. Must be one of: ${fSe.join(", ")}`)}pSe.exports={createHeaderFilters:OSt,hashId:HSt,isUndiciHeaders:gSe,normalizeHeaders:qSt,isUrlExcludedFactory:GSt,validateSnapshotMode:YSt}});var wSe=C((TQr,QSe)=>{"use strict";var{writeFile:VSt,readFile:WSt,mkdir:JSt}=Q("node:fs/promises"),{dirname:zSt,resolve:mSe}=Q("node:path"),{setTimeout:jSt,clearTimeout:ESe}=Q("node:timers"),{InvalidArgumentError:CSe,UndiciError:KSt}=Xe(),{hashId:$St,isUrlExcludedFactory:XSt,normalizeHeaders:ISe,createHeaderFilters:ySe}=SJ();function WQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||ISe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:BSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function BSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function bSe(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 c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function JQ(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 $St(r)}var NJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=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.#c=ySe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=XSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=WQ(e,this.#c,this.matchOptions),s=JQ(n),i=ISe(r.headers),o={statusCode:r.statusCode,headers:bSe(i,this.#c,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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}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.#s&&this.#r&&this.#A()}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=WQ(e,this.#c,this.matchOptions),n=JQ(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 CSe("Snapshot path is required");try{let n=await WSt(mSe(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 KSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");let n=mSe(r);await JSt(zSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await VSt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((TQr,pSe)=>{"use strict";var{InvalidArgumentError:PSt}=Xe(),{runtimeFeatures:OSt}=il();function HSt(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 hSe=OSt.has("crypto")?Q("node:crypto"):null,GSt=hSe?.hash?t=>hSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function gSe(t){return Array.isArray(t)&&(t.length&1)===0}function qSt(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 YSt(t){let e={};if(!t)return e;if(gSe(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 fSe=["record","playback","update"];function VSt(t){if(!fSe.includes(t))throw new PSt(`Invalid snapshot mode: ${t}. Must be one of: ${fSe.join(", ")}`)}pSe.exports={createHeaderFilters:HSt,hashId:GSt,isUndiciHeaders:gSe,normalizeHeaders:YSt,isUrlExcludedFactory:qSt,validateSnapshotMode:VSt}});var wSe=C((xQr,QSe)=>{"use strict";var{writeFile:WSt,readFile:JSt,mkdir:zSt}=Q("node:fs/promises"),{dirname:jSt,resolve:mSe}=Q("node:path"),{setTimeout:KSt,clearTimeout:ESe}=Q("node:timers"),{InvalidArgumentError:CSe,UndiciError:$St}=Xe(),{hashId:XSt,isUrlExcludedFactory:ZSt,normalizeHeaders:ISe,createHeaderFilters:ySe}=SJ();function WQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||ISe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:BSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function BSe(t,e,r={}){if(!t||typeof t!="object")return{};let{caseSensitive:n=!1}=r,s={},{ignore:i,exclude:o,match:a}=e;for(let[c,A]of Object.entries(t)){let u=n?c:c.toLowerCase();o.has(u)||i.has(u)||a.size!==0&&!a.has(u)||(s[u]=A)}return s}function bSe(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 c=n?o:o.toLowerCase();i.has(c)||(s[c]=a)}return s}function JQ(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 XSt(r)}var NJ=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#c;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=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.#c=ySe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ZSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=WQ(e,this.#c,this.matchOptions),s=JQ(n),i=ISe(r.headers),o={statusCode:r.statusCode,headers:bSe(i,this.#c,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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}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.#s&&this.#r&&this.#A()}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=WQ(e,this.#c,this.matchOptions),n=JQ(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 CSe("Snapshot path is required");try{let n=await JSt(mSe(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 $St(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new CSe("Snapshot path is required");let n=mSe(r);await zSt(jSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await WSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
@@ -191,82 +191,82 @@ ${e.format(r)}`.trim())}};dSe.exports=QJ});var SJ=C((NQr,pSe)=>{"use strict";var
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){tz(e);let r=this.#h(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){tz(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.#h(e,!0);o?this.#i.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.#s.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),this.#u())}createWriteStream(e,r){tz(e),txt(r);let n=0,s=[],i=this;return new ext({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},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.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.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}`}#h(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 c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!rxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function rxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C((KQr,JNe)=>{"use strict";var{kConstruct:nxt}=Kt(),{kEnumerableProperty:XE}=Ze(),{iteratorMixin:sxt,isValidHeaderName:ew,isValidHeaderValue:GNe}=ao(),{webidl:wt}=ns(),nz=Q("node:assert"),Xv=Q("node:util");function HNe(t){return t===10||t===13||t===9||t===32}function qNe(t){let e=0,r=t.length;for(;r>e&&HNe(t.charCodeAt(r-1));)--r;for(;r>e&&HNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function YNe(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}.`});sz(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)sz(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 sz(t,e,r){if(r=qNe(r),ew(e)){if(!GNe(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(WNe(t)==="immutable")throw new TypeError("immutable");return e_(t).append(e,r,!1)}function ixt(t){let e=e_(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 c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function VNe(t,e){return t[0]<e[0]?-1:1}var Zv=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.hea Line truncated
${i}`;break;case"retry":Xxe(i)&&(r[s]=i);break;case"id":Zxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Zxe(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}}};eRe.exports={EventSourceStream:Yz}});var ARe=C((ywr,cRe)=>{"use strict";var{pipeline:ykt}=Q("node:stream"),{fetching:Bkt}=iw(),{makeRequest:bkt}=eC(),{webidl:Vs}=ns(),{EventSourceStream:Qkt}=tRe(),{parseMIMEType:wkt}=Aa(),{createFastMessageEvent:Skt}=w_(),{isNetworkError:rRe}=rw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:nRe}=ao(),sRe=!1,iRe=3e3,dw=0,oRe=1,hw=2,Nkt="anonymous",Tkt="use-credentials",uC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=dw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),sRe||(sRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=nRe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Nkt;r.withCredentials===!0&&(o=Tkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nRe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=bkt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===hw)return;this.#r=dw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!rRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?wkt(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=oRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Qkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Skt(c.type,c.options))}});ykt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Bkt(e)}#A(){this.#r!==hw&&(this.#r=dw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===dw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==hw&&(this.#r=hw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.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=Vs.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=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},aRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hw,writable:!1}};Object.defineProperties(uC,aRe);Object.defineProperties(uC.prototype,aRe);Object.defineProperties(uC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>iRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);cRe.exports={EventSource:uC,defaultReconnectionTime:iRe}});var gRe=C((Bwr,pe)=>{"use strict";var xkt=$d(),lRe=lQ(),Rkt=Mg(),Dkt=jQe(),kkt=ZQe(),vkt=Pg(),_kt=TW(),Fkt=QW(),Mkt=Uwe(),Lkt=Vwe(),Ukt=zwe(),dRe=Xe(),U_=Ze(),{InvalidArgumentError:L_}=dRe,lC=x1e(),Pkt=wg(),Okt=hJ(),{MockCallHistory:Hk Line truncated
`)}close(){this.#n.close()}get(e){tz(e);let r=this.#h(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){tz(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.#h(e,!0);o?this.#i.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.#s.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),this.#u())}createWriteStream(e,r){tz(e),rxt(r);let n=0,s=[],i=this;return new txt({decodeStrings:!0,write(o,a,c){n+=o.byteLength,n<i.#e?s.push(o):this.destroy(),c()},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.#c.run(Date.now()).changes;if(e)return e}{let e=this.#A?.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}`}#h(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 c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!nxt(s[l],u[l])){A=!1;break}}if(A)return c}}};function nxt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var Xg=C(($Qr,JNe)=>{"use strict";var{kConstruct:sxt}=Kt(),{kEnumerableProperty:XE}=Ze(),{iteratorMixin:ixt,isValidHeaderName:ew,isValidHeaderValue:GNe}=ao(),{webidl:wt}=ns(),nz=Q("node:assert"),e_=Q("node:util");function HNe(t){return t===10||t===13||t===9||t===32}function qNe(t){let e=0,r=t.length;for(;r>e&&HNe(t.charCodeAt(r-1));)--r;for(;r>e&&HNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function YNe(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}.`});sz(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)sz(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 sz(t,e,r){if(r=qNe(r),ew(e)){if(!GNe(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(WNe(t)==="immutable")throw new TypeError("immutable");return r_(t).append(e,r,!1)}function oxt(t){let e=r_(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 c=0;c<s.length;++c)r.push([o,s[c]]);else r.push([o,a])}return e.sortedMap=r}function VNe(t,e){return t[0]<e[0]?-1:1}var t_=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.hea Line truncated
${i}`;break;case"retry":Xxe(i)&&(r[s]=i);break;case"id":Zxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Xxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Zxe(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}}};eRe.exports={EventSourceStream:Yz}});var ARe=C((Bwr,cRe)=>{"use strict";var{pipeline:Bkt}=Q("node:stream"),{fetching:bkt}=iw(),{makeRequest:Qkt}=eC(),{webidl:Vs}=ns(),{EventSourceStream:wkt}=tRe(),{parseMIMEType:Skt}=ua(),{createFastMessageEvent:Nkt}=N_(),{isNetworkError:rRe}=rw(),{kEnumerableProperty:op}=Ze(),{environmentSettingsObject:nRe}=ao(),sRe=!1,iRe=3e3,dw=0,oRe=1,hw=2,Tkt="anonymous",xkt="use-credentials",uC=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=dw;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Vs.util.markAsUncloneable(this);let n="EventSource constructor";Vs.argumentLengthCheck(arguments,1,n),sRe||(sRe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Vs.converters.USVString(e),r=Vs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=nRe,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=Tkt;r.withCredentials===!0&&(o=xkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=nRe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Qkt(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===hw)return;this.#r=dw;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!rRe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(rRe(n))if(n.aborted){this.close(),this.dispatchEvent(new Event("error"));return}else{this.#A();return}let s=n.headersList.get("content-type",!0),i=s!==null?Skt(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=oRe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new wkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Nkt(c.type,c.options))}});Bkt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=bkt(e)}#A(){this.#r!==hw&&(this.#r=dw,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===dw&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Vs.brandCheck(this,t),this.#r!==hw&&(this.#r=hw,this.#s.abort(),this.#i=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Vs.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=Vs.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=Vs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},aRe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:dw,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:oRe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:hw,writable:!1}};Object.defineProperties(uC,aRe);Object.defineProperties(uC.prototype,aRe);Object.defineProperties(uC.prototype,{close:op,onerror:op,onmessage:op,onopen:op,readyState:op,url:op,withCredentials:op});Vs.converters.EventSourceInitDict=Vs.dictionaryConverter([{key:"withCredentials",converter:Vs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Vs.converters.any},{key:"node",converter:Vs.dictionaryConverter([{key:"reconnectionTime",converter:Vs.converters["unsigned long"],defaultValue:()=>iRe},{key:"dispatcher",converter:Vs.converters.any}]),defaultValue:()=>({})}]);cRe.exports={EventSource:uC,defaultReconnectionTime:iRe}});var gRe=C((bwr,pe)=>{"use strict";var Rkt=$d(),lRe=lQ(),Dkt=Mg(),kkt=jQe(),vkt=ZQe(),_kt=Pg(),Fkt=TW(),Mkt=QW(),Lkt=Uwe(),Ukt=Vwe(),Pkt=zwe(),dRe=Xe(),O_=Ze(),{InvalidArgumentError:P_}=dRe,lC=x1e(),Okt=wg(),Hkt=hJ(),{MockCallHistory:Gk Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Xkt(e,r).catch(n=>{throw uRe?fRe(n,uRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=rw().Response;pe.exports.Request=eC().Request;pe.exports.FormData=ov().FormData;var{setGlobalOrigin:Zkt,getGlobalOrigin:evt}=A7();pe.exports.setGlobalOrigin=Zkt;pe.exports.getGlobalOrigin=evt;var{CacheStorage:tvt}=KTe(),{kConstruct:rvt}=Kt();pe.exports.caches=new tvt(rvt);var{deleteCookie:nvt,getCookies:svt,getSetCookies:ivt,setCookie:ovt,parseCookie:avt}=cxe();pe.exports.deleteCookie=nvt;pe.exports.getCookies=svt;pe.exports.getSetCookies=ivt;pe.exports.setCookie=ovt;pe.exports.parseCookie=avt;var{parseMIMEType:cvt,serializeAMimeType:Avt}=Aa();pe.exports.parseMIMEType=cvt;pe.exports.serializeAMimeType=Avt;var{CloseEvent:uvt,ErrorEvent:lvt,MessageEvent:dvt}=w_(),{WebSocket:hvt,ping:fvt}=Hxe();pe.exports.WebSocket=hvt;pe.exports.CloseEvent=uvt;pe.exports.ErrorEvent=lvt;pe.exports.MessageEvent=dvt;pe.exports.ping=fvt;pe.exports.WebSocketStream=jxe().WebSocketStream;pe.exports.WebSocketError=Pz().WebSocketError;pe.exports.request=fw(lC.request);pe.exports.stream=fw(lC.stream);pe.exports.pipeline=fw(lC.pipeline);pe.exports.connect=fw(lC.connect);pe.exports.upgrade=fw(lC.upgrade);pe.exports.MockClient=Okt;pe.exports.MockCallHistory=Hkt;pe.exports.MockCallHistoryLog=Gkt;pe.exports.MockPool=Ykt;pe.exports.MockAgent=qkt;pe.exports.SnapshotAgent=Vkt;pe.exports.mockErrors=Wkt;var{EventSource:gvt}=ARe();pe.exports.EventSource=gvt;function pvt(){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=pvt});var gw=C(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.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 mRe=C((wwr,pRe)=>{"use strict";var{asciiLowercase:P_,solelyContainsHTTPTokenCodePoints:mvt,soleyContainsHTTPQuotedStringTokenCodePoints:Evt}=gw();pRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=P_(String(e)),this._map.get(e)}has(e){return e=P_(String(e)),this._map.has(e)}set(e,r){if(e=P_(String(e)),r=String(r),!mvt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Evt(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=P_(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 IRe=C((Swr,CRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Cvt,removeTrailingHTTPWhitespace:ERe,isHTTPWhitespaceChar:Ivt,solelyContainsHTTPTokenCodePoints:Vz,soleyContainsHTTPQuotedStringTokenCodePoints:yvt,asciiLowercase:Wz,collectAnHTTPQuotedString:Bvt}=gw();CRe.exports=t=>{t=Cvt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Vz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ERe(n),n.length===0||!Vz(n))return null;let s={type:Wz(r),subtype:Wz(n),parameters:new Map};for(;e<t.length;){for(++e;Ivt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Wz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Bvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ERe(o),o==="")continue}i.length>0&&Vz(i)&&yvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var BRe=C((Nwr,yRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:bvt}=gw();yRe.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+="=",(!bvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var SRe=C((xwr,wRe)=>{"use strict";var Qvt=mRe(),wvt=IRe(),Svt=BRe(),{asciiLowercase:bRe,solelyContainsHTTPTokenCodePoints:QRe}=gw();wRe.exports=class{constructor(e){e=String(e);let r=wvt(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 Qvt(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=bRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!QRe(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=bRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Svt(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 KRe=C(Sn=>{"use strict";var tj=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),o_t=tj(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Vj:f.type==="?"?zj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=X_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==Wj?"(?:$|\\/)":"";s=v+z+X+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Wj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return eFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_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?Vj:r.dot?K_t:$_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?rFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).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(c2e),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],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=EC});var p2e=C((RSr,g2e)=>{g2e.exports=f2e;var $j=Q("fs"),{EventEmitter:sFt}=Q("events"),{Minimatch:Kj}=l2e(),{resolve:iFt}=Q("path");function oFt(t,e){return new Promise((r,n)=>{$j.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 d2e(t,e){return new Promise((r,n)=>{(e?$j.stat:$j.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?d2e(t,!1):null):r(null):r(o)})})}async function*h2e(t,e,r,n,s,i){let o=await oFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await d2e(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*h2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*aFt(t,e,r,n){yield*h2e("",t,e,r,n,!0)}function cFt(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 X_=class extends sFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=cFt(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 Kj(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 Kj(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 Kj(i,{dot:!0}))}this.iterator=aFt(iFt(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
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(aL);if(S||(S=b.match(cL)),!S)throw new Error(`could not parse args in autoInject
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Zkt(e,r).catch(n=>{throw uRe?fRe(n,uRe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Xg().Headers;pe.exports.Response=rw().Response;pe.exports.Request=eC().Request;pe.exports.FormData=cv().FormData;var{setGlobalOrigin:evt,getGlobalOrigin:tvt}=A7();pe.exports.setGlobalOrigin=evt;pe.exports.getGlobalOrigin=tvt;var{CacheStorage:rvt}=KTe(),{kConstruct:nvt}=Kt();pe.exports.caches=new rvt(nvt);var{deleteCookie:svt,getCookies:ivt,getSetCookies:ovt,setCookie:avt,parseCookie:cvt}=cxe();pe.exports.deleteCookie=svt;pe.exports.getCookies=ivt;pe.exports.getSetCookies=ovt;pe.exports.setCookie=avt;pe.exports.parseCookie=cvt;var{parseMIMEType:Avt,serializeAMimeType:uvt}=ua();pe.exports.parseMIMEType=Avt;pe.exports.serializeAMimeType=uvt;var{CloseEvent:lvt,ErrorEvent:dvt,MessageEvent:hvt}=N_(),{WebSocket:fvt,ping:gvt}=Hxe();pe.exports.WebSocket=fvt;pe.exports.CloseEvent=lvt;pe.exports.ErrorEvent=dvt;pe.exports.MessageEvent=hvt;pe.exports.ping=gvt;pe.exports.WebSocketStream=jxe().WebSocketStream;pe.exports.WebSocketError=Pz().WebSocketError;pe.exports.request=fw(lC.request);pe.exports.stream=fw(lC.stream);pe.exports.pipeline=fw(lC.pipeline);pe.exports.connect=fw(lC.connect);pe.exports.upgrade=fw(lC.upgrade);pe.exports.MockClient=Hkt;pe.exports.MockCallHistory=Gkt;pe.exports.MockCallHistoryLog=qkt;pe.exports.MockPool=Vkt;pe.exports.MockAgent=Ykt;pe.exports.SnapshotAgent=Wkt;pe.exports.mockErrors=Jkt;var{EventSource:pvt}=ARe();pe.exports.EventSource=pvt;function mvt(){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=mvt});var gw=C(lh=>{"use strict";lh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");lh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");lh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";lh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);lh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);lh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());lh.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 mRe=C((Swr,pRe)=>{"use strict";var{asciiLowercase:H_,solelyContainsHTTPTokenCodePoints:Evt,soleyContainsHTTPQuotedStringTokenCodePoints:Cvt}=gw();pRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=H_(String(e)),this._map.get(e)}has(e){return e=H_(String(e)),this._map.has(e)}set(e,r){if(e=H_(String(e)),r=String(r),!Evt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Cvt(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=H_(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 IRe=C((Nwr,CRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Ivt,removeTrailingHTTPWhitespace:ERe,isHTTPWhitespaceChar:yvt,solelyContainsHTTPTokenCodePoints:Vz,soleyContainsHTTPQuotedStringTokenCodePoints:Bvt,asciiLowercase:Wz,collectAnHTTPQuotedString:bvt}=gw();CRe.exports=t=>{t=Ivt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Vz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=ERe(n),n.length===0||!Vz(n))return null;let s={type:Wz(r),subtype:Wz(n),parameters:new Map};for(;e<t.length;){for(++e;yvt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Wz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=bvt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=ERe(o),o==="")continue}i.length>0&&Vz(i)&&Bvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var BRe=C((Twr,yRe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:Qvt}=gw();yRe.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+="=",(!Qvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var SRe=C((Rwr,wRe)=>{"use strict";var wvt=mRe(),Svt=IRe(),Nvt=BRe(),{asciiLowercase:bRe,solelyContainsHTTPTokenCodePoints:QRe}=gw();wRe.exports=class{constructor(e){e=String(e);let r=Svt(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 wvt(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=bRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!QRe(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=bRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!QRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Nvt(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 KRe=C(Sn=>{"use strict";var tj=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),a_t=tj(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
%s`,k,k,f,s);let P=f.type==="*"?Vj:f.type==="?"?zj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=Z_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],v=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),X=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+X,ce=v.split(")").length,ue=v.split("(").length-ce,Fe=X;for(let et=0;et<ue;et++)Fe=Fe.replace(/\)[+*?]?/,"");X=Fe;let ke=X===""&&r!==Wj?"(?:$|\\/)":"";s=v+z+X+ke+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===Wj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return tFt(e);let V=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",V),{_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?Vj:r.dot?$_t:X_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?nFt(a):a===Ws?Ws:a._src).reduce((a,c)=>(a[a.length-1]===Ws&&c===Ws||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ws||o[c-1]===Ws||(c===0?o.length>1?o[c+1]="(?:\\/|"+n+"\\/)?"+o[c+1]:o[c]=n:c===o.length-1?o[c-1]+="(?:\\/|"+n+")?":(o[c-1]+="(?:\\/|\\/"+n+"\\/)"+o[c+1],o[c+1]=Ws))}),o.filter(a=>a!==Ws).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(c2e),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],c=e;if(n.matchBase&&a.length===1&&(c=[i]),this.matchOne(c,a,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(e){return Co.defaults(e).Minimatch}};Co.Minimatch=EC});var p2e=C((DSr,g2e)=>{g2e.exports=f2e;var $j=Q("fs"),{EventEmitter:iFt}=Q("events"),{Minimatch:Kj}=l2e(),{resolve:oFt}=Q("path");function aFt(t,e){return new Promise((r,n)=>{$j.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 d2e(t,e){return new Promise((r,n)=>{(e?$j.stat:$j.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?d2e(t,!1):null):r(null):r(o)})})}async function*h2e(t,e,r,n,s,i){let o=await aFt(e+t,i);for(let a of o){let c=a.name;c===void 0&&(c=a,n=!0);let A=t+"/"+c,u=A.slice(1),l=e+"/"+u,d=null;(n||r)&&(d=await d2e(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*h2e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*cFt(t,e,r,n){yield*h2e("",t,e,r,n,!0)}function AFt(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 eF=class extends iFt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=AFt(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 Kj(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 Kj(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 Kj(i,{dot:!0}))}this.iterator=cFt(oFt(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
`,S);S=G===-1?w.length:G}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let G=w.indexOf("*/",S);G!==-1?(S=G+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function CI(w){let b=EI(w.toString()),S=b.match(AL);if(S||(S=b.match(uL)),!S)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,F]=S;return F.replace(/\s/g,"").split(O1).map(G=>G.replace(H1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Vp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,Dn;function So(Oh,...xI){if(Oh)return Ye?Dn(Oh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var jp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(jp):Ut._tasks.push(jp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Oh,xI)=>{Br=Oh,Dn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var Dn=qe[Nt],So=Y.indexOf(Dn);So===0?Y.shift():So>0&&Y.splice(So,1),Dn.callback(be,...Ye),be!=null&&Bt("error",be,Dn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function zp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,Dn)=>{if(Br)return Nt(Br);Ye(Dn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var Dn=te(wo(qe));F(be,Dn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Ut}function bI(w,b){return Vp(w,1,b)}function Wp(w,b,S){return Vp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var Ta=m(Qo,4);function Jp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),Ta(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function G1(...w){return Jp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||N2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,nF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),N2e()}return Object.defineProperty(e,nF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var S2e;global[is]||T2e(global,Fr[is]);tK.exports=Zj(mFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(tK.exports=Zj(Fr),Fr.__patched=!0);function Zj(t){gFt(t),t.gracefulify=Zj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),te(v,z,X);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?CC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,te){return typeof X=="function"&&(te=X,X=0),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?CC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=pFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function CC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),eK()}var rF;function N2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);eK()}function eK(){if(clearTimeout(rF),rF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}rF===void 0&&(rF=setTimeout(eK,0))}}});var sF=C((FSr,x2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};a_e.exports={AggregateError:LK,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 UK=C((VNr,c_e)=>{"use strict";c_e.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=C((WNr,l_e)=>{"use strict";var{format:OPt,inspect:bF}=UK(),{AggregateError:HPt}=Rr(),GPt=globalThis.AggregateError||HPt,qPt=Symbol("kIsNodeError"),YPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],VPt=/^([A-Z][a-z0-9]*)+$/,WPt="__node_internal_",QF={};function mp(t,e){if(!t)throw new QF.ERR_INTERNAL_ASSERTION(e)}function A_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function JPt(t,e,r){if(typeof e=="function")return mp(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 mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:OPt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(JPt(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[qPt]=!0,QF[t]=n}function u_e(t){let e=WPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function zPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new GPt([e,t],e.message);return r.code=e.code,r}return t||e}var PK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new QF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(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 c of e)mp(typeof c=="string","All expected entries have to be of type string"),YPt.includes(c)?s.push(c.toLowerCase()):VPt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,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
`+b);let[,F]=S;return F.replace(/\s/g,"").split(O1).map(G=>G.replace(H1,"").trim())}function II(w,b){var S={};return Object.keys(w).forEach(F=>{var G=w[F],Y,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))Y=[...G],G=Y.pop(),S[F]=Y.concat(Y.length>0?re:G);else if(j)S[F]=G;else{if(Y=CI(G),G.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(re)}function re(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(G)(...Lt)}}),mI(S,b)}class yI{constructor(){this.head=this.tail=null,this.length=0}removeLink(b){return b.prev?b.prev.next=b.next:this.head=b.next,b.next?b.next.prev=b.prev:this.tail=b.prev,b.prev=b.next=null,this.length-=1,b}empty(){for(;this.head;)this.shift();return this}insertAfter(b,S){S.prev=b,S.next=b.next,b.next?b.next.prev=S:this.tail=S,b.next=S,this.length+=1}insertBefore(b,S){S.prev=b.prev,S.next=b,b.prev?b.prev.next=S:this.head=S,b.prev=S,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):BI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):BI(this,b)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var b=this.head;b;)yield b.data,b=b.next}remove(b){for(var S=this.head;S;){var{next:F}=S;b(S)&&this.removeLink(S),S=F}return this}}function BI(w,b){w.length=1,w.head=w.tail=b}function Vp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),G=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function re(qe,be){let Ye=(...Nt)=>{Se(qe,Ye),be(...Nt)};J[qe].push(Ye)}function Se(qe,be){if(!qe)return Object.keys(J).forEach(Ye=>J[Ye]=[]);if(!be)return J[qe]=[];J[qe]=J[qe].filter(Ye=>Ye!==be)}function Bt(qe,...be){J[qe].forEach(Ye=>Ye(...be))}var Lt=!1;function St(qe,be,Ye,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Ut.started=!0;var Br,Dn;function So(Oh,...xI){if(Oh)return Ye?Dn(Oh):Br();if(xI.length<=1)return Br(xI[0]);Br(xI)}var jp=Ut._createTaskItem(qe,Ye?So:Nt||So);if(be?Ut._tasks.unshift(jp):Ut._tasks.push(jp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Oh,xI)=>{Br=Oh,Dn=xI})}function wo(qe){return function(be,...Ye){G-=1;for(var Nt=0,Br=qe.length;Nt<Br;Nt++){var Dn=qe[Nt],So=Y.indexOf(Dn);So===0?Y.shift():So>0&&Y.splice(So,1),Dn.callback(be,...Ye),be!=null&&Bt("error",be,Dn.data)}G<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function zp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Ph=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{re(qe,(Br,Dn)=>{if(Br)return Nt(Br);Ye(Dn)})});Se(qe),j(qe,be)};var TI=!1,Ut={_tasks:new yI,_createTaskItem(qe,be){return{data:qe,callback:be}},*[Symbol.iterator](){yield*Ut._tasks[Symbol.iterator]()},concurrency:b,payload:S,buffer:b/4,started:!1,paused:!1,push(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!0,be)):St(qe,!1,!0,be)},kill(){Se(),Ut._tasks.empty()},unshift(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?zp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!TI){for(TI=!0;!Ut.paused&&G<Ut.concurrency&&Ut._tasks.length;){var qe=[],be=[],Ye=Ut._tasks.length;Ut.payload&&(Ye=Math.min(Ye,Ut.payload));for(var Nt=0;Nt<Ye;Nt++){var Br=Ut._tasks.shift();qe.push(Br),Y.push(Br),be.push(Br.data)}G+=1,Ut._tasks.length===0&&Bt("empty"),G===Ut.concurrency&&Bt("saturated");var Dn=te(wo(qe));F(be,Dn)}TI=!1}},length(){return Ut._tasks.length},running(){return G},workersList(){return Y},idle(){return Ut._tasks.length+G===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Ph("saturated")},unsaturated:{writable:!1,value:Ph("unsaturated")},empty:{writable:!1,value:Ph("empty")},drain:{writable:!1,value:Ph("drain")},error:{writable:!1,value:Ph("error")}}),Ut}function bI(w,b){return Vp(w,1,b)}function Wp(w,b,S){return Vp(w,b,S)}function Qo(w,b,S,F){F=V(F);var G=E(S);return Zs(w,(Y,J,j)=>{G(b,Y,(re,Se)=>{b=Se,j(re)})},Y=>F(Y,b))}var xa=m(Qo,4);function Jp(...w){var b=w.map(E);return function(...S){var F=this,G=S[S.length-1];return typeof G=="function"?S.pop():G=cu(),xa(b,S,(Y,J,j)=>{J.apply(F,Y.concat((re,...Se)=>{j(re,Se)}))},(Y,J)=>G(Y,...J)),G[au]}}function G1(...w){return Jp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var H=m(we,4);function T(w,b,S,F){var G=E(S);return H(w,b,(Y,J)=>{G(Y,(j,...re)=>j?J(j):J(j,re))},(Y,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(Y,j)})}var q=m(T,4);function K(w,b,S){return q(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});Fr[is]||(S2e=global[is]||[],T2e(Fr,S2e),Fr.close=(function(t){function e(r,n){return t.call(Fr,r,function(s){s||N2e(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,iF,{value:t}),e})(Fr.close),Fr.closeSync=(function(t){function e(r){t.apply(Fr,arguments),N2e()}return Object.defineProperty(e,iF,{value:t}),e})(Fr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){fp(Fr[is]),Q("assert").equal(Fr[is].length,0)}));var S2e;global[is]||T2e(global,Fr[is]);tK.exports=Zj(EFt(Fr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!Fr.__patched&&(tK.exports=Zj(Fr),Fr.__patched=!0);function Zj(t){pFt(t),t.gracefulify=Zj,t.createReadStream=M,t.createWriteStream=V;var e=t.readFile;t.readFile=r;function r(v,z,X){return typeof z=="function"&&(X=z,z=null),te(v,z,X);function te(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?CC([te,[ce,ue,Fe],et,ke||Date.now(),Date.now()]):typeof Fe=="function"&&Fe.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(v,z,X,te){return typeof X=="function"&&(te=X,X=0),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(v,z,X){typeof z=="function"&&(X=z,z=null);var te=u.test(process.version)?function(Fe,ke,et,Ft){return A(Fe,ce(Fe,ke,et,Ft))}:function(Fe,ke,et,Ft){return A(Fe,ke,ce(Fe,ke,et,Ft))};return te(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?CC([te,[ue,Fe,ke],Ft,et||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof ke=="function"&&ke.call(this,Ft,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=mFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=I);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(v){m=v},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(v){y=v},enumerable:!0,configurable:!0});var g=m;Object.defineProperty(t,"FileReadStream",{get:function(){return g},set:function(v){g=v},enumerable:!0,configurable:!0});var E=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(v){E=v},enumerable:!0,configurable:!0});function m(v,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function I(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.autoClose&&v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X),v.read())})}function y(v,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function B(){var v=this;P(v.path,v.flags,v.mode,function(z,X){z?(v.destroy(),v.emit("error",z)):(v.fd=X,v.emit("open",X))})}function M(v,z){return new t.ReadStream(v,z)}function V(v,z){return new t.WriteStream(v,z)}var k=t.open;t.open=P;function P(v,z,X,te){return typeof X=="function"&&(te=X,X=null),ce(v,z,X,te);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,En){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?CC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function CC(t){fp("ENQUEUE",t[0].name,t[1]),Fr[is].push(t),eK()}var sF;function N2e(){for(var t=Date.now(),e=0;e<Fr[is].length;++e)Fr[is][e].length>2&&(Fr[is][e][3]=t,Fr[is][e][4]=t);eK()}function eK(){if(clearTimeout(sF),sF=void 0,Fr[is].length!==0){var t=Fr[is].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)fp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){fp("TIMEOUT",e.name,r);var o=r.pop();typeof o=="function"&&o.call(null,n)}else{var a=Date.now()-i,c=Math.max(i-s,1),A=Math.min(c*1.2,100);a>=A?(fp("RETRY",e.name,r),e.apply(null,r.concat([s]))):Fr[is].push(t)}sF===void 0&&(sF=setTimeout(eK,0))}}});var oF=C((MSr,x2e)=>{"use strict";var JA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";JA.writable=t=>JA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";JA.readable=t=>JA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};a_e.exports={AggregateError:LK,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 UK=C((WNr,c_e)=>{"use strict";c_e.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=C((JNr,l_e)=>{"use strict";var{format:HPt,inspect:wF}=UK(),{AggregateError:GPt}=Rr(),qPt=globalThis.AggregateError||GPt,YPt=Symbol("kIsNodeError"),VPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],WPt=/^([A-Z][a-z0-9]*)+$/,JPt="__node_internal_",SF={};function mp(t,e){if(!t)throw new SF.ERR_INTERNAL_ASSERTION(e)}function A_e(t){let e="",r=t.length,n=t[0]==="-"?1:0;for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function zPt(t,e,r){if(typeof e=="function")return mp(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 mp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:HPt(e,...r)}function as(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(zPt(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[YPt]=!0,SF[t]=n}function u_e(t){let e=JPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function jPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new qPt([e,t],e.message);return r.code=e.code,r}return t||e}var PK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new SF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};as("ERR_ASSERTION","%s",Error);as("ERR_INVALID_ARG_TYPE",(t,e,r)=>{mp(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 c of e)mp(typeof c=="string","All expected entries have to be of type string"),VPt.includes(c)?s.push(c.toLowerCase()):WPt.test(c)?i.push(c):(mp(c!=="object",'The value "object" should be written as "Object"'),o.push(c));if(i.length>0){let c=s.indexOf("object");c!==-1&&(s.splice(s,c,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+=EZ(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=EZ(" "+s+"="+n[s]+`
`);return kt.from(r)};oI.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};oI.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,Dh(e.mode&c7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),g7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=XM+h7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(i7t,r,CZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-XM,i=iI(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=d7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(A7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!u7t(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:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function A7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function u7t(t){return kt.equals(o7t,t.subarray(D1,D1+6))&&kt.equals(a7t,t.subarray(CZ,CZ+2))}function l7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function d7t(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 h7t(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 _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(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 Dh(t,e){return t=t.toString(8),t.length>e?s7t.slice(0,e)+" ":n7t.slice(0,e-t.length)+t+" "}function f7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function g7t(t,e,r){t.toString(8).length>11?f7t(t,e,r):kt.write(e,Dh(t,11),r)}function p7t(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 Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return p7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=l7t(_3e(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 iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(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 O3e=C((ERr,P3e)=>{var{Writable:m7t,Readable:E7t,getStreamError:M3e}=mZ(),C7t=rZ(),L3e=eI(),aI=IZ(),I7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new C7t,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 I7t;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 L3e.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)}},bZ=class extends E7t{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(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends m7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(r3.EOL),Ra("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=t3.Failure,Yi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function O(t){Ra("debug",{},t)}function Yi(t,e={}){Ra("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Ra("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Ra("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+r3.EOL)}function yAe(t){EL("group",t)}function BAe(){EL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Ra("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as G_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(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${$Ke}`)}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 a3=ge(NAe(),1),TAe=ge(aT(),1),u$e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(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 RAe(t){return new a3.HttpClient().getAgent(t)}function l$e(t){return new a3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function c3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){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 bT(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)=>bT.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 vAe(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(c=>(a=c,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 _Ae(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 FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,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]=MAe(vAe,null). Line truncated
`);return kt.from(r)};oI.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};oI.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,Dh(e.mode&A7t,6),100),kt.write(r,Dh(e.uid,6),108),kt.write(r,Dh(e.gid,6),116),p7t(e.size,r,124),kt.write(r,Dh(e.mtime.getTime()/1e3|0,11),136),r[156]=eL+f7t(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(v3e,r,D1),kt.copy(o7t,r,CZ),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Dh(e.devmajor||0,6),329),kt.write(r,Dh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Dh(F3e(r),6),148),r)};oI.decode=function(e,r,n){let s=e[156]===0?0:e[156]-eL,i=iI(e,0,100,r),o=Rh(e,100,8),a=Rh(e,108,8),c=Rh(e,116,8),A=Rh(e,124,12),u=Rh(e,136,12),l=h7t(s),d=e[157]===0?null:iI(e,157,100,r),h=iI(e,265,32),f=iI(e,297,32),g=Rh(e,329,8),E=Rh(e,337,8),m=F3e(e);if(m===256)return null;if(m!==Rh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(u7t(e))e[345]&&(i=iI(e,345,155,r)+"/"+i);else if(!l7t(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:c,size:A,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:g,devminor:E,pax:null}};function u7t(t){return kt.equals(v3e,t.subarray(D1,D1+6))}function l7t(t){return kt.equals(a7t,t.subarray(D1,D1+6))&&kt.equals(c7t,t.subarray(CZ,CZ+2))}function d7t(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function h7t(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 f7t(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 _3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function F3e(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 Dh(t,e){return t=t.toString(8),t.length>e?i7t.slice(0,e)+" ":s7t.slice(0,e-t.length)+t+" "}function g7t(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function p7t(t,e,r){t.toString(8).length>11?g7t(t,e,r):kt.write(e,Dh(t,11),r)}function m7t(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 Rh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return m7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=d7t(_3e(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 iI(t,e,r,n){return kt.toString(t.subarray(e,_3e(t,0,e,e+r)),n)}function EZ(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 O3e=C((CRr,P3e)=>{var{Writable:E7t,Readable:C7t,getStreamError:M3e}=mZ(),I7t=rZ(),L3e=eI(),aI=IZ(),y7t=L3e.alloc(0),BZ=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new I7t,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 y7t;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 L3e.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)}},bZ=class extends C7t{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(M3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=U3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},QZ=class extends E7t{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function CAe(t,e){if(process.env.GITHUB_OUTPUT||"")return RI("OUTPUT",lS(t,e));process.stdout.write(s3.EOL),Da("set-output",{name:t},Qc(e))}function gf(t){process.exitCode=n3.Failure,Yi(t)}function Ga(){return process.env.RUNNER_DEBUG==="1"}function O(t){Da("debug",{},t)}function Yi(t,e={}){Da("error",cS(e),t instanceof Error?t.toString():t)}function je(t,e={}){Da("warning",cS(e),t instanceof Error?t.toString():t)}function IAe(t,e={}){Da("notice",cS(e),t instanceof Error?t.toString():t)}function Z(t){process.stdout.write(t+s3.EOL)}function yAe(t){IL("group",t)}function BAe(){IL("endgroup")}function pT(t,e){return zKe(this,void 0,void 0,function*(){yAe(t);let r;try{r=yield e()}finally{BAe()}return r})}function Uc(t,e){if(process.env.GITHUB_STATE||"")return RI("STATE",lS(t,e));Da("save-state",{name:t},Qc(e))}function My(t){return process.env[`STATE_${t}`]||""}import*as $z from"fs";import*as Xz from"path";import*as Y_ from"os";import{readFileSync as jKe,existsSync as KKe}from"fs";import{EOL as $Ke}from"os";var Jm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(KKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(jKe(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${$Ke}`)}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 A3=ge(NAe(),1),TAe=ge(aT(),1),u$e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function xAe(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 RAe(t){return new A3.HttpClient().getAgent(t)}function l$e(t){return new A3.HttpClient().getAgentDispatcher(t)}function DAe(t){let e=l$e(t);return(n,s)=>u$e(this,void 0,void 0,function*(){return(0,TAe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function kAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function u3(t){var e;let r=(e=process.env.ACTIONS_ORCHESTRATION_ID)===null||e===void 0?void 0:e.trim();if(r){let s=`actions_orchestration_id/${r.replace(/[^a-z0-9_.-]/gi,"_")}`;return t?.includes(s)?t:`${t?`${t} `:""}${s}`}return t}function Zl(){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 bT(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)=>bT.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 vAe(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(c=>(a=c,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 _Ae(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 FAe=Function.bind,MAe=FAe.bind(FAe);function LAe(t,e,r){let n=MAe(_Ae,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]=MAe(vAe,null). Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(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(tXe.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)=>eXe.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 cue.test(i)&&(s.url=i.replace(cue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Z$e(s,a,o.data)}return o.data.data})}function m3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:m3.bind(null,r),endpoint:r.endpoint})}var Zjt=m3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return m3(t,{method:"POST",url:"/graphql"})}var E3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${E3}${uue}${E3}${uue}${E3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(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 iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=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(sXe.bind(null,e),{hook:oXe.bind(null,e)})};var C3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${C3} ${Zl()}`,ST=class{static VERSION=C3;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 UAe.Collection,n={baseUrl:Py.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} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),this.log=AXe(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=due(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 I3="17.0.0";var uXe={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/{secret_name}"],createOrgVaria Line truncated
`)}var Z$e=class extends Error{constructor(t,e,r){super(X$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},eXe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],tXe=["query","method","url"],cue=/\/api\/v3\/?$/;function rXe(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(tXe.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)=>eXe.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 cue.test(i)&&(s.url=i.replace(cue,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new Z$e(s,a,o.data)}return o.data.data})}function C3(t,e){let r=t.defaults(e);return Object.assign((s,i)=>rXe(r,s,i),{defaults:C3.bind(null,r),endpoint:r.endpoint})}var eKt=C3(Py,{headers:{"user-agent":`octokit-graphql.js/${$$e} ${Zl()}`},method:"POST",url:"/graphql"});function Aue(t){return C3(t,{method:"POST",url:"/graphql"})}var I3="(?:[a-zA-Z0-9_-]+)",uue="\\.",lue=new RegExp(`^${I3}${uue}${I3}${uue}${I3}$`),nXe=lue.test.bind(lue);async function sXe(t){let e=nXe(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 iXe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function oXe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=iXe(t),e(s)}var due=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(sXe.bind(null,e),{hook:oXe.bind(null,e)})};var y3="7.0.6";var hue=()=>{},aXe=console.warn.bind(console),cXe=console.error.bind(console);function AXe(t={}){return typeof t.debug!="function"&&(t.debug=hue),typeof t.info!="function"&&(t.info=hue),typeof t.warn!="function"&&(t.warn=aXe),typeof t.error!="function"&&(t.error=cXe),t}var fue=`octokit-core.js/${y3} ${Zl()}`,ST=class{static VERSION=y3;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 UAe.Collection,n={baseUrl:Py.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} ${fue}`:fue,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Py.defaults(n),this.graphql=Aue(this.request).defaults(n),this.log=AXe(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=due(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 B3="17.0.0";var uXe={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/{secret_name}"],createOrgVaria 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 Vy(i));return n.searchPaths.push(...T3(n.patterns)),n})}static stat(e,r,n){return _3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Xm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Xm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Xm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var WXe=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Vue(t,e){return WXe(this,void 0,void 0,function*(){return yield kT.create(t,e)})}var Lde=ge(Xy(),1);import*as jT from"crypto";import*as r0 from"fs";import*as Qf from"path";import*as Ude from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var WT=2,JT=5e3,t8=5e3,r8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",n8="manifest.txt",J$t=10*Math.pow(1024,3),zT="cache read denied:";var t0=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nrt=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,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},srt="1.0";function tB(){return t0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,jT.randomUUID());return yield ff(r),r})}function Oc(t){return r0.statSync(t).size}function s8(t){return t0(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(),c=yield Vue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=nrt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return t0(this,void 0,void 0,function*(){return Ude.promisify(r0.unlink)(t)})}function Pde(t){return t0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Lc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return t0(this,void 0,void 0,function*(){let t=yield Pde("zstd",["--quiet"]),e=Lde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function sd(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Ode(){return t0(this,void 0,void 0,function*(){return r0.existsSync(r8)?r8:(yield Pde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function i8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function n0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(srt),jT.createHash("sha256").update(n.join("|")).digest("hex")}function Hde(){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 v0 from"fs";import{URL as HAt}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as irt}from"node:os";import ort from"node:util";import art from"node:process";function Gde(t,...e){art.stderr.write(`${ort.format(t,...e)}${irt}`)}import sB from"node:process";function $T(t){return sB.env[t]}var qde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,Yde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,XT=!0;var Vde=$T("DEBUG"),Jde,o8=[],a8=[],ZT=[];Vde&&c8(Vde);var zde=Object.assign(t=>jde(t),{enable:c8,enabled:A8,disable:crt,log:Gde});function c8(t){Jde=t,o8=[],a8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?a8.push(r.substring(1)):o8.push(r);for(let r of ZT)r.enabled=A8(r.namespace)}function A8(t){if(t.endsWith("*"))return!0;for(let e of a8)if(Wde(t,e))return!1;for(let e of o8)if(Wde(t,e))return!0;return!1}function Wde(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,c=-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;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function crt(){let t=Jde||"";return c8(""),t}function jde(t){let e=Object.assign(r,{enabled:A8(t),destroy:Art,log:zde.log,namespace:t,extend:urt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZT.push(e),e}function Art(){let t=ZT.indexOf(this);return t>=0?(ZT.splice(t,1),!0):!1}function urt(t){let e=jde(`${this.namespace}:${t}`);return e.log=this.log,e}var s0=zde;var u8=["verbose","info","warning","error"],Kde={verbose:400,info:300,warning:200,error:100};function $de(t,e){e.log=(...r)=>{t.log(...r)}}function Xde(t){return u8.includes(t)}function ex(t){let e=new Set,r=$T(t.logLevelEnvVarName),n,s=s0(t.namespace);s.log=(...u)=>{s0.log(...u)};function i(u){if(u&&!Xde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${u8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);s0.enable(l.join(","))}r&&(Xde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${u8.join(", ")}.`));function o(u){return!!(n&&Kde[u.level]<=Kde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if($de(u,d),o(d)){let h=s0.disable();s0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return $de(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Zde=ex({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lrt=Zde.logger;function iB(t){return Zde.createClientLogger(t)}function tx(t){return t.toLowerCase()}function drt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hrt(t){for(let e of t.values())yield[e.name,e.value]}var l8=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(tx(e),{name:e,value:drt(r)})}get(e){return this._headersMap.get(tx(e))?.value}has(e){return this._ Line truncated
${mrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import g8 from"node:http";import p8 from"node:https";import rhe from"node:zlib";import{Transform as Ert}from"node:stream";var ci=iB("ts-http-runtime");var Crt={};function oB(t){return t&&typeof t.pipe=="function"}function nhe(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 she(t){return t&&typeof t.byteLength=="number"}var sx=class extends Ert{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}},m8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Wa;ci.info(`request to '${A.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 A=brt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new sx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?yrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new sx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Brt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=nhe(a));let u=Promise.resolve();oB(c)&&(u=nhe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.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((c,A)=>{let u=i?g8.request(a,c):p8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):she(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return p8.globalAgent;let s=e.tlsSettings??Crt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new p8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irt(t){let e=Ji();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 yrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rhe.createInflate();return t.pipe(n),n}return t}function Brt(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 brt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:she(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ihe(){return new m8}function ix(){return ihe()}var E8="logPolicy";function ox(t={}){let e=t.logger??ci.info,r=new Wa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:E8,asy Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Vy(i));return n.searchPaths.push(...R3(n.patterns)),n})}static stat(e,r,n){return M3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Xm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Xm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Xm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var WXe=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function Vue(t,e){return WXe(this,void 0,void 0,function*(){return yield kT.create(t,e)})}var Lde=ge(Xy(),1);import*as jT from"crypto";import*as r0 from"fs";import*as Qf from"path";import*as Ude from"util";var Zy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Zy||(Zy={}));var vs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vs||(vs={}));var Wi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Wi||(Wi={}));var WT=2,JT=5e3,n8=5e3,s8=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Mde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,eB="cache.tar",i8="manifest.txt",z$t=10*Math.pow(1024,3),zT="cache read denied:";var t0=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},nrt=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,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}},srt="1.0";function tB(){return t0(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=Qf.join(n,"actions","temp")}let r=Qf.join(e,jT.randomUUID());return yield ff(r),r})}function Oc(t){return r0.statSync(t).size}function o8(t){return t0(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(),c=yield Vue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=nrt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Qf.relative(a,s).replace(new RegExp(`\\${Qf.sep}`,"g"),"/");O(`Matched: ${h}`),h===""?o.push("."):o.push(`${h}`)}}catch(d){r={error:d}}finally{try{!A&&!e&&(n=u.return)&&(yield n.call(u))}finally{if(r)throw r.error}}return o})}function rB(t){return t0(this,void 0,void 0,function*(){return Ude.promisify(r0.unlink)(t)})}function Pde(t){return t0(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),O(`Checking ${e} ${r.join(" ")}`);try{yield Lc(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){O(s.message)}return n=n.trim(),O(n),n})}function nB(){return t0(this,void 0,void 0,function*(){let t=yield Pde("zstd",["--quiet"]),e=Lde.clean(t);return O(`zstd version: ${e}`),t===""?vs.Gzip:vs.ZstdWithoutLong})}function sd(t){return t===vs.Gzip?Zy.Gzip:Zy.Zstd}function Ode(){return t0(this,void 0,void 0,function*(){return r0.existsSync(s8)?s8:(yield Pde("tar")).toLowerCase().includes("gnu tar")?qi("tar"):""})}function a8(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function n0(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(srt),jT.createHash("sha256").update(n.join("|")).digest("hex")}function Hde(){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 v0 from"fs";import{URL as HAt}from"url";var Hc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as irt}from"node:os";import ort from"node:util";import art from"node:process";function Gde(t,...e){art.stderr.write(`${ort.format(t,...e)}${irt}`)}import sB from"node:process";function $T(t){return sB.env[t]}var qde=typeof sB.versions.deno=="string"&&sB.versions.deno.length>0,Yde=typeof sB.versions.bun=="string"&&sB.versions.bun.length>0,XT=!0;var Vde=$T("DEBUG"),Jde,c8=[],A8=[],ZT=[];Vde&&u8(Vde);var zde=Object.assign(t=>jde(t),{enable:u8,enabled:l8,disable:crt,log:Gde});function u8(t){Jde=t,c8=[],A8=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?A8.push(r.substring(1)):c8.push(r);for(let r of ZT)r.enabled=l8(r.namespace)}function l8(t){if(t.endsWith("*"))return!0;for(let e of A8)if(Wde(t,e))return!1;for(let e of c8)if(Wde(t,e))return!0;return!1}function Wde(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,c=-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;c=n,n++,s++;continue}else if(r[s]===t[n])s++,n++;else if(a>=0){if(s=a+1,n=c+1,n===o)return!1;for(;t[n]!==r[s];)if(n++,n===o)return!1;c=n,n++,s++;continue}else return!1;let A=n===t.length,u=s===r.length,l=s===r.length-1&&r[s]==="*";return A&&(u||l)}function crt(){let t=Jde||"";return u8(""),t}function jde(t){let e=Object.assign(r,{enabled:l8(t),destroy:Art,log:zde.log,namespace:t,extend:urt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ZT.push(e),e}function Art(){let t=ZT.indexOf(this);return t>=0?(ZT.splice(t,1),!0):!1}function urt(t){let e=jde(`${this.namespace}:${t}`);return e.log=this.log,e}var s0=zde;var d8=["verbose","info","warning","error"],Kde={verbose:400,info:300,warning:200,error:100};function $de(t,e){e.log=(...r)=>{t.log(...r)}}function Xde(t){return d8.includes(t)}function ex(t){let e=new Set,r=$T(t.logLevelEnvVarName),n,s=s0(t.namespace);s.log=(...u)=>{s0.log(...u)};function i(u){if(u&&!Xde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${d8.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);s0.enable(l.join(","))}r&&(Xde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${d8.join(", ")}.`));function o(u){return!!(n&&Kde[u.level]<=Kde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if($de(u,d),o(d)){let h=s0.disable();s0.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return $de(s,l),{error:a(l,"error"),warning:a(l,"warning"),info:a(l,"info"),verbose:a(l,"verbose")}}return{setLogLevel:i,getLogLevel:c,createClientLogger:A,logger:s}}var Zde=ex({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lrt=Zde.logger;function iB(t){return Zde.createClientLogger(t)}function tx(t){return t.toLowerCase()}function drt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hrt(t){for(let e of t.values())yield[e.name,e.value]}var h8=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(tx(e),{name:e,value:drt(r)})}get(e){return this._headersMap.get(tx(e))?.value}has(e){return this._ Line truncated
${mrt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function i0(t){return t instanceof _s?!0:Sf(t)&&t.name==="RestError"}function ai(t,e){return Buffer.from(t,e)}import m8 from"node:http";import E8 from"node:https";import rhe from"node:zlib";import{Transform as Ert}from"node:stream";var ci=iB("ts-http-runtime");var Crt={};function oB(t){return t&&typeof t.pipe=="function"}function nhe(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 she(t){return t&&typeof t.byteLength=="number"}var sx=class extends Ert{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}},C8=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Hc("The operation was aborted. Request has already been canceled.");n=A=>{A.type==="abort"&&r.abort()},e.abortSignal.addEventListener("abort",n)}let s;e.timeout>0&&(s=setTimeout(()=>{let A=new Wa;ci.info(`request to '${A.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 A=brt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new sx(f);g.on("error",E=>{ci.error("Error in upload progress",E)}),oB(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Irt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?yrt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new sx(h);f.on("error",g=>{ci.error("Error in download progress",g)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Brt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();oB(a)&&(A=nhe(a));let u=Promise.resolve();oB(c)&&(u=nhe(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ci.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((c,A)=>{let u=i?m8.request(a,c):E8.request(a,c);u.once("error",l=>{A(new _s(l.message,{code:l.code??_s.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Hc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&oB(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):she(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ci.error("Unrecognized body type",n),A(new _s("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?m8.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new m8.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return E8.globalAgent;let s=e.tlsSettings??Crt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ci.info("No cached TLS Agent exist, creating a new Agent"),i=new E8.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Irt(t){let e=Ji();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 yrt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=rhe.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=rhe.createInflate();return t.pipe(n),n}return t}function Brt(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 brt(t){return t?Buffer.isBuffer(t)?t.length:oB(t)?null:she(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function ihe(){return new C8}function ix(){return ihe()}var I8="logPolicy";function ox(t={}){let e=t.logger??ci.info,r=new Wa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:I8,asy Line truncated
`;return e}function Ynt(t){return t instanceof Uint8Array?t.byteLength:AB(t)?t.size===-1?void 0:t.size:void 0}function Vnt(t){let e=0;for(let r of t){let n=Ynt(r);if(n===void 0)return;e+=n}return e}async function Wnt(t,e,r){let n=[ai(`--${r}`,"utf-8"),...e.flatMap(i=>[ai(`\r
`,"utf-8"),ai(qnt(i.headers),"utf-8"),ai(`\r
`,"utf-8"),i.body,ai(`\r
--${r}`,"utf-8")]),ai(`--\r
\r
`,"utf-8")],s=Vnt(n);s&&t.headers.set("Content-Length",s),t.body=await $he(n)}var uB="multipartPolicy",Jnt=70,znt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jnt(t){if(t.length>Jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!znt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Tx(){return{name:uB,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?jnt(r):r=Gnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xx(){return nx()}var Xhe=ex({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jtr=Xhe.logger;function Oo(t){return Xhe.createClientLogger(t)}var qc=Oo("core-rest-pipeline");function M8(t={}){return ox({logger:qc.info,...t})}var L8=Sx;function U8(t={}){return Nx(t)}import P8 from"node:os";import ad from"node:process";function Zhe(){return"User-Agent"}async function efe(t){if(ad&&ad.versions){let e=`${P8.type()} ${P8.release()}; ${P8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var Rx="1.24.0";function nst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tfe(){return Zhe()}async function Dx(t){let e=new Map;e.set("core-rest-pipeline",Rx),await efe(e);let r=nst(e);return t?`${t} ${r}`:r}var rfe=tfe(),nfe="userAgentPolicy";function O8(t={}){let e=Dx(t.userAgentPrefix);return{name:nfe,async sendRequest(r,n){return r.headers.has(rfe)||r.headers.set(rfe,await e),n(r)}}}var sfe=Symbol("rawContent");function H8(t){return typeof t[sfe]=="function"}function ife(t){return H8(t)?t[sfe]():t}var kx=uB;function G8(){let t=Tx();return{name:kx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)H8(n.body)&&(n.body=ife(n.body));return t.sendRequest(e,r)}}}var q8=Qx;function Y8(){return wx()}function V8(t={}){return Ax(t)}function W8(){return ux()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function J8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var dst="The delay was aborted.";function l0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return J8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dst})}function cd(t){if(Sf(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 ofe(t){return Sf(t)}function d0(){return wf()}var Jt=XT;function Ad(t){return k8(t)}function j8(t,e){return bx(t,e)}var afe="setClientRequestIdPolicy";function K8(t="x-ms-client-request-id"){return{name:afe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function $8(t){return lx(t)}function X8(t){return dx(t)}var h0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cfe(t={}){let e=new Z8(t.parentContext);return t.span&&(e=e.setValue(h0.span,t.span)),t.namespace&&(e=e.setValue(h0.namespace,t.namespace)),e}var Z8=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ufe=ge(Afe(),1),_x=ufe.state;function hst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function fst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hst(),tracingContext:cfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return _x.instrumenterImplementation||(_x.instrumenterImplementation=fst()),_x.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`,"utf-8")],s=Vnt(n);s&&t.headers.set("Content-Length",s),t.body=await $he(n)}var uB="multipartPolicy",Jnt=70,znt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jnt(t){if(t.length>Jnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!znt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function Tx(){return{name:uB,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?jnt(r):r=Gnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function xx(){return nx()}var Xhe=ex({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Ktr=Xhe.logger;function Ho(t){return Xhe.createClientLogger(t)}var qc=Ho("core-rest-pipeline");function U8(t={}){return ox({logger:qc.info,...t})}var P8=Sx;function O8(t={}){return Nx(t)}import H8 from"node:os";import ad from"node:process";function Zhe(){return"User-Agent"}async function efe(t){if(ad&&ad.versions){let e=`${H8.type()} ${H8.release()}; ${H8.arch()}`;ad.versions.bun?t.set("Bun",`${ad.versions.bun} (${e})`):ad.versions.deno?t.set("Deno",`${ad.versions.deno} (${e})`):ad.versions.node&&t.set("Node",`${ad.versions.node} (${e})`)}}var Rx="1.24.0";function nst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function tfe(){return Zhe()}async function Dx(t){let e=new Map;e.set("core-rest-pipeline",Rx),await efe(e);let r=nst(e);return t?`${t} ${r}`:r}var rfe=tfe(),nfe="userAgentPolicy";function G8(t={}){let e=Dx(t.userAgentPrefix);return{name:nfe,async sendRequest(r,n){return r.headers.has(rfe)||r.headers.set(rfe,await e),n(r)}}}var sfe=Symbol("rawContent");function q8(t){return typeof t[sfe]=="function"}function ife(t){return q8(t)?t[sfe]():t}var kx=uB;function Y8(){let t=Tx();return{name:kx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)q8(n.body)&&(n.body=ife(n.body));return t.sendRequest(e,r)}}}var V8=Qx;function W8(){return wx()}function J8(t={}){return Ax(t)}function z8(){return ux()}var lB=class extends Error{constructor(e){super(e),this.name="AbortError"}};function j8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new lB(s??"The operation was aborted."))}function c(){n?.removeEventListener("abort",A)}function A(){r?.(),c(),a()}if(n?.aborted)return a();try{t(u=>{c(),i(u)},u=>{c(),o(u)})}catch(u){o(u)}n?.addEventListener("abort",A)})}var dst="The delay was aborted.";function l0(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return j8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??dst})}function cd(t){if(Sf(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 ofe(t){return Sf(t)}function d0(){return wf()}var Jt=XT;function Ad(t){return _8(t)}function $8(t,e){return bx(t,e)}var afe="setClientRequestIdPolicy";function X8(t="x-ms-client-request-id"){return{name:afe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function Z8(t){return lx(t)}function e4(t){return dx(t)}var h0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function cfe(t={}){let e=new t4(t.parentContext);return t.span&&(e=e.setValue(h0.span,t.span)),t.namespace&&(e=e.setValue(h0.namespace,t.namespace)),e}var t4=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var ufe=ge(Afe(),1),_x=ufe.state;function hst(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function fst(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:hst(),tracingContext:cfe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dB(){return _x.instrumenterImplementation||(_x.instrumenterImplementation=fst()),_x.instrumenterImplementation}function hB(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dB().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span Line truncated
`&&t[i]!=="\r";i++)c+=t[i];if(c=c.trim(),c[c.length-1]==="/"&&(c=c.substring(0,c.length-1),i--),!Mit(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",tn("InvalidTag",l,Fs(t,i))}let A=Dit(t,i);if(A===!1)return tn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fs(t,i));let u=A.value;if(i=A.index,u[u.length-1]==="/"){let l=i-u.length;u=u.substring(0,u.length-1);let d=Vfe(u,e);if(d===!0)n=!0;else return tn(d.err.code,d.err.msg,Fs(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return tn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fs(t,o));if(r.length===0)return tn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fs(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fs(t,l.tagStartPos);return tn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fs(t,o))}r.length==0&&(s=!0)}}else return tn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fs(t,i));else{let l=Vfe(u,e);if(l!==!0)return tn(l.err.code,l.err.msg,Fs(t,i-u.length+l.err.line));if(s===!0)return tn("InvalidXml","Multiple possible root nodes found.",Fs(t,i));e.unpairedTags.indexOf(c)!==-1||r.push({tagName:c,tagStartPos:o}),n=!0}for(i++;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="!"){i++,i=Yfe(t,i);continue}else if(t[i+1]==="?"){if(i=qfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=_it(t,i);if(l==-1)return tn("InvalidChar","char '&' is not expected.",Fs(t,i));i=l}else if(s===!0&&!Gfe(t[i]))return tn("InvalidXml","Extra text at the end",Fs(t,i));t[i]==="<"&&i--}}else{if(Gfe(t[i]))continue;return tn("InvalidChar","char '"+t[i]+"' is not expected.",Fs(t,i))}if(n){if(r.length==1)return tn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fs(t,r[0].tagStartPos));if(r.length>0)return tn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return tn("InvalidXml","Start tag expected.",1);return!0}function Gfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function qfe(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 tn("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 Yfe(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 xit='"',Rit="'";function Dit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xit||t[e]===Rit)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 kit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vfe(t,e){let r=qx(t,kit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Fit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function vit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function _it(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Fit(t){return m4(t)}function Mit(t){return m4(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 bB(t){return t.startIndex+t[1].length}var Wfe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Jfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},zfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=C0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=w4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=S4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=C0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=C0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=S4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=cot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=aot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=w4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function fot(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 got(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}return this.entityDecoder.decode(t)}function pot(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function mot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Eot(t,e,r=">"){Line truncated
`;function Sot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(k4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Ige(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function D4(t,e){let r="";e.format&&(r=wot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Sot(t,e),i=new Wc;return yge(t,e,r,i,n,s)}function yge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=R4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=k4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Ige(u,!1,e,n,i),h=Not(A[":@"],e);n.push(d,h);let f=xot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=R4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=eR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Zx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Cge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Cge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Bge(A[u],e):I=yge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Not(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]=dd(t[s]),n=!0}return n?r:null}function Bge(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=k4(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=Tot(s[":@"],e),a=Bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tot(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)}="${dd(s)}"`}return r}function k4(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 Cge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Ige(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=R4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function xot(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 R4(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 v4(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 Rot={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,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Rot,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 $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`||t==="\r"}function qfe(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 tn("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 Yfe(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 xit='"',Rit="'";function Dit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===xit||t[e]===Rit)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 kit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Vfe(t,e){let r=qx(t,kit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return tn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return tn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bB(r[s]));let i=r[s][2];if(!Fit(i))return tn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return tn("InvalidAttr","Attribute '"+i+"' is repeated.",bB(r[s]))}return!0}function vit(t,e){let r=/\d/;for(t[e]==="x"&&(e++,r=/[\da-fA-F]/);e<t.length;e++){if(t[e]===";")return e;if(!t[e].match(r))break}return-1}function _it(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,vit(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function tn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Fit(t){return C4(t)}function Mit(t){return C4(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 bB(t){return t.startIndex+t[1].length}var Wfe={amp:"&",AMP:"&",lt:"<",LT:"<",gt:">",GT:">",quot:'"',QUOT:'"',apos:"'",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",lsquor:"\u201A",rsquor:"\u2019",ldquor:"\u201E",bdquo:"\u201E",comma:",",period:".",colon:":",semi:";",excl:"!",quest:"?",num:"#",dollar:"$",percent:"%",ast:"*",commat:"@",lowbar:"_",verbar:"|",vert:"|",sol:"/",bsol:"\\",lbrace:"{",rbrace:"}",lbrack:"[",rbrack:"]",lpar:"(",rpar:")",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",COPY:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",REG:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",half:"\xBD",frac34:"\xBE",iquest:"\xBF",times:"\xD7",div:"\xF7",divide:"\xF7"},Jfe={Agrave:"\xC0",agrave:"\xE0",Aacute:"\xC1",aacute:"\xE1",Acirc:"\xC2",acirc:"\xE2",Atilde:"\xC3",atilde:"\xE3",Auml:"\xC4",auml:"\xE4",Aring:"\xC5",aring:"\xE5",AElig:"\xC6",aelig:"\xE6",Ccedil:"\xC7",ccedil:"\xE7",Egrave:"\xC8",egrave:"\xE8",Eacute:"\xC9",eacute:"\xE9",Ecirc:"\xCA",ecirc:"\xEA",Euml:"\xCB",euml:"\xEB",Igrave:"\xCC",igrave:"\xEC",Iacute:"\xCD",iacute:"\xED",Icirc:"\xCE",icirc:"\xEE",Iuml:"\xCF",iuml:"\xEF",ETH:"\xD0",eth:"\xF0",Ntilde:"\xD1",ntilde:"\xF1",Ograve:"\xD2",ograve:"\xF2",Oacute:"\xD3",oacute:"\xF3",Ocirc:"\xD4",ocirc:"\xF4",Otilde:"\xD5",otilde:"\xF5",Ouml:"\xD6",ouml:"\xF6",Oslash:"\xD8",oslash:"\xF8",Ugrave:"\xD9",ugrave:"\xF9",Uacute:"\xDA",uacute:"\xFA",Ucirc:"\xDB",ucirc:"\xFB",Uuml:"\xDC",uuml:"\xFC",Yacute:"\xDD",yacute:"\xFD",THORN:"\xDE",thorn:"\xFE",szlig:"\xDF",yuml:"\xFF",Yuml:"\u0178"},zfe={Amacr:"\u0100",amacr:"\u0101",Abreve:"\u0102",abreve:"\u0103",Aogon:"\u0104",aogon:"\u0105",Cacute:"\u0106",cacute:"\u0107",Ccirc:"\u0108",ccirc:"\u0109",Cdot:"\u010A",cdot:"\u010B",Ccaron:"\u010C",ccaron:"\u010D",Dcaron:"\u010E",dcaron:"\u010F",Dstrok:"\u0110",dstrok:"\u0111",Emacr:"\u0112",emacr:"\u0113",Ecaron:"\u011A",ecaron:"\u011B",Edot:"\u0116",edot:"\u0117",Eogon:"\u0118",eogon:"\u0119",Gcirc:"\u011C",gcirc:"\u011D",Gbreve:"\u011E",gbreve:"\u011F",Gdot:"\u0120",gdot:"\u0121",Gcedil:"\u0122",Hcirc:"\u0124",hcirc:"\u0125",Hstrok:"\u0126",hstrok:"\u0127",Itilde:"\u0128",itilde:"\u0129",Imacr:"\u012A",imacr:"\u012B",Iogon:"\u012E",iogon:"\u012F",Idot:"\u0130",IJlig:"\u0132",ijlig:"\u0133",Jcirc:"\u0134",jcirc:"\u0135",Kcedil:"\u0136",kcedil:"\u0137",kgreen:"\u0138",Lacute:"\u0139",lacute:"\u013A",Lcedil:"\u013B",lcedil:"\u013C",Lcaron:"\u013Line truncated
`);let e=new di("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new SB(s.processEntities),o=t.length;for(let a=0;a<o;a++)if(t[a]==="<"){let A=t.charCodeAt(a+1);if(A===47){let u=C0(t,">",a,"Closing Tag is not closed."),l=t.substring(a+2,u).trim();if(s.removeNSPrefix){let h=l.indexOf(":");h!==-1&&(l=l.substr(h+1))}l=N4(s.transformTagName,l,"",s).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let d=this.matcher.getCurrentTag();if(l&&s.unpairedTagsSet.has(l))throw new Error(`Unpaired tag can not be used as closing tag: </${l}>`);d&&s.unpairedTagsSet.has(d)&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",a=u}else if(A===63){let u=T4(t,a,!1,"?>");if(!u)throw new Error("Pi Tag is not closed.");n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let l=this.buildAttributesMap(u.tagExp,this.matcher,u.tagName,!0);if(l){let d=l[this.options.attributeNamePrefix+"version"];this.entityDecoder.setXmlVersion(Number(d)||1),i.setXmlVersion(Number(d)||1)}if(!(s.ignoreDeclaration&&u.tagName==="?xml"||s.ignorePiTags)){let d=new di(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=C0(t,"-->",a+4,"Comment is not closed.");if(s.commentPropName){let l=t.substring(a+4,u-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(s.commentPropName,[{[s.textNodeName]:l}])}a=u}else if(A===33&&t.charCodeAt(a+2)===68){let u=i.readDocType(t,a);this.entityDecoder.addInputEntities(u.entities),a=u.i}else if(A===33&&t.charCodeAt(a+2)===91){let u=C0(t,"]]>",a,"CDATA is not closed.")-2,l=t.substring(a+9,u);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let d=this.parseTextData(l,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);d==null&&(d=""),s.cdataPropName?r.add(s.cdataPropName,[{[s.textNodeName]:l}]):r.add(s.textNodeName,d),a=u+2}else{let u=T4(t,a,s.removeNSPrefix);if(!u){let V=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${V}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,g=u.closeIndex;if({tagName:l,tagExp:h}=N4(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let m=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(m=!0,l[l.length-1]==="/"?(l=l.substr(0,l.length-1),h=l):h=h.substr(0,h.length-1),f=l!==h);let I=null,y={},B;B=cot(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=aot(I,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let V="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,g+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,V=P.tagContent}let k=new di(l);I&&(k[":@"]=I),k.add(s.textNodeName,V),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=N4(s.transformTagName,l,h,s));let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let V=new di(l);I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let V=new di(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),I&&(V[":@"]=I),this.addChild(r,V,this.readonlyMatcher,M),r=V}n="",a=g}}}else n+=t[a];return e.child};function fot(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 got(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}return this.entityDecoder.decode(t)}function pot(t,e,r,n){return t&&(n===void 0&&(n=e.child.length===0),t=this.parseTextData(t,e.tagname,r,!1,e[":@"]?Object.keys(e[":@"]).length!==0:!1,n),t!==void 0&&t!==""&&e.add(this.options.textNodeName,t),t=""),t}function mot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Eot(t,e,r=">"){Line truncated
`;function Sot(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(_4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Ige(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function v4(t,e){let r="";e.format&&(r=wot);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let o=0;o<e.stopNodes.length;o++){let a=e.stopNodes[o];typeof a=="string"?n.push(new $i(a)):a instanceof $i&&n.push(a)}let s=Sot(t,e),i=new Wc;return yge(t,e,r,i,n,s)}function yge(t,e,r,n,s,i){let o="",a=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let c=t.toString();return c=k4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=_4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Ige(u,!1,e,n,i),h=Not(A[":@"],e);n.push(d,h);let f=xot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=k4(y,e)),a&&(o+=r),o+=y,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let y=A[u][0][e.textNodeName],B=eR(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Zx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Cge(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let g=r;g!==""&&(g+=e.indentBy);let E=Cge(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Bge(A[u],e):I=yge(A[u],e,g,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!I||I.length===0)&&e.suppressEmptyNode?o+=m+"/>":I&&I.endsWith(">")?o+=m+`>${I}${r}</${d}>`:(o+=m+">",I&&r!==""&&(I.includes("/>")||I.includes("</"))?o+=r+e.indentBy+I+r:o+=I,o+=`</${d}>`),a=!0,n.pop()}return o}function Not(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]=dd(t[s]),n=!0}return n?r:null}function Bge(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=_4(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=Tot(s[":@"],e),a=Bge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Tot(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)}="${dd(s)}"`}return r}function _4(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 Cge(t,e,r,n,s){let i="";if(t&&!e.ignoreAttributes)for(let o in t){if(!Object.prototype.hasOwnProperty.call(t,o))continue;let a=o.substr(e.attributeNamePrefix.length),c=r?a:Ige(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=k4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${dd(A)}"`}return i}function xot(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 k4(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 F4(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 Rot={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,sanitizeName:!1};function fi(t){if(this.options=Object.assign({},Rot,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 $i(r)):r instanceof $i&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,this.newLine=`
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Dot(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function _4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return D4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Dot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:_4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=_4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=_4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.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+'="'+dd(e)+'"'};function kot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.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]=dd(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]=dd(t[n]),r=!0)}return r?e:null};fi.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.isA Line truncated
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function Dot(t,e){let r=t["?xml"];if(r&&typeof r=="object"){if(e.attributesGroupName&&r[e.attributesGroupName]){let s=r[e.attributesGroupName][e.attributeNamePrefix+"version"];if(s)return s}let n=r[e.attributeNamePrefix+"version"];if(n)return n}return"1.0"}function M4(t,e,r,n,s){return!r.sanitizeName||vf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}fi.prototype.build=function(t){if(this.options.preserveOrder)return v4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Wc,r=Dot(t,this.options);return this.j2x(t,0,e,r).val}};fi.prototype.j2x=function(t,e,r,n){let s="",i="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let o=this.options.jPath?r.toString():r,a=this.checkStopNode(r);for(let c in t){if(!Object.prototype.hasOwnProperty.call(t,c))continue;let u=c===this.options.textNodeName||c===this.options.cdataPropName||c===this.options.commentPropName||this.options.attributesGroupName&&c===this.options.attributesGroupName||this.isAttribute(c)||c[0]==="?"?c:M4(c,!1,this.options,r,n);if(typeof t[c]>"u")this.isAttribute(c)&&(i+="");else if(t[c]===null)this.isAttribute(c)||u===this.options.cdataPropName||u===this.options.commentPropName?i+="":u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(t[c]instanceof Date)i+=this.buildTextValNode(t[c],u,"",e,r);else if(typeof t[c]!="object"){let l=this.isAttribute(c);if(l&&!this.ignoreAttributesFn(l,o)){let d=M4(l,!0,this.options,r,n);s+=this.buildAttrPairStr(d,""+t[c],a)}else if(!l)if(c===this.options.textNodeName){let d=this.options.tagValueProcessor(c,""+t[c]);i+=this.replaceEntitiesValue(d)}else{r.push(u);let d=this.checkStopNode(r);if(r.pop(),d){let h=""+t[c];h===""?i+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:i+=this.indentate(e)+"<"+u+">"+h+"</"+u+this.tagEndChar}else i+=this.buildTextValNode(t[c],u,"",e,r)}}else if(Array.isArray(t[c])){let l=t[c].length,d="",h="";for(let f=0;f<l;f++){let g=t[c][f];if(!(typeof g>"u"))if(g===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof g=="object")if(this.options.oneListGroup){r.push(u);let E=this.j2x(g,e+1,r,n);r.pop(),d+=E.val,this.options.attributesGroupName&&g.hasOwnProperty(this.options.attributesGroupName)&&(h+=E.attrStr)}else d+=this.processTextOrObjNode(g,u,e,r,n);else if(this.options.oneListGroup){let E=this.options.tagValueProcessor(u,g);E=this.replaceEntitiesValue(E),d+=E}else{r.push(u);let E=this.checkStopNode(r);if(r.pop(),E){let m=""+g;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(g,u,"",e,r)}}this.options.oneListGroup&&(d=this.buildObjectNode(d,u,h,e)),i+=d}else if(this.options.attributesGroupName&&c===this.options.attributesGroupName){let l=Object.keys(t[c]),d=l.length;for(let h=0;h<d;h++){let f=M4(l[h],!0,this.options,r,n);s+=this.buildAttrPairStr(f,""+t[c][l[h]],a)}}else i+=this.processTextOrObjNode(t[c],u,e,r,n)}return{attrStr:s,val:i}};fi.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+'="'+dd(e)+'"'};function kot(t,e,r,n,s){let i=this.extractAttributes(t);if(n.push(e,i),this.checkStopNode(n)){let c=this.buildRawContent(t),A=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(c,e,A,r)}let a=this.j2x(t,r+1,n,s);return n.pop(),e[0]==="?"?this.buildTextValNode("",e,a.attrStr,r,n):t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,a.attrStr,r,n):this.buildObjectNode(a.val,e,a.attrStr,r)}fi.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]=dd(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]=dd(t[n]),r=!0)}return r?e:null};fi.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.isA Line truncated
`)+`
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($e.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===$e.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE));r.sort((s,i)=>lR(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=cR(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=AR(e.url),i={};if(s){let o=[];for(let a in s)if(Object.prototype.hasOwnProperty.call(s,a)){let c=a.toLowerCase();i[c]=s[a],o.push(c)}o.sort();for(let a of o)n+=`
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return Yot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var yn=Oo("storage-common");var Ho;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Ho||(Ho={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vot=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.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=aR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yn.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(yn.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 yn.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 yn.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 yn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.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')?(yn.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 Ho.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Ho.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return yn.info(`RetryPolicy: Delay for ${s}ms`),uR(s,n,Vot)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var Wot="storageBrowserPolicy";function Nge(){return{name:Wot,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Jot="StorageCorrectContentLengthPolicy";function Tge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jot,async sendRequest(e,r){return t(e),r(e)}}}var zot="storageRetryPolicy",y0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Ho.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kot=new Lf("The operation was aborted.");function xge(t={}){let e=t.retryPolicyType??y0.retryPolicyType,r=t.maxTries??y0.maxTries,n=t.retryDelayInMs??y0.retryDelayInMs,s=t.maxRetryDelayInMs??y0.maxRetryDelayInMs,i=t.secondaryHost??y0.secondaryHost,o=t.tryTimeoutInMs??y0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return yn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
${a}:${decodeURIComponent(i[a])}`}return n}};var Or=class extends Mf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new DB(e,r,this)}computeHMACSHA256(e){return Yot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Lf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var yn=Ho("storage-common");var Go;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Go||(Go={}));var fd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Go.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vot=new Lf("The operation was aborted."),kB=class extends Jc{retryOptions;constructor(e,r,n=fd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:fd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):fd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:fd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:fd.maxRetryDelayInMs):fd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:fd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:fd.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=aR(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=hd(s.url,vu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(yn.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(yn.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 yn.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 yn.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 yn.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return yn.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get($e.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')?(yn.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 Go.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Go.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return yn.info(`RetryPolicy: Delay for ${s}ms`),uR(s,n,Vot)}};var vB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new kB(e,r,this.retryOptions)}};var Wot="storageBrowserPolicy";function Nge(){return{name:Wot,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=hd(t.url,vu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Jot="StorageCorrectContentLengthPolicy";function Tge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set($e.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:Jot,async sendRequest(e,r){return t(e),r(e)}}}var zot="storageRetryPolicy",y0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Go.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},jot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Kot=new Lf("The operation was aborted.");function xge(t={}){let e=t.retryPolicyType??y0.retryPolicyType,r=t.maxTries??y0.maxTries,n=t.retryDelayInMs??y0.retryDelayInMs,s=t.maxRetryDelayInMs??y0.maxRetryDelayInMs,i=t.secondaryHost??y0.secondaryHost,o=t.tryTimeoutInMs??y0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return yn.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of jot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=$ot("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set($e.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===$e.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith($e.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>lR(c.name.toLowerCase(),A.name.toLowerCase())),o=o.filter((c,A,u)=>!(A>0&&c.name.toLowerCase()===u[A-1].name.toLowerCase()));let a="";return o.forEach(c=>{a+=`${c.name.toLowerCase().trimRight()}:${c.value.trimLeft()}
`}),a}function s(i){let o=cR(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=AR(i.url),A={};if(c){let u=[];for(let l in c)if(Object.prototype.hasOwnProperty.call(c,l)){let d=l.toLowerCase();A[d]=c[l],u.push(d)}u.sort();for(let l of u)a+=`
${l}:${decodeURIComponent(A[l])}`}return a}return{name:Xot,async sendRequest(i,o){return e(i),o(i)}}}var Zot="storageRequestFailureDetailsParserPolicy";function Rge(){return{name:Zot,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 eat}from"node:crypto";var dR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eat("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",fR="2026-02-06";var gR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ja="",O4="*",tat=1*1024*1024;var rat=4*tat;var Dge="AES256",kge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["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"],_ge=["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"],Fge="BlobUsesCustomerSpecifiedEncryption",Mge="BlobDoesNotUseCustomerSpecifiedEncryption",Lge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function nat(t){let e=[sat,Uge,iat,oat,aat,cat,uat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Aat(s));return{wrappedPolicies:g4(r),afterRetry:n}}}}function H4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?p4(e):U4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${hR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:vge,additionalAllowedQueryParameters:_ge,logger:rR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:tR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:M4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:q8}),s.addPolicy(Tge()),s.addPolicy(xge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Rge()),s.addPolicy(Nge());let a=nat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=G4(t);ji(c)?s.addPolicy(f0({credential:c,scopes:r.audience?? Line truncated
`),r}}}}import{createHmac as eat}from"node:crypto";var dR=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return eat("sha256",this.key).update(e,"utf8").digest("base64")}};var hR="12.31.0",fR="2026-02-06";var gR="https://storage.azure.com/.default",_u={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ja="",G4="*",tat=1*1024*1024;var rat=4*tat;var Dge="AES256",kge="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",vge=["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"],_ge=["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"],Fge="BlobUsesCustomerSpecifiedEncryption",Mge="BlobDoesNotUseCustomerSpecifiedEncryption",Lge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Fu(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 _B=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function rn(t,e={}){t||(t=new Nr);let r=new _B([],e);return r._credential=t,r}function nat(t){let e=[sat,Uge,iat,oat,aat,cat,uat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>Aat(s));return{wrappedPolicies:m4(r),afterRetry:n}}}}function q4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?E4(e):O4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${hR}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=pB({...r,loggingOptions:{additionalAllowedHeaderNames:vge,additionalAllowedQueryParameters:_ge,logger:rR.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:tR,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:U4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:V8}),s.addPolicy(Tge()),s.addPolicy(xge(r.retryOptions),{phase:"Retry"}),s.addPolicy(Rge()),s.addPolicy(Nge());let a=nat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=Y4(t);ji(c)?s.addPolicy(f0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Xa(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 sAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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 Xa(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 iAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?$a(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 Xa(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 oAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?$a(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 Xa(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 aAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(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 Xa(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 cAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?$a(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 Xa(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 AAt(t,e){if(t=Wf(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=uA.parse(t.permissions.toString()).toString():s=lA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Vf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Gt(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Gt(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?$a(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 Xa(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 Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;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 WB=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=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new Xa(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 Vf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Wf(t){let e=t.version?t.version:fR;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 WB=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=d0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ja||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=_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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=>_e(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!==Ja||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ja||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"}};D0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var jf=class extends Error{constructor(){super(`Cache storage quota has been hit. Unable to upload any new cache entries.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},g9=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 $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new g9((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(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Wo=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Wo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=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,O(`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||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function I9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=C9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=p9(n),c=i8("uploadConcurrency",a.uploadConcurrency),A=i8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function y9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(p9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=C9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(dG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var pG=ge(At(),1),mG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var hG=ge(At(),1),fG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),gG=class extends s0e.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,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.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,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?fG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,hG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,hG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?fG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new gG;var EG=class extends a0e.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:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.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,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?mG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,pG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,pG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?mG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield vG(r,"create");yield _G(n,t)})}var j0=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},LG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function UG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=E9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)UG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield I9(h.archiveLocation,d,a),Ha()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield FG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)UG(d);let l="";try{let d=kG(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield I9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ha()&&(yield Eb(l,h)),yield FG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),UG(s);let c=E9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield s8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield MG(E,g,h),Ha()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(OG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=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 EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`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 K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("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 n3("gradle-home-cache-includes")}getCacheExcludes(){return n3("gradle-home-cache-excludes")}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 rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("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 yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}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:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-password")}},h2=class{getGradleVersion(){re Line truncated
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};jf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var eb=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var kAt=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},m9=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 $pe(t,e,r){return kAt(this,void 0,void 0,function*(){var n;let s=new Za(t),i=s.getBlockBlobClient(),o=new m9((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(),O(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new AD(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw je(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Zpe from"buffer";import*as dA from"fs";import*as eme from"stream";import*as tme from"util";var uD=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function lD(t){return t?t>=200&&t<300:!1}function vAt(t){return t?t>=500:!0}function _At(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function FAt(t){return uD(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Xpe(t,e,r){return uD(this,arguments,void 0,function*(n,s,i,o=WT,a=JT,c=void 0){let A="",u=1;for(;u<=o;){let l,d,h=!1;try{l=yield s()}catch(f){c&&(l=c(f)),h=!0,A=f.message}if(l&&(d=i(l),!vAt(d)))return l;if(d&&(h=_At(d),A=`Cache service responded with ${d}`),O(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){O(`${n} - Error is not retryable`);break}yield FAt(a),u++}throw Error(`${n} failed: ${A}`)})}function tb(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof Fc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function k0(t,e){return uD(this,arguments,void 0,function*(r,n,s=WT,i=JT){return yield Xpe(r,n,o=>o.message.statusCode,s,i)})}var Jo=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function MAt(t,e){return Jo(this,void 0,void 0,function*(){yield tme.promisify(eme.pipeline)(t.message,e)})}var dD=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,O(`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||[])O(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function B9(t,e,r){return pi(this,void 0,void 0,function*(){let n=new HAt(t),s=ime(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield nme(t,e,s):s.concurrentBlobDownloads?yield rme(t,e,s):yield hD(t,e):yield hD(t,e)})}function gme(t,e,r){return pi(this,void 0,void 0,function*(){let n=y9(),s=n0(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield tb("reserveCache",()=>pi(this,void 0,void 0,function*(){return n.postJson(nb("caches"),i)}))})}function hme(t,e){return`bytes ${t}-${e}/*`}function VAt(t,e,r,n,s){return pi(this,void 0,void 0,function*(){O(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${hme(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":hme(n,s)},o=yield k0(`uploadChunk (start: ${n}, end: ${s})`,()=>pi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!lD(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function WAt(t,e,r,n){return pi(this,void 0,void 0,function*(){let s=Oc(r),i=nb(`caches/${e.toString()}`),o=v0.openSync(r,"r"),a=E9(n),c=a8("uploadConcurrency",a.uploadConcurrency),A=a8("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];O("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>pi(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield VAt(t,i,()=>v0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",g=>{throw new Error(`Cache upload failed because file read failed with ${g.message}`)}),h,f)}})))}finally{v0.closeSync(o)}})}function JAt(t,e,r){return pi(this,void 0,void 0,function*(){let n={size:r};return yield tb("commitCache",()=>pi(this,void 0,void 0,function*(){return t.postJson(nb(`caches/${e.toString()}`),n)}))})}function b9(t,e,r,n){return pi(this,void 0,void 0,function*(){if(E9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield $pe(r,e,n)}else{let i=y9();O("Upload cache"),yield WAt(i,t,e,n),O("Commiting cache");let o=Oc(e);Z(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield JAt(i,t,o);if(!lD(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);Z("Cache saved successfully")}})}var c0e=ge(fG(),1),sn=ge(At(),1),eo=ge(At(),1),eg=ge(At(),1),tg=ge(At(),1),rg=ge(At(),1);var EG=ge(At(),1),CG=ge(At(),1),i0e=ge(At(),1),o0e=ge(At(),1),a0e=ge(At(),1);var gG=ge(At(),1),pG=ge(At(),1),r0e=ge(At(),1),n0e=ge(At(),1),s0e=ge(At(),1),mG=class extends s0e.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,n0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,r0e.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,c]=e.tag();switch(a){case 1:i.scope=e.string();break;case 2:i.permission=e.int64().toString();break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?pG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,gG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,gG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?pG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},e2=new mG;var IG=class extends a0e.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:()=>e2}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,o0e.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,i0e.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,c]=e.tag();switch(a){case 1:i.repositoryId=e.int64().toString();break;case 2:i.scope.push(e2.internalBinaryRead(e,e.uint32(),n));break;default:let A=n.readUnknownField;if(A==="throw")throw new globalThis.Error(`Unknown field ${a} (wire type ${c}) for ${this.typeName}`);let u=e.skip(c);A!==!1&&(A===!0?CG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,EG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)e2.internalBinaryWrite(e.scope[i],r.tag(2,EG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?CG.UnknownFieldHandler.onWrite:s Line truncated
`));let n=yield FG(r,"create");yield MG(n,t)})}var j0=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},ro=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Yu=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PG="cache write denied:",n2=class t extends Yu{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},d0e=zT,s2=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},i2=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function h0e(t){if(!t||t.length===0)throw new ro("Path Validation Error: At least one directory or file path is required")}function OG(t){if(t.length>512)throw new ro(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new ro(`Key Validation Error: ${t} cannot contain commas.`)}function f0e(){return rb()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function o2(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=rb();O(`Cache service version: ${A}`),h0e(s);let u=I9();if(!ame(u)){Z(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),O(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield udt(s,i,o,a,c):yield Adt(s,i,o,a,c)})}function Adt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)OG(h);let l=yield nB(),d="";try{let h;try{h=yield fme(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(d0e)?new s2(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return Z("Lookup only - skipping download"),h.cacheKey;d=Cb.join(yield tB(),sd(l)),O(`Archive Path: ${d}`),yield B9(h.archiveLocation,d,a),Ga()&&(yield Eb(d,l));let f=Oc(d);return Z(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield LG(d,l),Z("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===ro.name)throw h;f instanceof Fc&&typeof f.statusCode=="number"&&f.statusCode>=500?Yi(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield rB(d)}catch(h){O(`Failed to delete archive: ${h}`)}}})}function udt(t,e,r,n){return j0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(O("Resolved Keys:"),O(JSON.stringify(u)),u.length>10)throw new ro("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)OG(d);let l="";try{let d=_G(),h=yield nB(),f={key:i,restoreKeys:o,version:n0(s,h,c)},g;try{g=yield d.GetCacheEntryDownloadURL(f)}catch(I){let y=(A=I?.message)!==null&&A!==void 0?A:"";throw y.includes(d0e)?new s2(y):I}if(!g.ok){O(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?Z(`Cache hit for restore-key: ${g.matchedKey}`):Z(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return Z("Lookup only - skipping download"),g.matchedKey;l=Cb.join(yield tB(),sd(h)),O(`Archive path: ${l}`),O(`Starting download of archive to: ${l}`),yield B9(g.signedDownloadUrl,l,a);let m=Oc(l);return Z(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Ga()&&(yield Eb(l,h)),yield LG(l,h),Z("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===ro.name)throw d;h instanceof Fc&&typeof h.statusCode=="number"&&h.statusCode>=500?Yi(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield rB(l))}catch(d){O(`Failed to delete archive: ${d}`)}}})}function a2(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){let a=rb();O(`Cache service version: ${a}`),h0e(n),OG(s);let c=I9();return cme(c)?a==="v2"?yield ddt(n,s,i,o):yield ldt(n,s,i,o):(Z(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),O(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function ldt(t,e,r){return j0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield nB(),f=-1,g=yield o8(n);if(O("Cache Paths:"),O(`${JSON.stringify(g)}`),g.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield tB(),m=Cb.join(E,sd(h));O(`Archive Path: ${m}`);try{yield UG(E,g,h),Ga()&&(yield Eb(m,h));let I=10*1024*1024*1024,y=Oc(m);if( Line truncated
See ${r.getDocumentationLink()}`;g0e.push(n),gf(n)}function p0e(){Uc("deprecation-collector_deprecations",JSON.stringify(GG)),Uc("deprecation-collector_errors",JSON.stringify(g0e))}import*as l2 from"path";var m0e="GRADLE_ACTION_ID";var g2=".setup-gradle",Bb=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 EA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=hr("artifact-retention-days");return gdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(oi.workflow,oi.job,E0e())}getReportDirectory(){let e=hr("dependency-graph-report-dir");return l2.resolve(bd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return ng("dependency-graph-exclude-projects")}getIncludeProjects(){return ng("dependency-graph-include-projects")}getExcludeConfigurations(){return ng("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return ng("dependency-graph-include-configurations")}getPluginRepository(){return new d2}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){O(`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 K0=class{isCacheDisabled(){return f0e()?EA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&EA("cache-read-only")}isCacheWriteOnly(){return EA("cache-write-only")}isCacheOverwriteExisting(){return EA("cache-overwrite-existing")}isCacheStrictMatch(){return EA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=yb("gradle-home-cache-cleanup");if(e!==void 0)return A2("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 i3("gradle-home-cache-includes")}getCacheExcludes(){return i3("gradle-home-cache-excludes")}getCacheProvider(){let e=hr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var rc=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return EA("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 yb("develocity-injection-enabled")}getDevelocityUrl(){return hr("develocity-url")}getDevelocityAllowUntrustedServer(){return yb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return yb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return yb("develocity-enforce-url")}getDevelocityPluginVersion(){return hr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return hr("develocity-ccud-plugin-version")}getPluginRepository(){return new d2}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:(je("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},d2=class{getUrl(){return ng("gradle-plugin-repository-url")}getUsername(){return ng("gradle-plugin-repository-username")}getPassword(){return ng("gradle-plugin-repository-p 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 xb(i));return n.searchPaths.push(...YG(n.patterns)),n})}static stat(e,r,n){return XG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as ZG from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=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,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=ZG.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=ZG.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}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 K0e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function eq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield eq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as tq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="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.",Oht="Basic Caching: This build uses the basic open-source caching provider. 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.",nq=class{async restore(e,r){}async save(e,r,n){return{status:"disabled",entries:[]}}};async function iEe(t){return t.isCacheDisabled()?(rq("Cache is disabled: will not restore state from previous builds."),new nq):t.getCacheProvider()==="basic"?(rq(Oht),new b2):(rq(Pht),Hht())}async function Hht(){let t=Ght();return await import(Uht(t).href)}function Ght(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function rq(t){console.info(t)}import Q2 from"fs";import oEe from"path";var w2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(Q2.existsSync(this.cacheFile))try{return JSON.parse(Q2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];Q2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),Q2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as S2 from"path";import*as N2 from"fs";var zht=lEe.promisify(N2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>S2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await zht(t),r=await Promise.all(e.map(async n=>{let s=S2.resolve(t,n),i=N2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Kht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??Kht;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 Nq={};xa(Nq,{contains:()=>G2,extract:()=>Yft,html:()=>Oft,merge:()=>LEe,parseHTML:()=>Gft,root:()=>qft,text:()=>fg,xml:()=>Hft});var kd={};xa(kd,{DocumentPosition:()=>Zo,append:()=>Bft,appendChild:()=>yft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>U2,findAll:()=>Sft,findOne:()=>P2,findOneChild:()=>wft,getAttributeValue:()=>mft,getChildren:()=>sE,getElementById:()=>Rft,getElements:()=>xft,getElementsByClassName:()=>Dft,getElementsByTagName:()=>hg,getElementsByTagType:()=>kft,getFeed:()=>Sq,getInnerHTML:()=>pft,getName:()=>Cft,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>F2,hasAttrib:()=>Eft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Xo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>M2,prepend:()=>Qft,prependChild:()=>bft,prevElementSibling:()=>L2,removeElement:()=>Ku,removeSubsets:()=>vft,replaceElement:()=>Ift,testElement:()=>Tft,textContent:()=>ju,uniqueSort:()=>Rd});var $o={};xa($o,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});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 sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var T2=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 rE(this,e)}},kb=class extends T2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},vb=class extends T2{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.le Line truncated
`:F2(t.children):tE(t)?F2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(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 mft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Eft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Cft(t){return t.name}function M2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function L2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(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 Ift(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 yft(t,e){if(Ku(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 Bft(t,e){Ku(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 bft(t,e){if(Ku(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 Qft(t,e){Ku(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 iE(t,e,r=!0,n=1/0){return U2(t,Array.isArray(e)?e:[e],r,n)}function U2(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 wft(t,e){return e.find(t)}function P2(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=P2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Sft(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 O2={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=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Nft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(O2,r)?O2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Nft)}function Tft(t,e){let r=kEe(t);return r?r(e):!0}function xft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Rft(t,e,r=!0){return Array.isArray(e)||(e=[e]),P2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(O2.tag_name(t),e,r,n)}function Dft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(O2.tag_type(t),e,r,n)}function vft(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 Zo;(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"})(Zo||(Zo={}));function vEe(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 Zo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Zo.FOLLOWING|Zo.CONTAINED_BY:Zo.FOLLOWING:a===t?Zo.PRECEDING|Zo.CONTAINS:Zo.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&Zo.PRECEDING?-1:n&Zo.FOLLOWING?1:0}),t}function Sq(t){let e=H2(Uft,t);return e?e.name==="feed"?_ft(e):Fft(e):null}function _ft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=H2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xb(i));return n.searchPaths.push(...WG(n.patterns)),n})}static stat(e,r,n){return eq(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Z0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){O(`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 Z0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Z0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){O(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as tq from"crypto";import*as B2 from"fs";import*as W0e from"stream";import*as J0e from"util";import*as z0e from"path";var vht=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},_ht=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,c){o=t[i](o),s(a,c,o.done,o.value)})}}function s(i,o,a,c){Promise.resolve(c).then(function(A){i({value:A,done:a})},o)}};function j0e(t,e){return vht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?Z:O,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=tq.createHash("sha256"),f=0;try{for(var g=!0,E=_ht(r.globGenerator()),m;m=yield E.next(),i=m.done,!i;g=!0){c=m.value,g=!1;let I=c;if(u(I),!I.startsWith(`${d}${z0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(B2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=tq.createHash("sha256");yield J0e.promisify(W0e.pipeline)(B2.createReadStream(I),y),h.write(y.digest()),f++,l||(l=!0)}}catch(I){o={error:I}}finally{try{!g&&!i&&(a=E.return)&&(yield a.call(E))}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 K0e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function rq(t,e){return K0e(this,void 0,void 0,function*(){return yield I2.create(t,e)})}function $0e(t){return K0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield rq(e,{followSymbolicLinks:i});return j0e(o,r,s)})}import*as nq from"path";var Fht="Gradle User Home",Z0e="BASIC_CACHE_PRIMARY_KEY",eEe="BASIC_CACHE_RESTORED_KEY",Mht="setup-java",tEe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],b2=class{async restore(e,r){let n=rEe(e),s=await Lht();Uc(Z0e,s);try{let i=await o2(n,s);i?(Uc(eEe,i),Z(`Basic caching restored from cache key: ${i}`)):Z("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){je(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=My(Z0e),i=My(eEe);if(n.readOnly)return{status:"read-only",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return Z(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=rEe(e);try{return await a2(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(Z(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return je(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Db({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry reLine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${tEe}], make sure you have checked out the target repository`);return`${Mht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Pht="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.",Oht="Basic Caching: This build uses the basic open-source caching provider. 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.",Hht="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",w2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function iEe(t){return t.getCacheProvider()==="external"?(Q2(Hht),new w2("external")):t.isCacheDisabled()?(Q2("Cache is disabled: will not restore state from previous builds."),new w2("disabled")):t.getCacheProvider()==="basic"?(Q2(Oht),new b2):(Q2(Pht),Ght())}async function Ght(){let t=qht();return await import(Uht(t).href)}function qht(){let t=import.meta.dirname,e=sEe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(nEe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function Q2(t){console.info(t)}import S2 from"fs";import oEe from"path";var N2=class{constructor(e){this.cacheFile=oEe.resolve(e,g2,"valid-wrappers.json")}load(){if(S2.existsSync(this.cacheFile))try{return JSON.parse(S2.readFileSync(this.cacheFile,"utf-8"))}catch(e){je(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];S2.mkdirSync(oEe.dirname(this.cacheFile),{recursive:!0}),S2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var dEe=ge(uEe(),1);import*as lEe from"util";import*as T2 from"path";import*as x2 from"fs";var jht=lEe.promisify(x2.readdir);async function hEe(t){return(await fEe(t)).filter(r=>(0,dEe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>T2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function fEe(t){let e=await jht(t),r=await Promise.all(e.map(async n=>{let s=T2.resolve(t,n),i=x2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?fEe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var $ht={_useHtmlParser2:!1};function eE(t,e){if(!t)return e??$ht;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 Nq={};Ra(Nq,{contains:()=>Y2,extract:()=>Vft,html:()=>Hft,merge:()=>LEe,parseHTML:()=>qft,root:()=>Yft,text:()=>fg,xml:()=>Gft});var kd={};Ra(kd,{DocumentPosition:()=>ea,append:()=>bft,appendChild:()=>Bft,compareDocumentPosition:()=>vEe,existsOne:()=>DEe,filter:()=>iE,find:()=>O2,findAll:()=>Nft,findOne:()=>H2,findOneChild:()=>Sft,getAttributeValue:()=>Eft,getChildren:()=>sE,getElementById:()=>Dft,getElements:()=>Rft,getElementsByClassName:()=>kft,getElementsByTagName:()=>hg,getElementsByTagType:()=>vft,getFeed:()=>Sq,getInnerHTML:()=>mft,getName:()=>Ift,getOuterHTML:()=>xEe,getParent:()=>REe,getSiblings:()=>Qq,getText:()=>L2,hasAttrib:()=>Cft,hasChildren:()=>rr,innerText:()=>Mb,isCDATA:()=>tE,isComment:()=>dg,isDocument:()=>Zo,isTag:()=>Qe,isText:()=>Ii,nextElementSibling:()=>U2,prepend:()=>wft,prependChild:()=>Qft,prevElementSibling:()=>P2,removeElement:()=>Ku,removeSubsets:()=>_ft,replaceElement:()=>yft,testElement:()=>xft,textContent:()=>ju,uniqueSort:()=>Rd});var Xo={};Ra(Xo,{CDATA:()=>dq,Comment:()=>cq,Directive:()=>aq,Doctype:()=>hq,ElementType:()=>bt,Root:()=>iq,Script:()=>Aq,Style:()=>uq,Tag:()=>lq,Text:()=>oq,isTag:()=>sq});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 sq(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var iq=bt.Root,oq=bt.Text,aq=bt.Directive,cq=bt.Comment,Aq=bt.Script,uq=bt.Style,lq=bt.Tag,dq=bt.CDATA,hq=bt.Doctype;var R2=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 rE(this,e)}},kb=class extends R2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},IA=class extends kb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},Ag=class extends kb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},ug=class extends kb{constructor(e,r){super(r),this.name=e,this.type=bt.Di Line truncated
`:L2(t.children):tE(t)?L2(t.children):Ii(t)?t.data:""}function ju(t){return Array.isArray(t)?t.map(ju).join(""):rr(t)&&!dg(t)?ju(t.children):Ii(t)?t.data:""}function Mb(t){return Array.isArray(t)?t.map(Mb).join(""):rr(t)&&(t.type===bt.Tag||tE(t))?Mb(t.children):Ii(t)?t.data:""}function sE(t){return rr(t)?t.children:[]}function REe(t){return t.parent||null}function Qq(t){let e=REe(t);if(e!=null)return sE(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 Eft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Cft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ift(t){return t.name}function U2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function P2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Ku(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 yft(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 Bft(t,e){if(Ku(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 bft(t,e){Ku(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 Qft(t,e){if(Ku(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 wft(t,e){Ku(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 iE(t,e,r=!0,n=1/0){return O2(t,Array.isArray(e)?e:[e],r,n)}function O2(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 Sft(t,e){return e.find(t)}function H2(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=H2(t,i.children,!0);if(o)return o}}return null}function DEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&DEe(t,r.children))}function Nft(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 G2={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=>Ii(e)&&t(e.data):e=>Ii(e)&&e.data===t}};function wq(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Tft(t,e){return r=>t(r)||e(r)}function kEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(G2,r)?G2[r](n):wq(r,n)});return e.length===0?null:e.reduce(Tft)}function xft(t,e){let r=kEe(t);return r?r(e):!0}function Rft(t,e,r,n=1/0){let s=kEe(t);return s?iE(s,e,r,n):[]}function Dft(t,e,r=!0){return Array.isArray(e)||(e=[e]),H2(wq("id",t),e,r)}function hg(t,e,r=!0,n=1/0){return iE(G2.tag_name(t),e,r,n)}function kft(t,e,r=!0,n=1/0){return iE(wq("class",t),e,r,n)}function vft(t,e,r=!0,n=1/0){return iE(G2.tag_type(t),e,r,n)}function _ft(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 ea;(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"})(ea||(ea={}));function vEe(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 ea.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?ea.FOLLOWING|ea.CONTAINED_BY:ea.FOLLOWING:a===t?ea.PRECEDING|ea.CONTAINS:ea.PRECEDING}function Rd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=vEe(e,r);return n&ea.PRECEDING?-1:n&ea.FOLLOWING?1:0}),t}function Sq(t){let e=q2(Pft,t);return e?e.name==="feed"?Fft(e):Mft(e):null}function Fft(t){var e;let r=t.children,n={type:"atom",items:hg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_Ee(c)};yi(A,"id","id",c),yi(A,"title","title",c);let u=(a=q2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Dd("summary",c)||Dd("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 ra=ge(vd(),1);var qq={};function Yq(t,e){return t===ra.default.falseFunc?ra.default.falseFunc:r=>e.isTag(r)&&t(r)}function Vq(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 Gq(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 Hq=(t,e,r,n,s)=>{let i=s(e,Gq(r),n);return i===ra.default.trueFunc?t:i===ra.default.falseFunc?ra.default.falseFunc:o=>i(o)&&t(o)},ek={is:Hq,matches:Hq,where:Hq,not(t,e,r,n,s){let i=s(e,Gq(r),n);return i===ra.default.falseFunc?t:i===ra.default.trueFunc?ra.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(qb))?[qq]:void 0,c=s(e,o,a);if(c===ra.default.falseFunc)return ra.default.falseFunc;let A=Yq(c,i);if(a&&c!==ra.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function BCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in ek))throw new Error(`Unknown pseudo-class :${o}(${a})`);return ek[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:Z2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,yCe.parse)(A);return ek.is(t,u,r,n,s)}if(typeof c=="function")return Oq(c,o,a,1),u=>c(u,a)&&t(u);if(o in fE)return fE[o](t,a,r,n);if(o in Vb){let u=Vb[o];return Oq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var na=ge(dE(),1);function Wq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function bCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case na.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case na.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case na.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()),mCe[e.action](t,e,r)}case na.SelectorType.Pseudo:return BCe(t,e,r,n,s);case na.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(A){return i.getName(A)===a&&t(A)}}case na.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Wq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Wq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Wq(A,i));return!1};case na.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case na.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case na.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case na.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case na.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function QCe(t,e,r){let n=tk(t,e,r);return Yq(n,e.adapter)}function tk(t,e,r){let n=typeof t=="string"?(0,oc.parse)(t):t;return rk(n,e,r)}function wCe(t){return t.type===oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(wCe)))}var xgt={type:oc.SelectorType.Descendant},Rgt={type:"_flexibleDescendant"},Dgt={type:oc.SelectorType.Pseudo,name:"scope",data:null};function kgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===qq||i&&e.isTag(i)});fo 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 na=ge(vd(),1);var qq={};function Yq(t,e){return t===na.default.falseFunc?na.default.falseFunc:r=>e.isTag(r)&&t(r)}function Vq(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 Gq(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 Hq=(t,e,r,n,s)=>{let i=s(e,Gq(r),n);return i===na.default.trueFunc?t:i===na.default.falseFunc?na.default.falseFunc:o=>i(o)&&t(o)},rk={is:Hq,matches:Hq,where:Hq,not(t,e,r,n,s){let i=s(e,Gq(r),n);return i===na.default.falseFunc?t:i===na.default.trueFunc?na.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Gq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(qb))?[qq]:void 0,c=s(e,o,a);if(c===na.default.falseFunc)return na.default.falseFunc;let A=Yq(c,i);if(a&&c!==na.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...Vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function BCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in rk))throw new Error(`Unknown pseudo-class :${o}(${a})`);return rk[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:tk[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,yCe.parse)(A);return rk.is(t,u,r,n,s)}if(typeof c=="function")return Oq(c,o,a,1),u=>c(u,a)&&t(u);if(o in fE)return fE[o](t,a,r,n);if(o in Vb){let u=Vb[o];return Oq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var sa=ge(dE(),1);function Wq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function bCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case sa.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case sa.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case sa.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()),mCe[e.action](t,e,r)}case sa.SelectorType.Pseudo:return BCe(t,e,r,n,s);case sa.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(A){return i.getName(A)===a&&t(A)}}case sa.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=Wq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=Wq(u,i);)if(!a.has(u)){if(i.isTag(u)&&t(u))return!0;a.add(u)}return!1}}case"_flexibleDescendant":return function(c){let A=c;do if(t(A))return!0;while(A=Wq(A,i));return!1};case sa.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case sa.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case sa.SelectorType.Sibling:return function(c){let A=i.getSiblings(c);for(let u=0;u<A.length;u++){let l=A[u];if(o(c,l))break;if(i.isTag(l)&&t(l))return!0}return!1};case sa.SelectorType.Adjacent:return i.prevElementSibling?function(c){let A=i.prevElementSibling(c);return A!=null&&t(A)}:function(c){let A=i.getSiblings(c),u;for(let l=0;l<A.length;l++){let d=A[l];if(o(c,d))break;i.isTag(d)&&(u=d)}return!!u&&t(u)};case sa.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function QCe(t,e,r){let n=nk(t,e,r);return Yq(n,e.adapter)}function nk(t,e,r){let n=typeof t=="string"?(0,oc.parse)(t):t;return sk(n,e,r)}function wCe(t){return t.type===oc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(wCe)))}var Rgt={type:oc.SelectorType.Descendant},Dgt={type:"_flexibleDescendant"},kgt={type:oc.SelectorType.Pseudo,name:"scope",data:null};function vgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===qq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(HCe,`\r
`)}}).toArray()}var cY={};xa(cY,{extract:()=>Jpt});function Wpt(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 Jpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Wpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=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}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Fq,sY,iY,oY,aY,cY);function GCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=eE(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(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 A(u,l,d=a,h){if(u&&ea(u))return u;let f=eE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ea(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Lb(u)?t(u,f,!1,null).children:zpt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Lb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ea(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Nq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function zpt(t){return!!t.name||t.type===$o.Root||t.type===$o.Text||t.type===$o.Comment}var jpt=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]),ur="\uFFFD",N;(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"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ck(t){return t>=55296&&t<=57343}function qCe(t){return t>=56320&&t<=57343}function YCe(t,e){return(t-55296)*1024+9216+e}function Ak(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function uk(t){return t>=64976&&t<=65007||jpt.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
`)}}).toArray()}var cY={};Ra(cY,{extract:()=>zpt});function Jpt(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 zpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Jpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var Md=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}}};Md.prototype.cheerio="[cheerio object]";Md.prototype.splice=Array.prototype.splice;Md.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Md.prototype,Fq,sY,iY,oY,aY,cY);function GCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=eE(s),a=t(n,o,i,null);class c extends Md{_make(l,d){let h=A(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 A(u,l,d=a,h){if(u&&ta(u))return u;let f=eE(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=ta(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Lb(u)?t(u,f,!1,null).children:jpt(u)?[u]:Array.isArray(u)?u:void 0,I=new c(m,E,f);if(m)return I;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,B=l?typeof l=="string"?Lb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):ta(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,Nq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function jpt(t){return!!t.name||t.type===Xo.Root||t.type===Xo.Text||t.type===Xo.Comment}var Kpt=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]),ur="\uFFFD",N;(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"})(N||(N={}));var Os={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function uk(t){return t>=55296&&t<=57343}function qCe(t){return t>=56320&&t<=57343}function YCe(t,e){return(t-55296)*1024+9216+e}function lk(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function dk(t){return t>=64976&&t<=65007||Kpt.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(`
`)}`}},H_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _Re(t){if(t instanceof AggregateError){gf("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof ap?(gf(String(t)),t.stack&&Z(t.stack)):(gf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function FRe(t,e,r){if(!t.doValidateWrappers())return;let n=new w2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await vRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await pT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new ap(`At least one Gradle Wrapper Jar failed validation!
`)}`}},q_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var ap=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function _Re(t){if(t instanceof AggregateError){gf("Multiple errors returned");for(let e of t.errors)Yi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&Z(e.stack)}else t instanceof ap?(gf(String(t)),t.stack&&Z(t.stack)):(gf(String(t)),t instanceof Error&&t.stack&&Z(t.stack))}async function FRe(t,e,r){if(!t.doValidateWrappers())return;let n=new N2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await vRe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await pT("All Gradle Wrapper jars are valid",async()=>{O(`Loaded previously validated checksums from cache: ${i.join(", ")}`),Z(o.toDisplayString())});else throw Z(o.toDisplayString()),new ap(`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 mo from"fs";import cp from"path";function MRe(t,e,r){let n=cp.resolve(e,g2);mo.mkdirSync(n,{recursive:!0}),Pvt(e),Ovt(t),Ha()&&Hvt(e),r&&Zn("GRADLE_ENCRYPTION_KEY",r)}function Pvt(t){let e=cp.resolve(t,"init.d");mo.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=Gvt("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function Ovt(t){let e=qvt();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=Yvt(s,e);mo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Hvt(t){let e=`org.gradle.logging.level=info
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import mo from"fs";import cp from"path";function MRe(t,e,r){let n=cp.resolve(e,g2);mo.mkdirSync(n,{recursive:!0}),Ovt(e),Hvt(t),Ga()&&Gvt(e),r&&Zn("GRADLE_ENCRYPTION_KEY",r)}function Ovt(t){let e=cp.resolve(t,"init.d");mo.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=qvt("init-scripts",n),i=cp.resolve(e,n);mo.writeFileSync(i,s)}}function Hvt(t){let e=Yvt();if(e==null)return;let r=cp.resolve(t,".m2"),n=cp.resolve(r,"toolchains.xml");if(!mo.existsSync(n))mo.mkdirSync(r,{recursive:!0}),mo.writeFileSync(n,e),Z(`Wrote default JDK locations to ${n}`);else{let s=mo.readFileSync(n,"utf8"),i=Vvt(s,e);mo.writeFileSync(n,i),Z(`Merged default JDK locations into ${n}`)}}function Gvt(t){let e=`org.gradle.logging.level=info
org.gradle.logging.stacktrace=all
`,r=cp.resolve(t,"gradle.properties");if(mo.existsSync(r)){Z(`Merged --info and --stacktrace into existing ${r} file`);let n=mo.readFileSync(r,"utf-8");mo.writeFileSync(r,`${e}
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function Gvt(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function qvt(){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"?>
${n}`)}else Z(`Created a new ${r} with --info and --stacktrace`),mo.writeFileSync(r,e)}function qvt(...t){let e=import.meta.dirname,r=cp.resolve(e,"..","..","..","sources","src","resources",...t);return mo.readFileSync(r,"utf8")}function Yvt(){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>
@@ -280,7 +280,7 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
</toolchain>`).join(`
`)}
</toolchains>
`}function Yvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Vvt="GRADLE_USER_HOME",Wvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await zvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Vvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Wvt,o??""),await(await iEe(t)).restore(s,Jvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function Jvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function zvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(G_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("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()."),G_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var Kvt=ge(Xy(),1);import*as pw from"path";var V_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Xvt}from"assert";var PRe=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},q_=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 PRe(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 PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Y_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Zvt=process.platform==="win32",C1r=process.platform==="darwin",e_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new q_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield t_t(t,e||"",r,n)}),c=>!(c instanceof Y_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function t_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(e_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Y_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`}function Vvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var Kz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Wvt="GRADLE_USER_HOME",Jvt="DEVELOCITY_CACHE_TOKEN";async function LRe(t,e,r){let n=await URe(),s=await jvt();if(process.env[Kz])return Z("Gradle setup only performed on first gradle/actions step in workflow."),!1;Zn(Kz,!0),Uc(Kz,!0),Uc(Wvt,s),MRe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await B0e(e);return Uc(Jvt,o??""),await(await iEe(t)).restore(s,zvt(t,i,o)),await FRe(r,bd(),s),I0e(e),!0}function zvt(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function jvt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=bd();return Xz.resolve(r,t)}let e=Xz.resolve(await URe(),".gradle");if($z.existsSync(e))return Z(`Gradle User Home already exists at ${e}`),Zn("GRADLE_USER_HOME",e),e;if(Y_.platform()==="win32"&&e.startsWith("C:\\")&&$z.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return Z(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Zn("GRADLE_USER_HOME",r),r}return Zn("GRADLE_USER_HOME",e),e}async function URe(){let t=await Fy("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()."),Y_.homedir();let n=r[1];return O(`Determined user.home from java -version output: '${n}'`),n}import*as dC from"fs";import*as EDe from"os";import*as dh from"path";import*as ej from"crypto";import*as up from"fs";var $vt=ge(Xy(),1);import*as pw from"path";var J_=ge(Xy(),1);import*as ORe from"stream";import*as HRe from"util";import{ok as Zvt}from"assert";var PRe=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},V_=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 PRe(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 PRe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Ap=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},W_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},e_t=process.platform==="win32",I1r=process.platform==="darwin",t_t="actions/tool-cache";function GRe(t,e,r,n){return Ap(this,void 0,void 0,function*(){e=e||pw.join(YRe(),ej.randomUUID()),yield ff(pw.dirname(e)),O(`Downloading ${t}`),O(`Destination ${e}`);let s=3,i=Zz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Zz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new V_(s,i,o).execute(()=>Ap(this,void 0,void 0,function*(){return yield r_t(t,e||"",r,n)}),c=>!(c instanceof W_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function r_t(t,e,r,n){return Ap(this,void 0,void 0,function*(){if(up.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Pr(t_t,[],{allowRetries:!1});r&&(O("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new W_(i.message.statusCode);throw O(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=HRe.promisify(ORe.pipeline),c=Zz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,up.createWriteStream(e)),O("download complete"),A=!0,e}finally{if(!A){O("download failed");try{yield AAe(e)}catch(u){O(`Failed to delete '${e}'. ${u.message}`)}}}})}function qRe(t,e){return Ap(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yie Line truncated
`," Line feed \\n"]]),vDe=new Map([...Pj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function _De(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of vDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(vDe.values()).toString()}
@@ -292,16 +292,16 @@ Invalid characters include: ${Array.from(Pj.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 UDe=ge(LDe(),1);function YA(){return`@actions/artifact-${UDe.version}`}var pC=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"}},El=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},Cl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},hh=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 dp=class extends Error{constructor(){super(`Artifact storage quota has been hit. Unable to upload any new artifacts.
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function M_t(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 L_t(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 M_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("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 hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=L_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var j_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=J_(),e=PDe(t);if(!e.scp)throw j_;let r=e.scp.split(" ");if(r.length===0)throw j_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw j_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw j_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var K_=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=J_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return K_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>K_(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 K_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)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);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 K_(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 WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new z_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield IWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var BWt=5,bWt=[400,401,403,404,422];function dI(t,e=BWt,r=bWt){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 O(`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 o4e="6.0.0";function Gp(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})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var nL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var QWt="0.0.0-development";async function c4e(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 wWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(SWt.bind(null,t,e,r),n)}async function SWt(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 nL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(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",c4e.bind(null,r,t)),t.hook.wrap("request",wWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=QWt;var u4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function sL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield Ga(s,c,qp,Gp).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 El(`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 Cl(`Artifact not found for name: ${t}
More info on storage limits: https://docs.github.com/en/billing/managing-billing-for-github-actions/about-billing-for-github-actions#calculating-minute-and-storage-spending`),this.name="UsageError"}};dp.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var hp=class extends Error{};hp.prototype.name="InvalidTokenError";function L_t(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 U_t(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 L_t(e)}catch{return atob(e)}}function PDe(t,e){if(typeof t!="string")throw new hp("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 hp(`Invalid token specified: missing part #${r+1}`);let s;try{s=U_t(n)}catch(i){throw new hp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new hp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var $_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function VA(){let t=j_(),e=PDe(t);if(!e.scp)throw $_;let r=e.scp.split(" ");if(r.length===0)throw $_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw $_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return O(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),O(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw $_}function ODe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(vo(r),vo(encodeURIComponent(r)))}catch(e){O(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function HDe(t){if(typeof t!="object"||t===null){O("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ODe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ODe(t.signed_url)}var X_=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Hj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=j_();this.baseUrl=BDe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Pr(e,[new wu(i)])}request(e,r,n,s){return X_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;O(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>X_(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 X_(this,void 0,void 0,function*(){let r=0,n="",s="";for(;r<this.maxAttempts;){let i=!1;try{let a=yield e(),c=a.message.statusCode;s=yield a.readBody(),O(`[Response] - ${a.message.statusCode}`),O(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(HDe(A),O(`Body: ${JSON.stringify(A,null,2)}`),this.isSuccessStatusCode(c))return{response:a,body:A};if(i=this.isRetryableHttpStatusCode(c),n=`Failed request: (${c}) ${a.message.statusMessage}`,A.msg){if(dp.isUsageErrorMessage(A.msg))throw new dp;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&O(`Raw Body: ${s}`),a instanceof dp)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);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 X_(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 WA(t){let e=new Hj(YA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new K_(e)}import*as mC from"fs";import{normalize as GDe,resolve as qDe}from"path";function YDe(t){if(!mC.existsSync(t))throw ne Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&je("Multiple artifacts found, defaulting to first.");let A={workflowRunBackendId:c[0].workflowRunBackendId,workflowJobRunBackendId:c[0].workflowJobRunBackendId,name:c[0].name},{signedUrl:u}=yield n.GetSignedArtifactURL(A);Z(`Redirecting to blob download url: ${t4e(u)}`);try{Z(`Starting download of artifact to: ${r}`);let l=yield r4e(u,r,e?.skipDecompress);Z("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,O(`Computed digest: ${l.sha256Digest}`),O(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function i4e(){return lI(this,arguments,void 0,function*(t=bDe()){return(yield yWt(t))?O(`Artifact destination folder already exists: ${t}`):(O(`Artifact destination folder does not exist, creating: ${t}`),yield K8e.mkdir(t,{recursive:!0})),t})}var bWt=5,QWt=[400,401,403,404,422];function dI(t,e=bWt,r=QWt){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 O(`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 o4e="6.0.0";function Gp(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})})}Gp.VERSION=o4e;var A4e=ge(a4e(),1);var iL=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var wWt="0.0.0-development";async function c4e(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 SWt(t,e,r,n){let s=new A4e.default;return s.on("failed",function(i,o){let a=~~i.request.request.retries,c=~~i.request.request.retryAfter;if(n.request.retryCount=o.retryCount+1,a>o.retryCount)return c*t.retryAfterBaseValue}),s.schedule(NWt.bind(null,t,e,r),n)}async function NWt(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 iL(s.data.errors[0].message,500,{request:n,response:s});return c4e(t,e,i,n)}return s}function qp(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",c4e.bind(null,r,t)),t.hook.wrap("request",SWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}qp.VERSION=wWt;var u4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function oL(t,e,r,n,s){return u4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},u=yield qa(s,c,qp,Gp).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 El(`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 Cl(`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],O(`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 l4e(t){return u4e(this,void 0,void 0,function*(){var e;let r=WA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=VA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:pn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new Cl(`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((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`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?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=Ga(s,c,qp,Gp),u=yield sL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`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 f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`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},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},iL=SDe(),oL=100,NWt=Math.ceil(iL/oL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=Ga(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f}),E=Math.ceil(g.total_count/oL),m=g.total_count;m>iL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${iL}. Results will be incomplete as only the first ${iL} artifacts will be returned`),E=NWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:oL,page:f});for(let y of I.artifacts)A.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 c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(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 U1=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},TWt=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},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`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((c,A)=>Number(A.databaseId)-Number(c.databaseId))[0],O(`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?Eo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var d4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function h4e(t,e,r,n,s){return d4e(this,void 0,void 0,function*(){var i;let[o,a]=dI(Ef),c={log:void 0,userAgent:YA(),previews:void 0,retry:o,request:a},A=qa(s,c,qp,Gp),u=yield oL(t,e,r,n,s),l=yield A.rest.actions.deleteArtifact({owner:r,repo:n,artifact_id:u.artifact.id});if(l.status!==204)throw new El(`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 f4e(t){return d4e(this,void 0,void 0,function*(){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:pn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new Cl(`Artifact not found for name: ${t}`);let o=i.artifacts[0];i.artifacts.length>1&&(o=i.artifacts.sort((A,u)=>Number(u.databaseId)-Number(A.databaseId))[0],O(`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},c=yield e.DeleteArtifact(a);return Z(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var g4e=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},aL=SDe(),cL=100,TWt=Math.ceil(aL/cL);function p4e(t,e,r,n){return g4e(this,arguments,void 0,function*(s,i,o,a,c=!1){Z(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=dI(Ef),d={log:void 0,userAgent:YA(),previews:void 0,retry:u,request:l},h=qa(a,d,qp,Gp),f=1,{data:g}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f}),E=Math.ceil(g.total_count/cL),m=g.total_count;m>aL&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${aL}. Results will be incomplete as only the first ${aL} artifacts will be returned`),E=TWt);for(let I of g.artifacts)A.push({name:I.name,id:I.id,size:I.size_in_bytes,createdAt:I.created_at?new Date(I.created_at):void 0,digest:I.digest});for(f++,f;f<=E;f++){O(`Fetching page ${f} of artifact list`);let{data:I}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:cL,page:f});for(let y of I.artifacts)A.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 c&&(A=E4e(A)),Z(`Found ${A.length} artifact(s)`),{artifacts:A}})}function m4e(){return g4e(this,arguments,void 0,function*(t=!1){let e=WA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=VA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n},o=(yield e.ListArtifacts(s)).artifacts.map(a=>{var c;return{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?Eo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=E4e(o)),Z(`Found ${o.length} artifact(s)`),{artifacts:o}})}function E4e(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 U1=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{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},xWt=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},hI=class{uploadArtifact(e,r,n,s){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;return g8e(e,r,n,s)}catch(i){throw je(`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 U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=TWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`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 U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=xWt(r,["findBy"]);return n4e(e,n,s,i,o)}return s4e(e,r)}catch(n){throw je(`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.
@@ -309,7 +309,7 @@ If the error persists, please check whether Actions and API requests are operati
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return sL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`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 U1(this,void 0,void 0,function*(){try{if(hC())throw new hh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return oL(e,n,s,i,o)}return l4e(e)}catch(n){throw je(`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.
@@ -317,12 +317,12 @@ If the error persists, please check whether Actions and API requests are operati
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var E2r=new hI;import*as UZ from"path";import PZ from"fs";var xWt="dependency-graph_";async function C4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await RWt(t);return}Z("Enabling dependency graph generation"),Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",HWt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bd()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Zn(t,e)}async function RWt(t){if(GWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await vWt(await DWt(t))}catch(e){PWt(t,"download-and-submit",e)}}async function DWt(t){let e=oi.payload.workflow_run?{token:p2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new hI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(xWt)),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 kWt()}async function kWt(){let r=(await(await eq(`${MWt()}/**/*.json`)).glob()).filter(n=>!LWt(n));return r.forEach(UWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function vWt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await FWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=_Wt(e,r)),r}}function _Wt(t,e){let n=`Dependency submission failed for ${I4e(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 C2r=new hI;import*as UZ from"path";import PZ from"fs";var RWt="dependency-graph_";async function C4e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await DWt(t);return}Z("Enabling dependency graph generation"),Zn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),Xs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),Xs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",oi.runId.toString()),Xs("GITHUB_DEPENDENCY_GRAPH_REF",oi.ref),Xs("GITHUB_DEPENDENCY_GRAPH_SHA",GWt()),Xs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",bd()),Xs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),Xs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),Xs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),Xs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),Xs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),Xs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),Xs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),Xs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function Xs(t,e){process.env[t]||e!==void 0&&Zn(t,e)}async function DWt(t){if(qWt()){Z("Dependency graph not supported in the ACT environment.");return}try{await _Wt(await kWt(t))}catch(e){OWt(t,"download-and-submit",e)}}async function kWt(t){let e=oi.payload.workflow_run?{token:p2(),workflowRunId:oi.payload.workflow_run.id,repositoryName:oi.repo.repo,repositoryOwner:oi.repo.owner}:void 0,r=new hI,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(RWt)),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 vWt()}async function vWt(){let r=(await(await rq(`${LWt()}/**/*.json`)).glob()).filter(n=>!UWt(n));return r.forEach(PWt),Z(`Found dependency graph files: ${r.join(", ")}`),r}async function _Wt(t){if(t.length===0){Z("No dependency graph files found to submit.");return}for(let e of t)try{await MWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=FWt(e,r)),r}}function FWt(t,e){let n=`Dependency submission failed for ${I4e(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 FWt(t){let e=OWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function MWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function LWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function UWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function PWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function OWt(){return Ga(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function HWt(){let t=oi;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 GWt(){return process.env.ACT!==void 0}function YWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=YWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function VWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}VWt();export{VWt as run};
`:n}async function MWt(t){let e=HWt(),r=PZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=oi.repo.owner,n.repo=oi.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=I4e(t);IAe(`Submitted ${i}: ${s.data.message}`)}function LWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function UWt(t){let e=`${t}.processed`;return PZ.existsSync(e)}function PWt(t){let e=`${t}.processed`;PZ.writeFileSync(e,"")}function OWt(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new ap(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function HWt(){return qa(p2())}function I4e(t){let e=bd();return UZ.relative(e,t)}function GWt(){let t=oi;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 qWt(){return process.env.ACT!==void 0}function VWt(t=process.platform){return t==="win32"?50:0}async function y4e(t=process.platform){let e=VWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function WWt(){try{Ib()==="gradle/gradle-build-action"&&u2("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),C0e("gradle/actions/setup-gradle"),await LRe(new K0,new rc,new f2),await C4e(new Bb);let t=new h2;t.verifyNoArguments(),await nj(t.getGradleVersion()),p0e()}catch(t){_Re(t)}await y4e()}WWt();export{WWt as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js: