[bot] Update dist directory

This commit is contained in:
bot-githubaction committed 2026-09-07 22:35:18 +00:00
1 parent e49d0a36a8
commit 0d208da058
8 files changed
+515 -501

No files matched your search

+158 -151
View File
@@ -1,114 +1,114 @@
import {createRequire} from 'module';const require=createRequire(import.meta.url);
var U8e=Object.create;var LM=Object.defineProperty;var P8e=Object.getOwnPropertyDescriptor;var O8e=Object.getOwnPropertyNames;var H8e=Object.getPrototypeOf,G8e=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}},Qa=(t,e)=>{for(var r in e)LM(t,r,{get:e[r],enumerable:!0})},q8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of O8e(e))!G8e.call(t,s)&&s!==r&&LM(t,s,{get:()=>e[s],enumerable:!(n=P8e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?U8e(H8e(t)):{},q8e(e||!t||!t.__esModule?LM(r,"default",{value:t,enumerable:!0}):r,t));var VZ=C(Lp=>{"use strict";var h7t=Q("net"),j8e=Q("tls"),HM=Q("http"),GZ=Q("https"),K8e=Q("events"),f7t=Q("assert"),$8e=Q("util");Lp.httpOverHttp=X8e;Lp.httpsOverHttp=Z8e;Lp.httpOverHttps=e4e;Lp.httpsOverHttps=t4e;function X8e(t){var e=new $A(t);return e.request=HM.request,e}function Z8e(t){var e=new $A(t);return e.request=HM.request,e.createSocket=qZ,e.defaultPort=443,e}function e4e(t){var e=new $A(t);return e.request=GZ.request,e}function t4e(t){var e=new $A(t);return e.request=GZ.request,e.createSocket=qZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||HM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=YZ(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)})}$8e.inherits($A,K8e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=GM({request:e},i.options,YZ(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)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=GM({},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")),wl("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){wl("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){wl("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 wl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),wl(`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)}};$A.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 qZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=GM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=j8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function YZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function GM(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 wl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wl=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)}:wl=function(){};Lp.debug=wl});var qM=C((p7t,WZ)=>{WZ.exports=VZ()});var Br=C((m7t,JZ)=>{JZ.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((E7t,Eee)=>{"use strict";var zZ=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[zZ]===!0}[zZ]=!0},jZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),YM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[jZ]===!0}[jZ]=!0},KZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),VM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[KZ]===!0}[KZ]=!0},$Z=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),WM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[$Z]===!0}[$Z]=!0},XZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),JM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[XZ]===!0}[XZ]=!0},ZZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),zM=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",this.body=s,this.s Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function m5e(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(t5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function E5e(){return"allowed"}function C5e(){return"success"}function I5e(){return"success"}function y5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function B5e(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&&PL(t.origin)&&!PL(NI(t))&&(e=null);break;case"same-origin":mS(t,NI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Jp(t,e){return t}function b5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:Jp(t.domainLookupStartTime,r),domainLookupEndTime:Jp(t.domainLookupEndTime,r),connectionStartTime:Jp(t.connectionStartTime,r),connectionEndTime:Jp(t.connectionEndTime,r),secureConnectionStartTime:Jp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Q5e(t){return Jp(o5e.now(),t)}function w5e(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 kte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function S5e(t){return{referrerPolicy:t.referrerPolicy}}function N5e(t){let e=t.referrerPolicy;Fh(e);let r=null;if(t.referrer==="client"){let a=Ste();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=UL(r),s=UL(r,!0);n.toString().length>4096&&(n=s);let i=mS(t,n),o=SI(n)&&!SI(t.url);switch(e){case"origin":return s??UL(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=NI(t);return mS(n,a)?n:SI(n)&&!SI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function UL(t,e){return Fh(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 SI(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 T5e(t,e){if(pS===void 0)return!0;let r=vte(e);if(r==="no metadata"||r.length===0)return!0;let n=R5e(r),s=D5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=pS.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)),k5e(c,a))return!0}return!1}var x5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function vte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=x5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Tte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function R5e(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 D5e(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 k5e(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 v5e(t){}function mS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function _5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function F5e(t){return t.controller.state==="aborted"}function M5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function L5e(t){return A5e[t.toLowerCase()]??t}function U5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Fh(typeof e=="string"),e}var P5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function _te(t,e,r=0,n=1){class s{ Line truncated
`);function gHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function pHe(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 mHe(t,e){CS(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&&IS(t,hHe,i)||i.position===t.length-4&&IS(t,fHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=EHe(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",gHe(u)||(u=""),h=new lHe([d],A,{type:u})):h=oHe(Buffer.from(d)),CS(Wte(c)),CS(typeof h=="string"&&Wte(h)||cHe(h)),s.push(AHe(c,h,A))}}function EHe(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=jp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=WL(o,!0,!0,a=>a===9||a===32),!aHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,jp(a=>a===32||a===9,t,e),iHe(o)){case"content-disposition":{if(r=n=null,!IS(t,dHe,e)||(e.position+=17,r=jte(t,e),r===null))return"failure";if(IS(t,zte,e)){let a=e.position+zte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=jte(t,e),n===null))return"failure"}break}case"content-type":{let a=jp(c=>c!==10&&c!==13,t,e);a=WL(a,!1,!0,c=>c===9||c===32),s=Jte(a);break}case"content-transfer-encoding":{let a=jp(c=>c!==10&&c!==13,t,e);a=WL(a,!1,!0,c=>c===9||c===32),i=Jte(a);break}default:jp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function jte(t,e){CS(t[e.position-1]===34);let r=jp(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 jp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function WL(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 IS(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}Kte.exports={multipartFormDataParser:mHe,validateBoundary:pHe}});var Xp=C((q7t,are)=>{"use strict";var RI=lt(),{ReadableStreamFrom:CHe,isBlobLike:Xte,isReadableStreamLike:IHe,readableStreamClose:yHe,createDeferredPromise:BHe,fullyReadBody:bHe,extractMimeType:QHe,utf8DecodeBytes:tre}=Ri(),{FormData:Zte}=xI(),{kState:$p}=Sl(),{webidl:wHe}=Kn(),{Blob:SHe}=Q("node:buffer"),JL=Q("node:assert"),{isErrored:rre,isDisturbed:NHe}=Q("node:stream"),{isArrayBuffer:THe}=Q("node:util/types"),{serializeAMimeType:xHe}=Xs(),{multipartFormDataParser:RHe}=$te(),zL;try{let t=Q("node:crypto");zL=e=>t.randomInt(0,e)}catch{zL=t=>Math.floor(Math.random(t))}var yS=new TextEncoder;function DHe(){}var nre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,sre;nre&&(sre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!NHe(e)&&!rre(e)&&e.cancel("Response object has been garbage collected").catch(DHe)}));function ire(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Xte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?yS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>yHe(c))},start(){},type:"bytes"}),JL(IHe(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(THe(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(RI.isFormDataLike(t)){let c=`----formdata-undici-0${`${zL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
var K8e=Object.create;var OM=Object.defineProperty;var $8e=Object.getOwnPropertyDescriptor;var X8e=Object.getOwnPropertyNames;var Z8e=Object.getPrototypeOf,e4e=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}},Qa=(t,e)=>{for(var r in e)OM(t,r,{get:e[r],enumerable:!0})},t4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of X8e(e))!e4e.call(t,s)&&s!==r&&OM(t,s,{get:()=>e[s],enumerable:!(n=$8e(e,s))||n.enumerable});return t};var pe=(t,e,r)=>(r=t!=null?K8e(Z8e(t)):{},t4e(e||!t||!t.__esModule?OM(r,"default",{value:t,enumerable:!0}):r,t));var $Z=C(Up=>{"use strict";var x7t=Q("net"),a4e=Q("tls"),YM=Q("http"),zZ=Q("https"),c4e=Q("events"),R7t=Q("assert"),A4e=Q("util");Up.httpOverHttp=u4e;Up.httpsOverHttp=l4e;Up.httpOverHttps=d4e;Up.httpsOverHttps=h4e;function u4e(t){var e=new $A(t);return e.request=YM.request,e}function l4e(t){var e=new $A(t);return e.request=YM.request,e.createSocket=jZ,e.defaultPort=443,e}function d4e(t){var e=new $A(t);return e.request=zZ.request,e}function h4e(t){var e=new $A(t);return e.request=zZ.request,e.createSocket=jZ,e.defaultPort=443,e}function $A(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||YM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=KZ(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)})}A4e.inherits($A,c4e.EventEmitter);$A.prototype.addRequest=function(e,r,n,s){var i=this,o=VM({request:e},i.options,KZ(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)}})};$A.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=VM({},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")),wl("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){wl("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){wl("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 wl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),wl(`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)}};$A.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 jZ(t,e){var r=this;$A.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=VM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=a4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function KZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function VM(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 wl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?wl=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)}:wl=function(){};Up.debug=wl});var WM=C((k7t,XZ)=>{XZ.exports=$Z()});var Br=C((v7t,ZZ)=>{ZZ.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((_7t,Qee)=>{"use strict";var eee=Symbol.for("undici.error.UND_ERR"),br=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[eee]===!0}[eee]=!0},tee=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),JM=class extends br{constructor(e){super(e),this.name="ConnectTimeoutError",this.message=e||"Connect Timeout Error",this.code="UND_ERR_CONNECT_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[tee]===!0}[tee]=!0},ree=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),zM=class extends br{constructor(e){super(e),this.name="HeadersTimeoutError",this.message=e||"Headers Timeout Error",this.code="UND_ERR_HEADERS_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[ree]===!0}[ree]=!0},nee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),jM=class extends br{constructor(e){super(e),this.name="HeadersOverflowError",this.message=e||"Headers Overflow Error",this.code="UND_ERR_HEADERS_OVERFLOW"}static[Symbol.hasInstance](e){return e&&e[nee]===!0}[nee]=!0},see=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),KM=class extends br{constructor(e){super(e),this.name="BodyTimeoutError",this.message=e||"Body Timeout Error",this.code="UND_ERR_BODY_TIMEOUT"}static[Symbol.hasInstance](e){return e&&e[see]===!0}[see]=!0},iee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$M=class extends br{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_CODE",th Line truncated
`)||t.includes("\r")||t.includes("\0"))===!1}function x5e(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(h5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function R5e(){return"allowed"}function D5e(){return"success"}function k5e(){return"success"}function v5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function _5e(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&&GL(t.origin)&&!GL(TI(t))&&(e=null);break;case"same-origin":ES(t,TI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function zp(t,e){return t}function F5e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:zp(t.domainLookupStartTime,r),domainLookupEndTime:zp(t.domainLookupEndTime,r),connectionStartTime:zp(t.connectionStartTime,r),connectionEndTime:zp(t.connectionEndTime,r),secureConnectionStartTime:zp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function M5e(t){return zp(E5e.now(),t)}function L5e(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 Ute(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function U5e(t){return{referrerPolicy:t.referrerPolicy}}function P5e(t){let e=t.referrerPolicy;Fh(e);let r=null;if(t.referrer==="client"){let a=kte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=HL(r),s=HL(r,!0);n.toString().length>4096&&(n=s);let i=ES(t,n),o=NI(n)&&!NI(t.url);switch(e){case"origin":return s??HL(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=TI(t);return ES(n,a)?n:NI(n)&&!NI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function HL(t,e){return Fh(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 NI(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 O5e(t,e){if(mS===void 0)return!0;let r=Pte(e);if(r==="no metadata"||r.length===0)return!0;let n=G5e(r),s=q5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=mS.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)),Y5e(c,a))return!0}return!1}var H5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Pte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=H5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_te.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function G5e(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 q5e(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 Y5e(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 V5e(t){}function ES(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function W5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function J5e(t){return t.controller.state==="aborted"}function z5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function j5e(t){return y5e[t.toLowerCase()]??t}function K5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Fh(typeof e=="string"),e}var $5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Ote(t,e,r=0,n=1){class s{ Line truncated
`);function NHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function THe(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 xHe(t,e){IS(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&&yS(t,wHe,i)||i.position===t.length-4&&yS(t,SHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=RHe(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",NHe(u)||(u=""),h=new bHe([d],A,{type:u})):h=EHe(Buffer.from(d)),IS(Xte(c)),IS(typeof h=="string"&&Xte(h)||IHe(h)),s.push(yHe(c,h,A))}}function RHe(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=Kp(a=>a!==10&&a!==13&&a!==58,t,e);if(o=jL(o,!0,!0,a=>a===9||a===32),!CHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Kp(a=>a===32||a===9,t,e),mHe(o)){case"content-disposition":{if(r=n=null,!yS(t,QHe,e)||(e.position+=17,r=tre(t,e),r===null))return"failure";if(yS(t,ere,e)){let a=e.position+ere.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=tre(t,e),n===null))return"failure"}break}case"content-type":{let a=Kp(c=>c!==10&&c!==13,t,e);a=jL(a,!1,!0,c=>c===9||c===32),s=Zte(a);break}case"content-transfer-encoding":{let a=Kp(c=>c!==10&&c!==13,t,e);a=jL(a,!1,!0,c=>c===9||c===32),i=Zte(a);break}default:Kp(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function tre(t,e){IS(t[e.position-1]===34);let r=Kp(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 Kp(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function jL(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 yS(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}rre.exports={multipartFormDataParser:xHe,validateBoundary:THe}});var Zp=C((iWt,hre)=>{"use strict";var DI=lt(),{ReadableStreamFrom:DHe,isBlobLike:sre,isReadableStreamLike:kHe,readableStreamClose:vHe,createDeferredPromise:_He,fullyReadBody:FHe,extractMimeType:MHe,utf8DecodeBytes:are}=Ri(),{FormData:ire}=RI(),{kState:Xp}=Sl(),{webidl:LHe}=Kn(),{Blob:UHe}=Q("node:buffer"),KL=Q("node:assert"),{isErrored:cre,isDisturbed:PHe}=Q("node:stream"),{isArrayBuffer:OHe}=Q("node:util/types"),{serializeAMimeType:HHe}=Xs(),{multipartFormDataParser:GHe}=nre(),$L;try{let t=Q("node:crypto");$L=e=>t.randomInt(0,e)}catch{$L=t=>Math.floor(Math.random(t))}var BS=new TextEncoder;function qHe(){}var Are=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,ure;Are&&(ure=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!PHe(e)&&!cre(e)&&e.cancel("Response object has been garbage collected").catch(qHe)}));function lre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:sre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?BS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>vHe(c))},start(){},type:"bytes"}),KL(kHe(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(OHe(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(DI.isFormDataLike(t)){let c=`----formdata-undici-0${`${$L(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=yS.encode(A+`; name="${u(l(E))}"\r
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,m]of t)if(typeof m=="string"){let I=BS.encode(A+`; name="${u(l(E))}"\r
\r
${l(m)}\r
`);d.push(I),i+=I.byteLength}else{let I=yS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
`);d.push(I),i+=I.byteLength}else{let I=BS.encode(`${A}; name="${u(l(E))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\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=yS.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(Xte(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(RI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:CHe(t)}if((typeof s=="string"||RI.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(!rre(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 kHe(t,e=!1){return t instanceof ReadableStream&&(JL(!RI.isDisturbed(t),"The body has already been consumed."),JL(!t.locked,"The stream is locked.")),ire(t,e)}function vHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function _He(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function FHe(t){return{blob(){return Kp(this,r=>{let n=ere(this);return n===null?n="":n&&(n=xHe(n)),new SHe([r],{type:n})},t)},arrayBuffer(){return Kp(this,r=>new Uint8Array(r).buffer,t)},text(){return Kp(this,tre,t)},json(){return Kp(this,LHe,t)},formData(){return Kp(this,r=>{let n=ere(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=RHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Zte;return i[$p]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Zte;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 Kp(this,r=>new Uint8Array(r),t)}}}function MHe(t){Object.assign(t.prototype,FHe(t))}async function Kp(t,e,r){if(wHe.brandCheck(t,r),ore(t))throw new TypeError("Body is unusable: Body has already been read");_He(t[$p]);let n=BHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[$p].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await bHe(t[$p].body,i,s),n.promise)}function ore(t){let e=t[$p].body;return e!=null&&(e.stream.locked||RI.isDisturbed(e.stream))}function LHe(t){return JSON.parse(tre(t))}function ere(t){let e=t[$p].headersList,r=QHe(e);return r==="failure"?null:r}are.exports={extractBody:ire,safelyExtractBody:kHe,cloneBody:vHe,mixinBody:MHe,streamRegistry:sre,hasFinalizationRegistry:nre,bodyUnusable:ore}});var bre=C((Y7t,Bre)=>{"use strict";var Me=Q("node:assert"),Pe=lt(),{channels:cre}=Pp(),jL=RL(),{RequestContentLengthMismatchError:Mh,ResponseContentLengthMismatchError:Are,RequestAbortedError:mre,InvalidArgumentError:UHe,HeadersTimeoutError:PHe,HeadersOverflowError:OHe,SocketError:Zp,InformationalError:em,BodyTimeoutError:HHe,HTTPParserError:GHe,ResponseExceededMaxSizeError:qHe}=_t(),{kUrl:Ere,kReset:Zs,kClient:wS,kParser:lr,kBlocking:vI,kRunning:an,kPending:Cre,kSize:ure,kWriting:Nl,kQueue:wa,kNoRef:DI,kKeepAliveDefaultTimeout:YHe,kHostHeader:VHe,kPendingIdx:WHe,kRunningIdx:Bo,kError:Ss,kPipelining:SS,kSocket:Uh,kKeepAliveTimeoutValue:TS,kMaxHeadersSize:KL,kKeepAliveMaxTimeout:JHe,kKeepAliveTimeoutThreshold:zHe,kHeadersTimeout:jHe,kBodyTimeout:KHe,kStrictContentLength:ZL,kMaxRequests:lre,kCounter:$He,kMaxResponseSize:XHe,kOnError:dre,kResume:nu,kHTTPContext:Ire}=Br(),Di=ste(),hre=Buffer.alloc(0),BS=Buffer[Symbol.species],bS=Pe.addListener,ZHe=Pe.removeAllListeners,Ph=Symbol("kIdleSocketValidation"),Lh=Symbol("kIdleSocketValidationTimeout"),nU=Symbol("kSocketUsed"),$L;async function e9e(){let t=process.env.JEST_WORKER_ID?vL():void 0,e;try{e=await WebAssembly.compile(ate())}catch{e=await WebAssembly.compile(t||vL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onStatus(new BS(Ec.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Lr.ptr===r),Lr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderField(new BS(Ec.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderValue(new BS(Ec.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Lr.ptr===r),Lr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onBody(new BS(Ec.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Lr.ptr===r),Lr.onMessageComplete()||0)}})}var XL=null,eU=e9e();eU.catch();var Lr=null,Ec=null,QS=0,Cc=null,t9e=0,kI=1,tm=2|kI,NS=4|kI,tU=8|t9e,rU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[KL])&&e[KL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Di.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`);d.push(I,m,h),typeof m.size=="number"?i+=I.byteLength+m.size+h.byteLength:f=!0}let g=BS.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(sre(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(DI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:DHe(t)}if((typeof s=="string"||DI.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(!cre(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 YHe(t,e=!1){return t instanceof ReadableStream&&(KL(!DI.isDisturbed(t),"The body has already been consumed."),KL(!t.locked,"The stream is locked.")),lre(t,e)}function VHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function WHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function JHe(t){return{blob(){return $p(this,r=>{let n=ore(this);return n===null?n="":n&&(n=HHe(n)),new UHe([r],{type:n})},t)},arrayBuffer(){return $p(this,r=>new Uint8Array(r).buffer,t)},text(){return $p(this,are,t)},json(){return $p(this,jHe,t)},formData(){return $p(this,r=>{let n=ore(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=GHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new ire;return i[Xp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new ire;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 $p(this,r=>new Uint8Array(r),t)}}}function zHe(t){Object.assign(t.prototype,JHe(t))}async function $p(t,e,r){if(LHe.brandCheck(t,r),dre(t))throw new TypeError("Body is unusable: Body has already been read");WHe(t[Xp]);let n=_He(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[Xp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await FHe(t[Xp].body,i,s),n.promise)}function dre(t){let e=t[Xp].body;return e!=null&&(e.stream.locked||DI.isDisturbed(e.stream))}function jHe(t){return JSON.parse(are(t))}function ore(t){let e=t[Xp].headersList,r=MHe(e);return r==="failure"?null:r}hre.exports={extractBody:lre,safelyExtractBody:YHe,cloneBody:VHe,mixinBody:zHe,streamRegistry:ure,hasFinalizationRegistry:Are,bodyUnusable:dre}});var xre=C((oWt,Tre)=>{"use strict";var Me=Q("node:assert"),Pe=lt(),{channels:fre}=Op(),XL=vL(),{RequestContentLengthMismatchError:Mh,ResponseContentLengthMismatchError:gre,RequestAbortedError:bre,InvalidArgumentError:KHe,HeadersTimeoutError:$He,HeadersOverflowError:XHe,SocketError:em,InformationalError:tm,BodyTimeoutError:ZHe,HTTPParserError:e9e,ResponseExceededMaxSizeError:t9e}=_t(),{kUrl:Qre,kReset:Zs,kClient:SS,kParser:lr,kBlocking:_I,kRunning:an,kPending:wre,kSize:pre,kWriting:Nl,kQueue:wa,kNoRef:kI,kKeepAliveDefaultTimeout:r9e,kHostHeader:n9e,kPendingIdx:s9e,kRunningIdx:Bo,kError:Ss,kPipelining:NS,kSocket:Uh,kKeepAliveTimeoutValue:xS,kMaxHeadersSize:ZL,kKeepAliveMaxTimeout:i9e,kKeepAliveTimeoutThreshold:o9e,kHeadersTimeout:a9e,kBodyTimeout:c9e,kStrictContentLength:rU,kMaxRequests:mre,kCounter:A9e,kMaxResponseSize:u9e,kOnError:Ere,kResume:nu,kHTTPContext:Sre}=Br(),Di=ute(),Cre=Buffer.alloc(0),bS=Buffer[Symbol.species],QS=Pe.addListener,l9e=Pe.removeAllListeners,Ph=Symbol("kIdleSocketValidation"),Lh=Symbol("kIdleSocketValidationTimeout"),oU=Symbol("kSocketUsed"),eU;async function d9e(){let t=process.env.JEST_WORKER_ID?ML():void 0,e;try{e=await WebAssembly.compile(hte())}catch{e=await WebAssembly.compile(t||ML())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onStatus(new bS(Ec.buffer,i,s))||0},wasm_on_message_begin:r=>(Me(Lr.ptr===r),Lr.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderField(new bS(Ec.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onHeaderValue(new bS(Ec.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Me(Lr.ptr===r),Lr.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Me(Lr.ptr===r);let i=n-Cc+Ec.byteOffset;return Lr.onBody(new bS(Ec.buffer,i,s))||0},wasm_on_message_complete:r=>(Me(Lr.ptr===r),Lr.onMessageComplete()||0)}})}var tU=null,nU=d9e();nU.catch();var Lr=null,Ec=null,wS=0,Cc=null,h9e=0,vI=1,rm=2|vI,TS=4|vI,sU=8|h9e,iU=class{constructor(e,r,{exports:n}){Me(Number.isFinite(e[ZL])&&e[ZL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Di.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[VHe],i?g+=`connection: upgrade\r
`:g+=t[n9e],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[SS]&&!h[Zs]?g+=`connection: keep-alive\r
`:t[NS]&&!h[Zs]?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 cre.sendHeaders.hasSubscribers&&cre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?gre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?gre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?pre(f,c.stream(),t,e,h,u,g,l):c9e(f,c,t,e,h,u,g,l):Pe.isStream(c)?a9e(f,c,t,e,h,u,g,l):Pe.isIterable(c)?pre(f,c,t,e,h,u,g,l):Me(!1),!0}function a9e(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"stream body cannot be pipelined");let c=!1,A=new xS({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){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new mre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Nl]&&r[an]<=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")?Pe.destroy(e,f):Pe.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 gre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
`}return fre.sendHeaders.hasSubscribers&&fre.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?yre(f,null,t,e,h,u,g,l):Pe.isBuffer(c)?yre(f,c,t,e,h,u,g,l):Pe.isBlobLike(c)?typeof c.stream=="function"?Bre(f,c.stream(),t,e,h,u,g,l):I9e(f,c,t,e,h,u,g,l):Pe.isStream(c)?C9e(f,c,t,e,h,u,g,l):Pe.isIterable(c)?Bre(f,c,t,e,h,u,g,l):Me(!1),!0}function C9e(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===0,"stream body cannot be pipelined");let c=!1,A=new RS({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){Pe.destroy(this,g)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new bre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Me(s.destroyed||s[Nl]&&r[an]<=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")?Pe.destroy(e,f):Pe.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 yre(t,e,r,n,s,i,o,a){try{e?Pe.isBuffer(e)&&(Me(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
\r
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[Zs]=!0)):i===0?s.write(`${o}content-length: 0\r
\r
`,"latin1"):(Me(i===null,"no body must not have content length"),s.write(`${o}\r
`,"latin1")),n.onRequestSent(),r[nu]()}catch(c){t(c)}}async function c9e(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 Mh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[nu]()}catch(c){t(c)}}async function I9e(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 Mh;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[Zs]=!0),r[nu]()}catch(c){t(c)}}async function pre(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===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[Ss]?h(s[Ss]):c=d});s.on("close",A).on("drain",A);let l=new xS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ss])throw s[Ss];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var xS=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[Nl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ss])throw r[Ss];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[ZL])throw new Mh;process.emitWarning(new Mh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!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[Zs]=!0),r[nu]()}catch(c){t(c)}}async function Bre(t,e,r,n,s,i,o,a){Me(i!==0||r[an]===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[Ss]?h(s[Ss]):c=d});s.on("close",A).on("drain",A);let l=new RS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Ss])throw s[Ss];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var RS=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[Nl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Ss])throw r[Ss];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[rU])throw new Mh;process.emitWarning(new Mh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[Zs]=!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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===tm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Nl]=!1,e[Ss])throw e[Ss];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[lr].timeout&&r[lr].timeoutType===rm&&r[lr].timeout.refresh&&r[lr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Nl]=!1,e[Ss])throw e[Ss];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[ZL])throw new Mh;process.emitWarning(new Mh)}e[lr].timeout&&e[lr].timeoutType===tm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Nl]=!1,e&&(Me(n[an]<=1,"pipeline should only contain this request"),s(e))}};Bre.exports=r9e});var Dre=C((V7t,Rre)=>{"use strict";var bo=Q("node:assert"),{pipeline:A9e}=Q("node:stream"),mt=lt(),{RequestContentLengthMismatchError:sU,RequestAbortedError:Qre,SocketError:_I,InformationalError:iU}=_t(),{kUrl:RS,kReset:kS,kClient:rm,kRunning:vS,kPending:u9e,kQueue:Tl,kPendingIdx:oU,kRunningIdx:Sa,kError:Ta,kSocket:Dn,kStrictContentLength:l9e,kOnError:aU,kMaxConcurrentStreams:xre,kHTTP2Session:Na,kResume:xl,kSize:d9e,kHTTPContext:h9e}=Br(),su=Symbol("open streams"),wre,Sre=!1,DS;try{DS=Q("node:http2")}catch{DS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:f9e,HTTP2_HEADER_METHOD:g9e,HTTP2_HEADER_PATH:p9e,HTTP2_HEADER_SCHEME:m9e,HTTP2_HEADER_CONTENT_LENGTH:E9e,HTTP2_HEADER_EXPECT:C9e,HTTP2_HEADER_STATUS:I9e}}=DS;function y9e(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 B9e(t,e){t[Dn]=e,Sre||(Sre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=DS.connect(t[RS],{createConnection:()=>e,peerMaxConcurrentStreams:t[xre]});r[su]=0,r[rm]=t,r[Dn]=e,mt.addListener(r,"error",Q9e),mt.addListener(r,"frameError",w9e),mt.addListener(r,"end",S9e),mt.addListener(r,"goaway",N9e),mt.addListener(r,"close",function(){let{[rm]:s}=this,{[Dn]:i}=s,o=this[Dn][Ta]||this[Ta]||new _I("closed",mt.getSocketInfo(i));if(s[Na]=null,s.destroyed){bo(s[u9e]===0);let a=s[Tl].splice(s[Sa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Na]=r,e[Na]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=s,this[rm][aU](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new _I("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ta]||new _I("closed",mt.getSocketInfo(this));t[Dn]=null,this[Na]!=null&&this[Na].destroy(s),t[oU]=t[Sa],bo(t[vS]===0),t.emit("disconnect",t[RS],[t],s),t[xl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return x9e(t,...s)},resume(){b9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function b9e(t){let e=t[Dn];e?.destroyed===!1&&(t[d9e]===0&&t[xre]===0?(e.unref(),t[Na].unref()):(e.ref(),t[Na].ref()))}function Q9e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Ta]=t,this[rm][aU](t)}function w9e(t,e,r){if(r===0){let n=new iU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Ta]=n,this[rm][aU](n)}}function S9e(){let t=new _I("other side closed",mt.getSocketInfo(this[Dn]));this.destroy(t),mt.destroy(this[Dn],t)}function N9e(t){let e=this[Ta]||new _I(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[rm];if(r[Dn]=null,r[h9e]=null,this[Na]!=null&&(this[Na].destroy(e),this[Na]=null),mt.destroy(this[Dn],e),r[Sa]<r[Tl].length){let n=r[Tl][r[Sa]];r[Tl][r[Sa]++]=null,mt.errorRequest(r,n,e),r[oU]=r[Sa]}bo(r[vS]===0),r.emit("disconnect",r[RS],[r],e),r[xl]()}function T9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function x9e(t,e){let r=t[Na],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.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[RS];l[f9e]=i||`${h}${f?`:${f}`:""}`,l[g9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Qre,mt.errorRequest(t,e,B),d!=null&&mt.destroy(d,B),mt.destroy(u,B),t[Tl][t[Sa]++]=null,t[xl]())};try{e.onConnect(g)}catch(B){mt.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[su],t[Tl][t[Sa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Tl][t[Sa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[p9e]=s,l[m9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){wre??=Xp().extractBody;let[B,M]=wre(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),T9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[l9e])return mt.errorRequest(t,e,new sU),!1;process.emitWarning(new sU)}m!=null&&(bo(u,"no body must not have content length"),l[E9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[C9e]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[tGe]=c??3e5,this[eGe]=s??3e5,this[rGe]=I??!0,this[nGe]=B,this[lU]=V,this[Dl]=null,this[cGe]=P>-1?P:-1,this[uGe]=X??100,this[Kr]=null,this[xa]=[],this[ou]=0,this[Ra]=0,this[UI]=ue=>hU(this,ue),this[AGe]=ue=>qre(this,ue)}get pipelining(){return this[LS]}set pipelining(e){this[LS]=e,this[UI](!0)}get[HI](){return this[xa].length-this[Ra]}get[OI](){return this[Ra]-this[ou]}get[PI](){return this[xa].length-this[ou]}get[J9e](){return!!this[Kr]&&!this[sm]&&!this[Kr].destroyed}get[uU](){return!!(this[Kr]?.busy(null)||this[PI]>=(Gre(this)||1)||this[HI]>0)}[W9e](e){Yre(this),this.once("connect",e)}[aGe](e,r){let n=e.origin||this[yc].origin,s=new O9e(n,e,r);return this[xa].push(s),this[Hh]||(Oh.bodyLength(s.body)==null&&Oh.isIterable(s.body)?(this[Hh]=1,queueMicrotask(()=>hU(this))):this[UI](!0)),this[Hh]&&this[kl]!==2&&this[uU]&&(this[kl]=2),this[kl]<2}async[iGe](){return new Promise(e=>{this[PI]?this[Dl]=e:e(null)})}async[oGe](e){return new Promise(r=>{let n=this[xa].splice(this[Ra]);for(let i=0;i<n.length;i++){let o=n[i];Oh.errorRequest(this,o,e)}let s=()=>{this[Dl]&&(this[Dl](),this[Dl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[UI]()})}},hGe=MS();function qre(t,e){if(t[OI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ra]===t[ou]);let r=t[xa].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Oh.errorRequest(t,s,e)}iu(t[PI]===0)}}async function Yre(t){iu(!t[sm]),iu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Hre.isIP(o)),r=o}t[sm]=!0,nm.beforeConnect.hasSubscribers&&nm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[LI]},connector:t[MI]});try{let i=await new Promise((o,a)=>{t[MI]({host:e,hostname:r,protocol:n,port:s,servername:t[Rl],localAddress:t[LI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Oh.destroy(i.on("error",Pre),new q9e);return}iu(i);try{t[Kr]=i.alpnProtocol==="h2"?await dGe(t,i):await lGe(t,i)}catch(o){throw i.destroy().on("error",Pre),o}t[sm]=!1,i[sGe]=0,i[lU]=t[lU],i[V9e]=t,i[j9e]=null,nm.connected.hasSubscribers&&nm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[LI]},connector:t[MI],socket:i}),t.emit("connect",t[yc],[t])}catch(i){if(t.destroyed)return;if(t[sm]=!1,nm.connectError.hasSubscribers&&nm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[LI]},connector:t[MI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[OI]===0);t[HI]>0&&t[xa][t[Ra]].servername===t[Rl];){let o=t[xa][t[Ra]++];Oh.errorRequest(t,o,i)}else qre(t,i);t.emit("connectionError",t[yc],[t],i)}t[UI]()}function Ore(t){t[kl]=0,t.emit("drain",t[yc],[t])}function hU(t,e){t[Hh]!==2&&(t[Hh]=2,fGe(t,e),t[Hh]=0,t[ou]>256&&(t[xa].splice(0,t[ou]),t[Ra]-=t[ou],t[ou]=0))}function fGe(t,e){for(;;){if(t.destroyed){iu(t[HI]===0);return}if(t[Dl]&&!t[PI]){t[Dl](),t[Dl]=null;return}if(t[Kr]&&t[Kr].resume(),t[uU])t[kl]=2;else if(t[kl]===2){e?(t[kl]=1,queueMicrotask(()=>Ore(t))):Ore(t);continue}if(t[HI]===0||t[OI]>=(Gre(t)||1))return;let r=t[xa][t[Ra]];if(t[yc].protocol==="https:"&&t[Rl]!==r.servername){if(t[OI]>0)return;t[Rl]=r.servername,t[Kr]?.destroy(new G9e("servername changed"),()=>{t[Kr]=null,hU(t)})}if(t[sm])return;if(!t[Kr]){Yre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ra]++:t[xa].splice(t[Ra],1)}}Vre.exports=dU});var fU=C((K7t,Wre)=>{"use strict";var US=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)}};Wre.exports=class{constructor(){this.head=this.tail=new US}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new US),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var zre=C(($7t,Jre)=>{var{kFree:gGe,kConnected:pGe,kPending:mGe,kQueued:EGe,kRunning:CGe,kSize:IGe}=Br(),Gh=Symbol("pool"),gU=class{constructor(e){this[Gh]=e}get connected(){return this[Gh][pGe]}get free(){return this[Gh][gGe]}get pending(){return this[Gh][mGe]}get queued(){return this[Gh][EGe]}get running(){return this[Gh][CGe]}get size(){return this[Gh][IGe]}};Jre.exports=gU});var yU=C((X7t,sne)=>{"use strict";var yGe=qp(),BGe=fU(),{kConnected:pU,kSize:jre,kRunning:Kre,kPending:$re,kQueued:GI,kBusy:bGe,kFree:QGe,kUrl:wGe,kClose:SGe,kDestroy:NGe,kDispatch:TGe}=Br(),xGe=zre(),ei=Symbol("clients"),Ns=Symbol("needDrain"),qI=Symbol("queue"),mU=Symbol("closed resolve"),EU=Symbol("onDrain"),Xre=Symbol("onConnect"),Zre=Symbol("onDisconnect"),ene=Symbol("onCo Line truncated
`,"latin1"),r!==null&&s!==r){if(n[rU])throw new Mh;process.emitWarning(new Mh)}e[lr].timeout&&e[lr].timeoutType===rm&&e[lr].timeout.refresh&&e[lr].timeout.refresh(),n[nu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Nl]=!1,e&&(Me(n[an]<=1,"pipeline should only contain this request"),s(e))}};Tre.exports=f9e});var Lre=C((aWt,Mre)=>{"use strict";var bo=Q("node:assert"),{pipeline:y9e}=Q("node:stream"),mt=lt(),{RequestContentLengthMismatchError:aU,RequestAbortedError:Rre,SocketError:FI,InformationalError:cU}=_t(),{kUrl:DS,kReset:vS,kClient:nm,kRunning:_S,kPending:B9e,kQueue:Tl,kPendingIdx:AU,kRunningIdx:Sa,kError:Ta,kSocket:Dn,kStrictContentLength:b9e,kOnError:uU,kMaxConcurrentStreams:Fre,kHTTP2Session:Na,kResume:xl,kSize:Q9e,kHTTPContext:w9e}=Br(),su=Symbol("open streams"),Dre,kre=!1,kS;try{kS=Q("node:http2")}catch{kS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:S9e,HTTP2_HEADER_METHOD:N9e,HTTP2_HEADER_PATH:T9e,HTTP2_HEADER_SCHEME:x9e,HTTP2_HEADER_CONTENT_LENGTH:R9e,HTTP2_HEADER_EXPECT:D9e,HTTP2_HEADER_STATUS:k9e}}=kS;function v9e(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 _9e(t,e){t[Dn]=e,kre||(kre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=kS.connect(t[DS],{createConnection:()=>e,peerMaxConcurrentStreams:t[Fre]});r[su]=0,r[nm]=t,r[Dn]=e,mt.addListener(r,"error",M9e),mt.addListener(r,"frameError",L9e),mt.addListener(r,"end",U9e),mt.addListener(r,"goaway",P9e),mt.addListener(r,"close",function(){let{[nm]:s}=this,{[Dn]:i}=s,o=this[Dn][Ta]||this[Ta]||new FI("closed",mt.getSocketInfo(i));if(s[Na]=null,s.destroyed){bo(s[B9e]===0);let a=s[Tl].splice(s[Sa]);for(let c=0;c<a.length;c++){let A=a[c];mt.errorRequest(s,A,o)}}}),r.unref(),t[Na]=r,e[Na]=r,mt.addListener(e,"error",function(s){bo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Ta]=s,this[nm][uU](s)}),mt.addListener(e,"end",function(){mt.destroy(this,new FI("other side closed",mt.getSocketInfo(this)))}),mt.addListener(e,"close",function(){let s=this[Ta]||new FI("closed",mt.getSocketInfo(this));t[Dn]=null,this[Na]!=null&&this[Na].destroy(s),t[AU]=t[Sa],bo(t[_S]===0),t.emit("disconnect",t[DS],[t],s),t[xl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return H9e(t,...s)},resume(){F9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function F9e(t){let e=t[Dn];e?.destroyed===!1&&(t[Q9e]===0&&t[Fre]===0?(e.unref(),t[Na].unref()):(e.ref(),t[Na].ref()))}function M9e(t){bo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Ta]=t,this[nm][uU](t)}function L9e(t,e,r){if(r===0){let n=new cU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Ta]=n,this[nm][uU](n)}}function U9e(){let t=new FI("other side closed",mt.getSocketInfo(this[Dn]));this.destroy(t),mt.destroy(this[Dn],t)}function P9e(t){let e=this[Ta]||new FI(`HTTP/2: "GOAWAY" frame received with code ${t}`,mt.getSocketInfo(this)),r=this[nm];if(r[Dn]=null,r[w9e]=null,this[Na]!=null&&(this[Na].destroy(e),this[Na]=null),mt.destroy(this[Dn],e),r[Sa]<r[Tl].length){let n=r[Tl][r[Sa]];r[Tl][r[Sa]++]=null,mt.errorRequest(r,n,e),r[AU]=r[Sa]}bo(r[_S]===0),r.emit("disconnect",r[DS],[r],e),r[xl]()}function O9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function H9e(t,e){let r=t[Na],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return mt.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[DS];l[S9e]=i||`${h}${f?`:${f}`:""}`,l[N9e]=n;let g=B=>{e.aborted||e.completed||(B=B||new Rre,mt.errorRequest(t,e,B),d!=null&&mt.destroy(d,B),mt.destroy(u,B),t[Tl][t[Sa]++]=null,t[xl]())};try{e.onConnect(g)}catch(B){mt.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[su],t[Tl][t[Sa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[su],t[Tl][t[Sa]++]=null}),d.once("close",()=>{r[su]-=1,r[su]===0&&r.unref()}),!0;l[T9e]=s,l[x9e]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=mt.bodyLength(u);if(mt.isFormDataLike(u)){Dre??=Zp().extractBody;let[B,M]=Dre(u);l["content-type"]=M,u=B.stream,m=B.length}if(m==null&&(m=e.contentLength),(m===0||!E)&&(m=null),O9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[b9e])return mt.errorRequest(t,e,new aU),!1;process.emitWarning(new aU)}m!=null&&(bo(u,"no body must not have content length"),l[R9e]=`${m}`),r.ref();let I=n==="GET"||n==="HEAD"||u===null;return a?(l[D9e]="100-continue",d=r.request(l,{endStream:I,signal:c}),d.once("cont Line truncated
`,this[hGe]=c??3e5,this[dGe]=s??3e5,this[fGe]=I??!0,this[gGe]=B,this[fU]=V,this[Dl]=null,this[IGe]=P>-1?P:-1,this[BGe]=X??100,this[Kr]=null,this[xa]=[],this[ou]=0,this[Ra]=0,this[PI]=ue=>pU(this,ue),this[yGe]=ue=>jre(this,ue)}get pipelining(){return this[US]}set pipelining(e){this[US]=e,this[PI](!0)}get[GI](){return this[xa].length-this[Ra]}get[HI](){return this[Ra]-this[ou]}get[OI](){return this[xa].length-this[ou]}get[iGe](){return!!this[Kr]&&!this[im]&&!this[Kr].destroyed}get[hU](){return!!(this[Kr]?.busy(null)||this[OI]>=(zre(this)||1)||this[GI]>0)}[sGe](e){Kre(this),this.once("connect",e)}[CGe](e,r){let n=e.origin||this[yc].origin,s=new X9e(n,e,r);return this[xa].push(s),this[Hh]||(Oh.bodyLength(s.body)==null&&Oh.isIterable(s.body)?(this[Hh]=1,queueMicrotask(()=>pU(this))):this[PI](!0)),this[Hh]&&this[kl]!==2&&this[hU]&&(this[kl]=2),this[kl]<2}async[mGe](){return new Promise(e=>{this[OI]?this[Dl]=e:e(null)})}async[EGe](e){return new Promise(r=>{let n=this[xa].splice(this[Ra]);for(let i=0;i<n.length;i++){let o=n[i];Oh.errorRequest(this,o,e)}let s=()=>{this[Dl]&&(this[Dl](),this[Dl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[PI]()})}},wGe=LS();function jre(t,e){if(t[HI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){iu(t[Ra]===t[ou]);let r=t[xa].splice(t[ou]);for(let n=0;n<r.length;n++){let s=r[n];Oh.errorRequest(t,s,e)}iu(t[OI]===0)}}async function Kre(t){iu(!t[im]),iu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[yc];if(r[0]==="["){let i=r.indexOf("]");iu(i!==-1);let o=r.substring(1,i);iu(Jre.isIP(o)),r=o}t[im]=!0,sm.beforeConnect.hasSubscribers&&sm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[UI]},connector:t[LI]});try{let i=await new Promise((o,a)=>{t[LI]({host:e,hostname:r,protocol:n,port:s,servername:t[Rl],localAddress:t[UI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Oh.destroy(i.on("error",Vre),new tGe);return}iu(i);try{t[Kr]=i.alpnProtocol==="h2"?await QGe(t,i):await bGe(t,i)}catch(o){throw i.destroy().on("error",Vre),o}t[im]=!1,i[pGe]=0,i[fU]=t[fU],i[nGe]=t,i[aGe]=null,sm.connected.hasSubscribers&&sm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[UI]},connector:t[LI],socket:i}),t.emit("connect",t[yc],[t])}catch(i){if(t.destroyed)return;if(t[im]=!1,sm.connectError.hasSubscribers&&sm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Rl],localAddress:t[UI]},connector:t[LI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(iu(t[HI]===0);t[GI]>0&&t[xa][t[Ra]].servername===t[Rl];){let o=t[xa][t[Ra]++];Oh.errorRequest(t,o,i)}else jre(t,i);t.emit("connectionError",t[yc],[t],i)}t[PI]()}function Wre(t){t[kl]=0,t.emit("drain",t[yc],[t])}function pU(t,e){t[Hh]!==2&&(t[Hh]=2,SGe(t,e),t[Hh]=0,t[ou]>256&&(t[xa].splice(0,t[ou]),t[Ra]-=t[ou],t[ou]=0))}function SGe(t,e){for(;;){if(t.destroyed){iu(t[GI]===0);return}if(t[Dl]&&!t[OI]){t[Dl](),t[Dl]=null;return}if(t[Kr]&&t[Kr].resume(),t[hU])t[kl]=2;else if(t[kl]===2){e?(t[kl]=1,queueMicrotask(()=>Wre(t))):Wre(t);continue}if(t[GI]===0||t[HI]>=(zre(t)||1))return;let r=t[xa][t[Ra]];if(t[yc].protocol==="https:"&&t[Rl]!==r.servername){if(t[HI]>0)return;t[Rl]=r.servername,t[Kr]?.destroy(new eGe("servername changed"),()=>{t[Kr]=null,pU(t)})}if(t[im])return;if(!t[Kr]){Kre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[Ra]++:t[xa].splice(t[Ra],1)}}$re.exports=gU});var mU=C((dWt,Xre)=>{"use strict";var PS=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)}};Xre.exports=class{constructor(){this.head=this.tail=new PS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new PS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var ene=C((hWt,Zre)=>{var{kFree:NGe,kConnected:TGe,kPending:xGe,kQueued:RGe,kRunning:DGe,kSize:kGe}=Br(),Gh=Symbol("pool"),EU=class{constructor(e){this[Gh]=e}get connected(){return this[Gh][TGe]}get free(){return this[Gh][NGe]}get pending(){return this[Gh][xGe]}get queued(){return this[Gh][RGe]}get running(){return this[Gh][DGe]}get size(){return this[Gh][kGe]}};Zre.exports=EU});var QU=C((fWt,une)=>{"use strict";var vGe=Yp(),_Ge=mU(),{kConnected:CU,kSize:tne,kRunning:rne,kPending:nne,kQueued:qI,kBusy:FGe,kFree:MGe,kUrl:LGe,kClose:UGe,kDestroy:PGe,kDispatch:OGe}=Br(),HGe=ene(),ei=Symbol("clients"),Ns=Symbol("needDrain"),YI=Symbol("queue"),IU=Symbol("closed resolve"),yU=Symbol("onDrain"),sne=Symbol("onConnect"),ine=Symbol("onDisconnect"),one=Symbol("onCo Line truncated
${n.count} ${n.noun} ${n.is} pending:
${e.format(r)}
`.trim())}};lie.exports=yP});var rN=C((SWt,pie)=>{"use strict";var hie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:tVe}=_t(),rVe=am();gie()===void 0&&fie(new rVe);function fie(t){if(!t||typeof t.dispatch!="function")throw new tVe("Argument agent must implement Agent");Object.defineProperty(globalThis,hie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function gie(){return globalThis[hie]}pie.exports={setGlobalDispatcher:fie,getGlobalDispatcher:gie}});var nN=C((TWt,mie)=>{"use strict";mie.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 Cie=C((xWt,Eie)=>{"use strict";var nVe=FS();Eie.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 nVe(r,o,s,i);return r(a,c)}}});var yie=C((RWt,Iie)=>{"use strict";var sVe=WS();Iie.exports=t=>e=>function(n,s){return e(n,new sVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var bie=C((DWt,Bie)=>{"use strict";var iVe=lt(),{InvalidArgumentError:oVe,RequestAbortedError:aVe}=_t(),cVe=nN(),BP=class extends cVe{#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 oVe("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=iVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new aVe(`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 AVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new BP({maxSize:i},s);return e(n,o)}}Bie.exports=AVe});var Sie=C((kWt,wie)=>{"use strict";var{isIP:uVe}=Q("node:net"),{lookup:lVe}=Q("node:dns"),dVe=nN(),{InvalidArgumentError:Em,InformationalError:hVe}=_t(),Qie=Math.pow(2,31)-1,bP=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 hVe("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){lVe(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===Qie?(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===Qie?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 QP(this,e,r)}},QP=class extends dVe{#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":sce(i)&&(r[s]=i);break;case"id":ice(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&sce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ice(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}}};oce.exports={EventSourceStream:hO}});var gce=C((AJt,fce)=>{"use strict";var{pipeline:yze}=Q("node:stream"),{fetching:Bze}=ty(),{makeRequest:bze}=ym(),{webidl:lu}=Kn(),{EventSourceStream:Qze}=ace(),{parseMIMEType:wze}=Xs(),{createFastMessageEvent:Sze}=Nm(),{isNetworkError:cce}=ZI(),{delay:Nze}=lO(),{kEnumerableProperty:nf}=lt(),{environmentSettingsObject:Ace}=Ri(),uce=!1,lce=3e3,gy=0,dce=1,py=2,Tze="anonymous",xze="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gy;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),uce||(uce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:lce};let s=Ace,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=Tze;r.withCredentials&&(o=xze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ace.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=bze(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===py)return;this.#r=gy;let e={request:this.#i,dispatcher:this.#c},r=n=>{cce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(cce(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?wze(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=dce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Qze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Sze(c.type,c.options))}});yze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=Bze(e)}async#A(){this.#r!==py&&(this.#r=gy,this.dispatchEvent(new Event("error")),await Nze(this.#o.reconnectionTime),this.#r===gy&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){lu.brandCheck(this,t),this.#r!==py&&(this.#r=py,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}},hce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:dce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1}};Object.defineProperties(km,hce);Object.defineProperties(km.prototype,hce);Object.defineProperties(km.prototype,{close:nf,onerror:nf,onmessage:nf,onopen:nf,readyState:nf,url:nf,withCredentials:nf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);fce.exports={EventSource:km,defaultReconnectionTime:lce}});var VN=C((uJt,ze)=>{"use strict";var Rze=im(),pce=II(),Dze=om(),kze=hne(),vze=am(),_ze=_U(),Fze=Lne(),Mze=Yne(),mce=_t(),YN=lt(),{InvalidArgumentError:qN}=mce,vm=Rse(),Lze=BI(),Uze=gP(),Pze=die(),Oze=EP(),Hze=rP(),Gze=WS(),{getGlobalDispatcher:Ece,setGlobalDispatcher:qze}=rN(),Yze=nN(),Vze=FS(),Wze=MS();Object.assign(pce.prototype,vm);ze.exports.Dispatcher=pce;ze.exports.Client=Rze;ze.exports.Pool=Dze;ze.exports.BalancedPool=kze;ze.exports.Agent=vze;ze.exports.ProxyAgent=_ze;ze.exports.EnvHttpProxyAgent=Fze;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?i3:I.type==="?"?s3:"\\"+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),ee=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);ee+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==hT&&(ke="$");var et=z+X+ce+ke+ee;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===hT)return[n,s];if(!s)return _$e(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}Hi.makeRe=function(t,e){return new un(t,e||{}).makeRe()};un.prototype.makeRe=v$e;function v$e(){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?i3:e.dot?w$e:S$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uf?r:typeof o=="string"?F$e(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}Hi.match=function(t,e,r){r=r||{};var n=new un(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};un.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;Ty.sep!=="/"&&(e=e.split(Ty.sep).join("/")),e=e.split(oue),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};un.prototype.matchOne=function(t,e,r){return e.indexOf(uf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};un.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===uf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===uf){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===uf?(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)};un.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};un.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===uf)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 _$e(t){return t.replace(/\\(.)/g,"$1")}function F$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Om=C((djt,hue)=>{"use strict";var q$e="2.0.0",Y$e=Number.MAX_SAFE_INTEGER||9007199254740991,V$e=16,W$e=250,J$e=["major","premajor","minor","preminor","patch","prepatch","prerelease"];hue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:V$e,MAX_SAFE_BUILD_LENGTH:W$e,MAX_SAFE_INTEGER:Y$e,RELEASE_TYPES:J$e,SEMVER_SPEC_VERSION:q$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var ky=C((hjt,fue)=>{"use strict";var z$e=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};fue.exports=z$e});var Hm=C((xc,gue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:a3,MAX_SAFE_BUILD_LENGTH:j$e,MAX_LENGTH:K$e}=Om(),$$e=ky();xc=gue.exports={};var X$e=xc.re=[],Z$e=xc.safeRe=[],me=xc.src=[],eXe=xc.safeSrc=[],Ee=xc.t={},tXe=0,c3="[a-zA-Z0-9-]",rXe=[["\\s",1],["\\d",K$e],[c3,j$e]],nXe=t=>{for(let[e,r]of rXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`.trim())}};mie.exports=QP});var nN=C((GWt,Bie)=>{"use strict";var Cie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:hVe}=_t(),fVe=cm();yie()===void 0&&Iie(new fVe);function Iie(t){if(!t||typeof t.dispatch!="function")throw new hVe("Argument agent must implement Agent");Object.defineProperty(globalThis,Cie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function yie(){return globalThis[Cie]}Bie.exports={setGlobalDispatcher:Iie,getGlobalDispatcher:yie}});var sN=C((YWt,bie)=>{"use strict";bie.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 wie=C((VWt,Qie)=>{"use strict";var gVe=MS();Qie.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 gVe(r,o,s,i);return r(a,c)}}});var Nie=C((WWt,Sie)=>{"use strict";var pVe=JS();Sie.exports=t=>e=>function(n,s){return e(n,new pVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var xie=C((JWt,Tie)=>{"use strict";var mVe=lt(),{InvalidArgumentError:EVe,RequestAbortedError:CVe}=_t(),IVe=sN(),wP=class extends IVe{#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 EVe("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=mVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new CVe(`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 yVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new wP({maxSize:i},s);return e(n,o)}}Tie.exports=yVe});var kie=C((zWt,Die)=>{"use strict";var{isIP:BVe}=Q("node:net"),{lookup:bVe}=Q("node:dns"),QVe=sN(),{InvalidArgumentError:Cm,InformationalError:wVe}=_t(),Rie=Math.pow(2,31)-1,SP=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 wVe("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){bVe(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===Rie?(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===Rie?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 NP(this,e,r)}},NP=class extends QVe{#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":uce(i)&&(r[s]=i);break;case"id":lce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&uce(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&lce(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}}};dce.exports={EventSourceStream:pO}});var yce=C((wJt,Ice)=>{"use strict";var{pipeline:vze}=Q("node:stream"),{fetching:_ze}=ry(),{makeRequest:Fze}=Bm(),{webidl:lu}=Kn(),{EventSourceStream:Mze}=hce(),{parseMIMEType:Lze}=Xs(),{createFastMessageEvent:Uze}=Tm(),{isNetworkError:fce}=ey(),{delay:Pze}=fO(),{kEnumerableProperty:nf}=lt(),{environmentSettingsObject:gce}=Ri(),pce=!1,mce=3e3,py=0,Ece=1,my=2,Oze="anonymous",Hze="use-credentials",vm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=py;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),lu.util.markAsUncloneable(this);let n="EventSource constructor";lu.argumentLengthCheck(arguments,1,n),pce||(pce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=lu.converters.USVString(e,n,"url"),r=lu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:mce};let s=gce,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=Oze;r.withCredentials&&(o=Hze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=gce.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=Fze(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===my)return;this.#r=py;let e={request:this.#i,dispatcher:this.#c},r=n=>{fce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(fce(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?Lze(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=Ece,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Mze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Uze(c.type,c.options))}});vze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=_ze(e)}async#A(){this.#r!==my&&(this.#r=py,this.dispatchEvent(new Event("error")),await Pze(this.#o.reconnectionTime),this.#r===py&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a()))}close(){lu.brandCheck(this,t),this.#r!==my&&(this.#r=my,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}},Cce={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:py,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Ece,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:my,writable:!1}};Object.defineProperties(vm,Cce);Object.defineProperties(vm.prototype,Cce);Object.defineProperties(vm.prototype,{close:nf,onerror:nf,onmessage:nf,onopen:nf,readyState:nf,url:nf,withCredentials:nf});lu.converters.EventSourceInitDict=lu.dictionaryConverter([{key:"withCredentials",converter:lu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:lu.converters.any}]);Ice.exports={EventSource:vm,defaultReconnectionTime:mce}});var WN=C((SJt,ze)=>{"use strict";var Gze=om(),Bce=yI(),qze=am(),Yze=Cne(),Vze=cm(),Wze=LU(),Jze=qne(),zze=Kne(),bce=_t(),VN=lt(),{InvalidArgumentError:YN}=bce,_m=Mse(),jze=bI(),Kze=EP(),$ze=Eie(),Xze=yP(),Zze=iP(),eje=JS(),{getGlobalDispatcher:Qce,setGlobalDispatcher:tje}=nN(),rje=sN(),nje=MS(),sje=LS();Object.assign(Bce.prototype,_m);ze.exports.Dispatcher=Bce;ze.exports.Client=Gze;ze.exports.Pool=qze;ze.exports.BalancedPool=Yze;ze.exports.Agent=Vze;ze.exports.ProxyAgent=Wze;ze.exports.EnvHttpProxyAgent=Jze;ze.exports Line truncated
%s`,M,M,I,n);var V=I.type==="*"?c3:I.type==="?"?a3:"\\"+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),ee=n.slice(v.reEnd-8,v.reEnd),ce=n.slice(v.reEnd);ee+=ce;var ue=z.split("(").length-1,Fe=ce;for(g=0;g<ue;g++)Fe=Fe.replace(/\)[+*?]?/,"");ce=Fe;var ke="";ce===""&&e!==gT&&(ke="$");var et=z+X+ce+ke+ee;n=et}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===gT)return[n,s];if(!s)return W$e(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}Hi.makeRe=function(t,e){return new un(t,e||{}).makeRe()};un.prototype.makeRe=V$e;function V$e(){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?c3:e.dot?L$e:U$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===uf?r:typeof o=="string"?J$e(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}Hi.match=function(t,e,r){r=r||{};var n=new un(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};un.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;xy.sep!=="/"&&(e=e.split(xy.sep).join("/")),e=e.split(lue),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};un.prototype.matchOne=function(t,e,r){return e.indexOf(uf)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};un.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===uf){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===uf){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===uf?(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)};un.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};un.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===uf)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 W$e(t){return t.replace(/\\(.)/g,"$1")}function J$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Hm=C((Tjt,Eue)=>{"use strict";var tXe="2.0.0",rXe=Number.MAX_SAFE_INTEGER||9007199254740991,nXe=16,sXe=250,iXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Eue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:nXe,MAX_SAFE_BUILD_LENGTH:sXe,MAX_SAFE_INTEGER:rXe,RELEASE_TYPES:iXe,SEMVER_SPEC_VERSION:tXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var vy=C((xjt,Cue)=>{"use strict";var oXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};Cue.exports=oXe});var Gm=C((xc,Iue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:u3,MAX_SAFE_BUILD_LENGTH:aXe,MAX_LENGTH:cXe}=Hm(),AXe=vy();xc=Iue.exports={};var uXe=xc.re=[],lXe=xc.safeRe=[],me=xc.src=[],dXe=xc.safeSrc=[],Ee=xc.t={},hXe=0,l3="[a-zA-Z0-9-]",fXe=[["\\s",1],["\\d",cXe],[l3,aXe]],gXe=t=>{for(let[e,r]of fXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+Line truncated
`).join(`
`+i),t.push(s+"m+"+ZT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Wtt()+e+" "+t[0]}function Wtt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Jtt(...t){return process.stderr.write(XT.formatWithOptions(vn.inspectOpts,...t)+`
`)}function ztt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function jtt(){return process.env.DEBUG}function Ktt(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}ZT.exports=$3()(vn);var{formatters:Yde}=ZT.exports;Yde.o=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};Yde.O=function(t){return this.inspectOpts.colors=this.useColors,XT.inspect(t,this.inspectOpts)}});var ex=C((q$t,e8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?e8.exports=Ude():e8.exports=Vde()});var zde=C(ai=>{"use strict";var $tt=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Xtt=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Wde=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&$tt(e,t,r);return Xtt(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var Ztt=Wde(Q("http")),ert=Wde(Q("https"));async function Jde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Jde;async function trt(t){let r=(await Jde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=trt;function rrt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ert:Ztt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=rrt});var r8=C(Yi=>{"use strict";var Kde=Yi&&Yi.__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]})),nrt=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=Yi&&Yi.__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)&&Kde(e,t,r);return nrt(e,t),e},srt=Yi&&Yi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Kde(e,t,r)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Agent=void 0;var irt=$de(Q("net")),jde=$de(Q("http")),ort=Q("https");srt(zde(),Yi);var kc=Symbol("AgentBaseInternalState"),t8=class extends jde.Agent{constructor(e){super(e),this[kc]={}}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 irt.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)?ort.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 jde.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[kc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kc].currentSocket;if(this[kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kc]&&(this[kc].defaultPort=e)}get protocol(){return this[kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kc]&&(this[kc].protocol=e)}};Yi.Agent=t8});var Xde=C(Km=>{"use strict";var art=Km&&Km.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Km,"__esModule",{value:!0});Km.parseProxyResponse=void 0;var crt=art(ex()),tx=(0,crt.default)("https-proxy-agent:parse-proxy-response");function Art(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(),tx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),tx("onerror %o",u),r(u)}function A(u){s.push(u),n+=u.length;let l=Buffer.concat(s,n),d=l.indexOf(`\r
`+i),t.push(s+"m+"+tx.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=srt()+e+" "+t[0]}function srt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function irt(...t){return process.stderr.write(ex.formatWithOptions(vn.inspectOpts,...t)+`
`)}function ort(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function art(){return process.env.DEBUG}function crt(t){t.inspectOpts={};let e=Object.keys(vn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=vn.inspectOpts[e[r]]}tx.exports=e8()(vn);var{formatters:jde}=tx.exports;jde.o=function(t){return this.inspectOpts.colors=this.useColors,ex.inspect(t,this.inspectOpts).split(`
`).map(e=>e.trim()).join(" ")};jde.O=function(t){return this.inspectOpts.colors=this.useColors,ex.inspect(t,this.inspectOpts)}});var rx=C((iXt,n8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?n8.exports=qde():n8.exports=Kde()});var Zde=C(ai=>{"use strict";var Art=ai&&ai.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),urt=ai&&ai.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),$de=ai&&ai.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Art(e,t,r);return urt(e,t),e};Object.defineProperty(ai,"__esModule",{value:!0});ai.req=ai.json=ai.toBuffer=void 0;var lrt=$de(Q("http")),drt=$de(Q("https"));async function Xde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}ai.toBuffer=Xde;async function hrt(t){let r=(await Xde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}ai.json=hrt;function frt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?drt:lrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}ai.req=frt});var i8=C(Yi=>{"use strict";var the=Yi&&Yi.__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]})),grt=Yi&&Yi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rhe=Yi&&Yi.__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 grt(e,t),e},prt=Yi&&Yi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&the(e,t,r)};Object.defineProperty(Yi,"__esModule",{value:!0});Yi.Agent=void 0;var mrt=rhe(Q("net")),ehe=rhe(Q("http")),Ert=Q("https");prt(Zde(),Yi);var kc=Symbol("AgentBaseInternalState"),s8=class extends ehe.Agent{constructor(e){super(e),this[kc]={}}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 mrt.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)?Ert.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 ehe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[kc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[kc].currentSocket;if(this[kc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[kc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[kc]&&(this[kc].defaultPort=e)}get protocol(){return this[kc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[kc]&&(this[kc].protocol=e)}};Yi.Agent=s8});var nhe=C($m=>{"use strict";var Crt=$m&&$m.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($m,"__esModule",{value:!0});$m.parseProxyResponse=void 0;var Irt=Crt(rx()),nx=(0,Irt.default)("https-proxy-agent:parse-proxy-response");function yrt(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(),nx("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),nx("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){tx("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}tx("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()})}Km.parseProxyResponse=Art});var she=C(ko=>{"use strict";var urt=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),lrt=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),rhe=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&urt(e,t,r);return lrt(e,t),e},nhe=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var rx=rhe(Q("net")),Zde=rhe(Q("tls")),drt=nhe(Q("assert")),hrt=nhe(ex()),frt=r8(),grt=Q("url"),prt=Xde(),Wy=(0,hrt.default)("https-proxy-agent"),ehe=t=>t.servername===void 0&&t.host&&!rx.isIP(t.host)?{...t,servername:t.host}:t,nx=class extends frt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new grt.URL(e):e,this.proxyHeaders=r?.headers??{},Wy("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?the(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:"?(Wy("Creating `tls.Socket`: %o",this.connectOpts),s=Zde.connect(ehe(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=rx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=rx.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`);if(d===-1){nx("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}nx("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()})}$m.parseProxyResponse=yrt});var Ahe=C(ko=>{"use strict";var Brt=ko&&ko.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),brt=ko&&ko.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ahe=ko&&ko.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Brt(e,t,r);return brt(e,t),e},che=ko&&ko.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ko,"__esModule",{value:!0});ko.HttpsProxyAgent=void 0;var sx=ahe(Q("net")),she=ahe(Q("tls")),Qrt=che(Q("assert")),wrt=che(rx()),Srt=i8(),Nrt=Q("url"),Trt=nhe(),Jy=(0,wrt.default)("https-proxy-agent"),ihe=t=>t.servername===void 0&&t.host&&!sx.isIP(t.host)?{...t,servername:t.host}:t,ix=class extends Srt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new Nrt.URL(e):e,this.proxyHeaders=r?.headers??{},Jy("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?ohe(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:"?(Jy("Creating `tls.Socket`: %o",this.connectOpts),s=she.connect(ihe(this.connectOpts))):(Jy("Creating `net.Socket`: %o",this.connectOpts),s=sx.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=sx.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,prt.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",mrt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),Zde.connect({...the(ehe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new rx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,drt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};nx.protocols=["http","https"];ko.HttpsProxyAgent=nx;function mrt(t){t.resume()}function the(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ahe=C(vo=>{"use strict";var Ert=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Crt=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ohe=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Ert(e,t,r);return Crt(e,t),e},Irt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var yrt=ohe(Q("net")),Brt=ohe(Q("tls")),brt=Irt(ex()),Qrt=Q("events"),wrt=r8(),ihe=Q("url"),$m=(0,brt.default)("http-proxy-agent"),sx=class extends wrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new ihe.URL(e):e,this.proxyHeaders=r?.headers??{},$m("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?Srt(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 ihe.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;$m("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&($m("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
`;let c=(0,Trt.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",xrt),r.secureEndpoint?(Jy("Upgrading socket connection to TLS"),she.connect({...ohe(ihe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new sx.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Jy("Replaying proxy buffer for failed request"),(0,Qrt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ix.protocols=["http","https"];ko.HttpsProxyAgent=ix;function xrt(t){t.resume()}function ohe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var dhe=C(vo=>{"use strict";var Rrt=vo&&vo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Drt=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),lhe=vo&&vo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&Rrt(e,t,r);return Drt(e,t),e},krt=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpProxyAgent=void 0;var vrt=lhe(Q("net")),_rt=lhe(Q("tls")),Frt=krt(rx()),Mrt=Q("events"),Lrt=i8(),uhe=Q("url"),Xm=(0,Frt.default)("http-proxy-agent"),ox=class extends Lrt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new uhe.URL(e):e,this.proxyHeaders=r?.headers??{},Xm("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?Urt(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 uhe.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;Xm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Xm("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),$m("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?($m("Creating `tls.Socket`: %o",this.connectOpts),i=Brt.connect(this.connectOpts)):($m("Creating `net.Socket`: %o",this.connectOpts),i=yrt.connect(this.connectOpts)),await(0,Qrt.once)(i,"connect"),i}};sx.protocols=["http","https"];vo.HttpProxyAgent=sx;function Srt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Dhe=C(px=>{"use strict";Object.defineProperty(px,"__esModule",{value:!0});px.state=void 0;px.state={instrumenterImplementation:void 0}});var zhe=C(yx=>{"use strict";Object.defineProperty(yx,"__esModule",{value:!0});yx.state=void 0;yx.state={operationRequestMap:new WeakMap}});var Dpe=C((Yfr,_ct)=>{_ct.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 vpe=C((Vfr,kpe)=>{var Fct=Dpe();kpe.exports={version:Fct.version}});var ZR=C(y0=>{"use strict";Object.defineProperty(y0,"__esModule",{value:!0});y0.isJsonObject=y0.typeofJsonValue=void 0;function Yct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}y0.typeofJsonValue=Yct;function Vct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}y0.isJsonObject=Vct});var tD=C(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.base64encode=B0.base64decode=void 0;var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),eD=[];for(let t=0;t<vu.length;t++)eD[vu[t].charCodeAt(0)]=t;eD[45]=vu.indexOf("+");eD[95]=vu.indexOf("/");function Wct(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=eD[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)}B0.base64decode=Wct;function Jct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=vu[s|n>>6],e+=vu[n&63],r=0;break}return r&&(e+=vu[s],e+="=",r==1&&(e+="=")),e}B0.base64encode=Jct});var Upe=C(rD=>{"use strict";Object.defineProperty(rD,"__esModule",{value:!0});rD.utf8read=void 0;var zH=t=>String.fromCharCode.apply(String,t);function zct(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(zH(n)),s=0);return r.length?(s&&r.push(zH(n.slice(0,s))),r.join("")):zH(n.slice(0,s))}rD.utf8read=zct});var GB=C(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.WireType=nA.mergeBinaryOptions=nA.UnknownFieldHandler=void 0;var jct;(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])})(jct=nA.UnknownFieldHandler||(nA.UnknownFieldHandler={}));function Kct(t,e){return Object.assign(Object.assign({},t),e)}nA.mergeBinaryOptions=Kct;var $ct;(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"})($ct=nA.WireType||(nA.WireType={}))});var sD=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.varint32read=fi.varint32write=fi.int64toString=fi.int64fromString=fi.varint64write=fi.varint64read=void 0;function Xct(){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")}fi.varint64read=Xct;function Zct(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)}}fi.varint64write=Zct;var nD=65536*65536;function eAt(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>=nD&&(s=s+(n/nD|0),n=n%nD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}fi.int64fromString=eAt;function tAt(t,e){if(e>>>0<=2097151)return""+(nD*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)}fi.int64toString=tAt;function rAt(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)}}fi.varint32write=rAt;function nAt(){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}fi.varint32read=nAt});var hd=C(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.PbLong=dd.PbULong=dd.detectBi=void 0;var qB=sD(),or;function Ppe(){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}dd.detectBi=Ppe;Ppe();function Ope(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Hpe=/^-?[0-9]+$/,oD=4294967296,iD=2147483648,aD=c Line truncated
`)}};DD.RpcError=y9});var b9=C(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.mergeRpcOptions=void 0;var mme=ct();function wut(t,e){if(!e)return t;let r={};kD(t,r),kD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=mme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=mme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},kD(t.meta,r.meta),kD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}vD.mergeRpcOptions=wut;function kD(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 w9=C(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var oA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oA=Gf.DeferredState||(Gf.DeferredState={}));var Q9=class{constructor(e=!0){this._state=oA.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!==oA.PENDING)throw new Error(`cannot resolve ${oA[this.state].toLowerCase()}`);this._resolve(e),this._state=oA.RESOLVED}reject(e){if(this.state!==oA.PENDING)throw new Error(`cannot reject ${oA[this.state].toLowerCase()}`);this._reject(e),this._state=oA.REJECTED}resolvePending(e){this._state===oA.PENDING&&this.resolve(e)}rejectPending(e){this._state===oA.PENDING&&this.reject(e)}};Gf.Deferred=Q9});var N9=C(_D=>{"use strict";Object.defineProperty(_D,"__esModule",{value:!0});_D.RpcOutputStreamController=void 0;var Eme=w9(),qf=ct(),S9=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){qf.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){qf.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){qf.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(){qf.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;qf.assert(e,"bad state"),qf.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 Eme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;qf.assert(n.state==Eme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};_D.RpcOutputStreamController=S9});var x9=C(x0=>{"use strict";var Sut=x0&&x0.__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(x0,"__esModule",{value:!0});x0.UnaryCall=void 0;var T9=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 Sut(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}})}};x0.UnaryCall=T9});var D9=C(R0=>{"use strict";var Nut=R0&&R0.__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(R0,"__esModule",{value:!0});R0.ServerStreamingCall=void 0;var R9=class{constructor(e Line truncated
`)+4,e.outputData[0].data=e._header+n.substring(s),Xm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Xm("Creating `tls.Socket`: %o",this.connectOpts),i=_rt.connect(this.connectOpts)):(Xm("Creating `net.Socket`: %o",this.connectOpts),i=vrt.connect(this.connectOpts)),await(0,Mrt.once)(i,"connect"),i}};ox.protocols=["http","https"];vo.HttpProxyAgent=ox;function Urt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mhe=C(Ex=>{"use strict";Object.defineProperty(Ex,"__esModule",{value:!0});Ex.state=void 0;Ex.state={instrumenterImplementation:void 0}});var Zhe=C(bx=>{"use strict";Object.defineProperty(bx,"__esModule",{value:!0});bx.state=void 0;bx.state={operationRequestMap:new WeakMap}});var Mpe=C((ogr,Wct)=>{Wct.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 Upe=C((agr,Lpe)=>{var Jct=Mpe();Lpe.exports={version:Jct.version}});var tD=C(B0=>{"use strict";Object.defineProperty(B0,"__esModule",{value:!0});B0.isJsonObject=B0.typeofJsonValue=void 0;function rAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}B0.typeofJsonValue=rAt;function nAt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}B0.isJsonObject=nAt});var nD=C(b0=>{"use strict";Object.defineProperty(b0,"__esModule",{value:!0});b0.base64encode=b0.base64decode=void 0;var vu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),rD=[];for(let t=0;t<vu.length;t++)rD[vu[t].charCodeAt(0)]=t;rD[45]=vu.indexOf("+");rD[95]=vu.indexOf("/");function sAt(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=rD[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)}b0.base64decode=sAt;function iAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=vu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=vu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=vu[s|n>>6],e+=vu[n&63],r=0;break}return r&&(e+=vu[s],e+="=",r==1&&(e+="=")),e}b0.base64encode=iAt});var qpe=C(sD=>{"use strict";Object.defineProperty(sD,"__esModule",{value:!0});sD.utf8read=void 0;var $H=t=>String.fromCharCode.apply(String,t);function oAt(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($H(n)),s=0);return r.length?(s&&r.push($H(n.slice(0,s))),r.join("")):$H(n.slice(0,s))}sD.utf8read=oAt});var qB=C(nA=>{"use strict";Object.defineProperty(nA,"__esModule",{value:!0});nA.WireType=nA.mergeBinaryOptions=nA.UnknownFieldHandler=void 0;var aAt;(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])})(aAt=nA.UnknownFieldHandler||(nA.UnknownFieldHandler={}));function cAt(t,e){return Object.assign(Object.assign({},t),e)}nA.mergeBinaryOptions=cAt;var AAt;(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"})(AAt=nA.WireType||(nA.WireType={}))});var oD=C(fi=>{"use strict";Object.defineProperty(fi,"__esModule",{value:!0});fi.varint32read=fi.varint32write=fi.int64toString=fi.int64fromString=fi.varint64write=fi.varint64read=void 0;function uAt(){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")}fi.varint64read=uAt;function lAt(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)}}fi.varint64write=lAt;var iD=65536*65536;function dAt(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]}fi.int64fromString=dAt;function hAt(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)}fi.int64toString=hAt;function fAt(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)}}fi.varint32write=fAt;function gAt(){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}fi.varint32read=gAt});var hd=C(dd=>{"use strict";Object.defineProperty(dd,"__esModule",{value:!0});dd.PbLong=dd.PbULong=dd.detectBi=void 0;var YB=oD(),or;function Ype(){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}dd.detectBi=Ype;Ype();function Vpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Wpe=/^-?[0-9]+$/,cD=4294967296,aD=2147483648,AD=c Line truncated
`)}};vD.RpcError=Q9});var S9=C(FD=>{"use strict";Object.defineProperty(FD,"__esModule",{value:!0});FD.mergeRpcOptions=void 0;var Bme=ct();function Lut(t,e){if(!e)return t;let r={};_D(t,r),_D(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Bme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Bme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},_D(t.meta,r.meta),_D(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}FD.mergeRpcOptions=Lut;function _D(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 T9=C(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});Gf.Deferred=Gf.DeferredState=void 0;var oA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(oA=Gf.DeferredState||(Gf.DeferredState={}));var N9=class{constructor(e=!0){this._state=oA.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!==oA.PENDING)throw new Error(`cannot resolve ${oA[this.state].toLowerCase()}`);this._resolve(e),this._state=oA.RESOLVED}reject(e){if(this.state!==oA.PENDING)throw new Error(`cannot reject ${oA[this.state].toLowerCase()}`);this._reject(e),this._state=oA.REJECTED}resolvePending(e){this._state===oA.PENDING&&this.resolve(e)}rejectPending(e){this._state===oA.PENDING&&this.reject(e)}};Gf.Deferred=N9});var R9=C(MD=>{"use strict";Object.defineProperty(MD,"__esModule",{value:!0});MD.RpcOutputStreamController=void 0;var bme=T9(),qf=ct(),x9=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){qf.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){qf.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){qf.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(){qf.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;qf.assert(e,"bad state"),qf.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 bme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;qf.assert(n.state==bme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};MD.RpcOutputStreamController=x9});var k9=C(R0=>{"use strict";var Uut=R0&&R0.__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(R0,"__esModule",{value:!0});R0.UnaryCall=void 0;var D9=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 Uut(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}})}};R0.UnaryCall=D9});var _9=C(D0=>{"use strict";var Put=D0&&D0.__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(D0,"__esModule",{value:!0});D0.ServerStreamingCall=void 0;var v9=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 FIe=C(_Ie=>{"use strict";var wY=Vu().Buffer;_Ie._dbcs=Wu;var es=-1,vIe=-2,ra=-10,Os=-1e3,AE=new Array(256),Jb=-1;for(ck=0;ck<256;ck++)AE[ck]=es;var ck;function Wu(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]=AE.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(AE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(AE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],c=48;c<=57;c++){if(a[c]===es)a[c]=Os-s;else if(a[c]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Os-a[c]],u=129;u<=254;u++){if(A[u]===es)A[u]=Os-i;else{if(A[u]===Os-i)continue;if(A[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-A[u]],d=48;d<=57;d++)l[d]===es&&(l[d]=vIe)}}}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 GIt(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(NIt.has(s)){r=s;break}}return r}function qIt(t,e){let r=GIt(e);r!==""&&(t.referrerPolicy=r)}function YIt(){return"allowed"}function VIt(){return"success"}function WIt(){return"success"}function JIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function zIt(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&&YV(t.origin)&&!YV(Cg(t))&&(e=null);break;case"same-origin":nQ(t,Cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function fE(t,e){return t}function jIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:fE(t.domainLookupStartTime,r),domainLookupEndTime:fE(t.domainLookupEndTime,r),connectionStartTime:fE(t.connectionStartTime,r),connectionEndTime:fE(t.connectionEndTime,r),secureConnectionStartTime:fE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function KIt(t){return fE(DIt.now(),t)}function $It(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 ube(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function XIt(t){return{referrerPolicy:t.referrerPolicy}}function ZIt(t){let e=t.referrerPolicy;sQ(e);let r=null;if(t.referrer==="client"){let i=ibe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Md.is.URL(t.referrer)&&(r=t.referrer);let n=qV(r),s=qV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Cg(t);return nQ(n,i)?n:Eg(n)&&!Eg(i)?"no-referrer":s}case"same-origin":return nQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return nQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":n}}}function qV(t,e=!1){return sQ(Md.is.URL(t)),t=new URL(t),fbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var eyt=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)$/),tyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function lbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),tyt(t)):eyt(t)}function ryt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||lbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Eg(t){return Md.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:ryt(t.origin):!1}function nyt(t){}function nQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function syt(t){return t.controller.state==="aborted"}function iyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function oyt(t){return vIt[t.toLowerCase()]??t}var ayt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function dbe(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,ayt),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 cyt(t,e,r,n=0,s=1){let i=dbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Md.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Md.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ia(a=>ZV(a)&&a!==59,t,e);i=$V.decode(o)}return{name:n,value:i,extended:s}}function kyt(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 Bi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ia(a=>a!==10&&a!==13&&a!==58,t,e);if(o=XV(o,!0,!0,a=>a===9||a===32),!Qyt.test(o.toString()))throw Bi("header name does not match the field-name token production");if(t[e.position]!==58)throw Bi("expected :");switch(e.position++,ia(a=>a===32||a===9,t,e),byt(o)){case"content-disposition":{r=n=null;let a=!1;if(ia(A=>ZV(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Bi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=Dyt(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 Bi("name attribute is required in content-disposition header");break}case"content-type":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),s=Ibe(a);break}case"content-transfer-encoding":{let a=ia(c=>c!==10&&c!==13,t,e);a=XV(a,!1,!0,c=>c===9||c===32),i=Ibe(a);break}default:ia(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Bi("expected CRLF");e.position+=2}}function ia(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function XV(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 vyt(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 Bi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function _yt(t){return t<=31||t===127}function Fyt(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 ZV(t){return t<=127&&t!==32&&t!==9&&!_yt(t)&&!Fyt(t)}ybe.exports={multipartFormDataParser:Ryt,validateBoundary:xyt}});var iQ=C((Kyr,bbe)=>{"use strict";function Myt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}bbe.exports={createDeferredPromise:Myt}});var mE=C(($yr,Tbe)=>{"use strict";var r7=Ze(),{ReadableStreamFrom:Lyt,readableStreamClose:Uyt,fullyReadBody:Pyt,extractMimeType:Oyt}=ro(),{FormData:Qbe,setFormDataState:Hyt}=vk(),{webidl:tc}=ts(),e7=Q("node:assert"),{isErrored:t7,isDisturbed:Gyt}=Q("node:stream"),{isUint8Array:qyt}=Q("node:util/types"),{serializeAMimeType:Yyt}=sa(),{multipartFormDataParser:Vyt}=Bbe(),{createDeferredPromise:Wyt}=iQ(),{parseJSONFromBytes:Jyt}=ju(),{utf8DecodeBytes:zyt}=Nk(),{runtimeFeatures:jyt}=Ku(),Kyt=jyt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),_k=new TextEncoder;function $yt(){}var Xyt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Gyt(e)&&!t7(e)&&e.cancel("Response object has been garbage collected").catch($yt)});function Sbe(t,e=!1){let r=null,n=null;tc.is.ReadableStream(t)?r=t:tc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),e7(tc.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(tc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tc.is.BufferSource(t))i=tc.util.getCopyOfBytesHeldByBufferSource(t);else if(tc.is.FormData(t)){let A=`----formdata-undici-0${`${Kyt(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 zIe=C(JIe=>{"use strict";var DY=Vu().Buffer;JIe._dbcs=Wu;var es=-1,WIe=-2,ra=-10,Os=-1e3,uE=new Array(256),zb=-1;for(lk=0;lk<256;lk++)uE[lk]=es;var lk;function Wu(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]=uE.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(uE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(uE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Os-o[n]],c=48;c<=57;c++){if(a[c]===es)a[c]=Os-s;else if(a[c]>Os)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Os-a[c]],u=129;u<=254;u++){if(A[u]===es)A[u]=Os-i;else{if(A[u]===Os-i)continue;if(A[u]>Os)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Os-A[u]],d=48;d<=57;d++)l[d]===es&&(l[d]=WIe)}}}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 iyt(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(YIt.has(s)){r=s;break}}return r}function oyt(t,e){let r=iyt(e);r!==""&&(t.referrerPolicy=r)}function ayt(){return"allowed"}function cyt(){return"success"}function Ayt(){return"success"}function uyt(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&&KV(t.origin)&&!KV(Ig(t))&&(e=null);break;case"same-origin":sQ(t,Ig(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function gE(t,e){return t}function dyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:gE(t.domainLookupStartTime,r),domainLookupEndTime:gE(t.domainLookupEndTime,r),connectionStartTime:gE(t.connectionStartTime,r),connectionEndTime:gE(t.connectionEndTime,r),secureConnectionStartTime:gE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function hyt(t){return gE(zIt.now(),t)}function fyt(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 bbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function gyt(t){return{referrerPolicy:t.referrerPolicy}}function pyt(t){let e=t.referrerPolicy;iQ(e);let r=null;if(t.referrer==="client"){let i=Ebe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Md.is.URL(t.referrer)&&(r=t.referrer);let n=jV(r),s=jV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??jV(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Ig(t);return Cg(n)&&!Cg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Ig(t);return sQ(n,i)?n:Cg(n)&&!Cg(i)?"no-referrer":s}case"same-origin":return sQ(t,n)?n:"no-referrer";case"origin-when-cross-origin":return sQ(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Ig(t);return Cg(n)&&!Cg(i)?"no-referrer":n}}}function jV(t,e=!1){return iQ(Md.is.URL(t)),t=new URL(t),Nbe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var myt=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)$/),Eyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Qbe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Eyt(t)):myt(t)}function Cyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Qbe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Cg(t){return Md.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Cyt(t.origin):!1}function Iyt(t){}function sQ(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function yyt(t){return t.controller.state==="aborted"}function Byt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function byt(t){return KIt[t.toLowerCase()]??t}var Qyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function wbe(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,Qyt),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 wyt(t,e,r,n=0,s=1){let i=wbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Md.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Md.brandCheck(this,e),i(this,"value Line truncated
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=ia(a=>i7(a)&&a!==59,t,e);i=n7.decode(o)}return{name:n,value:i,extended:s}}function jyt(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 Bi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=ia(a=>a!==10&&a!==13&&a!==58,t,e);if(o=s7(o,!0,!0,a=>a===9||a===32),!Hyt.test(o.toString()))throw Bi("header name does not match the field-name token production");if(t[e.position]!==58)throw Bi("expected :");switch(e.position++,ia(a=>a===32||a===9,t,e),Oyt(o)){case"content-disposition":{r=n=null;let a=!1;if(ia(A=>i7(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Bi("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=zyt(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 Bi("name attribute is required in content-disposition header");break}case"content-type":{let a=ia(c=>c!==10&&c!==13,t,e);a=s7(a,!1,!0,c=>c===9||c===32),s=vbe(a);break}case"content-transfer-encoding":{let a=ia(c=>c!==10&&c!==13,t,e);a=s7(a,!1,!0,c=>c===9||c===32),i=vbe(a);break}default:ia(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Bi("expected CRLF");e.position+=2}}function ia(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function s7(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 Kyt(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 Bi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function $yt(t){return t<=31||t===127}function Xyt(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 i7(t){return t<=127&&t!==32&&t!==9&&!$yt(t)&&!Xyt(t)}_be.exports={multipartFormDataParser:Jyt,validateBoundary:Wyt}});var oQ=C((EBr,Mbe)=>{"use strict";function Zyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Mbe.exports={createDeferredPromise:Zyt}});var EE=C((CBr,Hbe)=>{"use strict";var c7=Ze(),{ReadableStreamFrom:eBt,readableStreamClose:tBt,fullyReadBody:rBt,extractMimeType:nBt}=ro(),{FormData:Lbe,setFormDataState:sBt}=Mk(),{webidl:tc}=ts(),o7=Q("node:assert"),{isErrored:a7,isDisturbed:iBt}=Q("node:stream"),{isUint8Array:oBt}=Q("node:util/types"),{serializeAMimeType:aBt}=sa(),{multipartFormDataParser:cBt}=Fbe(),{createDeferredPromise:ABt}=oQ(),{parseJSONFromBytes:uBt}=ju(),{utf8DecodeBytes:lBt}=Rk(),{runtimeFeatures:dBt}=Ku(),hBt=dBt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Lk=new TextEncoder;function fBt(){}var gBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!iBt(e)&&!a7(e)&&e.cancel("Response object has been garbage collected").catch(fBt)});function Pbe(t,e=!1){let r=null,n=null;tc.is.ReadableStream(t)?r=t:tc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),o7(tc.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(tc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(tc.is.BufferSource(t))i=tc.util.getCopyOfBytesHeldByBufferSource(t);else if(tc.is.FormData(t)){let A=`----formdata-undici-0${`${hBt(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=_k.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=Lk.encode(u+`; name="${l(d(m))}"\r
\r
${d(I)}\r
`);h.push(y),o+=y.byteLength}else{let y=_k.encode(`${u}; name="${l(d(m))}"`+(I.name?`; filename="${l(I.name)}"`:"")+`\r
`);h.push(y),o+=y.byteLength}else{let y=Lk.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=_k.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(tc.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(r7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=tc.is.ReadableStream(t)?t:Lyt(t)}return(typeof i=="string"||qyt(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(t7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!t7(r)&&n.enqueue(typeof A=="string"?_k.encode(A):new Uint8Array(A));queueMicrotask(()=>Uyt(n))})(),[{stream:r,source:i,length:o},a]}function Zyt(t,e=!1){return tc.is.ReadableStream(t)&&(e7(!r7.isDisturbed(t),"The body has already been consumed."),e7(!t.locked,"The stream is locked.")),Sbe(t,e)}function eBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function tBt(t,e){return{blob(){return pE(this,n=>{let s=wbe(e(this));return s===null?s="":s&&(s=Yyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return pE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return pE(this,zyt,t,e)},json(){return pE(this,Jyt,t,e)},formData(){return pE(this,n=>{let s=wbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=Vyt(n,s),o=new Qbe;return Hyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Qbe;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 pE(this,n=>new Uint8Array(n),t,e)}}}function rBt(t,e){Object.assign(t.prototype,tBt(t,e))}function pE(t,e,r,n){try{tc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Nbe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Wyt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(Pyt(t.body,o,i),s.promise)}function Nbe(t){let e=t.body;return e!=null&&(e.stream.locked||r7.isDisturbed(e.stream))}function wbe(t){let e=t.headersList,r=Oyt(e);return r==="failure"?null:r}Tbe.exports={extractBody:Sbe,safelyExtractBody:Zyt,cloneBody:eBt,mixinBody:rBt,streamRegistry:Xyt,bodyUnusable:Nbe}});var qbe=C((Xyr,Gbe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:xbe}=_d(),n7=LY(),{RequestContentLengthMismatchError:Ig,ResponseContentLengthMismatchError:Rbe,RequestAbortedError:Ube,InvalidArgumentError:nBt,HeadersTimeoutError:sBt,HeadersOverflowError:iBt,SocketError:yg,InformationalError:EE,BodyTimeoutError:oBt,HTTPParserError:aBt,ResponseExceededMaxSizeError:cBt}=Xe(),{kUrl:Pbe,kReset:bi,kClient:Pk,kParser:gr,kBlocking:cQ,kRunning:hn,kPending:u7,kSize:Dbe,kWriting:Ld,kQueue:rc,kNoRef:oQ,kKeepAliveDefaultTimeout:ABt,kHostHeader:uBt,kPendingIdx:lBt,kRunningIdx:oa,kError:Hs,kPipelining:Lk,kSocket:bg,kKeepAliveTimeoutValue:Ok,kMaxHeadersSize:dBt,kKeepAliveMaxTimeout:hBt,kKeepAliveTimeoutThreshold:fBt,kHeadersTimeout:gBt,kBodyTimeout:pBt,kStrictContentLength:o7,kMaxRequests:kbe,kCounter:mBt,kMaxResponseSize:EBt,kOnError:vbe,kResume:Xu,kHTTPContext:Obe,kClosed:a7}=Kt(),no=TBe(),_be=Buffer.alloc(0),Fk=Buffer[Symbol.species],CBt=De.removeAllListeners,Qg=Symbol("kIdleSocketValidation"),Bg=Symbol("kIdleSocketValidationTimeout"),l7=Symbol("kSocketUsed"),s7;function IBt(){let t=process.env.JEST_WORKER_ID?RV():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(DBe())}catch{}return e||(e=new WebAssembly.Module(t||RV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onStatus(new Fk(gA.buffer,o,i))},wasm_on_message_begin:n=>(He(Wr.ptr===n),Wr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderField(new Fk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderValue(new Fk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(Wr.ptr===n),Wr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onBody(new Fk(gA.buffer,o,i))},wasm_on_message_complete:n=>(He(Wr.ptr===n),Wr.onMessageComplete())}})}var i7=null,Wr=null,gA=null,Mk=0,pA=null,yBt=0,aQ=1,CE=2|aQ,Uk=4|aQ,c7=8|yBt,A7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(no.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[dBt],this.shouldKeepAliv Line truncated
`);h.push(y,I,f),typeof I.size=="number"?o+=y.byteLength+I.size+f.byteLength:g=!0}let E=Lk.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(tc.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(c7.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=tc.is.ReadableStream(t)?t:eBt(t)}return(typeof i=="string"||oBt(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(a7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!a7(r)&&n.enqueue(typeof A=="string"?Lk.encode(A):new Uint8Array(A));queueMicrotask(()=>tBt(n))})(),[{stream:r,source:i,length:o},a]}function pBt(t,e=!1){return tc.is.ReadableStream(t)&&(o7(!c7.isDisturbed(t),"The body has already been consumed."),o7(!t.locked,"The stream is locked.")),Pbe(t,e)}function mBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function EBt(t,e){return{blob(){return mE(this,n=>{let s=Ube(e(this));return s===null?s="":s&&(s=aBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return mE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return mE(this,lBt,t,e)},json(){return mE(this,uBt,t,e)},formData(){return mE(this,n=>{let s=Ube(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=cBt(n,s),o=new Lbe;return sBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Lbe;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 mE(this,n=>new Uint8Array(n),t,e)}}}function CBt(t,e){Object.assign(t.prototype,EBt(t,e))}function mE(t,e,r,n){try{tc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),Obe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=ABt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(rBt(t.body,o,i),s.promise)}function Obe(t){let e=t.body;return e!=null&&(e.stream.locked||c7.isDisturbed(e.stream))}function Ube(t){let e=t.headersList,r=nBt(e);return r==="failure"?null:r}Hbe.exports={extractBody:Pbe,safelyExtractBody:pBt,cloneBody:mBt,mixinBody:CBt,streamRegistry:gBt,bodyUnusable:Obe}});var rQe=C((IBr,tQe)=>{"use strict";var He=Q("node:assert"),De=Ze(),{channels:Gbe}=_d(),A7=qY(),{RequestContentLengthMismatchError:yg,ResponseContentLengthMismatchError:qbe,RequestAbortedError:$be,InvalidArgumentError:IBt,HeadersTimeoutError:yBt,HeadersOverflowError:BBt,SocketError:Bg,InformationalError:CE,BodyTimeoutError:bBt,HTTPParserError:QBt,ResponseExceededMaxSizeError:wBt}=Xe(),{kUrl:Xbe,kReset:bi,kClient:Gk,kParser:gr,kBlocking:AQ,kRunning:hn,kPending:p7,kSize:Ybe,kWriting:Ld,kQueue:rc,kNoRef:aQ,kKeepAliveDefaultTimeout:SBt,kHostHeader:NBt,kPendingIdx:TBt,kRunningIdx:oa,kError:Hs,kPipelining:Ok,kSocket:Qg,kKeepAliveTimeoutValue:qk,kMaxHeadersSize:xBt,kKeepAliveMaxTimeout:RBt,kKeepAliveTimeoutThreshold:DBt,kHeadersTimeout:kBt,kBodyTimeout:vBt,kStrictContentLength:d7,kMaxRequests:Vbe,kCounter:_Bt,kMaxResponseSize:FBt,kOnError:Wbe,kResume:Xu,kHTTPContext:Zbe,kClosed:h7}=Kt(),no=HBe(),Jbe=Buffer.alloc(0),Uk=Buffer[Symbol.species],MBt=De.removeAllListeners,wg=Symbol("kIdleSocketValidation"),bg=Symbol("kIdleSocketValidationTimeout"),m7=Symbol("kSocketUsed"),u7;function LBt(){let t=process.env.JEST_WORKER_ID?MV():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(YBe())}catch{}return e||(e=new WebAssembly.Module(t||MV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onStatus(new Uk(gA.buffer,o,i))},wasm_on_message_begin:n=>(He(Wr.ptr===n),Wr.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderField(new Uk(gA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onHeaderValue(new Uk(gA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(He(Wr.ptr===n),Wr.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{He(Wr.ptr===n);let o=s-pA+gA.byteOffset;return Wr.onBody(new Uk(gA.buffer,o,i))},wasm_on_message_complete:n=>(He(Wr.ptr===n),Wr.onMessageComplete())}})}var l7=null,Wr=null,gA=null,Pk=0,pA=null,UBt=0,cQ=1,IE=2|cQ,Hk=4|cQ,f7=8|UBt,g7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(no.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[xBt],this.shouldKeepAliv Line truncated
`;if(typeof s=="string"?g+=`host: ${s}\r
`:g+=t[uBt],i?g+=`connection: upgrade\r
`:g+=t[NBt],i?g+=`connection: upgrade\r
upgrade: ${i}\r
`:t[Lk]&&!h[bi]?g+=`connection: keep-alive\r
`:t[Ok]&&!h[bi]?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 xbe.sendHeaders.hasSubscribers&&xbe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?Mbe(f,null,t,e,h,u,g,l):De.isBuffer(c)?Mbe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?Lbe(f,c.stream(),t,e,h,u,g,l):vBt(f,c,t,e,h,u,g,l):De.isStream(c)?kBt(f,c,t,e,h,u,g,l):De.isIterable(c)?Lbe(f,c,t,e,h,u,g,l):He(!1),!0}function kBt(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"stream body cannot be pipelined");let c=!1,A=new Hk({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 Ube;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Ld]&&r[hn]<=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 Mbe(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 Gbe.sendHeaders.hasSubscribers&&Gbe.sendHeaders.publish({request:e,headers:g,socket:h}),!c||d===0?jbe(f,null,t,e,h,u,g,l):De.isBuffer(c)?jbe(f,c,t,e,h,u,g,l):De.isBlobLike(c)?typeof c.stream=="function"?Kbe(f,c.stream(),t,e,h,u,g,l):KBt(f,c,t,e,h,u,g,l):De.isStream(c)?jBt(f,c,t,e,h,u,g,l):De.isIterable(c)?Kbe(f,c,t,e,h,u,g,l):He(!1),!0}function jBt(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===0,"stream body cannot be pipelined");let c=!1,A=new Yk({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 $be;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,He(s.destroyed||s[Ld]&&r[hn]<=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 jbe(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[bi]=!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[Xu]()}catch(c){t(c)}}async function vBt(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 Ig;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
`,"latin1")),n.onRequestSent(),r[Xu]()}catch(c){t(c)}}async function KBt(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 yg;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[bi]=!0),r[Xu]()}catch(c){t(c)}}async function Lbe(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===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[Hs]?h(s[Hs]):c=d});s.on("close",A).on("drain",A);let l=new Hk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Hs])throw s[Hs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Hk=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[Ld]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[o7])throw new Ig;process.emitWarning(new Ig)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!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[bi]=!0),r[Xu]()}catch(c){t(c)}}async function Kbe(t,e,r,n,s,i,o,a){He(i!==0||r[hn]===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[Hs]?h(s[Hs]):c=d});s.on("close",A).on("drain",A);let l=new Yk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Hs])throw s[Hs];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var Yk=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[Ld]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Hs])throw r[Hs];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[d7])throw new yg;process.emitWarning(new yg)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[bi]=!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
${A.toString(16)}\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[gr].timeout&&r[gr].timeoutType===CE&&r[gr].timeout.refresh&&r[gr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Ld]=!1,e[Hs])throw e[Hs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
`,"latin1"),this.bytesWritten+=A;let u=r.write(e);return r.uncork(),n.onBodySent(e),u||r[gr].timeout&&r[gr].timeoutType===IE&&r[gr].timeout.refresh&&r[gr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Ld]=!1,e[Hs])throw e[Hs];if(!e.destroyed){if(s===0?i?e.write(`${o}content-length: 0\r
\r
`,"latin1"):e.write(`${o}\r
`,"latin1"):r===null&&e.write(`\r
0\r
\r
`,"latin1"),r!==null&&s!==r){if(n[o7])throw new Ig;process.emitWarning(new Ig)}e[gr].timeout&&e[gr].timeoutType===CE&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),n[Xu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ld]=!1,e&&(He(n[hn]<=1,"pipeline should only contain this request"),s(e))}};Gbe.exports=BBt});var Xbe=C((Zyr,$be)=>{"use strict";var ca=Q("node:assert"),{pipeline:_Bt}=Q("node:stream"),At=Ze(),{RequestContentLengthMismatchError:g7,RequestAbortedError:FBt,SocketError:dQ,InformationalError:Ud,InvalidArgumentError:MBt}=Xe(),{kUrl:lQ,kReset:Vk,kClient:so,kRunning:hQ,kPending:LBt,kQueue:Pd,kPendingIdx:m7,kRunningIdx:nc,kError:io,kSocket:kr,kStrictContentLength:UBt,kOnError:IE,kMaxConcurrentStreams:qk,kPingInterval:Ybe,kHTTP2Session:Zu,kHTTP2InitialWindowSize:PBt,kHTTP2ConnectionWindowSize:OBt,kResume:mA,kSize:HBt,kHTTPContext:E7,kClosed:p7,kBodyTimeout:GBt,kEnableConnectProtocol:AQ,kRemoteSettings:uQ,kHTTP2Stream:Gk,kHTTP2SessionState:C7}=Kt(),{channels:Vbe}=_d(),aa=Symbol("open streams"),Wbe,Yk;try{Yk=Q("node:http2")}catch{Yk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:qBt,HTTP2_HEADER_METHOD:Jbe,HTTP2_HEADER_PATH:zbe,HTTP2_HEADER_SCHEME:d7,HTTP2_HEADER_CONTENT_LENGTH:YBt,HTTP2_HEADER_EXPECT:VBt,HTTP2_HEADER_STATUS:h7,HTTP2_HEADER_PROTOCOL:WBt,NGHTTP2_REFUSED_STREAM:JBt,NGHTTP2_CANCEL:zBt}}=Yk;function f7(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 jBt(t,e){t[kr]=e;let r=t[PBt],n=t[OBt],s=Yk.connect(t[lQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[qk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[so]=t,s[kr]=e,s[C7]={ping:{interval:t[Ybe]===0?null:setInterval(ZBt,t[Ybe],s).unref()}},s[AQ]=!1,s[uQ]=!1,n&&At.addListener(s,"connect",$Bt.bind(s,n)),At.addListener(s,"error",ebt),At.addListener(s,"frameError",tbt),At.addListener(s,"end",rbt),At.addListener(s,"goaway",nbt),At.addListener(s,"close",sbt),At.addListener(s,"remoteSettings",XBt),s.unref(),t[Zu]=s,e[Zu]=s,At.addListener(e,"error",obt),At.addListener(e,"end",abt),At.addListener(e,"close",ibt),e[p7]=!1,e.on("close",cbt),{version:"h2",defaultPipelining:1/0,write(i){return ubt(t,i)},resume(){KBt(t)},destroy(i,o){e[p7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[hQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[uQ]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[uQ]===!1;return!1}}}function KBt(t){let e=t[kr];e?.destroyed===!1&&(t[HBt]===0||t[qk]===0?(e.unref(),t[Zu].unref()):(e.ref(),t[Zu].ref()))}function $Bt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function XBt(t){if(this[so][qk]=t.maxConcurrentStreams??this[so][qk],this[uQ]===!0&&this[AQ]===!0&&t.enableConnectProtocol===!1){let e=new Ud("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][io]=e,this[so][IE](e);return}this[AQ]=t.enableConnectProtocol??this[AQ],this[uQ]=!0,this[so][mA]()}function ZBt(t){let e=t[C7];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[so],o=this[so];if(n!=null){let a=new Ud(`HTTP/2: "PING" errored - type ${n.message}`);o[io]=a,i[IE](a)}else i.emit("ping",s)}}function ebt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][io]=t,this[so][IE](t)}function tbt(t,e,r){if(r===0){let n=new Ud(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][io]=n,this[so][IE](n)}}function rbt(){let t=new dQ("other side closed",At.getSocketInfo(this[kr]));this.destroy(t),At.destroy(this[kr],t)}function nbt(t){let e=this[io]||new dQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[kr])),r=this[so];if(r[kr]=null,r[E7]=null,this.close(),this[Zu]=null,At.destroy(this[kr],e),r[nc]<r[Pd].length){let n=r[Pd][r[nc]];r[Pd][r[nc]++]=null,At.errorRequest(r,n,e),r[m7]=r[nc]}ca(r[hQ]===0),r.emit("disconnect",r[lQ],[r],e),r.emit("connectionError",r[lQ],[r],e),r[mA]()}function sbt(){let{[so]:t,[C7]:e}=this,{[kr]:r}=t,n=this[kr][io]||this[io]||new dQ("closed",At.getSocketInfo(r));if(t[kr]=null,t[E7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ca(t[LBt]===0);let s=t[Pd].splice(t[nc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function ibt(){let t=this[io]||new dQ("closed",At.getSocketInfo(this)),e=this[Zu][so];e[kr]=null,e[E7]=null,this[Zu]!==null&&this[Zu].destroy(t),e[m7]=e[nc],ca(e[hQ]===0),e.emit("disconnect",e[lQ],[e],t),e[mA]()}function obt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=t,this[so][IE](t)}function abt(){At.destroy(this,new dQ("other side closed",At.getSocketInfo(this)))}func Line truncated
`;Vbe.sendHeaders.publish({request:e,headers:k,socket:n[kr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[VBt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[Gk]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[Gk]=!0,V()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[h7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),f7(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[Pd][t[nc]++]=null,t[mA]()):(m(new Ud("HTTP/2: stream half-closed (remote)")),t[Pd][t[nc]++]=null,t[m7]=t[nc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ud(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ud(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===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?jbe(m,f,null,t,e,t[kr],y,I):At.isBuffer(d)?jbe(m,f,d,t,e,t[kr],y,I):At.isBlobLike(d)?typeof d.stream=="function"?Kbe(m,f,d.stream(),t,e,t[kr],y,I):dbt(m,f,d,t,e,t[kr],y,I):At.isStream(d)?lbt(m,t[kr],I,f,d,t,e,y):At.isIterable(d)?Kbe(m,f,d,t,e,t[kr],y,I):ca(!1)}}function jbe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ca(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Vk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function lbt(t,e,r,n,s,i,o,a){ca(a!==0||i[hQ]===0,"stream body cannot be pipelined");let c=_Bt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[Vk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function dbt(t,e,r,n,s,i,o,a){ca(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new g7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Vk]=!0),n[mA]()}catch(c){t(c)}}async function Kbe(t,e,r,n,s,i,o,a){ca(o!==0||n[hQ]===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)=>{ca(c===null),i[io]?d(i[io]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[io])throw i[io];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Vk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}$be.exports=jBt});var qd=C((eBr,oQe)=>{"use strict";var el=Q("node:assert"),rQe=Q("node:net"),fQ=Q("node:http"),wg=Ze(),{ClientStats:hbt}=dV(),{channels:yE}=_d(),fbt=pBe(),gbt=gg(),{InvalidArgumentError:pr,InformationalError:pbt,ClientDestroyedError:mbt}=Xe(),Ebt=pg(),{kUrl:EA,kServerName:Gd,kClient:Cbt,kBusy:y7,kConnect:Ibt,kResuming:Sg,kRunning:EQ,kPending:CQ,kSize:gQ,kQueue:sc,kConnected:ybt,kConnecting:BE,kNeedDrain:Hd,kKeepAliveDefaultTimeout:Zbe,kHostHeader:Bbt,kPendingIdx:ic,kRunningIdx:rl,kError:bbt,kPipelining:Wk,kKeepAliveTimeoutValue:Qbt,kMaxHeadersSize:wbt,kKeepAliveMaxTimeout:Sbt,kKeepAliveTimeoutThreshold:Nbt,kHeadersTimeout:Tbt,kBodyTimeout:xbt,kStrictContentLength:Rbt,kConnector:pQ,kMaxRequests:B7,kCounter:Dbt,kClose:kbt,kDestroy:vbt,kDispatch:_bt,kLocalAddress:mQ,kMaxResponseSize:Fbt,kOnError:Mbt,kHTTPContext:sn,kMaxConcurrentStreams:Lbt,kHTTP2InitialWindowSize:Ubt,kHTTP2ConnectionWindowSize:Pbt,kResume:tl,kPingInterval:Obt}=Kt(),Hbt=qbe(),Gbt=Xbe(),Od=Symbol("kClosedResolve"),qbt=fQ&&fQ.maxHeaderSize&&Number.isInteger(fQ.maxHeaderSize)&&fQ.maxHeaderSize>0?()=>fQ.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},eQe=()=>{};function nQe(t){return t[Wk]??t[sn]?.defaultPipelining??1}var b7=class extends gbt{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:ee,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[xbt]=a??3e5,this[Tbt]=n??3e5,this[Rbt]=m??!0,this[B7]=B,this[Od]=null,this[Fbt]=V>-1?V:-1,this[sn]=null,this[Lbt]=v??100,this[Ubt]=ee??262144,this[Pbt]=ce??524288,this[Obt]=ue??6e4,this[sc]=[],this[rl]=0,this[ic]=0,this[tl]=ke=>Q7(this,ke),this[Mbt]=ke=>sQe(this,ke)}get pipelining(){return this[Wk]}set pipelining(e){this[Wk]=e,this[tl](!0)}get stats(){return new hbt(this)}get[CQ](){return this[sc].length-this[ic]}get[EQ](){return this[ic]-this[rl]}get[gQ](){return this[sc].length-this[rl]}get[ybt](){return!!this[sn]&&!this[BE]&&!this[sn].destroyed}get[y7](){return!!(this[sn]?.busy(null)||this[gQ]>=(nQe(this)||1)||this[CQ]>0)}[Ibt](e){iQe(this),this.once("connect",e)}[_bt](e,r){let n=new fbt(this[EA].origin,e,r);return this[sc].push(n),this[Sg]||(wg.bodyLength(n.body)==null&&wg.isIterable(n.body)?(this[Sg]=1,queueMicrotask(()=>Q7(this))):this[tl](!0)),this[Sg]&&this[Hd]!==2&&this[y7]&&(this[Hd]=2),this[Hd]<2}[kbt](){return new Promise(e=>{this[gQ]?this[Od]=e:e(null)})}[vbt](e){return new Promise(r=>{let n=this[sc].splice(this[ic]);for(let i=0;i<n.length;i++){let o=n[i];wg.errorRequest(this,o,e)}let s=()=>{this[Od]&&(this[Od](),this[Od]=null),r(null)};this[sn]?(this[sn].destroy(e,s),this[sn]=null):queueMicrotask(s),this[tl]()})}};function sQe(t,e){if(t[EQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){el(t[ic]===t[rl]);let r=t[sc].splice(t[rl]);for(let n=0;n<r.length;n++){let s=r[n];wg.errorRequest(t,s,e)}el(t[gQ]===0)}}function iQe(t){el(!t[BE]),el(!t[sn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");el(i!==-1);let o=r.substring(1,i);el(rQe.isIPv6(o)),r=o}t[BE]=!0,yE.beforeConnect.hasSubscribers&&yE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Gd],localAddress:t[mQ]},connector:t[pQ]});try{t[pQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Gd],localAddress:t[mQ]},(i,o)=>{if(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[tl]();return}if(t.destroyed){wg.destroy(o.on("error",eQe),new mbt),t[tl]();return}el(o);try{t[sn]=o.alpnProtocol==="h2"?Gbt(t,o):Hbt(t,o)}catch(a){o.destroy().on("error",eQe),I7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[tl]();return}t[BE]=!1,o[Dbt]=0,o[B7]=t[B7],o[Cbt]=t,o[bbt]=null,yE.connected.hasSubscribers&&yE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Gd],localAddress:t[mQ]},connector:t[pQ],socket:o}),t.emit("connect",t[EA],[t]),t[tl]()})}catch(i){I7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[tl]()}}function I7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[BE]=!1,yE.connectError.hasSubscribers&&yE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[sn]?.version,servername:t[Gd],localAddress:t[mQ]},connector:t[pQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(el(t[EQ]===0);t[CQ]>0&&t[sc][t[ic]].servername===t[Gd];){let o=t[sc][t[ic]++];wg.errorRequest(t,o,e)}else sQe(t,e);t.emit("connectionError",t[EA],[t],e)}}function tQe(t){t[Hd]=0,t.emit("drain",t[EA],[t])}function Q7(t,e){t[Sg]!==2&&(t[Sg]=2,Ybt(t,e),t[Sg]=0,t[rl]>256&&(t[sc].splice(0,t[rl]),t[ic]-=t[rl],t[rl]=0))}function Ybt(t,e){for(;;){if(t.destroyed){el(t[CQ]===0);return}if(t[Od]&&!t[gQ]){t[Od](),t[Od]=null;return}if(t[sn]&&t[sn].resume(),t[y7])t[Hd]=2;else if(t[Hd]===2){e?(t[Hd]=1,queueMicrotask(()=>tQe(t))):tQe(t);continue}if(t[CQ]===0||t[EQ]>=(nQe(t)||1))return;let r=t[sc][t[ic]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Gd]!==r.servername){if(t[EQ]>0)return;t[Gd]=r.servername,t[sn]?.destroy(new pbt("servername changed"),()=>{t[sn]=null,Q7(t)})}if(t[BE])return;if(!t[sn]){iQe(t);return}if(t[sn].destroyed||t[sn].busy(r))return;!r.aborted&&t[sn].write(r)?t[ic]++:t[sc].splice(t[ic],1)}}oQe.exports=b7});var w7=C((rBr,aQe)=>{"use strict";var Jk=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)}};aQe.exports=class{constructor(){this.head=this.tail=new Jk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Jk),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 zk=C((nBr,pQe)=>{"use strict";var{PoolStats:Vbt}=dV(),Wbt=gg(),Jbt=w7(),{kConnected:S7,kSize:cQe,kRunning:AQe,kPending:uQe,kQueued:IQ,kBusy:zbt,kFree:jbt,kUrl:Kbt,kClose:$bt,kDestroy:Xbt,kDispatch:Zbt}=Kt(),Vn=Symbol("clients"),Gs=Symbol("needDrain"),yQ=Symbol("queue"),N7=Symbol("closed resolve"),T7=Symbol("onDrain"),lQe=Symbol("onConnect"),dQe=Symbol("onDisconnect"),hQe=Symbol("onConnectionError"),x7=Symbol("get dispatcher"),fQe=Symbol("add client"),gQe=Symbol("remove client"),R7=class extends Wbt{[yQ]=new Jbt;[IQ]=0;[Vn] Line truncated
`,"latin1"),r!==null&&s!==r){if(n[d7])throw new yg;process.emitWarning(new yg)}e[gr].timeout&&e[gr].timeoutType===IE&&e[gr].timeout.refresh&&e[gr].timeout.refresh(),n[Xu]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Ld]=!1,e&&(He(n[hn]<=1,"pipeline should only contain this request"),s(e))}};tQe.exports=PBt});var lQe=C((yBr,uQe)=>{"use strict";var ca=Q("node:assert"),{pipeline:$Bt}=Q("node:stream"),At=Ze(),{RequestContentLengthMismatchError:y7,RequestAbortedError:XBt,SocketError:hQ,InformationalError:Ud,InvalidArgumentError:ZBt}=Xe(),{kUrl:dQ,kReset:zk,kClient:so,kRunning:fQ,kPending:ebt,kQueue:Pd,kPendingIdx:b7,kRunningIdx:nc,kError:io,kSocket:kr,kStrictContentLength:tbt,kOnError:yE,kMaxConcurrentStreams:Wk,kPingInterval:nQe,kHTTP2Session:Zu,kHTTP2InitialWindowSize:rbt,kHTTP2ConnectionWindowSize:nbt,kResume:mA,kSize:sbt,kHTTPContext:Q7,kClosed:B7,kBodyTimeout:ibt,kEnableConnectProtocol:uQ,kRemoteSettings:lQ,kHTTP2Stream:Vk,kHTTP2SessionState:w7}=Kt(),{channels:sQe}=_d(),aa=Symbol("open streams"),iQe,Jk;try{Jk=Q("node:http2")}catch{Jk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:obt,HTTP2_HEADER_METHOD:oQe,HTTP2_HEADER_PATH:aQe,HTTP2_HEADER_SCHEME:E7,HTTP2_HEADER_CONTENT_LENGTH:abt,HTTP2_HEADER_EXPECT:cbt,HTTP2_HEADER_STATUS:C7,HTTP2_HEADER_PROTOCOL:Abt,NGHTTP2_REFUSED_STREAM:ubt,NGHTTP2_CANCEL:lbt}}=Jk;function I7(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 dbt(t,e){t[kr]=e;let r=t[rbt],n=t[nbt],s=Jk.connect(t[dQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Wk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[kr]=e,s[aa]=0,s[so]=t,s[kr]=e,s[w7]={ping:{interval:t[nQe]===0?null:setInterval(pbt,t[nQe],s).unref()}},s[uQ]=!1,s[lQ]=!1,n&&At.addListener(s,"connect",fbt.bind(s,n)),At.addListener(s,"error",mbt),At.addListener(s,"frameError",Ebt),At.addListener(s,"end",Cbt),At.addListener(s,"goaway",Ibt),At.addListener(s,"close",ybt),At.addListener(s,"remoteSettings",gbt),s.unref(),t[Zu]=s,e[Zu]=s,At.addListener(e,"error",bbt),At.addListener(e,"end",Qbt),At.addListener(e,"close",Bbt),e[B7]=!1,e.on("close",wbt),{version:"h2",defaultPipelining:1/0,write(i){return Nbt(t,i)},resume(){hbt(t)},destroy(i,o){e[B7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[fQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lQ]===!1||At.bodyLength(i.body)!==0&&(At.isStream(i.body)||At.isAsyncIterable(i.body)||At.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[lQ]===!1;return!1}}}function hbt(t){let e=t[kr];e?.destroyed===!1&&(t[sbt]===0||t[Wk]===0?(e.unref(),t[Zu].unref()):(e.ref(),t[Zu].ref()))}function fbt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function gbt(t){if(this[so][Wk]=t.maxConcurrentStreams??this[so][Wk],this[lQ]===!0&&this[uQ]===!0&&t.enableConnectProtocol===!1){let e=new Ud("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[kr][io]=e,this[so][yE](e);return}this[uQ]=t.enableConnectProtocol??this[uQ],this[lQ]=!0,this[so][mA]()}function pbt(t){let e=t[w7];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[so],o=this[so];if(n!=null){let a=new Ud(`HTTP/2: "PING" errored - type ${n.message}`);o[io]=a,i[yE](a)}else i.emit("ping",s)}}function mbt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[kr][io]=t,this[so][yE](t)}function Ebt(t,e,r){if(r===0){let n=new Ud(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[kr][io]=n,this[so][yE](n)}}function Cbt(){let t=new hQ("other side closed",At.getSocketInfo(this[kr]));this.destroy(t),At.destroy(this[kr],t)}function Ibt(t){let e=this[io]||new hQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,At.getSocketInfo(this[kr])),r=this[so];if(r[kr]=null,r[Q7]=null,this.close(),this[Zu]=null,At.destroy(this[kr],e),r[nc]<r[Pd].length){let n=r[Pd][r[nc]];r[Pd][r[nc]++]=null,At.errorRequest(r,n,e),r[b7]=r[nc]}ca(r[fQ]===0),r.emit("disconnect",r[dQ],[r],e),r.emit("connectionError",r[dQ],[r],e),r[mA]()}function ybt(){let{[so]:t,[w7]:e}=this,{[kr]:r}=t,n=this[kr][io]||this[io]||new hQ("closed",At.getSocketInfo(r));if(t[kr]=null,t[Q7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ca(t[ebt]===0);let s=t[Pd].splice(t[nc]);for(let i=0;i<s.length;i++){let o=s[i];At.errorRequest(t,o,n)}}}function Bbt(){let t=this[io]||new hQ("closed",At.getSocketInfo(this)),e=this[Zu][so];e[kr]=null,e[Q7]=null,this[Zu]!==null&&this[Zu].destroy(t),e[b7]=e[nc],ca(e[fQ]===0),e.emit("disconnect",e[dQ],[e],t),e[mA]()}function bbt(t){ca(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[io]=t,this[so][yE](t)}function Qbt(){At.destroy(this,new hQ("other side closed",At.getSocketInfo(this)))}func Line truncated
`;sQe.sendHeaders.publish({request:e,headers:k,socket:n[kr]})}let B=s==="GET"||s==="HEAD"||d===null;c?(h[cbt]="100-continue",f=n.request(h,{endStream:B,signal:A}),f[Vk]=!0,f.once("continue",V)):(f=n.request(h,{endStream:B,signal:A}),f[Vk]=!0,V()),++n[aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[C7]:P,...v}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),I7(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[Pd][t[nc]++]=null,t[mA]()):(m(new Ud("HTTP/2: stream half-closed (remote)")),t[Pd][t[nc]++]=null,t[b7]=t[nc],t[mA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[aa]-=1,n[aa]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Ud(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Ud(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[aa]-=1,n[aa]===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?cQe(m,f,null,t,e,t[kr],y,I):At.isBuffer(d)?cQe(m,f,d,t,e,t[kr],y,I):At.isBlobLike(d)?typeof d.stream=="function"?AQe(m,f,d.stream(),t,e,t[kr],y,I):xbt(m,f,d,t,e,t[kr],y,I):At.isStream(d)?Tbt(m,t[kr],I,f,d,t,e,y):At.isIterable(d)?AQe(m,f,d,t,e,t[kr],y,I):ca(!1)}}function cQe(t,e,r,n,s,i,o,a){try{r!=null&&At.isBuffer(r)&&(ca(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[zk]=!0),s.onRequestSent(),n[mA]()}catch(c){t(c)}}function Tbt(t,e,r,n,s,i,o,a){ca(a!==0||i[fQ]===0,"stream body cannot be pipelined");let c=$Bt(s,n,u=>{u?(At.destroy(c,u),t(u)):(At.removeAllListeners(c),o.onRequestSent(),r||(e[zk]=!0),i[mA]())});At.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function xbt(t,e,r,n,s,i,o,a){ca(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new y7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[zk]=!0),n[mA]()}catch(c){t(c)}}async function AQe(t,e,r,n,s,i,o,a){ca(o!==0||n[fQ]===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)=>{ca(c===null),i[io]?d(i[io]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[io])throw i[io];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[zk]=!0),n[mA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}uQe.exports=dbt});var qd=C((BBr,CQe)=>{"use strict";var el=Q("node:assert"),gQe=Q("node:net"),gQ=Q("node:http"),Sg=Ze(),{ClientStats:Rbt}=EV(),{channels:BE}=_d(),Dbt=xBe(),kbt=pg(),{InvalidArgumentError:pr,InformationalError:vbt,ClientDestroyedError:_bt}=Xe(),Fbt=mg(),{kUrl:EA,kServerName:Gd,kClient:Mbt,kBusy:N7,kConnect:Lbt,kResuming:Ng,kRunning:CQ,kPending:IQ,kSize:pQ,kQueue:sc,kConnected:Ubt,kConnecting:bE,kNeedDrain:Hd,kKeepAliveDefaultTimeout:dQe,kHostHeader:Pbt,kPendingIdx:ic,kRunningIdx:rl,kError:Obt,kPipelining:jk,kKeepAliveTimeoutValue:Hbt,kMaxHeadersSize:Gbt,kKeepAliveMaxTimeout:qbt,kKeepAliveTimeoutThreshold:Ybt,kHeadersTimeout:Vbt,kBodyTimeout:Wbt,kStrictContentLength:Jbt,kConnector:mQ,kMaxRequests:T7,kCounter:zbt,kClose:jbt,kDestroy:Kbt,kDispatch:$bt,kLocalAddress:EQ,kMaxResponseSize:Xbt,kOnError:Zbt,kHTTPContext:sn,kMaxConcurrentStreams:eQt,kHTTP2InitialWindowSize:tQt,kHTTP2ConnectionWindowSize:rQt,kResume:tl,kPingInterval:nQt}=Kt(),sQt=rQe(),iQt=lQe(),Od=Symbol("kClosedResolve"),oQt=gQ&&gQ.maxHeaderSize&&Number.isInteger(gQ.maxHeaderSize)&&gQ.maxHeaderSize>0?()=>gQ.maxHeaderSize:()=>{throw new pr("http module not available or http.maxHeaderSize invalid")},hQe=()=>{};function pQe(t){return t[jk]??t[sn]?.defaultPipelining??1}var x7=class extends kbt{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:ee,connectionWindowSize:ce,pingInterval:ue,webSocket:Fe}={}){if(A!==void 0)throw new pr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new pr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new pr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new pr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw Line truncated
`,this[Wbt]=a??3e5,this[Vbt]=n??3e5,this[Jbt]=m??!0,this[T7]=B,this[Od]=null,this[Xbt]=V>-1?V:-1,this[sn]=null,this[eQt]=v??100,this[tQt]=ee??262144,this[rQt]=ce??524288,this[nQt]=ue??6e4,this[sc]=[],this[rl]=0,this[ic]=0,this[tl]=ke=>R7(this,ke),this[Zbt]=ke=>mQe(this,ke)}get pipelining(){return this[jk]}set pipelining(e){this[jk]=e,this[tl](!0)}get stats(){return new Rbt(this)}get[IQ](){return this[sc].length-this[ic]}get[CQ](){return this[ic]-this[rl]}get[pQ](){return this[sc].length-this[rl]}get[Ubt](){return!!this[sn]&&!this[bE]&&!this[sn].destroyed}get[N7](){return!!(this[sn]?.busy(null)||this[pQ]>=(pQe(this)||1)||this[IQ]>0)}[Lbt](e){EQe(this),this.once("connect",e)}[$bt](e,r){let n=new Dbt(this[EA].origin,e,r);return this[sc].push(n),this[Ng]||(Sg.bodyLength(n.body)==null&&Sg.isIterable(n.body)?(this[Ng]=1,queueMicrotask(()=>R7(this))):this[tl](!0)),this[Ng]&&this[Hd]!==2&&this[N7]&&(this[Hd]=2),this[Hd]<2}[jbt](){return new Promise(e=>{this[pQ]?this[Od]=e:e(null)})}[Kbt](e){return new Promise(r=>{let n=this[sc].splice(this[ic]);for(let i=0;i<n.length;i++){let o=n[i];Sg.errorRequest(this,o,e)}let s=()=>{this[Od]&&(this[Od](),this[Od]=null),r(null)};this[sn]?(this[sn].destroy(e,s),this[sn]=null):queueMicrotask(s),this[tl]()})}};function mQe(t,e){if(t[CQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){el(t[ic]===t[rl]);let r=t[sc].splice(t[rl]);for(let n=0;n<r.length;n++){let s=r[n];Sg.errorRequest(t,s,e)}el(t[pQ]===0)}}function EQe(t){el(!t[bE]),el(!t[sn]);let{host:e,hostname:r,protocol:n,port:s}=t[EA];if(r[0]==="["){let i=r.indexOf("]");el(i!==-1);let o=r.substring(1,i);el(gQe.isIPv6(o)),r=o}t[bE]=!0,BE.beforeConnect.hasSubscribers&&BE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Gd],localAddress:t[EQ]},connector:t[mQ]});try{t[mQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Gd],localAddress:t[EQ]},(i,o)=>{if(i){S7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[tl]();return}if(t.destroyed){Sg.destroy(o.on("error",hQe),new _bt),t[tl]();return}el(o);try{t[sn]=o.alpnProtocol==="h2"?iQt(t,o):sQt(t,o)}catch(a){o.destroy().on("error",hQe),S7(t,a,{host:e,hostname:r,protocol:n,port:s}),t[tl]();return}t[bE]=!1,o[zbt]=0,o[T7]=t[T7],o[Mbt]=t,o[Obt]=null,BE.connected.hasSubscribers&&BE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[sn]?.version,servername:t[Gd],localAddress:t[EQ]},connector:t[mQ],socket:o}),t.emit("connect",t[EA],[t]),t[tl]()})}catch(i){S7(t,i,{host:e,hostname:r,protocol:n,port:s}),t[tl]()}}function S7(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[bE]=!1,BE.connectError.hasSubscribers&&BE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[sn]?.version,servername:t[Gd],localAddress:t[EQ]},connector:t[mQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(el(t[CQ]===0);t[IQ]>0&&t[sc][t[ic]].servername===t[Gd];){let o=t[sc][t[ic]++];Sg.errorRequest(t,o,e)}else mQe(t,e);t.emit("connectionError",t[EA],[t],e)}}function fQe(t){t[Hd]=0,t.emit("drain",t[EA],[t])}function R7(t,e){t[Ng]!==2&&(t[Ng]=2,aQt(t,e),t[Ng]=0,t[rl]>256&&(t[sc].splice(0,t[rl]),t[ic]-=t[rl],t[rl]=0))}function aQt(t,e){for(;;){if(t.destroyed){el(t[IQ]===0);return}if(t[Od]&&!t[pQ]){t[Od](),t[Od]=null;return}if(t[sn]&&t[sn].resume(),t[N7])t[Hd]=2;else if(t[Hd]===2){e?(t[Hd]=1,queueMicrotask(()=>fQe(t))):fQe(t);continue}if(t[IQ]===0||t[CQ]>=(pQe(t)||1))return;let r=t[sc][t[ic]];if(r===null)return;if(t[EA].protocol==="https:"&&t[Gd]!==r.servername){if(t[CQ]>0)return;t[Gd]=r.servername,t[sn]?.destroy(new vbt("servername changed"),()=>{t[sn]=null,R7(t)})}if(t[bE])return;if(!t[sn]){EQe(t);return}if(t[sn].destroyed||t[sn].busy(r))return;!r.aborted&&t[sn].write(r)?t[ic]++:t[sc].splice(t[ic],1)}}CQe.exports=x7});var D7=C((QBr,IQe)=>{"use strict";var Kk=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)}};IQe.exports=class{constructor(){this.head=this.tail=new Kk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Kk),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 $k=C((wBr,xQe)=>{"use strict";var{PoolStats:cQt}=EV(),AQt=pg(),uQt=D7(),{kConnected:k7,kSize:yQe,kRunning:BQe,kPending:bQe,kQueued:yQ,kBusy:lQt,kFree:dQt,kUrl:hQt,kClose:fQt,kDestroy:gQt,kDispatch:pQt}=Kt(),Vn=Symbol("clients"),Gs=Symbol("needDrain"),BQ=Symbol("queue"),v7=Symbol("closed resolve"),_7=Symbol("onDrain"),QQe=Symbol("onConnect"),wQe=Symbol("onDisconnect"),SQe=Symbol("onConnectionError"),F7=Symbol("get dispatcher"),NQe=Symbol("add client"),TQe=Symbol("remove client"),M7=class extends AQt{[BQ]=new uQt;[yQ]=0;[Vn] Line truncated
${e.format(r)}`.trim():`${r.length} interceptors are pending:
${e.format(r)}`.trim())}};H1e.exports=zW});var KW=C((_Br,V1e)=>{"use strict";var{InvalidArgumentError:j1t}=Xe(),{runtimeFeatures:K1t}=Ku();function $1t(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 G1e=K1t.has("crypto")?Q("node:crypto"):null,X1t=G1e?.hash?t=>G1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function Y1e(t){return Array.isArray(t)&&(t.length&1)===0}function Z1t(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 eSt(t){let e={};if(!t)return e;if(Y1e(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 q1e=["record","playback","update"];function tSt(t){if(!q1e.includes(t))throw new j1t(`Invalid snapshot mode: ${t}. Must be one of: ${q1e.join(", ")}`)}V1e.exports={createHeaderFilters:$1t,hashId:X1t,isUndiciHeaders:Y1e,normalizeHeaders:eSt,isUrlExcludedFactory:Z1t,validateSnapshotMode:tSt}});var eSe=C((FBr,Z1e)=>{"use strict";var{writeFile:rSt,readFile:nSt,mkdir:sSt}=Q("node:fs/promises"),{dirname:iSt,resolve:W1e}=Q("node:path"),{setTimeout:oSt,clearTimeout:J1e}=Q("node:timers"),{InvalidArgumentError:z1e,UndiciError:aSt}=Xe(),{hashId:cSt,isUrlExcludedFactory:ASt,normalizeHeaders:j1e,createHeaderFilters:K1e}=KW();function vQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||j1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:$1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function $1e(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 X1e(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 _Q(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 cSt(r)}var $W=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=K1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=ASt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=vQ(e,this.#c,this.matchOptions),s=_Q(n),i=j1e(r.headers),o={statusCode:r.statusCode,headers:X1e(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=vQ(e,this.#c,this.matchOptions),n=_Q(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 z1e("Snapshot path is required");try{let n=await nSt(W1e(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 aSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new z1e("Snapshot path is required");let n=W1e(r);await sSt(iSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await rSt(n,JSON.s Line truncated
${e.format(r)}`.trim())}};eSe.exports=eJ});var rJ=C((rbr,sSe)=>{"use strict";var{InvalidArgumentError:dSt}=Xe(),{runtimeFeatures:hSt}=Ku();function fSt(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 tSe=hSt.has("crypto")?Q("node:crypto"):null,gSt=tSe?.hash?t=>tSe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function nSe(t){return Array.isArray(t)&&(t.length&1)===0}function pSt(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 mSt(t){let e={};if(!t)return e;if(nSe(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 rSe=["record","playback","update"];function ESt(t){if(!rSe.includes(t))throw new dSt(`Invalid snapshot mode: ${t}. Must be one of: ${rSe.join(", ")}`)}sSe.exports={createHeaderFilters:fSt,hashId:gSt,isUndiciHeaders:nSe,normalizeHeaders:mSt,isUrlExcludedFactory:pSt,validateSnapshotMode:ESt}});var hSe=C((nbr,dSe)=>{"use strict";var{writeFile:CSt,readFile:ISt,mkdir:ySt}=Q("node:fs/promises"),{dirname:BSt,resolve:iSe}=Q("node:path"),{setTimeout:bSt,clearTimeout:oSe}=Q("node:timers"),{InvalidArgumentError:aSe,UndiciError:QSt}=Xe(),{hashId:wSt,isUrlExcludedFactory:SSt,normalizeHeaders:cSe,createHeaderFilters:ASe}=rJ();function _Q(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||cSe(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:uSe(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function uSe(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 lSe(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 FQ(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 wSt(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=ASe(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=SSt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=_Q(e,this.#c,this.matchOptions),s=FQ(n),i=cSe(r.headers),o={statusCode:r.statusCode,headers:lSe(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=_Q(e,this.#c,this.matchOptions),n=FQ(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 aSe("Snapshot path is required");try{let n=await ISt(iSe(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 QSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new aSe("Snapshot path is required");let n=iSe(r);await ySt(BSt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await CSt(n,JSON.s Line truncated
PRAGMA journal_mode = WAL;
PRAGMA synchronous = NORMAL;
PRAGMA temp_store = memory;
@@ -191,117 +191,125 @@ ${e.format(r)}`.trim())}};H1e.exports=zW});var KW=C((_Br,V1e)=>{"use strict";var
ORDER BY cachedAt ASC
LIMIT ?
)
`)}close(){this.#n.close()}get(e){wJ(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){wJ(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){wJ(e),dTt(r);let n=0,s=[],i=this;return new lTt({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(!hTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function hTt(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 qg=C((nbr,BNe)=>{"use strict";var{kConstruct:fTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:gTt,isValidHeaderName:HQ,isValidHeaderValue:mNe}=ro(),{webidl:wt}=ts(),NJ=Q("node:assert"),wv=Q("node:util");function pNe(t){return t===10||t===13||t===9||t===32}function ENe(t){let e=0,r=t.length;for(;r>e&&pNe(t.charCodeAt(r-1));)--r;for(;r>e&&pNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function CNe(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}.`});TJ(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)TJ(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 TJ(t,e,r){if(r=ENe(r),HQ(e)){if(!mNe(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(yNe(t)==="immutable")throw new TypeError("immutable");return Nv(t).append(e,r,!1)}function pTt(t){let e=Nv(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 INe(t,e){return t[0]<e[0]?-1:1}var Sv=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":Nxe(i)&&(r[s]=i);break;case"id":Txe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Nxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Txe(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}}};xxe.exports={EventSourceStream:fz}});var Uxe=C((Tbr,Lxe)=>{"use strict";var{pipeline:k2t}=Q("node:stream"),{fetching:v2t}=WQ(),{makeRequest:_2t}=GE(),{webidl:Ys}=ts(),{EventSourceStream:F2t}=Rxe(),{parseMIMEType:M2t}=sa(),{createFastMessageEvent:L2t}=Xv(),{isNetworkError:Dxe}=qQ(),{kEnumerableProperty:$g}=Ze(),{environmentSettingsObject:kxe}=ro(),vxe=!1,_xe=3e3,ZQ=0,Fxe=1,ew=2,U2t="anonymous",P2t="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=ZQ;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Ys.util.markAsUncloneable(this);let n="EventSource constructor";Ys.argumentLengthCheck(arguments,1,n),vxe||(vxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ys.converters.USVString(e),r=Ys.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=kxe,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=U2t;r.withCredentials===!0&&(o=P2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=kxe.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=_2t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===ew)return;this.#r=ZQ;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!Dxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Dxe(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?M2t(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=Fxe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new F2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(L2t(c.type,c.options))}});k2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=v2t(e)}#A(){this.#r!==ew&&(this.#r=ZQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===ZQ&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Ys.brandCheck(this,t),this.#r!==ew&&(this.#r=ew,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=Ys.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=Ys.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=Ys.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Mxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ZQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:Fxe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:ew,writable:!1}};Object.defineProperties(XE,Mxe);Object.defineProperties(XE.prototype,Mxe);Object.defineProperties(XE.prototype,{close:$g,onerror:$g,onmessage:$g,onopen:$g,readyState:$g,url:$g,withCredentials:$g});Ys.converters.EventSourceInitDict=Ys.dictionaryConverter([{key:"withCredentials",converter:Ys.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ys.converters.any},{key:"node",converter:Ys.dictionaryConverter([{key:"reconnectionTime",converter:Ys.converters["unsigned long"],defaultValue:()=>_xe},{key:"dispatcher",converter:Ys.converters.any}]),defaultValue:()=>({})}]);Lxe.exports={EventSource:XE,defaultReconnectionTime:_xe}});var Yxe=C((xbr,ge)=>{"use strict";var O2t=qd(),Oxe=Xb(),H2t=Ng(),G2t=QQe(),q2t=TQe(),Y2t=Rg(),V2t=X7(),W2t=z7(),J2t=hwe(),z2t=Iwe(),j2t=bwe(),Hxe=Xe(),l_=Ze(),{InvalidArgumentError:u_}=Hxe,ZE=s1e(),K2t=pg(),$2t=LW(),{MockCallHistory:X2 Line truncated
`)}close(){this.#n.close()}get(e){DJ(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){DJ(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){DJ(e),xTt(r);let n=0,s=[],i=this;return new TTt({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(!RTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function RTt(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 Yg=C((wbr,FNe)=>{"use strict";var{kConstruct:DTt}=Kt(),{kEnumerableProperty:HE}=Ze(),{iteratorMixin:kTt,isValidHeaderName:GQ,isValidHeaderValue:RNe}=ro(),{webidl:wt}=ts(),vJ=Q("node:assert"),Tv=Q("node:util");function xNe(t){return t===10||t===13||t===9||t===32}function DNe(t){let e=0,r=t.length;for(;r>e&&xNe(t.charCodeAt(r-1));)--r;for(;r>e&&xNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function kNe(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}.`});_J(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)_J(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 _J(t,e,r){if(r=DNe(r),GQ(e)){if(!RNe(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(_Ne(t)==="immutable")throw new TypeError("immutable");return Rv(t).append(e,r,!1)}function vTt(t){let e=Rv(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 xv=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":Oxe(i)&&(r[s]=i);break;case"id":Hxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Oxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&Hxe(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}}};Gxe.exports={EventSourceStream:Iz}});var $xe=C((Kbr,Kxe)=>{"use strict";var{pipeline:j2t}=Q("node:stream"),{fetching:K2t}=JQ(),{makeRequest:$2t}=qE(),{webidl:Ys}=ts(),{EventSourceStream:X2t}=qxe(),{parseMIMEType:Z2t}=sa(),{createFastMessageEvent:ekt}=t_(),{isNetworkError:Yxe}=YQ(),{kEnumerableProperty:Xg}=Ze(),{environmentSettingsObject:Vxe}=ro(),Wxe=!1,Jxe=3e3,ew=0,zxe=1,tw=2,tkt="anonymous",rkt="use-credentials",ZE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=ew;#i=null;#s=null;#c;#o;constructor(e,r={}){super(),Ys.util.markAsUncloneable(this);let n="EventSource constructor";Ys.argumentLengthCheck(arguments,1,n),Wxe||(Wxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ys.converters.USVString(e),r=Ys.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#c=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Vxe,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=rkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Vxe.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=$2t(a),this.#a()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#a(){if(this.#r===tw)return;this.#r=ew;let e={request:this.#i,dispatcher:this.#c},r=n=>{if(!Yxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Yxe(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?Z2t(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=zxe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new X2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(ekt(c.type,c.options))}});j2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=K2t(e)}#A(){this.#r!==tw&&(this.#r=ew,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===ew&&(this.#o.lastEventId.length&&this.#i.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#a())},this.#o.reconnectionTime)?.unref())}close(){Ys.brandCheck(this,t),this.#r!==tw&&(this.#r=tw,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=Ys.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=Ys.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=Ys.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},jxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:ew,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zxe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:tw,writable:!1}};Object.defineProperties(ZE,jxe);Object.defineProperties(ZE.prototype,jxe);Object.defineProperties(ZE.prototype,{close:Xg,onerror:Xg,onmessage:Xg,onopen:Xg,readyState:Xg,url:Xg,withCredentials:Xg});Ys.converters.EventSourceInitDict=Ys.dictionaryConverter([{key:"withCredentials",converter:Ys.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Ys.converters.any},{key:"node",converter:Ys.dictionaryConverter([{key:"reconnectionTime",converter:Ys.converters["unsigned long"],defaultValue:()=>Jxe},{key:"dispatcher",converter:Ys.converters.any}]),defaultValue:()=>({})}]);Kxe.exports={EventSource:ZE,defaultReconnectionTime:Jxe}});var nRe=C(($br,ge)=>{"use strict";var nkt=qd(),Zxe=Zb(),skt=Tg(),ikt=LQe(),okt=HQe(),akt=Dg(),ckt=sW(),Akt=eW(),ukt=Swe(),lkt=vwe(),dkt=Mwe(),eRe=Xe(),f_=Ze(),{InvalidArgumentError:h_}=eRe,eC=m1e(),hkt=mg(),fkt=qW(),{MockCallHistory:gk Line truncated
`).slice(1).join(`
`);t.stack=r?`${r}
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return Akt(e,r).catch(n=>{throw Pxe?qxe(n,Pxe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=qg().Headers;ge.exports.Response=qQ().Response;ge.exports.Request=GE().Request;ge.exports.FormData=vk().FormData;var{setGlobalOrigin:ukt,getGlobalOrigin:lkt}=vV();ge.exports.setGlobalOrigin=ukt;ge.exports.getGlobalOrigin=lkt;var{CacheStorage:dkt}=wTe(),{kConstruct:hkt}=Kt();ge.exports.caches=new dkt(hkt);var{deleteCookie:fkt,getCookies:gkt,getSetCookies:pkt,setCookie:mkt,parseCookie:Ekt}=LTe();ge.exports.deleteCookie=fkt;ge.exports.getCookies=gkt;ge.exports.getSetCookies=pkt;ge.exports.setCookie=mkt;ge.exports.parseCookie=Ekt;var{parseMIMEType:Ckt,serializeAMimeType:Ikt}=sa();ge.exports.parseMIMEType=Ckt;ge.exports.serializeAMimeType=Ikt;var{CloseEvent:ykt,ErrorEvent:Bkt,MessageEvent:bkt}=Xv(),{WebSocket:Qkt,ping:wkt}=pxe();ge.exports.WebSocket=Qkt;ge.exports.CloseEvent=ykt;ge.exports.ErrorEvent=Bkt;ge.exports.MessageEvent=bkt;ge.exports.ping=wkt;ge.exports.WebSocketStream=Qxe().WebSocketStream;ge.exports.WebSocketError=Az().WebSocketError;ge.exports.request=tw(ZE.request);ge.exports.stream=tw(ZE.stream);ge.exports.pipeline=tw(ZE.pipeline);ge.exports.connect=tw(ZE.connect);ge.exports.upgrade=tw(ZE.upgrade);ge.exports.MockClient=$2t;ge.exports.MockCallHistory=X2t;ge.exports.MockCallHistoryLog=Z2t;ge.exports.MockPool=tkt;ge.exports.MockAgent=ekt;ge.exports.SnapshotAgent=rkt;ge.exports.mockErrors=nkt;var{EventSource:Skt}=Uxe();ge.exports.EventSource=Skt;function Nkt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=Nkt});var rw=C(nh=>{"use strict";nh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");nh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");nh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";nh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);nh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);nh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());nh.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 Wxe=C((kbr,Vxe)=>{"use strict";var{asciiLowercase:d_,solelyContainsHTTPTokenCodePoints:Tkt,soleyContainsHTTPQuotedStringTokenCodePoints:xkt}=rw();Vxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=d_(String(e)),this._map.get(e)}has(e){return e=d_(String(e)),this._map.has(e)}set(e,r){if(e=d_(String(e)),r=String(r),!Tkt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!xkt(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=d_(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 jxe=C((vbr,zxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Rkt,removeTrailingHTTPWhitespace:Jxe,isHTTPWhitespaceChar:Dkt,solelyContainsHTTPTokenCodePoints:gz,soleyContainsHTTPQuotedStringTokenCodePoints:kkt,asciiLowercase:pz,collectAnHTTPQuotedString:vkt}=rw();zxe.exports=t=>{t=Rkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!gz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Jxe(n),n.length===0||!gz(n))return null;let s={type:pz(r),subtype:pz(n),parameters:new Map};for(;e<t.length;){for(++e;Dkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=pz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=vkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Jxe(o),o==="")continue}i.length>0&&gz(i)&&kkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var $xe=C((_br,Kxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:_kt}=rw();Kxe.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+="=",(!_kt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var tRe=C((Mbr,eRe)=>{"use strict";var Fkt=Wxe(),Mkt=jxe(),Lkt=$xe(),{asciiLowercase:Xxe,solelyContainsHTTPTokenCodePoints:Zxe}=rw();eRe.exports=class{constructor(e){e=String(e);let r=Mkt(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 Fkt(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=Xxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Zxe(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=Xxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Zxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return Lkt(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 mRe=C(($Qr,Zkt)=>{Zkt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.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/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?aj:f.type==="?"?uj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=mvt[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),ee=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!==cj?"(?:$|\\/)":"";s=v+z+X+ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===cj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Cvt(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?aj:r.dot?gvt:pvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?yvt(a):a===Vs?Vs:a._src).reduce((a,c)=>(a[a.length-1]===Vs&&c===Vs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Vs||o[c-1]===Vs||(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]=Vs))}),o.filter(a=>a!==Vs).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;Aj.sep!=="/"&&(e=e.split(Aj.sep).join("/")),e=e.split(YRe),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 ho.defaults(e).Minimatch}};ho.Minimatch=oC});var XRe=C((Nwr,$Re)=>{$Re.exports=KRe;var hj=Q("fs"),{EventEmitter:bvt}=Q("events"),{Minimatch:dj}=JRe(),{resolve:Qvt}=Q("path");function wvt(t,e){return new Promise((r,n)=>{hj.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 zRe(t,e){return new Promise((r,n)=>{(e?hj.stat:hj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?zRe(t,!1):null):r(null):r(o)})})}async function*jRe(t,e,r,n,s,i){let o=await wvt(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 zRe(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*jRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Svt(t,e,r,n){yield*jRe("",t,e,r,n,!0)}function Nvt(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 E_=class extends bvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Nvt(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 dj(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 dj(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 dj(i,{dot:!0}))}this.iterator=Svt(Qvt(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=H===-1?w.length:H}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function aI(w){let b=oI(w.toString()),S=b.match(TM);if(S||(S=b.match(xM)),!S)throw new Error(`could not parse args in autoInject
${i}`:s.stack}ge.exports.fetch=function(e,r=void 0){return Skt(e,r).catch(n=>{throw Xxe?rRe(n,Xxe):n&&typeof n=="object"&&Error.captureStackTrace(n,ge.exports.fetch),n})};ge.exports.Headers=Yg().Headers;ge.exports.Response=YQ().Response;ge.exports.Request=qE().Request;ge.exports.FormData=Mk().FormData;var{setGlobalOrigin:Nkt,getGlobalOrigin:Tkt}=PV();ge.exports.setGlobalOrigin=Nkt;ge.exports.getGlobalOrigin=Tkt;var{CacheStorage:xkt}=UTe(),{kConstruct:Rkt}=Kt();ge.exports.caches=new xkt(Rkt);var{deleteCookie:Dkt,getCookies:kkt,getSetCookies:vkt,setCookie:_kt,parseCookie:Fkt}=KTe();ge.exports.deleteCookie=Dkt;ge.exports.getCookies=kkt;ge.exports.getSetCookies=vkt;ge.exports.setCookie=_kt;ge.exports.parseCookie=Fkt;var{parseMIMEType:Mkt,serializeAMimeType:Lkt}=sa();ge.exports.parseMIMEType=Mkt;ge.exports.serializeAMimeType=Lkt;var{CloseEvent:Ukt,ErrorEvent:Pkt,MessageEvent:Okt}=t_(),{WebSocket:Hkt,ping:Gkt}=xxe();ge.exports.WebSocket=Hkt;ge.exports.CloseEvent=Ukt;ge.exports.ErrorEvent=Pkt;ge.exports.MessageEvent=Okt;ge.exports.ping=Gkt;ge.exports.WebSocketStream=Lxe().WebSocketStream;ge.exports.WebSocketError=gz().WebSocketError;ge.exports.request=rw(eC.request);ge.exports.stream=rw(eC.stream);ge.exports.pipeline=rw(eC.pipeline);ge.exports.connect=rw(eC.connect);ge.exports.upgrade=rw(eC.upgrade);ge.exports.MockClient=fkt;ge.exports.MockCallHistory=gkt;ge.exports.MockCallHistoryLog=pkt;ge.exports.MockPool=Ekt;ge.exports.MockAgent=mkt;ge.exports.SnapshotAgent=Ckt;ge.exports.mockErrors=Ikt;var{EventSource:qkt}=$xe();ge.exports.EventSource=qkt;function Ykt(){globalThis.fetch=ge.exports.fetch,globalThis.Headers=ge.exports.Headers,globalThis.Response=ge.exports.Response,globalThis.Request=ge.exports.Request,globalThis.FormData=ge.exports.FormData,globalThis.WebSocket=ge.exports.WebSocket,globalThis.CloseEvent=ge.exports.CloseEvent,globalThis.ErrorEvent=ge.exports.ErrorEvent,globalThis.MessageEvent=ge.exports.MessageEvent,globalThis.EventSource=ge.exports.EventSource}ge.exports.install=Ykt});var nw=C(nh=>{"use strict";nh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");nh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");nh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
`||t==="\r";nh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);nh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);nh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());nh.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 iRe=C((eQr,sRe)=>{"use strict";var{asciiLowercase:g_,solelyContainsHTTPTokenCodePoints:Vkt,soleyContainsHTTPQuotedStringTokenCodePoints:Wkt}=nw();sRe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=g_(String(e)),this._map.get(e)}has(e){return e=g_(String(e)),this._map.has(e)}set(e,r){if(e=g_(String(e)),r=String(r),!Vkt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!Wkt(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=g_(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 cRe=C((tQr,aRe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:Jkt,removeTrailingHTTPWhitespace:oRe,isHTTPWhitespaceChar:zkt,solelyContainsHTTPTokenCodePoints:yz,soleyContainsHTTPQuotedStringTokenCodePoints:jkt,asciiLowercase:Bz,collectAnHTTPQuotedString:Kkt}=nw();aRe.exports=t=>{t=Jkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!yz(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=oRe(n),n.length===0||!yz(n))return null;let s={type:Bz(r),subtype:Bz(n),parameters:new Map};for(;e<t.length;){for(++e;zkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Bz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Kkt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=oRe(o),o==="")continue}i.length>0&&yz(i)&&jkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var uRe=C((rQr,ARe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:$kt}=nw();ARe.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+="=",(!$kt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var fRe=C((sQr,hRe)=>{"use strict";var Xkt=iRe(),Zkt=cRe(),evt=uRe(),{asciiLowercase:lRe,solelyContainsHTTPTokenCodePoints:dRe}=nw();hRe.exports=class{constructor(e){e=String(e);let r=Zkt(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 Xkt(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=lRe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!dRe(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=lRe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!dRe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return evt(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 xRe=C((Cwr,gvt)=>{gvt.exports={name:"@actions/artifact",version:"6.2.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.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/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
%s`,k,k,f,s);let P=f.type==="*"?hj:f.type==="?"?pj:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}B(),o&&(s+="\\\\");let M=vvt[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),ee=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!==fj?"(?:$|\\/)":"";s=v+z+X+ke+ee}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=I()+s),r===fj)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Fvt(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?hj:r.dot?Dvt:kvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Lvt(a):a===Vs?Vs:a._src).reduce((a,c)=>(a[a.length-1]===Vs&&c===Vs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Vs||o[c-1]===Vs||(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]=Vs))}),o.filter(a=>a!==Vs).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;gj.sep!=="/"&&(e=e.split(gj.sep).join("/")),e=e.split(rDe),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 ho.defaults(e).Minimatch}};ho.Minimatch=aC});var uDe=C((jwr,ADe)=>{ADe.exports=cDe;var Cj=Q("fs"),{EventEmitter:Pvt}=Q("events"),{Minimatch:Ej}=iDe(),{resolve:Ovt}=Q("path");function Hvt(t,e){return new Promise((r,n)=>{Cj.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 oDe(t,e){return new Promise((r,n)=>{(e?Cj.stat:Cj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?oDe(t,!1):null):r(null):r(o)})})}async function*aDe(t,e,r,n,s,i){let o=await Hvt(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 oDe(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*aDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*Gvt(t,e,r,n){yield*aDe("",t,e,r,n,!0)}function qvt(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 y_=class extends Pvt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=qvt(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 Ej(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 Ej(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 Ej(i,{dot:!0}))}this.iterator=Gvt(Ovt(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=H===-1?w.length:H}else if(F!==-1&&w[S]==="/"&&w[S+1]==="*"){let H=w.indexOf("*/",S);H!==-1?(S=H+2,F=w.indexOf("*/",S)):(b+=w[S],S++)}else b+=w[S],S++;return b}function cI(w){let b=aI(w.toString()),S=b.match(DM);if(S||(S=b.match(kM)),!S)throw new Error(`could not parse args in autoInject
Source:
`+b);let[,F]=S;return F.replace(/\s/g,"").split(w1).map(H=>H.replace(S1,"").trim())}function cI(w,b){var S={};return Object.keys(w).forEach(F=>{var H=w[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),S[F]=Y.concat(Y.length>0?te:H);else if(j)S[F]=H;else{if(Y=aI(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(te)}function te(Se,yt){var Lt=Y.map(St=>Se[St]);Lt.push(yt),E(H)(...Lt)}}),iI(S,b)}class AI{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):uI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):uI(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 uI(w,b){w.length=1,w.head=w.tail=b}function kp(w,b,S){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var F=E(w),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function te(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 yt(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 yr,xn;function Io(Dh,...mI){if(Dh)return Ye?xn(Dh):yr();if(mI.length<=1)return yr(mI[0]);yr(mI)}var Mp=Ut._createTaskItem(qe,Ye?Io:Nt||Io);if(be?Ut._tasks.unshift(Mp):Ut._tasks.push(Mp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Dh,mI)=>{yr=Dh,xn=mI})}function Co(qe){return function(be,...Ye){H-=1;for(var Nt=0,yr=qe.length;Nt<yr;Nt++){var xn=qe[Nt],Io=Y.indexOf(xn);Io===0?Y.shift():Io>0&&Y.splice(Io,1),xn.callback(be,...Ye),be!=null&&yt("error",be,xn.data)}H<=Ut.concurrency-Ut.buffer&&yt("unsaturated"),Ut.idle()&&yt("drain"),Ut.process()}}function Fp(qe){return qe.length===0&&Ut.idle()?(A(()=>yt("drain")),!0):!1}let Rh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{te(qe,(yr,xn)=>{if(yr)return Nt(yr);Ye(xn)})});Se(qe),j(qe,be)};var pI=!1,Ut={_tasks:new AI,_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)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?Fp(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)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?Fp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!pI){for(pI=!0;!Ut.paused&&H<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 yr=Ut._tasks.shift();qe.push(yr),Y.push(yr),be.push(yr.data)}H+=1,Ut._tasks.length===0&&yt("empty"),H===Ut.concurrency&&yt("saturated");var xn=ee(Co(qe));F(be,xn)}pI=!1}},length(){return Ut._tasks.length},running(){return H},workersList(){return Y},idle(){return Ut._tasks.length+H===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Rh("saturated")},unsaturated:{writable:!1,value:Rh("unsaturated")},empty:{writable:!1,value:Rh("empty")},drain:{writable:!1,value:Rh("drain")},error:{writable:!1,value:Rh("error")}}),Ut}function lI(w,b){return kp(w,1,b)}function vp(w,b,S){return kp(w,b,S)}function Eo(w,b,S,F){F=V(F);var H=E(S);return $s(w,(Y,J,j)=>{H(b,Y,(te,Se)=>{b=Se,j(te)})},Y=>F(Y,b))}var ba=m(Eo,4);function _p(...w){var b=w.map(E);return function(...S){var F=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=KA(),ba(b,S,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[jA]}}function N1(...w){return _p(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var O=m(we,4);function T(w,b,S,F){var H=E(S);return O(w,b,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(w,b,S){return G(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});_r[ns]||(cDe=global[ns]||[],uDe(_r,cDe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(s){s||ADe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,b_,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),ADe()}return Object.defineProperty(e,b_,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(_r[ns]),Q("assert").equal(_r[ns].length,0)}));var cDe;global[ns]||uDe(global,_r[ns]);mj.exports=gj(Mvt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(mj.exports=gj(_r),_r.__patched=!0);function gj(t){_vt(t),t.gracefulify=gj,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),ee(v,z,X);function ee(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?aC([ee,[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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return n(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return i(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([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,ee){return typeof X=="function"&&(ee=X,X=0),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return a(ue,Fe,ke,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([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 ee=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 ee(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?aC([ee,[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=Fvt(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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,mn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ue,Fe,ke,et],vt,Ft||Date.now(),Date.now()]):typeof et=="function"&&et.apply(this,arguments)})}}return t}function aC(t){tp("ENQUEUE",t[0].name,t[1]),_r[ns].push(t),pj()}var B_;function ADe(){for(var t=Date.now(),e=0;e<_r[ns].length;++e)_r[ns][e].length>2&&(_r[ns][e][3]=t,_r[ns][e][4]=t);pj()}function pj(){if(clearTimeout(B_),B_=void 0,_r[ns].length!==0){var t=_r[ns].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)tp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){tp("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?(tp("RETRY",e.name,r),e.apply(null,r.concat([s]))):_r[ns].push(t)}B_===void 0&&(B_=setTimeout(pj,0))}}});var Q_=C((kwr,lDe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};qke.exports={AggregateError:Zj,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 eK=C((G1r,Yke)=>{"use strict";Yke.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 ys=C((q1r,Jke)=>{"use strict";var{format:iUt,inspect:q_}=eK(),{AggregateError:oUt}=xr(),aUt=globalThis.AggregateError||oUt,cUt=Symbol("kIsNodeError"),AUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],uUt=/^([A-Z][a-z0-9]*)+$/,lUt="__node_internal_",Y_={};function sp(t,e){if(!t)throw new Y_.ERR_INTERNAL_ASSERTION(e)}function Vke(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 dUt(t,e,r){if(typeof e=="function")return sp(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 sp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:iUt(e,...r)}function is(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(dUt(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[cUt]=!0,Y_[t]=n}function Wke(t){let e=lUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function hUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new aUt([e,t],e.message);return r.code=e.code,r}return t||e}var tK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new Y_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};is("ERR_ASSERTION","%s",Error);is("ERR_INVALID_ARG_TYPE",(t,e,r)=>{sp(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)sp(typeof c=="string","All expected entries have to be of type string"),AUt.includes(c)?s.push(c.toLowerCase()):uUt.test(c)?i.push(c):(sp(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+=_X(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=_X(" "+s+"="+n[s]+`
`);return kt.from(r)};zC.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};zC.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,Bh(e.mode&NYt,6),100),kt.write(r,Bh(e.uid,6),108),kt.write(r,Bh(e.gid,6),116),_Yt(e.size,r,124),kt.write(r,Bh(e.mtime.getTime()/1e3|0,11),136),r[156]=EM+kYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(gOe,r,p1),kt.copy(QYt,r,FX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Bh(e.devmajor||0,6),329),kt.write(r,Bh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Bh(mOe(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-EM,i=JC(e,0,100,r),o=yh(e,100,8),a=yh(e,108,8),c=yh(e,116,8),A=yh(e,124,12),u=yh(e,136,12),l=DYt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),g=yh(e,329,8),E=yh(e,337,8),m=mOe(e);if(m===256)return null;if(m!==yh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(TYt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!xYt(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 TYt(t){return kt.equals(gOe,t.subarray(p1,p1+6))}function xYt(t){return kt.equals(wYt,t.subarray(p1,p1+6))&&kt.equals(SYt,t.subarray(FX,FX+2))}function RYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function DYt(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 kYt(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 pOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function mOe(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 Bh(t,e){return t=t.toString(8),t.length>e?bYt.slice(0,e)+" ":BYt.slice(0,e-t.length)+t+" "}function vYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function _Yt(t,e,r){t.toString(8).length>11?vYt(t,e,r):kt.write(e,Bh(t,11),r)}function FYt(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 yh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return FYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=RYt(pOe(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 JC(t,e,r,n){return kt.toString(t.subarray(e,pOe(t,0,e,e+r)),n)}function _X(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 BOe=C((gTr,yOe)=>{var{Writable:MYt,Readable:LYt,getStreamError:EOe}=vX(),UYt=EX(),COe=GC(),jC=MX(),PYt=COe.alloc(0),UX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new UYt,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 PYt;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 COe.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)}},PX=class extends LYt{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(EOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=IOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},OX=class extends MYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function TO(t){process.exitCode=SO.Failure,No(t)}function Vl(){return process.env.RUNNER_DEBUG==="1"}function q(t){Ql("debug",{},t)}function No(t,e={}){Ql("error",J1(e),t instanceof Error?t.toString():t)}function Ke(t,e={}){Ql("warning",J1(e),t instanceof Error?t.toString():t)}function vce(t,e={}){Ql("notice",J1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+kce.EOL)}function _ce(t){PM("group",t)}function Fce(){PM("endgroup")}function yy(t,e){if(process.env.GITHUB_STATE||"")return OZ("STATE",HZ(t,e));Ql("save-state",{name:t},bl(e))}function Tc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Fje,existsSync as Mje}from"fs";import{EOL as Lje}from"os";var _m=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Mje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Fje(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${Lje}`)}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 kO=pe(Oce(),1),Hce=pe(VN(),1),Kje=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 Gce(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 qce(t){return new kO.HttpClient().getAgent(t)}function $je(t){return new kO.HttpClient().getAgentDispatcher(t)}function Yce(t){let e=$je(t);return(n,s)=>Kje(this,void 0,void 0,function*(){return(0,Hce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Vce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function vO(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 Wl(){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 iT(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)=>iT.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 Wce(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 Jce(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 zce=Function.bind,jce=zce.bind(zce);function Kce(t,e,r){let n=jce(Jce,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]=jce(Wce,null).apply(null,i)})}function Zje(){let t=Symbol("Singular"),e={registry:{}},r=iT.bind(null,e,t);return Kce(r,e,t),r}function eKe(){let t={registry:{}},e=iT.bind(null,t);return Kce(e,t),e}var $ce={Singular:Zje,Collection:eKe};var tKe="0.0.0-development",rKe=`octokit-endpoint.js/${tKe} ${Wl()}`,nKe={method:"GET",baseUrl:"ht Line truncated
`+b);let[,F]=S;return F.replace(/\s/g,"").split(S1).map(H=>H.replace(N1,"").trim())}function AI(w,b){var S={};return Object.keys(w).forEach(F=>{var H=w[F],Y,J=h(H),j=!J&&H.length===1||J&&H.length===0;if(Array.isArray(H))Y=[...H],H=Y.pop(),S[F]=Y.concat(Y.length>0?te:H);else if(j)S[F]=H;else{if(Y=cI(H),H.length===0&&!J&&Y.length===0)throw new Error("autoInject task functions require explicit parameters.");J||Y.pop(),S[F]=Y.concat(te)}function te(Se,Bt){var Lt=Y.map(St=>Se[St]);Lt.push(Bt),E(H)(...Lt)}}),oI(S,b)}class uI{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):lI(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):lI(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 lI(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),H=0,Y=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(qe,be){J[qe].push(be)}function te(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 yr,xn;function Io(Dh,...EI){if(Dh)return Ye?xn(Dh):yr();if(EI.length<=1)return yr(EI[0]);yr(EI)}var Lp=Ut._createTaskItem(qe,Ye?Io:Nt||Io);if(be?Ut._tasks.unshift(Lp):Ut._tasks.push(Lp),Lt||(Lt=!0,A(()=>{Lt=!1,Ut.process()})),Ye||!Nt)return new Promise((Dh,EI)=>{yr=Dh,xn=EI})}function Co(qe){return function(be,...Ye){H-=1;for(var Nt=0,yr=qe.length;Nt<yr;Nt++){var xn=qe[Nt],Io=Y.indexOf(xn);Io===0?Y.shift():Io>0&&Y.splice(Io,1),xn.callback(be,...Ye),be!=null&&Bt("error",be,xn.data)}H<=Ut.concurrency-Ut.buffer&&Bt("unsaturated"),Ut.idle()&&Bt("drain"),Ut.process()}}function Mp(qe){return qe.length===0&&Ut.idle()?(A(()=>Bt("drain")),!0):!1}let Rh=qe=>be=>{if(!be)return new Promise((Ye,Nt)=>{te(qe,(yr,xn)=>{if(yr)return Nt(yr);Ye(xn)})});Se(qe),j(qe,be)};var mI=!1,Ut={_tasks:new uI,_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)?Mp(qe)?void 0:qe.map(Ye=>St(Ye,!1,!1,be)):St(qe,!1,!1,be)},pushAsync(qe,be){return Array.isArray(qe)?Mp(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)?Mp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!1,be)):St(qe,!0,!1,be)},unshiftAsync(qe,be){return Array.isArray(qe)?Mp(qe)?void 0:qe.map(Ye=>St(Ye,!0,!0,be)):St(qe,!0,!0,be)},remove(qe){Ut._tasks.remove(qe)},process(){if(!mI){for(mI=!0;!Ut.paused&&H<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 yr=Ut._tasks.shift();qe.push(yr),Y.push(yr),be.push(yr.data)}H+=1,Ut._tasks.length===0&&Bt("empty"),H===Ut.concurrency&&Bt("saturated");var xn=ee(Co(qe));F(be,xn)}mI=!1}},length(){return Ut._tasks.length},running(){return H},workersList(){return Y},idle(){return Ut._tasks.length+H===0},pause(){Ut.paused=!0},resume(){Ut.paused!==!1&&(Ut.paused=!1,A(Ut.process))}};return Object.defineProperties(Ut,{saturated:{writable:!1,value:Rh("saturated")},unsaturated:{writable:!1,value:Rh("unsaturated")},empty:{writable:!1,value:Rh("empty")},drain:{writable:!1,value:Rh("drain")},error:{writable:!1,value:Rh("error")}}),Ut}function dI(w,b){return vp(w,1,b)}function _p(w,b,S){return vp(w,b,S)}function Eo(w,b,S,F){F=V(F);var H=E(S);return $s(w,(Y,J,j)=>{H(b,Y,(te,Se)=>{b=Se,j(te)})},Y=>F(Y,b))}var ba=m(Eo,4);function Fp(...w){var b=w.map(E);return function(...S){var F=this,H=S[S.length-1];return typeof H=="function"?S.pop():H=KA(),ba(b,S,(Y,J,j)=>{J.apply(F,Y.concat((te,...Se)=>{j(te,Se)}))},(Y,J)=>H(Y,...J)),H[jA]}}function T1(...w){return Fp(...w.reverse())}function we(w,b,S,F){return y(ue(b),w,S,F)}var O=m(we,4);function T(w,b,S,F){var H=E(S);return O(w,b,(Y,J)=>{H(Y,(j,...te)=>j?J(j):J(j,te))},(Y,J)=>{for(var j=[],te=0;te<J.length;te++)J[te]&&(j=j.concat(...J[te]));return F(Y,j)})}var G=m(T,4);function K(w,b,S){return G(w,1/0,b,S)}var $=m(K,3);function oe(w,b,S){retur Line truncated
GFS4: `),console.error(t)});_r[ns]||(IDe=global[ns]||[],BDe(_r,IDe),_r.close=(function(t){function e(r,n){return t.call(_r,r,function(s){s||yDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,S_,{value:t}),e})(_r.close),_r.closeSync=(function(t){function e(r){t.apply(_r,arguments),yDe()}return Object.defineProperty(e,S_,{value:t}),e})(_r.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){rp(_r[ns]),Q("assert").equal(_r[ns].length,0)}));var IDe;global[ns]||BDe(global,_r[ns]);bj.exports=yj(Xvt(_r));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!_r.__patched&&(bj.exports=yj(_r),_r.__patched=!0);function yj(t){Kvt(t),t.gracefulify=yj,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),ee(v,z,X);function ee(ce,ue,Fe,ke){return e(ce,ue,function(et){et&&(et.code==="EMFILE"||et.code==="ENFILE")?cC([ee,[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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);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,ee){return typeof X=="function"&&(ee=X,X=0),ce(v,z,X,ee);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 ee=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 ee(v,z,X);function ce(ue,Fe,ke,et){return function(Ft,vt){Ft&&(Ft.code==="EMFILE"||Ft.code==="ENFILE")?cC([ee,[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=$vt(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,ee){return typeof X=="function"&&(ee=X,X=null),ce(v,z,X,ee);function ce(ue,Fe,ke,et,Ft){return k(ue,Fe,ke,function(vt,mn){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){rp("ENQUEUE",t[0].name,t[1]),_r[ns].push(t),Bj()}var w_;function yDe(){for(var t=Date.now(),e=0;e<_r[ns].length;++e)_r[ns][e].length>2&&(_r[ns][e][3]=t,_r[ns][e][4]=t);Bj()}function Bj(){if(clearTimeout(w_),w_=void 0,_r[ns].length!==0){var t=_r[ns].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)rp("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){rp("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?(rp("RETRY",e.name,r),e.apply(null,r.concat([s]))):_r[ns].push(t)}w_===void 0&&(w_=setTimeout(Bj,0))}}});var N_=C((e1r,bDe)=>{"use strict";var FA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";FA.writable=t=>FA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";FA.readable=t=>FA(t)&&t.readable!==!1&&typeo Line truncated
`;super(r),this.name="AggregateError",this.errors=e}};tve.exports={AggregateError:iK,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 oK=C((uSr,rve)=>{"use strict";rve.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 ys=C((lSr,ive)=>{"use strict";var{format:yUt,inspect:W_}=oK(),{AggregateError:BUt}=xr(),bUt=globalThis.AggregateError||BUt,QUt=Symbol("kIsNodeError"),wUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],SUt=/^([A-Z][a-z0-9]*)+$/,NUt="__node_internal_",J_={};function ip(t,e){if(!t)throw new J_.ERR_INTERNAL_ASSERTION(e)}function nve(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 TUt(t,e,r){if(typeof e=="function")return ip(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 ip(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:yUt(e,...r)}function is(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(TUt(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[QUt]=!0,J_[t]=n}function sve(t){let e=NUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function xUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new bUt([e,t],e.message);return r.code=e.code,r}return t||e}var aK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new J_.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};is("ERR_ASSERTION","%s",Error);is("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ip(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)ip(typeof c=="string","All expected entries have to be of type string"),wUt.includes(c)?s.push(c.toLowerCase()):SUt.test(c)?i.push(c):(ip(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+=OX(" linkpath="+e.linkname+`
`));let n=e.pax;if(n)for(let s in n)r+=OX(" "+s+"="+n[s]+`
`);return kt.from(r)};jC.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};jC.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,Bh(e.mode&qYt,6),100),kt.write(r,Bh(e.uid,6),108),kt.write(r,Bh(e.gid,6),116),KYt(e.size,r,124),kt.write(r,Bh(e.mtime.getTime()/1e3|0,11),136),r[156]=yM+zYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(NOe,r,m1),kt.copy(OYt,r,HX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Bh(e.devmajor||0,6),329),kt.write(r,Bh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Bh(xOe(r),6),148),r)};jC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-yM,i=zC(e,0,100,r),o=yh(e,100,8),a=yh(e,108,8),c=yh(e,116,8),A=yh(e,124,12),u=yh(e,136,12),l=JYt(s),d=e[157]===0?null:zC(e,157,100,r),h=zC(e,265,32),f=zC(e,297,32),g=yh(e,329,8),E=yh(e,337,8),m=xOe(e);if(m===256)return null;if(m!==yh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(YYt(e))e[345]&&(i=zC(e,345,155,r)+"/"+i);else if(!VYt(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 YYt(t){return kt.equals(NOe,t.subarray(m1,m1+6))}function VYt(t){return kt.equals(HYt,t.subarray(m1,m1+6))&&kt.equals(GYt,t.subarray(HX,HX+2))}function WYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function JYt(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 zYt(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 TOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function xOe(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 Bh(t,e){return t=t.toString(8),t.length>e?PYt.slice(0,e)+" ":UYt.slice(0,e-t.length)+t+" "}function jYt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function KYt(t,e,r){t.toString(8).length>11?jYt(t,e,r):kt.write(e,Bh(t,11),r)}function $Yt(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 yh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return $Yt(t);{for(;e<t.length&&t[e]===32;)e++;let n=WYt(TOe(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 zC(t,e,r,n){return kt.toString(t.subarray(e,TOe(t,0,e,e+r)),n)}function OX(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 _Oe=C((LTr,vOe)=>{var{Writable:XYt,Readable:ZYt,getStreamError:ROe}=PX(),eVt=QX(),DOe=qC(),KC=GX(),tVt=DOe.alloc(0),YX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new eVt,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 tVt;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 DOe.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)}},VX=class extends ZYt{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(ROe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=kOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},WX=class extends XYt{constru Line truncated
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function DO(t){process.exitCode=xO.Failure,No(t)}function Vl(){return process.env.RUNNER_DEBUG==="1"}function q(t){Ql("debug",{},t)}function No(t,e={}){Ql("error",z1(e),t instanceof Error?t.toString():t)}function je(t,e={}){Ql("warning",z1(e),t instanceof Error?t.toString():t)}function eT(t,e={}){Ql("notice",z1(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+Uce.EOL)}function Pce(t){GM("group",t)}function Oce(){GM("endgroup")}function By(t,e){if(process.env.GITHUB_STATE||"")return WZ("STATE",JZ(t,e));Ql("save-state",{name:t},bl(e))}function Tc(t){return process.env[`STATE_${t}`]||""}import{readFileSync as Jje,existsSync as zje}from"fs";import{EOL as jje}from"os";var Fm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(zje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Jje(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${jje}`)}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 FO=pe(Vce(),1),Wce=pe(WN(),1),cKe=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 Jce(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 zce(t){return new FO.HttpClient().getAgent(t)}function AKe(t){return new FO.HttpClient().getAgentDispatcher(t)}function jce(t){let e=AKe(t);return(n,s)=>cKe(this,void 0,void 0,function*(){return(0,Wce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Kce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function MO(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 Wl(){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 aT(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)=>aT.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 $ce(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 Xce(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 Zce=Function.bind,eAe=Zce.bind(Zce);function tAe(t,e,r){let n=eAe(Xce,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]=eAe($ce,null).apply(null,i)})}function lKe(){let t=Symbol("Singular"),e={registry:{}},r=aT.bind(null,e,t);return tAe(r,e,t),r}function dKe(){let t={registry:{}},e=aT.bind(null,t);return tAe(e,t),e}var rAe={Singular:lKe,Collection:dKe};var hKe="0.0.0-development",fKe=`octokit-endpoint.js/${hKe} ${Wl()}`,gKe={method:"GET",baseUrl:"htt Line truncated
`+t.errors.map(e=>` - ${e.message}`).join(`
`)}var PKe=class extends Error{constructor(t,e,r){super(UKe(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},OKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],HKe=["query","method","url"],yAe=/\/api\/v3\/?$/;function GKe(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(HKe.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)=>OKe.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 yAe.test(i)&&(s.url=i.replace(yAe,"/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 PKe(s,a,o.data)}return o.data.data})}function GO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>GKe(r,s,i),{defaults:GO.bind(null,r),endpoint:r.endpoint})}var dzt=GO(Qy,{headers:{"user-agent":`octokit-graphql.js/${LKe} ${Wl()}`},method:"POST",url:"/graphql"});function BAe(t){return GO(t,{method:"POST",url:"/graphql"})}var qO="(?:[a-zA-Z0-9_-]+)",bAe="\\.",QAe=new RegExp(`^${qO}${bAe}${qO}${bAe}${qO}$`),qKe=QAe.test.bind(QAe);async function YKe(t){let e=qKe(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 VKe(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function WKe(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=VKe(t),e(s)}var wAe=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(YKe.bind(null,e),{hook:WKe.bind(null,e)})};var YO="7.0.6";var SAe=()=>{},JKe=console.warn.bind(console),zKe=console.error.bind(console);function jKe(t={}){return typeof t.debug!="function"&&(t.debug=SAe),typeof t.info!="function"&&(t.info=SAe),typeof t.warn!="function"&&(t.warn=JKe),typeof t.error!="function"&&(t.error=zKe),t}var NAe=`octokit-core.js/${YO} ${Wl()}`,cT=class{static VERSION=YO;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 $ce.Collection,n={baseUrl:Qy.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} ${NAe}`:NAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=Qy.defaults(n),this.graphql=BAe(this.request).defaults(n),this.log=jKe(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=wAe(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 VO="17.0.0";var KKe={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 $Ke=class extends Error{constructor(t,e,r){super(KKe(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},XKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],ZKe=["query","method","url"],SAe=/\/api\/v3\/?$/;function e$e(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(ZKe.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)=>XKe.includes(a)?(o[a]=n[a],o):(o.variables||(o.variables={}),o.variables[a]=n[a],o),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return SAe.test(i)&&(s.url=i.replace(SAe,"/api/graphql")),t(s).then(o=>{if(o.data.errors){let a={};for(let c of Object.keys(o.headers))a[c]=o.headers[c];throw new $Ke(s,a,o.data)}return o.data.data})}function VO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>e$e(r,s,i),{defaults:VO.bind(null,r),endpoint:r.endpoint})}var Tzt=VO(wy,{headers:{"user-agent":`octokit-graphql.js/${jKe} ${Wl()}`},method:"POST",url:"/graphql"});function NAe(t){return VO(t,{method:"POST",url:"/graphql"})}var WO="(?:[a-zA-Z0-9_-]+)",TAe="\\.",xAe=new RegExp(`^${WO}${TAe}${WO}${TAe}${WO}$`),t$e=xAe.test.bind(xAe);async function r$e(t){let e=t$e(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 n$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function s$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=n$e(t),e(s)}var RAe=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(r$e.bind(null,e),{hook:s$e.bind(null,e)})};var JO="7.0.6";var DAe=()=>{},i$e=console.warn.bind(console),o$e=console.error.bind(console);function a$e(t={}){return typeof t.debug!="function"&&(t.debug=DAe),typeof t.info!="function"&&(t.info=DAe),typeof t.warn!="function"&&(t.warn=i$e),typeof t.error!="function"&&(t.error=o$e),t}var kAe=`octokit-core.js/${JO} ${Wl()}`,uT=class{static VERSION=JO;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 rAe.Collection,n={baseUrl:wy.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} ${kAe}`:kAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=wy.defaults(n),this.graphql=NAe(this.request).defaults(n),this.log=a$e(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=RAe(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 zO="17.0.0";var c$e={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
`)}
`:`${vAe(t.status,e)}
`:`${UAe(t.status,e)}
${$O[t.status]}
`}function PAe(t){return t==="enabled"||t==="read-only"||t==="write-only"}function vAe(t,e){if(!PAe(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function i$e(t){return t?n$e[t]:void 0}function o$e(t){return t?s$e[t]:void 0}function a$e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Rs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${r$e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Rs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Rs}#enhanced-caching)** provider.`}function c$e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=OAe(e)?`Entries: ${r} restored (${uT(e,u=>u.restoredSize)}Mb), ${n} saved (${uT(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?i$e(t.cleanup):void 0,o=o$e(t.projectCache),a=A$e(t.entries),c=`<pre>
${u$e(t.entries)}</pre>`,A=[$O[t.status],i,o,a,c].filter(Boolean).join(`
${e3[t.status]}
`}function YAe(t){return t==="enabled"||t==="read-only"||t==="write-only"}function UAe(t,e){if(!YAe(t))return`<h4>Gradle State Caching - ${t==="disabled-existing-home"?"Skipped":t==="not-available"?"Unavailable":t==="external"?"External":"Disabled"}</h4>`;let r=e?.kind==="basic"?"\u{1F6E1}\uFE0F":"\u26A1",n=e?.kind==="basic"?"Basic":"Enhanced";return`<h4>Gradle State Caching - ${r} ${n}${t==="read-only"?" (read-only)":t==="write-only"?" (write-only)":""}</h4>`}function m$e(t){return t?g$e[t]:void 0}function E$e(t){return t?p$e[t]:void 0}function C$e(t){if(t)return t.kind==="enhanced"?`**[Enhanced Caching](${Rs}#enhanced-caching)** uses the proprietary \`gradle-actions-caching\` provider. See [DISTRIBUTION.md](${f$e}) for terms of use and opt-out instructions.`:`**[Basic Caching](${Rs}#basic-caching)** uses the basic open-source caching provider. For faster builds and advanced features, consider the **[Enhanced Caching](${Rs}#enhanced-caching)** provider.`}function I$e(t){let e=t.entries,r=e.filter(u=>u.restoredKey).length,n=e.filter(u=>u.savedKey).length,s=VAe(e)?`Entries: ${r} restored (${dT(e,u=>u.restoredSize)}Mb), ${n} saved (${dT(e,u=>u.savedSize)}Mb) - Expand for more details`:`Entries: ${r} restored, ${n} saved - Expand for more details`,i=t.status==="enabled"?m$e(t.cleanup):void 0,o=E$e(t.projectCache),a=y$e(t.entries),c=`<pre>
${B$e(t.entries)}</pre>`,A=[e3[t.status],i,o,a,c].filter(Boolean).join(`
`);return`<details>
<summary>${s}</summary>
${A}
</details>`}function OAe(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function A$e(t){return OAe(t)?`<table>
</details>`}function VAe(t){return t.some(e=>e.restoredSize||e.restoredTime||e.savedSize||e.savedTime)}function y$e(t){return VAe(t)?`<table>
<tr><td></td><th>Count</th><th>Total Size (Mb)</th><th>Total Time (ms)</th></tr>
<tr><td>Entries Restored</td>
<td>${_Ae(t,e=>e.restoredSize)}</td>
<td>${uT(t,e=>e.restoredSize)}</td>
<td>${FAe(t,e=>e.restoredTime)}</td>
<td>${PAe(t,e=>e.restoredSize)}</td>
<td>${dT(t,e=>e.restoredSize)}</td>
<td>${OAe(t,e=>e.restoredTime)}</td>
</tr>
<tr><td>Entries Saved</td>
<td>${_Ae(t,e=>e.savedSize)}</td>
<td>${uT(t,e=>e.savedSize)}</td>
<td>${FAe(t,e=>e.savedTime)}</td>
<td>${PAe(t,e=>e.savedSize)}</td>
<td>${dT(t,e=>e.savedSize)}</td>
<td>${OAe(t,e=>e.savedTime)}</td>
</tr>
</table>`:""}function u$e(t){return t.map(e=>`Entry: ${e.entryName}
</table>`:""}function B$e(t){return t.map(e=>`Entry: ${e.entryName}
Requested Key : ${e.requestedKey??""}
Restored Key : ${e.restoredKey??""}
Size: ${MAe(e.restoredSize)}
Time: ${LAe(e.restoredTime)}
Size: ${HAe(e.restoredSize)}
Time: ${GAe(e.restoredTime)}
${e.restoredOutcome}
Saved Key : ${e.savedKey??""}
Size: ${MAe(e.savedSize)}
Time: ${LAe(e.savedTime)}
Size: ${HAe(e.savedSize)}
Time: ${GAe(e.savedTime)}
${e.savedOutcome}
`).join(`---
`)}function _Ae(t,e){return t.filter(r=>e(r)).length}function uT(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function FAe(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function MAe(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function LAe(t){return t===void 0||t===0?"":`${t} ms`}import*as nb from"path";import*as Pm from"fs";function XO(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as pT from"path";import*as Lm from"path";import Af from"assert";var Jl=process.platform==="win32";function Cu(t){if(t=Eu(t),Jl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Lm.dirname(t);return Jl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Eu(e)),e}function lT(t,e){if(Af(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Af(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),wy(e))return e;if(Jl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Fa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Af(wy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Jl&&t.endsWith("\\")||(t+=Lm.sep),t+e}function wy(t){return Af(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Fa(t),Jl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Sy(t){return Af(t,"isRooted parameter 'itemPath' must not be empty"),t=Fa(t),Jl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Fa(t){return t=t||"",Jl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Eu(t){return t?(t=Fa(t),!t.endsWith(Lm.sep)||t===Lm.sep||Jl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ma;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ma||(Ma={}));var HAe=process.platform==="win32";function e3(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=HAe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Cu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Cu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function GAe(t,e){let r=Ma.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function qAe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as uue from"os";import*as Um from"path";var lue=pe(Aue(),1);import hf from"assert";import*as lf from"path";import xy from"assert";var M$e=process.platform==="win32",df=class{constructor(e){if(this.segments=[],typeof e=="string")if(xy(e,"Parameter 'itemPath' must not be empty"),e=Eu(e),!Sy(e))this.segments=e.split(lf.sep);else{let r=e,n=Cu(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Cu(r)}this.segments.unshift(r)}else{xy(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];xy(n,"Parameter 'itemPath' must not contain any empty segments"),n=Fa(e[r]),r===0&&Sy(n)?(n=Eu(n),xy(n===Cu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(xy(!n.includes(lf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lf.sep)||M$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lf.sep,e+=this.segments[n];return e}};var{Minimatch:L$e}=lue.default,Iu=process.platform==="win32",Ry=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],hf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);hf(A&&wy(A),"Parameter 'segments' first element must be a root path"),i=new df(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s Line truncated
`)}function PAe(t,e){return t.filter(r=>e(r)).length}function dT(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function OAe(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function HAe(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function GAe(t){return t===void 0||t===0?"":`${t} ms`}import*as sb from"path";import*as Om from"fs";function t3(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as ET from"path";import*as Um from"path";import Af from"assert";var Jl=process.platform==="win32";function Cu(t){if(t=Eu(t),Jl&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=Um.dirname(t);return Jl&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Eu(e)),e}function hT(t,e){if(Af(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Af(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),Sy(e))return e;if(Jl){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(Fa(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Af(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Af(Sy(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||Jl&&t.endsWith("\\")||(t+=Um.sep),t+e}function Sy(t){return Af(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=Fa(t),Jl?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function Ny(t){return Af(t,"isRooted parameter 'itemPath' must not be empty"),t=Fa(t),Jl?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function Fa(t){return t=t||"",Jl?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Eu(t){return t?(t=Fa(t),!t.endsWith(Um.sep)||t===Um.sep||Jl&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var Ma;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(Ma||(Ma={}));var WAe=process.platform==="win32";function n3(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=WAe?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=WAe?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=Cu(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=Cu(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function JAe(t,e){let r=Ma.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function zAe(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as gue from"os";import*as Pm from"path";var pue=pe(fue(),1);import hf from"assert";import*as lf from"path";import Ry from"assert";var z$e=process.platform==="win32",df=class{constructor(e){if(this.segments=[],typeof e=="string")if(Ry(e,"Parameter 'itemPath' must not be empty"),e=Eu(e),!Ny(e))this.segments=e.split(lf.sep);else{let r=e,n=Cu(r);for(;n!==r;){let s=lf.basename(r);this.segments.unshift(s),r=n,n=Cu(r)}this.segments.unshift(r)}else{Ry(e.length>0,"Parameter 'itemPath' must not be an empty array");for(let r=0;r<e.length;r++){let n=e[r];Ry(n,"Parameter 'itemPath' must not contain any empty segments"),n=Fa(e[r]),r===0&&Ny(n)?(n=Eu(n),Ry(n===Cu(n),"Parameter 'itemPath' root segment contains information for multiple segments"),this.segments.push(n)):(Ry(!n.includes(lf.sep),"Parameter 'itemPath' contains unexpected path separators"),this.segments.push(n))}}}toString(){let e=this.segments[0],r=e.endsWith(lf.sep)||z$e&&/^[A-Z]:$/i.test(e);for(let n=1;n<this.segments.length;n++)r?r=!1:e+=lf.sep,e+=this.segments[n];return e}};var{Minimatch:j$e}=pue.default,Iu=process.platform==="win32",Dy=class t{constructor(e,r=!1,n,s){this.negate=!1;let i;if(typeof e=="string")i=e.trim();else{n=n||[],hf(n.length,"Parameter 'segments' must not empty");let A=t.getLiteral(n[0]);hf(A&&Sy(A),"Parameter 'segments' first element must be a root path"),i=new df(n).toString().trim(),e&&(i=`!${i}`)}for(;i.s 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 Ry(i));return n.searchPaths.push(...e3(n.patterns)),n})}static stat(e,r,n){return o3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Pm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Pm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Pm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var H$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 due(t,e){return H$e(this,void 0,void 0,function*(){return yield gT.create(t,e)})}var ide=pe(nde(),1);import*as kT from"crypto";import*as qm from"fs";import*as ff from"path";import*as ode from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));var ks;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ks||(ks={}));var Gi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gi||(Gi={}));var xT=2,RT=5e3,N3=5e3,T3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,sde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",x3="manifest.txt",nKt=10*Math.pow(1024,3),DT="cache read denied:";var Gm=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())})},Xet=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)}},Zet="1.0";function Py(){return Gm(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=ff.join(n,"actions","temp")}let r=ff.join(e,kT.randomUUID());return yield jN(r),r})}function Rc(t){return qm.statSync(t).size}function R3(t){return Gm(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 due(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=Xet(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=ff.relative(a,s).replace(new RegExp(`\\${ff.sep}`,"g"),"/");q(`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 Oy(t){return Gm(this,void 0,void 0,function*(){return ode.promisify(qm.unlink)(t)})}function ade(t){return Gm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield XN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function Hy(){return Gm(this,void 0,void 0,function*(){let t=yield ade("zstd",["--quiet"]),e=ide.clean(t);return q(`zstd version: ${e}`),t===""?ks.Gzip:ks.ZstdWithoutLong})}function $l(t){return t===ks.Gzip?Ly.Gzip:Ly.Zstd}function cde(){return Gm(this,void 0,void 0,function*(){return qm.existsSync(T3)?T3:(yield ade("tar")).toLowerCase().includes("gnu tar")?gu("tar"):""})}function D3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ym(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Zet),kT.createHash("sha256").update(n.join("|")).digest("hex")}function Ade(){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 I0 from"fs";import{URL as Mct}from"url";var Dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as ett}from"node:os";import ttt from"node:util";import rtt from"node:process";function ude(t,...e){rtt.stderr.write(`${ttt.format(t,...e)}${ett}`)}import Gy from"node:process";function _T(t){return Gy.env[t]}var lde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,dde=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,FT=!0;var hde=_T("DEBUG"),gde,k3=[],v3=[],MT=[];hde&&_3(hde);var pde=Object.assign(t=>mde(t),{enable:_3,enabled:F3,disable:ntt,log:ude});function _3(t){gde=t,k3=[],v3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?v3.push(r.substring(1)):k3.push(r);for(let r of MT)r.enabled=F3(r.namespace)}function F3(t){if(t.endsWith("*"))return!0;for(let e of v3)if(fde(t,e))return!1;for(let e of k3)if(fde(t,e))return!0;return!1}function fde(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 ntt(){let t=gde||"";return _3(""),t}function mde(t){let e=Object.assign(r,{enabled:F3(t),destroy:stt,log:pde.log,namespace:t,extend:itt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return MT.push(e),e}function stt(){let t=MT.indexOf(this);return t>=0?(MT.splice(t,1),!0):!1}function itt(t){let e=mde(`${this.namespace}:${t}`);return e.log=this.log,e}var Vm=pde;var M3=["verbose","info","warning","error"],Ede={verbose:400,info:300,warning:200,error:100};function Cde(t,e){e.log=(...r)=>{t.log(...r)}}function Ide(t){return M3.includes(t)}function LT(t){let e=new Set,r=_T(t.logLevelEnvVarName),n,s=Vm(t.namespace);s.log=(...u)=>{Vm.log(...u)};function i(u){if(u&&!Ide(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${M3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Vm.enable(l.join(","))}r&&(Ide(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${M3.join(", ")}.`));function o(u){return!!(n&&Ede[u.level]<=Ede[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cde(u,d),o(d)){let h=Vm.disable();Vm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cde(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 yde=LT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),ott=yde.logger;function qy(t){return yde.createClientLogger(t)}function UT(t){return t.toLowerCase()}function att(t){return String(t).trim().replace(/[\r\n]/g,"")}function*ctt(t){for(let e of t.values())yield[e.name,e.value]}var L3=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(UT(e),{name:e,value:att(r)})}get(e){return this._headersMap.get(UT(e))?.value}has(e){return this._ Line truncated
${dtt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Wm(t){return t instanceof vs?!0:pf(t)&&t.name==="RestError"}function si(t,e){return Buffer.from(t,e)}import H3 from"node:http";import G3 from"node:https";import Qde from"node:zlib";import{Transform as htt}from"node:stream";var ii=qy("ts-http-runtime");var ftt={};function Yy(t){return t&&typeof t.pipe=="function"}function wde(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 Sde(t){return t&&typeof t.byteLength=="number"}var HT=class extends htt{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}},q3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Dc("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 La;ii.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=Ett(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new HT(f);g.on("error",E=>{ii.error("Error in upload progress",E)}),Yy(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=gtt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?ptt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new HT(h);f.on("error",g=>{ii.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 mtt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=wde(a));let u=Promise.resolve();Yy(c)&&(u=wde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ii.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?H3.request(a,c):G3.request(a,c);u.once("error",l=>{A(new vs(l.message,{code:l.code??vs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Dc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Yy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Sde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ii.error("Unrecognized body type",n),A(new vs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?H3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new H3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return G3.globalAgent;let s=e.tlsSettings??ftt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ii.info("No cached TLS Agent exist, creating a new Agent"),i=new G3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function gtt(t){let e=qi();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 ptt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Qde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Qde.createInflate();return t.pipe(n),n}return t}function mtt(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 vs(`Error reading response as text: ${s.message}`,{code:vs.PARSE_ERROR}))})})}function Ett(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:Sde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Nde(){return new q3}function GT(){return Nde()}var Y3="logPolicy";function qT(t={}){let e=t.logger??ii.info,r=new La({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:Y3,asy Line truncated
`;return e}function Prt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Ort(t){let e=0;for(let r of t){let n=Prt(r);if(n===void 0)return;e+=n}return e}async function Hrt(t,e,r){let n=[si(`--${r}`,"utf-8"),...e.flatMap(i=>[si(`\r
`,"utf-8"),si(Urt(i.headers),"utf-8"),si(`\r
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new Dy(i));return n.searchPaths.push(...n3(n.patterns)),n})}static stat(e,r,n){return A3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Om.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Om.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Om.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var Z$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 mue(t,e){return Z$e(this,void 0,void 0,function*(){return yield mT.create(t,e)})}var ude=pe(cde(),1);import*as _T from"crypto";import*as Ym from"fs";import*as ff from"path";import*as lde from"util";var Uy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Uy||(Uy={}));var ks;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(ks||(ks={}));var Gi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Gi||(Gi={}));var DT=2,kT=5e3,R3=5e3,D3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,Ade=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Py="cache.tar",k3="manifest.txt",CKt=10*Math.pow(1024,3),vT="cache read denied:";var qm=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())})},utt=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)}},ltt="1.0";function Oy(){return qm(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=ff.join(n,"actions","temp")}let r=ff.join(e,_T.randomUUID());return yield KN(r),r})}function Rc(t){return Ym.statSync(t).size}function v3(t){return qm(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 mue(t.join(`
`),{implicitDescendants:!1});try{for(var A=!0,u=utt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=ff.relative(a,s).replace(new RegExp(`\\${ff.sep}`,"g"),"/");q(`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 Hy(t){return qm(this,void 0,void 0,function*(){return lde.promisify(Ym.unlink)(t)})}function dde(t){return qm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),q(`Checking ${e} ${r.join(" ")}`);try{yield ZN(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){q(s.message)}return n=n.trim(),q(n),n})}function Gy(){return qm(this,void 0,void 0,function*(){let t=yield dde("zstd",["--quiet"]),e=ude.clean(t);return q(`zstd version: ${e}`),t===""?ks.Gzip:ks.ZstdWithoutLong})}function $l(t){return t===ks.Gzip?Uy.Gzip:Uy.Zstd}function hde(){return qm(this,void 0,void 0,function*(){return Ym.existsSync(D3)?D3:(yield dde("tar")).toLowerCase().includes("gnu tar")?gu("tar"):""})}function _3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Vm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ltt),_T.createHash("sha256").update(n.join("|")).digest("hex")}function fde(){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 y0 from"fs";import{URL as zct}from"url";var Dc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as dtt}from"node:os";import htt from"node:util";import ftt from"node:process";function gde(t,...e){ftt.stderr.write(`${htt.format(t,...e)}${dtt}`)}import qy from"node:process";function MT(t){return qy.env[t]}var pde=typeof qy.versions.deno=="string"&&qy.versions.deno.length>0,mde=typeof qy.versions.bun=="string"&&qy.versions.bun.length>0,LT=!0;var Ede=MT("DEBUG"),Ide,F3=[],M3=[],UT=[];Ede&&L3(Ede);var yde=Object.assign(t=>Bde(t),{enable:L3,enabled:U3,disable:gtt,log:gde});function L3(t){Ide=t,F3=[],M3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?M3.push(r.substring(1)):F3.push(r);for(let r of UT)r.enabled=U3(r.namespace)}function U3(t){if(t.endsWith("*"))return!0;for(let e of M3)if(Cde(t,e))return!1;for(let e of F3)if(Cde(t,e))return!0;return!1}function Cde(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 gtt(){let t=Ide||"";return L3(""),t}function Bde(t){let e=Object.assign(r,{enabled:U3(t),destroy:ptt,log:yde.log,namespace:t,extend:mtt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return UT.push(e),e}function ptt(){let t=UT.indexOf(this);return t>=0?(UT.splice(t,1),!0):!1}function mtt(t){let e=Bde(`${this.namespace}:${t}`);return e.log=this.log,e}var Wm=yde;var P3=["verbose","info","warning","error"],bde={verbose:400,info:300,warning:200,error:100};function Qde(t,e){e.log=(...r)=>{t.log(...r)}}function wde(t){return P3.includes(t)}function PT(t){let e=new Set,r=MT(t.logLevelEnvVarName),n,s=Wm(t.namespace);s.log=(...u)=>{Wm.log(...u)};function i(u){if(u&&!wde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${P3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Wm.enable(l.join(","))}r&&(wde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${P3.join(", ")}.`));function o(u){return!!(n&&bde[u.level]<=bde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Qde(u,d),o(d)){let h=Wm.disable();Wm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Qde(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 Sde=PT({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Ett=Sde.logger;function Yy(t){return Sde.createClientLogger(t)}function OT(t){return t.toLowerCase()}function Ctt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Itt(t){for(let e of t.values())yield[e.name,e.value]}var O3=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(OT(e),{name:e,value:Ctt(r)})}get(e){return this._headersMap.get(OT(e))?.value}has(e){return this._ Line truncated
${Qtt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Jm(t){return t instanceof vs?!0:pf(t)&&t.name==="RestError"}function si(t,e){return Buffer.from(t,e)}import Y3 from"node:http";import V3 from"node:https";import xde from"node:zlib";import{Transform as wtt}from"node:stream";var ii=Yy("ts-http-runtime");var Stt={};function Vy(t){return t&&typeof t.pipe=="function"}function Rde(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 Dde(t){return t&&typeof t.byteLength=="number"}var qT=class extends wtt{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}},W3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Dc("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 La;ii.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=Rtt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,g=new qT(f);g.on("error",E=>{ii.error("Error in upload progress",E)}),Vy(a)?a.pipe(g):g.end(a),a=g}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=Ntt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Ttt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new qT(h);f.on("error",g=>{ii.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 xtt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Vy(a)&&(A=Rde(a));let u=Promise.resolve();Vy(c)&&(u=Rde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{ii.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?Y3.request(a,c):V3.request(a,c);u.once("error",l=>{A(new vs(l.message,{code:l.code??vs.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Dc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Vy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):Dde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(ii.error("Unrecognized body type",n),A(new vs("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?Y3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new Y3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return V3.globalAgent;let s=e.tlsSettings??Stt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(ii.info("No cached TLS Agent exist, creating a new Agent"),i=new V3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Ntt(t){let e=qi();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 Ttt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=xde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=xde.createInflate();return t.pipe(n),n}return t}function xtt(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 vs(`Error reading response as text: ${s.message}`,{code:vs.PARSE_ERROR}))})})}function Rtt(t){return t?Buffer.isBuffer(t)?t.length:Vy(t)?null:Dde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function kde(){return new W3}function YT(){return kde()}var J3="logPolicy";function VT(t={}){let e=t.logger??ii.info,r=new La({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:J3,asy Line truncated
`;return e}function $rt(t){return t instanceof Uint8Array?t.byteLength:zy(t)?t.size===-1?void 0:t.size:void 0}function Xrt(t){let e=0;for(let r of t){let n=$rt(r);if(n===void 0)return;e+=n}return e}async function Zrt(t,e,r){let n=[si(`--${r}`,"utf-8"),...e.flatMap(i=>[si(`\r
`,"utf-8"),si(Krt(i.headers),"utf-8"),si(`\r
`,"utf-8"),i.body,si(`\r
--${r}`,"utf-8")]),si(`--\r
\r
`,"utf-8")],s=Ort(n);s&&t.headers.set("Content-Length",s),t.body=await Che(n)}var zy="multipartPolicy",Grt=70,qrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Yrt(t){if(t.length>Grt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!qrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function lx(){return{name:zy,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?Yrt(r):r=Lrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Hrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function dx(){return OT()}var Ihe=LT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),ier=Ihe.logger;function _o(t){return Ihe.createClientLogger(t)}var vc=_o("core-rest-pipeline");function c8(t={}){return qT({logger:vc.info,...t})}var A8=Ax;function u8(t={}){return ux(t)}import l8 from"node:os";import ed from"node:process";function yhe(){return"User-Agent"}async function Bhe(t){if(ed&&ed.versions){let e=`${l8.type()} ${l8.release()}; ${l8.arch()}`;ed.versions.bun?t.set("Bun",`${ed.versions.bun} (${e})`):ed.versions.deno?t.set("Deno",`${ed.versions.deno} (${e})`):ed.versions.node&&t.set("Node",`${ed.versions.node} (${e})`)}}var hx="1.24.0";function Xrt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function bhe(){return yhe()}async function fx(t){let e=new Map;e.set("core-rest-pipeline",hx),await Bhe(e);let r=Xrt(e);return t?`${t} ${r}`:r}var Qhe=bhe(),whe="userAgentPolicy";function d8(t={}){let e=fx(t.userAgentPrefix);return{name:whe,async sendRequest(r,n){return r.headers.has(Qhe)||r.headers.set(Qhe,await e),n(r)}}}var She=Symbol("rawContent");function h8(t){return typeof t[She]=="function"}function Nhe(t){return h8(t)?t[She]():t}var gx=zy;function f8(){let t=lx();return{name:gx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)h8(n.body)&&(n.body=Nhe(n.body));return t.sendRequest(e,r)}}}var g8=ax;function p8(){return cx()}function m8(t={}){return WT(t)}function E8(){return JT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function C8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new jy(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 ant="The delay was aborted.";function Xm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return C8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??ant})}function td(t){if(pf(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 The(t){return pf(t)}function Zm(){return gf()}var Jt=FT;function rd(t){return s8(t)}function y8(t,e){return ox(t,e)}var xhe="setClientRequestIdPolicy";function B8(t="x-ms-client-request-id"){return{name:xhe,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function b8(t){return zT(t)}function Q8(t){return jT(t)}var e0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Rhe(t={}){let e=new w8(t.parentContext);return t.span&&(e=e.setValue(e0.span,t.span)),t.namespace&&(e=e.setValue(e0.namespace,t.namespace)),e}var w8=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 khe=pe(Dhe(),1),mx=khe.state;function cnt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function Ant(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:cnt(),tracingContext:Rhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function Ky(){return mx.instrumenterImplementation||(mx.instrumenterImplementation=Ant()),mx.instrumenterImplementation}function $y(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=Ky().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--),!Dst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",en("InvalidTag",l,_s(t,i))}let A=Sst(t,i);if(A===!1)return en("InvalidAttr","Attributes for '"+c+"' have open quote.",_s(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=hfe(u,e);if(d===!0)n=!0;else return en(d.err.code,d.err.msg,_s(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return en("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",_s(t,o));if(r.length===0)return en("InvalidTag","Closing tag '"+c+"' has not been opened.",_s(t,o));{let l=r.pop();if(c!==l.tagName){let d=_s(t,l.tagStartPos);return en("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",_s(t,o))}r.length==0&&(s=!0)}}else return en("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",_s(t,i));else{let l=hfe(u,e);if(l!==!0)return en(l.err.code,l.err.msg,_s(t,i-u.length+l.err.line));if(s===!0)return en("InvalidXml","Multiple possible root nodes found.",_s(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=dfe(t,i);continue}else if(t[i+1]==="?"){if(i=lfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=xst(t,i);if(l==-1)return en("InvalidChar","char '&' is not expected.",_s(t,i));i=l}else if(s===!0&&!ufe(t[i]))return en("InvalidXml","Extra text at the end",_s(t,i));t[i]==="<"&&i--}}else{if(ufe(t[i]))continue;return en("InvalidChar","char '"+t[i]+"' is not expected.",_s(t,i))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_s(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}function ufe(t){return t===" "||t===" "||t===`
`||t==="\r"}function lfe(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 en("InvalidXml","XML declaration allowed only at the start of the document.",_s(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function dfe(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 Qst='"',wst="'";function Sst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Qst||t[e]===wst)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 Nst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function hfe(t,e){let r=Sx(t,Nst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return en("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",aB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return en("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",aB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",aB(r[s]));let i=r[s][2];if(!Rst(i))return en("InvalidAttr","Attribute '"+i+"' is an invalid name.",aB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return en("InvalidAttr","Attribute '"+i+"' is repeated.",aB(r[s]))}return!0}function Tst(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 xst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Tst(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 en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Rst(t){return q8(t)}function Dst(t){return q8(t)}function _s(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function aB(t){return t.startIndex+t[1].length}var ffe={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"},gfe={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"},pfe={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 Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new uB(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=o0(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=$8(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=X8(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 Ai(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=o0(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=o0(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=X8(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}=$8(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=nit(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=rit(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 Ai(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}=$8(s.transformTagName,l,h,s));let V=new Ai(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 Ai(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 Ai(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 Ait(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 uit(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 lit(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 dit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function hit(t,e,r=">"){Line truncated
`;function yit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(s4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Gfe(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function n4(t,e){let r="";e.format&&(r=Iit);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 Ji(a)):a instanceof Ji&&n.push(a)}let s=yit(t,e),i=new Mc;return qfe(t,e,r,i,n,s)}function qfe(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=s4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Gfe(u,!1,e,n,i),h=Bit(A[":@"],e);n.push(d,h);let f=Qit(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=Lx(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Mx(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Hfe(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=Hfe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=Yfe(A[u],e):I=qfe(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 Bit(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]=id(t[s]),n=!0}return n?r:null}function Yfe(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=s4(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=bit(s[":@"],e),a=Yfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function bit(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)}="${id(s)}"`}return r}function s4(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 Hfe(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:Gfe(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}="${id(A)}"`}return i}function Qit(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 i4(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 wit={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 li(t){if(this.options=Object.assign({},wit,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 Ji(r)):r instanceof Ji&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignorLine truncated
`,"utf-8")],s=Xrt(n);s&&t.headers.set("Content-Length",s),t.body=await Qhe(n)}var jy="multipartPolicy",ent=70,tnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function rnt(t){if(t.length>ent)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!tnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function hx(){return{name:jy,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?rnt(r):r=jrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Zrt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function fx(){return GT()}var whe=PT({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),yer=whe.logger;function _o(t){return whe.createClientLogger(t)}var vc=_o("core-rest-pipeline");function l8(t={}){return VT({logger:vc.info,...t})}var d8=lx;function h8(t={}){return dx(t)}import f8 from"node:os";import ed from"node:process";function She(){return"User-Agent"}async function Nhe(t){if(ed&&ed.versions){let e=`${f8.type()} ${f8.release()}; ${f8.arch()}`;ed.versions.bun?t.set("Bun",`${ed.versions.bun} (${e})`):ed.versions.deno?t.set("Deno",`${ed.versions.deno} (${e})`):ed.versions.node&&t.set("Node",`${ed.versions.node} (${e})`)}}var gx="1.24.0";function unt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function The(){return She()}async function px(t){let e=new Map;e.set("core-rest-pipeline",gx),await Nhe(e);let r=unt(e);return t?`${t} ${r}`:r}var xhe=The(),Rhe="userAgentPolicy";function g8(t={}){let e=px(t.userAgentPrefix);return{name:Rhe,async sendRequest(r,n){return r.headers.has(xhe)||r.headers.set(xhe,await e),n(r)}}}var Dhe=Symbol("rawContent");function p8(t){return typeof t[Dhe]=="function"}function khe(t){return p8(t)?t[Dhe]():t}var mx=jy;function m8(){let t=hx();return{name:mx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)p8(n.body)&&(n.body=khe(n.body));return t.sendRequest(e,r)}}}var E8=Ax;function C8(){return ux()}function I8(t={}){return zT(t)}function y8(){return jT()}var Ky=class extends Error{constructor(e){super(e),this.name="AbortError"}};function B8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Ky(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 Cnt="The delay was aborted.";function Zm(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return B8(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Cnt})}function td(t){if(pf(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 vhe(t){return pf(t)}function e0(){return gf()}var Jt=LT;function rd(t){return a8(t)}function Q8(t,e){return cx(t,e)}var _he="setClientRequestIdPolicy";function w8(t="x-ms-client-request-id"){return{name:_he,async sendRequest(e,r){return e.headers.has(t)||e.headers.set(t,e.requestId),r(e)}}}function S8(t){return KT(t)}function N8(t){return $T(t)}var t0={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function Fhe(t={}){let e=new T8(t.parentContext);return t.span&&(e=e.setValue(t0.span,t.span)),t.namespace&&(e=e.setValue(t0.namespace,t.namespace)),e}var T8=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 Lhe=pe(Mhe(),1),Cx=Lhe.state;function Int(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function ynt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:Int(),tracingContext:Fhe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function $y(){return Cx.instrumenterImplementation||(Cx.instrumenterImplementation=ynt()),Cx.instrumenterImplementation}function Xy(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=$y().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--),!qst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",en("InvalidTag",l,_s(t,i))}let A=Ust(t,i);if(A===!1)return en("InvalidAttr","Attributes for '"+c+"' have open quote.",_s(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=Efe(u,e);if(d===!0)n=!0;else return en(d.err.code,d.err.msg,_s(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return en("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",_s(t,o));if(r.length===0)return en("InvalidTag","Closing tag '"+c+"' has not been opened.",_s(t,o));{let l=r.pop();if(c!==l.tagName){let d=_s(t,l.tagStartPos);return en("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",_s(t,o))}r.length==0&&(s=!0)}}else return en("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",_s(t,i));else{let l=Efe(u,e);if(l!==!0)return en(l.err.code,l.err.msg,_s(t,i-u.length+l.err.line));if(s===!0)return en("InvalidXml","Multiple possible root nodes found.",_s(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=mfe(t,i);continue}else if(t[i+1]==="?"){if(i=pfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Hst(t,i);if(l==-1)return en("InvalidChar","char '&' is not expected.",_s(t,i));i=l}else if(s===!0&&!gfe(t[i]))return en("InvalidXml","Extra text at the end",_s(t,i));t[i]==="<"&&i--}}else{if(gfe(t[i]))continue;return en("InvalidChar","char '"+t[i]+"' is not expected.",_s(t,i))}if(n){if(r.length==1)return en("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",_s(t,r[0].tagStartPos));if(r.length>0)return en("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return en("InvalidXml","Start tag expected.",1);return!0}function gfe(t){return t===" "||t===" "||t===`
`||t==="\r"}function pfe(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 en("InvalidXml","XML declaration allowed only at the start of the document.",_s(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function mfe(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 Mst='"',Lst="'";function Ust(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Mst||t[e]===Lst)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 Pst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Efe(t,e){let r=Tx(t,Pst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return en("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",cB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return en("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",cB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return en("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",cB(r[s]));let i=r[s][2];if(!Gst(i))return en("InvalidAttr","Attribute '"+i+"' is an invalid name.",cB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return en("InvalidAttr","Attribute '"+i+"' is repeated.",cB(r[s]))}return!0}function Ost(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 Hst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Ost(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 en(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Gst(t){return W8(t)}function qst(t){return W8(t)}function _s(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function cB(t){return t.startIndex+t[1].length}var Cfe={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"},Ife={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"},yfe={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 Ai("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=this.options,i=new lB(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=a0(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=e4(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 Ai(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=a0(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=a0(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}=e4(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=git(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(I=this.buildAttributesMap(h,this.matcher,l),I&&(y=fit(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 Ai(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}=e4(s.transformTagName,l,h,s));let V=new Ai(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 Ai(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 Ai(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 yit(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 Bit(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 bit(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 Qit(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function wit(t,e,r=">"){Line truncated
`;function vit(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(a4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function Jfe(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function o4(t,e){let r="";e.format&&(r=kit);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 Ji(a)):a instanceof Ji&&n.push(a)}let s=vit(t,e),i=new Mc;return zfe(t,e,r,i,n,s)}function zfe(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=i4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=a4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:Jfe(u,!1,e,n,i),h=_it(A[":@"],e);n.push(d,h);let f=Mit(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=i4(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=Px(y);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],B=Ux(y);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=Wfe(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=Wfe(A[":@"],e,f,n,i),m=r+`<${d}${E}`,I;f?I=jfe(A[u],e):I=zfe(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 _it(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]=id(t[s]),n=!0}return n?r:null}function jfe(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=a4(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=Fit(s[":@"],e),a=jfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function Fit(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)}="${id(s)}"`}return r}function a4(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 Wfe(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:Jfe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=i4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${id(A)}"`}return i}function Mit(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 i4(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 c4(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 Lit={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 li(t){if(this.options=Object.assign({},Lit,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 Ji(r)):r instanceof Ji&&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 Sit(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 o4(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}li.prototype.build=function(t){if(this.options.preserveOrder)return n4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mc,r=Sit(t,this.options);return this.j2x(t,0,e,r).val}};li.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:o4(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=o4(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=o4(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}};li.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+'="'+id(e)+'"'};function Nit(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)}li.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]=id(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]=id(t[n]),r=!0)}return r?e:null};li.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 Uit(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 A4(t,e,r,n,s){return!r.sanitizeName||bf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}li.prototype.build=function(t){if(this.options.preserveOrder)return o4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Mc,r=Uit(t,this.options);return this.j2x(t,0,e,r).val}};li.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:A4(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=A4(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=A4(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}};li.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+'="'+id(e)+'"'};function Pit(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)}li.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]=id(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]=id(t[n]),r=!0)}return r?e:null};li.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)=>zx(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=Vx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Wx(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 Ur=class extends Sf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new gB(e,r,this)}computeHMACSHA256(e){return Pit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var In=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var ad={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Oit=new Nf("The operation was aborted."),pB=class extends Lc{retryOptions;constructor(e,r,n=ad){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ad.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ad.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ad.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ad.maxRetryDelayInMs):ad.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ad.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ad.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=Yx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=od(s.url,Qu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(In.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(In.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 In.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 In.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 In.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return In.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')?(In.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return In.info(`RetryPolicy: Delay for ${s}ms`),Jx(s,n,Oit)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Hit="storageBrowserPolicy";function jfe(){return{name:Hit,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=od(t.url,Qu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var Git="StorageCorrectContentLengthPolicy";function Kfe(){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:Git,async sendRequest(e,r){return t(e),r(e)}}}var qit="storageRetryPolicy",c0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Yit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Vit=new Nf("The operation was aborted.");function $fe(t={}){let e=t.retryPolicyType??c0.retryPolicyType,r=t.maxTries??c0.maxTries,n=t.retryDelayInMs??c0.retryDelayInMs,s=t.maxRetryDelayInMs??c0.maxRetryDelayInMs,i=t.secondaryHost??c0.secondaryHost,o=t.tryTimeoutInMs??c0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return In.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Yit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set($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)=>Kx(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=Jx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=zx(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 Ur=class extends Sf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new pB(e,r,this)}computeHMACSHA256(e){return $it("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Nf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var In=_o("storage-common");var Fo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Fo||(Fo={}));var ad={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Xit=new Nf("The operation was aborted."),mB=class extends Lc{retryOptions;constructor(e,r,n=ad){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ad.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ad.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ad.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ad.maxRetryDelayInMs):ad.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ad.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ad.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=Wx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=od(s.url,Qu.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(In.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(In.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 In.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 In.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 In.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return In.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')?(In.info("RetryPolicy: Incomplete XML response likely due to service timeout, will retry."),!0):!1}async delay(e,r,n){let s=0;if(e)switch(this.retryOptions.retryPolicyType){case Fo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Fo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return In.info(`RetryPolicy: Delay for ${s}ms`),jx(s,n,Xit)}};var EB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new mB(e,r,this.retryOptions)}};var Zit="storageBrowserPolicy";function ege(){return{name:Zit,async sendRequest(t,e){return Jt||((t.method==="GET"||t.method==="HEAD")&&(t.url=od(t.url,Qu.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete($e.COOKIE),t.headers.delete($e.CONTENT_LENGTH)),e(t)}}}var eot="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:eot,async sendRequest(e,r){return t(e),r(e)}}}var tot="storageRetryPolicy",A0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Fo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},rot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],not=new Nf("The operation was aborted.");function rge(t={}){let e=t.retryPolicyType??A0.retryPolicyType,r=t.maxTries??A0.maxTries,n=t.retryDelayInMs??A0.retryDelayInMs,s=t.maxRetryDelayInMs??A0.maxRetryDelayInMs,i=t.secondaryHost??A0.secondaryHost,o=t.tryTimeoutInMs??A0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return In.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of rot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in Line truncated
`)+`
`+n(i)+s(i),a=Wit("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)=>zx(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=Vx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Wx(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:Jit,async sendRequest(i,o){return e(i),o(i)}}}var zit="storageRequestFailureDetailsParserPolicy";function Xfe(){return{name:zit,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 jit}from"node:crypto";var jx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return jit("sha256",this.key).update(e,"utf8").digest("base64")}};var Kx="12.31.0",$x="2026-02-06";var Xx="https://storage.azure.com/.default",wu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ua="",d4="*",Kit=1*1024*1024;var $it=4*Kit;var Zfe="AES256",ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",tge=["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"],rge=["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"],nge="BlobUsesCustomerSpecifiedEncryption",sge="BlobDoesNotUseCustomerSpecifiedEncryption",ige=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Su(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var EB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new Sr);let r=new EB([],e);return r._credential=t,r}function Xit(t){let e=[Zit,oge,eot,tot,rot,not,iot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>sot(s));return{wrappedPolicies:H8(r),afterRetry:n}}}}function h4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?G8(e):u4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Kx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eB({...r,loggingOptions:{additionalAllowedHeaderNames:tge,additionalAllowedQueryParameters:rge,logger:Px.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ux,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:c4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:g8}),s.addPolicy(Kfe()),s.addPolicy($fe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Xfe()),s.addPolicy(jfe());let a=Xit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=f4(t);Vi(c)?s.addPolicy(t0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new qa(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 Zat(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 ect(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 tct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 rct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 nct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 sct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 Ff(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Mf(t){let e=t.version?t.version:$x;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 RB=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=Zm()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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"}};E0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pf=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"}};Pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Nct=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())})},HH=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);re(`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 Cpe(t,e,r){return Nct(this,void 0,void 0,function*(){var n;let s=new Ya(t),i=s.getBlockBlobClient(),o=new HH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new WR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ke(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as ype from"buffer";import*as rA from"fs";import*as Bpe from"stream";import*as bpe from"util";var JR=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 zR(t){return t?t>=200&&t<300:!1}function Tct(t){return t?t>=500:!0}function xct(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Rct(t){return JR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Ipe(t,e,r){return JR(this,arguments,void 0,function*(n,s,i,o=xT,a=RT,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),!Tct(d)))return l;if(d&&(h=xct(d),A=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){q(`${n} - Error is not retryable`);break}yield Rct(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return JR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield Ipe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function C0(t,e){return JR(this,arguments,void 0,function*(r,n,s=xT,i=RT){return yield Ipe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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 Dct(t,e){return Oo(this,void 0,void 0,function*(){yield bpe.promisify(Bpe.pipeline)(t.message,e)})}var jR=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function WH(t,e,r){return hi(this,void 0,void 0,function*(){let n=new Mct(t),s=Npe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield wpe(t,e,s):s.concurrentBlobDownloads?yield Qpe(t,e,s):yield KR(t,e):yield KR(t,e)})}function Lpe(t,e,r){return hi(this,void 0,void 0,function*(){let n=VH(),s=Ym(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>hi(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Fpe(t,e){return`bytes ${t}-${e}/*`}function Oct(t,e,r,n,s){return hi(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Fpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Fpe(n,s)},o=yield C0(`uploadChunk (start: ${n}, end: ${s})`,()=>hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!zR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Hct(t,e,r,n){return hi(this,void 0,void 0,function*(){let s=Rc(r),i=HB(`caches/${e.toString()}`),o=I0.openSync(r,"r"),a=GH(n),c=D3("uploadConcurrency",a.uploadConcurrency),A=D3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>hi(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 Oct(t,i,()=>I0.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{I0.closeSync(o)}})}function Gct(t,e,r){return hi(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>hi(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function JH(t,e,r,n){return hi(this,void 0,void 0,function*(){if(GH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Cpe(r,e,n)}else{let i=VH();q("Upload cache"),yield Hct(i,t,e,n),q("Commiting cache");let o=Rc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield Gct(i,t,o);if(!zR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var Rme=pe(U9(),1),nn=pe(ct(),1),Ki=pe(ct(),1),Yf=pe(ct(),1),Vf=pe(ct(),1),Wf=pe(ct(),1);var G9=pe(ct(),1),q9=pe(ct(),1),Nme=pe(ct(),1),Tme=pe(ct(),1),xme=pe(ct(),1);var P9=pe(ct(),1),O9=pe(ct(),1),Qme=pe(ct(),1),wme=pe(ct(),1),Sme=pe(ct(),1),H9=class extends Sme.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,wme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Qme.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?O9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,P9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,P9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?O9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},LD=new H9;var Y9=class extends xme.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:()=>LD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Tme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Nme.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(LD.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?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,G9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)LD.internalBinaryWrite(e.scope[i],r.tag(2,G9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield iG(r,"create");yield oG(n,t)})}var M0=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())})},Ja=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Jf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},AG="cache write denied:",OD=class t extends Jf{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},_me=DT,HD=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},GD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Fme(t){if(!t||t.length===0)throw new Ja("Path Validation Error: At least one directory or file path is required")}function uG(t){if(t.length>512)throw new Ja(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ja(`Key Validation Error: ${t} cannot contain commas.`)}function Mme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Lme(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();q(`Cache service version: ${A}`),Fme(s);let u=YH();if(!xpe(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),q(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield ilt(s,i,o,a,c):yield slt(s,i,o,a,c)})}function slt(t,e,r,n){return M0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)uG(h);let l=yield Hy(),d="";try{let h;try{h=yield Mpe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(_me)?new HD(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=nb.join(yield Py(),$l(l)),q(`Archive Path: ${d}`),yield WH(h.archiveLocation,d,a),Vl()&&(yield rb(d,l));let f=Rc(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield aG(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ja.name)throw h;f instanceof wc&&typeof f.statusCode=="number"&&f.statusCode>=500?No(`Failed to restore: ${h.message}`):Ke(`Failed to restore: ${h.message}`)}finally{try{yield Oy(d)}catch(h){q(`Failed to delete archive: ${h}`)}}})}function ilt(t,e,r,n){return M0(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(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)uG(d);let l="";try{let d=sG(),h=yield Hy(),f={key:i,restoreKeys:o,version:Ym(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(_me)?new HD(y):I}if(!g.ok){q(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;l=nb.join(yield Py(),$l(h)),q(`Archive path: ${l}`),q(`Starting download of archive to: ${l}`),yield WH(g.signedDownloadUrl,l,a);let m=Rc(l);return re(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Vl()&&(yield rb(l,h)),yield aG(l,h),re("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Ja.name)throw d;h instanceof wc&&typeof h.statusCode=="number"&&h.statusCode>=500?No(`Failed to restore: ${d.message}`):Ke(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Oy(l))}catch(d){q(`Failed to delete archive: ${d}`)}}})}function Ume(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();q(`Cache service version: ${a}`),Fme(n),uG(s);let c=YH();return Rpe(c)?a==="v2"?yield alt(n,s,i,o):yield olt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),q(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function olt(t,e,r){return M0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Hy(),f=-1,g=yield R3(n);if(q("Cache Paths:"),q(`${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 Py(),m=nb.join(E,$l(h));q(`Archive Path: ${m}`);try{yield cG(E,g,h),Vl()&&(yield rb(m,h));let I=10*1024*1024*1024 Line truncated
${zme()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
`+n(i)+s(i),a=sot("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)=>Kx(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=Jx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=zx(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:iot,async sendRequest(i,o){return e(i),o(i)}}}var oot="storageRequestFailureDetailsParserPolicy";function nge(){return{name:oot,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 aot}from"node:crypto";var $x=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return aot("sha256",this.key).update(e,"utf8").digest("base64")}};var Xx="12.31.0",Zx="2026-02-06";var eR="https://storage.azure.com/.default",wu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Ua="",g4="*",cot=1*1024*1024;var Aot=4*cot;var sge="AES256",ige="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",oge=["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"],age=["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"],cge="BlobUsesCustomerSpecifiedEncryption",Age="BlobDoesNotUseCustomerSpecifiedEncryption",uge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function Su(t){if(!t||typeof t!="object")return!1;let e=t;return Array.isArray(e.factories)&&typeof e.options=="object"&&typeof e.toServiceClientOptions=="function"}var CB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function tn(t,e={}){t||(t=new Sr);let r=new CB([],e);return r._credential=t,r}function uot(t){let e=[lot,lge,dot,hot,fot,got,mot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>pot(s));return{wrappedPolicies:Y8(r),afterRetry:n}}}}function p4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?V8(e):h4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${Xx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=tB({...r,loggingOptions:{additionalAllowedHeaderNames:oge,additionalAllowedQueryParameters:age,logger:Hx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Ox,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:l4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:E8}),s.addPolicy(tge()),s.addPolicy(rge(r.retryOptions),{phase:"Retry"}),s.addPolicy(nge()),s.addPolicy(ege());let a=uot(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=m4(t);Vi(c)?s.addPolicy(r0({credential:c,scopes:r.audience?? Line truncated
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new qa(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 lct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 dct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ga(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 qa(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 hct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 fct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 gct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 pct(t,e){if(t=Mf(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=eA.parse(t.permissions.toString()).toString():s=tA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Gt(t.startsOn,!1):"",t.expiresOn?Gt(t.expiresOn,!1):"",Ff(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?Ga(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 qa(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 Ff(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Mf(t){let e=t.version?t.version:Zx;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 DB=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=e0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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!==Ua||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Ua||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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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!==Ua||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Ua||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"}};C0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Pf=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"}};Pf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var PB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Pct=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())})},YH=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);re(`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 Qpe(t,e,r){return Pct(this,void 0,void 0,function*(){var n;let s=new Ya(t),i=s.getBlockBlobClient(),o=new YH((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),q(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new zR(`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 Spe from"buffer";import*as rA from"fs";import*as Npe from"stream";import*as Tpe from"util";var jR=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 KR(t){return t?t>=200&&t<300:!1}function Oct(t){return t?t>=500:!0}function Hct(t){return t?[tr.BadGateway,tr.ServiceUnavailable,tr.GatewayTimeout].includes(t):!1}function Gct(t){return jR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function wpe(t,e,r){return jR(this,arguments,void 0,function*(n,s,i,o=DT,a=kT,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),!Oct(d)))return l;if(d&&(h=Hct(d),A=`Cache service responded with ${d}`),q(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){q(`${n} - Error is not retryable`);break}yield Gct(a),u++}throw Error(`${n} failed: ${A}`)})}function OB(t,e){return jR(this,arguments,void 0,function*(r,n,s=DT,i=kT){return yield wpe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof wc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function I0(t,e){return jR(this,arguments,void 0,function*(r,n,s=DT,i=kT){return yield wpe(r,n,o=>o.message.statusCode,s,i)})}var Oo=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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 qct(t,e){return Oo(this,void 0,void 0,function*(){yield Tpe.promisify(Npe.pipeline)(t.message,e)})}var $R=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,q(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e Line truncated
Other caches with similar key:`);for(let a of i?.artifactCaches||[])q(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function jH(t,e,r){return hi(this,void 0,void 0,function*(){let n=new zct(t),s=kpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Rpe(t,e,s):s.concurrentBlobDownloads?yield xpe(t,e,s):yield XR(t,e):yield XR(t,e)})}function Gpe(t,e,r){return hi(this,void 0,void 0,function*(){let n=zH(),s=Vm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield OB("reserveCache",()=>hi(this,void 0,void 0,function*(){return n.postJson(GB("caches"),i)}))})}function Ope(t,e){return`bytes ${t}-${e}/*`}function Xct(t,e,r,n,s){return hi(this,void 0,void 0,function*(){q(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ope(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ope(n,s)},o=yield I0(`uploadChunk (start: ${n}, end: ${s})`,()=>hi(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!KR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function Zct(t,e,r,n){return hi(this,void 0,void 0,function*(){let s=Rc(r),i=GB(`caches/${e.toString()}`),o=y0.openSync(r,"r"),a=VH(n),c=_3("uploadConcurrency",a.uploadConcurrency),A=_3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];q("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>hi(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 Xct(t,i,()=>y0.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{y0.closeSync(o)}})}function eAt(t,e,r){return hi(this,void 0,void 0,function*(){let n={size:r};return yield OB("commitCache",()=>hi(this,void 0,void 0,function*(){return t.postJson(GB(`caches/${e.toString()}`),n)}))})}function KH(t,e,r,n){return hi(this,void 0,void 0,function*(){if(VH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Qpe(r,e,n)}else{let i=zH();q("Upload cache"),yield Zct(i,t,e,n),q("Commiting cache");let o=Rc(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield eAt(i,t,o);if(!KR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var Fme=pe(H9(),1),nn=pe(ct(),1),Ki=pe(ct(),1),Yf=pe(ct(),1),Vf=pe(ct(),1),Wf=pe(ct(),1);var V9=pe(ct(),1),W9=pe(ct(),1),kme=pe(ct(),1),vme=pe(ct(),1),_me=pe(ct(),1);var G9=pe(ct(),1),q9=pe(ct(),1),xme=pe(ct(),1),Rme=pe(ct(),1),Dme=pe(ct(),1),Y9=class extends Dme.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,Rme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,xme.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?q9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,G9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,G9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?q9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},PD=new Y9;var J9=class extends _me.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:()=>PD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,vme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,kme.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(PD.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?W9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,V9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)PD.internalBinaryWrite(e.scope[i],r.tag(2,V9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?W9.UnknownFieldHandler.onWrite Line truncated
`));let n=yield cG(r,"create");yield AG(n,t)})}var L0=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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())})},Ja=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Jf=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},dG="cache write denied:",GD=class t extends Jf{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},Pme=vT,qD=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},YD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function Ome(t){if(!t||t.length===0)throw new Ja("Path Validation Error: At least one directory or file path is required")}function hG(t){if(t.length>512)throw new Ja(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ja(`Key Validation Error: ${t} cannot contain commas.`)}function Hme(){return HB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function Gme(t,e,r,n){return L0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=HB();q(`Cache service version: ${A}`),Ome(s);let u=JH();if(!_pe(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),q(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield mlt(s,i,o,a,c):yield plt(s,i,o,a,c)})}function plt(t,e,r,n){return L0(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)hG(h);let l=yield Gy(),d="";try{let h;try{h=yield Hpe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(g){let E=(A=g?.message)!==null&&A!==void 0?A:"";throw E.includes(Pme)?new qD(E):g}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=sb.join(yield Oy(),$l(l)),q(`Archive Path: ${d}`),yield jH(h.archiveLocation,d,a),Vl()&&(yield nb(d,l));let f=Rc(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield uG(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Ja.name)throw h;f instanceof wc&&typeof f.statusCode=="number"&&f.statusCode>=500?No(`Failed to restore: ${h.message}`):je(`Failed to restore: ${h.message}`)}finally{try{yield Hy(d)}catch(h){q(`Failed to delete archive: ${h}`)}}})}function mlt(t,e,r,n){return L0(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(q("Resolved Keys:"),q(JSON.stringify(u)),u.length>10)throw new Ja("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)hG(d);let l="";try{let d=aG(),h=yield Gy(),f={key:i,restoreKeys:o,version:Vm(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(Pme)?new qD(y):I}if(!g.ok){q(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==g.matchedKey?re(`Cache hit for restore-key: ${g.matchedKey}`):re(`Cache hit for: ${g.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),g.matchedKey;l=sb.join(yield Oy(),$l(h)),q(`Archive path: ${l}`),q(`Starting download of archive to: ${l}`),yield jH(g.signedDownloadUrl,l,a);let m=Rc(l);return re(`Cache Size: ~${Math.round(m/(1024*1024))} MB (${m} B)`),Vl()&&(yield nb(l,h)),yield uG(l,h),re("Cache restored successfully"),g.matchedKey}catch(d){let h=d;if(h.name===Ja.name)throw d;h instanceof wc&&typeof h.statusCode=="number"&&h.statusCode>=500?No(`Failed to restore: ${d.message}`):je(`Failed to restore: ${d.message}`)}finally{try{l&&(yield Hy(l))}catch(d){q(`Failed to delete archive: ${d}`)}}})}function qme(t,e,r){return L0(this,arguments,void 0,function*(n,s,i,o=!1){let a=HB();q(`Cache service version: ${a}`),Ome(n),hG(s);let c=JH();return Fpe(c)?a==="v2"?yield Clt(n,s,i,o):yield Elt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),q(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Elt(t,e,r){return L0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield Gy(),f=-1,g=yield v3(n);if(q("Cache Paths:"),q(`${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 Oy(),m=sb.join(E,$l(h));q(`Archive Path: ${m}`);try{yield lG(E,g,h),Vl()&&(yield nb(m,h));let I=10*1024*1024*1024 Line truncated
${r.join(`
`)}
`:""}function Tlt(t){return`<details>
<summary>${mG.eol} ${Zme(t)}</summary>
<p>${e0e(t)}</p>
<p>If you cannot upgrade, see the <a href="${$me}">Gradle Security Subscription</a> for options.</p>
</details>`}async function o0e(t,e,r,n){Pce("Generating Job Summary");let s=a0e(),i=klt();if(i){fu.addRaw(s),fu.addRaw(i),await fu.write();return}let o=Dlt(t),a=qAe(e,r),c=Mlt(t);re(o),re("============================"),re(a),n.shouldGenerateJobSummary(c)&&(fu.addRaw(s),fu.addRaw(o),fu.addRaw(a),await fu.write()),Oce(),n.canAddPRComment()&&await Hlt(),n.shouldAddPRComment(c)&&await xlt(o)}async function xlt(t){let e=mu;if(e.payload.pull_request==null){re("No pull_request trigger detected: not adding PR comment");return}let r=e.payload.pull_request.number;re(`Adding Job Summary as comment to PR #${r}.`);let n=`${c0e(e)}
${a0e()}<a href="${e.serverUrl}/${e.repo.owner}/${e.repo.repo}/actions/runs/${e.runId}" target="_blank">
<h5>${e.workflow} :: <em>${e.job}</em></h5>
</a>
${t}`,s=cb(),i=Oi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")Ke(flt(o));else throw o}}function flt(t){let e=`Failed to generate PR comment.
${t}`,s=Ab(),i=Oi(s);try{await i.rest.issues.createComment({...e.repo,issue_number:r,body:n})}catch(o){if(o instanceof Error&&o.name==="HttpError")je(Rlt(o));else throw o}}function Rlt(t){let e=`Failed to generate PR comment.
${String(t)}`;return t.message==="Resource not accessible by integration"?`${e}
Please ensure that the 'pull-requests: write' permission is available for the workflow job.
Note that this permission is never available for a workflow triggered from a repository fork.
`:e}function glt(t){return`${mlt()}
${Clt(t)}`}function zme(){let t=sb();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`:e}function Dlt(t){return`${vlt()}
${Flt(t)}
${s0e(t.map(e=>e.gradleVersion))}`}function a0e(){let t=ib();return`<h3>Gradle Builds${t?` <sub><em>captured by ${t}</em></sub>`:""}</h3>
`}function plt(){let t=Gme();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function mlt(){let t=Hme();return t.length===0?"":`
`}function klt(){let t=Jme();if(t.length!==0)return t.map(e=>`<b>:x: ${e}</b>`).join(`
`)}function vlt(){let t=Wme();return t.length===0?"":`
<h4>Deprecation warnings</h4>
This job uses deprecated functionality from the <code>${sb()}</code> action. Follow the links for upgrade details.
This job uses deprecated functionality from the <code>${ib()}</code> action. Follow the links for upgrade details.
<ul>
${t.map(e=>`<li>${Elt(e)}</li>`).join("")}
${t.map(e=>`<li>${_lt(e)}</li>`).join("")}
</ul>
<h4>Gradle Build Results</h4>`}function Elt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Clt(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<h4>Gradle Build Results</h4>`}function _lt(t){return`<a href="${t.getDocumentationLink()}" target="_blank">${t.message}</a>`}function Flt(t){return t.length===0?"<b>No Gradle build results detected.</b>":`
<table>
<tr>
<th>Gradle Root Project</th>
@@ -309,16 +317,15 @@ This job uses deprecated functionality from the <code>${sb()}</code> action. Fol
<th>Gradle Version</th>
<th>Build Outcome</th>
<th>Build&nbsp;Scan\xAE</th>
</tr>${t.map(e=>ylt(e)).join("")}
</table>
`}function Ilt(t){return t.some(e=>e.buildFailed)}function ylt(t){return`
</tr>${t.map(e=>Llt(e)).join("")}
</table>`}function Mlt(t){return t.some(e=>e.buildFailed)}function Llt(t){return`
<tr>
<td>${Wme(t.rootProjectName,30)}</td>
<td>${Wme(t.requestedTasks,60)}</td>
<td align='center'>${t.gradleVersion}</td>
<td align='center'>${Blt(t)}</td>
<td>${blt(t)}</td>
</tr>`}function Blt(t){return t.buildFailed?":x:":":white_check_mark:"}function blt(t){return t.buildScanFailed?hG({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?hG({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):hG({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function hG({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function Wme(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function Qlt(){let t=mu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=jme(t),n=Oi(cb()),{owner:s,repo:i}=t.repo,o=`
<td>${i0e(t.rootProjectName,30)}</td>
<td>${i0e(t.requestedTasks,60)}</td>
<td align='center'>${Ult(t.gradleVersion)}</td>
<td align='center'>${Plt(t)}</td>
<td>${Olt(t)}</td>
</tr>`}function Ult(t){let e=r0e(t);return e?`${t} ${e}`:t}function Plt(t){return t.buildFailed?":x:":":white_check_mark:"}function Olt(t){return t.buildScanFailed?CG({text:"Publish failed",alt:"Build Scan publish failed",color:"orange",logo:!1,targetUrl:"https://docs.gradle.com/develocity/gradle-plugin/#troubleshooting"}):t.buildScanUri?CG({text:"Build Scan\xAE",alt:"Build Scan published",color:"06A0CE",logo:!0,targetUrl:t.buildScanUri}):CG({text:"Not published",alt:"Build Scan not published",color:"lightgrey",logo:!1,targetUrl:"https://scans.gradle.com"})}function CG({text:t,alt:e,color:r,logo:n,targetUrl:s}){let a=`<img src="${`https://img.shields.io/badge/${encodeURIComponent(t)}-${r}${n?"?logo=Gradle":""}`}" alt="${e}" />`;return`<a href="${s}" rel="nofollow" target="_blank">${a}</a>`}function i0e(t,e){return t.length>e?`<div title='${t}'>${t.slice(0,e-1)}\u2026</div>`:t}async function Hlt(){let t=mu;if(t.payload.pull_request==null){re("No pull_request trigger detected: not minimizing obsolete PR comments");return}let e=t.payload.pull_request.number;re(`Minimizing obsolete Job Summary comments on PR #${e}.`);let r=c0e(t),n=Oi(Ab()),{owner:s,repo:i}=t.repo,o=`
query($owner: String!, $repo: String!, $prNumber: Int!) {
repository(owner: $owner, name: $repo) {
pullRequest(number: $prNumber) {
@@ -328,66 +335,66 @@ This job uses deprecated functionality from the <code>${sb()}</code> action. Fol
}
}
}
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return Ke(`Failed to fetch comments: ${u}`)}let c=`
`,a;try{let{repository:u}=await n.graphql(o,{owner:s,repo:i,prNumber:e});a=u.pullRequest?.comments?.nodes?.filter(l=>l!==null)??[]}catch(u){return je(`Failed to fetch comments: ${u}`)}let c=`
mutation($id: ID!) {
minimizeComment(input: {subjectId: $id, classifier: OUTDATED}) {
clientMutationId
}
}
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>re(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>Ke(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function jme(t){return`<!-- gradle-job-summary: ${U0.constructJobCorrelator(t.workflow,t.job,dG())} -->`}var Kme=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let n=new Array,s=r.split(this.keyDelimiter);for(let[i,o]of s.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,s.length,`no '${this.hostDelimiter}' separator`);let c=o.substring(0,a),A=o.substring(a+1);if(!c)return this.warnBadlyFormed(i,s.length,"empty server name");if(!A)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:c,key:A})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return Ke(`Ignoring badly formed Develocity access key: ${n} in ${s}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as Yo from"fs";import*as Fu from"path";function $me(){return Zme().map(e=>{let r=Yo.readFileSync(e,"utf8"),n=JSON.parse(r);return Nlt(e,n),n})}function Xme(){Zme().forEach(xlt)}function Zme(){let t=Fu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Yo.existsSync(t)?Yo.readdirSync(t).map(e=>Fu.resolve(t,e)).filter(e=>Fu.extname(e)===".json"&&!Tlt(e)):[]}function Nlt(t,e){let r=Fu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Yo.existsSync(r))return;let n=Fu.resolve(r,Fu.basename(t));if(Yo.existsSync(n)){let s=Yo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Tlt(t){let e=`${t}.processed`;return Yo.existsSync(e)}function xlt(t){let e=`${t}.processed`;Yo.writeFileSync(e,"")}import*as _0e from"fs";import*as F0e from"path";import{pathToFileURL as Jdt}from"url";import*as H0 from"fs";function fG(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as KD from"path";import*as P0 from"path";import jf from"assert";var md=process.platform==="win32";function Lu(t){if(t=Mu(t),md&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=P0.dirname(t);return md&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Mu(e)),e}function JD(t,e){if(jf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),jf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),ub(e))return e;if(md){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(za(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return jf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return jf(ub(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||md&&t.endsWith("\\")||(t+=P0.sep),t+e}function ub(t){return jf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=za(t),md?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function lb(t){return jf(t,"isRooted parameter 'itemPath' must not be empty"),t=za(t),md?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function za(t){return t=t||"",md?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Mu(t){return t?(t=za(t),!t.endsWith(P0.sep)||t===P0.sep||md&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var ja;(function(t){t[t.None=0]=" Line truncated
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>re(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>je(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function c0e(t){return`<!-- gradle-job-summary: ${P0.constructJobCorrelator(t.workflow,t.job,gG())} -->`}var A0e=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let n=new Array,s=r.split(this.keyDelimiter);for(let[i,o]of s.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,s.length,`no '${this.hostDelimiter}' separator`);let c=o.substring(0,a),A=o.substring(a+1);if(!c)return this.warnBadlyFormed(i,s.length,"empty server name");if(!A)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:c,key:A})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return je(`Ignoring badly formed Develocity access key: ${n} in ${s}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as Yo from"fs";import*as Fu from"path";function u0e(){return d0e().map(e=>{let r=Yo.readFileSync(e,"utf8"),n=JSON.parse(r);return Ylt(e,n),n})}function l0e(){d0e().forEach(Wlt)}function d0e(){let t=Fu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return Yo.existsSync(t)?Yo.readdirSync(t).map(e=>Fu.resolve(t,e)).filter(e=>Fu.extname(e)===".json"&&!Vlt(e)):[]}function Ylt(t,e){let r=Fu.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!Yo.existsSync(r))return;let n=Fu.resolve(r,Fu.basename(t));if(Yo.existsSync(n)){let s=Yo.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function Vlt(t){let e=`${t}.processed`;return Yo.existsSync(e)}function Wlt(t){let e=`${t}.processed`;Yo.writeFileSync(e,"")}import*as J0e from"fs";import*as z0e from"path";import{pathToFileURL as uht}from"url";import*as G0 from"fs";function IG(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,q(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,q(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,q(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,q(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,q(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as ZD from"path";import*as O0 from"path";import Kf from"assert";var md=process.platform==="win32";function Lu(t){if(t=Mu(t),md&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=O0.dirname(t);return md&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=Mu(e)),e}function KD(t,e){if(Kf(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),Kf(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),lb(e))return e;if(md){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return Kf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(za(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return Kf(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return Kf(lb(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||md&&t.endsWith("\\")||(t+=O0.sep),t+e}function lb(t){return Kf(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=za(t),md?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function db(t){return Kf(t,"isRooted parameter 'itemPath' must not be empty"),t=za(t),md?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function za(t){return t=t||"",md?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function Mu(t){return t?(t=za(t),!t.endsWith(O0.sep)||t===O0.sep||md&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var ja;(function(t){t[t.None=0]=" 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 pb(i));return n.searchPaths.push(...pG(n.patterns)),n})}static stat(e,r,n){return QG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield H0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield H0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield H0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as wG from"crypto";import*as $D from"fs";import*as b0e from"stream";import*as Q0e from"util";import*as w0e from"path";var Gdt=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())})},qdt=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 S0e(t,e){return Gdt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:q,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=wG.createHash("sha256"),f=0;try{for(var g=!0,E=qdt(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}${w0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if($D.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=wG.createHash("sha256");yield Q0e.promisify(b0e.pipeline)($D.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 N0e=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 SG(t,e){return N0e(this,void 0,void 0,function*(){return yield jD.create(t,e)})}function T0e(t){return N0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield SG(e,{followSymbolicLinks:i});return S0e(o,r,s)})}import*as NG from"path";var Ydt="Gradle User Home",R0e="BASIC_CACHE_PRIMARY_KEY",D0e="BASIC_CACHE_RESTORED_KEY",Vdt="setup-java",k0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],XD=class{async restore(e,r){let n=v0e(e),s=await Wdt();yy(R0e,s);try{let i=await Lme(n,s);i?(yy(D0e,i),re(`Basic caching restored from cache key: ${i}`)):re("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ke(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=Tc(R0e),i=Tc(D0e);if(n.readOnly)return{status:"read-only",entries:[Eb({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 re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Eb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=v0e(e);try{return await Ume(o,s)===-1?(Ke(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Eb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Eb({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 Ke(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[Eb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${k0e}], make sure you have checked out the target repository`);return`${Vdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var zdt="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.",jdt="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.",Kdt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",e2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function M0e(t){return t.getCacheProvider()==="external"?(ZD(Kdt),new e2("external")):t.isCacheDisabled()?(ZD("Cache is disabled: will not restore state from previous builds."),new e2("disabled")):t.getCacheProvider()==="basic"?(ZD(jdt),new XD):(ZD(zdt),$dt())}function L0e(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function $dt(){let t=Xdt();return await import(Jdt(t).href)}function Xdt(){let t=import.meta.dirname,e=F0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(_0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function ZD(t){console.info(t)}import*as G0e from"util";var iht=pe(H0e(),1);import*as TG from"fs";var Nmr=G0e.promisify(TG.readdir);var aht={_useHtmlParser2:!1};function G0(t,e){if(!t)return e??aht;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 XG={};Qa(XG,{contains:()=>g2,extract:()=>tft,html:()=>$ht,merge:()=>lEe,parseHTML:()=>Zht,root:()=>eft,text:()=>ig,xml:()=>Xht});var Qd={};Qa(Qd,{DocumentPosition:()=>zo,append:()=>vht,appendChild:()=>kht,compareDocumentPosition:()=>aEe,existsOne:()=>iEe,filter:()=>J0,find:()=>l2,findAll:()=>Lht,findOne:()=>d2,findOneChild:()=>Mht,getAttributeValue:()=>Tht,getChildren:()=>W0,getElementById:()=>Hht,getElements:()=>Oht,getElementsByClassName:()=>Ght,getElementsByTagName:()=>sg,getElementsByTagType:()=>qht,getFeed:()=>$G,getInnerHTML:()=>Nht,getName:()=>Rht,getOuterHTML:()=>nEe,getParent:()=>sEe,getSiblings:()=>jG,getText:()=>c2,hasAttrib:()=>xht,hasChildren:()=>rr,innerText:()=>bb,isCDATA:()=>q0,isComment:()=>ng,isDocument:()=>Jo,isTag:()=>Qe,isText:()=>mi,nextElementSibling:()=>A2,prepend:()=>Fht,prependChild:()=>_ht,prevElementSibling:()=>u2,removeElement:()=>Hu,removeSubsets:()=>Yht,replaceElement:()=>Dht,testElement:()=>Pht,textContent:()=>Ou,uniqueSort:()=>Bd});var Wo={};Qa(Wo,{CDATA:()=>LG,Comment:()=>vG,Directive:()=>kG,Doctype:()=>UG,ElementType:()=>bt,Root:()=>RG,Script:()=>_G,Style:()=>FG,Tag:()=>MG,Text:()=>DG,isTag:()=>xG});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 xG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var RG=bt.Root,DG=bt.Text,kG=bt.Directive,vG=bt.Comment,_G=bt.Script,FG=bt.Style,MG=bt.Tag,LG=bt.CDATA,UG=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 Y0(this,e)}},Cb=class extends t2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},cA=class extends Cb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},eg=class extends Cb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},tg=class extends Cb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},Ib=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.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},yb=class extends Ib{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends Ib{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},rg=class extends Ib{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret Line truncated
`:c2(t.children):q0(t)?c2(t.children):mi(t)?t.data:""}function Ou(t){return Array.isArray(t)?t.map(Ou).join(""):rr(t)&&!ng(t)?Ou(t.children):mi(t)?t.data:""}function bb(t){return Array.isArray(t)?t.map(bb).join(""):rr(t)&&(t.type===bt.Tag||q0(t))?bb(t.children):mi(t)?t.data:""}function W0(t){return rr(t)?t.children:[]}function sEe(t){return t.parent||null}function jG(t){let e=sEe(t);if(e!=null)return W0(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 Tht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function xht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Rht(t){return t.name}function A2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function u2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Hu(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 Dht(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 kht(t,e){if(Hu(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 vht(t,e){Hu(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 _ht(t,e){if(Hu(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 Fht(t,e){Hu(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 J0(t,e,r=!0,n=1/0){return l2(t,Array.isArray(e)?e:[e],r,n)}function l2(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 Mht(t,e){return e.find(t)}function d2(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=d2(t,i.children,!0);if(o)return o}}return null}function iEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&iEe(t,r.children))}function Lht(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 h2={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=>mi(e)&&t(e.data):e=>mi(e)&&e.data===t}};function KG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function Uht(t,e){return r=>t(r)||e(r)}function oEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(h2,r)?h2[r](n):KG(r,n)});return e.length===0?null:e.reduce(Uht)}function Pht(t,e){let r=oEe(t);return r?r(e):!0}function Oht(t,e,r,n=1/0){let s=oEe(t);return s?J0(s,e,r,n):[]}function Hht(t,e,r=!0){return Array.isArray(e)||(e=[e]),d2(KG("id",t),e,r)}function sg(t,e,r=!0,n=1/0){return J0(h2.tag_name(t),e,r,n)}function Ght(t,e,r=!0,n=1/0){return J0(KG("class",t),e,r,n)}function qht(t,e,r=!0,n=1/0){return J0(h2.tag_type(t),e,r,n)}function Yht(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 aEe(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 Bd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=aEe(e,r);return n&zo.PRECEDING?-1:n&zo.FOLLOWING?1:0}),t}function $G(t){let e=f2(jht,t);return e?e.name==="feed"?Vht(e):Wht(e):null}function Vht(t){var e;let r=t.children,n={type:"atom",items:sg("entry",r).map(o=>{var a;let{children:c}=o,A={media:cEe(c)};Ei(A,"id","id",c),Ei(A,"title","title",c);let u=(a=f2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=bd("summary",c)||bd("conten Line truncated
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new mb(i));return n.searchPaths.push(...BG(n.patterns)),n})}static stat(e,r,n){return RG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield G0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){q(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield G0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield G0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){q(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as DG from"crypto";import*as e2 from"fs";import*as M0e from"stream";import*as L0e from"util";import*as U0e from"path";var iht=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())})},oht=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 P0e(t,e){return iht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:q,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=DG.createHash("sha256"),f=0;try{for(var g=!0,E=oht(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}${U0e.sep}`)){u(`Ignore '${I}' since it is not under GITHUB_WORKSPACE.`);continue}if(e2.statSync(I).isDirectory()){u(`Skip directory '${I}'.`);continue}let y=DG.createHash("sha256");yield L0e.promisify(M0e.pipeline)(e2.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 O0e=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 kG(t,e){return O0e(this,void 0,void 0,function*(){return yield XD.create(t,e)})}function H0e(t){return O0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield kG(e,{followSymbolicLinks:i});return P0e(o,r,s)})}import*as vG from"path";var aht="Gradle User Home",q0e="BASIC_CACHE_PRIMARY_KEY",Y0e="BASIC_CACHE_RESTORED_KEY",cht="setup-java",V0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],t2=class{async restore(e,r){let n=W0e(e),s=await Aht();By(q0e,s);try{let i=await Gme(n,s);i?(By(Y0e,i),re(`Basic caching restored from cache key: ${i}`)):re("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=Tc(q0e),i=Tc(Y0e);if(n.readOnly)return{status:"read-only",entries:[Cb({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 re(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[Cb({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=W0e(e);try{return await qme(o,s)===-1?(je(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[Cb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(re(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[Cb({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:[Cb({primaryKey:s,restoredKey:i,restoredOutcome:i?"(ELine truncated
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${V0e}], make sure you have checked out the target repository`);return`${cht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var lht="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.",dht="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.",n2=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function j0e(t){return t.getCacheProvider()==="external"?(r2(hht),new n2("external")):t.isCacheDisabled()?(r2("Cache is disabled: will not restore state from previous builds."),new n2("disabled")):t.getCacheProvider()==="basic"?(r2(dht),new t2):(r2(lht),fht())}function K0e(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function fht(){let t=ght();return await import(uht(t).href)}function ght(){let t=import.meta.dirname,e=z0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(J0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function r2(t){console.info(t)}import*as tEe from"util";var Bht=pe(eEe(),1);import*as _G from"fs";var jmr=tEe.promisify(_G.readdir);var Qht={_useHtmlParser2:!1};function q0(t,e){if(!t)return e??Qht;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 sq={};Qa(sq,{contains:()=>E2,extract:()=>Eft,html:()=>fft,merge:()=>QEe,parseHTML:()=>pft,root:()=>mft,text:()=>og,xml:()=>gft});var Qd={};Qa(Qd,{DocumentPosition:()=>zo,append:()=>Kht,appendChild:()=>jht,compareDocumentPosition:()=>IEe,existsOne:()=>EEe,filter:()=>z0,find:()=>f2,findAll:()=>eft,findOne:()=>g2,findOneChild:()=>Zht,getAttributeValue:()=>Vht,getChildren:()=>J0,getElementById:()=>sft,getElements:()=>nft,getElementsByClassName:()=>ift,getElementsByTagName:()=>ig,getElementsByTagType:()=>oft,getFeed:()=>nq,getInnerHTML:()=>Yht,getName:()=>Jht,getOuterHTML:()=>pEe,getParent:()=>mEe,getSiblings:()=>tq,getText:()=>l2,hasAttrib:()=>Wht,hasChildren:()=>rr,innerText:()=>Qb,isCDATA:()=>Y0,isComment:()=>sg,isDocument:()=>Jo,isTag:()=>Qe,isText:()=>mi,nextElementSibling:()=>d2,prepend:()=>Xht,prependChild:()=>$ht,prevElementSibling:()=>h2,removeElement:()=>Hu,removeSubsets:()=>aft,replaceElement:()=>zht,testElement:()=>rft,textContent:()=>Ou,uniqueSort:()=>Bd});var Wo={};Qa(Wo,{CDATA:()=>qG,Comment:()=>PG,Directive:()=>UG,Doctype:()=>YG,ElementType:()=>bt,Root:()=>MG,Script:()=>OG,Style:()=>HG,Tag:()=>GG,Text:()=>LG,isTag:()=>FG});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 FG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var MG=bt.Root,LG=bt.Text,UG=bt.Directive,PG=bt.Comment,OG=bt.Script,HG=bt.Style,GG=bt.Tag,qG=bt.CDATA,YG=bt.Doctype;var s2=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 V0(this,e)}},Ib=class extends s2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},cA=class extends Ib{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},tg=class extends Ib{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},rg=class extends Ib{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},yb=class extends s2{constructor(e){super(),this.children=e}get firstChild(){var e;return(e=this.children[0])!==null&&e!==void 0?e:null}get lastChild(){return this.children.length>0?this.children[this.children.length-1]:null}get childNodes(){return this.children}set childNodes(e){this.children=e}},Bb=class extends yb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends yb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},ng=class extends yb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret Line truncated
`:l2(t.children):Y0(t)?l2(t.children):mi(t)?t.data:""}function Ou(t){return Array.isArray(t)?t.map(Ou).join(""):rr(t)&&!sg(t)?Ou(t.children):mi(t)?t.data:""}function Qb(t){return Array.isArray(t)?t.map(Qb).join(""):rr(t)&&(t.type===bt.Tag||Y0(t))?Qb(t.children):mi(t)?t.data:""}function J0(t){return rr(t)?t.children:[]}function mEe(t){return t.parent||null}function tq(t){let e=mEe(t);if(e!=null)return J0(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 Vht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Wht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Jht(t){return t.name}function d2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function h2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function Hu(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 zht(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 jht(t,e){if(Hu(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 Kht(t,e){Hu(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 $ht(t,e){if(Hu(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 Xht(t,e){Hu(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 z0(t,e,r=!0,n=1/0){return f2(t,Array.isArray(e)?e:[e],r,n)}function f2(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 Zht(t,e){return e.find(t)}function g2(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=g2(t,i.children,!0);if(o)return o}}return null}function EEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||rr(r)&&EEe(t,r.children))}function eft(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 p2={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=>mi(e)&&t(e.data):e=>mi(e)&&e.data===t}};function rq(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 CEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(p2,r)?p2[r](n):rq(r,n)});return e.length===0?null:e.reduce(tft)}function rft(t,e){let r=CEe(t);return r?r(e):!0}function nft(t,e,r,n=1/0){let s=CEe(t);return s?z0(s,e,r,n):[]}function sft(t,e,r=!0){return Array.isArray(e)||(e=[e]),g2(rq("id",t),e,r)}function ig(t,e,r=!0,n=1/0){return z0(p2.tag_name(t),e,r,n)}function ift(t,e,r=!0,n=1/0){return z0(rq("class",t),e,r,n)}function oft(t,e,r=!0,n=1/0){return z0(p2.tag_type(t),e,r,n)}function aft(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 IEe(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 Bd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=IEe(e,r);return n&zo.PRECEDING?-1:n&zo.FOLLOWING?1:0}),t}function nq(t){let e=m2(dft,t);return e?e.name==="feed"?cft(e):Aft(e):null}function cft(t){var e;let r=t.children,n={type:"atom",items:ig("entry",r).map(o=>{var a;let{children:c}=o,A={media:yEe(c)};Ei(A,"id","id",c),Ei(A,"title","title",c);let u=(a=m2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=bd("summary",c)||bd("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 $o=pe(wd(),1);var fq={};function gq(t,e){return t===$o.default.falseFunc?$o.default.falseFunc:r=>e.isTag(r)&&t(r)}function pq(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 hq(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 dq=(t,e,r,n,s)=>{let i=s(e,hq(r),n);return i===$o.default.trueFunc?t:i===$o.default.falseFunc?$o.default.falseFunc:o=>i(o)&&t(o)},N2={is:dq,matches:dq,where:dq,not(t,e,r,n,s){let i=s(e,hq(r),n);return i===$o.default.falseFunc?t:i===$o.default.trueFunc?$o.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=hq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Rb))?[fq]:void 0,c=s(e,o,a);if(c===$o.default.falseFunc)return $o.default.falseFunc;let A=gq(c,i);if(a&&c!==$o.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,...pq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function KEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in N2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return N2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:S2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,jEe.parse)(A);return N2.is(t,u,r,n,s)}if(typeof c=="function")return lq(c,o,a,1),u=>c(u,a)&&t(u);if(o in rE)return rE[o](t,a,r,n);if(o in kb){let u=kb[o];return lq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=pe(eE(),1);function mq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function $Ee(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),VEe[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return KEe(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mq(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=mq(A,i));return!1};case Xo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Xo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Xo.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 Xo.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 Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function XEe(t,e,r){let n=T2(t,e,r);return gq(n,e.adapter)}function T2(t,e,r){let n=typeof t=="string"?(0,$a.parse)(t):t;return x2(n,e,r)}function ZEe(t){return t.type===$a.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(ZEe)))}var Oft={type:$a.SelectorType.Descendant},Hft={type:"_flexibleDescendant"},Gft={type:$a.SelectorType.Pseudo,name:"scope",data:null};function qft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===fq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(gCe,`\r
`)}}).toArray()}var vq={};Qa(vq,{extract:()=>spt});function npt(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 spt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=npt(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 Td=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}}};Td.prototype.cheerio="[cheerio object]";Td.prototype.splice=Array.prototype.splice;Td.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Td.prototype,oq,xq,Rq,Dq,kq,vq);function pCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=G0(s),a=t(n,o,i,null);class c extends Td{_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&&jo(u))return u;let f=G0(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=jo(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&Qb(u)?t(u,f,!1,null).children:ipt(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"?Qb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):jo(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,XG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function ipt(t){return!!t.name||t.type===Wo.Root||t.type===Wo.Text||t.type===Wo.Comment}var opt=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 Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function F2(t){return t>=55296&&t<=57343}function mCe(t){return t>=56320&&t<=57343}function ECe(t,e){return(t-55296)*1024+9216+e}function M2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function L2(t){return t>=64976&&t<=65007||opt.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
`," Line feed \\n"]]),gRe=new Map([...tj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function pRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of gRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
)`,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 $o=pe(wd(),1);var Iq={};function yq(t,e){return t===$o.default.falseFunc?$o.default.falseFunc:r=>e.isTag(r)&&t(r)}function Bq(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 Cq(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 Eq=(t,e,r,n,s)=>{let i=s(e,Cq(r),n);return i===$o.default.trueFunc?t:i===$o.default.falseFunc?$o.default.falseFunc:o=>i(o)&&t(o)},R2={is:Eq,matches:Eq,where:Eq,not(t,e,r,n,s){let i=s(e,Cq(r),n);return i===$o.default.falseFunc?t:i===$o.default.trueFunc?$o.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Cq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Db))?[Iq]:void 0,c=s(e,o,a);if(c===$o.default.falseFunc)return $o.default.falseFunc;let A=yq(c,i);if(a&&c!==$o.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,...Bq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function ACe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in R2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return R2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:x2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,cCe.parse)(A);return R2.is(t,u,r,n,s)}if(typeof c=="function")return mq(c,o,a,1),u=>c(u,a)&&t(u);if(o in nE)return nE[o](t,a,r,n);if(o in vb){let u=vb[o];return mq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Xo=pe(tE(),1);function bq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function uCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Xo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Xo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Xo.SelectorType.Attribute:{if(e.namespace!=null)throw new Error("Namespaced attributes are not yet supported by css-select");return(!r.xmlMode||r.lowerCaseAttributeNames)&&(e.name=e.name.toLowerCase()),sCe[e.action](t,e,r)}case Xo.SelectorType.Pseudo:return ACe(t,e,r,n,s);case Xo.SelectorType.Tag:{if(e.namespace!=null)throw new Error("Namespaced tag names are not yet supported by css-select");let{name:a}=e;return(!r.xmlMode||r.lowerCaseTags)&&(a=a.toLowerCase()),function(A){return i.getName(A)===a&&t(A)}}case Xo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=bq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=bq(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=bq(A,i));return!1};case Xo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Xo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Xo.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 Xo.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 Xo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function lCe(t,e,r){let n=D2(t,e,r);return yq(n,e.adapter)}function D2(t,e,r){let n=typeof t=="string"?(0,$a.parse)(t):t;return k2(n,e,r)}function dCe(t){return t.type===$a.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(dCe)))}var ngt={type:$a.SelectorType.Descendant},sgt={type:"_flexibleDescendant"},igt={type:$a.SelectorType.Pseudo,name:"scope",data:null};function ogt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Iq||i&&e.isTag(i)});fo Line truncated
`)})):{name:s,value:i.replace(TCe,`\r
`)}}).toArray()}var Pq={};Qa(Pq,{extract:()=>ypt});function Ipt(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 ypt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ipt(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 Td=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}}};Td.prototype.cheerio="[cheerio object]";Td.prototype.splice=Array.prototype.splice;Td.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Td.prototype,dq,Fq,Mq,Lq,Uq,Pq);function xCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=q0(s),a=t(n,o,i,null);class c extends Td{_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&&jo(u))return u;let f=q0(h,o),g=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=jo(g)?g:new c(g,null,f);if(E._root=E,!u)return new c(void 0,E,f);let m=typeof u=="string"&&wb(u)?t(u,f,!1,null).children:Bpt(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"?wb(l)?new c([t(l,f,!1,null)],E,f):(y=`${l} ${y}`,E):jo(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(y):I}return Object.assign(A,sq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Bpt(t){return!!t.name||t.type===Wo.Root||t.type===Wo.Text||t.type===Wo.Comment}var bpt=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 Ps={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function U2(t){return t>=55296&&t<=57343}function RCe(t){return t>=56320&&t<=57343}function DCe(t,e){return(t-55296)*1024+9216+e}function P2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function O2(t){return t>=64976&&t<=65007||bpt.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
`," Line feed \\n"]]),NRe=new Map([...aj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function TRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of NRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(gRe.values()).toString()}
Invalid characters include: ${Array.from(NRe.values()).toString()}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function rj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of tj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
These characters are not allowed in the artifact name due to limitations with certain file systems such as NTFS. To maintain file system agnostic behavior, these characters are intentionally not allowed to prevent potential problems with downloads on different file systems.`);re("Artifact name is valid!")}function cj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of aj)if(t.includes(e))throw new Error(`The path for one of the files in artifact is not valid: ${t}. Contains the following character: ${r}
Invalid characters include: ${Array.from(tj.values()).toString()}
Invalid characters include: ${Array.from(aj.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 IRe=pe(CRe(),1);function kA(){return`@actions/artifact-${IRe.version}`}var sC=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"}},Al=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ul=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},sh=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"}},ll=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"}};ll.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Zg=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"}};Zg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var ep=class extends Error{};ep.prototype.name="InvalidTokenError";function tvt(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 rvt(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 tvt(e)}catch{return atob(e)}}function yRe(t,e){if(typeof t!="string")throw new ep("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 ep(`Invalid token specified: missing part #${r+1}`);let s;try{s=rvt(n)}catch(i){throw new ep(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new ep(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var g_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=h_(),e=yRe(t);if(!e.scp)throw g_;let r=e.scp.split(" ");if(r.length===0)throw g_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw g_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw g_}function BRe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Sc(r),Sc(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function bRe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&BRe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&BRe(t.signed_url)}var p_=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())})},nj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=h_();this.baseUrl=sRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new $n(e,[new hu(i)])}request(e,r,n,s){return p_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>p_(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 p_(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(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(bRe(A),q(`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(Zg.isUsageErrorMessage(A.msg))throw new Zg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof Zg)throw a;if(ll.isNetworkErrorCode(a?.code))throw new ll(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);re(`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 p_(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 _A(t){let e=new nj(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new f_(e)}import*as iC from"fs";import{normalize as QRe,resolve as wRe}from"path";function SRe(t){if(!iC.existsSync(t))throw n Line truncated
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ke("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);re(`Redirecting to blob download url: ${L3e(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield U3e(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function H3e(){return ZC(this,arguments,void 0,function*(t=iRe()){return(yield PVt(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield k3e.mkdir(t,{recursive:!0})),t})}var HVt=5,GVt=[400,401,403,404,422];function eI(t,e=HVt,r=GVt){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var G3e="6.0.0";function xp(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})})}xp.VERSION=G3e;var V3e=pe(q3e(),1);var bM=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 qVt="0.0.0-development";async function Y3e(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 YVt(t,e,r,n){let s=new V3e.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(VVt.bind(null,t,e,r),n)}async function VVt(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 bM(s.data.errors[0].message,500,{request:n,response:s});return Y3e(t,e,i,n)}return s}function Rp(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",Y3e.bind(null,r,t)),t.hook.wrap("request",YVt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=qVt;var W3e=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 QM(t,e,r,n,s){return W3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Oi(s,c,Rp,xp).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 Al(`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 ul(`Artifact not found for name: ${t}
`)}var kRe=pe(DRe(),1);function kA(){return`@actions/artifact-${kRe.version}`}var iC=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"}},Al=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},ul=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},sh=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"}},ll=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"}};ll.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var ep=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"}};ep.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var tp=class extends Error{};tp.prototype.name="InvalidTokenError";function mvt(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 Evt(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 mvt(e)}catch{return atob(e)}}function vRe(t,e){if(typeof t!="string")throw new tp("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 tp(`Invalid token specified: missing part #${r+1}`);let s;try{s=Evt(n)}catch(i){throw new tp(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new tp(`Invalid token specified: invalid json for part #${r+1} (${i.message})`)}}var E_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function vA(){let t=p_(),e=vRe(t);if(!e.scp)throw E_;let r=e.scp.split(" ");if(r.length===0)throw E_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw E_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return q(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),q(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw E_}function _Re(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Sc(r),Sc(encodeURIComponent(r)))}catch(e){q(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function FRe(t){if(typeof t!="object"||t===null){q("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&_Re(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&_Re(t.signed_url)}var C_=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())})},Aj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=p_();this.baseUrl=pRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new $n(e,[new hu(i)])}request(e,r,n,s){return C_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;q(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>C_(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 C_(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(),q(`[Response] - ${a.message.statusCode}`),q(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(FRe(A),q(`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(ep.isUsageErrorMessage(A.msg))throw new ep;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&q(`Raw Body: ${s}`),a instanceof ep)throw a;if(ll.isNetworkErrorCode(a?.code))throw new ll(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);re(`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 C_(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 _A(t){let e=new Aj(kA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new m_(e)}import*as oC from"fs";import{normalize as MRe,resolve as LRe}from"path";function URe(t){if(!oC.existsSync(t))throw n 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);re(`Redirecting to blob download url: ${j3e(u)}`);try{re(`Starting download of artifact to: ${r}`);let l=yield K3e(u,r,e?.skipDecompress);re("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,q(`Computed digest: ${l.sha256Digest}`),q(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function Z3e(){return eI(this,arguments,void 0,function*(t=mRe()){return(yield t7t(t))?q(`Artifact destination folder already exists: ${t}`):(q(`Artifact destination folder does not exist, creating: ${t}`),yield Y3e.mkdir(t,{recursive:!0})),t})}var n7t=5,s7t=[400,401,403,404,422];function tI(t,e=n7t,r=s7t){var n;if(e<=0)return[{enabled:!1},t.request];let s={enabled:!0};r.length>0&&(s.doNotRetry=r);let i=Object.assign(Object.assign({},t.request),{retries:e});return q(`GitHub client configured with: (retries: ${i.retries}, retry-exempt-status-code: ${(n=s.doNotRetry)!==null&&n!==void 0?n:"octokit default: [400, 401, 403, 404, 422]"})`),[s,i]}var e8e="6.0.0";function Rp(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})})}Rp.VERSION=e8e;var n8e=pe(t8e(),1);var SM=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 i7t="0.0.0-development";async function r8e(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 o7t(t,e,r,n){let s=new n8e.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(a7t.bind(null,t,e,r),n)}async function a7t(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 SM(s.data.errors[0].message,500,{request:n,response:s});return r8e(t,e,i,n)}return s}function Dp(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",r8e.bind(null,r,t)),t.hook.wrap("request",o7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Dp.VERSION=i7t;var s8e=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 NM(t,e,r,n,s){return s8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},u=yield Oi(s,c,Dp,Rp).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 Al(`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 ul(`Artifact not found for name: ${t}
Please ensure that your artifact is not expired and the artifact was uploaded using a compatible version of toolkit/upload-artifact.
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function J3e(t){return W3e(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ul(`Artifact not found for name: ${t}
For more information, visit the GitHub Artifacts FAQ: https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md`);let l=u.data.artifacts[0];return u.data.artifacts.length>1&&(l=u.data.artifacts.sort((d,h)=>h.id-d.id)[0],q(`More than one artifact found for a single name, returning newest (id: ${l.id})`)),{artifact:{name:l.name,id:l.id,size:l.size_in_bytes,createdAt:l.created_at?new Date(l.created_at):void 0,digest:l.digest}}})}function i8e(t){return s8e(this,void 0,void 0,function*(){var e;let r=_A(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=vA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:gn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new ul(`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],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var z3e=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 j3e(t,e,r,n,s){return z3e(this,void 0,void 0,function*(){var i;let[o,a]=eI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Oi(s,c,Rp,xp),u=yield QM(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 Al(`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 K3e(t){return z3e(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ul(`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],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var $3e=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())})},wM=cRe(),SM=100,WVt=Math.ceil(wM/SM);function X3e(t,e,r,n){return $3e(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(cf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Oi(a,d,Rp,xp),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:SM,page:f}),E=Math.ceil(g.total_count/SM),m=g.total_count;m>wM&&(Ke(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${wM}. Results will be incomplete as only the first ${wM} artifacts will be returned`),E=WVt);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++){q(`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:SM,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=e8e(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function Z3e(){return $3e(this,arguments,void 0,function*(t=!1){let e=_A(),{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?lo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=e8e(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function e8e(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 b1=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())})},JVt=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},tI=class{uploadArtifact(e,r,n,s){return b1(this,void 0,void 0,function*(){try{if(tC())throw new sh;return $Oe(e,r,n,s)}catch(i){throw Ke(`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],q(`More than one artifact found for a single name, returning newest (id: ${a.databaseId})`)),{artifact:{name:a.name,id:Number(a.databaseId),size:Number(a.size),createdAt:a.createdAt?lo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var o8e=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 a8e(t,e,r,n,s){return o8e(this,void 0,void 0,function*(){var i;let[o,a]=tI(cf),c={log:void 0,userAgent:kA(),previews:void 0,retry:o,request:a},A=Oi(s,c,Dp,Rp),u=yield NM(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 Al(`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 c8e(t){return o8e(this,void 0,void 0,function*(){let e=_A(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=vA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:gn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new ul(`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],q(`More than one artifact found for a single name, returning newest (id: ${o.databaseId})`));let a={workflowRunBackendId:o.workflowRunBackendId,workflowJobRunBackendId:o.workflowJobRunBackendId,name:o.name},c=yield e.DeleteArtifact(a);return re(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var A8e=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())})},TM=IRe(),xM=100,c7t=Math.ceil(TM/xM);function u8e(t,e,r,n){return A8e(this,arguments,void 0,function*(s,i,o,a,c=!1){re(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=tI(cf),d={log:void 0,userAgent:kA(),previews:void 0,retry:u,request:l},h=Oi(a,d,Dp,Rp),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:xM,page:f}),E=Math.ceil(g.total_count/xM),m=g.total_count;m>TM&&(je(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${TM}. Results will be incomplete as only the first ${TM} artifacts will be returned`),E=c7t);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++){q(`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:xM,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=d8e(A)),re(`Found ${A.length} artifact(s)`),{artifacts:A}})}function l8e(){return A8e(this,arguments,void 0,function*(t=!1){let e=_A(),{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?lo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=d8e(o)),re(`Found ${o.length} artifact(s)`),{artifacts:o}})}function d8e(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 Q1=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())})},A7t=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},rI=class{uploadArtifact(e,r,n,s){return Q1(this,void 0,void 0,function*(){try{if(rC())throw new sh;return A3e(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 b1(this,void 0,void 0,function*(){try{if(tC())throw new sh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=JVt(r,["findBy"]);return P3e(e,n,s,i,o)}return O3e(e,r)}catch(n){throw Ke(`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 Q1(this,void 0,void 0,function*(){try{if(rC())throw new sh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=A7t(r,["findBy"]);return $3e(e,n,s,i,o)}return X3e(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.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return b1(this,void 0,void 0,function*(){try{if(tC())throw new sh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return X3e(r,n,s,i,e?.latest)}return Z3e(e?.latest)}catch(r){throw Ke(`Listing Artifacts failed with error: ${r}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}listArtifacts(e){return Q1(this,void 0,void 0,function*(){try{if(rC())throw new sh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return u8e(r,n,s,i,e?.latest)}return l8e(e?.latest)}catch(r){throw je(`Listing Artifacts failed with error: ${r}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),r}})}getArtifact(e,r){return b1(this,void 0,void 0,function*(){try{if(tC())throw new sh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return QM(e,n,s,i,o)}return J3e(e)}catch(n){throw Ke(`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 Q1(this,void 0,void 0,function*(){try{if(rC())throw new sh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return NM(e,n,s,i,o)}return i8e(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.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return b1(this,void 0,void 0,function*(){try{if(tC())throw new sh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return j3e(e,i,n,s,o)}return K3e(e)}catch(n){throw Ke(`Delete Artifact failed with error: ${n}.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}deleteArtifact(e,r){return Q1(this,void 0,void 0,function*(){try{if(rC())throw new sh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return a8e(e,i,n,s,o)}return c8e(e)}catch(n){throw je(`Delete Artifact failed with error: ${n}.
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var gRr=new tI;import*as NM from"path";import tZ from"fs";var zVt="dependency-graph_";async function r8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await t8e(t,!1);return;case"generate-submit-and-upload":await t8e(t,!0);return;case"generate-and-upload":await jVt(t)}}catch(r){r7t(t,e,r)}}async function t8e(t,e){if(s8e()){re("Dependency graph not supported in the ACT environment.");return}let r=await n8e();try{await KVt(r)}catch(n){try{await eZ(r,t)}catch(s){re(String(s))}throw n}e&&await eZ(r,t)}async function jVt(t){if(s8e()){re("Dependency graph not supported in the ACT environment.");return}await eZ(await n8e(),t)}async function n8e(){let r=(await(await SG(`${ZVt()}/**/*.json`)).glob()).filter(n=>!e7t(n));return r.forEach(t7t),re(`Found dependency graph files: ${r.join(", ")}`),r}async function eZ(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=Ab(),n=new tI;for(let s of t){let i=rZ(s);re(`Uploading dependency graph file: ${i}`);let o=`${zVt}${NM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function KVt(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await XVt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=$Vt(e,r)),r}}function $Vt(t,e){let n=`Dependency submission failed for ${rZ(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 LRr=new rI;import*as RM from"path";import aZ from"fs";var u7t="dependency-graph_";async function f8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await h8e(t,!1);return;case"generate-submit-and-upload":await h8e(t,!0);return;case"generate-and-upload":await l7t(t)}}catch(r){E7t(t,e,r)}}async function h8e(t,e){if(p8e()){re("Dependency graph not supported in the ACT environment.");return}let r=await g8e();try{await d7t(r)}catch(n){try{await oZ(r,t)}catch(s){re(String(s))}throw n}e&&await oZ(r,t)}async function l7t(t){if(p8e()){re("Dependency graph not supported in the ACT environment.");return}await oZ(await g8e(),t)}async function g8e(){let r=(await(await kG(`${g7t()}/**/*.json`)).glob()).filter(n=>!p7t(n));return r.forEach(m7t),re(`Found dependency graph files: ${r.join(", ")}`),r}async function oZ(t,e){if(t.length===0){re("No dependency graph files found to upload.");return}let r=ub(),n=new rI;for(let s of t){let i=cZ(s);re(`Uploading dependency graph file: ${i}`);let o=`${u7t}${RM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function d7t(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await f7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=h7t(e,r)),r}}function h7t(t,e){let n=`Dependency submission failed for ${cZ(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 XVt(t){let e=n7t(),r=tZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=mu.repo.owner,n.repo=mu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=rZ(t);vce(`Submitted ${i}: ${s.data.message}`)}function ZVt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function e7t(t){let e=`${t}.processed`;return tZ.existsSync(e)}function t7t(t){let e=`${t}.processed`;tZ.writeFileSync(e,"")}function r7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new eC(r);Ke(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function n7t(){return Oi(cb())}function rZ(t){let e=Ab();return NM.relative(e,t)}function s8e(){return process.env.ACT!==void 0}function i7t(t=process.platform){return t==="win32"?50:0}async function i8e(t=process.platform){let e=i7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>Cz(t));async function o7t(){try{Yme(),qme(),await nRe(new YD,new ob,new VD)&&await r8e(new U0)}catch(t){Cz(t)}await i8e()}o7t();export{o7t as run};
`:n}async function f7t(t){let e=C7t(),r=aZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=mu.repo.owner,n.repo=mu.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=cZ(t);eT(`Submitted ${i}: ${s.data.message}`)}function g7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function p7t(t){let e=`${t}.processed`;return aZ.existsSync(e)}function m7t(t){let e=`${t}.processed`;aZ.writeFileSync(e,"")}function E7t(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new tC(r);je(`Failed to ${e} dependency graph. Will continue.
${String(r)}`)}function C7t(){return Oi(Ab())}function cZ(t){let e=ub();return RM.relative(e,t)}function p8e(){return process.env.ACT!==void 0}function y7t(t=process.platform){return t==="win32"?50:0}async function m8e(t=process.platform){let e=y7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>wz(t));async function B7t(){try{jme(),zme(),await gRe(new WD,new ab,new JD)&&await f8e(new P0)}catch(t){wz(t)}await m8e()}B7t();export{B7t as run};
/*! Bundled license information:
undici/lib/web/fetch/body.js:
+4 -4
View File
@@ -1,7 +1,7 @@
{
"version": 3,
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
"mappings": ";u3BAAA,IAAAA,GAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,GAAQ,EAAQ,OAAO,EACvBC,IAAS,EAAQ,QAAQ,EACzBC,IAAS,EAAQ,QAAQ,EACzBC,IAAO,EAAQ,MAAM,EAGzBP,GAAQ,aAAeQ,IACvBR,GAAQ,cAAgBS,IACxBT,GAAQ,cAAgBU,IACxBV,GAAQ,eAAiBW,IAGzB,SAASH,IAAaI,EAAS,CAC7B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACdU,CACT,CAEA,SAASJ,IAAcG,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUV,GAAK,QACrBU,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,GAAM,QACtBS,EAAM,aAAeE,GACrBF,EAAM,YAAc,IACbA,CACT,CAGA,SAASC,GAAeF,EAAS,CAC/B,IAAII,EAAO,KACXA,EAAK,QAAUJ,GAAW,CAAC,EAC3BI,EAAK,aAAeA,EAAK,QAAQ,OAAS,CAAC,EAC3CA,EAAK,WAAaA,EAAK,QAAQ,YAAcb,GAAK,MAAM,kBACxDa,EAAK,SAAW,CAAC,EACjBA,EAAK,QAAU,CAAC,EAEhBA,EAAK,GAAG,OAAQ,SAAgBC,EAAQC,EAAMC,EAAMC,EAAc,CAEhE,QADIR,EAAUS,GAAUH,EAAMC,EAAMC,CAAY,EACvCE,EAAI,EAAGC,EAAMP,EAAK,SAAS,OAAQM,EAAIC,EAAK,EAAED,EAAG,CACxD,IAAIE,EAAUR,EAAK,SAASM,CAAC,EAC7B,GAAIE,EAAQ,OAASZ,EAAQ,MAAQY,EAAQ,OAASZ,EAAQ,KAAM,CAGlEI,EAAK,SAAS,OAAOM,EAAG,CAAC,EACzBE,EAAQ,QAAQ,SAASP,CAAM,EAC/B,MACF,CACF,CACAA,EAAO,QAAQ,EACfD,EAAK,aAAaC,CAAM,CAC1B,CAAC,CACH,CACAV,IAAK,SAASO,GAAgBT,IAAO,YAAY,EAEjDS,GAAe,UAAU,WAAa,SAAoBW,EAAKP,EAAMC,EAAMC,EAAc,CACvF,IAAIJ,EAAO,KACPJ,EAAUc,GAAa,CAAC,QAASD,CAAG,EAAGT,EAAK,QAASK,GAAUH,EAAMC,EAAMC,CAAY,CAAC,EAE5F,GAAIJ,EAAK,QAAQ,QAAU,KAAK,WAAY,CAE1CA,EAAK,SAAS,KAAKJ,CAAO,EAC1B,MACF,CAGAI,EAAK,aAAaJ,EAAS,SAASK,EAAQ,CAC1CA,EAAO,GAAG,OAAQU,CAAM,EACxBV,EAAO,GAAG,QAASW,CAAe,EAClCX,EAAO,GAAG,cAAeW,CAAe,EACxCH,EAAI,SAASR,CAAM,EAEnB,SAASU,GAAS,CAChBX,EAAK,KAAK,OAAQC,EAAQL,CAAO,CACnC,CAEA,SAASgB,EAAgBC,EAAK,CAC5Bb,EAAK,aAAaC,CAAM,EACxBA,EAAO,eAAe,OAAQU,CAAM,EACpCV,EAAO,eAAe,QAASW,CAAe,EAC9CX,EAAO,eAAe,cAAeW,CAAe,CACtD,CACF,CAAC,CACH,EAEAd,GAAe,UAAU,aAAe,SAAsBF,EAASkB,EAAI,CACzE,IAAId,EAAO,KACPe,EAAc,CAAC,EACnBf,EAAK,QAAQ,KAAKe,CAAW,EAE7B,IAAIC,EAAiBN,GAAa,CAAC,EAAGV,EAAK,aAAc,CACvD,OAAQ,UACR,KAAMJ,EAAQ,KAAO,IAAMA,EAAQ,KACnC,MAAO,GACP,QAAS,CACP,KAAMA,EAAQ,KAAO,IAAMA,EAAQ,IACrC,CACF,CAAC,EACGA,EAAQ,eACVoB,EAAe,aAAepB,EAAQ,cAEpCoB,EAAe,YACjBA,EAAe,QAAUA,EAAe,SAAW,CAAC,EACpDA,EAAe,QAAQ,qBAAqB,EAAI,SAC5C,IAAI,OAAOA,EAAe,SAAS,EAAE,SAAS,QAAQ,GAG5DC,GAAM,wBAAwB,EAC9B,IAAIC,EAAalB,EAAK,QAAQgB,CAAc,EAC5CE,EAAW,4BAA8B,GACzCA,EAAW,KAAK,WAAYC,CAAU,EACtCD,EAAW,KAAK,UAAWE,CAAS,EACpCF,EAAW,KAAK,UAAWG,CAAS,EACpCH,EAAW,KAAK,QAASI,CAAO,EAChCJ,EAAW,IAAI,EAEf,SAASC,EAAWI,EAAK,CAEvBA,EAAI,QAAU,EAChB,CAEA,SAASH,EAAUG,EAAKtB,EAAQuB,EAAM,CAEpC,QAAQ,SAAS,UAAW,CAC1BH,EAAUE,EAAKtB,EAAQuB,CAAI,CAC7B,CAAC,CACH,CAEA,SAASH,EAAUE,EAAKtB,EAAQuB,EAAM,CAIpC,GAHAN,EAAW,mBAAmB,EAC9BjB,EAAO,mBAAmB,EAEtBsB,EAAI,aAAe,IAAK,CAC1BN,GAAM,2DACJM,EAAI,UAAU,EAChBtB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,yDACJF,EAAI,UAAU,EAChCE,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,GAAIS,EAAK,OAAS,EAAG,CACnBP,GAAM,sCAAsC,EAC5ChB,EAAO,QAAQ,EACf,IAAIwB,EAAQ,IAAI,MAAM,sCAAsC,EAC5DA,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,EAC7B,MACF,CACA,OAAAE,GAAM,sCAAsC,EAC5CjB,EAAK,QAAQA,EAAK,QAAQ,QAAQe,CAAW,CAAC,EAAId,EAC3Ca,EAAGb,CAAM,CAClB,CAEA,SAASqB,EAAQI,EAAO,CACtBR,EAAW,mBAAmB,EAE9BD,GAAM;AAAA,EACAS,EAAM,QAASA,EAAM,KAAK,EAChC,IAAID,EAAQ,IAAI,MAAM,oDACWC,EAAM,OAAO,EAC9CD,EAAM,KAAO,aACb7B,EAAQ,QAAQ,KAAK,QAAS6B,CAAK,EACnCzB,EAAK,aAAae,CAAW,CAC/B,CACF,EAEAjB,GAAe,UAAU,aAAe,SAAsBG,EAAQ,CACpE,IAAI0B,EAAM,KAAK,QAAQ,QAAQ1B,CAAM,EACrC,GAAI0B,IAAQ,GAGZ,MAAK,QAAQ,OAAOA,EAAK,CAAC,EAE1B,IAAInB,EAAU,KAAK,SAAS,MAAM,EAC9BA,GAGF,KAAK,aAAaA,EAAS,SAASP,EAAQ,CAC1CO,EAAQ,QAAQ,SAASP,CAAM,CACjC,CAAC,EAEL,EAEA,SAASF,GAAmBH,EAASkB,EAAI,CACvC,IAAId,EAAO,KACXF,GAAe,UAAU,aAAa,KAAKE,EAAMJ,EAAS,SAASK,EAAQ,CACzE,IAAI2B,EAAahC,EAAQ,QAAQ,UAAU,MAAM,EAC7CiC,EAAanB,GAAa,CAAC,EAAGV,EAAK,QAAS,CAC9C,OAAQC,EACR,WAAY2B,EAAaA,EAAW,QAAQ,OAAQ,EAAE,EAAIhC,EAAQ,IACpE,CAAC,EAGGkC,EAAe5C,IAAI,QAAQ,EAAG2C,CAAU,EAC5C7B,EAAK,QAAQA,EAAK,QAAQ,QAAQC,CAAM,CAAC,EAAI6B,EAC7ChB,EAAGgB,CAAY,CACjB,CAAC,CACH,CAGA,SAASzB,GAAUH,EAAMC,EAAMC,EAAc,CAC3C,OAAI,OAAOF,GAAS,SACX,CACL,KAAMA,EACN,KAAMC,EACN,aAAcC,CAChB,EAEKF,CACT,CAEA,SAASQ,GAAaqB,EAAQ,CAC5B,QAASzB,EAAI,EAAGC,EAAM,UAAU,OAAQD,EAAIC,EAAK,EAAED,EAAG,CACpD,IAAI0B,EAAY,UAAU1B,CAAC,EAC3B,GAAI,OAAO0B,GAAc,SAEvB,QADIC,EAAO,OAAO,KAAKD,CAAS,EACvBE,EAAI,EAAGC,EAASF,EAAK,OAAQC,EAAIC,EAAQ,EAAED,EAAG,CACrD,IAAIE,EAAIH,EAAKC,CAAC,EACVF,EAAUI,CAAC,IAAM,SACnBL,EAAOK,CAAC,EAAIJ,EAAUI,CAAC,EAE3B,CAEJ,CACA,OAAOL,CACT,CAGA,IAAId,GACA,QAAQ,IAAI,YAAc,aAAa,KAAK,QAAQ,IAAI,UAAU,EACpEA,GAAQ,UAAW,CACjB,IAAIoB,EAAO,MAAM,UAAU,MAAM,KAAK,SAAS,EAC3C,OAAOA,EAAK,CAAC,GAAM,SACrBA,EAAK,CAAC,EAAI,WAAaA,EAAK,CAAC,EAE7BA,EAAK,QAAQ,SAAS,EAExB,QAAQ,MAAM,MAAM,QAASA,CAAI,CACnC,EAEApB,GAAQ,UAAW,CAAC,EAEtBjC,GAAQ,MAAQiC,KCvQhB,IAAAqB,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,OCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,KAAA,CAAAA,GAAO,QAAU,CACf,OAAQ,OAAO,OAAO,EACtB,SAAU,OAAO,SAAS,EAC1B,UAAW,OAAO,UAAU,EAC5B,KAAM,OAAO,KAAK,EAClB,SAALine truncated
"names": ["require_tunnel", "__commonJSMin", "exports", "net", "tls", "http", "https", "events", "assert", "util", "httpOverHttp", "httpsOverHttp", "httpOverHttps", "httpsOverHttps", "options", "agent", "TunnelingAgent", "createSecureSocket", "self", "socket", "host", "port", "localAddress", "toOptions", "i", "len", "pending", "req", "mergeOptions", "onFree", "onCloseOrRemove", "err", "cb", "placeholder", "connectOptions", "debug", "connectReq", "onResponse", "onUpgrade", "onConnect", "onError", "res", "head", "error", "cause", "pos", "hostHeader", "tlsOptions", "secureSocket", "target", "overrides", "keys", "j", "keyLen", "k", "args", "require_tunnel", "__commonJSMin", "exports", "module", "require_symbols", "__commonJSMin", "exports", "module", "require_errors", "__commonJSMin", "exports", "module", "kUndiciError", "UndiciError", "message", "instance", "kConnectTimeoutError", "ConnectTimeoutError", "kHeadersTimeoutError", "HeadersTimeoutError", "kHeadersOverflowError", "HeadersOverflowError", "kBodyTimeoutError", "BodyTimeoutError", "kResponseStatusCodeError", "ResponseStatusCodeError", "statusCode", "headers", "body", "kInvalidArgumentError", "InvalidArgumentError", "kInvalidReturnValueError", "InvalidReturnValueError", "kAbortError", "AbortError", "kRequestAbortedError", "RequestAbortedError", "kInformationalError", "InformationalError", "kRequestContentLengthMismatchError", "RequestContentLengthMismatchError", "kResponseContentLengthMismatchError", "ResponseContentLengthMismatchError", "kClientDestroyedError", "ClientDestroyedError", "kClientClosedError", "ClientClosedError", "kSocketError", "SocketError", "socket", "kNotSupportedError", "NotSupportedError", "kBalancedPoolMissingUpstreamError", "BalancedPoolMissingUpstreamError", "kHTTPParserError", "HTTPParserError", "code", "data", "kResponseExceededMaxSizeError", "ResponseExceededMaxSizeError", "kRequestRetryError", "RequestRetryError", "kResponseError", "ResponseError", "kSecureProxyConnectionError", "SecureProxyConnectionError", "cause", "options", "kMessageSizeExceededError", "MessageSizeExceededError", "require_constants", "__commonJSMin", "exports", "module", "headerNameLowerCasedRecord", "wellknownHeaderNames", "i", "key", "lowerCasedKey", "require_tree", "__commonJSMin", "exports", "module", "wellknownHeaderNames", "headerNameLowerCasedRecord", "TstNode", "_TstNode", "key", "value", "index", "length", "node", "code", "keylength", "TernarySearchTree", "tree", "i", "require_util", "__commonJSMin", "exports", "module", "assert", "kDestroyed", "kBodyUsed", "kListeners", "kBody", "IncomingMessage", "stream", "net", "Blob", "nodeUtil", "stringify", "EE", "InvalidArgumentError", "headerNameLowerCasedRecord", "tree", "nodeMajor", "nodeMinor", "v", "BodyAsyncIterable", "body", "wrapRequestBody", "isStream", "bodyLength", "isIterable", "nop", "obj", "isBlobLike", "object", "sTag", "buildURL", "url", "queryParams", "stringified", "isValidPort", "port", "value", "isHttpOrHttpsPrefixed", "parseURL", "origin", "path", "parseOrigin", "getHostname", "host", "idx", "getServerName", "servername", "deepClone", "isAsyncIterable", "state", "isBuffer", "isDestroyed", "destroy", "err", "KEEPALIVE_TIMEOUT_EXPR", "parseKeepAliveTimeout", "val", "m", "headerNameToString", "bufferToLowerCasedHeaderName", "parseHeaders", "headers", "i", "key", "headersValue", "x", "parseRawHeaders", "len", "ret", "hasContentLength", "contentDispositionIdx", "kLen", "n", "buffer", "validateHandler", "handler", "method", "upgrade", "isDisturbed", "isErrored", "isReadable", "getSocketInfo", "socket", "ReadableStreamFrom", "iterable", "iterator", "controller", "done", "buf", "reason", "isFormDataLike", "addAbortListener", "signal", "listener", "hasToWellFormed", "hasIsWellFormed", "toUSVString", "isUSVString", "isTokenCharCode", "c", "isValidHTTPToken", "characters", "headerCharRegex", "isValidHeaderValue", "parseRangeHeader", "range", "addListener", "name", "removeAllListeners", "errorRequest", "client", "request", "kEnumerableProperty", "normalizedMethodRecordsBase", "normalizedMethodRecords", "require_diagnostics", "__commonJSMin", "exports", "module", "diagnosticsChannel", "util", "undiciDebugLog", "fetchDebuglog", "websocketDebuglog", "isClientSet", "channels", "debuglog", "evt", "version", "protocol", "port", "host", "error", "method", "path", "origin", "statusCode", "address", "websocket", "code", "reason", "err", "require_request", "__commonJSMin", "exports", "module", "InvalidArgumentError", "NotSupportedError", "assert", "isValidHTTPToken", "isValidHeaderValue", "isStream", "destroy", "isBuffer", "isFormDataLike", "isIterable", "isBlobLike", "buildURL", "validateHandler", "getServerName", "normalizedMethodRecords", "channels", "headerNameLowerCasedRecord", "invalidPathRegex", "kHandler", "Request", "origin", "path", "method", "body", "headers", "query", "idempotent", "blocking", "upgrade", "headersTimeout", "bodyTimeout", "reset", "throwOnError", "expectContinue", "servername",Line truncated
}