mirror of
https://github.com/gradle/actions.git
synced 2026-10-16 19:57:12 +08:00
[bot] Update dist directory
This commit is contained in:
8 files changed
+566
-566
No files matched your search
+135
-135
@@ -1,120 +1,120 @@
|
||||
import {createRequire} from 'module';const require=createRequire(import.meta.url);
|
||||
var L8e=Object.create;var MM=Object.defineProperty;var U8e=Object.getOwnPropertyDescriptor;var P8e=Object.getOwnPropertyNames;var O8e=Object.getPrototypeOf,H8e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Sa=(t,e)=>{for(var r in e)MM(t,r,{get:e[r],enumerable:!0})},G8e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of P8e(e))!H8e.call(t,s)&&s!==r&&MM(t,s,{get:()=>e[s],enumerable:!(n=U8e(e,s))||n.enumerable});return t};var Ae=(t,e,r)=>(r=t!=null?L8e(O8e(t)):{},G8e(e||!t||!t.__esModule?MM(r,"default",{value:t,enumerable:!0}):r,t));var kZ=E(Fp=>{"use strict";var x7t=b("net"),z8e=b("tls"),OM=b("http"),xZ=b("https"),j8e=b("events"),R7t=b("assert"),K8e=b("util");Fp.httpOverHttp=$8e;Fp.httpsOverHttp=X8e;Fp.httpOverHttps=Z8e;Fp.httpsOverHttps=e4e;function $8e(t){var e=new au(t);return e.request=OM.request,e}function X8e(t){var e=new au(t);return e.request=OM.request,e.createSocket=RZ,e.defaultPort=443,e}function Z8e(t){var e=new au(t);return e.request=xZ.request,e}function e4e(t){var e=new au(t);return e.request=xZ.request,e.createSocket=RZ,e.defaultPort=443,e}function au(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||OM.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=DZ(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)})}K8e.inherits(au,j8e.EventEmitter);au.prototype.addRequest=function(e,r,n,s){var i=this,o=HM({request:e},i.options,DZ(r,n,s));if(i.sockets.length>=this.maxSockets){i.requests.push(o);return}i.createSocket(o,function(a){a.on("free",c),a.on("close",A),a.on("agentRemove",A),e.onSocket(a);function c(){i.emit("free",a,o)}function A(u){i.removeSocket(a),a.removeListener("free",c),a.removeListener("close",A),a.removeListener("agentRemove",A)}})};au.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=HM({},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")),Tl("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){Tl("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){Tl("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 Tl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Tl(`tunneling socket could not be established, cause=%s
|
||||
`,l.message,l.stack);var d=new Error("tunneling socket could not be established, cause="+l.message);d.code="ECONNRESET",e.request.emit("error",d),n.removeSocket(s)}};au.prototype.removeSocket=function(e){var r=this.sockets.indexOf(e);if(r!==-1){this.sockets.splice(r,1);var n=this.requests.shift();n&&this.createSocket(n,function(s){n.request.onSocket(s)})}};function RZ(t,e){var r=this;au.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=HM({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=z8e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function DZ(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function HM(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 Tl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Tl=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)}:Tl=function(){};Fp.debug=Tl});var GM=E((k7t,vZ)=>{vZ.exports=kZ()});var yr=E((v7t,_Z)=>{_Z.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((_7t,iee)=>{"use strict";var FZ=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[FZ]===!0}[FZ]=!0},MZ=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),qM=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[MZ]===!0}[MZ]=!0},LZ=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),YM=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[LZ]===!0}[LZ]=!0},UZ=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),VM=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[UZ]===!0}[UZ]=!0},PZ=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),WM=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[PZ]===!0}[PZ]=!0},OZ=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),JM=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 p5e(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(e5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function m5e(){return"allowed"}function E5e(){return"success"}function C5e(){return"success"}function I5e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function y5e(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&&UL(t.origin)&&!UL(II(t))&&(e=null);break;case"same-origin":oS(t,II(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function Vp(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:Vp(t.domainLookupStartTime,r),domainLookupEndTime:Vp(t.domainLookupEndTime,r),connectionStartTime:Vp(t.connectionStartTime,r),connectionEndTime:Vp(t.connectionEndTime,r),secureConnectionStartTime:Vp(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function b5e(t){return Vp(i5e.now(),t)}function Q5e(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 Cte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function w5e(t){return{referrerPolicy:t.referrerPolicy}}function S5e(t){let e=t.referrerPolicy;Hh(e);let r=null;if(t.referrer==="client"){let a=hte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=LL(r),s=LL(r,!0);n.toString().length>4096&&(n=s);let i=oS(t,n),o=CI(n)&&!CI(t.url);switch(e){case"origin":return s??LL(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=II(t);return oS(n,a)?n:CI(n)&&!CI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function LL(t,e){return Hh(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 CI(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 N5e(t,e){if(iS===void 0)return!0;let r=Ite(e);if(r==="no metadata"||r.length===0)return!0;let n=x5e(r),s=R5e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=iS.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)),D5e(c,a))return!0}return!1}var T5e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function Ite(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=T5e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();gte.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function x5e(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 R5e(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 D5e(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 k5e(t){}function oS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function v5e(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function _5e(t){return t.controller.state==="aborted"}function F5e(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function M5e(t){return c5e[t.toLowerCase()]??t}function L5e(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return Hh(typeof e=="string"),e}var U5e=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function yte(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function fHe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function gHe(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 pHe(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&&AS(t,dHe,i)||i.position===t.length-4&&AS(t,hHe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=mHe(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",fHe(u)||(u=""),h=new uHe([d],A,{type:u})):h=iHe(Buffer.from(d)),cS(vte(c)),cS(typeof h=="string"&&vte(h)||aHe(h)),s.push(cHe(c,h,A))}}function mHe(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=VL(o,!0,!0,a=>a===9||a===32),!oHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Jp(a=>a===32||a===9,t,e),sHe(o)){case"content-disposition":{if(r=n=null,!AS(t,lHe,e)||(e.position+=17,r=Mte(t,e),r===null))return"failure";if(AS(t,Fte,e)){let a=e.position+Fte.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=Mte(t,e),n===null))return"failure"}break}case"content-type":{let a=Jp(c=>c!==10&&c!==13,t,e);a=VL(a,!1,!0,c=>c===9||c===32),s=_te(a);break}case"content-transfer-encoding":{let a=Jp(c=>c!==10&&c!==13,t,e);a=VL(a,!1,!0,c=>c===9||c===32),i=_te(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 Mte(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 VL(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 AS(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}Lte.exports={multipartFormDataParser:pHe,validateBoundary:gHe}});var Kp=E((iWt,zte)=>{"use strict";var bI=dt(),{ReadableStreamFrom:EHe,isBlobLike:Pte,isReadableStreamLike:CHe,readableStreamClose:IHe,createDeferredPromise:yHe,fullyReadBody:BHe,extractMimeType:bHe,utf8DecodeBytes:Gte}=Ti(),{FormData:Ote}=BI(),{kState:jp}=xl(),{webidl:QHe}=Kn(),{Blob:wHe}=b("node:buffer"),WL=b("node:assert"),{isErrored:qte,isDisturbed:SHe}=b("node:stream"),{isArrayBuffer:NHe}=b("node:util/types"),{serializeAMimeType:THe}=Ks(),{multipartFormDataParser:xHe}=Ute(),JL;try{let t=b("node:crypto");JL=e=>t.randomInt(0,e)}catch{JL=t=>Math.floor(Math.random(t))}var uS=new TextEncoder;function RHe(){}var Yte=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Vte;Yte&&(Vte=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!SHe(e)&&!qte(e)&&e.cancel("Response object has been garbage collected").catch(RHe)}));function Wte(t,e=!1){let r=null;t instanceof ReadableStream?r=t:Pte(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?uS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>IHe(c))},start(){},type:"bytes"}),WL(CHe(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(NHe(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(bI.isFormDataLike(t)){let c=`----formdata-undici-0${`${JL(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
var N4e=Object.create;var $M=Object.defineProperty;var T4e=Object.getOwnPropertyDescriptor;var x4e=Object.getOwnPropertyNames;var R4e=Object.getPrototypeOf,D4e=Object.prototype.hasOwnProperty;var b=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var E=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Na=(t,e)=>{for(var r in e)$M(t,r,{get:e[r],enumerable:!0})},k4e=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of x4e(e))!D4e.call(t,s)&&s!==r&&$M(t,s,{get:()=>e[s],enumerable:!(n=T4e(e,s))||n.enumerable});return t};var Ae=(t,e,r)=>(r=t!=null?N4e(R4e(t)):{},k4e(e||!t||!t.__esModule?$M(r,"default",{value:t,enumerable:!0}):r,t));var tee=E(Up=>{"use strict";var _Wt=b("net"),U4e=b("tls"),tL=b("http"),XZ=b("https"),P4e=b("events"),FWt=b("assert"),O4e=b("util");Up.httpOverHttp=H4e;Up.httpsOverHttp=G4e;Up.httpOverHttps=q4e;Up.httpsOverHttps=Y4e;function H4e(t){var e=new cu(t);return e.request=tL.request,e}function G4e(t){var e=new cu(t);return e.request=tL.request,e.createSocket=ZZ,e.defaultPort=443,e}function q4e(t){var e=new cu(t);return e.request=XZ.request,e}function Y4e(t){var e=new cu(t);return e.request=XZ.request,e.createSocket=ZZ,e.defaultPort=443,e}function cu(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||tL.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=eee(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)})}O4e.inherits(cu,P4e.EventEmitter);cu.prototype.addRequest=function(e,r,n,s){var i=this,o=rL({request:e},i.options,eee(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)}})};cu.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=rL({},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")),xl("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){xl("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){xl("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 xl("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),xl(`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)}};cu.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 ZZ(t,e){var r=this;cu.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=rL({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=U4e.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function eee(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function rL(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 xl;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?xl=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)}:xl=function(){};Up.debug=xl});var nL=E((LWt,ree)=>{ree.exports=tee()});var yr=E((UWt,nee)=>{nee.exports={kClose:Symbol("close"),kDestroy:Symbol("destroy"),kDispatch:Symbol("dispatch"),kUrl:Symbol("url"),kWriting:Symbol("writing"),kResuming:Symbol("resuming"),kQueue:Symbol("queue"),kConnect:Symbol("connect"),kConnecting:Symbol("connecting"),kKeepAliveDefaultTimeout:Symbol("default keep alive timeout"),kKeepAliveMaxTimeout:Symbol("max keep alive timeout"),kKeepAliveTimeoutThreshold:Symbol("keep alive timeout threshold"),kKeepAliveTimeoutValue:Symbol("keep alive timeout"),kKeepAlive:Symbol("keep alive"),kHeadersTimeout:Symbol("headers timeout"),kBodyTimeout:Symbol("body timeout"),kServerName:Symbol("server name"),kLocalAddress:Symbol("local address"),kHost:Symbol("host"),kNoRef:Symbol("no ref"),kBodyUsed:Symbol("used"),kBody:Symbol("abstracted request body"),kRunning:Symbol("running"),kBlocking:Symbol("blocking"),kPending:Symbol("pending"),kSize:Symbol("size"),kBusy:Symbol("busy"),kQueued:Symbol("queued"),kFree:Symbol("free"),kConnected:Symbol("connected"),kClosed:Symbol("closed"),kNeedDrain:Symbol("need drain"),kReset:Symbol("reset"),kDestroyed:Symbol.for("nodejs.stream.destroyed"),kResume:Symbol("resume"),kOnError:Symbol("on error"),kMaxHeadersSize:Symbol("max headers size"),kRunningIdx:Symbol("running index"),kPendingIdx:Symbol("pending index"),kError:Symbol("error"),kClients:Symbol("clients"),kClient:Symbol("client"),kParser:Symbol("parser"),kOnDestroyed:Symbol("destroy callbacks"),kPipelining:Symbol("pipelining"),kSocket:Symbol("socket"),kHostHeader:Symbol("host header"),kConnector:Symbol("connector"),kStrictContentLength:Symbol("strict content length"),kMaxRedirections:Symbol("maxRedirections"),kMaxRequests:Symbol("maxRequestsPerClient"),kProxy:Symbol("proxy agent options"),kCounter:Symbol("socket request counter"),kInterceptors:Symbol("dispatch interceptors"),kMaxResponseSize:Symbol("max response size"),kHTTP2Session:Symbol("http2Session"),kHTTP2SessionState:Symbol("http2Session state"),kRetryHandlerDefaultRetry:Symbol("retry agent default retry"),kConstruct:Symbol("constructable"),kListeners:Symbol("listeners"),kHTTPContext:Symbol("http context"),kMaxConcurrentStreams:Symbol("max concurrent streams"),kNoProxyAgent:Symbol("no proxy agent"),kHttpProxyAgent:Symbol("http proxy agent"),kHttpsProxyAgent:Symbol("https proxy agent")}});var Lt=E((PWt,Tee)=>{"use strict";var see=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[see]===!0}[see]=!0},iee=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),sL=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[iee]===!0}[iee]=!0},oee=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),iL=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[oee]===!0}[oee]=!0},aee=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),oL=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[aee]===!0}[aee]=!0},cee=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),aL=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[cee]===!0}[cee]=!0},Aee=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),cL=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_CO
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function oHe(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(Y5e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function aHe(){return"allowed"}function cHe(){return"success"}function AHe(){return"success"}function uHe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function lHe(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&&ZL(t.origin)&&!ZL(SI(t))&&(e=null);break;case"same-origin":hS(t,SI(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function zp(t,e){return t}function dHe(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 hHe(t){return zp(j5e.now(),t)}function fHe(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 Gte(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function gHe(t){return{referrerPolicy:t.referrerPolicy}}function pHe(t){let e=t.referrerPolicy;qh(e);let r=null;if(t.referrer==="client"){let a=Mte();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=XL(r),s=XL(r,!0);n.toString().length>4096&&(n=s);let i=hS(t,n),o=wI(n)&&!wI(t.url);switch(e){case"origin":return s??XL(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=SI(t);return hS(n,a)?n:wI(n)&&!wI(a)?"no-referrer":s}default:return o?"no-referrer":s}}function XL(t,e){return qh(t instanceof URL),t=new URL(t),t.protocol==="file:"||t.protocol==="about:"||t.protocol==="blank:"?"no-referrer":(t.username="",t.password="",t.hash="",e&&(t.pathname="",t.search=""),t)}function wI(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 mHe(t,e){if(dS===void 0)return!0;let r=qte(e);if(r==="no metadata"||r.length===0)return!0;let n=CHe(r),s=IHe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=dS.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)),yHe(c,a))return!0}return!1}var EHe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function qte(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=EHe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();Ute.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function CHe(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 IHe(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 yHe(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 BHe(t){}function hS(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function bHe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function QHe(t){return t.controller.state==="aborted"}function wHe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function SHe(t){return X5e[t.toLowerCase()]??t}function NHe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return qh(typeof e=="string"),e}var THe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Yte(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function s9e(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function i9e(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 o9e(t,e){gS(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&&pS(t,r9e,i)||i.position===t.length-4&&pS(t,n9e,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=a9e(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",s9e(u)||(u=""),h=new e9e([d],A,{type:u})):h=jHe(Buffer.from(d)),gS(rre(c)),gS(typeof h=="string"&&rre(h)||$He(h)),s.push(XHe(c,h,A))}}function a9e(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=oU(o,!0,!0,a=>a===9||a===32),!KHe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,Kp(a=>a===32||a===9,t,e),zHe(o)){case"content-disposition":{if(r=n=null,!pS(t,t9e,e)||(e.position+=17,r=ire(t,e),r===null))return"failure";if(pS(t,sre,e)){let a=e.position+sre.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=ire(t,e),n===null))return"failure"}break}case"content-type":{let a=Kp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),s=nre(a);break}case"content-transfer-encoding":{let a=Kp(c=>c!==10&&c!==13,t,e);a=oU(a,!1,!0,c=>c===9||c===32),i=nre(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 ire(t,e){gS(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 oU(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 pS(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}ore.exports={multipartFormDataParser:o9e,validateBoundary:i9e}});var Zp=E((uJt,mre)=>{"use strict";var xI=dt(),{ReadableStreamFrom:c9e,isBlobLike:cre,isReadableStreamLike:A9e,readableStreamClose:u9e,createDeferredPromise:l9e,fullyReadBody:d9e,extractMimeType:h9e,utf8DecodeBytes:lre}=xi(),{FormData:Are}=TI(),{kState:Xp}=Rl(),{webidl:f9e}=Kn(),{Blob:g9e}=b("node:buffer"),aU=b("node:assert"),{isErrored:dre,isDisturbed:p9e}=b("node:stream"),{isArrayBuffer:m9e}=b("node:util/types"),{serializeAMimeType:E9e}=Ks(),{multipartFormDataParser:C9e}=are(),cU;try{let t=b("node:crypto");cU=e=>t.randomInt(0,e)}catch{cU=t=>Math.floor(Math.random(t))}var mS=new TextEncoder;function I9e(){}var hre=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fre;hre&&(fre=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!p9e(e)&&!dre(e)&&e.cancel("Response object has been garbage collected").catch(I9e)}));function gre(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cre(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?mS.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>u9e(c))},start(){},type:"bytes"}),aU(A9e(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(m9e(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(xI.isFormDataLike(t)){let c=`----formdata-undici-0${`${cU(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
Content-Disposition: form-data`;let u=I=>I.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=I=>I.replace(/\r?\n|\r/g,`\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=uS.encode(A+`; name="${u(l(I))}"\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[I,m]of t)if(typeof m=="string"){let C=mS.encode(A+`; name="${u(l(I))}"\r
|
||||
\r
|
||||
${l(m)}\r
|
||||
`);d.push(C),i+=C.byteLength}else{let C=uS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
|
||||
`);d.push(C),i+=C.byteLength}else{let C=mS.encode(`${A}; name="${u(l(I))}"`+(m.name?`; filename="${u(m.name)}"`:"")+`\r
|
||||
Content-Type: ${m.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=uS.encode(`--${c}--\r
|
||||
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(Pte(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(bI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:EHe(t)}if((typeof s=="string"||bI.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(!qte(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 DHe(t,e=!1){return t instanceof ReadableStream&&(WL(!bI.isDisturbed(t),"The body has already been consumed."),WL(!t.locked,"The stream is locked.")),Wte(t,e)}function kHe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function vHe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function _He(t){return{blob(){return zp(this,r=>{let n=Hte(this);return n===null?n="":n&&(n=THe(n)),new wHe([r],{type:n})},t)},arrayBuffer(){return zp(this,r=>new Uint8Array(r).buffer,t)},text(){return zp(this,Gte,t)},json(){return zp(this,MHe,t)},formData(){return zp(this,r=>{let n=Hte(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=xHe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Ote;return i[jp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Ote;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 zp(this,r=>new Uint8Array(r),t)}}}function FHe(t){Object.assign(t.prototype,_He(t))}async function zp(t,e,r){if(QHe.brandCheck(t,r),Jte(t))throw new TypeError("Body is unusable: Body has already been read");vHe(t[jp]);let n=yHe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[jp].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await BHe(t[jp].body,i,s),n.promise)}function Jte(t){let e=t[jp].body;return e!=null&&(e.stream.locked||bI.isDisturbed(e.stream))}function MHe(t){return JSON.parse(Gte(t))}function Hte(t){let e=t[jp].headersList,r=bHe(e);return r==="failure"?null:r}zte.exports={extractBody:Wte,safelyExtractBody:DHe,cloneBody:kHe,mixinBody:FHe,streamRegistry:Vte,hasFinalizationRegistry:Yte,bodyUnusable:Jte}});var ire=E((oWt,sre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:jte}=Lp(),zL=xL(),{RequestContentLengthMismatchError:Gh,ResponseContentLengthMismatchError:LHe,RequestAbortedError:tre,HeadersTimeoutError:UHe,HeadersOverflowError:PHe,SocketError:pS,InformationalError:$p,BodyTimeoutError:OHe,HTTPParserError:HHe,ResponseExceededMaxSizeError:GHe}=Lt(),{kUrl:rre,kReset:$s,kClient:XL,kParser:Mr,kBlocking:SI,kRunning:cs,kPending:qHe,kSize:Kte,kWriting:Dl,kQueue:Ta,kNoRef:QI,kKeepAliveDefaultTimeout:YHe,kHostHeader:VHe,kPendingIdx:WHe,kRunningIdx:bo,kError:Qo,kPipelining:fS,kSocket:Xp,kKeepAliveTimeoutValue:mS,kMaxHeadersSize:jL,kKeepAliveMaxTimeout:JHe,kKeepAliveTimeoutThreshold:zHe,kHeadersTimeout:jHe,kBodyTimeout:KHe,kStrictContentLength:ZL,kMaxRequests:$te,kCounter:$He,kMaxResponseSize:XHe,kOnError:ZHe,kResume:Rl,kHTTPContext:nre}=yr(),wc=Vee(),e9e=Buffer.alloc(0),lS=Buffer[Symbol.species],dS=Xe.addListener,t9e=Xe.removeAllListeners,KL;async function r9e(){let t=process.env.JEST_WORKER_ID?kL():void 0,e;try{e=await WebAssembly.compile(zee())}catch{e=await WebAssembly.compile(t||kL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onStatus(new lS(Sc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderField(new lS(Sc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onHeaderValue(new lS(Sc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Nc+Sc.byteOffset;return gn.onBody(new lS(Sc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var $L=null,eU=r9e();eU.catch();var gn=null,Sc=null,hS=0,Nc=null,n9e=0,wI=1,Zp=2|wI,gS=4|wI,tU=8|n9e,rU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[jL])&&e[jL]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(wc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi
Line truncated
|
||||
`);d.push(C,m,h),typeof m.size=="number"?i+=C.byteLength+m.size+h.byteLength:f=!0}let p=mS.encode(`--${c}--\r
|
||||
`);d.push(p),i+=p.byteLength,f&&(i=null),s=t,n=async function*(){for(let I of d)I.stream?yield*I.stream():yield I},o=`multipart/form-data; boundary=${c}`}else if(cre(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(xI.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:c9e(t)}if((typeof s=="string"||xI.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(!dre(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 y9e(t,e=!1){return t instanceof ReadableStream&&(aU(!xI.isDisturbed(t),"The body has already been consumed."),aU(!t.locked,"The stream is locked.")),gre(t,e)}function B9e(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function b9e(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Q9e(t){return{blob(){return $p(this,r=>{let n=ure(this);return n===null?n="":n&&(n=E9e(n)),new g9e([r],{type:n})},t)},arrayBuffer(){return $p(this,r=>new Uint8Array(r).buffer,t)},text(){return $p(this,lre,t)},json(){return $p(this,S9e,t)},formData(){return $p(this,r=>{let n=ure(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=C9e(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Are;return i[Xp]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Are;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 w9e(t){Object.assign(t.prototype,Q9e(t))}async function $p(t,e,r){if(f9e.brandCheck(t,r),pre(t))throw new TypeError("Body is unusable: Body has already been read");b9e(t[Xp]);let n=l9e(),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 d9e(t[Xp].body,i,s),n.promise)}function pre(t){let e=t[Xp].body;return e!=null&&(e.stream.locked||xI.isDisturbed(e.stream))}function S9e(t){return JSON.parse(lre(t))}function ure(t){let e=t[Xp].headersList,r=h9e(e);return r==="failure"?null:r}mre.exports={extractBody:gre,safelyExtractBody:y9e,cloneBody:B9e,mixinBody:w9e,streamRegistry:fre,hasFinalizationRegistry:hre,bodyUnusable:pre}});var Tre=E((lJt,Nre)=>{"use strict";var Ge=b("node:assert"),Xe=dt(),{channels:Ere}=Op(),AU=YL(),{RequestContentLengthMismatchError:Yh,ResponseContentLengthMismatchError:N9e,RequestAbortedError:Qre,HeadersTimeoutError:T9e,HeadersOverflowError:x9e,SocketError:bS,InformationalError:em,BodyTimeoutError:R9e,HTTPParserError:D9e,ResponseExceededMaxSizeError:k9e}=Lt(),{kUrl:wre,kReset:$s,kClient:hU,kParser:Mr,kBlocking:kI,kRunning:cs,kPending:v9e,kSize:Cre,kWriting:kl,kQueue:xa,kNoRef:RI,kKeepAliveDefaultTimeout:_9e,kHostHeader:F9e,kPendingIdx:M9e,kRunningIdx:Qo,kError:wo,kPipelining:yS,kSocket:tm,kKeepAliveTimeoutValue:QS,kMaxHeadersSize:uU,kKeepAliveMaxTimeout:L9e,kKeepAliveTimeoutThreshold:U9e,kHeadersTimeout:P9e,kBodyTimeout:O9e,kStrictContentLength:fU,kMaxRequests:Ire,kCounter:H9e,kMaxResponseSize:G9e,kOnError:q9e,kResume:Dl,kHTTPContext:Sre}=yr(),Sc=fte(),Y9e=Buffer.alloc(0),ES=Buffer[Symbol.species],CS=Xe.addListener,V9e=Xe.removeAllListeners,lU;async function W9e(){let t=process.env.JEST_WORKER_ID?JL():void 0,e;try{e=await WebAssembly.compile(mte())}catch{e=await WebAssembly.compile(t||JL())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onStatus(new ES(Nc.buffer,i,s))||0},wasm_on_message_begin:r=>(Ge(gn.ptr===r),gn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderField(new ES(Nc.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onHeaderValue(new ES(Nc.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(Ge(gn.ptr===r),gn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{Ge(gn.ptr===r);let i=n-Tc+Nc.byteOffset;return gn.onBody(new ES(Nc.buffer,i,s))||0},wasm_on_message_complete:r=>(Ge(gn.ptr===r),gn.onMessageComplete()||0)}})}var dU=null,gU=W9e();gU.catch();var gn=null,Nc=null,IS=0,Tc=null,J9e=0,DI=1,rm=2|DI,BS=4|DI,pU=8|J9e,mU=class{constructor(e,r,{exports:n}){Ge(Number.isFinite(e[uU])&&e[uU]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Sc.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],thi
Line truncated
|
||||
`;if(typeof s=="string"?p+=`host: ${s}\r
|
||||
`:p+=t[VHe],i?p+=`connection: upgrade\r
|
||||
`:p+=t[F9e],i?p+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[fS]&&!h[$s]?p+=`connection: keep-alive\r
|
||||
`:t[yS]&&!h[$s]?p+=`connection: keep-alive\r
|
||||
`:p+=`connection: close\r
|
||||
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
|
||||
`;else p+=`${m}: ${C}\r
|
||||
`}return jte.sendHeaders.hasSubscribers&&jte.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Zte(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?Zte(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?ere(f,c.stream(),t,e,h,u,p,l):A9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?c9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?ere(f,c,t,e,h,u,p,l):Ge(!1),!0}function c9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new ES({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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new tre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[Dl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.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 Zte(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`}return Ere.sendHeaders.hasSubscribers&&Ere.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Bre(f,null,t,e,h,u,p,l):Xe.isBuffer(c)?Bre(f,c,t,e,h,u,p,l):Xe.isBlobLike(c)?typeof c.stream=="function"?bre(f,c.stream(),t,e,h,u,p,l):Z9e(f,c,t,e,h,u,p,l):Xe.isStream(c)?X9e(f,c,t,e,h,u,p,l):Xe.isIterable(c)?bre(f,c,t,e,h,u,p,l):Ge(!1),!0}function X9e(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===0,"stream body cannot be pipelined");let c=!1,A=new wS({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(p){Xe.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Qre;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,Ge(s.destroyed||s[kl]&&r[cs]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Xe.destroy(e,f):Xe.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 Bre(t,e,r,n,s,i,o,a){try{e?Xe.isBuffer(e)&&(Ge(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[$s]=!0)):i===0?s.write(`${o}content-length: 0\r
|
||||
\r
|
||||
`,"latin1"):(Ge(i===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Rl]()}catch(c){t(c)}}async function A9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Gh;let c=Buffer.from(await e.arrayBuffer());s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Dl]()}catch(c){t(c)}}async function Z9e(t,e,r,n,s,i,o,a){Ge(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new Yh;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[$s]=!0),r[Rl]()}catch(c){t(c)}}async function ere(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[Qo]?h(s[Qo]):c=d});s.on("close",A).on("drain",A);let l=new ES({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Qo])throw s[Qo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var ES=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[Dl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Qo])throw r[Qo];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 Gh;process.emitWarning(new Gh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[$s]=!0),r[Dl]()}catch(c){t(c)}}async function bre(t,e,r,n,s,i,o,a){Ge(i!==0||r[cs]===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)=>{Ge(c===null),s[wo]?h(s[wo]):c=d});s.on("close",A).on("drain",A);let l=new wS({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[wo])throw s[wo];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var wS=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[kl]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[wo])throw r[wo];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[fU])throw new Yh;process.emitWarning(new Yh)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[$s]=!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[Mr].timeout&&r[Mr].timeoutType===Zp&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Dl]=!1,e[Qo])throw e[Qo];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[Mr].timeout&&r[Mr].timeoutType===rm&&r[Mr].timeout.refresh&&r[Mr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[kl]=!1,e[wo])throw e[wo];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 Gh;process.emitWarning(new Gh)}e[Mr].timeout&&e[Mr].timeoutType===Zp&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Rl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Dl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};sre.exports=s9e});var hre=E((aWt,dre)=>{"use strict";var wo=b("node:assert"),{pipeline:u9e}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:nU,RequestAbortedError:ore,SocketError:NI,InformationalError:sU}=Lt(),{kUrl:CS,kReset:yS,kClient:em,kRunning:BS,kPending:l9e,kQueue:kl,kPendingIdx:iU,kRunningIdx:xa,kError:Da,kSocket:Dn,kStrictContentLength:d9e,kOnError:oU,kMaxConcurrentStreams:lre,kHTTP2Session:Ra,kResume:vl,kSize:h9e,kHTTPContext:f9e}=yr(),hu=Symbol("open streams"),are,cre=!1,IS;try{IS=b("node:http2")}catch{IS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:g9e,HTTP2_HEADER_METHOD:p9e,HTTP2_HEADER_PATH:m9e,HTTP2_HEADER_SCHEME:E9e,HTTP2_HEADER_CONTENT_LENGTH:C9e,HTTP2_HEADER_EXPECT:I9e,HTTP2_HEADER_STATUS:y9e}}=IS;function B9e(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,cre||(cre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=IS.connect(t[CS],{createConnection:()=>e,peerMaxConcurrentStreams:t[lre]});r[hu]=0,r[em]=t,r[Dn]=e,Et.addListener(r,"error",w9e),Et.addListener(r,"frameError",S9e),Et.addListener(r,"end",N9e),Et.addListener(r,"goaway",T9e),Et.addListener(r,"close",function(){let{[em]:s}=this,{[Dn]:i}=s,o=this[Dn][Da]||this[Da]||new NI("closed",Et.getSocketInfo(i));if(s[Ra]=null,s.destroyed){wo(s[l9e]===0);let a=s[kl].splice(s[xa]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Ra]=r,e[Ra]=r,Et.addListener(e,"error",function(s){wo(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Da]=s,this[em][oU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new NI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[Da]||new NI("closed",Et.getSocketInfo(this));t[Dn]=null,this[Ra]!=null&&this[Ra].destroy(s),t[iU]=t[xa],wo(t[BS]===0),t.emit("disconnect",t[CS],[t],s),t[vl]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return R9e(t,...s)},resume(){Q9e(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Q9e(t){let e=t[Dn];e?.destroyed===!1&&(t[h9e]===0&&t[lre]===0?(e.unref(),t[Ra].unref()):(e.ref(),t[Ra].ref()))}function w9e(t){wo(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][Da]=t,this[em][oU](t)}function S9e(t,e,r){if(r===0){let n=new sU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][Da]=n,this[em][oU](n)}}function N9e(){let t=new NI("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function T9e(t){let e=this[Da]||new NI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[em];if(r[Dn]=null,r[f9e]=null,this[Ra]!=null&&(this[Ra].destroy(e),this[Ra]=null),Et.destroy(this[Dn],e),r[xa]<r[kl].length){let n=r[kl][r[xa]];r[kl][r[xa]++]=null,Et.errorRequest(r,n,e),r[iU]=r[xa]}wo(r[BS]===0),r.emit("disconnect",r[CS],[r],e),r[vl]()}function x9e(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function R9e(t,e){let r=t[Ra],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],Y=A[N+1];if(Array.isArray(Y))for(let k=0;k<Y.length;k++)l[M]?l[M]+=`,${Y[k]}`:l[M]=Y[k];else l[M]=Y}let d,{hostname:h,port:f}=t[CS];l[g9e]=i||`${h}${f?`:${f}`:""}`,l[p9e]=n;let p=N=>{e.aborted||e.completed||(N=N||new ore,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[kl][t[xa]++]=null,t[vl]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[hu],t[kl][t[xa]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[hu],t[kl][t[xa]++]=null}),d.once("close",()=>{r[hu]-=1,r[hu]===0&&r.unref()}),!0;l[m9e]=s,l[E9e]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){are??=Kp().extractBody;let[N,M]=are(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),x9e(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[d9e])return Et.errorRequest(t,e,new nU),!1;process.emitWarning(new nU)}m!=null&&(wo(u,"no body must not have content length"),l[C9e]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[I9e]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[rGe]=c??3e5,this[tGe]=s??3e5,this[nGe]=C??!0,this[sGe]=N,this[uU]=Y,this[Fl]=null,this[AGe]=O>-1?O:-1,this[lGe]=ee??100,this[Kr]=null,this[ka]=[],this[gu]=0,this[va]=0,this[DI]=ce=>dU(this,ce),this[uGe]=ce=>wre(this,ce)}get pipelining(){return this[SS]}set pipelining(e){this[SS]=e,this[DI](!0)}get[_I](){return this[ka].length-this[va]}get[vI](){return this[va]-this[gu]}get[kI](){return this[ka].length-this[gu]}get[z9e](){return!!this[Kr]&&!this[rm]&&!this[Kr].destroyed}get[AU](){return!!(this[Kr]?.busy(null)||this[kI]>=(Qre(this)||1)||this[_I]>0)}[J9e](e){Sre(this),this.once("connect",e)}[cGe](e,r){let n=e.origin||this[xc].origin,s=new H9e(n,e,r);return this[ka].push(s),this[Yh]||(qh.bodyLength(s.body)==null&&qh.isIterable(s.body)?(this[Yh]=1,queueMicrotask(()=>dU(this))):this[DI](!0)),this[Yh]&&this[Ml]!==2&&this[AU]&&(this[Ml]=2),this[Ml]<2}async[oGe](){return new Promise(e=>{this[kI]?this[Fl]=e:e(null)})}async[aGe](e){return new Promise(r=>{let n=this[ka].splice(this[va]);for(let i=0;i<n.length;i++){let o=n[i];qh.errorRequest(this,o,e)}let s=()=>{this[Fl]&&(this[Fl](),this[Fl]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[DI]()})}},fGe=wS();function wre(t,e){if(t[vI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){fu(t[va]===t[gu]);let r=t[ka].splice(t[gu]);for(let n=0;n<r.length;n++){let s=r[n];qh.errorRequest(t,s,e)}fu(t[kI]===0)}}async function Sre(t){fu(!t[rm]),fu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[xc];if(r[0]==="["){let i=r.indexOf("]");fu(i!==-1);let o=r.substring(1,i);fu(bre.isIP(o)),r=o}t[rm]=!0,tm.beforeConnect.hasSubscribers&&tm.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[RI]},connector:t[xI]});try{let i=await new Promise((o,a)=>{t[xI]({host:e,hostname:r,protocol:n,port:s,servername:t[_l],localAddress:t[RI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){qh.destroy(i.on("error",yre),new Y9e);return}fu(i);try{t[Kr]=i.alpnProtocol==="h2"?await hGe(t,i):await dGe(t,i)}catch(o){throw i.destroy().on("error",yre),o}t[rm]=!1,i[iGe]=0,i[uU]=t[uU],i[W9e]=t,i[K9e]=null,tm.connected.hasSubscribers&&tm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[RI]},connector:t[xI],socket:i}),t.emit("connect",t[xc],[t])}catch(i){if(t.destroyed)return;if(t[rm]=!1,tm.connectError.hasSubscribers&&tm.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[_l],localAddress:t[RI]},connector:t[xI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(fu(t[vI]===0);t[_I]>0&&t[ka][t[va]].servername===t[_l];){let o=t[ka][t[va]++];qh.errorRequest(t,o,i)}else wre(t,i);t.emit("connectionError",t[xc],[t],i)}t[DI]()}function Bre(t){t[Ml]=0,t.emit("drain",t[xc],[t])}function dU(t,e){t[Yh]!==2&&(t[Yh]=2,gGe(t,e),t[Yh]=0,t[gu]>256&&(t[ka].splice(0,t[gu]),t[va]-=t[gu],t[gu]=0))}function gGe(t,e){for(;;){if(t.destroyed){fu(t[_I]===0);return}if(t[Fl]&&!t[kI]){t[Fl](),t[Fl]=null;return}if(t[Kr]&&t[Kr].resume(),t[AU])t[Ml]=2;else if(t[Ml]===2){e?(t[Ml]=1,queueMicrotask(()=>Bre(t))):Bre(t);continue}if(t[_I]===0||t[vI]>=(Qre(t)||1))return;let r=t[ka][t[va]];if(t[xc].protocol==="https:"&&t[_l]!==r.servername){if(t[vI]>0)return;t[_l]=r.servername,t[Kr]?.destroy(new q9e("servername changed"),()=>{t[Kr]=null,dU(t)})}if(t[rm])return;if(!t[Kr]){Sre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[va]++:t[ka].splice(t[va],1)}}Nre.exports=lU});var hU=E((dWt,Tre)=>{"use strict";var NS=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)}};Tre.exports=class{constructor(){this.head=this.tail=new NS}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new NS),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Rre=E((hWt,xre)=>{var{kFree:pGe,kConnected:mGe,kPending:EGe,kQueued:CGe,kRunning:IGe,kSize:yGe}=yr(),Vh=Symbol("pool"),fU=class{constructor(e){this[Vh]=e}get connected(){return this[Vh][mGe]}get free(){return this[Vh][pGe]}get pending(){return this[Vh][EGe]}get queued(){return this[Vh][CGe]}get running(){return this[Vh][IGe]}get size(){return this[Vh][yGe]}};xre.exports=fU});var IU=E((fWt,Ore)=>{"use strict";var BGe=Hp(),bGe=hU(),{kConnected:gU,kSize:Dre,kRunning:kre,kPending:vre,kQueued:FI,kBusy:QGe,kFree:wGe,kUrl:SGe,kClose:NGe,kDestroy:TGe,kDispatch:xGe}=yr(),RGe=Rre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),MI=Symbol("queue"),pU=Symbol("closed resolve"),mU=Symbol("onDrain"),_re=Symbol("onConnect"),Fre=Symbol("onDisconnect"),Mre=Symbol("onC
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[fU])throw new Yh;process.emitWarning(new Yh)}e[Mr].timeout&&e[Mr].timeoutType===rm&&e[Mr].timeout.refresh&&e[Mr].timeout.refresh(),n[Dl]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[kl]=!1,e&&(Ge(n[cs]<=1,"pipeline should only contain this request"),s(e))}};Nre.exports=z9e});var Mre=E((dJt,Fre)=>{"use strict";var So=b("node:assert"),{pipeline:eGe}=b("node:stream"),Et=dt(),{RequestContentLengthMismatchError:EU,RequestAbortedError:xre,SocketError:vI,InformationalError:CU}=Lt(),{kUrl:SS,kReset:TS,kClient:nm,kRunning:xS,kPending:tGe,kQueue:vl,kPendingIdx:IU,kRunningIdx:Ra,kError:ka,kSocket:Dn,kStrictContentLength:rGe,kOnError:yU,kMaxConcurrentStreams:_re,kHTTP2Session:Da,kResume:_l,kSize:nGe,kHTTPContext:sGe}=yr(),fu=Symbol("open streams"),Rre,Dre=!1,NS;try{NS=b("node:http2")}catch{NS={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:iGe,HTTP2_HEADER_METHOD:oGe,HTTP2_HEADER_PATH:aGe,HTTP2_HEADER_SCHEME:cGe,HTTP2_HEADER_CONTENT_LENGTH:AGe,HTTP2_HEADER_EXPECT:uGe,HTTP2_HEADER_STATUS:lGe}}=NS;function dGe(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 hGe(t,e){t[Dn]=e,Dre||(Dre=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=NS.connect(t[SS],{createConnection:()=>e,peerMaxConcurrentStreams:t[_re]});r[fu]=0,r[nm]=t,r[Dn]=e,Et.addListener(r,"error",gGe),Et.addListener(r,"frameError",pGe),Et.addListener(r,"end",mGe),Et.addListener(r,"goaway",EGe),Et.addListener(r,"close",function(){let{[nm]:s}=this,{[Dn]:i}=s,o=this[Dn][ka]||this[ka]||new vI("closed",Et.getSocketInfo(i));if(s[Da]=null,s.destroyed){So(s[tGe]===0);let a=s[vl].splice(s[Ra]);for(let c=0;c<a.length;c++){let A=a[c];Et.errorRequest(s,A,o)}}}),r.unref(),t[Da]=r,e[Da]=r,Et.addListener(e,"error",function(s){So(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ka]=s,this[nm][yU](s)}),Et.addListener(e,"end",function(){Et.destroy(this,new vI("other side closed",Et.getSocketInfo(this)))}),Et.addListener(e,"close",function(){let s=this[ka]||new vI("closed",Et.getSocketInfo(this));t[Dn]=null,this[Da]!=null&&this[Da].destroy(s),t[IU]=t[Ra],So(t[xS]===0),t.emit("disconnect",t[SS],[t],s),t[_l]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return IGe(t,...s)},resume(){fGe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function fGe(t){let e=t[Dn];e?.destroyed===!1&&(t[nGe]===0&&t[_re]===0?(e.unref(),t[Da].unref()):(e.ref(),t[Da].ref()))}function gGe(t){So(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dn][ka]=t,this[nm][yU](t)}function pGe(t,e,r){if(r===0){let n=new CU(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dn][ka]=n,this[nm][yU](n)}}function mGe(){let t=new vI("other side closed",Et.getSocketInfo(this[Dn]));this.destroy(t),Et.destroy(this[Dn],t)}function EGe(t){let e=this[ka]||new vI(`HTTP/2: "GOAWAY" frame received with code ${t}`,Et.getSocketInfo(this)),r=this[nm];if(r[Dn]=null,r[sGe]=null,this[Da]!=null&&(this[Da].destroy(e),this[Da]=null),Et.destroy(this[Dn],e),r[Ra]<r[vl].length){let n=r[vl][r[Ra]];r[vl][r[Ra]++]=null,Et.errorRequest(r,n,e),r[IU]=r[Ra]}So(r[xS]===0),r.emit("disconnect",r[SS],[r],e),r[_l]()}function CGe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function IGe(t,e){let r=t[Da],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Et.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let N=0;N<A.length;N+=2){let M=A[N+0],O=A[N+1];if(Array.isArray(O))for(let k=0;k<O.length;k++)l[M]?l[M]+=`,${O[k]}`:l[M]=O[k];else l[M]=O}let d,{hostname:h,port:f}=t[SS];l[iGe]=i||`${h}${f?`:${f}`:""}`,l[oGe]=n;let p=N=>{e.aborted||e.completed||(N=N||new xre,Et.errorRequest(t,e,N),d!=null&&Et.destroy(d,N),Et.destroy(u,N),t[vl][t[Ra]++]=null,t[_l]())};try{e.onConnect(p)}catch(N){Et.errorRequest(t,e,N)}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[fu],t[vl][t[Ra]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[fu],t[vl][t[Ra]++]=null}),d.once("close",()=>{r[fu]-=1,r[fu]===0&&r.unref()}),!0;l[aGe]=s,l[cGe]="https";let I=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let m=Et.bodyLength(u);if(Et.isFormDataLike(u)){Rre??=Zp().extractBody;let[N,M]=Rre(u);l["content-type"]=M,u=N.stream,m=N.length}if(m==null&&(m=e.contentLength),(m===0||!I)&&(m=null),CGe(n)&&m>0&&e.contentLength!=null&&e.contentLength!==m){if(t[rGe])return Et.errorRequest(t,e,new EU),!1;process.emitWarning(new EU)}m!=null&&(So(u,"no body must not have content length"),l[AGe]=`${m}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[uGe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[WGe]=c??3e5,this[VGe]=s??3e5,this[JGe]=C??!0,this[zGe]=N,this[wU]=O,this[Ml]=null,this[ZGe]=P>-1?P:-1,this[tqe]=ee??100,this[Kr]=null,this[va]=[],this[pu]=0,this[_a]=0,this[LI]=ce=>NU(this,ce),this[eqe]=ce=>zre(this,ce)}get pipelining(){return this[vS]}set pipelining(e){this[vS]=e,this[LI](!0)}get[OI](){return this[va].length-this[_a]}get[PI](){return this[_a]-this[pu]}get[UI](){return this[va].length-this[pu]}get[UGe](){return!!this[Kr]&&!this[im]&&!this[Kr].destroyed}get[QU](){return!!(this[Kr]?.busy(null)||this[UI]>=(Jre(this)||1)||this[OI]>0)}[LGe](e){jre(this),this.once("connect",e)}[XGe](e,r){let n=e.origin||this[Rc].origin,s=new DGe(n,e,r);return this[va].push(s),this[Wh]||(Vh.bodyLength(s.body)==null&&Vh.isIterable(s.body)?(this[Wh]=1,queueMicrotask(()=>NU(this))):this[LI](!0)),this[Wh]&&this[Ll]!==2&&this[QU]&&(this[Ll]=2),this[Ll]<2}async[KGe](){return new Promise(e=>{this[UI]?this[Ml]=e:e(null)})}async[$Ge](e){return new Promise(r=>{let n=this[va].splice(this[_a]);for(let i=0;i<n.length;i++){let o=n[i];Vh.errorRequest(this,o,e)}let s=()=>{this[Ml]&&(this[Ml](),this[Ml]=null),r(null)};this[Kr]?(this[Kr].destroy(e,s),this[Kr]=null):queueMicrotask(s),this[LI]()})}},sqe=kS();function zre(t,e){if(t[PI]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){gu(t[_a]===t[pu]);let r=t[va].splice(t[pu]);for(let n=0;n<r.length;n++){let s=r[n];Vh.errorRequest(t,s,e)}gu(t[UI]===0)}}async function jre(t){gu(!t[im]),gu(!t[Kr]);let{host:e,hostname:r,protocol:n,port:s}=t[Rc];if(r[0]==="["){let i=r.indexOf("]");gu(i!==-1);let o=r.substring(1,i);gu(Wre.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[Fl],localAddress:t[MI]},connector:t[FI]});try{let i=await new Promise((o,a)=>{t[FI]({host:e,hostname:r,protocol:n,port:s,servername:t[Fl],localAddress:t[MI]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Vh.destroy(i.on("error",Yre),new _Ge);return}gu(i);try{t[Kr]=i.alpnProtocol==="h2"?await nqe(t,i):await rqe(t,i)}catch(o){throw i.destroy().on("error",Yre),o}t[im]=!1,i[jGe]=0,i[wU]=t[wU],i[MGe]=t,i[OGe]=null,sm.connected.hasSubscribers&&sm.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Kr]?.version,servername:t[Fl],localAddress:t[MI]},connector:t[FI],socket:i}),t.emit("connect",t[Rc],[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[Fl],localAddress:t[MI]},connector:t[FI],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(gu(t[PI]===0);t[OI]>0&&t[va][t[_a]].servername===t[Fl];){let o=t[va][t[_a]++];Vh.errorRequest(t,o,i)}else zre(t,i);t.emit("connectionError",t[Rc],[t],i)}t[LI]()}function Vre(t){t[Ll]=0,t.emit("drain",t[Rc],[t])}function NU(t,e){t[Wh]!==2&&(t[Wh]=2,iqe(t,e),t[Wh]=0,t[pu]>256&&(t[va].splice(0,t[pu]),t[_a]-=t[pu],t[pu]=0))}function iqe(t,e){for(;;){if(t.destroyed){gu(t[OI]===0);return}if(t[Ml]&&!t[UI]){t[Ml](),t[Ml]=null;return}if(t[Kr]&&t[Kr].resume(),t[QU])t[Ll]=2;else if(t[Ll]===2){e?(t[Ll]=1,queueMicrotask(()=>Vre(t))):Vre(t);continue}if(t[OI]===0||t[PI]>=(Jre(t)||1))return;let r=t[va][t[_a]];if(t[Rc].protocol==="https:"&&t[Fl]!==r.servername){if(t[PI]>0)return;t[Fl]=r.servername,t[Kr]?.destroy(new vGe("servername changed"),()=>{t[Kr]=null,NU(t)})}if(t[im])return;if(!t[Kr]){jre(t);return}if(t[Kr].destroyed||t[Kr].busy(r))return;!r.aborted&&t[Kr].write(r)?t[_a]++:t[va].splice(t[_a],1)}}Kre.exports=SU});var TU=E((mJt,$re)=>{"use strict";var _S=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)}};$re.exports=class{constructor(){this.head=this.tail=new _S}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new _S),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=E((EJt,Xre)=>{var{kFree:oqe,kConnected:aqe,kPending:cqe,kQueued:Aqe,kRunning:uqe,kSize:lqe}=yr(),Jh=Symbol("pool"),xU=class{constructor(e){this[Jh]=e}get connected(){return this[Jh][aqe]}get free(){return this[Jh][oqe]}get pending(){return this[Jh][cqe]}get queued(){return this[Jh][Aqe]}get running(){return this[Jh][uqe]}get size(){return this[Jh][lqe]}};Xre.exports=xU});var FU=E((CJt,Ane)=>{"use strict";var dqe=Yp(),hqe=TU(),{kConnected:RU,kSize:ene,kRunning:tne,kPending:rne,kQueued:HI,kBusy:fqe,kFree:gqe,kUrl:pqe,kClose:mqe,kDestroy:Eqe,kDispatch:Cqe}=yr(),Iqe=Zre(),Xs=Symbol("clients"),ws=Symbol("needDrain"),GI=Symbol("queue"),DU=Symbol("closed resolve"),kU=Symbol("onDrain"),nne=Symbol("onConnect"),sne=Symbol("onDisconnect"),ine=Symbol("onC
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};Wse.exports=IP});var VS=E((GWt,$se)=>{"use strict";var zse=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:rVe}=Lt(),nVe=im();Kse()===void 0&&jse(new nVe);function jse(t){if(!t||typeof t.dispatch!="function")throw new rVe("Argument agent must implement Agent");Object.defineProperty(globalThis,zse,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Kse(){return globalThis[zse]}$se.exports={setGlobalDispatcher:jse,getGlobalDispatcher:Kse}});var WS=E((YWt,Xse)=>{"use strict";Xse.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 eie=E((VWt,Zse)=>{"use strict";var sVe=QS();Zse.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 sVe(r,o,s,i);return r(a,c)}}});var rie=E((WWt,tie)=>{"use strict";var iVe=FS();tie.exports=t=>e=>function(n,s){return e(n,new iVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var sie=E((JWt,nie)=>{"use strict";var oVe=dt(),{InvalidArgumentError:aVe,RequestAbortedError:cVe}=Lt(),AVe=WS(),yP=class extends AVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new aVe("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=oVe.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.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function uVe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new yP({maxSize:i},s);return e(n,o)}}nie.exports=uVe});var aie=E((zWt,oie)=>{"use strict";var{isIP:lVe}=b("node:net"),{lookup:dVe}=b("node:dns"),hVe=WS(),{InvalidArgumentError:gm,InformationalError:fVe}=Lt(),iie=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.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new fVe("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){dVe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===iie?(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===iie?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 bP(this,e,r)}},bP=class extends hVe{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${i}`;break;case"retry":Oae(i)&&(r[s]=i);break;case"id":Hae(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Oae(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Hae(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}}};Gae.exports={EventSourceStream:cO}});var $ae=E((wJt,Kae)=>{"use strict";var{pipeline:Qze}=b("node:stream"),{fetching:wze}=jI(),{makeRequest:Sze}=Em(),{webidl:Iu}=Kn(),{EventSourceStream:Nze}=qae(),{parseMIMEType:Tze}=Ks(),{createFastMessageEvent:xze}=Qm(),{isNetworkError:Yae}=JI(),{delay:Rze}=oO(),{kEnumerableProperty:af}=dt(),{environmentSettingsObject:Vae}=Ti(),Wae=!1,Jae=3e3,cy=0,zae=1,Ay=2,Dze="anonymous",kze="use-credentials",xm=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=cy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Iu.util.markAsUncloneable(this);let n="EventSource constructor";Iu.argumentLengthCheck(arguments,1,n),Wae||(Wae=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Iu.converters.USVString(e,n,"url"),r=Iu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Jae};let s=Vae,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=Dze;r.withCredentials&&(o=kze,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Vae.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=Sze(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===Ay)return;this.#r=cy;let e={request:this.#s,dispatcher:this.#a},r=n=>{Yae(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Yae(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?Tze(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=zae,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new Nze({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(xze(c.type,c.options))}});Qze(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=wze(e)}async#A(){this.#r!==Ay&&(this.#r=cy,this.dispatchEvent(new Event("error")),await Rze(this.#o.reconnectionTime),this.#r===cy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){Iu.brandCheck(this,t),this.#r!==Ay&&(this.#r=Ay,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},jae={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:cy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:zae,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:Ay,writable:!1}};Object.defineProperties(xm,jae);Object.defineProperties(xm.prototype,jae);Object.defineProperties(xm.prototype,{close:af,onerror:af,onmessage:af,onopen:af,readyState:af,url:af,withCredentials:af});Iu.converters.EventSourceInitDict=Iu.dictionaryConverter([{key:"withCredentials",converter:Iu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Iu.converters.any}]);Kae.exports={EventSource:xm,defaultReconnectionTime:Jae}});var _N=E((SJt,Ye)=>{"use strict";var vze=nm(),Xae=hI(),_ze=sm(),Fze=jre(),Mze=im(),Lze=vU(),Uze=Cne(),Pze=wne(),Zae=Lt(),vN=dt(),{InvalidArgumentError:kN}=Zae,Rm=lse(),Oze=gI(),Hze=fP(),Gze=Jse(),qze=mP(),Yze=tP(),Vze=FS(),{getGlobalDispatcher:ece,setGlobalDispatcher:Wze}=VS(),Jze=WS(),zze=QS(),jze=wS();Object.assign(Xae.prototype,Rm);Ye.exports.Dispatcher=Xae;Ye.exports.Client=vze;Ye.exports.Pool=_ze;Ye.exports.BalancedPool=Fze;Ye.exports.Agent=Mze;Ye.exports.ProxyAgent=Lze;Ye.exports.EnvHttpProxyAgent=Uze;Ye.exports
Line truncated
|
||||
%s`,M,M,C,n);var Y=C.type==="*"?e3:C.type==="?"?ZO:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+Y+"\\("+M}f(),i&&(n+="\\\\");var k=!1;switch(n.charAt(0)){case"[":case".":case"(":k=!0}for(var O=a.length-1;O>-1;O--){var D=a[O],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==sT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===sT)return[n,s];if(!s)return Y$e(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Pi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=q$e;function q$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?e3:e.dot?F$e:M$e,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===df?r:typeof o=="string"?V$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}Pi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;yy.sep!=="/"&&(e=e.split(yy.sep).join("/")),e=e.split(WAe),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(df)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===df){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===df){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 p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===df?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var Y=I.length-1,k=t.length-d,O=0;O<I.length;O++)I[O][1]=k-(y[Y--]+I[O][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===df)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 Y$e(t){return t.replace(/\\(.)/g,"$1")}function V$e(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Pm=E((Bjt,ZAe)=>{"use strict";var Z$e="2.0.0",eXe=Number.MAX_SAFE_INTEGER||9007199254740991,tXe=16,rXe=250,nXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];ZAe.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:tXe,MAX_SAFE_BUILD_LENGTH:rXe,MAX_SAFE_INTEGER:eXe,RELEASE_TYPES:nXe,SEMVER_SPEC_VERSION:Z$e,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var wy=E((bjt,eue)=>{"use strict";var sXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};eue.exports=sXe});var Om=E((Fc,tue)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:r3,MAX_SAFE_BUILD_LENGTH:iXe,MAX_LENGTH:oXe}=Pm(),aXe=wy();Fc=tue.exports={};var cXe=Fc.re=[],AXe=Fc.safeRe=[],me=Fc.src=[],uXe=Fc.safeSrc=[],Ee=Fc.t={},lXe=0,n3="[a-zA-Z0-9-]",dXe=[["\\s",1],["\\d",oXe],[n3,iXe]],hXe=t=>{for(let[e,r]of dXe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
|
||||
`.trim())}};gie.exports=FP});var XS=E((JJt,Iie)=>{"use strict";var mie=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:WVe}=Lt(),JVe=cm();Cie()===void 0&&Eie(new JVe);function Eie(t){if(!t||typeof t.dispatch!="function")throw new WVe("Argument agent must implement Agent");Object.defineProperty(globalThis,mie,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Cie(){return globalThis[mie]}Iie.exports={setGlobalDispatcher:Eie,getGlobalDispatcher:Cie}});var ZS=E((jJt,yie)=>{"use strict";yie.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 bie=E((KJt,Bie)=>{"use strict";var zVe=DS();Bie.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 zVe(r,o,s,i);return r(a,c)}}});var wie=E(($Jt,Qie)=>{"use strict";var jVe=GS();Qie.exports=t=>e=>function(n,s){return e(n,new jVe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var Nie=E((XJt,Sie)=>{"use strict";var KVe=dt(),{InvalidArgumentError:$Ve,RequestAbortedError:XVe}=Lt(),ZVe=ZS(),MP=class extends ZVe{#e=1024*1024;#t=null;#n=!1;#r=!1;#s=0;#i=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new $Ve("maxSize must be a number greater than 0");this.#e=e??this.#e,this.#a=r}onConnect(e){this.#t=e,this.#a.onConnect(this.#o.bind(this))}#o(e){this.#r=!0,this.#i=e}onHeaders(e,r,n,s){let o=KVe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new XVe(`Response size (${o}) larger than maxSize (${this.#e})`);return this.#r?!0:this.#a.onHeaders(e,r,n,s)}onError(e){this.#n||(e=this.#i??e,this.#a.onError(e))}onData(e){return this.#s=this.#s+e.length,this.#s>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#i):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function e7e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new MP({maxSize:i},s);return e(n,o)}}Sie.exports=e7e});var Rie=E((ZJt,xie)=>{"use strict";var{isIP:t7e}=b("node:net"),{lookup:r7e}=b("node:dns"),n7e=ZS(),{InvalidArgumentError:Em,InformationalError:s7e}=Lt(),Tie=Math.pow(2,31)-1,LP=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#s}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new s7e("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){r7e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#s(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Tie?(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===Tie?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 UP(this,e,r)}},UP=class extends n7e{#e=null;#t=null;#n=null;#r=null;#s=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#s=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#s,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${i}`;break;case"retry":Ace(i)&&(r[s]=i);break;case"id":uce(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&Ace(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&uce(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}}};lce.exports={EventSourceStream:bO}});var Ice=E((Rzt,Cce)=>{"use strict";var{pipeline:fje}=b("node:stream"),{fetching:gje}=ty(),{makeRequest:pje}=ym(),{webidl:yu}=Kn(),{EventSourceStream:mje}=dce(),{parseMIMEType:Eje}=Ks(),{createFastMessageEvent:Cje}=Nm(),{isNetworkError:hce}=ZI(),{delay:Ije}=yO(),{kEnumerableProperty:Af}=dt(),{environmentSettingsObject:fce}=xi(),gce=!1,pce=3e3,fy=0,mce=1,gy=2,yje="anonymous",Bje="use-credentials",km=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=fy;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),yu.util.markAsUncloneable(this);let n="EventSource constructor";yu.argumentLengthCheck(arguments,1,n),gce||(gce=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=yu.converters.USVString(e,n,"url"),r=yu.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:pce};let s=fce,i;try{i=new URL(e,s.settingsObject.baseUrl),this.#o.origin=i.origin}catch(c){throw new DOMException(c,"SyntaxError")}this.#t=i.href;let o=yje;r.withCredentials&&(o=Bje,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=fce.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=pje(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===gy)return;this.#r=fy;let e={request:this.#s,dispatcher:this.#a},r=n=>{hce(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(hce(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?Eje(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=mce,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new mje({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Cje(c.type,c.options))}});fje(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=gje(e)}async#A(){this.#r!==gy&&(this.#r=fy,this.dispatchEvent(new Event("error")),await Ije(this.#o.reconnectionTime),this.#r===fy&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c()))}close(){yu.brandCheck(this,t),this.#r!==gy&&(this.#r=gy,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open),typeof e=="function"?(this.#e.open=e,this.addEventListener("open",e)):this.#e.open=null}get onmessage(){return this.#e.message}set onmessage(e){this.#e.message&&this.removeEventListener("message",this.#e.message),typeof e=="function"?(this.#e.message=e,this.addEventListener("message",e)):this.#e.message=null}get onerror(){return this.#e.error}set onerror(e){this.#e.error&&this.removeEventListener("error",this.#e.error),typeof e=="function"?(this.#e.error=e,this.addEventListener("error",e)):this.#e.error=null}},Ece={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:fy,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:mce,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:gy,writable:!1}};Object.defineProperties(km,Ece);Object.defineProperties(km.prototype,Ece);Object.defineProperties(km.prototype,{close:Af,onerror:Af,onmessage:Af,onopen:Af,readyState:Af,url:Af,withCredentials:Af});yu.converters.EventSourceInitDict=yu.dictionaryConverter([{key:"withCredentials",converter:yu.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:yu.converters.any}]);Cce.exports={EventSource:km,defaultReconnectionTime:pce}});var HN=E((Dzt,Ye)=>{"use strict";var bje=om(),yce=CI(),Qje=am(),wje=Ene(),Sje=cm(),Nje=zU(),Tje=Gne(),xje=zne(),Bce=Lt(),ON=dt(),{InvalidArgumentError:PN}=Bce,vm=_se(),Rje=yI(),Dje=xP(),kje=pie(),vje=kP(),_je=pP(),Fje=GS(),{getGlobalDispatcher:bce,setGlobalDispatcher:Mje}=XS(),Lje=ZS(),Uje=DS(),Pje=kS();Object.assign(yce.prototype,vm);Ye.exports.Dispatcher=yce;Ye.exports.Client=bje;Ye.exports.Pool=Qje;Ye.exports.BalancedPool=wje;Ye.exports.Agent=Sje;Ye.exports.ProxyAgent=Nje;Ye.exports.EnvHttpProxyAgent=Tje;Ye.exports
Line truncated
|
||||
%s`,M,M,C,n);var O=C.type==="*"?g3:C.type==="?"?f3:"\\"+C.type;s=!0,n=n.slice(0,C.reStart)+O+"\\("+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 D=a[P],z=n.slice(0,D.reStart),ee=n.slice(D.reStart,D.reEnd-8),te=n.slice(D.reEnd-8,D.reEnd),ce=n.slice(D.reEnd);te+=ce;var ge=z.split("(").length-1,De=ce;for(p=0;p<ge;p++)De=De.replace(/\)[+*?]?/,"");ce=De;var $e="";ce===""&&e!==lT&&($e="$");var st=z+ee+ce+$e+te;n=st}if(n!==""&&s&&(n="(?=.)"+n),k&&(n=d+n),e===lT)return[n,s];if(!s)return _Xe(t);var Yt=r.nocase?"i":"";try{var vt=new RegExp("^"+n+"$",Yt)}catch{return new RegExp("$.")}return vt._glob=t,vt._src=n,vt}Oi.makeRe=function(t,e){return new cn(t,e||{}).makeRe()};cn.prototype.makeRe=vXe;function vXe(){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?g3:e.dot?wXe:SXe,n=e.nocase?"i":"",s=t.map(function(i){return i.map(function(o){return o===ff?r:typeof o=="string"?FXe(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}Oi.match=function(t,e,r){r=r||{};var n=new cn(e,r);return t=t.filter(function(s){return n.match(s)}),n.options.nonull&&!t.length&&t.push(e),t};cn.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;Ny.sep!=="/"&&(e=e.split(Ny.sep).join("/")),e=e.split(gue),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};cn.prototype.matchOne=function(t,e,r){return e.indexOf(ff)!==-1?this._matchGlobstar(t,e,r,0,0):this._matchOne(t,e,r,0,0)};cn.prototype._matchGlobstar=function(t,e,r,n,s){var i,o=-1;for(i=s;i<e.length;i++)if(e[i]===ff){o=i;break}var a=-1;for(i=e.length-1;i>=0;i--)if(e[i]===ff){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 p=String(t[i]);if(f=!0,p==="."||p===".."||!this.options.dot&&p.charAt(0)===".")return!1}return r||f}for(var I=[[[],0]],m=I[0],C=0,y=[0],N=0;N<A.length;N++){var M=A[N];M===ff?(y.push(C),m=[[],0],I.push(m)):(m[0].push(M),C++)}for(var O=I.length-1,k=t.length-d,P=0;P<I.length;P++)I[P][1]=k-(y[O--]+I[P][0].length);return!!this._matchGlobStarBodySections(t,I,n,0,r,0,!!d)};cn.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};cn.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===ff)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 _Xe(t){return t.replace(/\\(.)/g,"$1")}function FXe(t){return t.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}});var Gm=E((NKt,Bue)=>{"use strict";var qXe="2.0.0",YXe=Number.MAX_SAFE_INTEGER||9007199254740991,VXe=16,WXe=250,JXe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];Bue.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:VXe,MAX_SAFE_BUILD_LENGTH:WXe,MAX_SAFE_INTEGER:YXe,RELEASE_TYPES:JXe,SEMVER_SPEC_VERSION:qXe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Dy=E((TKt,bue)=>{"use strict";var zXe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...t)=>console.error("SEMVER",...t):()=>{};bue.exports=zXe});var qm=E((Mc,Que)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:m3,MAX_SAFE_BUILD_LENGTH:jXe,MAX_LENGTH:KXe}=Gm(),$Xe=Dy();Mc=Que.exports={};var XXe=Mc.re=[],ZXe=Mc.safeRe=[],me=Mc.src=[],eZe=Mc.safeSrc=[],Ee=Mc.t={},tZe=0,E3="[a-zA-Z0-9-]",rZe=[["\\s",1],["\\d",KXe],[E3,jXe]],nZe=t=>{for(let[e,r]of rZe)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${eLine truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+GT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=rrt()+e+" "+t[0]}function rrt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function nrt(...t){return process.stderr.write(HT.formatWithOptions(vn.inspectOpts,...t)+`
|
||||
`)}function srt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function irt(){return process.env.DEBUG}function ort(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]]}GT.exports=W3()(vn);var{formatters:xde}=GT.exports;xde.o=function(t){return this.inspectOpts.colors=this.useColors,HT.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};xde.O=function(t){return this.inspectOpts.colors=this.useColors,HT.inspect(t,this.inspectOpts)}});var qT=E((Z$t,j3)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?j3.exports=bde():j3.exports=Rde()});var vde=E(oi=>{"use strict";var art=oi&&oi.__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=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Dde=oi&&oi.__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 crt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Art=Dde(b("http")),urt=Dde(b("https"));async function kde(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=kde;async function lrt(t){let r=(await kde(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=lrt;function drt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?urt:Art).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=drt});var $3=E(Gi=>{"use strict";var Fde=Gi&&Gi.__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]})),hrt=Gi&&Gi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Mde=Gi&&Gi.__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)&&Fde(e,t,r);return hrt(e,t),e},frt=Gi&&Gi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Fde(e,t,r)};Object.defineProperty(Gi,"__esModule",{value:!0});Gi.Agent=void 0;var grt=Mde(b("net")),_de=Mde(b("http")),prt=b("https");frt(vde(),Gi);var Uc=Symbol("AgentBaseInternalState"),K3=class extends _de.Agent{constructor(e){super(e),this[Uc]={}}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 grt.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)?prt.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 _de.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Uc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Uc].currentSocket;if(this[Uc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Uc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Uc]&&(this[Uc].defaultPort=e)}get protocol(){return this[Uc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Uc]&&(this[Uc].protocol=e)}};Gi.Agent=K3});var Lde=E(jm=>{"use strict";var mrt=jm&&jm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jm,"__esModule",{value:!0});jm.parseProxyResponse=void 0;var Ert=mrt(qT()),YT=(0,Ert.default)("https-proxy-agent:parse-proxy-response");function Crt(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(),YT("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),YT("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+"+jT.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Wrt()+e+" "+t[0]}function Wrt(){return vn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Jrt(...t){return process.stderr.write(zT.formatWithOptions(vn.inspectOpts,...t)+`
|
||||
`)}function zrt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function jrt(){return process.env.DEBUG}function Krt(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]]}jT.exports=a8()(vn);var{formatters:Xde}=jT.exports;Xde.o=function(t){return this.inspectOpts.colors=this.useColors,zT.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Xde.O=function(t){return this.inspectOpts.colors=this.useColors,zT.inspect(t,this.inspectOpts)}});var KT=E((sZt,u8)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?u8.exports=Wde():u8.exports=Zde()});var rhe=E(oi=>{"use strict";var $rt=oi&&oi.__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]})),Xrt=oi&&oi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ehe=oi&&oi.__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)&&$rt(e,t,r);return Xrt(e,t),e};Object.defineProperty(oi,"__esModule",{value:!0});oi.req=oi.json=oi.toBuffer=void 0;var Zrt=ehe(b("http")),ent=ehe(b("https"));async function the(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}oi.toBuffer=the;async function tnt(t){let r=(await the(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}oi.json=tnt;function rnt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ent:Zrt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}oi.req=rnt});var d8=E(qi=>{"use strict";var she=qi&&qi.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nnt=qi&&qi.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ihe=qi&&qi.__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)&&she(e,t,r);return nnt(e,t),e},snt=qi&&qi.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&she(e,t,r)};Object.defineProperty(qi,"__esModule",{value:!0});qi.Agent=void 0;var int=ihe(b("net")),nhe=ihe(b("http")),ont=b("https");snt(rhe(),qi);var Pc=Symbol("AgentBaseInternalState"),l8=class extends nhe.Agent{constructor(e){super(e),this[Pc]={}}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 int.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)?ont.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),o=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(a=>{if(this.decrementSockets(i,o),a instanceof nhe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[Pc].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[Pc].currentSocket;if(this[Pc].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Pc].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Pc]&&(this[Pc].defaultPort=e)}get protocol(){return this[Pc].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Pc]&&(this[Pc].protocol=e)}};qi.Agent=l8});var ohe=E(Xm=>{"use strict";var ant=Xm&&Xm.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xm,"__esModule",{value:!0});Xm.parseProxyResponse=void 0;var cnt=ant(KT()),$T=(0,cnt.default)("https-proxy-agent:parse-proxy-response");function Ant(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(),$T("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),$T("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){YT("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),Y=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,Y]:Array.isArray(k)?k.push(Y):C[M]=Y}YT("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}jm.parseProxyResponse=Crt});var qde=E(vo=>{"use strict";var Irt=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]})),yrt=vo&&vo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Hde=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)&&Irt(e,t,r);return yrt(e,t),e},Gde=vo&&vo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(vo,"__esModule",{value:!0});vo.HttpsProxyAgent=void 0;var VT=Hde(b("net")),Ude=Hde(b("tls")),Brt=Gde(b("assert")),brt=Gde(qT()),Qrt=$3(),wrt=b("url"),Srt=Lde(),Oy=(0,brt.default)("https-proxy-agent"),Pde=t=>t.servername===void 0&&t.host&&!VT.isIP(t.host)?{...t,servername:t.host}:t,WT=class extends Qrt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wrt.URL(e):e,this.proxyHeaders=r?.headers??{},Oy("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?Ode(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:"?(Oy("Creating `tls.Socket`: %o",this.connectOpts),s=Ude.connect(Pde(this.connectOpts))):(Oy("Creating `net.Socket`: %o",this.connectOpts),s=VT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=VT.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`);if(d===-1){$T("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
`),f=h.shift();if(!f)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=f.split(" "),I=+p[1],m=p.slice(2).join(" "),C={};for(let y of h){if(!y)continue;let N=y.indexOf(":");if(N===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${y}"`));let M=y.slice(0,N).toLowerCase(),O=y.slice(N+1).trimStart(),k=C[M];typeof k=="string"?C[M]=[k,O]:Array.isArray(k)?k.push(O):C[M]=O}$T("got proxy server response: %o %o",f,C),o(),e({connect:{statusCode:I,statusText:m,headers:C},buffered:l})}t.on("error",c),t.on("end",a),i()})}Xm.parseProxyResponse=Ant});var dhe=E(_o=>{"use strict";var unt=_o&&_o.__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]})),lnt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),uhe=_o&&_o.__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)&&unt(e,t,r);return lnt(e,t),e},lhe=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpsProxyAgent=void 0;var XT=uhe(b("net")),ahe=uhe(b("tls")),dnt=lhe(b("assert")),hnt=lhe(KT()),fnt=d8(),gnt=b("url"),pnt=ohe(),Wy=(0,hnt.default)("https-proxy-agent"),che=t=>t.servername===void 0&&t.host&&!XT.isIP(t.host)?{...t,servername:t.host}:t,ZT=class extends fnt.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new gnt.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?Ahe(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=ahe.connect(che(this.connectOpts))):(Wy("Creating `net.Socket`: %o",this.connectOpts),s=XT.connect(this.connectOpts));let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=XT.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,Srt.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",Nrt),r.secureEndpoint?(Oy("Upgrading socket connection to TLS"),Ude.connect({...Ode(Pde(r),"host","path","port"),socket:s})):s;s.destroy();let l=new VT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Oy("Replaying proxy buffer for failed request"),(0,Brt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};WT.protocols=["http","https"];vo.HttpsProxyAgent=WT;function Nrt(t){t.resume()}function Ode(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Wde=E(_o=>{"use strict";var Trt=_o&&_o.__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]})),xrt=_o&&_o.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Vde=_o&&_o.__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)&&Trt(e,t,r);return xrt(e,t),e},Rrt=_o&&_o.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(_o,"__esModule",{value:!0});_o.HttpProxyAgent=void 0;var Drt=Vde(b("net")),krt=Vde(b("tls")),vrt=Rrt(qT()),_rt=b("events"),Frt=$3(),Yde=b("url"),Km=(0,vrt.default)("http-proxy-agent"),JT=class extends Frt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new Yde.URL(e):e,this.proxyHeaders=r?.headers??{},Km("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?Mrt(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 Yde.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;Km("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Km("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
`;let c=(0,pnt.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",mnt),r.secureEndpoint?(Wy("Upgrading socket connection to TLS"),ahe.connect({...Ahe(che(r),"host","path","port"),socket:s})):s;s.destroy();let l=new XT.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Wy("Replaying proxy buffer for failed request"),(0,dnt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};ZT.protocols=["http","https"];_o.HttpsProxyAgent=ZT;function mnt(t){t.resume()}function Ahe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var ghe=E(Fo=>{"use strict";var Ent=Fo&&Fo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),Cnt=Fo&&Fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),fhe=Fo&&Fo.__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)&&Ent(e,t,r);return Cnt(e,t),e},Int=Fo&&Fo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Fo,"__esModule",{value:!0});Fo.HttpProxyAgent=void 0;var ynt=fhe(b("net")),Bnt=fhe(b("tls")),bnt=Int(KT()),Qnt=b("events"),wnt=d8(),hhe=b("url"),Zm=(0,bnt.default)("http-proxy-agent"),ex=class extends wnt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new hhe.URL(e):e,this.proxyHeaders=r?.headers??{},Zm("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?Snt(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 hhe.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;Zm("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Zm("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),Km("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Km("Creating `tls.Socket`: %o",this.connectOpts),i=krt.connect(this.connectOpts)):(Km("Creating `net.Socket`: %o",this.connectOpts),i=Drt.connect(this.connectOpts)),await(0,_rt.once)(i,"connect"),i}};JT.protocols=["http","https"];_o.HttpProxyAgent=JT;function Mrt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var She=E(cx=>{"use strict";Object.defineProperty(cx,"__esModule",{value:!0});cx.state=void 0;cx.state={instrumenterImplementation:void 0}});var qhe=E(hx=>{"use strict";Object.defineProperty(hx,"__esModule",{value:!0});hx.state=void 0;hx.state={operationRequestMap:new WeakMap}});var rpe=E((Mfr,Fct)=>{Fct.exports={name:"@actions/cache",version:"6.0.1",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 spe=E((Lfr,npe)=>{var Mct=rpe();npe.exports={version:Mct.version}});var LR=E(E0=>{"use strict";Object.defineProperty(E0,"__esModule",{value:!0});E0.isJsonObject=E0.typeofJsonValue=void 0;function Vct(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}E0.typeofJsonValue=Vct;function Wct(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}E0.isJsonObject=Wct});var PR=E(C0=>{"use strict";Object.defineProperty(C0,"__esModule",{value:!0});C0.base64encode=C0.base64decode=void 0;var Ou="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),UR=[];for(let t=0;t<Ou.length;t++)UR[Ou[t].charCodeAt(0)]=t;UR[45]=Ou.indexOf("+");UR[95]=Ou.indexOf("/");function Jct(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=UR[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)}C0.base64decode=Jct;function zct(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ou[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ou[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ou[s|n>>6],e+=Ou[n&63],r=0;break}return r&&(e+=Ou[s],e+="=",r==1&&(e+="=")),e}C0.base64encode=zct});var Ape=E(OR=>{"use strict";Object.defineProperty(OR,"__esModule",{value:!0});OR.utf8read=void 0;var HH=t=>String.fromCharCode.apply(String,t);function jct(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(HH(n)),s=0);return r.length?(s&&r.push(HH(n.slice(0,s))),r.join("")):HH(n.slice(0,s))}OR.utf8read=jct});var FB=E(AA=>{"use strict";Object.defineProperty(AA,"__esModule",{value:!0});AA.WireType=AA.mergeBinaryOptions=AA.UnknownFieldHandler=void 0;var Kct;(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])})(Kct=AA.UnknownFieldHandler||(AA.UnknownFieldHandler={}));function $ct(t,e){return Object.assign(Object.assign({},t),e)}AA.mergeBinaryOptions=$ct;var Xct;(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"})(Xct=AA.WireType||(AA.WireType={}))});var GR=E(di=>{"use strict";Object.defineProperty(di,"__esModule",{value:!0});di.varint32read=di.varint32write=di.int64toString=di.int64fromString=di.varint64write=di.varint64read=void 0;function Zct(){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")}di.varint64read=Zct;function eAt(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)}}di.varint64write=eAt;var HR=65536*65536;function tAt(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>=HR&&(s=s+(n/HR|0),n=n%HR)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}di.int64fromString=tAt;function rAt(t,e){if(e>>>0<=2097151)return""+(HR*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)}di.int64toString=rAt;function nAt(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)}}di.varint32write=nAt;function sAt(){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}di.varint32read=sAt});var pd=E(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.PbLong=gd.PbULong=gd.detectBi=void 0;var MB=GR(),ir;function upe(){let t=new DataView(new ArrayBuffer(8));ir=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}gd.detectBi=upe;upe();function lpe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var dpe=/^-?[0-9]+$/,YR=4294967296,qR=2147483648,VR=c
Line truncated
|
||||
`)}};gD.RpcError=f9});var p9=E(mD=>{"use strict";Object.defineProperty(mD,"__esModule",{value:!0});mD.mergeRpcOptions=void 0;var Gpe=At();function Sut(t,e){if(!e)return t;let r={};pD(t,r),pD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=Gpe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=Gpe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},pD(t.meta,r.meta),pD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}mD.mergeRpcOptions=Sut;function pD(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 E9=E(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.Deferred=qf.DeferredState=void 0;var dA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(dA=qf.DeferredState||(qf.DeferredState={}));var m9=class{constructor(e=!0){this._state=dA.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!==dA.PENDING)throw new Error(`cannot resolve ${dA[this.state].toLowerCase()}`);this._resolve(e),this._state=dA.RESOLVED}reject(e){if(this.state!==dA.PENDING)throw new Error(`cannot reject ${dA[this.state].toLowerCase()}`);this._reject(e),this._state=dA.REJECTED}resolvePending(e){this._state===dA.PENDING&&this.resolve(e)}rejectPending(e){this._state===dA.PENDING&&this.reject(e)}};qf.Deferred=m9});var I9=E(ED=>{"use strict";Object.defineProperty(ED,"__esModule",{value:!0});ED.RpcOutputStreamController=void 0;var qpe=E9(),Yf=At(),C9=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){Yf.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){Yf.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){Yf.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(){Yf.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;Yf.assert(e,"bad state"),Yf.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 qpe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Yf.assert(n.state==qpe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};ED.RpcOutputStreamController=C9});var B9=E(S0=>{"use strict";var Nut=S0&&S0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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(S0,"__esModule",{value:!0});S0.UnaryCall=void 0;var y9=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 Nut(this,void 0,void 0,function*(){let[e,r,n,s]=yield Promise.all([this.headers,this.response,this.status,this.trailers]);return{method:this.method,requestHeaders:this.requestHeaders,request:this.request,headers:e,response:r,status:n,trailers:s}})}};S0.UnaryCall=y9});var Q9=E(N0=>{"use strict";var Tut=N0&&N0.__awaiter||function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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(N0,"__esModule",{value:!0});N0.ServerStreamingCall=void 0;var b9=class{constructor(e
Line truncated
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),Zm("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Zm("Creating `tls.Socket`: %o",this.connectOpts),i=Bnt.connect(this.connectOpts)):(Zm("Creating `net.Socket`: %o",this.connectOpts),i=ynt.connect(this.connectOpts)),await(0,Qnt.once)(i,"connect"),i}};ex.protocols=["http","https"];Fo.HttpProxyAgent=ex;function Snt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var jhe=E(gx=>{"use strict";Object.defineProperty(gx,"__esModule",{value:!0});gx.state=void 0;gx.state={instrumenterImplementation:void 0}});var dfe=E(Ix=>{"use strict";Object.defineProperty(Ix,"__esModule",{value:!0});Ix.state=void 0;Ix.state={operationRequestMap:new WeakMap}});var Wpe=E((apr,OAt)=>{OAt.exports={name:"@actions/cache",version:"6.0.1",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 zpe=E((cpr,Jpe)=>{var HAt=Wpe();Jpe.exports={version:HAt.version}});var XR=E(Q0=>{"use strict";Object.defineProperty(Q0,"__esModule",{value:!0});Q0.isJsonObject=Q0.typeofJsonValue=void 0;function KAt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}Q0.typeofJsonValue=KAt;function $At(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}Q0.isJsonObject=$At});var eD=E(w0=>{"use strict";Object.defineProperty(w0,"__esModule",{value:!0});w0.base64encode=w0.base64decode=void 0;var Hu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),ZR=[];for(let t=0;t<Hu.length;t++)ZR[Hu[t].charCodeAt(0)]=t;ZR[45]=Hu.indexOf("+");ZR[95]=Hu.indexOf("/");function XAt(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=ZR[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)}w0.base64decode=XAt;function ZAt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Hu[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Hu[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Hu[s|n>>6],e+=Hu[n&63],r=0;break}return r&&(e+=Hu[s],e+="=",r==1&&(e+="=")),e}w0.base64encode=ZAt});var Zpe=E(tD=>{"use strict";Object.defineProperty(tD,"__esModule",{value:!0});tD.utf8read=void 0;var u9=t=>String.fromCharCode.apply(String,t);function eut(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(u9(n)),s=0);return r.length?(s&&r.push(u9(n.slice(0,s))),r.join("")):u9(n.slice(0,s))}tD.utf8read=eut});var GB=E(uA=>{"use strict";Object.defineProperty(uA,"__esModule",{value:!0});uA.WireType=uA.mergeBinaryOptions=uA.UnknownFieldHandler=void 0;var tut;(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])})(tut=uA.UnknownFieldHandler||(uA.UnknownFieldHandler={}));function rut(t,e){return Object.assign(Object.assign({},t),e)}uA.mergeBinaryOptions=rut;var nut;(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"})(nut=uA.WireType||(uA.WireType={}))});var nD=E(hi=>{"use strict";Object.defineProperty(hi,"__esModule",{value:!0});hi.varint32read=hi.varint32write=hi.int64toString=hi.int64fromString=hi.varint64write=hi.varint64read=void 0;function sut(){let t=0,e=0;for(let n=0;n<28;n+=7){let s=this.buf[this.pos++];if(t|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}let r=this.buf[this.pos++];if(t|=(r&15)<<28,e=(r&112)>>4,(r&128)==0)return this.assertBounds(),[t,e];for(let n=3;n<=31;n+=7){let s=this.buf[this.pos++];if(e|=(s&127)<<n,(s&128)==0)return this.assertBounds(),[t,e]}throw new Error("invalid varint")}hi.varint64read=sut;function iut(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)}}hi.varint64write=iut;var rD=65536*65536;function out(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>=rD&&(s=s+(n/rD|0),n=n%rD)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}hi.int64fromString=out;function aut(t,e){if(e>>>0<=2097151)return""+(rD*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)}hi.int64toString=aut;function cut(t,e){if(t>=0){for(;t>127;)e.push(t&127|128),t=t>>>7;e.push(t)}else{for(let r=0;r<9;r++)e.push(t&127|128),t=t>>7;e.push(1)}}hi.varint32write=cut;function Aut(){let t=this.buf[this.pos++],e=t&127;if((t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<7,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<14,(t&128)==0)return this.assertBounds(),e;if(t=this.buf[this.pos++],e|=(t&127)<<21,(t&128)==0)return this.assertBounds(),e;t=this.buf[this.pos++],e|=(t&15)<<28;for(let r=5;(t&128)!==0&&r<10;r++)t=this.buf[this.pos++];if((t&128)!=0)throw new Error("invalid varint");return this.assertBounds(),e>>>0}hi.varint32read=Aut});var Ed=E(md=>{"use strict";Object.defineProperty(md,"__esModule",{value:!0});md.PbLong=md.PbULong=md.detectBi=void 0;var qB=nD(),ir;function eme(){let t=new DataView(new ArrayBuffer(8));ir=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}md.detectBi=eme;eme();function tme(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var rme=/^-?[0-9]+$/,iD=4294967296,sD=2147483648,oD=c
Line truncated
|
||||
`)}};RD.RpcError=L9});var P9=E(kD=>{"use strict";Object.defineProperty(kD,"__esModule",{value:!0});kD.mergeRpcOptions=void 0;var kme=At();function Dlt(t,e){if(!e)return t;let r={};DD(t,r),DD(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=kme.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=kme.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},DD(t.meta,r.meta),DD(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}kD.mergeRpcOptions=Dlt;function DD(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 H9=E(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});Wf.Deferred=Wf.DeferredState=void 0;var hA;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(hA=Wf.DeferredState||(Wf.DeferredState={}));var O9=class{constructor(e=!0){this._state=hA.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!==hA.PENDING)throw new Error(`cannot resolve ${hA[this.state].toLowerCase()}`);this._resolve(e),this._state=hA.RESOLVED}reject(e){if(this.state!==hA.PENDING)throw new Error(`cannot reject ${hA[this.state].toLowerCase()}`);this._reject(e),this._state=hA.REJECTED}resolvePending(e){this._state===hA.PENDING&&this.resolve(e)}rejectPending(e){this._state===hA.PENDING&&this.reject(e)}};Wf.Deferred=O9});var q9=E(vD=>{"use strict";Object.defineProperty(vD,"__esModule",{value:!0});vD.RpcOutputStreamController=void 0;var vme=H9(),Jf=At(),G9=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){Jf.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){Jf.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){Jf.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(){Jf.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;Jf.assert(e,"bad state"),Jf.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 vme.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;Jf.assert(n.state==vme.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};vD.RpcOutputStreamController=G9});var V9=E(k0=>{"use strict";var klt=k0&&k0.__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(k0,"__esModule",{value:!0});k0.UnaryCall=void 0;var Y9=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 klt(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}})}};k0.UnaryCall=Y9});var J9=E(v0=>{"use strict";var vlt=v0&&v0.__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(v0,"__esModule",{value:!0});v0.ServerStreamingCall=void 0;var W9=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 $Ce=E(KCe=>{"use strict";var IY=Xu().Buffer;KCe._dbcs=Zu;var Zn=-1,jCe=-2,na=-10,Us=-1e3,iE=new Array(256),_b=-1;for(tk=0;tk<256;tk++)iE[tk]=Zn;var tk;function Zu(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]=iE.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(iE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(iE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=jCe)}}}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 SIt(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(lIt.has(s)){r=s;break}}return r}function NIt(t,e){let r=SIt(e);r!==""&&(t.referrerPolicy=r)}function TIt(){return"allowed"}function xIt(){return"success"}function RIt(){return"success"}function DIt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function kIt(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&&UV(t.origin)&&!UV(Cg(t))&&(e=null);break;case"same-origin":qb(t,Cg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function uE(t,e){return t}function vIt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:uE(t.domainLookupStartTime,r),domainLookupEndTime:uE(t.domainLookupEndTime,r),connectionStartTime:uE(t.connectionStartTime,r),connectionEndTime:uE(t.connectionEndTime,r),secureConnectionStartTime:uE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function _It(t){return uE(gIt.now(),t)}function FIt(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 NBe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function MIt(t){return{referrerPolicy:t.referrerPolicy}}function LIt(t){let e=t.referrerPolicy;Yb(e);let r=null;if(t.referrer==="client"){let i=BBe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Od.is.URL(t.referrer)&&(r=t.referrer);let n=LV(r),s=LV(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??LV(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 qb(n,i)?n:Eg(n)&&!Eg(i)?"no-referrer":s}case"same-origin":return qb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return qb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Cg(t);return Eg(n)&&!Eg(i)?"no-referrer":n}}}function LV(t,e=!1){return Yb(Od.is.URL(t)),t=new URL(t),DBe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var UIt=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)$/),PIt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function TBe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),PIt(t)):UIt(t)}function OIt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||TBe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Eg(t){return Od.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:OIt(t.origin):!1}function HIt(t){}function qb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function GIt(t){return t.controller.state==="aborted"}function qIt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function YIt(t){return mIt[t.toLowerCase()]??t}var VIt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function xBe(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,VIt),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 WIt(t,e,r,n=0,s=1){let i=xBe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Od.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Od.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=oa(a=>JV(a)&&a!==59,t,e);i=VV.decode(o)}return{name:n,value:i}}function pyt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw Ii("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=oa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=WV(o,!0,!0,a=>a===9||a===32),!cyt.test(o.toString()))throw Ii("header name does not match the field-name token production");if(t[e.position]!==58)throw Ii("expected :");switch(e.position++,oa(a=>a===32||a===9,t,e),ayt(o)){case"content-disposition":{if(r=n=null,oa(c=>JV(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw Ii("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=gyt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw Ii("name attribute is required in content-disposition header");break}case"content-type":{let a=oa(c=>c!==10&&c!==13,t,e);a=WV(a,!1,!0,c=>c===9||c===32),s=LBe(a);break}case"content-transfer-encoding":{let a=oa(c=>c!==10&&c!==13,t,e);a=WV(a,!1,!0,c=>c===9||c===32),i=LBe(a);break}default:oa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw Ii("expected CRLF");e.position+=2}}function oa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function WV(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 myt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function Ii(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function Eyt(t){return t<=31||t===127}function Cyt(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 JV(t){return t<=127&&t!==32&&t!==9&&!Eyt(t)&&!Cyt(t)}UBe.exports={multipartFormDataParser:fyt,validateBoundary:hyt}});var Vb=E((Hyr,OBe)=>{"use strict";function Iyt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}OBe.exports={createDeferredPromise:Iyt}});var hE=E((Gyr,VBe)=>{"use strict";var KV=Ze(),{ReadableStreamFrom:yyt,readableStreamClose:Byt,fullyReadBody:byt,extractMimeType:Qyt}=to(),{FormData:HBe,setFormDataState:wyt}=Sk(),{webidl:ac}=es(),zV=b("node:assert"),{isErrored:jV,isDisturbed:Syt}=b("node:stream"),{isUint8Array:Nyt}=b("node:util/types"),{serializeAMimeType:Tyt}=ia(),{multipartFormDataParser:xyt}=PBe(),{createDeferredPromise:Ryt}=Vb(),{parseJSONFromBytes:Dyt}=rl(),{utf8DecodeBytes:kyt}=Ik(),{runtimeFeatures:vyt}=nl(),_yt=vyt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Nk=new TextEncoder;function Fyt(){}var Myt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!Syt(e)&&!jV(e)&&e.cancel("Response object has been garbage collected").catch(Fyt)});function qBe(t,e=!1){let r=null,n=null;ac.is.ReadableStream(t)?r=t:ac.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),zV(ac.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(ac.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(ac.is.BufferSource(t))i=ac.util.getCopyOfBytesHeldByBufferSource(t);else if(ac.is.FormData(t)){let A=`----formdata-undici-0${`${_yt(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 HIe=E(OIe=>{"use strict";var qY=Zu().Buffer;OIe._dbcs=el;var Zn=-1,PIe=-2,sa=-10,Us=-1e3,lE=new Array(256),Hb=-1;for(pk=0;pk<256;pk++)lE[pk]=Zn;var pk;function el(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]=lE.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(lE.slice(0));var i=this.decodeTables.length;this.decodeTables.push(lE.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Us-o[n]],c=48;c<=57;c++){if(a[c]===Zn)a[c]=Us-s;else if(a[c]>Us)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Us-a[c]],u=129;u<=254;u++){if(A[u]===Zn)A[u]=Us-i;else{if(A[u]===Us-i)continue;if(A[u]>Us)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Us-A[u]],d=48;d<=57;d++)l[d]===Zn&&(l[d]=PIe)}}}this.defaultCharUnicode=e.defaultCharUnicode,this.encodeTable=[],this.encodeTableSeq=[];var h={};if(t.encodeSkipVals)for(var n=0;n<t.encodeSkipValsLine truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function Dyt(t){let e=(t.headersList.get("referrer-policy",!0)??"").split(","),r="";if(e.length)for(let n=e.length;n!==0;n--){let s=e[n-1].trim();if(pyt.has(s)){r=s;break}}return r}function kyt(t,e){let r=Dyt(e);r!==""&&(t.referrerPolicy=r)}function vyt(){return"allowed"}function _yt(){return"success"}function Fyt(){return"success"}function Myt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Lyt(t){let e=t.origin;if(!(e==="client"||e===void 0)){if(t.responseTainting==="cors"||t.mode==="websocket")t.headersList.append("origin",e,!0);else if(t.method!=="GET"&&t.method!=="HEAD"){switch(t.referrerPolicy){case"no-referrer":e=null;break;case"no-referrer-when-downgrade":case"strict-origin":case"strict-origin-when-cross-origin":t.origin&&a7(t.origin)&&!a7(Bg(t))&&(e=null);break;case"same-origin":Kb(t,Bg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function pE(t,e){return t}function Uyt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:pE(t.domainLookupStartTime,r),domainLookupEndTime:pE(t.domainLookupEndTime,r),connectionStartTime:pE(t.connectionStartTime,r),connectionEndTime:pE(t.connectionEndTime,r),secureConnectionStartTime:pE(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function Pyt(t){return pE(Iyt.now(),t)}function Oyt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function mbe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function Hyt(t){return{referrerPolicy:t.referrerPolicy}}function Gyt(t){let e=t.referrerPolicy;$b(e);let r=null;if(t.referrer==="client"){let i=dbe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else Gd.is.URL(t.referrer)&&(r=t.referrer);let n=o7(r),s=o7(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??o7(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Bg(t);return Kb(n,i)?n:yg(n)&&!yg(i)?"no-referrer":s}case"same-origin":return Kb(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Kb(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Bg(t);return yg(n)&&!yg(i)?"no-referrer":n}}}function o7(t,e=!1){return $b(Gd.is.URL(t)),t=new URL(t),ybe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var qyt=RegExp.prototype.test.bind(/^127\.(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){2}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)$/),Yyt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function Ebe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),Yyt(t)):qyt(t)}function Vyt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||Ebe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function yg(t){return Gd.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:Vyt(t.origin):!1}function Wyt(t){}function Kb(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function Jyt(t){return t.controller.state==="aborted"}function zyt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function jyt(t){return Byt[t.toLowerCase()]??t}var Kyt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function Cbe(t,e,r=0,n=1){class s{#e;#t;#n;constructor(o,a){this.#e=o,this.#t=a,this.#n=0}next(){if(typeof this!="object"||this===null||!(#e in this))throw new TypeError(`'next' called on an object that does not implement interface ${t} Iterator.`);let o=this.#n,a=e(this.#e),c=a.length;if(o>=c)return{value:void 0,done:!0};let{[r]:A,[n]:u}=a[o];this.#n=o+1;let l;switch(this.#t){case"key":l=A;break;case"value":l=u;break;case"key+value":l=[A,u];break}return{value:l,done:!1}}}return delete s.prototype.constructor,Object.setPrototypeOf(s.prototype,Kyt),Object.defineProperties(s.prototype,{[Symbol.toStringTag]:{writable:!1,enumerable:!1,configurable:!0,value:`${t} Iterator`},next:{writable:!0,enumerable:!0,configurable:!0}}),function(i,o){return new s(i,o)}}function $yt(t,e,r,n=0,s=1){let i=Cbe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Gd.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return Gd.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=aa(a=>p7(a)&&a!==59,t,e);i=f7.decode(o)}return{name:n,value:i}}function yBt(t,e){let r=null,n=null,s=null,i=null;for(;;){if(t[e.position]===13&&t[e.position+1]===10){if(r===null)throw yi("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=aa(a=>a!==10&&a!==13&&a!==58,t,e);if(o=g7(o,!0,!0,a=>a===9||a===32),!hBt.test(o.toString()))throw yi("header name does not match the field-name token production");if(t[e.position]!==58)throw yi("expected :");switch(e.position++,aa(a=>a===32||a===9,t,e),dBt(o)){case"content-disposition":{if(r=n=null,aa(c=>p7(c),t,e).toString("ascii").toLowerCase()!=="form-data")throw yi("expected form-data for content-disposition header");for(;e.position<t.length&&t[e.position]!==13&&t[e.position+1]!==10;){let c=IBt(t,e);if(!c)break;c.name==="name"?r=c.value:c.name==="filename"&&(n=c.value)}if(r===null)throw yi("name attribute is required in content-disposition header");break}case"content-type":{let a=aa(c=>c!==10&&c!==13,t,e);a=g7(a,!1,!0,c=>c===9||c===32),s=Nbe(a);break}case"content-transfer-encoding":{let a=aa(c=>c!==10&&c!==13,t,e);a=g7(a,!1,!0,c=>c===9||c===32),i=Nbe(a);break}default:aa(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)throw yi("expected CRLF");e.position+=2}}function aa(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function g7(t,e,r,n){let s=0,i=t.length-1;if(e)for(;s<t.length&&n(t[s]);)s++;if(r)for(;i>0&&n(t[i]);)i--;return s===0&&i===t.length-1?t:t.subarray(s,i+1)}function BBt(t,e,r){if(t.length<e.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[r.position+n])return!1;return!0}function yi(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function bBt(t){return t<=31||t===127}function QBt(t){return t===40||t===41||t===60||t===62||t===64||t===44||t===59||t===58||t===92||t===34||t===47||t===91||t===93||t===63||t===61}function p7(t){return t<=127&&t!==32&&t!==9&&!bBt(t)&&!QBt(t)}Tbe.exports={multipartFormDataParser:CBt,validateBoundary:EBt}});var Xb=E((dbr,Rbe)=>{"use strict";function wBt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}Rbe.exports={createDeferredPromise:wBt}});var CE=E((hbr,Fbe)=>{"use strict";var C7=Ze(),{ReadableStreamFrom:SBt,readableStreamClose:NBt,fullyReadBody:TBt,extractMimeType:xBt}=ro(),{FormData:Dbe,setFormDataState:RBt}=Hk(),{webidl:cc}=es(),m7=b("node:assert"),{isErrored:E7,isDisturbed:DBt}=b("node:stream"),{isUint8Array:kBt}=b("node:util/types"),{serializeAMimeType:vBt}=oa(),{multipartFormDataParser:_Bt}=xbe(),{createDeferredPromise:FBt}=Xb(),{parseJSONFromBytes:MBt}=nl(),{utf8DecodeBytes:LBt}=Fk(),{runtimeFeatures:UBt}=sl(),PBt=UBt.has("crypto")?b("node:crypto").randomInt:t=>Math.floor(Math.random()*t),Gk=new TextEncoder;function OBt(){}var HBt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!DBt(e)&&!E7(e)&&e.cancel("Response object has been garbage collected").catch(OBt)});function vbe(t,e=!1){let r=null,n=null;cc.is.ReadableStream(t)?r=t:cc.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),m7(cc.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(cc.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(cc.is.BufferSource(t))i=cc.util.getCopyOfBytesHeldByBufferSource(t);else if(cc.is.FormData(t)){let A=`----formdata-undici-0${`${PBt(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 p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Nk.encode(u+`; name="${l(d(m))}"\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let p=!1;for(let[m,C]of t)if(typeof C=="string"){let y=Gk.encode(u+`; name="${l(d(m))}"\r
|
||||
\r
|
||||
${d(C)}\r
|
||||
`);h.push(y),o+=y.byteLength}else{let y=Nk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
|
||||
`);h.push(y),o+=y.byteLength}else{let y=Gk.encode(`${u}; name="${l(d(m))}"`+(C.name?`; filename="${l(C.name)}"`:"")+`\r
|
||||
Content-Type: ${C.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Nk.encode(`--${A}--\r
|
||||
`);h.push(I),o+=I.byteLength,p&&(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(ac.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(KV.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=ac.is.ReadableStream(t)?t:yyt(t)}return(typeof i=="string"||Nyt(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(jV(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!jV(r)&&n.enqueue(typeof A=="string"?Nk.encode(A):new Uint8Array(A));queueMicrotask(()=>Byt(n))})(),[{stream:r,source:i,length:o},a]}function Lyt(t,e=!1){return ac.is.ReadableStream(t)&&(zV(!KV.isDisturbed(t),"The body has already been consumed."),zV(!t.locked,"The stream is locked.")),qBe(t,e)}function Uyt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function Pyt(t,e){return{blob(){return dE(this,n=>{let s=GBe(e(this));return s===null?s="":s&&(s=Tyt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return dE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return dE(this,kyt,t,e)},json(){return dE(this,Dyt,t,e)},formData(){return dE(this,n=>{let s=GBe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=xyt(n,s),o=new HBe;return wyt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new HBe;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 dE(this,n=>new Uint8Array(n),t,e)}}}function Oyt(t,e){Object.assign(t.prototype,Pyt(t,e))}function dE(t,e,r,n){try{ac.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),YBe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=Ryt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(byt(t.body,o,i),s.promise)}function YBe(t){let e=t.body;return e!=null&&(e.stream.locked||KV.isDisturbed(e.stream))}function GBe(t){let e=t.headersList,r=Qyt(e);return r==="failure"?null:r}VBe.exports={extractBody:qBe,safelyExtractBody:Lyt,cloneBody:Uyt,mixinBody:Oyt,streamRegistry:Myt,bodyUnusable:YBe}});var rbe=E((qyr,tbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:WBe}=Ud(),$V=kY(),{RequestContentLengthMismatchError:Ig,ResponseContentLengthMismatchError:Hyt,RequestAbortedError:XBe,HeadersTimeoutError:Gyt,HeadersOverflowError:qyt,SocketError:zb,InformationalError:fE,BodyTimeoutError:Yyt,HTTPParserError:Vyt,ResponseExceededMaxSizeError:Wyt}=Ke(),{kUrl:ZBe,kReset:yi,kClient:s7,kParser:Wr,kBlocking:jb,kRunning:ms,kPending:Jyt,kSize:JBe,kWriting:Gd,kQueue:cc,kNoRef:Wb,kKeepAliveDefaultTimeout:zyt,kHostHeader:jyt,kPendingIdx:Kyt,kRunningIdx:aa,kError:ca,kPipelining:Rk,kSocket:gE,kKeepAliveTimeoutValue:kk,kMaxHeadersSize:$yt,kKeepAliveMaxTimeout:Xyt,kKeepAliveTimeoutThreshold:Zyt,kHeadersTimeout:eBt,kBodyTimeout:tBt,kStrictContentLength:e7,kMaxRequests:zBe,kCounter:rBt,kMaxResponseSize:nBt,kOnError:sBt,kResume:Hd,kHTTPContext:ebe,kClosed:t7}=Kt(),bA=Vye(),iBt=Buffer.alloc(0),Tk=Buffer[Symbol.species],oBt=Je.removeAllListeners,XV;function aBt(){let t=process.env.JEST_WORKER_ID?QV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(zye())}catch{}return e||(e=new WebAssembly.Module(t||QV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-wA+QA.byteOffset;return bn.onStatus(new Tk(QA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-wA+QA.byteOffset;return bn.onHeaderField(new Tk(QA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-wA+QA.byteOffset;return bn.onHeaderValue(new Tk(QA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-wA+QA.byteOffset;return bn.onBody(new Tk(QA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var ZV=null,bn=null,QA=null,xk=0,wA=null,cBt=0,Jb=1,pE=2|Jb,Dk=4|Jb,r7=8|cBt,n7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(bA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[$yt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[nBt]}setTi
Line truncated
|
||||
`);h.push(y,C,f),typeof C.size=="number"?o+=y.byteLength+C.size+f.byteLength:p=!0}let I=Gk.encode(`--${A}--\r
|
||||
`);h.push(I),o+=I.byteLength,p&&(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(cc.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=cc.is.ReadableStream(t)?t:SBt(t)}return(typeof i=="string"||kBt(i))&&(s=()=>(o=typeof i=="string"?Buffer.byteLength(i):i.length,i)),s!=null&&(async()=>{let A=s(),u=A?.[Symbol.asyncIterator]?.();if(u)for await(let l of u){if(E7(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!E7(r)&&n.enqueue(typeof A=="string"?Gk.encode(A):new Uint8Array(A));queueMicrotask(()=>NBt(n))})(),[{stream:r,source:i,length:o},a]}function GBt(t,e=!1){return cc.is.ReadableStream(t)&&(m7(!C7.isDisturbed(t),"The body has already been consumed."),m7(!t.locked,"The stream is locked.")),vbe(t,e)}function qBt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function YBt(t,e){return{blob(){return EE(this,n=>{let s=kbe(e(this));return s===null?s="":s&&(s=vBt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return EE(this,n=>new Uint8Array(n).buffer,t,e)},text(){return EE(this,LBt,t,e)},json(){return EE(this,MBt,t,e)},formData(){return EE(this,n=>{let s=kbe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=_Bt(n,s),o=new Dbe;return RBt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new Dbe;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 EE(this,n=>new Uint8Array(n),t,e)}}}function VBt(t,e){Object.assign(t.prototype,YBt(t,e))}function EE(t,e,r,n){try{cc.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),_be(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=FBt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(TBt(t.body,o,i),s.promise)}function _be(t){let e=t.body;return e!=null&&(e.stream.locked||C7.isDisturbed(e.stream))}function kbe(t){let e=t.headersList,r=xBt(e);return r==="failure"?null:r}Fbe.exports={extractBody:vbe,safelyExtractBody:GBt,cloneBody:qBt,mixinBody:VBt,streamRegistry:HBt,bodyUnusable:_be}});var Wbe=E((fbr,Vbe)=>{"use strict";var We=b("node:assert"),Je=Ze(),{channels:Mbe}=Od(),I7=tV(),{RequestContentLengthMismatchError:bg,ResponseContentLengthMismatchError:WBt,RequestAbortedError:Gbe,HeadersTimeoutError:JBt,HeadersOverflowError:zBt,SocketError:tQ,InformationalError:IE,BodyTimeoutError:jBt,HTTPParserError:KBt,ResponseExceededMaxSizeError:$Bt}=Ke(),{kUrl:qbe,kReset:Bi,kClient:N7,kParser:Wr,kBlocking:rQ,kRunning:ms,kPending:XBt,kSize:Lbe,kWriting:Yd,kQueue:Ac,kNoRef:Zb,kKeepAliveDefaultTimeout:ZBt,kHostHeader:ebt,kPendingIdx:tbt,kRunningIdx:ca,kError:Aa,kPipelining:Vk,kSocket:yE,kKeepAliveTimeoutValue:Jk,kMaxHeadersSize:rbt,kKeepAliveMaxTimeout:nbt,kKeepAliveTimeoutThreshold:sbt,kHeadersTimeout:ibt,kBodyTimeout:obt,kStrictContentLength:b7,kMaxRequests:Ube,kCounter:abt,kMaxResponseSize:cbt,kOnError:Abt,kResume:qd,kHTTPContext:Ybe,kClosed:Q7}=Kt(),QA=FBe(),ubt=Buffer.alloc(0),qk=Buffer[Symbol.species],lbt=Je.removeAllListeners,y7;function dbt(){let t=process.env.JEST_WORKER_ID?JV():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!0:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!1),r)try{e=new WebAssembly.Module(UBe())}catch{}return e||(e=new WebAssembly.Module(t||JV())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{We(bn.ptr===n);let o=s-SA+wA.byteOffset;return bn.onStatus(new qk(wA.buffer,o,i))},wasm_on_message_begin:n=>(We(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{We(bn.ptr===n);let o=s-SA+wA.byteOffset;return bn.onHeaderField(new qk(wA.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{We(bn.ptr===n);let o=s-SA+wA.byteOffset;return bn.onHeaderValue(new qk(wA.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(We(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{We(bn.ptr===n);let o=s-SA+wA.byteOffset;return bn.onBody(new qk(wA.buffer,o,i))},wasm_on_message_complete:n=>(We(bn.ptr===n),bn.onMessageComplete())}})}var B7=null,bn=null,wA=null,Yk=0,SA=null,hbt=0,eQ=1,BE=2|eQ,Wk=4|eQ,w7=8|hbt,S7=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(QA.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[rbt],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[cbt]}setTi
Line truncated
|
||||
`;if(typeof s=="string"?p+=`host: ${s}\r
|
||||
`:p+=t[jyt],i?p+=`connection: upgrade\r
|
||||
`:p+=t[ebt],i?p+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
`:t[Rk]&&!h[yi]?p+=`connection: keep-alive\r
|
||||
`:t[Vk]&&!h[Bi]?p+=`connection: keep-alive\r
|
||||
`:p+=`connection: close\r
|
||||
`,Array.isArray(A))for(let I=0;I<A.length;I+=2){let m=A[I+0],C=A[I+1];if(Array.isArray(C))for(let y=0;y<C.length;y++)p+=`${m}: ${C[y]}\r
|
||||
`;else p+=`${m}: ${C}\r
|
||||
`}return WBe.sendHeaders.hasSubscribers&&WBe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?KBe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?KBe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?$Be(f,c.stream(),t,e,h,u,p,l):CBt(f,c,t,e,h,u,p,l):Je.isStream(c)?EBt(f,c,t,e,h,u,p,l):Je.isIterable(c)?$Be(f,c,t,e,h,u,p,l):We(!1),!0}function EBt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new vk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new XBe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Gd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function KBe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
`}return Mbe.sendHeaders.hasSubscribers&&Mbe.sendHeaders.publish({request:e,headers:p,socket:h}),!c||d===0?Obe(f,null,t,e,h,u,p,l):Je.isBuffer(c)?Obe(f,c,t,e,h,u,p,l):Je.isBlobLike(c)?typeof c.stream=="function"?Hbe(f,c.stream(),t,e,h,u,p,l):Qbt(f,c,t,e,h,u,p,l):Je.isStream(c)?bbt(f,c,t,e,h,u,p,l):Je.isIterable(c)?Hbe(f,c,t,e,h,u,p,l):We(!1),!0}function bbt(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===0,"stream body cannot be pipelined");let c=!1,A=new zk({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(p){Je.destroy(this,p)}},l=function(){c||e.resume&&e.resume()},d=function(){if(queueMicrotask(()=>{e.removeListener("error",h)}),!c){let f=new Gbe;queueMicrotask(()=>h(f))}},h=function(f){if(!c){if(c=!0,We(s.destroyed||s[Yd]&&r[ms]<=1),s.off("drain",l).off("error",h),e.removeListener("data",u).removeListener("end",h).removeListener("close",d),!f)try{A.end()}catch(p){f=p}A.destroy(f),f&&(f.code!=="UND_ERR_INFO"||f.message!=="reset")?Je.destroy(e,f):Je.destroy(e)}};e.on("data",u).on("end",h).on("error",h).on("close",d),e.resume&&e.resume(),s.on("drain",l).on("error",h),e.errorEmitted??e.errored?setImmediate(h,e.errored):(e.endEmitted??e.readableEnded)&&setImmediate(h,null),(e.closeEmitted??e.closed)&&setImmediate(d)}function Obe(t,e,r,n,s,i,o,a){try{e?Je.isBuffer(e)&&(We(i===e.byteLength,"buffer body must have content length"),s.cork(),s.write(`${o}content-length: ${i}\r
|
||||
\r
|
||||
`,"latin1"),s.write(e),s.uncork(),n.onBodySent(e),!a&&n.reset!==!1&&(s[yi]=!0)):i===0?s.write(`${o}content-length: 0\r
|
||||
`,"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"):(We(i===null,"no body must not have content length"),s.write(`${o}\r
|
||||
`,"latin1")),n.onRequestSent(),r[Hd]()}catch(c){t(c)}}async function CBt(t,e,r,n,s,i,o,a){We(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[qd]()}catch(c){t(c)}}async function Qbt(t,e,r,n,s,i,o,a){We(i===e.size,"blob body must have content length");try{if(i!=null&&i!==e.size)throw new bg;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[yi]=!0),r[Hd]()}catch(c){t(c)}}async function $Be(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===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)=>{We(c===null),s[ca]?h(s[ca]):c=d});s.on("close",A).on("drain",A);let l=new vk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[ca])throw s[ca];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var vk=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[Gd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[ca])throw r[ca];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[e7])throw new Ig;process.emitWarning(new Ig)}r.cork(),o===0&&(!a&&n.reset!==!1&&(r[yi]=!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[qd]()}catch(c){t(c)}}async function Hbe(t,e,r,n,s,i,o,a){We(i!==0||r[ms]===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)=>{We(c===null),s[Aa]?h(s[Aa]):c=d});s.on("close",A).on("drain",A);let l=new zk({abort:t,socket:s,request:n,contentLength:i,client:r,expectsPayload:a,header:o});try{for await(let d of e){if(s[Aa])throw s[Aa];l.write(d)||await u()}l.end()}catch(d){l.destroy(d)}finally{s.off("close",A).off("drain",A)}}var zk=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[Yd]=!0}write(e){let{socket:r,request:n,contentLength:s,client:i,bytesWritten:o,expectsPayload:a,header:c}=this;if(r[Aa])throw r[Aa];if(r.destroyed)return!1;let A=Buffer.byteLength(e);if(!A)return!0;if(s!==null&&o+A>s){if(i[b7])throw new bg;process.emitWarning(new bg)}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[Wr].timeout&&r[Wr].timeoutType===pE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Gd]=!1,e[ca])throw e[ca];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[Wr].timeout&&r[Wr].timeoutType===BE&&r[Wr].timeout.refresh&&r[Wr].timeout.refresh(),u}end(){let{socket:e,contentLength:r,client:n,bytesWritten:s,expectsPayload:i,header:o,request:a}=this;if(a.onRequestSent(),e[Yd]=!1,e[Aa])throw e[Aa];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[e7])throw new Ig;process.emitWarning(new Ig)}e[Wr].timeout&&e[Wr].timeoutType===pE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[Hd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Gd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};tbe.exports=ABt});var lbe=E((Yyr,ube)=>{"use strict";var ua=b("node:assert"),{pipeline:IBt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:c7,RequestAbortedError:yBt,SocketError:Zb,InformationalError:qd,InvalidArgumentError:BBt}=Ke(),{kUrl:Xb,kReset:Lk,kClient:ro,kRunning:eQ,kPending:bBt,kQueue:Yd,kPendingIdx:u7,kRunningIdx:Ac,kError:no,kSocket:Dr,kStrictContentLength:QBt,kOnError:mE,kMaxConcurrentStreams:Fk,kPingInterval:nbe,kHTTP2Session:il,kHTTP2InitialWindowSize:wBt,kHTTP2ConnectionWindowSize:SBt,kResume:SA,kSize:NBt,kHTTPContext:l7,kClosed:A7,kBodyTimeout:TBt,kEnableConnectProtocol:Kb,kRemoteSettings:$b,kHTTP2Stream:_k,kHTTP2SessionState:d7}=Kt(),{channels:sbe}=Ud(),Aa=Symbol("open streams"),ibe,Mk;try{Mk=b("node:http2")}catch{Mk={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:xBt,HTTP2_HEADER_METHOD:obe,HTTP2_HEADER_PATH:abe,HTTP2_HEADER_SCHEME:i7,HTTP2_HEADER_CONTENT_LENGTH:RBt,HTTP2_HEADER_EXPECT:DBt,HTTP2_HEADER_STATUS:o7,HTTP2_HEADER_PROTOCOL:kBt,NGHTTP2_REFUSED_STREAM:vBt,NGHTTP2_CANCEL:_Bt}}=Mk;function a7(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 FBt(t,e){t[Dr]=e;let r=t[wBt],n=t[SBt],s=Mk.connect(t[Xb],{createConnection:()=>e,peerMaxConcurrentStreams:t[Fk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[Aa]=0,s[ro]=t,s[Dr]=e,s[d7]={ping:{interval:t[nbe]===0?null:setInterval(PBt,t[nbe],s).unref()}},s[Kb]=!1,s[$b]=!1,n&&ut.addListener(s,"connect",LBt.bind(s,n)),ut.addListener(s,"error",OBt),ut.addListener(s,"frameError",HBt),ut.addListener(s,"end",GBt),ut.addListener(s,"goaway",qBt),ut.addListener(s,"close",YBt),ut.addListener(s,"remoteSettings",UBt),s.unref(),t[il]=s,e[il]=s,ut.addListener(e,"error",WBt),ut.addListener(e,"end",JBt),ut.addListener(e,"close",VBt),e[A7]=!1,e.on("close",zBt),{version:"h2",defaultPipelining:1/0,write(i){return KBt(t,i)},resume(){MBt(t)},destroy(i,o){e[A7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[eQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[$b]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[$b]===!1;return!1}}}function MBt(t){let e=t[Dr];e?.destroyed===!1&&(t[NBt]===0||t[Fk]===0?(e.unref(),t[il].unref()):(e.ref(),t[il].ref()))}function LBt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function UBt(t){if(this[ro][Fk]=t.maxConcurrentStreams??this[ro][Fk],this[$b]===!0&&this[Kb]===!0&&t.enableConnectProtocol===!1){let e=new qd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][no]=e,this[ro][mE](e);return}this[Kb]=t.enableConnectProtocol??this[Kb],this[$b]=!0,this[ro][SA]()}function PBt(t){let e=t[d7];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[ro],o=this[ro];if(n!=null){let a=new qd(`HTTP/2: "PING" errored - type ${n.message}`);o[no]=a,i[mE](a)}else i.emit("ping",s)}}function OBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][no]=t,this[ro][mE](t)}function HBt(t,e,r){if(r===0){let n=new qd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][no]=n,this[ro][mE](n)}}function GBt(){let t=new Zb("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function qBt(t){let e=this[no]||new Zb(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[ro];if(r[Dr]=null,r[l7]=null,this.close(),this[il]=null,ut.destroy(this[Dr],e),r[Ac]<r[Yd].length){let n=r[Yd][r[Ac]];r[Yd][r[Ac]++]=null,ut.errorRequest(r,n,e),r[u7]=r[Ac]}ua(r[eQ]===0),r.emit("disconnect",r[Xb],[r],e),r.emit("connectionError",r[Xb],[r],e),r[SA]()}function YBt(){let{[ro]:t,[d7]:e}=this,{[Dr]:r}=t,n=this[Dr][no]||this[no]||new Zb("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[l7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){ua(t[bBt]===0);let s=t[Yd].splice(t[Ac]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function VBt(){let t=this[no]||new Zb("closed",ut.getSocketInfo(this)),e=this[il][ro];e[Dr]=null,e[l7]=null,this[il]!==null&&this[il].destroy(t),e[u7]=e[Ac],ua(e[eQ]===0),e.emit("disconnect",e[Xb],[e],t),e[SA]()}function WBt(t){ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[no]=t,this[ro][mE](t)}function JBt(){ut.destroy(this,new Zb("other side closed",ut.getSocketInfo(this)))}func
Line truncated
|
||||
`;sbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[DBt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[_k]=!0,f.once("continue",Y)):(f=n.request(h,{endStream:N,signal:A}),f[_k]=!0,Y()),++n[Aa],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[o7]:O,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(O),a7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Yd][t[Ac]++]=null,t[SA]()):(m(new qd("HTTP/2: stream half-closed (remote)")),t[Yd][t[Ac]++]=null,t[u7]=t[Ac],t[SA]())}),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,O)=>{f.removeAllListeners("data"),m(new qd(`HTTP/2: "frameError" received - type ${k}, code ${O}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new qd(`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 Y(){!d||y===0?cbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?cbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Abe(m,f,d.stream(),t,e,t[Dr],y,C):XBt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?$Bt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Abe(m,f,d,t,e,t[Dr],y,C):ua(!1)}}function cbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(ua(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Lk]=!0),s.onRequestSent(),n[SA]()}catch(c){t(c)}}function $Bt(t,e,r,n,s,i,o,a){ua(a!==0||i[eQ]===0,"stream body cannot be pipelined");let c=IBt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Lk]=!0),i[SA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function XBt(t,e,r,n,s,i,o,a){ua(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new c7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Lk]=!0),n[SA]()}catch(c){t(c)}}async function Abe(t,e,r,n,s,i,o,a){ua(o!==0||n[eQ]===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)=>{ua(c===null),i[no]?d(i[no]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[no])throw i[no];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Lk]=!0),n[SA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}ube.exports=FBt});var jd=E((Vyr,Ibe)=>{"use strict";var ol=b("node:assert"),pbe=b("node:net"),tQ=b("node:http"),yg=Ze(),{ClientStats:ZBt}=aV(),{channels:EE}=Ud(),ebt=vye(),tbt=gg(),{InvalidArgumentError:gr,InformationalError:rbt,ClientDestroyedError:nbt}=Ke(),sbt=pg(),{kUrl:NA,kServerName:zd,kClient:ibt,kBusy:h7,kConnect:obt,kResuming:Bg,kRunning:iQ,kPending:oQ,kSize:rQ,kQueue:uc,kConnected:abt,kConnecting:CE,kNeedDrain:Wd,kKeepAliveDefaultTimeout:dbe,kHostHeader:cbt,kPendingIdx:lc,kRunningIdx:al,kError:Abt,kPipelining:Uk,kKeepAliveTimeoutValue:ubt,kMaxHeadersSize:lbt,kKeepAliveMaxTimeout:dbt,kKeepAliveTimeoutThreshold:hbt,kHeadersTimeout:fbt,kBodyTimeout:gbt,kStrictContentLength:pbt,kConnector:nQ,kMaxRequests:f7,kCounter:mbt,kClose:Ebt,kDestroy:Cbt,kDispatch:Ibt,kLocalAddress:sQ,kMaxResponseSize:ybt,kOnError:Bbt,kHTTPContext:nn,kMaxConcurrentStreams:bbt,kHTTP2InitialWindowSize:Qbt,kHTTP2ConnectionWindowSize:wbt,kResume:Jd,kPingInterval:Sbt}=Kt(),Nbt=rbe(),Tbt=lbe(),Vd=Symbol("kClosedResolve"),xbt=tQ&&tQ.maxHeaderSize&&Number.isInteger(tQ.maxHeaderSize)&&tQ.maxHeaderSize>0?()=>tQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},hbe=()=>{};function mbe(t){return t[Uk]??t[nn]?.defaultPipelining??1}var g7=class extends tbt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:Y,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:O,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns
Line truncated
|
||||
`,this[gbt]=a??3e5,this[fbt]=n??3e5,this[pbt]=m??!0,this[f7]=N,this[Vd]=null,this[ybt]=Y>-1?Y:-1,this[nn]=null,this[bbt]=D??100,this[Qbt]=te??262144,this[wbt]=ce??524288,this[Sbt]=ge??6e4,this[uc]=[],this[al]=0,this[lc]=0,this[Jd]=De=>p7(this,De),this[Bbt]=De=>Ebe(this,De)}get pipelining(){return this[Uk]}set pipelining(e){this[Uk]=e,this[Jd](!0)}get stats(){return new ZBt(this)}get[oQ](){return this[uc].length-this[lc]}get[iQ](){return this[lc]-this[al]}get[rQ](){return this[uc].length-this[al]}get[abt](){return!!this[nn]&&!this[CE]&&!this[nn].destroyed}get[h7](){return!!(this[nn]?.busy(null)||this[rQ]>=(mbe(this)||1)||this[oQ]>0)}[obt](e){Cbe(this),this.once("connect",e)}[Ibt](e,r){let n=new ebt(this[NA].origin,e,r);return this[uc].push(n),this[Bg]||(yg.bodyLength(n.body)==null&&yg.isIterable(n.body)?(this[Bg]=1,queueMicrotask(()=>p7(this))):this[Jd](!0)),this[Bg]&&this[Wd]!==2&&this[h7]&&(this[Wd]=2),this[Wd]<2}[Ebt](){return new Promise(e=>{this[rQ]?this[Vd]=e:e(null)})}[Cbt](e){return new Promise(r=>{let n=this[uc].splice(this[lc]);for(let i=0;i<n.length;i++){let o=n[i];yg.errorRequest(this,o,e)}let s=()=>{this[Vd]&&(this[Vd](),this[Vd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[Jd]()})}};function Ebe(t,e){if(t[iQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){ol(t[lc]===t[al]);let r=t[uc].splice(t[al]);for(let n=0;n<r.length;n++){let s=r[n];yg.errorRequest(t,s,e)}ol(t[rQ]===0)}}function Cbe(t){ol(!t[CE]),ol(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[NA];if(r[0]==="["){let i=r.indexOf("]");ol(i!==-1);let o=r.substring(1,i);ol(pbe.isIPv6(o)),r=o}t[CE]=!0,EE.beforeConnect.hasSubscribers&&EE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[zd],localAddress:t[sQ]},connector:t[nQ]}),t[nQ]({host:e,hostname:r,protocol:n,port:s,servername:t[zd],localAddress:t[sQ]},(i,o)=>{if(i){fbe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Jd]();return}if(t.destroyed){yg.destroy(o.on("error",hbe),new nbt),t[Jd]();return}ol(o);try{t[nn]=o.alpnProtocol==="h2"?Tbt(t,o):Nbt(t,o)}catch(a){o.destroy().on("error",hbe),fbe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Jd]();return}t[CE]=!1,o[mbt]=0,o[f7]=t[f7],o[ibt]=t,o[Abt]=null,EE.connected.hasSubscribers&&EE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[zd],localAddress:t[sQ]},connector:t[nQ],socket:o}),t.emit("connect",t[NA],[t]),t[Jd]()})}function fbe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[CE]=!1,EE.connectError.hasSubscribers&&EE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[zd],localAddress:t[sQ]},connector:t[nQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(ol(t[iQ]===0);t[oQ]>0&&t[uc][t[lc]].servername===t[zd];){let o=t[uc][t[lc]++];yg.errorRequest(t,o,e)}else Ebe(t,e);t.emit("connectionError",t[NA],[t],e)}}function gbe(t){t[Wd]=0,t.emit("drain",t[NA],[t])}function p7(t,e){t[Bg]!==2&&(t[Bg]=2,Rbt(t,e),t[Bg]=0,t[al]>256&&(t[uc].splice(0,t[al]),t[lc]-=t[al],t[al]=0))}function Rbt(t,e){for(;;){if(t.destroyed){ol(t[oQ]===0);return}if(t[Vd]&&!t[rQ]){t[Vd](),t[Vd]=null;return}if(t[nn]&&t[nn].resume(),t[h7])t[Wd]=2;else if(t[Wd]===2){e?(t[Wd]=1,queueMicrotask(()=>gbe(t))):gbe(t);continue}if(t[oQ]===0||t[iQ]>=(mbe(t)||1))return;let r=t[uc][t[lc]];if(r===null)return;if(t[NA].protocol==="https:"&&t[zd]!==r.servername){if(t[iQ]>0)return;t[zd]=r.servername,t[nn]?.destroy(new rbt("servername changed"),()=>{t[nn]=null,p7(t)})}if(t[CE])return;if(!t[nn]){Cbe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[lc]++:t[uc].splice(t[lc],1)}}Ibe.exports=g7});var m7=E((Jyr,ybe)=>{"use strict";var Pk=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)}};ybe.exports=class{constructor(){this.head=this.tail=new Pk}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new Pk),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next,e.next=null),r}}});var Ok=E((zyr,Rbe)=>{"use strict";var{PoolStats:Dbt}=aV(),kbt=gg(),vbt=m7(),{kConnected:E7,kSize:Bbe,kRunning:bbe,kPending:Qbe,kQueued:aQ,kBusy:_bt,kFree:Fbt,kUrl:Mbt,kClose:Lbt,kDestroy:Ubt,kDispatch:Pbt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),cQ=Symbol("queue"),C7=Symbol("closed resolve"),I7=Symbol("onDrain"),wbe=Symbol("onConnect"),Sbe=Symbol("onDisconnect"),Nbe=Symbol("onConnectionError"),y7=Symbol("get dispatcher"),Tbe=Symbol("add client"),xbe=Symbol("remove client"),B7=class extends kbt{[cQ]=new vbt;[aQ]=0;[Vn]=[];[Ps]=!1;[I7](e,r,n){let s=this[cQ],i=!1;for(;!i;){let o=s.shi
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[b7])throw new bg;process.emitWarning(new bg)}e[Wr].timeout&&e[Wr].timeoutType===BE&&e[Wr].timeout.refresh&&e[Wr].timeout.refresh(),n[qd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Yd]=!1,e&&(We(n[ms]<=1,"pipeline should only contain this request"),s(e))}};Vbe.exports=fbt});var tQe=E((gbr,eQe)=>{"use strict";var la=b("node:assert"),{pipeline:wbt}=b("node:stream"),ut=Ze(),{RequestContentLengthMismatchError:D7,RequestAbortedError:Sbt,SocketError:oQ,InformationalError:Vd,InvalidArgumentError:Nbt}=Ke(),{kUrl:iQ,kReset:Xk,kClient:no,kRunning:aQ,kPending:Tbt,kQueue:Wd,kPendingIdx:v7,kRunningIdx:uc,kError:so,kSocket:Dr,kStrictContentLength:xbt,kOnError:bE,kMaxConcurrentStreams:Kk,kPingInterval:Jbe,kHTTP2Session:ol,kHTTP2InitialWindowSize:Rbt,kHTTP2ConnectionWindowSize:Dbt,kResume:NA,kSize:kbt,kHTTPContext:_7,kClosed:k7,kBodyTimeout:vbt,kEnableConnectProtocol:nQ,kRemoteSettings:sQ,kHTTP2Stream:jk,kHTTP2SessionState:F7}=Kt(),{channels:zbe}=Od(),ua=Symbol("open streams"),jbe,$k;try{$k=b("node:http2")}catch{$k={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_bt,HTTP2_HEADER_METHOD:Kbe,HTTP2_HEADER_PATH:$be,HTTP2_HEADER_SCHEME:T7,HTTP2_HEADER_CONTENT_LENGTH:Fbt,HTTP2_HEADER_EXPECT:Mbt,HTTP2_HEADER_STATUS:x7,HTTP2_HEADER_PROTOCOL:Lbt,NGHTTP2_REFUSED_STREAM:Ubt,NGHTTP2_CANCEL:Pbt}}=$k;function R7(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 Obt(t,e){t[Dr]=e;let r=t[Rbt],n=t[Dbt],s=$k.connect(t[iQ],{createConnection:()=>e,peerMaxConcurrentStreams:t[Kk],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[Dr]=e,s[ua]=0,s[no]=t,s[Dr]=e,s[F7]={ping:{interval:t[Jbe]===0?null:setInterval(Ybt,t[Jbe],s).unref()}},s[nQ]=!1,s[sQ]=!1,n&&ut.addListener(s,"connect",Gbt.bind(s,n)),ut.addListener(s,"error",Vbt),ut.addListener(s,"frameError",Wbt),ut.addListener(s,"end",Jbt),ut.addListener(s,"goaway",zbt),ut.addListener(s,"close",jbt),ut.addListener(s,"remoteSettings",qbt),s.unref(),t[ol]=s,e[ol]=s,ut.addListener(e,"error",$bt),ut.addListener(e,"end",Xbt),ut.addListener(e,"close",Kbt),e[k7]=!1,e.on("close",Zbt),{version:"h2",defaultPipelining:1/0,write(i){return tQt(t,i)},resume(){Hbt(t)},destroy(i,o){e[k7]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[aQ]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sQ]===!1||ut.bodyLength(i.body)!==0&&(ut.isStream(i.body)||ut.isAsyncIterable(i.body)||ut.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[sQ]===!1;return!1}}}function Hbt(t){let e=t[Dr];e?.destroyed===!1&&(t[kbt]===0||t[Kk]===0?(e.unref(),t[ol].unref()):(e.ref(),t[ol].ref()))}function Gbt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function qbt(t){if(this[no][Kk]=t.maxConcurrentStreams??this[no][Kk],this[sQ]===!0&&this[nQ]===!0&&t.enableConnectProtocol===!1){let e=new Vd("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[Dr][so]=e,this[no][bE](e);return}this[nQ]=t.enableConnectProtocol??this[nQ],this[sQ]=!0,this[no][NA]()}function Ybt(t){let e=t[F7];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[no],o=this[no];if(n!=null){let a=new Vd(`HTTP/2: "PING" errored - type ${n.message}`);o[so]=a,i[bE](a)}else i.emit("ping",s)}}function Vbt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Dr][so]=t,this[no][bE](t)}function Wbt(t,e,r){if(r===0){let n=new Vd(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Dr][so]=n,this[no][bE](n)}}function Jbt(){let t=new oQ("other side closed",ut.getSocketInfo(this[Dr]));this.destroy(t),ut.destroy(this[Dr],t)}function zbt(t){let e=this[so]||new oQ(`HTTP/2: "GOAWAY" frame received with code ${t}`,ut.getSocketInfo(this[Dr])),r=this[no];if(r[Dr]=null,r[_7]=null,this.close(),this[ol]=null,ut.destroy(this[Dr],e),r[uc]<r[Wd].length){let n=r[Wd][r[uc]];r[Wd][r[uc]++]=null,ut.errorRequest(r,n,e),r[v7]=r[uc]}la(r[aQ]===0),r.emit("disconnect",r[iQ],[r],e),r.emit("connectionError",r[iQ],[r],e),r[NA]()}function jbt(){let{[no]:t,[F7]:e}=this,{[Dr]:r}=t,n=this[Dr][so]||this[so]||new oQ("closed",ut.getSocketInfo(r));if(t[Dr]=null,t[_7]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){la(t[Tbt]===0);let s=t[Wd].splice(t[uc]);for(let i=0;i<s.length;i++){let o=s[i];ut.errorRequest(t,o,n)}}}function Kbt(){let t=this[so]||new oQ("closed",ut.getSocketInfo(this)),e=this[ol][no];e[Dr]=null,e[_7]=null,this[ol]!==null&&this[ol].destroy(t),e[v7]=e[uc],la(e[aQ]===0),e.emit("disconnect",e[iQ],[e],t),e[NA]()}function $bt(t){la(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[so]=t,this[no][bE](t)}function Xbt(){ut.destroy(this,new oQ("other side closed",ut.getSocketInfo(this)))}func
Line truncated
|
||||
`;zbe.sendHeaders.publish({request:e,headers:k,socket:n[Dr]})}let N=s==="GET"||s==="HEAD"||d===null;c?(h[Mbt]="100-continue",f=n.request(h,{endStream:N,signal:A}),f[jk]=!0,f.once("continue",O)):(f=n.request(h,{endStream:N,signal:A}),f[jk]=!0,O()),++n[ua],f.setTimeout(r);let M=!1;return f.once("response",k=>{let{[x7]:P,...D}=k;if(e.onResponseStarted(),M=!0,e.aborted){f.removeAllListeners("data");return}e.onHeaders(Number(P),R7(D),f.resume.bind(f),"")===!1&&f.pause(),f.on("data",z=>{e.aborted||e.completed||e.onData(z)===!1&&f.pause()})}),f.once("end",()=>{f.removeAllListeners("data"),M?(!e.aborted&&!e.completed&&e.onComplete({}),t[Wd][t[uc]++]=null,t[NA]()):(m(new Vd("HTTP/2: stream half-closed (remote)")),t[Wd][t[uc]++]=null,t[v7]=t[uc],t[NA]())}),f.once("close",()=>{f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref()}),f.once("error",function(k){f.removeAllListeners("data"),m(k)}),f.once("frameError",(k,P)=>{f.removeAllListeners("data"),m(new Vd(`HTTP/2: "frameError" received - type ${k}, code ${P}`))}),f.on("aborted",()=>{f.removeAllListeners("data")}),f.on("timeout",()=>{let k=new Vd(`HTTP/2: "stream timeout after ${r}"`);f.removeAllListeners("data"),n[ua]-=1,n[ua]===0&&n.unref(),m(k)}),f.once("trailers",k=>{e.aborted||e.completed||(f.removeAllListeners("data"),e.onComplete(k))}),!0;function O(){!d||y===0?Xbe(m,f,null,t,e,t[Dr],y,C):ut.isBuffer(d)?Xbe(m,f,d,t,e,t[Dr],y,C):ut.isBlobLike(d)?typeof d.stream=="function"?Zbe(m,f,d.stream(),t,e,t[Dr],y,C):nQt(m,f,d,t,e,t[Dr],y,C):ut.isStream(d)?rQt(m,t[Dr],C,f,d,t,e,y):ut.isIterable(d)?Zbe(m,f,d,t,e,t[Dr],y,C):la(!1)}}function Xbe(t,e,r,n,s,i,o,a){try{r!=null&&ut.isBuffer(r)&&(la(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[Xk]=!0),s.onRequestSent(),n[NA]()}catch(c){t(c)}}function rQt(t,e,r,n,s,i,o,a){la(a!==0||i[aQ]===0,"stream body cannot be pipelined");let c=wbt(s,n,u=>{u?(ut.destroy(c,u),t(u)):(ut.removeAllListeners(c),o.onRequestSent(),r||(e[Xk]=!0),i[NA]())});ut.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function nQt(t,e,r,n,s,i,o,a){la(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new D7;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[Xk]=!0),n[NA]()}catch(c){t(c)}}async function Zbe(t,e,r,n,s,i,o,a){la(o!==0||n[aQ]===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)=>{la(c===null),i[so]?d(i[so]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[so])throw i[so];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[Xk]=!0),n[NA]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}eQe.exports=Obt});var $d=E((pbr,uQe)=>{"use strict";var al=b("node:assert"),oQe=b("node:net"),cQ=b("node:http"),Qg=Ze(),{ClientStats:sQt}=RV(),{channels:QE}=Od(),iQt=bBe(),oQt=Eg(),{InvalidArgumentError:gr,InformationalError:aQt,ClientDestroyedError:cQt}=Ke(),AQt=Cg(),{kUrl:TA,kServerName:Kd,kClient:uQt,kBusy:M7,kConnect:lQt,kResuming:wg,kRunning:dQ,kPending:hQ,kSize:AQ,kQueue:lc,kConnected:dQt,kConnecting:wE,kNeedDrain:zd,kKeepAliveDefaultTimeout:rQe,kHostHeader:hQt,kPendingIdx:dc,kRunningIdx:cl,kError:fQt,kPipelining:Zk,kKeepAliveTimeoutValue:gQt,kMaxHeadersSize:pQt,kKeepAliveMaxTimeout:mQt,kKeepAliveTimeoutThreshold:EQt,kHeadersTimeout:CQt,kBodyTimeout:IQt,kStrictContentLength:yQt,kConnector:uQ,kMaxRequests:L7,kCounter:BQt,kClose:bQt,kDestroy:QQt,kDispatch:wQt,kLocalAddress:lQ,kMaxResponseSize:SQt,kOnError:NQt,kHTTPContext:nn,kMaxConcurrentStreams:TQt,kHTTP2InitialWindowSize:xQt,kHTTP2ConnectionWindowSize:RQt,kResume:jd,kPingInterval:DQt}=Kt(),kQt=Wbe(),vQt=tQe(),Jd=Symbol("kClosedResolve"),_Qt=cQ&&cQ.maxHeaderSize&&Number.isInteger(cQ.maxHeaderSize)&&cQ.maxHeaderSize>0?()=>cQ.maxHeaderSize:()=>{throw new gr("http module not available or http.maxHeaderSize invalid")},nQe=()=>{};function aQe(t){return t[Zk]??t[nn]?.defaultPipelining??1}var U7=class extends oQt{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:p,tls:I,strictContentLength:m,maxCachedSessions:C,connect:y,maxRequestsPerClient:N,localAddress:M,maxResponseSize:O,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:P,maxConcurrentStreams:D,allowH2:z,useH2c:ee,initialWindowSize:te,connectionWindowSize:ce,pingInterval:ge}={}){if(A!==void 0)throw new gr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new gr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new gr("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(c!==void 0)throw new gr("unsupported idleTimeout, use keepAliveTimeout instead");if(l!==void 0)throw new gr("uns
Line truncated
|
||||
`,this[IQt]=a??3e5,this[CQt]=n??3e5,this[yQt]=m??!0,this[L7]=N,this[Jd]=null,this[SQt]=O>-1?O:-1,this[nn]=null,this[TQt]=D??100,this[xQt]=te??262144,this[RQt]=ce??524288,this[DQt]=ge??6e4,this[lc]=[],this[cl]=0,this[dc]=0,this[jd]=De=>P7(this,De),this[NQt]=De=>cQe(this,De)}get pipelining(){return this[Zk]}set pipelining(e){this[Zk]=e,this[jd](!0)}get stats(){return new sQt(this)}get[hQ](){return this[lc].length-this[dc]}get[dQ](){return this[dc]-this[cl]}get[AQ](){return this[lc].length-this[cl]}get[dQt](){return!!this[nn]&&!this[wE]&&!this[nn].destroyed}get[M7](){return!!(this[nn]?.busy(null)||this[AQ]>=(aQe(this)||1)||this[hQ]>0)}[lQt](e){AQe(this),this.once("connect",e)}[wQt](e,r){let n=new iQt(this[TA].origin,e,r);return this[lc].push(n),this[wg]||(Qg.bodyLength(n.body)==null&&Qg.isIterable(n.body)?(this[wg]=1,queueMicrotask(()=>P7(this))):this[jd](!0)),this[wg]&&this[zd]!==2&&this[M7]&&(this[zd]=2),this[zd]<2}[bQt](){return new Promise(e=>{this[AQ]?this[Jd]=e:e(null)})}[QQt](e){return new Promise(r=>{let n=this[lc].splice(this[dc]);for(let i=0;i<n.length;i++){let o=n[i];Qg.errorRequest(this,o,e)}let s=()=>{this[Jd]&&(this[Jd](),this[Jd]=null),r(null)};this[nn]?(this[nn].destroy(e,s),this[nn]=null):queueMicrotask(s),this[jd]()})}};function cQe(t,e){if(t[dQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){al(t[dc]===t[cl]);let r=t[lc].splice(t[cl]);for(let n=0;n<r.length;n++){let s=r[n];Qg.errorRequest(t,s,e)}al(t[AQ]===0)}}function AQe(t){al(!t[wE]),al(!t[nn]);let{host:e,hostname:r,protocol:n,port:s}=t[TA];if(r[0]==="["){let i=r.indexOf("]");al(i!==-1);let o=r.substring(1,i);al(oQe.isIPv6(o)),r=o}t[wE]=!0,QE.beforeConnect.hasSubscribers&&QE.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Kd],localAddress:t[lQ]},connector:t[uQ]}),t[uQ]({host:e,hostname:r,protocol:n,port:s,servername:t[Kd],localAddress:t[lQ]},(i,o)=>{if(i){sQe(t,i,{host:e,hostname:r,protocol:n,port:s}),t[jd]();return}if(t.destroyed){Qg.destroy(o.on("error",nQe),new cQt),t[jd]();return}al(o);try{t[nn]=o.alpnProtocol==="h2"?vQt(t,o):kQt(t,o)}catch(a){o.destroy().on("error",nQe),sQe(t,a,{host:e,hostname:r,protocol:n,port:s}),t[jd]();return}t[wE]=!1,o[BQt]=0,o[L7]=t[L7],o[uQt]=t,o[fQt]=null,QE.connected.hasSubscribers&&QE.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[nn]?.version,servername:t[Kd],localAddress:t[lQ]},connector:t[uQ],socket:o}),t.emit("connect",t[TA],[t]),t[jd]()})}function sQe(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[wE]=!1,QE.connectError.hasSubscribers&&QE.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[nn]?.version,servername:t[Kd],localAddress:t[lQ]},connector:t[uQ],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(al(t[dQ]===0);t[hQ]>0&&t[lc][t[dc]].servername===t[Kd];){let o=t[lc][t[dc]++];Qg.errorRequest(t,o,e)}else cQe(t,e);t.emit("connectionError",t[TA],[t],e)}}function iQe(t){t[zd]=0,t.emit("drain",t[TA],[t])}function P7(t,e){t[wg]!==2&&(t[wg]=2,FQt(t,e),t[wg]=0,t[cl]>256&&(t[lc].splice(0,t[cl]),t[dc]-=t[cl],t[cl]=0))}function FQt(t,e){for(;;){if(t.destroyed){al(t[hQ]===0);return}if(t[Jd]&&!t[AQ]){t[Jd](),t[Jd]=null;return}if(t[nn]&&t[nn].resume(),t[M7])t[zd]=2;else if(t[zd]===2){e?(t[zd]=1,queueMicrotask(()=>iQe(t))):iQe(t);continue}if(t[hQ]===0||t[dQ]>=(aQe(t)||1))return;let r=t[lc][t[dc]];if(r===null)return;if(t[TA].protocol==="https:"&&t[Kd]!==r.servername){if(t[dQ]>0)return;t[Kd]=r.servername,t[nn]?.destroy(new aQt("servername changed"),()=>{t[nn]=null,P7(t)})}if(t[wE])return;if(!t[nn]){AQe(t);return}if(t[nn].destroyed||t[nn].busy(r))return;!r.aborted&&t[nn].write(r)?t[dc]++:t[lc].splice(t[dc],1)}}uQe.exports=U7});var O7=E((Ebr,lQe)=>{"use strict";var ev=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)}};lQe.exports=class{constructor(){this.head=this.tail=new ev}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new ev),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 tv=E((Cbr,IQe)=>{"use strict";var{PoolStats:MQt}=RV(),LQt=Eg(),UQt=O7(),{kConnected:H7,kSize:dQe,kRunning:hQe,kPending:fQe,kQueued:fQ,kBusy:PQt,kFree:OQt,kUrl:HQt,kClose:GQt,kDestroy:qQt,kDispatch:YQt}=Kt(),Vn=Symbol("clients"),Ps=Symbol("needDrain"),gQ=Symbol("queue"),G7=Symbol("closed resolve"),q7=Symbol("onDrain"),gQe=Symbol("onConnect"),pQe=Symbol("onDisconnect"),mQe=Symbol("onConnectionError"),Y7=Symbol("get dispatcher"),EQe=Symbol("add client"),CQe=Symbol("remove client"),V7=class extends LQt{[gQ]=new UQt;[fQ]=0;[Vn]=[];[Ps]=!1;[q7](e,r,n){let s=this[gQ],i=!1;for(;!i;){let o=s.shi
Line truncated
|
||||
|
||||
${e.format(r)}`.trim():`${r.length} interceptors are pending:
|
||||
|
||||
${e.format(r)}`.trim())}};Xwe.exports=LW});var PW=E((wBr,r1e)=>{"use strict";var{InvalidArgumentError:M1t}=Ke(),{runtimeFeatures:L1t}=nl();function U1t(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 Zwe=L1t.has("crypto")?b("node:crypto"):null,P1t=Zwe?.hash?t=>Zwe.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function t1e(t){return Array.isArray(t)&&(t.length&1)===0}function O1t(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 H1t(t){let e={};if(!t)return e;if(t1e(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 e1e=["record","playback","update"];function G1t(t){if(!e1e.includes(t))throw new M1t(`Invalid snapshot mode: ${t}. Must be one of: ${e1e.join(", ")}`)}r1e.exports={createHeaderFilters:U1t,hashId:P1t,isUndiciHeaders:t1e,normalizeHeaders:H1t,isUrlExcludedFactory:O1t,validateSnapshotMode:G1t}});var l1e=E((SBr,u1e)=>{"use strict";var{writeFile:q1t,readFile:Y1t,mkdir:V1t}=b("node:fs/promises"),{dirname:W1t,resolve:n1e}=b("node:path"),{setTimeout:J1t,clearTimeout:s1e}=b("node:timers"),{InvalidArgumentError:i1e,UndiciError:z1t}=Ke(),{hashId:j1t,isUrlExcludedFactory:K1t,normalizeHeaders:o1e,createHeaderFilters:a1e}=PW();function BQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||o1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:c1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function c1e(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 A1e(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 bQ(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 j1t(r)}var OW=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=a1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=K1t(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=BQ(e,this.#a,this.matchOptions),s=bQ(n),i=o1e(r.headers),o={statusCode:r.statusCode,headers:A1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let 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.#i&&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=BQ(e,this.#a,this.matchOptions),n=bQ(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 i1e("Snapshot path is required");try{let n=await Y1t(n1e(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 z1t(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new i1e("Snapshot path is required");let n=n1e(r);await V1t(W1t(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await q1t(n,JSON.s
Line truncated
|
||||
${e.format(r)}`.trim())}};G1e.exports=oJ});var cJ=E((Kbr,W1e)=>{"use strict";var{InvalidArgumentError:HSt}=Ke(),{runtimeFeatures:GSt}=sl();function qSt(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 q1e=GSt.has("crypto")?b("node:crypto"):null,YSt=q1e?.hash?t=>q1e.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function V1e(t){return Array.isArray(t)&&(t.length&1)===0}function VSt(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 WSt(t){let e={};if(!t)return e;if(V1e(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 Y1e=["record","playback","update"];function JSt(t){if(!Y1e.includes(t))throw new HSt(`Invalid snapshot mode: ${t}. Must be one of: ${Y1e.join(", ")}`)}W1e.exports={createHeaderFilters:qSt,hashId:YSt,isUndiciHeaders:V1e,normalizeHeaders:WSt,isUrlExcludedFactory:VSt,validateSnapshotMode:JSt}});var tSe=E(($br,eSe)=>{"use strict";var{writeFile:zSt,readFile:jSt,mkdir:KSt}=b("node:fs/promises"),{dirname:$St,resolve:J1e}=b("node:path"),{setTimeout:XSt,clearTimeout:z1e}=b("node:timers"),{InvalidArgumentError:j1e,UndiciError:ZSt}=Ke(),{hashId:eNt,isUrlExcludedFactory:tNt,normalizeHeaders:K1e,createHeaderFilters:$1e}=cJ();function xQ(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||K1e(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:X1e(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function X1e(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 Z1e(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 RQ(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 eNt(r)}var AJ=class{#e;#t;#n=new Map;#r;#s=1/0;#i=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#s=e.maxSnapshots||1/0,this.#i=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=$1e(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=tNt(e.excludeUrls),this.#i&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=xQ(e,this.#a,this.matchOptions),s=RQ(n),i=K1e(r.headers),o={statusCode:r.statusCode,headers:Z1e(i,this.#a,this.matchOptions),body:Buffer.isBuffer(r.body)?r.body.toString("base64"):Buffer.from(String(r.body||"")).toString("base64"),trailers:r.trailers};if(this.#n.size>=this.#s&&!this.#n.has(s)){let 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.#i&&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=xQ(e,this.#a,this.matchOptions),n=RQ(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 j1e("Snapshot path is required");try{let n=await jSt(J1e(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 ZSt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new j1e("Snapshot path is required");let n=J1e(r);await KSt($St(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await zSt(n,JSON.s
Line truncated
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
PRAGMA temp_store = memory;
|
||||
PRAGMA optimize;
|
||||
|
||||
CREATE TABLE IF NOT EXISTS cacheInterceptorV${oo} (
|
||||
CREATE TABLE IF NOT EXISTS cacheInterceptorV${ao} (
|
||||
-- Data specific to us
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
url TEXT NOT NULL,
|
||||
@@ -133,8 +133,8 @@ ${e.format(r)}`.trim())}};Xwe.exports=LW});var PW=E((wBr,r1e)=>{"use strict";var
|
||||
staleAt INTEGER NOT NULL
|
||||
);
|
||||
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${oo}_getValuesQuery ON cacheInterceptorV${oo}(url, method, deleteAt);
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${oo}_deleteByUrlQuery ON cacheInterceptorV${oo}(deleteAt);
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_getValuesQuery ON cacheInterceptorV${ao}(url, method, deleteAt);
|
||||
CREATE INDEX IF NOT EXISTS idx_cacheInterceptorV${ao}_deleteByUrlQuery ON cacheInterceptorV${ao}(deleteAt);
|
||||
`),this.#r=this.#n.prepare(`
|
||||
SELECT
|
||||
id,
|
||||
@@ -148,14 +148,14 @@ ${e.format(r)}`.trim())}};Xwe.exports=LW});var PW=E((wBr,r1e)=>{"use strict";var
|
||||
vary,
|
||||
cachedAt,
|
||||
staleAt
|
||||
FROM cacheInterceptorV${oo}
|
||||
FROM cacheInterceptorV${ao}
|
||||
WHERE
|
||||
url = ?
|
||||
AND method = ?
|
||||
ORDER BY
|
||||
deleteAt ASC
|
||||
`),this.#s=this.#n.prepare(`
|
||||
UPDATE cacheInterceptorV${oo} SET
|
||||
UPDATE cacheInterceptorV${ao} SET
|
||||
body = ?,
|
||||
deleteAt = ?,
|
||||
statusCode = ?,
|
||||
@@ -168,7 +168,7 @@ ${e.format(r)}`.trim())}};Xwe.exports=LW});var PW=E((wBr,r1e)=>{"use strict";var
|
||||
WHERE
|
||||
id = ?
|
||||
`),this.#i=this.#n.prepare(`
|
||||
INSERT INTO cacheInterceptorV${oo} (
|
||||
INSERT INTO cacheInterceptorV${ao} (
|
||||
url,
|
||||
method,
|
||||
body,
|
||||
@@ -182,105 +182,105 @@ ${e.format(r)}`.trim())}};Xwe.exports=LW});var PW=E((wBr,r1e)=>{"use strict";var
|
||||
cachedAt,
|
||||
staleAt
|
||||
) VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
|
||||
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${oo} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${oo}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${oo} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
|
||||
DELETE FROM cacheInterceptorV${oo}
|
||||
`),this.#o=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE url = ?`),this.#c=this.#n.prepare(`SELECT COUNT(*) AS total FROM cacheInterceptorV${ao}`),this.#a=this.#n.prepare(`DELETE FROM cacheInterceptorV${ao} WHERE deleteAt <= ?`),this.#A=this.#t===1/0?null:this.#n.prepare(`
|
||||
DELETE FROM cacheInterceptorV${ao}
|
||||
WHERE id IN (
|
||||
SELECT
|
||||
id
|
||||
FROM cacheInterceptorV${oo}
|
||||
FROM cacheInterceptorV${ao}
|
||||
ORDER BY cachedAt DESC
|
||||
LIMIT ?
|
||||
)
|
||||
`)}close(){this.#n.close()}get(e){cJ(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){cJ(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.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){cJ(e),MNt(r);let n=0,s=[],i=this;return new FNt({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.#a.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.#c.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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!LNt(s[l],u[l])){A=!1;break}}if(A)return c}}};function LNt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Mg=E((zBr,ESe)=>{"use strict";var{kConstruct:UNt}=Kt(),{kEnumerableProperty:_E}=Ze(),{iteratorMixin:PNt,isValidHeaderName:NQ,isValidHeaderValue:hSe}=to(),{webidl:wt}=es(),uJ=b("node:assert"),mv=b("node:util");function dSe(t){return t===10||t===13||t===9||t===32}function fSe(t){let e=0,r=t.length;for(;r>e&&dSe(t.charCodeAt(r-1));)--r;for(;r>e&&dSe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function gSe(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}.`});lJ(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)lJ(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 lJ(t,e,r){if(r=fSe(r),NQ(e)){if(!hSe(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(mSe(t)==="immutable")throw new TypeError("immutable");return Cv(t).append(e,r,!1)}function ONt(t){let e=Cv(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 pSe(t,e){return t[0]<e[0]?-1:1}var Ev=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!
Line truncated
|
||||
${i}`;break;case"retry":wTe(i)&&(r[s]=i);break;case"id":STe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&wTe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&STe(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}}};NTe.exports={EventSourceStream:zJ}});var MTe=E((Cbr,FTe)=>{"use strict";var{pipeline:n2t}=b("node:stream"),{fetching:s2t}=kQ(),{makeRequest:i2t}=ME(),{webidl:Hs}=es(),{EventSourceStream:o2t}=TTe(),{parseMIMEType:a2t}=ia(),{createFastMessageEvent:c2t}=Yv(),{isNetworkError:xTe}=xQ(),{kEnumerableProperty:Yg}=Ze(),{environmentSettingsObject:RTe}=to(),DTe=!1,kTe=3e3,PQ=0,vTe=1,OQ=2,A2t="anonymous",u2t="use-credentials",WE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=PQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),DTe||(DTe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=RTe,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=A2t;r.withCredentials===!0&&(o=u2t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=RTe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=i2t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===OQ)return;this.#r=PQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!xTe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(xTe(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?a2t(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=vTe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new o2t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(c2t(c.type,c.options))}});n2t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=s2t(e)}#A(){this.#r!==OQ&&(this.#r=PQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===PQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==OQ&&(this.#r=OQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.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=Hs.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=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},_Te={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:PQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:vTe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:OQ,writable:!1}};Object.defineProperties(WE,_Te);Object.defineProperties(WE.prototype,_Te);Object.defineProperties(WE.prototype,{close:Yg,onerror:Yg,onmessage:Yg,onopen:Yg,readyState:Yg,url:Yg,withCredentials:Yg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>kTe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);FTe.exports={EventSource:WE,defaultReconnectionTime:kTe}});var GTe=E((Ibr,pe)=>{"use strict";var l2t=jd(),UTe=Ub(),d2t=bg(),h2t=Ube(),f2t=Gbe(),g2t=Sg(),p2t=G7(),m2t=U7(),E2t=wQe(),C2t=DQe(),I2t=_Qe(),PTe=Ke(),n_=Ze(),{InvalidArgumentError:r_}=PTe,JE=gwe(),y2t=pg(),B2t=SW(),{MockCallHistory:b2
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.#s.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#u(),this.#i.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt))}createWriteStream(e,r){DJ(e),HTt(r);let n=0,s=[],i=this;return new OTt({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.#a.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.#c.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)return;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!GTt(s[l],u[l])){A=!1;break}}if(A)return c}}};function GTt(t,e){return t==null&&e==null?!0:t==null&&e!=null||t!=null&&e==null?!1:Array.isArray(t)&&Array.isArray(e)?t.length!==e.length?!1:t.every((r,n)=>r===e[n]):t===e}});var Pg=E((CQr,cNe)=>{"use strict";var{kConstruct:qTt}=Kt(),{kEnumerableProperty:OE}=Ze(),{iteratorMixin:YTt,isValidHeaderName:_Q,isValidHeaderValue:nNe}=ro(),{webidl:wt}=es(),vJ=b("node:assert"),kv=b("node:util");function rNe(t){return t===10||t===13||t===9||t===32}function sNe(t){let e=0,r=t.length;for(;r>e&&rNe(t.charCodeAt(r-1));)--r;for(;r>e&&rNe(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function iNe(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=sNe(r),_Q(e)){if(!nNe(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(aNe(t)==="immutable")throw new TypeError("immutable");return _v(t).append(e,r,!1)}function VTt(t){let e=_v(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 oNe(t,e){return t[0]<e[0]?-1:1}var vv=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.headersMap.values()}get entriesList(){let e=[];if(this.headersMap.size!
Line truncated
|
||||
${i}`;break;case"retry":gxe(i)&&(r[s]=i);break;case"id":pxe(i)&&(r[s]=i);break;case"event":i.length>0&&(r[s]=i);break}}processEvent(e){e.retry&&gxe(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&pxe(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}}};mxe.exports={EventSourceStream:mz}});var Sxe=E((YQr,wxe)=>{"use strict";var{pipeline:ckt}=b("node:stream"),{fetching:Akt}=PQ(),{makeRequest:ukt}=GE(),{webidl:Hs}=es(),{EventSourceStream:lkt}=Exe(),{parseMIMEType:dkt}=oa(),{createFastMessageEvent:hkt}=i_(),{isNetworkError:Cxe}=MQ(),{kEnumerableProperty:Jg}=Ze(),{environmentSettingsObject:Ixe}=ro(),yxe=!1,Bxe=3e3,WQ=0,bxe=1,JQ=2,fkt="anonymous",gkt="use-credentials",XE=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=WQ;#s=null;#i=null;#a;#o;constructor(e,r={}){super(),Hs.util.markAsUncloneable(this);let n="EventSource constructor";Hs.argumentLengthCheck(arguments,1,n),yxe||(yxe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Hs.converters.USVString(e),r=Hs.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=Ixe,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=fkt;r.withCredentials===!0&&(o=gkt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=Ixe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#s=ukt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===JQ)return;this.#r=WQ;let e={request:this.#s,dispatcher:this.#a},r=n=>{if(!Cxe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(Cxe(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?dkt(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=bxe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new lkt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(hkt(c.type,c.options))}});ckt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#i=Akt(e)}#A(){this.#r!==JQ&&(this.#r=WQ,this.dispatchEvent(new Event("error")),setTimeout(()=>{this.#r===WQ&&(this.#o.lastEventId.length&&this.#s.headersList.set("last-event-id",this.#o.lastEventId,!0),this.#c())},this.#o.reconnectionTime)?.unref())}close(){Hs.brandCheck(this,t),this.#r!==JQ&&(this.#r=JQ,this.#i.abort(),this.#s=null)}get onopen(){return this.#e.open}set onopen(e){this.#e.open&&this.removeEventListener("open",this.#e.open);let r=Hs.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=Hs.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=Hs.converters.EventHandlerNonNull(e);r!==null?(this.addEventListener("error",r),this.#e.error=e):this.#e.error=null}},Qxe={CONNECTING:{__proto__:null,configurable:!1,enumerable:!0,value:WQ,writable:!1},OPEN:{__proto__:null,configurable:!1,enumerable:!0,value:bxe,writable:!1},CLOSED:{__proto__:null,configurable:!1,enumerable:!0,value:JQ,writable:!1}};Object.defineProperties(XE,Qxe);Object.defineProperties(XE.prototype,Qxe);Object.defineProperties(XE.prototype,{close:Jg,onerror:Jg,onmessage:Jg,onopen:Jg,readyState:Jg,url:Jg,withCredentials:Jg});Hs.converters.EventSourceInitDict=Hs.dictionaryConverter([{key:"withCredentials",converter:Hs.converters.boolean,defaultValue:()=>!1},{key:"dispatcher",converter:Hs.converters.any},{key:"node",converter:Hs.dictionaryConverter([{key:"reconnectionTime",converter:Hs.converters["unsigned long"],defaultValue:()=>Bxe},{key:"dispatcher",converter:Hs.converters.any}]),defaultValue:()=>({})}]);wxe.exports={EventSource:XE,defaultReconnectionTime:Bxe}});var kxe=E((VQr,pe)=>{"use strict";var pkt=$d(),Txe=Vb(),mkt=Sg(),Ekt=TQe(),Ckt=kQe(),Ikt=xg(),ykt=lW(),Bkt=aW(),bkt=gwe(),Qkt=ywe(),wkt=Qwe(),xxe=Ke(),E_=Ze(),{InvalidArgumentError:m_}=xxe,ZE=i1e(),Skt=Cg(),Nkt=jW(),{MockCallHistory:Tk
Line truncated
|
||||
`).slice(1).join(`
|
||||
`);t.stack=r?`${r}
|
||||
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return _2t(e,r).catch(n=>{throw LTe?HTe(n,LTe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Mg().Headers;pe.exports.Response=xQ().Response;pe.exports.Request=ME().Request;pe.exports.FormData=Sk().FormData;var{setGlobalOrigin:F2t,getGlobalOrigin:M2t}=NV();pe.exports.setGlobalOrigin=F2t;pe.exports.getGlobalOrigin=M2t;var{CacheStorage:L2t}=yNe(),{kConstruct:U2t}=Kt();pe.exports.caches=new L2t(U2t);var{deleteCookie:P2t,getCookies:O2t,getSetCookies:H2t,setCookie:G2t,parseCookie:q2t}=_Ne();pe.exports.deleteCookie=P2t;pe.exports.getCookies=O2t;pe.exports.getSetCookies=H2t;pe.exports.setCookie=G2t;pe.exports.parseCookie=q2t;var{parseMIMEType:Y2t,serializeAMimeType:V2t}=ia();pe.exports.parseMIMEType=Y2t;pe.exports.serializeAMimeType=V2t;var{CloseEvent:W2t,ErrorEvent:J2t,MessageEvent:z2t}=Yv(),{WebSocket:j2t,ping:K2t}=fTe();pe.exports.WebSocket=j2t;pe.exports.CloseEvent=W2t;pe.exports.ErrorEvent=J2t;pe.exports.MessageEvent=z2t;pe.exports.ping=K2t;pe.exports.WebSocketStream=BTe().WebSocketStream;pe.exports.WebSocketError=qJ().WebSocketError;pe.exports.request=HQ(JE.request);pe.exports.stream=HQ(JE.stream);pe.exports.pipeline=HQ(JE.pipeline);pe.exports.connect=HQ(JE.connect);pe.exports.upgrade=HQ(JE.upgrade);pe.exports.MockClient=B2t;pe.exports.MockCallHistory=b2t;pe.exports.MockCallHistoryLog=Q2t;pe.exports.MockPool=S2t;pe.exports.MockAgent=w2t;pe.exports.SnapshotAgent=N2t;pe.exports.mockErrors=T2t;var{EventSource:$2t}=MTe();pe.exports.EventSource=$2t;function X2t(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=X2t});var GQ=E(ch=>{"use strict";ch.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ch.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ch.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";ch.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ch.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ch.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ch.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 YTe=E((bbr,qTe)=>{"use strict";var{asciiLowercase:s_,solelyContainsHTTPTokenCodePoints:Z2t,soleyContainsHTTPQuotedStringTokenCodePoints:ekt}=GQ();qTe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=s_(String(e)),this._map.get(e)}has(e){return e=s_(String(e)),this._map.has(e)}set(e,r){if(e=s_(String(e)),r=String(r),!Z2t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ekt(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=s_(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 JTe=E((Qbr,WTe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:tkt,removeTrailingHTTPWhitespace:VTe,isHTTPWhitespaceChar:rkt,solelyContainsHTTPTokenCodePoints:jJ,soleyContainsHTTPQuotedStringTokenCodePoints:nkt,asciiLowercase:KJ,collectAnHTTPQuotedString:skt}=GQ();WTe.exports=t=>{t=tkt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!jJ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=VTe(n),n.length===0||!jJ(n))return null;let s={type:KJ(r),subtype:KJ(n),parameters:new Map};for(;e<t.length;){for(++e;rkt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=KJ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=skt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=VTe(o),o==="")continue}i.length>0&&jJ(i)&&nkt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var jTe=E((wbr,zTe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:ikt}=GQ();zTe.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+="=",(!ikt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var ZTe=E((Nbr,XTe)=>{"use strict";var okt=YTe(),akt=JTe(),ckt=jTe(),{asciiLowercase:KTe,solelyContainsHTTPTokenCodePoints:$Te}=GQ();XTe.exports=class{constructor(e){e=String(e);let r=akt(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 okt(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=KTe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!$Te(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=KTe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!$Te(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return ckt(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 mxe=E(Qn=>{"use strict";var nz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Dkt=nz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,k,k,f,s);let O=f.type==="*"?zz:f.type==="?"?$z:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+O+"\\("+k}N(),o&&(s+="\\\\");let M=_vt[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let O=c[k],D=s.slice(0,O.reStart),z=s.slice(O.reStart,O.reEnd-8),ee=s.slice(O.reEnd),te=s.slice(O.reEnd-8,O.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==jz?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===jz)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return Mvt(e);let Y=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",Y),{_glob:e,_src:s})}catch{return new RegExp("$.")}}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let r=this.options,n=r.noglobstar?zz:r.dot?kvt:vvt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?Uvt(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;Kz.sep!=="/"&&(e=e.split(Kz.sep).join("/")),e=e.split(ORe),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 fo.defaults(e).Minimatch}};fo.Minimatch=eC});var zRe=E((wwr,JRe)=>{JRe.exports=WRe;var ej=b("fs"),{EventEmitter:Ovt}=b("events"),{Minimatch:Zz}=qRe(),{resolve:Hvt}=b("path");function Gvt(t,e){return new Promise((r,n)=>{ej.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 YRe(t,e){return new Promise((r,n)=>{(e?ej.stat:ej.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?YRe(t,!1):null):r(null):r(o)})})}async function*VRe(t,e,r,n,s,i){let o=await Gvt(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 YRe(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*VRe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*qvt(t,e,r,n){yield*VRe("",t,e,r,n,!0)}function Yvt(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 Ovt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=Yvt(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 Zz(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 Zz(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 Zz(i,{dot:!0}))}this.iterator=qvt(Hvt(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive
Line truncated
|
||||
`,w);w=G===-1?Q.length:G}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let G=Q.indexOf("*/",w);G!==-1?(w=G+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function eI(Q){let B=ZC(Q.toString()),w=B.match(NM);if(w||(w=B.match(TM)),!w)throw new Error(`could not parse args in autoInject
|
||||
${i}`:s.stack}pe.exports.fetch=function(e,r=void 0){return Pkt(e,r).catch(n=>{throw Nxe?Dxe(n,Nxe):n&&typeof n=="object"&&Error.captureStackTrace(n,pe.exports.fetch),n})};pe.exports.Headers=Pg().Headers;pe.exports.Response=MQ().Response;pe.exports.Request=GE().Request;pe.exports.FormData=Hk().FormData;var{setGlobalOrigin:Okt,getGlobalOrigin:Hkt}=KV();pe.exports.setGlobalOrigin=Okt;pe.exports.getGlobalOrigin=Hkt;var{CacheStorage:Gkt}=lTe(),{kConstruct:qkt}=Kt();pe.exports.caches=new Gkt(qkt);var{deleteCookie:Ykt,getCookies:Vkt,getSetCookies:Wkt,setCookie:Jkt,parseCookie:zkt}=QTe();pe.exports.deleteCookie=Ykt;pe.exports.getCookies=Vkt;pe.exports.getSetCookies=Wkt;pe.exports.setCookie=Jkt;pe.exports.parseCookie=zkt;var{parseMIMEType:jkt,serializeAMimeType:Kkt}=oa();pe.exports.parseMIMEType=jkt;pe.exports.serializeAMimeType=Kkt;var{CloseEvent:$kt,ErrorEvent:Xkt,MessageEvent:Zkt}=i_(),{WebSocket:evt,ping:tvt}=sxe();pe.exports.WebSocket=evt;pe.exports.CloseEvent=$kt;pe.exports.ErrorEvent=Xkt;pe.exports.MessageEvent=Zkt;pe.exports.ping=tvt;pe.exports.WebSocketStream=dxe().WebSocketStream;pe.exports.WebSocketError=dz().WebSocketError;pe.exports.request=zQ(ZE.request);pe.exports.stream=zQ(ZE.stream);pe.exports.pipeline=zQ(ZE.pipeline);pe.exports.connect=zQ(ZE.connect);pe.exports.upgrade=zQ(ZE.upgrade);pe.exports.MockClient=Nkt;pe.exports.MockCallHistory=Tkt;pe.exports.MockCallHistoryLog=xkt;pe.exports.MockPool=Dkt;pe.exports.MockAgent=Rkt;pe.exports.SnapshotAgent=kkt;pe.exports.mockErrors=vkt;var{EventSource:rvt}=Sxe();pe.exports.EventSource=rvt;function nvt(){globalThis.fetch=pe.exports.fetch,globalThis.Headers=pe.exports.Headers,globalThis.Response=pe.exports.Response,globalThis.Request=pe.exports.Request,globalThis.FormData=pe.exports.FormData,globalThis.WebSocket=pe.exports.WebSocket,globalThis.CloseEvent=pe.exports.CloseEvent,globalThis.ErrorEvent=pe.exports.ErrorEvent,globalThis.MessageEvent=pe.exports.MessageEvent,globalThis.EventSource=pe.exports.EventSource}pe.exports.install=nvt});var jQ=E(uh=>{"use strict";uh.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");uh.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");uh.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";uh.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);uh.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);uh.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());uh.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 _xe=E((zQr,vxe)=>{"use strict";var{asciiLowercase:C_,solelyContainsHTTPTokenCodePoints:svt,soleyContainsHTTPQuotedStringTokenCodePoints:ivt}=jQ();vxe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=C_(String(e)),this._map.get(e)}has(e){return e=C_(String(e)),this._map.has(e)}set(e,r){if(e=C_(String(e)),r=String(r),!svt(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!ivt(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=C_(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 Lxe=E((jQr,Mxe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:ovt,removeTrailingHTTPWhitespace:Fxe,isHTTPWhitespaceChar:avt,solelyContainsHTTPTokenCodePoints:Ez,soleyContainsHTTPQuotedStringTokenCodePoints:cvt,asciiLowercase:Cz,collectAnHTTPQuotedString:Avt}=jQ();Mxe.exports=t=>{t=ovt(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!Ez(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=Fxe(n),n.length===0||!Ez(n))return null;let s={type:Cz(r),subtype:Cz(n),parameters:new Map};for(;e<t.length;){for(++e;avt(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=Cz(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Avt(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=Fxe(o),o==="")continue}i.length>0&&Ez(i)&&cvt(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var Pxe=E((KQr,Uxe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:uvt}=jQ();Uxe.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+="=",(!uvt(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var qxe=E((XQr,Gxe)=>{"use strict";var lvt=_xe(),dvt=Lxe(),hvt=Pxe(),{asciiLowercase:Oxe,solelyContainsHTTPTokenCodePoints:Hxe}=jQ();Gxe.exports=class{constructor(e){e=String(e);let r=dvt(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 lvt(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=Oxe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!Hxe(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=Oxe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!Hxe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return hvt(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 aRe=E(Qn=>{"use strict";var Sz=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Mvt=Sz(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=b("node:fs"),r=b("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,k,k,f,s);let P=f.type==="*"?mj:f.type==="?"?Ij:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+P+"\\("+k}N(),o&&(s+="\\\\");let M=P_t[s.charAt(0)];for(let k=c.length-1;k>-1;k--){let P=c[k],D=s.slice(0,P.reStart),z=s.slice(P.reStart,P.reEnd-8),ee=s.slice(P.reEnd),te=s.slice(P.reEnd-8,P.reEnd)+ee,ce=D.split(")").length,ge=D.split("(").length-ce,De=ee;for(let st=0;st<ge;st++)De=De.replace(/\)[+*?]?/,"");ee=De;let $e=ee===""&&r!==Ej?"(?:$|\\/)":"";s=D+z+ee+$e+te}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Ej)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return H_t(e);let O=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",O),{_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?mj:r.dot?L_t:U_t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?q_t(a):a===Gs?Gs:a._src).reduce((a,c)=>(a[a.length-1]===Gs&&c===Gs||a.push(c),a),[]),o.forEach((a,c)=>{a!==Gs||o[c-1]===Gs||(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]=Gs))}),o.filter(a=>a!==Gs).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;Cj.sep!=="/"&&(e=e.split(Cj.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 go.defaults(e).Minimatch}};go.Minimatch=oC});var UDe=E((K1r,LDe)=>{LDe.exports=MDe;var bj=b("fs"),{EventEmitter:V_t}=b("events"),{Minimatch:Bj}=vDe(),{resolve:W_t}=b("path");function J_t(t,e){return new Promise((r,n)=>{bj.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 _De(t,e){return new Promise((r,n)=>{(e?bj.stat:bj.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?_De(t,!1):null):r(null):r(o)})})}async function*FDe(t,e,r,n,s,i){let o=await J_t(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 _De(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*FDe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*z_t(t,e,r,n){yield*FDe("",t,e,r,n,!0)}function j_t(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 v_=class extends V_t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=j_t(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 Bj(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 Bj(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 Bj(i,{dot:!0}))}this.iterator=z_t(W_t(e||"."),this.options.follow,this.options.stat,this._shouldSkipDirectory.bind(this)),this.paused=!1,this.inactive=!1,this.aborted=!1,n&&(this._matches=[],this.on("match",s=>this._matches.push(this.options.absolute?s.absolute:s.relative)),this.on("error",s=>n(s)),this.on("end",()=>n(null,this._matches))),setTimeout(()=>this._next(),0)}_shouldSkipDirectory(e){return this.skipMatchers.some(r=>r.match(e))}_fileMatches(e,r){let n=e+(r?"/":"");return(this.matchers.length===0||this.matchers.some(s=>s.match(n)))&&!this.ignoreMatchers.some(s=>s.match(n))&&(!this.options.nodir||!r)}_next(){!this.paused&&!this.aborted?this.iterator.next().then(e=>{if(e.done)this.emit("end");else{let r=e.value.stats.isDirectory();if(this._fileMatches(e.value.relative,r)){let n=e.value.relative,s=e.value.absolute;this.options.mark&&r&&(n+="/",s+="/"),this.options.stat?this.emit("match",{relative:n,absolute:s,stat:e.value.stats}):this.emit("match",{relative:n,absolute:s})}this._next(this.iterator)}}).catch(e=>{this.abort(),this.emit("error",e),!e.code&&!this.options.silent&&console.error(e)}):this.inactive
Line truncated
|
||||
`,w);w=q===-1?Q.length:q}else if(F!==-1&&Q[w]==="/"&&Q[w+1]==="*"){let q=Q.indexOf("*/",w);q!==-1?(w=q+2,F=Q.indexOf("*/",w)):(B+=Q[w],w++)}else B+=Q[w],w++;return B}function oI(Q){let B=iI(Q.toString()),w=B.match(GM);if(w||(w=B.match(qM)),!w)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+B);let[,F]=w;return F.replace(/\s/g,"").split(h1).map(G=>G.replace(f1,"").trim())}function tI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var G=Q[F],V,J=h(G),j=!J&&G.length===1||J&&G.length===0;if(Array.isArray(G))V=[...G],G=V.pop(),w[F]=V.concat(V.length>0?re:G);else if(j)w[F]=G;else{if(V=eI(G),G.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(G)(...Ft)}}),XC(w,B)}class rI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):nI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):nI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function nI(Q,B){Q.length=1,Q.head=Q.tail=B}function Rp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),G=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function yo(Lh,...uI){if(Lh)return Pe?xn(Lh):Ir();if(uI.length<=1)return Ir(uI[0]);Ir(uI)}var _p=Mt._createTaskItem(Ue,Pe?yo:Nt||yo);if(be?Mt._tasks.unshift(_p):Mt._tasks.push(_p),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Lh,uI)=>{Ir=Lh,xn=uI})}function Io(Ue){return function(be,...Pe){G-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],yo=V.indexOf(xn);yo===0?V.shift():yo>0&&V.splice(yo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}G<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function vp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Mh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var AI=!1,Mt={_tasks:new rI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?vp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?vp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?vp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?vp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!AI){for(AI=!0;!Mt.paused&&G<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}G+=1,Mt._tasks.length===0&&Bt("empty"),G===Mt.concurrency&&Bt("saturated");var xn=te(Io(Ue));F(be,xn)}AI=!1}},length(){return Mt._tasks.length},running(){return G},workersList(){return V},idle(){return Mt._tasks.length+G===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Mh("saturated")},unsaturated:{writable:!1,value:Mh("unsaturated")},empty:{writable:!1,value:Mh("empty")},drain:{writable:!1,value:Mh("drain")},error:{writable:!1,value:Mh("error")}}),Mt}function sI(Q,B){return Rp(Q,1,B)}function Dp(Q,B,w){return Rp(Q,B,w)}function Co(Q,B,w,F){F=Y(F);var G=I(w);return js(Q,(V,J,j)=>{G(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var wa=m(Co,4);function kp(...Q){var B=Q.map(I);return function(...w){var F=this,G=w[w.length-1];return typeof G=="function"?w.pop():G=ou(),wa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>G(V,...J)),G[iu]}}function g1(...Q){return kp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var H=m(we,4);function T(Q,B,w,F){var G=I(w);return H(Q,B,(V,J)=>{G(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var q=m(T,4);function K(Q,B,w){return q(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur
Line truncated
|
||||
GFS4: `),console.error(t)});vr[rs]||(sDe=global[rs]||[],oDe(vr,sDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||iDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,b_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),iDe()}return Object.defineProperty(e,b_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){Xg(vr[rs]),b("assert").equal(vr[rs].length,0)}));var sDe;global[rs]||oDe(global,vr[rs]);sj.exports=rj(Zvt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(sj.exports=rj(vr),vr.__patched=!0);function rj(t){$vt(t),t.gracefulify=rj,t.createReadStream=M,t.createWriteStream=Y;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?tC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?tC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?tC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?tC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?tC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=Xvt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;O(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;O(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function Y(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=O;function O(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?tC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function tC(t){Xg("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),nj()}var B_;function iDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);nj()}function nj(){if(clearTimeout(B_),B_=void 0,vr[rs].length!==0){var t=vr[rs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)Xg("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){Xg("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?(Xg("RETRY",e.name,r),e.apply(null,r.concat([s]))):vr[rs].push(t)}B_===void 0&&(B_=setTimeout(nj,0))}}});var Q_=E((Rwr,aDe)=>{"use strict";var VA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";VA.writable=t=>VA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";VA.readable=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};Pke.exports={AggregateError:Oj,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 Hj=E((O1r,Oke)=>{"use strict";Oke.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 Is=E((H1r,qke)=>{"use strict";var{format:BUt,inspect:q_}=Hj(),{AggregateError:bUt}=Tr(),QUt=globalThis.AggregateError||bUt,wUt=Symbol("kIsNodeError"),SUt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],NUt=/^([A-Z][a-z0-9]*)+$/,TUt="__node_internal_",Y_={};function tp(t,e){if(!t)throw new Y_.ERR_INTERNAL_ASSERTION(e)}function Hke(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 xUt(t,e,r){if(typeof e=="function")return tp(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 tp(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:BUt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(xUt(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[wUt]=!0,Y_[t]=n}function Gke(t){let e=TUt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function RUt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new QUt([e,t],e.message);return r.code=e.code,r}return t||e}var Gj=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"}};ss("ERR_ASSERTION","%s",Error);ss("ERR_INVALID_ARG_TYPE",(t,e,r)=>{tp(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)tp(typeof c=="string","All expected entries have to be of type string"),SUt.includes(c)?s.push(c.toLowerCase()):NUt.test(c)?i.push(c):(tp(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+=IX(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=IX(" "+s+"="+n[s]+`
|
||||
`);return kt.from(r)};GC.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(kt.toString(e.subarray(0,n)),10);if(!s)return r;let i=kt.toString(e.subarray(n+1,s-1)),o=i.indexOf("=");if(o===-1)return r;r[i.slice(0,o)]=i.slice(o+1),e=e.subarray(s)}return r};GC.encode=function(e){let r=kt.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),kt.byteLength(n)!==n.length)return null;for(;kt.byteLength(n)>100;){let i=n.indexOf("/");if(i===-1)return null;s+=s?"/"+n.slice(0,i):n.slice(0,i),n=n.slice(i+1)}return kt.byteLength(n)>100||kt.byteLength(s)>155||e.linkname&&kt.byteLength(e.linkname)>100?null:(kt.write(r,n),kt.write(r,Th(e.mode&HYt,6),100),kt.write(r,Th(e.uid,6),108),kt.write(r,Th(e.gid,6),116),zYt(e.size,r,124),kt.write(r,Th(e.mtime.getTime()/1e3|0,11),136),r[156]=EM+WYt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(lOe,r,s1),kt.copy(UYt,r,yX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Th(e.devmajor||0,6),329),kt.write(r,Th(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Th(hOe(r),6),148),r)};GC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-EM,i=HC(e,0,100,r),o=Nh(e,100,8),a=Nh(e,108,8),c=Nh(e,116,8),A=Nh(e,124,12),u=Nh(e,136,12),l=VYt(s),d=e[157]===0?null:HC(e,157,100,r),h=HC(e,265,32),f=HC(e,297,32),p=Nh(e,329,8),I=Nh(e,337,8),m=hOe(e);if(m===256)return null;if(m!==Nh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(GYt(e))e[345]&&(i=HC(e,345,155,r)+"/"+i);else if(!qYt(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:p,devminor:I,pax:null}};function GYt(t){return kt.equals(lOe,t.subarray(s1,s1+6))}function qYt(t){return kt.equals(PYt,t.subarray(s1,s1+6))&&kt.equals(OYt,t.subarray(yX,yX+2))}function YYt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function VYt(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 WYt(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 dOe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function hOe(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 Th(t,e){return t=t.toString(8),t.length>e?LYt.slice(0,e)+" ":MYt.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 zYt(t,e,r){t.toString(8).length>11?JYt(t,e,r):kt.write(e,Th(t,11),r)}function jYt(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 Nh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return jYt(t);{for(;e<t.length&&t[e]===32;)e++;let n=YYt(dOe(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 HC(t,e,r,n){return kt.toString(t.subarray(e,dOe(t,0,e,e+r)),n)}function IX(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 EOe=E((hTr,mOe)=>{var{Writable:KYt,Readable:$Yt,getStreamError:fOe}=CX(),XYt=sX(),gOe=MC(),qC=BX(),ZYt=gOe.alloc(0),QX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new XYt,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 ZYt;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 gOe.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)}},wX=class extends $Yt{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(fOe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=pOe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},SX=class extends KYt{constru
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Ice(t,e){if(process.env.GITHUB_OUTPUT||"")return lI("OUTPUT",U1(t,e));process.stdout.write(EO.EOL),Na("set-output",{name:t},yc(e))}function Kl(t){process.exitCode=mO.Failure,Ui(t)}function Oa(){return process.env.RUNNER_DEBUG==="1"}function P(t){Na("debug",{},t)}function Ui(t,e={}){Na("error",F1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Na("warning",F1(e),t instanceof Error?t.toString():t)}function yce(t,e={}){Na("notice",F1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+EO.EOL)}function Mje(t){UM("group",t)}function Lje(){UM("endgroup")}function qN(t,e){return Fje(this,void 0,void 0,function*(){Mje(t);let r;try{r=yield e()}finally{Lje()}return r})}function bu(t,e){if(process.env.GITHUB_STATE||"")return lI("STATE",U1(t,e));Na("save-state",{name:t},yc(e))}function Dm(t){return process.env[`STATE_${t}`]||""}import*as tz from"fs";import*as rz from"path";import*as a_ from"os";import{readFileSync as Uje,existsSync as Pje}from"fs";import{EOL as Oje}from"os";var km=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Pje(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Uje(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${Oje}`)}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 bO=Ae(Sce(),1),Nce=Ae(_N(),1),Zje=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 Tce(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 xce(t){return new bO.HttpClient().getAgent(t)}function eKe(t){return new bO.HttpClient().getAgentDispatcher(t)}function Rce(t){let e=eKe(t);return(n,s)=>Zje(this,void 0,void 0,function*(){return(0,Nce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Dce(){return process.env.GITHUB_API_URL||"https://api.github.com"}function QO(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 KN(){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 $N(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)=>$N.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 kce(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 vce(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 _ce=Function.bind,Fce=_ce.bind(_ce);function Mce(t,e,r){let n=Fce(vce,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]=Fce(kce,null).
Line truncated
|
||||
`+B);let[,F]=w;return F.replace(/\s/g,"").split(I1).map(q=>q.replace(y1,"").trim())}function aI(Q,B){var w={};return Object.keys(Q).forEach(F=>{var q=Q[F],V,J=h(q),j=!J&&q.length===1||J&&q.length===0;if(Array.isArray(q))V=[...q],q=V.pop(),w[F]=V.concat(V.length>0?re:q);else if(j)w[F]=q;else{if(V=oI(q),q.length===0&&!J&&V.length===0)throw new Error("autoInject task functions require explicit parameters.");J||V.pop(),w[F]=V.concat(re)}function re(Se,Bt){var Ft=V.map(St=>Se[St]);Ft.push(Bt),I(q)(...Ft)}}),sI(w,B)}class cI{constructor(){this.head=this.tail=null,this.length=0}removeLink(B){return B.prev?B.prev.next=B.next:this.head=B.next,B.next?B.next.prev=B.prev:this.tail=B.prev,B.prev=B.next=null,this.length-=1,B}empty(){for(;this.head;)this.shift();return this}insertAfter(B,w){w.prev=B,w.next=B.next,B.next?B.next.prev=w:this.tail=w,B.next=w,this.length+=1}insertBefore(B,w){w.prev=B.prev,w.next=B,B.prev?B.prev.next=w:this.head=w,B.prev=w,this.length+=1}unshift(B){this.head?this.insertBefore(this.head,B):AI(this,B)}push(B){this.tail?this.insertAfter(this.tail,B):AI(this,B)}shift(){return this.head&&this.removeLink(this.head)}pop(){return this.tail&&this.removeLink(this.tail)}toArray(){return[...this]}*[Symbol.iterator](){for(var B=this.head;B;)yield B.data,B=B.next}remove(B){for(var w=this.head;w;){var{next:F}=w;B(w)&&this.removeLink(w),w=F}return this}}function AI(Q,B){Q.length=1,Q.head=Q.tail=B}function vp(Q,B,w){if(B==null)B=1;else if(B===0)throw new RangeError("Concurrency must not be zero");var F=I(Q),q=0,V=[];let J={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function j(Ue,be){J[Ue].push(be)}function re(Ue,be){let Pe=(...Nt)=>{Se(Ue,Pe),be(...Nt)};J[Ue].push(Pe)}function Se(Ue,be){if(!Ue)return Object.keys(J).forEach(Pe=>J[Pe]=[]);if(!be)return J[Ue]=[];J[Ue]=J[Ue].filter(Pe=>Pe!==be)}function Bt(Ue,...be){J[Ue].forEach(Pe=>Pe(...be))}var Ft=!1;function St(Ue,be,Pe,Nt){if(Nt!=null&&typeof Nt!="function")throw new Error("task callback must be a function");Mt.started=!0;var Ir,xn;function Bo(Ph,...pI){if(Ph)return Pe?xn(Ph):Ir();if(pI.length<=1)return Ir(pI[0]);Ir(pI)}var Lp=Mt._createTaskItem(Ue,Pe?Bo:Nt||Bo);if(be?Mt._tasks.unshift(Lp):Mt._tasks.push(Lp),Ft||(Ft=!0,A(()=>{Ft=!1,Mt.process()})),Pe||!Nt)return new Promise((Ph,pI)=>{Ir=Ph,xn=pI})}function yo(Ue){return function(be,...Pe){q-=1;for(var Nt=0,Ir=Ue.length;Nt<Ir;Nt++){var xn=Ue[Nt],Bo=V.indexOf(xn);Bo===0?V.shift():Bo>0&&V.splice(Bo,1),xn.callback(be,...Pe),be!=null&&Bt("error",be,xn.data)}q<=Mt.concurrency-Mt.buffer&&Bt("unsaturated"),Mt.idle()&&Bt("drain"),Mt.process()}}function Mp(Ue){return Ue.length===0&&Mt.idle()?(A(()=>Bt("drain")),!0):!1}let Uh=Ue=>be=>{if(!be)return new Promise((Pe,Nt)=>{re(Ue,(Ir,xn)=>{if(Ir)return Nt(Ir);Pe(xn)})});Se(Ue),j(Ue,be)};var gI=!1,Mt={_tasks:new cI,_createTaskItem(Ue,be){return{data:Ue,callback:be}},*[Symbol.iterator](){yield*Mt._tasks[Symbol.iterator]()},concurrency:B,payload:w,buffer:B/4,started:!1,paused:!1,push(Ue,be){return Array.isArray(Ue)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!1,be)):St(Ue,!1,!1,be)},pushAsync(Ue,be){return Array.isArray(Ue)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!1,!0,be)):St(Ue,!1,!0,be)},kill(){Se(),Mt._tasks.empty()},unshift(Ue,be){return Array.isArray(Ue)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!1,be)):St(Ue,!0,!1,be)},unshiftAsync(Ue,be){return Array.isArray(Ue)?Mp(Ue)?void 0:Ue.map(Pe=>St(Pe,!0,!0,be)):St(Ue,!0,!0,be)},remove(Ue){Mt._tasks.remove(Ue)},process(){if(!gI){for(gI=!0;!Mt.paused&&q<Mt.concurrency&&Mt._tasks.length;){var Ue=[],be=[],Pe=Mt._tasks.length;Mt.payload&&(Pe=Math.min(Pe,Mt.payload));for(var Nt=0;Nt<Pe;Nt++){var Ir=Mt._tasks.shift();Ue.push(Ir),V.push(Ir),be.push(Ir.data)}q+=1,Mt._tasks.length===0&&Bt("empty"),q===Mt.concurrency&&Bt("saturated");var xn=te(yo(Ue));F(be,xn)}gI=!1}},length(){return Mt._tasks.length},running(){return q},workersList(){return V},idle(){return Mt._tasks.length+q===0},pause(){Mt.paused=!0},resume(){Mt.paused!==!1&&(Mt.paused=!1,A(Mt.process))}};return Object.defineProperties(Mt,{saturated:{writable:!1,value:Uh("saturated")},unsaturated:{writable:!1,value:Uh("unsaturated")},empty:{writable:!1,value:Uh("empty")},drain:{writable:!1,value:Uh("drain")},error:{writable:!1,value:Uh("error")}}),Mt}function uI(Q,B){return vp(Q,1,B)}function _p(Q,B,w){return vp(Q,B,w)}function Io(Q,B,w,F){F=O(F);var q=I(w);return js(Q,(V,J,j)=>{q(B,V,(re,Se)=>{B=Se,j(re)})},V=>F(V,B))}var Sa=m(Io,4);function Fp(...Q){var B=Q.map(I);return function(...w){var F=this,q=w[w.length-1];return typeof q=="function"?w.pop():q=au(),Sa(B,w,(V,J,j)=>{J.apply(F,V.concat((re,...Se)=>{j(re,Se)}))},(V,J)=>q(V,...J)),q[ou]}}function B1(...Q){return Fp(...Q.reverse())}function we(Q,B,w,F){return y(ge(B),Q,w,F)}var G=m(we,4);function T(Q,B,w,F){var q=I(w);return G(Q,B,(V,J)=>{q(V,(j,...re)=>j?J(j):J(j,re))},(V,J)=>{for(var j=[],re=0;re<J.length;re++)J[re]&&(j=j.concat(...J[re]));return F(V,j)})}var Y=m(T,4);function K(Q,B,w){return Y(Q,1/0,B,w)}var X=m(K,3);function oe(Q,B,w){retur
Line truncated
|
||||
GFS4: `),console.error(t)});vr[rs]||(zDe=global[rs]||[],KDe(vr,zDe),vr.close=(function(t){function e(r,n){return t.call(vr,r,function(s){s||jDe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(vr.close),vr.closeSync=(function(t){function e(r){t.apply(vr,arguments),jDe()}return Object.defineProperty(e,U_,{value:t}),e})(vr.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){tp(vr[rs]),b("assert").equal(vr[rs].length,0)}));var zDe;global[rs]||KDe(global,vr[rs]);Nj.exports=wj(sFt(vr));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!vr.__patched&&(Nj.exports=wj(vr),vr.__patched=!0);function wj(t){rFt(t),t.gracefulify=wj,t.createReadStream=M,t.createWriteStream=O;var e=t.readFile;t.readFile=r;function r(D,z,ee){return typeof z=="function"&&(ee=z,z=null),te(D,z,ee);function te(ce,ge,De,$e){return e(ce,ge,function(st){st&&(st.code==="EMFILE"||st.code==="ENFILE")?aC([te,[ce,ge,De],st,$e||Date.now(),Date.now()]):typeof De=="function"&&De.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return n(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return i(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=0),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return a(ge,De,$e,function(vt){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(D,z,ee){typeof z=="function"&&(ee=z,z=null);var te=u.test(process.version)?function(De,$e,st,Yt){return A(De,ce(De,$e,st,Yt))}:function(De,$e,st,Yt){return A(De,$e,ce(De,$e,st,Yt))};return te(D,z,ee);function ce(ge,De,$e,st){return function(Yt,vt){Yt&&(Yt.code==="EMFILE"||Yt.code==="ENFILE")?aC([te,[ge,De,$e],Yt,st||Date.now(),Date.now()]):(vt&&vt.sort&&vt.sort(),typeof $e=="function"&&$e.call(this,Yt,vt))}}}if(process.version.substr(0,4)==="v0.8"){var d=nFt(t);m=d.ReadStream,y=d.WriteStream}var h=t.ReadStream;h&&(m.prototype=Object.create(h.prototype),m.prototype.open=C);var f=t.WriteStream;f&&(y.prototype=Object.create(f.prototype),y.prototype.open=N),Object.defineProperty(t,"ReadStream",{get:function(){return m},set:function(D){m=D},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return y},set:function(D){y=D},enumerable:!0,configurable:!0});var p=m;Object.defineProperty(t,"FileReadStream",{get:function(){return p},set:function(D){p=D},enumerable:!0,configurable:!0});var I=y;Object.defineProperty(t,"FileWriteStream",{get:function(){return I},set:function(D){I=D},enumerable:!0,configurable:!0});function m(D,z){return this instanceof m?(h.apply(this,arguments),this):m.apply(Object.create(m.prototype),arguments)}function C(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.autoClose&&D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee),D.read())})}function y(D,z){return this instanceof y?(f.apply(this,arguments),this):y.apply(Object.create(y.prototype),arguments)}function N(){var D=this;P(D.path,D.flags,D.mode,function(z,ee){z?(D.destroy(),D.emit("error",z)):(D.fd=ee,D.emit("open",ee))})}function M(D,z){return new t.ReadStream(D,z)}function O(D,z){return new t.WriteStream(D,z)}var k=t.open;t.open=P;function P(D,z,ee,te){return typeof ee=="function"&&(te=ee,ee=null),ce(D,z,ee,te);function ce(ge,De,$e,st,Yt){return k(ge,De,$e,function(vt,fn){vt&&(vt.code==="EMFILE"||vt.code==="ENFILE")?aC([ce,[ge,De,$e,st],vt,Yt||Date.now(),Date.now()]):typeof st=="function"&&st.apply(this,arguments)})}}return t}function aC(t){tp("ENQUEUE",t[0].name,t[1]),vr[rs].push(t),Sj()}var L_;function jDe(){for(var t=Date.now(),e=0;e<vr[rs].length;++e)vr[rs][e].length>2&&(vr[rs][e][3]=t,vr[rs][e][4]=t);Sj()}function Sj(){if(clearTimeout(L_),L_=void 0,vr[rs].length!==0){var t=vr[rs].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]))):vr[rs].push(t)}L_===void 0&&(L_=setTimeout(Sj,0))}}});var P_=E((tSr,$De)=>{"use strict";var WA=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";WA.writable=t=>WA(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";WA.readable=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};xve.exports={AggregateError:AK,ArrayIsArray(t){return Array.isArray(t)},ArrayPrototypeIncludes(t,e){return t.includes(e)},ArrayPrototypeIndexOf(t,e){return t.indexOf(e)},ArrayPrototypeJoin(t,e){return t.join(e)},ArrayPrototypeMap(t,e){return t.map(e)},ArrayPrototypePop(t,e){return t.pop(e)},ArrayPrototypePush(t,e){return t.push(e)},ArrayPrototypeSlice(t,e,r){return t.slice(e,r)},Error,FunctionPrototypeCall(t,e,...r){return t.call(e,...r)},FunctionPrototypeSymbolHasInstance(t,e){return Function.prototype[Symbol.hasInstance].call(t,e)},MathFloor:Math.floor,Number,NumberIsInteger:Number.isInteger,NumberIsNaN:Number.isNaN,NumberMAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER,NumberMIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER,NumberParseInt:Number.parseInt,ObjectDefineProperties(t,e){return Object.defineProperties(t,e)},ObjectDefineProperty(t,e,r){return Object.defineProperty(t,e,r)},ObjectGetOwnPropertyDescriptor(t,e){return Object.getOwnPropertyDescriptor(t,e)},ObjectKeys(t){return Object.keys(t)},ObjectSetPrototypeOf(t,e){return Object.setPrototypeOf(t,e)},Promise,PromisePrototypeCatch(t,e){return t.catch(e)},PromisePrototypeThen(t,e,r){return t.then(e,r)},PromiseReject(t){return Promise.reject(t)},PromiseResolve(t){return Promise.resolve(t)},ReflectApply:Reflect.apply,RegExpPrototypeTest(t,e){return t.test(e)},SafeSet:Set,String,StringPrototypeSlice(t,e,r){return t.slice(e,r)},StringPrototypeToLowerCase(t){return t.toLowerCase()},StringPrototypeToUpperCase(t){return t.toUpperCase()},StringPrototypeTrim(t){return t.trim()},Symbol,SymbolFor:Symbol.for,SymbolAsyncIterator:Symbol.asyncIterator,SymbolHasInstance:Symbol.hasInstance,SymbolIterator:Symbol.iterator,SymbolDispose:Symbol.dispose||Symbol("Symbol.dispose"),SymbolAsyncDispose:Symbol.asyncDispose||Symbol("Symbol.asyncDispose"),TypedArrayPrototypeSet(t,e,r){return t.set(e,r)},Boolean,Uint8Array}});var uK=E((lNr,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 Is=E((dNr,vve)=>{"use strict";var{format:NPt,inspect:sF}=uK(),{AggregateError:TPt}=Tr(),xPt=globalThis.AggregateError||TPt,RPt=Symbol("kIsNodeError"),DPt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],kPt=/^([A-Z][a-z0-9]*)+$/,vPt="__node_internal_",iF={};function sp(t,e){if(!t)throw new iF.ERR_INTERNAL_ASSERTION(e)}function Dve(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 _Pt(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:NPt(e,...r)}function ss(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(_Pt(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[RPt]=!0,iF[t]=n}function kve(t){let e=vPt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function FPt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new xPt([e,t],e.message);return r.code=e.code,r}return t||e}var lK=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new iF.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ss("ERR_ASSERTION","%s",Error);ss("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"),DPt.includes(c)?s.push(c.toLowerCase()):kPt.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+=qX(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=qX(" "+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,Rh(e.mode&WVt,6),100),kt.write(r,Rh(e.uid,6),108),kt.write(r,Rh(e.gid,6),116),ZVt(e.size,r,124),kt.write(r,Rh(e.mtime.getTime()/1e3|0,11),136),r[156]=vM+$Vt(e.type),e.linkname&&kt.write(r,e.linkname,157),kt.copy(t3e,r,l1),kt.copy(qVt,r,YX),e.uname&&kt.write(r,e.uname,265),e.gname&&kt.write(r,e.gname,297),kt.write(r,Rh(e.devmajor||0,6),329),kt.write(r,Rh(e.devminor||0,6),337),s&&kt.write(r,s,345),kt.write(r,Rh(n3e(r),6),148),r)};zC.decode=function(e,r,n){let s=e[156]===0?0:e[156]-vM,i=JC(e,0,100,r),o=xh(e,100,8),a=xh(e,108,8),c=xh(e,116,8),A=xh(e,124,12),u=xh(e,136,12),l=KVt(s),d=e[157]===0?null:JC(e,157,100,r),h=JC(e,265,32),f=JC(e,297,32),p=xh(e,329,8),I=xh(e,337,8),m=n3e(e);if(m===256)return null;if(m!==xh(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(JVt(e))e[345]&&(i=JC(e,345,155,r)+"/"+i);else if(!zVt(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:p,devminor:I,pax:null}};function JVt(t){return kt.equals(t3e,t.subarray(l1,l1+6))}function zVt(t){return kt.equals(YVt,t.subarray(l1,l1+6))&&kt.equals(VVt,t.subarray(YX,YX+2))}function jVt(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function KVt(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 $Vt(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 r3e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function n3e(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 Rh(t,e){return t=t.toString(8),t.length>e?GVt.slice(0,e)+" ":HVt.slice(0,e-t.length)+t+" "}function XVt(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function ZVt(t,e,r){t.toString(8).length>11?XVt(t,e,r):kt.write(e,Rh(t,11),r)}function e7t(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 xh(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return e7t(t);{for(;e<t.length&&t[e]===32;)e++;let n=jVt(r3e(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,r3e(t,0,e,e+r)),n)}function qX(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 c3e=E((Uxr,a3e)=>{var{Writable:t7t,Readable:r7t,getStreamError:s3e}=GX(),n7t=NX(),i3e=GC(),jC=VX(),s7t=i3e.alloc(0),JX=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new n7t,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 s7t;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 i3e.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)}},zX=class extends r7t{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(s3e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=o3e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e(null)}},jX=class extends t7t{constru
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function qce(t,e){if(process.env.GITHUB_OUTPUT||"")return mI("OUTPUT",V1(t,e));process.stdout.write(vO.EOL),Ta("set-output",{name:t},Bc(e))}function $l(t){process.exitCode=kO.Failure,Pi(t)}function Ha(){return process.env.RUNNER_DEBUG==="1"}function H(t){Ta("debug",{},t)}function Pi(t,e={}){Ta("error",G1(e),t instanceof Error?t.toString():t)}function Ve(t,e={}){Ta("warning",G1(e),t instanceof Error?t.toString():t)}function Yce(t,e={}){Ta("notice",G1(e),t instanceof Error?t.toString():t)}function $(t){process.stdout.write(t+vO.EOL)}function SKe(t){ZM("group",t)}function NKe(){ZM("endgroup")}function KN(t,e){return wKe(this,void 0,void 0,function*(){SKe(t);let r;try{r=yield e()}finally{NKe()}return r})}function Qu(t,e){if(process.env.GITHUB_STATE||"")return mI("STATE",V1(t,e));Ta("save-state",{name:t},Bc(e))}function _m(t){return process.env[`STATE_${t}`]||""}import*as Qz from"fs";import*as wz from"path";import*as B_ from"os";import{readFileSync as TKe,existsSync as xKe}from"fs";import{EOL as RKe}from"os";var Fm=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(xKe(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(TKe(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${RKe}`)}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 UO=Ae(jce(),1),Kce=Ae(HN(),1),qKe=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 $ce(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 Xce(t){return new UO.HttpClient().getAgent(t)}function YKe(t){return new UO.HttpClient().getAgentDispatcher(t)}function Zce(t){let e=YKe(t);return(n,s)=>qKe(this,void 0,void 0,function*(){return(0,Kce.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function eAe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function PO(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 nT(){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 sT(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)=>sT.bind(null,t,i,s,n),r)():Promise.resolve().then(()=>t.registry[e]?t.registry[e].reduce((s,i)=>i.hook.bind(null,s,n),r)():r(n))}function tAe(t,e,r,n){let s=n;t.registry[r]||(t.registry[r]=[]),e==="before"&&(n=(i,o)=>Promise.resolve().then(s.bind(null,o)).then(i.bind(null,o))),e==="after"&&(n=(i,o)=>{let a;return Promise.resolve().then(i.bind(null,o)).then(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 rAe(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 nAe=Function.bind,sAe=nAe.bind(nAe);function iAe(t,e,r){let n=sAe(rAe,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]=sAe(tAe,null).
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var XKe=class extends Error{constructor(t,e,r){super($Ke(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},ZKe=["method","baseUrl","url","headers","request","query","mediaType","operationName"],e$e=["query","method","url"],cAe=/\/api\/v3\/?$/;function t$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(e$e.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)=>ZKe.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 cAe.test(i)&&(s.url=i.replace(cAe,"/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 XKe(s,a,o.data)}return o.data.data})}function UO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>t$e(r,s,i),{defaults:UO.bind(null,r),endpoint:r.endpoint})}var Nzt=UO(AAe.request,{headers:{"user-agent":`octokit-graphql.js/${KKe} ${KN()}`},method:"POST",url:"/graphql"});function uAe(t){return UO(t,{method:"POST",url:"/graphql"})}var PO="(?:[a-zA-Z0-9_-]+)",lAe="\\.",dAe=new RegExp(`^${PO}${lAe}${PO}${lAe}${PO}$`),r$e=dAe.test.bind(dAe);async function n$e(t){let e=r$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 s$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function i$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=s$e(t),e(s)}var hAe=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(n$e.bind(null,e),{hook:i$e.bind(null,e)})};var OO="7.0.6";var fAe=()=>{},o$e=console.warn.bind(console),a$e=console.error.bind(console);function c$e(t={}){return typeof t.debug!="function"&&(t.debug=fAe),typeof t.info!="function"&&(t.info=fAe),typeof t.warn!="function"&&(t.warn=o$e),typeof t.error!="function"&&(t.error=a$e),t}var gAe=`octokit-core.js/${OO} ${KN()}`,eT=class{static VERSION=OO;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 Lce.Collection,n={baseUrl:HO.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${gAe}`:gAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HO.request.defaults(n),this.graphql=uAe(this.request).defaults(n),this.log=c$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=hAe(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 GO="17.0.0";var A$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/{secr
Line truncated
|
||||
`)}var G$e=class extends Error{constructor(t,e,r){super(H$e(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},q$e=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Y$e=["query","method","url"],DAe=/\/api\/v3\/?$/;function V$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(Y$e.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)=>q$e.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 DAe.test(i)&&(s.url=i.replace(DAe,"/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 G$e(s,a,o.data)}return o.data.data})}function ZO(t,e){let r=t.defaults(e);return Object.assign((s,i)=>V$e(r,s,i),{defaults:ZO.bind(null,r),endpoint:r.endpoint})}var kjt=ZO(kAe.request,{headers:{"user-agent":`octokit-graphql.js/${O$e} ${nT()}`},method:"POST",url:"/graphql"});function vAe(t){return ZO(t,{method:"POST",url:"/graphql"})}var e3="(?:[a-zA-Z0-9_-]+)",_Ae="\\.",FAe=new RegExp(`^${e3}${_Ae}${e3}${_Ae}${e3}$`),W$e=FAe.test.bind(FAe);async function J$e(t){let e=W$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 z$e(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function j$e(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=z$e(t),e(s)}var MAe=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(J$e.bind(null,e),{hook:j$e.bind(null,e)})};var t3="7.0.6";var LAe=()=>{},K$e=console.warn.bind(console),$$e=console.error.bind(console);function X$e(t={}){return typeof t.debug!="function"&&(t.debug=LAe),typeof t.info!="function"&&(t.info=LAe),typeof t.warn!="function"&&(t.warn=K$e),typeof t.error!="function"&&(t.error=$$e),t}var UAe=`octokit-core.js/${t3} ${nT()}`,aT=class{static VERSION=t3;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 oAe.Collection,n={baseUrl:r3.request.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${UAe}`:UAe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=r3.request.defaults(n),this.graphql=vAe(this.request).defaults(n),this.log=X$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=MAe(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 n3="17.0.0";var Z$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/{secr
Line truncated
|
||||
`),e=e.replace(/\r/g,`
|
||||
`));let s=e.split(`
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new by(i));return n.searchPaths.push(...KO(n.patterns)),n})}static stat(e,r,n){return t3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Um.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){P(`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 Um.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Um.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){P(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var $$e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function XAe(t,e){return $$e(this,void 0,void 0,function*(){return yield oT.create(t,e)})}var Yle=Ae(Ry(),1);import*as BT from"crypto";import*as Gm from"fs";import*as pf from"path";import*as Vle from"util";var Dy;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Dy||(Dy={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Oi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Oi||(Oi={}));var IT=2,yT=5e3,B3=5e3,b3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,qle=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,ky="cache.tar",Q3="manifest.txt",hKt=10*Math.pow(1024,3);var Hm=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())})},att=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)}},ctt="1.0";function vy(){return Hm(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=pf.join(n,"actions","temp")}let r=pf.join(e,BT.randomUUID());return yield cf(r),r})}function Mc(t){return Gm.statSync(t).size}function w3(t){return Hm(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 XAe(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=att(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=pf.relative(a,s).replace(new RegExp(`\\${pf.sep}`,"g"),"/");P(`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 _y(t){return Hm(this,void 0,void 0,function*(){return Vle.promisify(Gm.unlink)(t)})}function Wle(t){return Hm(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),P(`Checking ${e} ${r.join(" ")}`);try{yield Pa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){P(s.message)}return n=n.trim(),P(n),n})}function Fy(){return Hm(this,void 0,void 0,function*(){let t=yield Wle("zstd",["--quiet"]),e=Yle.clean(t);return P(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function td(t){return t===Rs.Gzip?Dy.Gzip:Dy.Zstd}function Jle(){return Hm(this,void 0,void 0,function*(){return Gm.existsSync(b3)?b3:(yield Wle("tar")).toLowerCase().includes("gnu tar")?Li("tar"):""})}function S3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function qm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(ctt),BT.createHash("sha256").update(n.join("|")).digest("hex")}function zle(){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 m0 from"fs";import{URL as Lct}from"url";var Lc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Att}from"node:os";import utt from"node:util";import ltt from"node:process";function jle(t,...e){ltt.stderr.write(`${utt.format(t,...e)}${Att}`)}import My from"node:process";function QT(t){return My.env[t]}var Kle=typeof My.versions.deno=="string"&&My.versions.deno.length>0,$le=typeof My.versions.bun=="string"&&My.versions.bun.length>0,wT=!0;var Xle=QT("DEBUG"),ede,N3=[],T3=[],ST=[];Xle&&x3(Xle);var tde=Object.assign(t=>rde(t),{enable:x3,enabled:R3,disable:dtt,log:jle});function x3(t){ede=t,N3=[],T3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?T3.push(r.substring(1)):N3.push(r);for(let r of ST)r.enabled=R3(r.namespace)}function R3(t){if(t.endsWith("*"))return!0;for(let e of T3)if(Zle(t,e))return!1;for(let e of N3)if(Zle(t,e))return!0;return!1}function Zle(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 dtt(){let t=ede||"";return x3(""),t}function rde(t){let e=Object.assign(r,{enabled:R3(t),destroy:htt,log:tde.log,namespace:t,extend:ftt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return ST.push(e),e}function htt(){let t=ST.indexOf(this);return t>=0?(ST.splice(t,1),!0):!1}function ftt(t){let e=rde(`${this.namespace}:${t}`);return e.log=this.log,e}var Ym=tde;var D3=["verbose","info","warning","error"],nde={verbose:400,info:300,warning:200,error:100};function sde(t,e){e.log=(...r)=>{t.log(...r)}}function ide(t){return D3.includes(t)}function gtt(t){let e=new Set,r=QT(t.logLevelEnvVarName),n,s=Ym(t.namespace);s.log=(...u)=>{Ym.log(...u)};function i(u){if(u&&!ide(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${D3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Ym.enable(l.join(","))}r&&(ide(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${D3.join(", ")}.`));function o(u){return!!(n&&nde[u.level]<=nde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(sde(u,d),o(d)){let h=Ym.disable();Ym.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return sde(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 ode=gtt({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),ptt=ode.logger;function Ly(t){return ode.createClientLogger(t)}function NT(t){return t.toLowerCase()}function mtt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Ett(t){for(let e of t.values())yield[e.name,e.value]}var k3=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(NT(e),{name:e,value:mtt(r)})}get(e){return this._headersMap.get(NT(e))?.value}has(e){return this
Line truncated
|
||||
${Btt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function Vm(t){return t instanceof Ds?!0:Ef(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import M3 from"node:http";import L3 from"node:https";import Ade from"node:zlib";import{Transform as btt}from"node:stream";var si=Ly("ts-http-runtime");var Qtt={};function Uy(t){return t&&typeof t.pipe=="function"}function ude(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 lde(t){return t&&typeof t.byteLength=="number"}var RT=class extends btt{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}},U3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Lc("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 Ya;si.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=Ttt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new RT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Uy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=wtt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Stt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new RT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Ntt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Uy(a)&&(A=ude(a));let u=Promise.resolve();Uy(c)&&(u=ude(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?M3.request(a,c):L3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Lc("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&Uy(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):lde(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?M3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new M3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return L3.globalAgent;let s=e.tlsSettings??Qtt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new L3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function wtt(t){let e=Hi();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 Stt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Ade.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Ade.createInflate();return t.pipe(n),n}return t}function Ntt(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Ttt(t){return t?Buffer.isBuffer(t)?t.length:Uy(t)?null:lde(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function dde(){return new U3}function DT(){return dde()}var P3="logPolicy";function kT(t={}){let e=t.logger??si.info,r=new Ya({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:P3,asy
Line truncated
|
||||
`;return e}function jrt(t){return t instanceof Uint8Array?t.byteLength:Hy(t)?t.size===-1?void 0:t.size:void 0}function Krt(t){let e=0;for(let r of t){let n=jrt(r);if(n===void 0)return;e+=n}return e}async function $rt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
|
||||
`,"utf-8"),ni(zrt(i.headers),"utf-8"),ni(`\r
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new xy(i));return n.searchPaths.push(...l3(n.patterns)),n})}static stat(e,r,n){return p3(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Hm.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 Hm.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Hm.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};var HXe=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 yue(t,e){return HXe(this,void 0,void 0,function*(){return yield hT.create(t,e)})}var hde=Ae(My(),1);import*as xT from"crypto";import*as Vm from"fs";import*as Ef from"path";import*as fde from"util";var Ly;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(Ly||(Ly={}));var Rs;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Rs||(Rs={}));var Hi;(function(t){t.GNU="gnu",t.BSD="bsd"})(Hi||(Hi={}));var NT=2,TT=5e3,L3=5e3,U3=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,dde=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,Uy="cache.tar",P3="manifest.txt",E$t=10*Math.pow(1024,3);var Ym=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())})},$tt=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)}},Xtt="1.0";function Py(){return Ym(this,void 0,void 0,function*(){let t=process.platform==="win32",e=process.env.RUNNER_TEMP||"";if(!e){let n;t?n=process.env.USERPROFILE||"C:\\":process.platform==="darwin"?n="/Users":n="/home",e=Ef.join(n,"actions","temp")}let r=Ef.join(e,xT.randomUUID());return yield uf(r),r})}function Lc(t){return Vm.statSync(t).size}function O3(t){return Ym(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 yue(t.join(`
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=$tt(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Ef.relative(a,s).replace(new RegExp(`\\${Ef.sep}`,"g"),"/");H(`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 Ym(this,void 0,void 0,function*(){return fde.promisify(Vm.unlink)(t)})}function gde(t){return Ym(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),H(`Checking ${e} ${r.join(" ")}`);try{yield Oa(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){H(s.message)}return n=n.trim(),H(n),n})}function Hy(){return Ym(this,void 0,void 0,function*(){let t=yield gde("zstd",["--quiet"]),e=hde.clean(t);return H(`zstd version: ${e}`),t===""?Rs.Gzip:Rs.ZstdWithoutLong})}function rd(t){return t===Rs.Gzip?Ly.Gzip:Ly.Zstd}function pde(){return Ym(this,void 0,void 0,function*(){return Vm.existsSync(U3)?U3:(yield gde("tar")).toLowerCase().includes("gnu tar")?Ui("tar"):""})}function H3(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Wm(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Xtt),xT.createHash("sha256").update(n.join("|")).digest("hex")}function mde(){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 b0 from"fs";import{URL as GAt}from"url";var Uc=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Ztt}from"node:os";import ert from"node:util";import trt from"node:process";function Ede(t,...e){trt.stderr.write(`${ert.format(t,...e)}${Ztt}`)}import Gy from"node:process";function DT(t){return Gy.env[t]}var Cde=typeof Gy.versions.deno=="string"&&Gy.versions.deno.length>0,Ide=typeof Gy.versions.bun=="string"&&Gy.versions.bun.length>0,kT=!0;var yde=DT("DEBUG"),bde,G3=[],q3=[],vT=[];yde&&Y3(yde);var Qde=Object.assign(t=>wde(t),{enable:Y3,enabled:V3,disable:rrt,log:Ede});function Y3(t){bde=t,G3=[],q3=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?q3.push(r.substring(1)):G3.push(r);for(let r of vT)r.enabled=V3(r.namespace)}function V3(t){if(t.endsWith("*"))return!0;for(let e of q3)if(Bde(t,e))return!1;for(let e of G3)if(Bde(t,e))return!0;return!1}function Bde(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 rrt(){let t=bde||"";return Y3(""),t}function wde(t){let e=Object.assign(r,{enabled:V3(t),destroy:nrt,log:Qde.log,namespace:t,extend:srt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return vT.push(e),e}function nrt(){let t=vT.indexOf(this);return t>=0?(vT.splice(t,1),!0):!1}function srt(t){let e=wde(`${this.namespace}:${t}`);return e.log=this.log,e}var Jm=Qde;var W3=["verbose","info","warning","error"],Sde={verbose:400,info:300,warning:200,error:100};function Nde(t,e){e.log=(...r)=>{t.log(...r)}}function Tde(t){return W3.includes(t)}function irt(t){let e=new Set,r=DT(t.logLevelEnvVarName),n,s=Jm(t.namespace);s.log=(...u)=>{Jm.log(...u)};function i(u){if(u&&!Tde(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${W3.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Jm.enable(l.join(","))}r&&(Tde(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${W3.join(", ")}.`));function o(u){return!!(n&&Sde[u.level]<=Sde[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Nde(u,d),o(d)){let h=Jm.disable();Jm.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Nde(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 xde=irt({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),ort=xde.logger;function qy(t){return xde.createClientLogger(t)}function _T(t){return t.toLowerCase()}function art(t){return String(t).trim().replace(/[\r\n]/g,"")}function*crt(t){for(let e of t.values())yield[e.name,e.value]}var J3=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(_T(e),{name:e,value:art(r)})}get(e){return this._headersMap.get(_T(e))?.value}has(e){return this
Line truncated
|
||||
${drt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function zm(t){return t instanceof Ds?!0:If(t)&&t.name==="RestError"}function ni(t,e){return Buffer.from(t,e)}import $3 from"node:http";import X3 from"node:https";import kde from"node:zlib";import{Transform as hrt}from"node:stream";var si=qy("ts-http-runtime");var frt={};function Yy(t){return t&&typeof t.pipe=="function"}function vde(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 _de(t){return t&&typeof t.byteLength=="number"}var LT=class extends hrt{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}},Z3=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new Uc("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 Va;si.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=Ert(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,p=new LT(f);p.on("error",I=>{si.error("Error in upload progress",I)}),Yy(a)?a.pipe(p):p.end(a),a=p}let A=await this.makeRequest(e,r,a);s!==void 0&&clearTimeout(s);let u=grt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?prt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new LT(h);f.on("error",p=>{si.error("Error in download progress",p)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await mrt(c),d}finally{if(e.abortSignal&&n){let A=Promise.resolve();Yy(a)&&(A=vde(a));let u=Promise.resolve();Yy(c)&&(u=vde(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{si.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?$3.request(a,c):X3.request(a,c);u.once("error",l=>{A(new Ds(l.message,{code:l.code??Ds.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new Uc("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):_de(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(si.error("Unrecognized body type",n),A(new Ds("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?$3.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new $3.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return X3.globalAgent;let s=e.tlsSettings??frt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(si.info("No cached TLS Agent exist, creating a new Agent"),i=new X3.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function grt(t){let e=Gi();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 prt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=kde.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=kde.createInflate();return t.pipe(n),n}return t}function mrt(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 Ds(`Error reading response as text: ${s.message}`,{code:Ds.PARSE_ERROR}))})})}function Ert(t){return t?Buffer.isBuffer(t)?t.length:Yy(t)?null:_de(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Fde(){return new Z3}function UT(){return Fde()}var e8="logPolicy";function PT(t={}){let e=t.logger??si.info,r=new Va({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additionalAllowedQueryParameters});return{name:e8,asy
Line truncated
|
||||
`;return e}function Pnt(t){return t instanceof Uint8Array?t.byteLength:Jy(t)?t.size===-1?void 0:t.size:void 0}function Ont(t){let e=0;for(let r of t){let n=Pnt(r);if(n===void 0)return;e+=n}return e}async function Hnt(t,e,r){let n=[ni(`--${r}`,"utf-8"),...e.flatMap(i=>[ni(`\r
|
||||
`,"utf-8"),ni(Unt(i.headers),"utf-8"),ni(`\r
|
||||
`,"utf-8"),i.body,ni(`\r
|
||||
--${r}`,"utf-8")]),ni(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=Krt(n);s&&t.headers.set("Content-Length",s),t.body=await she(n)}var Gy="multipartPolicy",Xrt=70,Zrt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function ent(t){if(t.length>Xrt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Zrt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ex(){return{name:Gy,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?ent(r):r=Jrt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await $rt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function tx(){return xT()}import{EOL as rnt}from"node:os";import nnt from"node:util";import*as ihe from"node:process";function ohe(t,...e){ihe.stderr.write(`${nnt.format(t,...e)}${rnt}`)}var ahe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,che,n8=[],s8=[],rx=[];ahe&&i8(ahe);var Ahe=Object.assign(t=>uhe(t),{enable:i8,enabled:o8,disable:snt,log:ohe});function i8(t){che=t,n8=[],s8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?s8.push(new RegExp(`^${n.substr(1)}$`)):n8.push(new RegExp(`^${n}$`));for(let n of rx)n.enabled=o8(n.namespace)}function o8(t){if(t.endsWith("*"))return!0;for(let e of s8)if(e.test(t))return!1;for(let e of n8)if(e.test(t))return!0;return!1}function snt(){let t=che||"";return i8(""),t}function uhe(t){let e=Object.assign(r,{enabled:o8(t),destroy:int,log:Ahe.log,namespace:t,extend:ont});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return rx.push(e),e}function int(){let t=rx.indexOf(this);return t>=0?(rx.splice(t,1),!0):!1}function ont(t){let e=uhe(`${this.namespace}:${t}`);return e.log=this.log,e}var $m=Ahe;var dhe=new Set,nx=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,a8,c8=$m("azure");c8.log=(...t)=>{$m.log(...t)};var A8=["verbose","info","warning","error"];nx&&(ghe(nx)?ant(nx):console.error(`AZURE_LOG_LEVEL set to unknown log level '${nx}'; logging is not enabled. Acceptable values: ${A8.join(", ")}.`));function ant(t){if(t&&!ghe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${A8.join(",")}`);a8=t;let e=[];for(let r of dhe)fhe(r)&&e.push(r.namespace);$m.enable(e.join(","))}var lhe={verbose:400,info:300,warning:200,error:100};function Fo(t){let e=c8.extend(t);return hhe(c8,e),{error:sx(e,"error"),warning:sx(e,"warning"),info:sx(e,"info"),verbose:sx(e,"verbose")}}function hhe(t,e){e.log=(...r)=>{t.log(...r)}}function sx(t,e){let r=Object.assign(t.extend(e),{level:e});if(hhe(t,r),fhe(r)){let n=$m.disable();$m.enable(n+","+r.namespace)}return dhe.add(r),r}function fhe(t){return!!(a8&&lhe[t.level]<=lhe[a8])}function ghe(t){return A8.includes(t)}var Pc=Fo("core-rest-pipeline");function u8(t={}){return kT({logger:Pc.info,...t})}var l8=XT;function d8(t={}){return ZT(t)}import h8 from"node:os";import sd from"node:process";function phe(){return"User-Agent"}async function mhe(t){if(sd&&sd.versions){let e=`${h8.type()} ${h8.release()}; ${h8.arch()}`;sd.versions.bun?t.set("Bun",`${sd.versions.bun} (${e})`):sd.versions.deno?t.set("Deno",`${sd.versions.deno} (${e})`):sd.versions.node&&t.set("Node",`${sd.versions.node} (${e})`)}}var ix="1.24.0";function fnt(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Ehe(){return phe()}async function ox(t){let e=new Map;e.set("core-rest-pipeline",ix),await mhe(e);let r=fnt(e);return t?`${t} ${r}`:r}var Che=Ehe(),Ihe="userAgentPolicy";function f8(t={}){let e=ox(t.userAgentPrefix);return{name:Ihe,async sendRequest(r,n){return r.headers.has(Che)||r.headers.set(Che,await e),n(r)}}}var yhe=Symbol("rawContent");function g8(t){return typeof t[yhe]=="function"}function Bhe(t){return g8(t)?t[yhe]():t}var ax=Gy;function p8(){let t=ex();return{name:ax,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)g8(n.body)&&(n.body=Bhe(n.body));return t.sendRequest(e,r)}}}var m8=KT;function E8(){return $T()}function C8(t={}){return FT(t)}function I8(){return MT()}var qy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function y8(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new qy(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
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--),!Jst(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=Gst(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=cfe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=cfe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=afe(t,i);continue}else if(t[i+1]==="?"){if(i=ofe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Vst(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!ife(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(ife(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function ife(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function ofe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function afe(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 Ost='"',Hst="'";function Gst(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Ost||t[e]===Hst)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 qst=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function cfe(t,e){let r=Ex(t,qst),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",tB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",tB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",tB(r[s]));let i=r[s][2];if(!Wst(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",tB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",tB(r[s]))}return!0}function Yst(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 Vst(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Yst(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Wst(t){return n0(t)}function Jst(t){return n0(t)}function ks(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function tB(t){return t.startIndex+t[1].length}var Afe=t=>eB.includes(t)?"__"+t:t,zst={preserveOrder:!1,attributeNamePrefix:"@_",attributesGroupName:!1,textNodeName:"#text",ignoreAttributes:!0,removeNSPrefix:!1,allowBooleanAttributes:!1,parseTagValue:!0,parseAttributeValue:!1,trimValues:!0,cdataPropName:!1,numberParseOptions:{hex:!0,leadingZeros:!0,eNotation:!0},tagValueProcessor:function(t,e){return e},attributeValueProcessor:function(t,e){return e},stopNodes:[],alwaysCreateTextNode:!1,isArray:()=>!1,commentPropName:!1,unpairedTags:[],processEntities:!0,htmlEntities:!1,ignoreDeclaration:!1,ignorePiTags:!1,transformTagName:!1,transformAttributeName:!1,updateTag:function(t,e,r){return t},captureMetaData:!1,maxNestedTags:100,strictReservedNames:!0,jPath:!0,onDangerousProperty:Afe};function jst(t,e){if(typeof t!="string")return;let r=t.toLowerCase();if(eB.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`);if(Cx.some(n=>r===n.toLowerCase()))throw new Error(`[SECURITY] Invalid ${e}: "${t}" is a reserved JavaScript keyword that could cause prototype pollution`)}function ufe(t){return typeof t=="boolean"?{enabled:t,maxEntitySize:1e4,maxExpansionDepth:10,maxTotalExpansions:1e3,maxExpandedLength:1e5,maxEntityCount:100,allowedTags:null,tagFilter:null}:typeof t=="object"&&t!==null?{enabled:t.enabled!==!1,maxEntitySize:Math.max(1,t.maxEntitySize??1e4),maxExpansionDepth:Math.max(1,t.maxExpansionDepth??10),maxTotalExpansions:Math.max(1,t.maxTotalExpansions??1e3),maxExpandedLength:Math.max(1,t.maxExpandedLength??1e5),maxEntityCount:Math.max(1,t.maxEntityCount??100),allowedTags:t.allowedTags??null,tagFilter:t.tagFilter??null}:ufe(!0)}var lfe=function(t){let e=Object.assign({},zst,t),r=[{value:e.attributeNamePrefix,name:"attributeNamePrefix"},{value:e.attributesGroupName,name:"attributesGroupName"},{value:e.textNodeName,name:"textNodeName"},{value:e.cdataPropName,name:"cdataPropName"},{value:e.commentPropName,name:"commentPropName"}];for(let{value:n,name:s}of r)n&&jst(n,s);return e.onDangerousProperty===null&&(e.onDangerousProperty=Afe),e.processEntities=ufe(e.processEntities),e.stopNodes&&Array.isArray(e.stopNodes)&&(e.stopNodes=e.stopNodes.map(n=>typeof n=="string"&&n.startsWith("*.")?".."+n.substring(2):n)),e};var yx;typeof Symbol!="function"?yx="@@xmlMetadata":yx=Symbol("XML Node Metadata");var ai=class{constructor(e){this.tagname=e,this.child=[],this[":@"]=Object.create(null)}add(e,r){e==="__proto__"&&(e="#__proto__"),this.child.push({[e]:r})}addChild(e,r){e.tagname==="__proto__"&&(e.tagname="#__proto__"),e[":@"]&&ObjLine truncated
|
||||
`);let e=new ai("!xml"),r=e,n="";this.matcher.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0;let s=new nB(this.options.processEntities);for(let i=0;i<t.length;i++)if(t[i]==="<")if(t[i+1]==="/"){let a=wf(t,">",i,"Closing Tag is not closed."),c=t.substring(i+2,a).trim();if(this.options.removeNSPrefix){let u=c.indexOf(":");u!==-1&&(c=c.substr(u+1))}c=J8(this.options.transformTagName,c,"",this.options).tagName,r&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher));let A=this.matcher.getCurrentTag();if(c&&this.options.unpairedTags.indexOf(c)!==-1)throw new Error(`Unpaired tag can not be used as closing tag: </${c}>`);A&&this.options.unpairedTags.indexOf(A)!==-1&&(this.matcher.pop(),this.tagsNodeStack.pop()),this.matcher.pop(),this.isCurrentNodeStopNode=!1,r=this.tagsNodeStack.pop(),n="",i=a}else if(t[i+1]==="?"){let a=z8(t,i,!1,"?>");if(!a)throw new Error("Pi Tag is not closed.");if(n=this.saveTextToParentTag(n,r,this.readonlyMatcher),!(this.options.ignoreDeclaration&&a.tagName==="?xml"||this.options.ignorePiTags)){let c=new ai(a.tagName);c.add(this.options.textNodeName,""),a.tagName!==a.tagExp&&a.attrExpPresent&&(c[":@"]=this.buildAttributesMap(a.tagExp,this.matcher,a.tagName)),this.addChild(r,c,this.readonlyMatcher,i)}i=a.closeIndex+1}else if(t.substr(i+1,3)==="!--"){let a=wf(t,"-->",i+4,"Comment is not closed.");if(this.options.commentPropName){let c=t.substring(i+4,a-2);n=this.saveTextToParentTag(n,r,this.readonlyMatcher),r.add(this.options.commentPropName,[{[this.options.textNodeName]:c}])}i=a}else if(t.substr(i+1,2)==="!D"){let a=s.readDocType(t,i);this.docTypeEntities=a.entities,i=a.i}else if(t.substr(i+1,2)==="!["){let a=wf(t,"]]>",i,"CDATA is not closed.")-2,c=t.substring(i+9,a);n=this.saveTextToParentTag(n,r,this.readonlyMatcher);let A=this.parseTextData(c,r.tagname,this.readonlyMatcher,!0,!1,!0,!0);A==null&&(A=""),this.options.cdataPropName?r.add(this.options.cdataPropName,[{[this.options.textNodeName]:c}]):r.add(this.options.textNodeName,A),i=a+2}else{let a=z8(t,i,this.options.removeNSPrefix);if(!a){let y=t.substring(Math.max(0,i-50),Math.min(t.length,i+50));throw new Error(`readTagExp returned undefined at position ${i}. Context: "${y}"`)}let c=a.tagName,A=a.rawTagName,u=a.tagExp,l=a.attrExpPresent,d=a.closeIndex;if({tagName:c,tagExp:u}=J8(this.options.transformTagName,c,u,this.options),this.options.strictReservedNames&&(c===this.options.commentPropName||c===this.options.cdataPropName||c===this.options.textNodeName||c===this.options.attributesGroupName))throw new Error(`Invalid tag name: ${c}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let h=r;h&&this.options.unpairedTags.indexOf(h.tagname)!==-1&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let f=!1;u.length>0&&u.lastIndexOf("/")===u.length-1&&(f=!0,c[c.length-1]==="/"?(c=c.substr(0,c.length-1),u=c):u=u.substr(0,u.length-1),l=c!==u);let p=null,I={},m;m=oit(A),c!==e.tagname&&this.matcher.push(c,{},m),c!==u&&l&&(p=this.buildAttributesMap(u,this.matcher,c),p&&(I=iit(p,this.options))),c!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode(this.stopNodeExpressions,this.matcher));let C=i;if(this.isCurrentNodeStopNode){let y="";if(f)i=a.closeIndex;else if(this.options.unpairedTags.indexOf(c)!==-1)i=a.closeIndex;else{let M=this.readStopNodeData(t,A,d+1);if(!M)throw new Error(`Unexpected end of ${A}`);i=M.i,y=M.tagContent}let N=new ai(c);p&&(N[":@"]=p),N.add(this.options.textNodeName,y),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,N,this.readonlyMatcher,C)}else{if(f){({tagName:c,tagExp:u}=J8(this.options.transformTagName,c,u,this.options));let y=new ai(c);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(this.options.unpairedTags.indexOf(c)!==-1){let y=new ai(c);p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),this.matcher.pop(),this.isCurrentNodeStopNode=!1,i=a.closeIndex;continue}else{let y=new ai(c);if(this.tagsNodeStack.length>this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),p&&(y[":@"]=p),this.addChild(r,y,this.readonlyMatcher,C),r=y}n="",i=d}}else n+=t[i];return e.child};function hit(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 fit(t,e,r){let n=this.options.processEntities;if(!n||!n.enabled)return t;if(n.allowedTags){let s=this.options.jPath?r.toString():r;if(!(Array.isArray(n.allowedTags)?n.allowedTags.includes(e):n.allowedTags(e,s)))return t}if(n.tagFilter){let s=this.options.jPath?r.toString():r;if(!n.tagFilter(e,s))return t}for(let s of Object.keys(this.docTypeEntities)){let i=this.docTypeEntities[s],o=t.match(i.regx);if(o){if(this.entityExpansionCount+=o.length,n.maxTotalExpansions&&this.entityExpansionCount>n.maxTotalExpansions)throw new Error(`Entity expansion limit exceeded
Line truncated
|
||||
`;function Z8(t,e){let r="";e.format&&e.indentBy.length>0&&(r=bit);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let i=0;i<e.stopNodes.length;i++){let o=e.stopNodes[i];typeof o=="string"?n.push(new Vi(o)):o instanceof Vi&&n.push(o)}let s=new Gc;return pfe(t,e,r,s,n)}function pfe(t,e,r,n,s){let i="",o=!1;if(e.maxNestedTags&&n.getDepth()>e.maxNestedTags)throw new Error("Maximum nested tags exceeded");if(!Array.isArray(t)){if(t!=null){let a=t.toString();return a=X8(a,e),a}return""}for(let a=0;a<t.length;a++){let c=t[a],A=Efe(c);if(A===void 0)continue;let u=Qit(c[":@"],e);n.push(A,u);let l=Sit(n,s);if(A===e.textNodeName){let I=c[A];l||(I=e.tagValueProcessor(A,I),I=X8(I,e)),o&&(i+=r),i+=I,o=!1,n.pop();continue}else if(A===e.cdataPropName){o&&(i+=r),i+=`<![CDATA[${c[A][0][e.textNodeName]}]]>`,o=!1,n.pop();continue}else if(A===e.commentPropName){i+=r+`<!--${c[A][0][e.textNodeName]}-->`,o=!0,n.pop();continue}else if(A[0]==="?"){let I=gfe(c[":@"],e,l),m=A==="?xml"?"":r,C=c[A][0][e.textNodeName];C=C.length!==0?" "+C:"",i+=m+`<${A}${C}${I}?>`,o=!0,n.pop();continue}let d=r;d!==""&&(d+=e.indentBy);let h=gfe(c[":@"],e,l),f=r+`<${A}${h}`,p;l?p=mfe(c[A],e):p=pfe(c[A],e,d,n,s),e.unpairedTags.indexOf(A)!==-1?e.suppressUnpairedNode?i+=f+">":i+=f+"/>":(!p||p.length===0)&&e.suppressEmptyNode?i+=f+"/>":p&&p.endsWith(">")?i+=f+`>${p}${r}</${A}>`:(i+=f+">",p&&r!==""&&(p.includes("/>")||p.includes("</"))?i+=r+e.indentBy+p+r:i+=p,i+=`</${A}>`),o=!0,n.pop()}return i}function Qit(t,e){if(!t||e.ignoreAttributes)return null;let r={},n=!1;for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i=s.startsWith(e.attributeNamePrefix)?s.substr(e.attributeNamePrefix.length):s;r[i]=t[s],n=!0}return n?r:null}function mfe(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=Efe(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=wit(s[":@"],e),a=mfe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function wit(t,e){let r="";if(t&&!e.ignoreAttributes)for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=t[n];s===!0&&e.suppressBooleanAttributes?r+=` ${n.substr(e.attributeNamePrefix.length)}`:r+=` ${n.substr(e.attributeNamePrefix.length)}="${s}"`}return r}function Efe(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 gfe(t,e,r){let n="";if(t&&!e.ignoreAttributes)for(let s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let i;r?i=t[s]:(i=e.attributeValueProcessor(s,t[s]),i=X8(i,e)),i===!0&&e.suppressBooleanAttributes?n+=` ${s.substr(e.attributeNamePrefix.length)}`:n+=` ${s.substr(e.attributeNamePrefix.length)}="${i}"`}return n}function Sit(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 X8(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 e4(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 Nit={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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0};function Ai(t){if(this.options=Object.assign({},Nit,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 Vi(r)):r instanceof Vi&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:(this.ignoreAttributesFn=e4(this.options.ignoreAttributes),this.attrPrefixLen=this.options.attributeNamePrefix.length,this.isAttribute=Rit),this.processTextOrObjNode=Tit,this.options.format?(this.indentate=xit,this.tagEndChar=`>
|
||||
`,"utf-8")],s=Ont(n);s&&t.headers.set("Content-Length",s),t.body=await Nhe(n)}var zy="multipartPolicy",Gnt=70,qnt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Ynt(t){if(t.length>Gnt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!qnt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ax(){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?Ynt(r):r=Lnt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Hnt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}function cx(){return MT()}import{EOL as Wnt}from"node:os";import Jnt from"node:util";import*as The from"node:process";function xhe(t,...e){The.stderr.write(`${Jnt.format(t,...e)}${Wnt}`)}var Rhe=typeof process<"u"&&process.env&&process.env.DEBUG||void 0,Dhe,E8=[],C8=[],Ax=[];Rhe&&I8(Rhe);var khe=Object.assign(t=>vhe(t),{enable:I8,enabled:y8,disable:znt,log:xhe});function I8(t){Dhe=t,E8=[],C8=[];let e=/\*/g,r=t.split(",").map(n=>n.trim().replace(e,".*?"));for(let n of r)n.startsWith("-")?C8.push(new RegExp(`^${n.substr(1)}$`)):E8.push(new RegExp(`^${n}$`));for(let n of Ax)n.enabled=y8(n.namespace)}function y8(t){if(t.endsWith("*"))return!0;for(let e of C8)if(e.test(t))return!1;for(let e of E8)if(e.test(t))return!0;return!1}function znt(){let t=Dhe||"";return I8(""),t}function vhe(t){let e=Object.assign(r,{enabled:y8(t),destroy:jnt,log:khe.log,namespace:t,extend:Knt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return Ax.push(e),e}function jnt(){let t=Ax.indexOf(this);return t>=0?(Ax.splice(t,1),!0):!1}function Knt(t){let e=vhe(`${this.namespace}:${t}`);return e.log=this.log,e}var e0=khe;var Fhe=new Set,ux=typeof process<"u"&&process.env&&process.env.AZURE_LOG_LEVEL||void 0,B8,b8=e0("azure");b8.log=(...t)=>{e0.log(...t)};var Q8=["verbose","info","warning","error"];ux&&(Uhe(ux)?$nt(ux):console.error(`AZURE_LOG_LEVEL set to unknown log level '${ux}'; logging is not enabled. Acceptable values: ${Q8.join(", ")}.`));function $nt(t){if(t&&!Uhe(t))throw new Error(`Unknown log level '${t}'. Acceptable values: ${Q8.join(",")}`);B8=t;let e=[];for(let r of Fhe)Lhe(r)&&e.push(r.namespace);e0.enable(e.join(","))}var _he={verbose:400,info:300,warning:200,error:100};function Mo(t){let e=b8.extend(t);return Mhe(b8,e),{error:lx(e,"error"),warning:lx(e,"warning"),info:lx(e,"info"),verbose:lx(e,"verbose")}}function Mhe(t,e){e.log=(...r)=>{t.log(...r)}}function lx(t,e){let r=Object.assign(t.extend(e),{level:e});if(Mhe(t,r),Lhe(r)){let n=e0.disable();e0.enable(n+","+r.namespace)}return Fhe.add(r),r}function Lhe(t){return!!(B8&&_he[t.level]<=_he[B8])}function Uhe(t){return Q8.includes(t)}var Oc=Mo("core-rest-pipeline");function w8(t={}){return PT({logger:Oc.info,...t})}var S8=ix;function N8(t={}){return ox(t)}import T8 from"node:os";import id from"node:process";function Phe(){return"User-Agent"}async function Ohe(t){if(id&&id.versions){let e=`${T8.type()} ${T8.release()}; ${T8.arch()}`;id.versions.bun?t.set("Bun",`${id.versions.bun} (${e})`):id.versions.deno?t.set("Deno",`${id.versions.deno} (${e})`):id.versions.node&&t.set("Node",`${id.versions.node} (${e})`)}}var dx="1.24.0";function sst(t){let e=[];for(let[r,n]of t){let s=n?`${r}/${n}`:r;e.push(s)}return e.join(" ")}function Hhe(){return Phe()}async function hx(t){let e=new Map;e.set("core-rest-pipeline",dx),await Ohe(e);let r=sst(e);return t?`${t} ${r}`:r}var Ghe=Hhe(),qhe="userAgentPolicy";function x8(t={}){let e=hx(t.userAgentPrefix);return{name:qhe,async sendRequest(r,n){return r.headers.has(Ghe)||r.headers.set(Ghe,await e),n(r)}}}var Yhe=Symbol("rawContent");function R8(t){return typeof t[Yhe]=="function"}function Vhe(t){return R8(t)?t[Yhe]():t}var fx=zy;function D8(){let t=ax();return{name:fx,sendRequest:async(e,r)=>{if(e.multipartBody)for(let n of e.multipartBody.parts)R8(n.body)&&(n.body=Vhe(n.body));return t.sendRequest(e,r)}}}var k8=nx;function v8(){return sx()}function _8(t={}){return GT(t)}function F8(){return qT()}var jy=class extends Error{constructor(e){super(e),this.name="AbortError"}};function M8(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
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--),!Lit(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Zr("InvalidTag",l,ks(t,i))}let A=kit(t,i);if(A===!1)return Zr("InvalidAttr","Attributes for '"+c+"' have open quote.",ks(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=Dfe(u,e);if(d===!0)n=!0;else return Zr(d.err.code,d.err.msg,ks(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Zr("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",ks(t,o));if(r.length===0)return Zr("InvalidTag","Closing tag '"+c+"' has not been opened.",ks(t,o));{let l=r.pop();if(c!==l.tagName){let d=ks(t,l.tagStartPos);return Zr("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",ks(t,o))}r.length==0&&(s=!0)}}else return Zr("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",ks(t,i));else{let l=Dfe(u,e);if(l!==!0)return Zr(l.err.code,l.err.msg,ks(t,i-u.length+l.err.line));if(s===!0)return Zr("InvalidXml","Multiple possible root nodes found.",ks(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=Rfe(t,i);continue}else if(t[i+1]==="?"){if(i=xfe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Fit(t,i);if(l==-1)return Zr("InvalidChar","char '&' is not expected.",ks(t,i));i=l}else if(s===!0&&!Tfe(t[i]))return Zr("InvalidXml","Extra text at the end",ks(t,i));t[i]==="<"&&i--}}else{if(Tfe(t[i]))continue;return Zr("InvalidChar","char '"+t[i]+"' is not expected.",ks(t,i))}if(n){if(r.length==1)return Zr("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",ks(t,r[0].tagStartPos));if(r.length>0)return Zr("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Zr("InvalidXml","Start tag expected.",1);return!0}function Tfe(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function xfe(t,e){let r=e;for(;e<t.length;e++)if(t[e]=="?"||t[e]==" "){let n=t.substr(r,e-r);if(e>5&&n==="xml")return Zr("InvalidXml","XML declaration allowed only at the start of the document.",ks(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function Rfe(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 Rit='"',Dit="'";function kit(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Rit||t[e]===Dit)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 vit=new RegExp(`(\\s*)([^\\s=]+)(\\s*=)?(\\s*(['"])(([\\s\\S])*?)\\5)?`,"g");function Dfe(t,e){let r=wx(t,vit),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",aB(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Zr("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",aB(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Zr("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",aB(r[s]));let i=r[s][2];if(!Mit(i))return Zr("InvalidAttr","Attribute '"+i+"' is an invalid name.",aB(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Zr("InvalidAttr","Attribute '"+i+"' is repeated.",aB(r[s]))}return!0}function _it(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 Fit(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,_it(t,e);let r=0;for(;e<t.length;e++,r++)if(!(t[e].match(/\w/)&&r<20)){if(t[e]===";")break;return-1}return e}function Zr(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Mit(t){return o4(t)}function Lit(t){return o4(t)}function ks(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 kfe={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"},vfe={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"},_fe={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 ci("!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=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=f4(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=g4(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 ci(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=g4(t,a,s.removeNSPrefix);if(!u){let O=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${O}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,p=u.closeIndex;if({tagName:l,tagExp:h}=f4(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 I=r;I&&s.unpairedTagsSet.has(I.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 C=null,y={},N;N=Aot(d),l!==e.tagname&&this.matcher.push(l,{},N),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(y=cot(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let O="";if(m)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let P=this.readStopNodeData(t,d,p+1);if(!P)throw new Error(`Unexpected end of ${d}`);a=P.i,O=P.tagContent}let k=new ci(l);C&&(k[":@"]=C),k.add(s.textNodeName,O),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,k,this.readonlyMatcher,M)}else{if(m){({tagName:l,tagExp:h}=f4(s.transformTagName,l,h,s));let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let O=new ci(l);C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let O=new ci(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(O[":@"]=C),this.addChild(r,O,this.readonlyMatcher,M),r=O}n="",a=p}}}else n+=t[a];return e.child};function got(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 pot(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 mot(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 Eot(){return this.stopNodeExpressionsSet.size===0?!1:this.matcher.matchesAny(this.stopNodeExpressionsSet)}function Cot(t,e,r=">"){Line truncated
|
||||
`;function Not(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(y4(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function oge(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function I4(t,e){let r="";e.format&&(r=Sot);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 Wi(a)):a instanceof Wi&&n.push(a)}let s=Not(t,e),i=new qc;return age(t,e,r,i,n,s)}function age(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=C4(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=y4(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:oge(u,!1,e,n,i),h=Tot(A[":@"],e);n.push(d,h);let f=Rot(n,s);if(d===e.textNodeName){let y=A[u];f||(y=e.tagValueProcessor(d,y),y=C4(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],N=Mx(y);o+=`<![CDATA[${N}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let y=A[u][0][e.textNodeName],N=Fx(y);o+=r+`<!--${N}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let y=ige(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${y}?>`,a=!0,n.pop();continue}let p=r;p!==""&&(p+=e.indentBy);let I=ige(A[":@"],e,f,n,i),m=r+`<${d}${I}`,C;f?C=cge(A[u],e):C=age(A[u],e,p,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=m+">":o+=m+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=m+"/>":C&&C.endsWith(">")?o+=m+`>${C}${r}</${d}>`:(o+=m+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Tot(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]=ud(t[s]),n=!0}return n?r:null}function cge(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=y4(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=xot(s[":@"],e),a=cge(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function xot(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)}="${ud(s)}"`}return r}function y4(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 ige(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:oge(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=C4(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${ud(A)}"`}return i}function Rot(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 C4(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 B4(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 Dot={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:"&"},{regex:new RegExp(">","g"),val:">"},{regex:new RegExp("<","g"),val:"<"},{regex:new RegExp("'","g"),val:"'"},{regex:new RegExp('"',"g"),val:"""}],processEntities:!0,stopNodes:[],oneListGroup:!1,maxNestedTags:100,jPath:!0,sanitizeName:!1};function ui(t){if(this.options=Object.assign({},Dot,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 Wi(r)):r instanceof Wi&&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="")}Ai.prototype.build=function(t){if(this.options.preserveOrder)return Z8(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new Gc;return this.j2x(t,0,e).val}};Ai.prototype.j2x=function(t,e,r){let n="",s="";if(this.options.maxNestedTags&&r.getDepth()>=this.options.maxNestedTags)throw new Error("Maximum nested tags exceeded");let i=this.options.jPath?r.toString():r,o=this.checkStopNode(r);for(let a in t)if(Object.prototype.hasOwnProperty.call(t,a))if(typeof t[a]>"u")this.isAttribute(a)&&(s+="");else if(t[a]===null)this.isAttribute(a)||a===this.options.cdataPropName?s+="":a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(t[a]instanceof Date)s+=this.buildTextValNode(t[a],a,"",e,r);else if(typeof t[a]!="object"){let c=this.isAttribute(a);if(c&&!this.ignoreAttributesFn(c,i))n+=this.buildAttrPairStr(c,""+t[a],o);else if(!c)if(a===this.options.textNodeName){let A=this.options.tagValueProcessor(a,""+t[a]);s+=this.replaceEntitiesValue(A)}else{r.push(a);let A=this.checkStopNode(r);if(r.pop(),A){let u=""+t[a];u===""?s+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:s+=this.indentate(e)+"<"+a+">"+u+"</"+a+this.tagEndChar}else s+=this.buildTextValNode(t[a],a,"",e,r)}}else if(Array.isArray(t[a])){let c=t[a].length,A="",u="";for(let l=0;l<c;l++){let d=t[a][l];if(!(typeof d>"u"))if(d===null)a[0]==="?"?s+=this.indentate(e)+"<"+a+"?"+this.tagEndChar:s+=this.indentate(e)+"<"+a+"/"+this.tagEndChar;else if(typeof d=="object")if(this.options.oneListGroup){r.push(a);let h=this.j2x(d,e+1,r);r.pop(),A+=h.val,this.options.attributesGroupName&&d.hasOwnProperty(this.options.attributesGroupName)&&(u+=h.attrStr)}else A+=this.processTextOrObjNode(d,a,e,r);else if(this.options.oneListGroup){let h=this.options.tagValueProcessor(a,d);h=this.replaceEntitiesValue(h),A+=h}else{r.push(a);let h=this.checkStopNode(r);if(r.pop(),h){let f=""+d;f===""?A+=this.indentate(e)+"<"+a+this.closeTag(a)+this.tagEndChar:A+=this.indentate(e)+"<"+a+">"+f+"</"+a+this.tagEndChar}else A+=this.buildTextValNode(d,a,"",e,r)}}this.options.oneListGroup&&(A=this.buildObjectNode(A,a,u,e)),s+=A}else if(this.options.attributesGroupName&&a===this.options.attributesGroupName){let c=Object.keys(t[a]),A=c.length;for(let u=0;u<A;u++)n+=this.buildAttrPairStr(c[u],""+t[a][c[u]],o)}else s+=this.processTextOrObjNode(t[a],a,e,r);return{attrStr:n,val:s}};Ai.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+e+'"'};function Tit(t,e,r,n){let s=this.extractAttributes(t);if(n.push(e,s),this.checkStopNode(n)){let a=this.buildRawContent(t),c=this.buildAttributesForStopNode(t);return n.pop(),this.buildObjectNode(a,e,c,r)}let o=this.j2x(t,r+1,n);return n.pop(),t[this.options.textNodeName]!==void 0&&Object.keys(t).length===1?this.buildTextValNode(t[this.options.textNodeName],e,o.attrStr,r,n):this.buildObjectNode(o.val,e,o.attrStr,r)}Ai.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=n[s],r=!0}}else for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n))continue;let s=this.isAttribute(n);s&&(e[s]=t[n],r=!0)}return r?e:null};Ai.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isArray(n)){for(let s of n)if(typeof s=="string"||typeof s=="number")e+=`<${r}>${s}</${r}>`;else if(typeof s=="object"&&s!==null){let i=this.buildRawContent(s),o=this.buildAttributesForStopNode(s);i===""?e+=`<${r}${o}/>`:e+=`<${r}${o}>${i}</${r}>`}}else if(typeof n=="object"&&n!==null){let s=this.buildRawContent(n),i=this.buildAttributesForStopNode(n);s===""?e+=`<${r}${i}/>`:e+=`<${r}${i}>${s}</${r}>`}else e+=`<${r}>${n}</${r}>`}return e};Ai.prototype.buildAttributesForStopNode=function(t){if(!t||typeof t!="object")return"";let e="";if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let r=t[this.options.attributesGroupName];for(let n in r){if(!Object.prototype.hasOwnProperty.call(r,n))continue;let s=n.startsWith(this.options.attributeNamePrefix)?n.substring(this.options.attributeNamePrefix.length):
Line truncated
|
||||
`):(this.indentate=function(){return""},this.tagEndChar=">",this.newLine="")}function kot(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 b4(t,e,r,n,s){return!r.sanitizeName||Nf(t,{xmlVersion:s})?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}ui.prototype.build=function(t){if(this.options.preserveOrder)return I4(t,this.options);{Array.isArray(t)&&this.options.arrayNodeName&&this.options.arrayNodeName.length>1&&(t={[this.options.arrayNodeName]:t});let e=new qc,r=kot(t,this.options);return this.j2x(t,0,e,r).val}};ui.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:b4(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=b4(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 p=t[c][f];if(!(typeof p>"u"))if(p===null)u[0]==="?"?i+=this.indentate(e)+"<"+u+"?"+this.tagEndChar:i+=this.indentate(e)+"<"+u+"/"+this.tagEndChar;else if(typeof p=="object")if(this.options.oneListGroup){r.push(u);let I=this.j2x(p,e+1,r,n);r.pop(),d+=I.val,this.options.attributesGroupName&&p.hasOwnProperty(this.options.attributesGroupName)&&(h+=I.attrStr)}else d+=this.processTextOrObjNode(p,u,e,r,n);else if(this.options.oneListGroup){let I=this.options.tagValueProcessor(u,p);I=this.replaceEntitiesValue(I),d+=I}else{r.push(u);let I=this.checkStopNode(r);if(r.pop(),I){let m=""+p;m===""?d+=this.indentate(e)+"<"+u+this.closeTag(u)+this.tagEndChar:d+=this.indentate(e)+"<"+u+">"+m+"</"+u+this.tagEndChar}else d+=this.buildTextValNode(p,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=b4(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}};ui.prototype.buildAttrPairStr=function(t,e,r){return r||(e=this.options.attributeValueProcessor(t,""+e),e=this.replaceEntitiesValue(e)),this.options.suppressBooleanAttributes&&e==="true"?" "+t:" "+t+'="'+ud(e)+'"'};function vot(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)}ui.prototype.extractAttributes=function(t){if(!t||typeof t!="object")return null;let e={},r=!1;if(this.options.attributesGroupName&&t[this.options.attributesGroupName]){let n=t[this.options.attributesGroupName];for(let s in n){if(!Object.prototype.hasOwnProperty.call(n,s))continue;let i=s.startsWith(this.options.attributeNamePrefix)?s.substring(this.options.attributeNamePrefix.length):s;e[i]=ud(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]=ud(t[n]),r=!0)}return r?e:null};ui.prototype.buildRawContent=function(t){if(typeof t=="string")return t;if(typeof t!="object"||t===null)return String(t);if(t[this.options.textNodeName]!==void 0)return t[this.options.textNodeName];let e="";for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||this.isAttribute(r)||this.options.attributesGroupName&&r===this.options.attributesGroupName)continue;let n=t[r];if(r===this.options.textNodeName)e+=n;else if(Array.isA
Line truncated
|
||||
`)+`
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>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=xx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Rx(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 Nf{accountName;accountKey;constructor(e,r){super(),this.accountName=e,this.accountKey=Buffer.from(r,"base64")}create(e,r){return new cB(e,r,this)}computeHMACSHA256(e){return Oit("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Tf=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Fo("storage-common");var Mo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Mo||(Mo={}));var ud={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Mo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Hit=new Tf("The operation was aborted."),AB=class extends qc{retryOptions;constructor(e,r,n=ud){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:ud.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):ud.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:ud.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:ud.maxRetryDelayInMs):ud.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:ud.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:ud.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=Tx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=Ad(s.url,Du.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(En.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(En.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 En.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 En.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 En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(En.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 Mo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Mo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Dx(s,n,Hit)}};var uB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new AB(e,r,this.retryOptions)}};var Git="storageBrowserPolicy";function bfe(){return{name:Git,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=Ad(t.url,Du.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var qit="StorageCorrectContentLengthPolicy";function Qfe(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:qit,async sendRequest(e,r){return t(e),r(e)}}}var Yit="storageRetryPolicy",i0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Mo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Vit=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],Wit=new Tf("The operation was aborted.");function wfe(t={}){let e=t.retryPolicyType??i0.retryPolicyType,r=t.maxTries??i0.maxTries,n=t.retryDelayInMs??i0.retryDelayInMs,s=t.maxRetryDelayInMs??i0.maxRetryDelayInMs,i=t.secondaryHost??i0.secondaryHost,o=t.tryTimeoutInMs??i0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Vit)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in
Line truncated
|
||||
`+this.getCanonicalizedHeadersString(e)+this.getCanonicalizedResourceString(e),n=this.factory.computeHMACSHA256(r);return e.headers.set(je.AUTHORIZATION,`SharedKey ${this.factory.accountName}:${n}`),e}getHeaderValueToSign(e,r){let n=e.headers.get(r);return!n||r===je.CONTENT_LENGTH&&n==="0"?"":n}getCanonicalizedHeadersString(e){let r=e.headers.headersArray().filter(s=>s.name.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE));r.sort((s,i)=>Jx(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=Yx(e.url)||"/",n="";n+=`/${this.factory.accountName}${r}`;let s=Vx(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 Rf{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 Vot("sha256",this.accountKey).update(e,"utf8").digest("base64")}};var Df=class extends Error{constructor(e){super(e),this.name="AbortError"}};var En=Mo("storage-common");var Lo;(function(t){t[t.EXPONENTIAL=0]="EXPONENTIAL",t[t.FIXED=1]="FIXED"})(Lo||(Lo={}));var dd={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Wot=new Df("The operation was aborted."),pB=class extends Yc{retryOptions;constructor(e,r,n=dd){super(e,r),this.retryOptions={retryPolicyType:n.retryPolicyType?n.retryPolicyType:dd.retryPolicyType,maxTries:n.maxTries&&n.maxTries>=1?Math.floor(n.maxTries):dd.maxTries,tryTimeoutInMs:n.tryTimeoutInMs&&n.tryTimeoutInMs>=0?n.tryTimeoutInMs:dd.tryTimeoutInMs,retryDelayInMs:n.retryDelayInMs&&n.retryDelayInMs>=0?Math.min(n.retryDelayInMs,n.maxRetryDelayInMs?n.maxRetryDelayInMs:dd.maxRetryDelayInMs):dd.retryDelayInMs,maxRetryDelayInMs:n.maxRetryDelayInMs&&n.maxRetryDelayInMs>=0?n.maxRetryDelayInMs:dd.maxRetryDelayInMs,secondaryHost:n.secondaryHost?n.secondaryHost:dd.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=qx(s.url,this.retryOptions.secondaryHost)),this.retryOptions.tryTimeoutInMs&&(s.url=ld(s.url,ku.Parameters.TIMEOUT,Math.floor(this.retryOptions.tryTimeoutInMs/1e3).toString()));let o;try{if(En.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(En.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 En.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 En.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 En.info("RetryPolicy: Secondary access with 404, will retry."),!0;if(o===503||o===500)return En.info(`RetryPolicy: Will retry for status code ${o}.`),!0}if(n&&n?.status>=400){let o=n.headers.get(je.X_MS_CopySourceErrorCode);if(o!==void 0)switch(o){case"InternalError":case"OperationTimedOut":case"ServerBusy":return!0}}return s?.code==="PARSE_ERROR"&&s?.message.startsWith('Error "Error: Unclosed root tag')?(En.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 Lo.EXPONENTIAL:s=Math.min((Math.pow(2,r-1)-1)*this.retryOptions.retryDelayInMs,this.retryOptions.maxRetryDelayInMs);break;case Lo.FIXED:s=this.retryOptions.retryDelayInMs;break}else s=Math.random()*1e3;return En.info(`RetryPolicy: Delay for ${s}ms`),Wx(s,n,Wot)}};var mB=class{retryOptions;constructor(e){this.retryOptions=e}create(e,r){return new pB(e,r,this.retryOptions)}};var Jot="storageBrowserPolicy";function hge(){return{name:Jot,async sendRequest(t,e){return Wt||((t.method==="GET"||t.method==="HEAD")&&(t.url=ld(t.url,ku.Parameters.FORCE_BROWSER_NO_CACHE,new Date().getTime().toString())),t.headers.delete(je.COOKIE),t.headers.delete(je.CONTENT_LENGTH)),e(t)}}}var zot="StorageCorrectContentLengthPolicy";function fge(){function t(e){e.body&&(typeof e.body=="string"||Buffer.isBuffer(e.body))&&e.body.length>0&&e.headers.set(je.CONTENT_LENGTH,Buffer.byteLength(e.body))}return{name:zot,async sendRequest(e,r){return t(e),r(e)}}}var jot="storageRetryPolicy",l0={maxRetryDelayInMs:120*1e3,maxTries:4,retryDelayInMs:4*1e3,retryPolicyType:Lo.EXPONENTIAL,secondaryHost:"",tryTimeoutInMs:void 0},Kot=["ETIMEDOUT","ESOCKETTIMEDOUT","ECONNREFUSED","ECONNRESET","ENOENT","ENOTFOUND","TIMEOUT","EPIPE","REQUEST_SEND_ERROR"],$ot=new Df("The operation was aborted.");function gge(t={}){let e=t.retryPolicyType??l0.retryPolicyType,r=t.maxTries??l0.maxTries,n=t.retryDelayInMs??l0.retryDelayInMs,s=t.maxRetryDelayInMs??l0.maxRetryDelayInMs,i=t.secondaryHost??l0.secondaryHost,o=t.tryTimeoutInMs??l0.tryTimeoutInMs;function a({isPrimaryRetry:A,attempt:u,response:l,error:d}){if(u>=r)return En.info(`RetryPolicy: Attempt(s) ${u} >= maxTries ${r}, no further try.`),!1;if(d){for(let h of Kot)if(d.name.toUpperCase().includes(h)||d.message.toUpperCase().in
Line truncated
|
||||
`)+`
|
||||
`+n(i)+s(i),a=Jit("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.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=xx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Rx(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:zit,async sendRequest(i,o){return e(i),o(i)}}}var jit="storageRequestFailureDetailsParserPolicy";function Sfe(){return{name:jit,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 Kit}from"node:crypto";var vx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return Kit("sha256",this.key).update(e,"utf8").digest("base64")}};var _x="12.31.0",Fx="2026-02-06";var Mx="https://storage.azure.com/.default",ku={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Va="",o4="*",$it=1*1024*1024;var Xit=4*$it;var Nfe="AES256",Tfe="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",xfe=["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"],Rfe=["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"],Dfe="BlobUsesCustomerSpecifiedEncryption",kfe="BlobDoesNotUseCustomerSpecifiedEncryption",vfe=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function vu(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 lB=class{factories;options;constructor(e,r={}){this.factories=e,this.options=r}toServiceClientOptions(){return{httpClient:this.options.httpClient,requestPolicyFactories:this.factories}}};function en(t,e={}){t||(t=new wr);let r=new lB([],e);return r._credential=t,r}function Zit(t){let e=[eot,_fe,tot,rot,not,sot,oot];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>iot(s));return{wrappedPolicies:q8(r),afterRetry:n}}}}function a4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?Y8(e):s4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${_x}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=zy({...r,loggingOptions:{additionalAllowedHeaderNames:xfe,additionalAllowedQueryParameters:Rfe,logger:bx.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Bx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:r4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:m8}),s.addPolicy(Qfe()),s.addPolicy(wfe(r.retryOptions),{phase:"Retry"}),s.addPolicy(Sfe()),s.addPolicy(bfe());let a=Zit(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=c4(t);qi(c)?s.addPolicy(t0({credential:c,scopes:r.audience??
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new Ka(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 ect(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 tct(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?ja(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 Ka(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 rct(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?ja(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 Ka(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 nct(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(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 Ka(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 sct(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?ja(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 Ka(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 ict(t,e){if(t=Lf(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=oA.parse(t.permissions.toString()).toString():s=aA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Mf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?ja(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 Ka(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 Mf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Lf(t){let e=t.version?t.version:Fx;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 bB=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!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Va||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Va||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Va||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Va||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"}};g0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Of=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"}};Of.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var DB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var Tct=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())})},FH=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);$(`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 Jge(t,e,r){return Tct(this,void 0,void 0,function*(){var n;let s=new $a(t),i=s.getBlockBlobClient(),o=new FH((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(),P(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new RR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as jge from"buffer";import*as cA from"fs";import*as Kge from"stream";import*as $ge from"util";var DR=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 xct(t){return t?t>=500:!0}function Rct(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function Dct(t){return DR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function zge(t,e,r){return DR(this,arguments,void 0,function*(n,s,i,o=IT,a=yT,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),!xct(d)))return l;if(d&&(h=Rct(d),A=`Cache service responded with ${d}`),P(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){P(`${n} - Error is not retryable`);break}yield Dct(a),u++}throw Error(`${n} failed: ${A}`)})}function kB(t,e){return DR(this,arguments,void 0,function*(r,n,s=IT,i=yT){return yield zge(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof vc)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function p0(t,e){return DR(this,arguments,void 0,function*(r,n,s=IT,i=yT){return yield zge(r,n,o=>o.message.statusCode,s,i)})}var Ho=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 kct(t,e){return Ho(this,void 0,void 0,function*(){yield $ge.promisify(Kge.pipeline)(t.message,e)})}var vR=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,P(`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);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3)
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])P(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function PH(t,e,r){return li(this,void 0,void 0,function*(){let n=new Lct(t),s=tpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Zge(t,e,s):s.concurrentBlobDownloads?yield Xge(t,e,s):yield _R(t,e):yield _R(t,e)})}function cpe(t,e,r){return li(this,void 0,void 0,function*(){let n=UH(),s=qm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield kB("reserveCache",()=>li(this,void 0,void 0,function*(){return n.postJson(_B("caches"),i)}))})}function ope(t,e){return`bytes ${t}-${e}/*`}function Hct(t,e,r,n,s){return li(this,void 0,void 0,function*(){P(`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 p0(`uploadChunk (start: ${n}, end: ${s})`,()=>li(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 Gct(t,e,r,n){return li(this,void 0,void 0,function*(){let s=Mc(r),i=_B(`caches/${e.toString()}`),o=m0.openSync(r,"r"),a=MH(n),c=S3("uploadConcurrency",a.uploadConcurrency),A=S3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];P("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>li(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 Hct(t,i,()=>m0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{m0.closeSync(o)}})}function qct(t,e,r){return li(this,void 0,void 0,function*(){let n={size:r};return yield kB("commitCache",()=>li(this,void 0,void 0,function*(){return t.postJson(_B(`caches/${e.toString()}`),n)}))})}function OH(t,e,r,n){return li(this,void 0,void 0,function*(){if(MH(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Jge(r,e,n)}else{let i=UH();P("Upload cache"),yield Gct(i,t,e,n),P("Commiting cache");let o=Mc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield qct(i,t,o);if(!kR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var tme=Ae(D9(),1),rn=Ae(At(),1),zi=Ae(At(),1),Vf=Ae(At(),1),Wf=Ae(At(),1),Jf=Ae(At(),1);var F9=Ae(At(),1),M9=Ae(At(),1),Xpe=Ae(At(),1),Zpe=Ae(At(),1),eme=Ae(At(),1);var k9=Ae(At(),1),v9=Ae(At(),1),jpe=Ae(At(),1),Kpe=Ae(At(),1),$pe=Ae(At(),1),_9=class extends $pe.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,Kpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,jpe.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?v9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,k9.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,k9.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?v9.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},yD=new _9;var L9=class extends eme.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:()=>yD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,Zpe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Xpe.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(yD.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?M9.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,F9.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)yD.internalBinaryWrite(e.scope[i],r.tag(2,F9.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?M9.UnknownFieldHandler.onWrite:s
Line truncated
|
||||
`));let n=yield X9(r,"create");yield Z9(n,t)})}var v0=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())})},Ki=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Cd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},QD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ime(t){if(!t||t.length===0)throw new Ki("Path Validation Error: At least one directory or file path is required")}function rG(t){if(t.length>512)throw new Ki(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Ki(`Key Validation Error: ${t} cannot contain commas.`)}function ome(){return vB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function wD(t,e,r,n){return v0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=vB();return P(`Cache service version: ${A}`),ime(s),A==="v2"?yield olt(s,i,o,a,c):yield ilt(s,i,o,a,c)})}function ilt(t,e,r,n){return v0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(A)),A.length>10)throw new Ki("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)rG(d);let u=yield Fy(),l="";try{let d=yield ape(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=KB.join(yield vy(),td(u)),P(`Archive Path: ${l}`),yield PH(d.archiveLocation,l,a),Oa()&&(yield jB(l,u));let h=Mc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield eG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===Ki.name)throw d;h instanceof vc&&typeof h.statusCode=="number"&&h.statusCode>=500?Ui(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield _y(l)}catch(d){P(`Failed to delete archive: ${d}`)}}})}function olt(t,e,r,n){return v0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(P("Resolved Keys:"),P(JSON.stringify(A)),A.length>10)throw new Ki("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)rG(l);let u="";try{let l=$9(),d=yield Fy(),h={key:i,restoreKeys:o,version:qm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){P(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=KB.join(yield vy(),td(d)),P(`Archive path: ${u}`),P(`Starting download of archive to: ${u}`),yield PH(f.signedDownloadUrl,u,a);let I=Mc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Oa()&&(yield jB(u,d)),yield eG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===Ki.name)throw l;d instanceof vc&&typeof d.statusCode=="number"&&d.statusCode>=500?Ui(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield _y(u))}catch(l){P(`Failed to delete archive: ${l}`)}}})}function SD(t,e,r){return v0(this,arguments,void 0,function*(n,s,i,o=!1){let a=vB();return P(`Cache service version: ${a}`),ime(n),rG(s),a==="v2"?yield clt(n,s,i,o):yield alt(n,s,i,o)})}function alt(t,e,r){return v0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Fy(),h=-1,f=yield w3(n);if(P("Cache Paths:"),P(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield vy(),I=KB.join(p,td(d));P(`Archive Path: ${I}`);try{yield tG(p,f,d),Oa()&&(yield jB(I,d));let m=10*1024*1024*1024,C=Mc(I);if(P(`File Size: ${C}`),C>m&&!LH())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);P("Reserving Cache");let y=yield cpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new Cd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);P(`Saving Cache (ID: ${h})`),yield OH(h,I,"",i)}catch(m){let C=m;if(C.name===Ki.name)throw m;C.name===Cd.name
Line truncated
|
||||
See ${r.getDocumentationLink()}`;ame.push(n),Kl(n)}function Ame(){bu("deprecation-collector_deprecations",JSON.stringify(sG)),bu("deprecation-collector_errors",JSON.stringify(ame))}import*as xD from"path";var ume="GRADLE_ACTION_ID";var _D=".setup-gradle",RD=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return fA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return dlt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,llt())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return xD.resolve(Gu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return zf("dependency-graph-exclude-projects")}getIncludeProjects(){return zf("dependency-graph-include-projects")}getExcludeConfigurations(){return zf("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return zf("dependency-graph-include-configurations")}getPluginRepository(){return new DD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){P(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var _0=class{isCacheDisabled(){return ome()?fA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&fA("cache-read-only")}isCacheWriteOnly(){return fA("cache-write-only")}isCacheOverwriteExisting(){return fA("cache-overwrite-existing")}isCacheStrictMatch(){return fA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=$B("gradle-home-cache-cleanup");if(e!==void 0)return TD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return CO("gradle-home-cache-includes")}getCacheExcludes(){return CO("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Vo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Vo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return fA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return $B("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return $B("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return $B("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return $B("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new DD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},DD=class{getUrl(){return zf("gradle-plugin-repository-url")}getUsername(){return zf("gradle-plugin-repository
Line truncated
|
||||
`+n(i)+s(i),a=Xot("sha256",t.accountKey).update(o,"utf8").digest("base64");i.headers.set(je.AUTHORIZATION,`SharedKey ${t.accountName}:${a}`)}function r(i,o){let a=i.headers.get(o);return!a||o===je.CONTENT_LENGTH&&a==="0"?"":a}function n(i){let o=[];for(let[c,A]of i.headers)c.toLowerCase().startsWith(je.PREFIX_FOR_STORAGE)&&o.push({name:c,value:A});o.sort((c,A)=>Jx(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=Yx(i.url)||"/",a="";a+=`/${t.accountName}${o}`;let c=Vx(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:Zot,async sendRequest(i,o){return e(i),o(i)}}}var eat="storageRequestFailureDetailsParserPolicy";function pge(){return{name:eat,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 tat}from"node:crypto";var zx=class{accountName;userDelegationKey;key;constructor(e,r){this.accountName=e,this.userDelegationKey=r,this.key=Buffer.from(r.value,"base64")}computeHMACSHA256(e){return tat("sha256",this.key).update(e,"utf8").digest("base64")}};var jx="12.31.0",Kx="2026-02-06";var $x="https://storage.azure.com/.default",vu={Parameters:{FORCE_BROWSER_NO_CACHE:"_",SIGNATURE:"sig",SNAPSHOT:"snapshot",VERSIONID:"versionid",TIMEOUT:"timeout"}};var Wa="",x4="*",rat=1*1024*1024;var nat=4*rat;var mge="AES256",Ege="DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://127.0.0.1:10000/devstoreaccount1;",Cge=["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"],Ige=["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"],yge="BlobUsesCustomerSpecifiedEncryption",Bge="BlobDoesNotUseCustomerSpecifiedEncryption",bge=["10000","10001","10002","10003","10004","10100","10101","10102","10103","10104","11000","11001","11002","11003","11004","11100","11101","11102","11103","11104"];function _u(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 en(t,e={}){t||(t=new wr);let r=new EB([],e);return r._credential=t,r}function sat(t){let e=[iat,Qge,oat,aat,cat,Aat,lat];if(t.factories.length){let r=t.factories.filter(n=>!e.some(s=>s(n)));if(r.length){let n=r.some(s=>uat(s));return{wrappedPolicies:s4(r),afterRetry:n}}}}function R4(t){let{httpClient:e,...r}=t.options,n=t._coreHttpClient;n||(n=e?i4(e):N4(),t._coreHttpClient=n);let s=t._corePipeline;if(!s){let i=`azsdk-js-azure-storage-blob/${jx}`,o=r.userAgentOptions&&r.userAgentOptions.userAgentPrefix?`${r.userAgentOptions.userAgentPrefix} ${i}`:`${i}`;s=eB({...r,loggingOptions:{additionalAllowedHeaderNames:Cge,additionalAllowedQueryParameters:Ige,logger:Ux.info},userAgentOptions:{userAgentPrefix:o},serializationOptions:{stringifyXML:Lx,serializerOptions:{xml:{xmlCharKey:"#"}}},deserializationOptions:{parseXML:w4,serializerOptions:{xml:{xmlCharKey:"#"}}}}),s.removePolicy({phase:"Retry"}),s.removePolicy({name:k8}),s.addPolicy(fge()),s.addPolicy(gge(r.retryOptions),{phase:"Retry"}),s.addPolicy(pge()),s.addPolicy(hge());let a=sat(t);a&&s.addPolicy(a.wrappedPolicies,a.afterRetry?{afterPhase:"Retry"}:void 0);let c=D4(t);Yi(c)?s.addPolicy(s0({credential:c,scopes:r.audience??
Line truncated
|
||||
`),i=e.computeHMACSHA256(s);return{sasQueryParameters:new $a(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 iAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 oAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),t.identifier,t.ipRange?Ka(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 $a(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 aAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.ipRange?Ka(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 $a(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 cAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(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 $a(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 AAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,t.ipRange?Ka(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 $a(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 uAt(t,e){if(t=Of(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=aA.parse(t.permissions.toString()).toString():s=cA.parse(t.permissions.toString()).toString());let i=[s||"",t.startsOn?Ot(t.startsOn,!1):"",t.expiresOn?Ot(t.expiresOn,!1):"",Pf(e.accountName,t.containerName,t.blobName),e.userDelegationKey.signedObjectId,e.userDelegationKey.signedTenantId,e.userDelegationKey.signedStartsOn?Ot(e.userDelegationKey.signedStartsOn,!1):"",e.userDelegationKey.signedExpiresOn?Ot(e.userDelegationKey.signedExpiresOn,!1):"",e.userDelegationKey.signedService,e.userDelegationKey.signedVersion,t.preauthorizedAgentObjectId,void 0,t.correlationId,void 0,t.delegatedUserObjectId,t.ipRange?Ka(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 $a(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 Pf(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function Of(t){let e=t.version?t.version:Kx;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=r0()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-acquireLease",r,async n=>ve(await this._containerOrBlobOperation.acquireLease({abortSignal:r.abortSignal,duration:e,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},proposedLeaseId:this._leaseId,tracingOptions:n.tracingOptions})))}async changeLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==Wa||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==Wa||r.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=ve(await this._containerOrBlobOperation.changeLease(this._leaseId,e,{abortSignal:r.abortSignal,modifiedAccessConditions:{...r.conditions,ifTags:r.conditions?.tagConditions},tracingOptions:n.tracingOptions}));return this._leaseId=e,s})}async releaseLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||e.conditions?.tagConditions))throw new RangeError("The IfMatch, IfNoneMatch and tags access conditions are ignored by the service. Values other than undefined or their default values are not acceptable.");return Be.withSpan("BlobLeaseClient-releaseLease",e,async r=>ve(await this._containerOrBlobOperation.releaseLease(this._leaseId,{abortSignal:e.abortSignal,modifiedAccessConditions:{...e.conditions,ifTags:e.conditions?.tagConditions},tracingOptions:r.tracingOptions})))}async renewLease(e={}){if(this._isContainer&&(e.conditions?.ifMatch&&e.conditions?.ifMatch!==Wa||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==Wa||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"}};y0.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var qf=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"}};qf.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var UB=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var vAt=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())})},s9=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);$(`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 Lpe(t,e,r){return vAt(this,void 0,void 0,function*(){var n;let s=new Xa(t),i=s.getBlockBlobClient(),o=new s9((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(),H(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new VR(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ve(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Ppe from"buffer";import*as AA from"fs";import*as Ope from"stream";import*as Hpe from"util";var WR=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 JR(t){return t?t>=200&&t<300:!1}function _At(t){return t?t>=500:!0}function FAt(t){return t?[er.BadGateway,er.ServiceUnavailable,er.GatewayTimeout].includes(t):!1}function MAt(t){return WR(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Upe(t,e,r){return WR(this,arguments,void 0,function*(n,s,i,o=NT,a=TT,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),!_At(d)))return l;if(d&&(h=FAt(d),A=`Cache service responded with ${d}`),H(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){H(`${n} - Error is not retryable`);break}yield MAt(a),u++}throw Error(`${n} failed: ${A}`)})}function PB(t,e){return WR(this,arguments,void 0,function*(r,n,s=NT,i=TT){return yield Upe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof _c)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function B0(t,e){return WR(this,arguments,void 0,function*(r,n,s=NT,i=TT){return yield Upe(r,n,o=>o.message.statusCode,s,i)})}var Go=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 LAt(t,e){return Go(this,void 0,void 0,function*(){yield Hpe.promisify(Ope.pipeline)(t.message,e)})}var zR=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,H(`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);$(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e3)
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])H(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function c9(t,e,r){return di(this,void 0,void 0,function*(){let n=new GAt(t),s=Vpe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield qpe(t,e,s):s.concurrentBlobDownloads?yield Gpe(t,e,s):yield jR(t,e):yield jR(t,e)})}function Xpe(t,e,r){return di(this,void 0,void 0,function*(){let n=a9(),s=Wm(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield PB("reserveCache",()=>di(this,void 0,void 0,function*(){return n.postJson(HB("caches"),i)}))})}function Kpe(t,e){return`bytes ${t}-${e}/*`}function WAt(t,e,r,n,s){return di(this,void 0,void 0,function*(){H(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Kpe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Kpe(n,s)},o=yield B0(`uploadChunk (start: ${n}, end: ${s})`,()=>di(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!JR(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function JAt(t,e,r,n){return di(this,void 0,void 0,function*(){let s=Lc(r),i=HB(`caches/${e.toString()}`),o=b0.openSync(r,"r"),a=i9(n),c=H3("uploadConcurrency",a.uploadConcurrency),A=H3("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];H("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>di(this,void 0,void 0,function*(){for(;l<s;){let d=Math.min(s-l,A),h=l,f=l+d-1;l+=A,yield WAt(t,i,()=>b0.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",p=>{throw new Error(`Cache upload failed because file read failed with ${p.message}`)}),h,f)}})))}finally{b0.closeSync(o)}})}function zAt(t,e,r){return di(this,void 0,void 0,function*(){let n={size:r};return yield PB("commitCache",()=>di(this,void 0,void 0,function*(){return t.postJson(HB(`caches/${e.toString()}`),n)}))})}function A9(t,e,r,n){return di(this,void 0,void 0,function*(){if(i9(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Lpe(r,e,n)}else{let i=a9();H("Upload cache"),yield JAt(i,t,e,n),H("Commiting cache");let o=Lc(e);$(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield zAt(i,t,o);if(!JR(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);$("Cache saved successfully")}})}var Vme=Ae(eG(),1),rn=Ae(At(),1),ji=Ae(At(),1),zf=Ae(At(),1),jf=Ae(At(),1),Kf=Ae(At(),1);var sG=Ae(At(),1),iG=Ae(At(),1),Gme=Ae(At(),1),qme=Ae(At(),1),Yme=Ae(At(),1);var tG=Ae(At(),1),rG=Ae(At(),1),Pme=Ae(At(),1),Ome=Ae(At(),1),Hme=Ae(At(),1),nG=class extends Hme.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,Ome.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Pme.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?rG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,tG.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,tG.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?rG.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},MD=new nG;var oG=class extends Yme.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:()=>MD}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,qme.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,Gme.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(MD.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?iG.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,sG.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)MD.internalBinaryWrite(e.scope[i],r.tag(2,sG.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?iG.UnknownFieldHandler.onWrite:s
Line truncated
|
||||
`));let n=yield yG(r,"create");yield BG(n,t)})}var P0=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())})},$i=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},yd=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},PD=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function jme(t){if(!t||t.length===0)throw new $i("Path Validation Error: At least one directory or file path is required")}function wG(t){if(t.length>512)throw new $i(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new $i(`Key Validation Error: ${t} cannot contain commas.`)}function Kme(){return OB()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function OD(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=OB();return H(`Cache service version: ${A}`),jme(s),A==="v2"?yield ldt(s,i,o,a,c):yield udt(s,i,o,a,c)})}function udt(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of A)wG(d);let u=yield Hy(),l="";try{let d=yield $pe(A,s,{compressionMethod:u,enableCrossOsArchive:c});if(!d?.archiveLocation)return;if(a?.lookupOnly)return $("Lookup only - skipping download"),d.cacheKey;l=nb.join(yield Py(),rd(u)),H(`Archive Path: ${l}`),yield c9(d.archiveLocation,l,a),Ha()&&(yield rb(l,u));let h=Lc(l);return $(`Cache Size: ~${Math.round(h/(1024*1024))} MB (${h} B)`),yield bG(l,u),$("Cache restored successfully"),d.cacheKey}catch(d){let h=d;if(h.name===$i.name)throw d;h instanceof _c&&typeof h.statusCode=="number"&&h.statusCode>=500?Pi(`Failed to restore: ${d.message}`):Ve(`Failed to restore: ${d.message}`)}finally{try{yield Oy(l)}catch(d){H(`Failed to delete archive: ${d}`)}}})}function ldt(t,e,r,n){return P0(this,arguments,void 0,function*(s,i,o,a,c=!1){a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let A=[i,...o];if(H("Resolved Keys:"),H(JSON.stringify(A)),A.length>10)throw new $i("Key Validation Error: Keys are limited to a maximum of 10.");for(let l of A)wG(l);let u="";try{let l=IG(),d=yield Hy(),h={key:i,restoreKeys:o,version:Wm(s,d,c)},f=yield l.GetCacheEntryDownloadURL(h);if(!f.ok){H(`Cache not found for version ${h.version} of keys: ${A.join(", ")}`);return}if(h.key!==f.matchedKey?$(`Cache hit for restore-key: ${f.matchedKey}`):$(`Cache hit for: ${f.matchedKey}`),a?.lookupOnly)return $("Lookup only - skipping download"),f.matchedKey;u=nb.join(yield Py(),rd(d)),H(`Archive path: ${u}`),H(`Starting download of archive to: ${u}`),yield c9(f.signedDownloadUrl,u,a);let I=Lc(u);return $(`Cache Size: ~${Math.round(I/(1024*1024))} MB (${I} B)`),Ha()&&(yield rb(u,d)),yield bG(u,d),$("Cache restored successfully"),f.matchedKey}catch(l){let d=l;if(d.name===$i.name)throw l;d instanceof _c&&typeof d.statusCode=="number"&&d.statusCode>=500?Pi(`Failed to restore: ${l.message}`):Ve(`Failed to restore: ${l.message}`)}finally{try{u&&(yield Oy(u))}catch(l){H(`Failed to delete archive: ${l}`)}}})}function HD(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){let a=OB();return H(`Cache service version: ${a}`),jme(n),wG(s),a==="v2"?yield hdt(n,s,i,o):yield ddt(n,s,i,o)})}function ddt(t,e,r){return P0(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l;let d=yield Hy(),h=-1,f=yield O3(n);if(H("Cache Paths:"),H(`${JSON.stringify(f)}`),f.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let p=yield Py(),I=nb.join(p,rd(d));H(`Archive Path: ${I}`);try{yield QG(p,f,d),Ha()&&(yield rb(I,d));let m=10*1024*1024*1024,C=Lc(I);if(H(`File Size: ${C}`),C>m&&!o9())throw new Error(`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the 10GB limit, not saving cache.`);H("Reserving Cache");let y=yield Xpe(s,n,{compressionMethod:d,enableCrossOsArchive:o,cacheSize:C});if(!((a=y?.result)===null||a===void 0)&&a.cacheId)h=(c=y?.result)===null||c===void 0?void 0:c.cacheId;else throw y?.statusCode===400?new Error((u=(A=y?.error)===null||A===void 0?void 0:A.message)!==null&&u!==void 0?u:`Cache size of ~${Math.round(C/(1024*1024))} MB (${C} B) is over the data cap limit, not saving cache.`):new yd(`Unable to reserve cache with key ${s}, another job may be creating this cache. More details: ${(l=y?.error)===null||l===void 0?void 0:l.message}`);H(`Saving Cache (ID: ${h})`),yield A9(h,I,"",i)}catch(m){let C=m;if(C.name===$i.name)throw m;C.name===yd.name
Line truncated
|
||||
See ${r.getDocumentationLink()}`;$me.push(n),$l(n)}function Zme(){Qu("deprecation-collector_deprecations",JSON.stringify(NG)),Qu("deprecation-collector_errors",JSON.stringify($me))}import*as YD from"path";var e0e="GRADLE_ACTION_ID";var jD=".setup-gradle",VD=class t{getDependencyGraphOption(){let e=dr("dependency-graph");switch(e.toLowerCase().trim()){case"disabled":return"disabled";case"generate":return"generate";case"generate-and-submit":return"generate-and-submit";case"generate-submit-and-upload":return"generate-submit-and-upload";case"generate-and-upload":return"generate-and-upload";case"download-and-submit":return"download-and-submit"}throw TypeError(`The value '${e}' is not valid for 'dependency-graph'. Valid values are: [disabled, generate, generate-and-submit, generate-submit-and-upload, generate-and-upload, download-and-submit].`)}getDependencyGraphContinueOnFailure(){return gA("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=dr("artifact-retention-days");return mdt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(ri.workflow,ri.job,pdt())}getReportDirectory(){let e=dr("dependency-graph-report-dir");return YD.resolve(qu(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return $f("dependency-graph-exclude-projects")}getIncludeProjects(){return $f("dependency-graph-include-projects")}getExcludeConfigurations(){return $f("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return $f("dependency-graph-include-configurations")}getPluginRepository(){return new WD}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){H(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var O0=class{isCacheDisabled(){return Kme()?gA("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&gA("cache-read-only")}isCacheWriteOnly(){return gA("cache-write-only")}isCacheOverwriteExisting(){return gA("cache-overwrite-existing")}isCacheStrictMatch(){return gA("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=sb("gradle-home-cache-cleanup");if(e!==void 0)return qD("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=dr("cache-cleanup");switch(r.toLowerCase().trim()){case"always":return"always".toString();case"on-success":return"on-success".toString();case"never":return"never".toString()}throw TypeError(`The value '${r}' is not valid for cache-cleanup. Valid values are: [never, always, on-success].`)}getCacheEncryptionKey(){return dr("cache-encryption-key")}getCacheIncludes(){return _O("gradle-home-cache-includes")}getCacheExcludes(){return _O("gradle-home-cache-excludes")}isCacheLicenseAccepted(){let e=new Wo;return e.getDevelocityAccessKey()!==""||e.hasTermsOfUseAgreement()}getCacheProvider(){let e=dr("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced].`)}};var Wo=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return gA("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return dr("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return dr("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return dr("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return dr("develocity-token-expiry")}getDevelocityInjectionEnabled(){return sb("develocity-injection-enabled")}getDevelocityUrl(){return dr("develocity-url")}getDevelocityAllowUntrustedServer(){return sb("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return sb("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return sb("develocity-enforce-url")}getDevelocityPluginVersion(){return dr("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return dr("develocity-ccud-plugin-version")}getPluginRepository(){return new WD}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ve("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},WD=class{getUrl(){return $f("gradle-plugin-repository-url")}getUsername(){return $f("gradle-plugin-repository
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 sb(i));return n.searchPaths.push(...AG(n.patterns)),n})}static stat(e,r,n){return pG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield L0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){P(`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 L0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield L0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){P(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as mG from"crypto";import*as HD from"fs";import*as Ume from"stream";import*as Pme from"util";import*as Ome from"path";var Ndt=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())})},Tdt=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 Hme(t,e){return Ndt(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:P,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=mG.createHash("sha256"),f=0;try{for(var p=!0,I=Tdt(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${Ome.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(HD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=mG.createHash("sha256");yield Pme.promisify(Ume.pipeline)(HD.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Gme=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 EG(t,e){return Gme(this,void 0,void 0,function*(){return yield PD.create(t,e)})}function qme(t){return Gme(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield EG(e,{followSymbolicLinks:i});return Hme(o,r,s)})}import*as IG from"path";var Vme="BASIC_CACHE_PRIMARY_KEY",CG="BASIC_CACHE_RESTORED_KEY",xdt="setup-java",Wme=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],GD=class{async restore(e,r){let n=Jme(e),s=await Rdt();bu(Vme,s);try{let i=await wD(n,s);i?(bu(CG,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=Dm(CG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=Dm(Vme);if(Dm(CG)===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=Jme(e);try{return await SD(o,s),$(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function Jme(t){return[IG.join(t,"caches"),IG.join(t,"wrapper")]}async function Rdt(){let t=await qme(Wme.join(`
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${Wme}], make sure you have checked out the target repository`);return`${xdt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var kdt=`
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new lb(i));return n.searchPaths.push(...kG(n.patterns)),n})}static stat(e,r,n){return PG(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield q0.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){H(`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 q0.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield q0.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){H(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as OG from"crypto";import*as r2 from"fs";import*as T0e from"stream";import*as x0e from"util";import*as R0e from"path";var kht=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())})},vht=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 D0e(t,e){return kht(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?$:H,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=OG.createHash("sha256"),f=0;try{for(var p=!0,I=vht(r.globGenerator()),m;m=yield I.next(),i=m.done,!i;p=!0){c=m.value,p=!1;let C=c;if(u(C),!C.startsWith(`${d}${R0e.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(r2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let y=OG.createHash("sha256");yield x0e.promisify(T0e.pipeline)(r2.createReadStream(C),y),h.write(y.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!p&&!i&&(a=I.return)&&(yield a.call(I))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var k0e=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})};function HG(t,e){return k0e(this,void 0,void 0,function*(){return yield e2.create(t,e)})}function v0e(t){return k0e(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield HG(e,{followSymbolicLinks:i});return D0e(o,r,s)})}import*as qG from"path";var F0e="BASIC_CACHE_PRIMARY_KEY",GG="BASIC_CACHE_RESTORED_KEY",_ht="setup-java",M0e=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],n2=class{async restore(e,r){let n=L0e(e),s=await Fht();Qu(F0e,s);try{let i=await OD(n,s);i?(Qu(GG,i),$(`Basic caching restored from cache key: ${i}`)):$("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){Ve(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){if(n.readOnly){let a=_m(GG);return a?`Basic caching was read-only. Restored from cache key \`${a}\`.`:"Basic caching was read-only. No cache entry was found to restore."}let s=_m(F0e);if(_m(GG)===s)return $(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),`Basic caching restored entry with key \`${s}\`. Save was skipped.`;let o=L0e(e);try{return await HD(o,s),$(`Basic caching saved entry with key: ${s}`),`Basic caching saved entry with key \`${s}\`.`}catch(a){return Ve(`Basic caching failed to save entry with key \`${s}\`: ${a}`),`Basic caching save failed: ${a}`}}};function L0e(t){return[qG.join(t,"caches"),qG.join(t,"wrapper")]}async function Fht(){let t=await v0e(M0e.join(`
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${M0e}], make sure you have checked out the target repository`);return`${_ht}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var Lht=`
|
||||
[Cache was disabled](https://github.com/gradle/actions/blob/main/docs/setup-gradle.md#disabling-caching). Gradle User Home was not restored from or saved to the cache.
|
||||
`,vdt="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.",_dt=`
|
||||
`,Uht="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.",Pht=`
|
||||
> [!NOTE]
|
||||
> ### \u26A1\uFE0F Enhanced Caching enabled
|
||||
> This build provides optimized caching support via the proprietary **gradle-actions-caching** provider.
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for terms of use and opt-out instructions.
|
||||
`,Fdt="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Mdt=`
|
||||
`,Oht="Basic Caching: This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies. Upgrade available: for faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",Hht=`
|
||||
> [!NOTE]
|
||||
> ### \u{1F6E1}\uFE0F Basic Caching enabled
|
||||
> This build uses the open-source caching provider for reliable, path-based caching of Gradle dependencies.
|
||||
>
|
||||
> **Upgrade Available:** For faster builds and advanced features, consider switching to the **Enhanced Caching** provider.
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,BG=class{async restore(e,r){}async save(e,r,n){return kdt}},qD=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
|
||||
${this.summary}`}};async function Kme(t){if(t.isCacheDisabled())return yG("Cache is disabled: will not restore state from previous builds."),new BG;if(t.getCacheProvider()==="basic")return yG(Fdt),new qD(new GD,Mdt);yG(vdt);let e=await Ldt();return t.isCacheLicenseAccepted()?e:new qD(e,_dt)}async function Ldt(){let t=Udt();return await import(Ddt(t).href)}function Udt(){let t=import.meta.dirname,e=jme.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(zme.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function yG(t){console.info(t)}import YD from"fs";import $me from"path";var VD=class{constructor(e){this.cacheFile=$me.resolve(e,_D,"valid-wrappers.json")}load(){if(YD.existsSync(this.cacheFile))try{return JSON.parse(YD.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];YD.mkdirSync($me.dirname(this.cacheFile),{recursive:!0}),YD.writeFileSync(this.cacheFile,JSON.stringify(r))}};var n0e=Ae(t0e(),1);import*as r0e from"util";import*as WD from"path";import*as JD from"fs";var Ydt=r0e.promisify(JD.readdir);async function s0e(t){return(await i0e(t)).filter(r=>(0,n0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>WD.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function i0e(t){let e=await Ydt(t),r=await Promise.all(e.map(async n=>{let s=WD.resolve(t,n),i=JD.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?i0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var Wdt={_useHtmlParser2:!1};function U0(t,e){if(!t)return e??Wdt;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 WG={};Sa(WG,{contains:()=>c2,extract:()=>Oht,html:()=>Mht,merge:()=>T0e,parseHTML:()=>Uht,root:()=>Pht,text:()=>ig,xml:()=>Lht});var Td={};Sa(Td,{DocumentPosition:()=>jo,append:()=>Eht,appendChild:()=>mht,compareDocumentPosition:()=>Q0e,existsOne:()=>B0e,filter:()=>q0,find:()=>s2,findAll:()=>Bht,findOne:()=>i2,findOneChild:()=>yht,getAttributeValue:()=>hht,getChildren:()=>G0,getElementById:()=>Sht,getElements:()=>wht,getElementsByClassName:()=>Nht,getElementsByTagName:()=>sg,getElementsByTagType:()=>Tht,getFeed:()=>VG,getInnerHTML:()=>dht,getName:()=>ght,getOuterHTML:()=>I0e,getParent:()=>y0e,getSiblings:()=>qG,getText:()=>t2,hasAttrib:()=>fht,hasChildren:()=>tr,innerText:()=>ub,isCDATA:()=>P0,isComment:()=>ng,isDocument:()=>zo,isTag:()=>Qe,isText:()=>gi,nextElementSibling:()=>r2,prepend:()=>Iht,prependChild:()=>Cht,prevElementSibling:()=>n2,removeElement:()=>zu,removeSubsets:()=>xht,replaceElement:()=>pht,testElement:()=>Qht,textContent:()=>Ju,uniqueSort:()=>Sd});var Jo={};Sa(Jo,{CDATA:()=>DG,Comment:()=>NG,Directive:()=>SG,Doctype:()=>kG,ElementType:()=>bt,Root:()=>QG,Script:()=>TG,Style:()=>xG,Tag:()=>RG,Text:()=>wG,isTag:()=>bG});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 bG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var QG=bt.Root,wG=bt.Text,SG=bt.Directive,NG=bt.Comment,TG=bt.Script,xG=bt.Style,RG=bt.Tag,DG=bt.CDATA,kG=bt.Doctype;var zD=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 O0(this,e)}},ob=class extends zD{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},pA=class extends ob{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},eg=class extends ob{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},tg=class extends ob{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},ab=class extends zD{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}},cb=class extends ab{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},$i=class extends ab{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},rg=class extends ab{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void
Line truncated
|
||||
`:t2(t.children):P0(t)?t2(t.children):gi(t)?t.data:""}function Ju(t){return Array.isArray(t)?t.map(Ju).join(""):tr(t)&&!ng(t)?Ju(t.children):gi(t)?t.data:""}function ub(t){return Array.isArray(t)?t.map(ub).join(""):tr(t)&&(t.type===bt.Tag||P0(t))?ub(t.children):gi(t)?t.data:""}function G0(t){return tr(t)?t.children:[]}function y0e(t){return t.parent||null}function qG(t){let e=y0e(t);if(e!=null)return G0(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 hht(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function fht(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function ght(t){return t.name}function r2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function n2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function zu(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 pht(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 mht(t,e){if(zu(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 Eht(t,e){zu(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 Cht(t,e){if(zu(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 Iht(t,e){zu(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 q0(t,e,r=!0,n=1/0){return s2(t,Array.isArray(e)?e:[e],r,n)}function s2(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function yht(t,e){return e.find(t)}function i2(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&&tr(i)&&i.children.length>0){let o=i2(t,i.children,!0);if(o)return o}}return null}function B0e(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&B0e(t,r.children))}function Bht(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),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var o2={tag_name(t){return typeof t=="function"?e=>Qe(e)&&t(e.name):t==="*"?Qe:e=>Qe(e)&&e.name===t},tag_type(t){return typeof t=="function"?e=>t(e.type):e=>e.type===t},tag_contains(t){return typeof t=="function"?e=>gi(e)&&t(e.data):e=>gi(e)&&e.data===t}};function YG(t,e){return typeof e=="function"?r=>Qe(r)&&e(r.attribs[t]):r=>Qe(r)&&r.attribs[t]===e}function bht(t,e){return r=>t(r)||e(r)}function b0e(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(o2,r)?o2[r](n):YG(r,n)});return e.length===0?null:e.reduce(bht)}function Qht(t,e){let r=b0e(t);return r?r(e):!0}function wht(t,e,r,n=1/0){let s=b0e(t);return s?q0(s,e,r,n):[]}function Sht(t,e,r=!0){return Array.isArray(e)||(e=[e]),i2(YG("id",t),e,r)}function sg(t,e,r=!0,n=1/0){return q0(o2.tag_name(t),e,r,n)}function Nht(t,e,r=!0,n=1/0){return q0(YG("class",t),e,r,n)}function Tht(t,e,r=!0,n=1/0){return q0(o2.tag_type(t),e,r,n)}function xht(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var jo;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(jo||(jo={}));function Q0e(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(e)?e:e.parent;s;)n.unshift(s),s=s.parent;let i=Math.min(r.length,n.length),o=0;for(;o<i&&r[o]===n[o];)o++;if(o===0)return jo.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?jo.FOLLOWING|jo.CONTAINED_BY:jo.FOLLOWING:a===t?jo.PRECEDING|jo.CONTAINS:jo.PRECEDING}function Sd(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Q0e(e,r);return n&jo.PRECEDING?-1:n&jo.FOLLOWING?1:0}),t}function VG(t){let e=a2(_ht,t);return e?e.name==="feed"?Rht(e):Dht(e):null}function Rht(t){var e;let r=t.children,n={type:"atom",items:sg("entry",r).map(o=>{var a;let{children:c}=o,A={media:w0e(c)};pi(A,"id","id",c),pi(A,"title","title",c);let u=(a=a2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Nd("summary",c)||Nd("conten
Line truncated
|
||||
> See [DISTRIBUTION.md](https://github.com/gradle/actions/blob/main/DISTRIBUTION.md) for details.`,VG=class{async restore(e,r){}async save(e,r,n){return Lht}},s2=class{constructor(e,r){this.delegate=e,this.summary=r}async restore(e,r){await this.delegate.restore(e,r)}async save(e,r,n){return`${await this.delegate.save(e,r,n)}
|
||||
${this.summary}`}};async function O0e(t){if(t.isCacheDisabled())return YG("Cache is disabled: will not restore state from previous builds."),new VG;if(t.getCacheProvider()==="basic")return YG(Oht),new s2(new n2,Hht);YG(Uht);let e=await Ght();return t.isCacheLicenseAccepted()?e:new s2(e,Pht)}async function Ght(){let t=qht();return await import(Mht(t).href)}function qht(){let t=import.meta.dirname,e=P0e.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(U0e.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function YG(t){console.info(t)}import i2 from"fs";import H0e from"path";var o2=class{constructor(e){this.cacheFile=H0e.resolve(e,jD,"valid-wrappers.json")}load(){if(i2.existsSync(this.cacheFile))try{return JSON.parse(i2.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ve(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];i2.mkdirSync(H0e.dirname(this.cacheFile),{recursive:!0}),i2.writeFileSync(this.cacheFile,JSON.stringify(r))}};var J0e=Ae(V0e(),1);import*as W0e from"util";import*as a2 from"path";import*as c2 from"fs";var jht=W0e.promisify(c2.readdir);async function z0e(t){return(await j0e(t)).filter(r=>(0,J0e.default)(r).endsWith("gradle-wrapper.jar")).map(r=>a2.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function j0e(t){let e=await jht(t),r=await Promise.all(e.map(async n=>{let s=a2.resolve(t,n),i=c2.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?j0e(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var $ht={_useHtmlParser2:!1};function Y0(t,e){if(!t)return e??$ht;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var gq={};Na(gq,{contains:()=>b2,extract:()=>Vft,html:()=>Hft,merge:()=>EEe,parseHTML:()=>qft,root:()=>Yft,text:()=>cg,xml:()=>Gft});var Rd={};Na(Rd,{DocumentPosition:()=>Ko,append:()=>bft,appendChild:()=>Bft,compareDocumentPosition:()=>fEe,existsOne:()=>dEe,filter:()=>j0,find:()=>C2,findAll:()=>Nft,findOne:()=>I2,findOneChild:()=>Sft,getAttributeValue:()=>Eft,getChildren:()=>z0,getElementById:()=>Dft,getElements:()=>Rft,getElementsByClassName:()=>kft,getElementsByTagName:()=>ag,getElementsByTagType:()=>vft,getFeed:()=>fq,getInnerHTML:()=>mft,getName:()=>Ift,getOuterHTML:()=>uEe,getParent:()=>lEe,getSiblings:()=>dq,getText:()=>p2,hasAttrib:()=>Cft,hasChildren:()=>tr,innerText:()=>mb,isCDATA:()=>V0,isComment:()=>og,isDocument:()=>jo,isTag:()=>Qe,isText:()=>pi,nextElementSibling:()=>m2,prepend:()=>wft,prependChild:()=>Qft,prevElementSibling:()=>E2,removeElement:()=>ju,removeSubsets:()=>_ft,replaceElement:()=>yft,testElement:()=>xft,textContent:()=>zu,uniqueSort:()=>Td});var zo={};Na(zo,{CDATA:()=>eq,Comment:()=>KG,Directive:()=>jG,Doctype:()=>tq,ElementType:()=>bt,Root:()=>JG,Script:()=>$G,Style:()=>XG,Tag:()=>ZG,Text:()=>zG,isTag:()=>WG});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 WG(t){return t.type===bt.Tag||t.type===bt.Script||t.type===bt.Style}var JG=bt.Root,zG=bt.Text,jG=bt.Directive,KG=bt.Comment,$G=bt.Script,XG=bt.Style,ZG=bt.Tag,eq=bt.CDATA,tq=bt.Doctype;var A2=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 W0(this,e)}},hb=class extends A2{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},mA=class extends hb{constructor(){super(...arguments),this.type=bt.Text}get nodeType(){return 3}},ng=class extends hb{constructor(){super(...arguments),this.type=bt.Comment}get nodeType(){return 8}},sg=class extends hb{constructor(e,r){super(r),this.name=e,this.type=bt.Directive}get nodeType(){return 1}},fb=class extends A2{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}},gb=class extends fb{constructor(){super(...arguments),this.type=bt.CDATA}get nodeType(){return 4}},Xi=class extends fb{constructor(){super(...arguments),this.type=bt.Root}get nodeType(){return 9}},ig=class extends fb{constructor(e,r,n=[],s=e==="script"?bt.Script:e==="style"?bt.Style:bt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){return this.name}set tagName(e){this.name=e}get attributes(){return Object.keys(this.attribs).map(e=>{var r,n;return{name:e,value:this.attribs[e],namespace:(r=this["x-attribsNamespace"])===null||r===void
Line truncated
|
||||
`:p2(t.children):V0(t)?p2(t.children):pi(t)?t.data:""}function zu(t){return Array.isArray(t)?t.map(zu).join(""):tr(t)&&!og(t)?zu(t.children):pi(t)?t.data:""}function mb(t){return Array.isArray(t)?t.map(mb).join(""):tr(t)&&(t.type===bt.Tag||V0(t))?mb(t.children):pi(t)?t.data:""}function z0(t){return tr(t)?t.children:[]}function lEe(t){return t.parent||null}function dq(t){let e=lEe(t);if(e!=null)return z0(e);let r=[t],{prev:n,next:s}=t;for(;n!=null;)r.unshift(n),{prev:n}=n;for(;s!=null;)r.push(s),{next:s}=s;return r}function Eft(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function Cft(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function Ift(t){return t.name}function m2(t){let{next:e}=t;for(;e!==null&&!Qe(e);)({next:e}=e);return e}function E2(t){let{prev:e}=t;for(;e!==null&&!Qe(e);)({prev:e}=e);return e}function ju(t){if(t.prev&&(t.prev.next=t.next),t.next&&(t.next.prev=t.prev),t.parent){let e=t.parent.children,r=e.lastIndexOf(t);r>=0&&e.splice(r,1)}t.next=null,t.prev=null,t.parent=null}function yft(t,e){let r=e.prev=t.prev;r&&(r.next=e);let n=e.next=t.next;n&&(n.prev=e);let s=e.parent=t.parent;if(s){let i=s.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function Bft(t,e){if(ju(e),e.next=null,e.parent=t,t.children.push(e)>1){let r=t.children[t.children.length-2];r.next=e,e.prev=r}else e.prev=null}function bft(t,e){ju(e);let{parent:r}=t,n=t.next;if(e.next=n,e.prev=t,t.next=e,e.parent=r,n){if(n.prev=e,r){let s=r.children;s.splice(s.lastIndexOf(n),0,e)}}else r&&r.children.push(e)}function Qft(t,e){if(ju(e),e.parent=t,e.prev=null,t.children.unshift(e)!==1){let r=t.children[1];r.prev=e,e.next=r}else e.next=null}function wft(t,e){ju(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 C2(t,Array.isArray(e)?e:[e],r,n)}function C2(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&&tr(a)&&a.children.length>0&&(o.unshift(0),i.unshift(a.children))}}function Sft(t,e){return e.find(t)}function I2(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&&tr(i)&&i.children.length>0){let o=I2(t,i.children,!0);if(o)return o}}return null}function dEe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Qe(r)&&t(r)||tr(r)&&dEe(t,r.children))}function Nft(t,e){let r=[],n=[Array.isArray(e)?e:[e]],s=[0];for(;;){if(s[0]>=n[0].length){if(n.length===1)return r;n.shift(),s.shift();continue}let i=n[0][s[0]++];Qe(i)&&t(i)&&r.push(i),tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var y2={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=>pi(e)&&t(e.data):e=>pi(e)&&e.data===t}};function hq(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 hEe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(y2,r)?y2[r](n):hq(r,n)});return e.length===0?null:e.reduce(Tft)}function xft(t,e){let r=hEe(t);return r?r(e):!0}function Rft(t,e,r,n=1/0){let s=hEe(t);return s?j0(s,e,r,n):[]}function Dft(t,e,r=!0){return Array.isArray(e)||(e=[e]),I2(hq("id",t),e,r)}function ag(t,e,r=!0,n=1/0){return j0(y2.tag_name(t),e,r,n)}function kft(t,e,r=!0,n=1/0){return j0(hq("class",t),e,r,n)}function vft(t,e,r=!0,n=1/0){return j0(y2.tag_type(t),e,r,n)}function _ft(t){let e=t.length;for(;--e>=0;){let r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(let n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var Ko;(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"})(Ko||(Ko={}));function fEe(t,e){let r=[],n=[];if(t===e)return 0;let s=tr(t)?t:t.parent;for(;s;)r.unshift(s),s=s.parent;for(s=tr(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 Ko.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?Ko.FOLLOWING|Ko.CONTAINED_BY:Ko.FOLLOWING:a===t?Ko.PRECEDING|Ko.CONTAINS:Ko.PRECEDING}function Td(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=fEe(e,r);return n&Ko.PRECEDING?-1:n&Ko.FOLLOWING?1:0}),t}function fq(t){let e=B2(Pft,t);return e?e.name==="feed"?Fft(e):Mft(e):null}function Fft(t){var e;let r=t.children,n={type:"atom",items:ag("entry",r).map(o=>{var a;let{children:c}=o,A={media:gEe(c)};mi(A,"id","id",c),mi(A,"title","title",c);let u=(a=B2("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=xd("summary",c)||xd("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 Xo=Ae(xd(),1);var cq={};function Aq(t,e){return t===Xo.default.falseFunc?Xo.default.falseFunc:r=>e.isTag(r)&&t(r)}function uq(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 aq(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 oq=(t,e,r,n,s)=>{let i=s(e,aq(r),n);return i===Xo.default.trueFunc?t:i===Xo.default.falseFunc?Xo.default.falseFunc:o=>i(o)&&t(o)},I2={is:oq,matches:oq,where:oq,not(t,e,r,n,s){let i=s(e,aq(r),n);return i===Xo.default.falseFunc?t:i===Xo.default.trueFunc?Xo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=aq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(mb))?[cq]:void 0,c=s(e,o,a);if(c===Xo.default.falseFunc)return Xo.default.falseFunc;let A=Aq(c,i);if(a&&c!==Xo.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,...uq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function hEe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in I2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return I2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:C2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,dEe.parse)(A);return I2.is(t,u,r,n,s)}if(typeof c=="function")return iq(c,o,a,1),u=>c(u,a)&&t(u);if(o in X0)return X0[o](t,a,r,n);if(o in Cb){let u=Cb[o];return iq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Zo=Ae(K0(),1);function lq(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function fEe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Zo.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Zo.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Zo.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()),cEe[e.action](t,e,r)}case Zo.SelectorType.Pseudo:return hEe(t,e,r,n,s);case Zo.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 Zo.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=lq(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=lq(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=lq(A,i));return!1};case Zo.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Zo.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Zo.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 Zo.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 Zo.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function gEe(t,e,r){let n=y2(t,e,r);return Aq(n,e.adapter)}function y2(t,e,r){let n=typeof t=="string"?(0,nc.parse)(t):t;return B2(n,e,r)}function pEe(t){return t.type===nc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(pEe)))}var wft={type:nc.SelectorType.Descendant},Sft={type:"_flexibleDescendant"},Nft={type:nc.SelectorType.Pseudo,name:"scope",data:null};function Tft(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===cq||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(kEe,`\r
|
||||
`)}}).toArray()}var Nq={};Sa(Nq,{extract:()=>qgt});function Ggt(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 qgt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Ggt(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 kd=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}}};kd.prototype.cheerio="[cheerio object]";kd.prototype.splice=Array.prototype.splice;kd.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(kd.prototype,eq,bq,Qq,wq,Sq,Nq);function vEe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=U0(s),a=t(n,o,i,null);class c extends kd{_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&&Ko(u))return u;let f=U0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=Ko(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&lb(u)?t(u,f,!1,null).children:Ygt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?lb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):Ko(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,WG,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function Ygt(t){return!!t.name||t.type===Jo.Root||t.type===Jo.Text||t.type===Jo.Comment}var Vgt=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",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function T2(t){return t>=55296&&t<=57343}function _Ee(t){return t>=56320&&t<=57343}function FEe(t,e){return(t-55296)*1024+9216+e}function x2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function R2(t){return t>=64976&&t<=65007||Vgt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var Zo=Ae(Dd(),1);var Dq={};function kq(t,e){return t===Zo.default.falseFunc?Zo.default.falseFunc:r=>e.isTag(r)&&t(r)}function vq(t,e){let r=e.getSiblings(t);if(r.length<=1)return[];let n=r.indexOf(t);return n<0||n===r.length-1?[]:r.slice(n+1).filter(e.isTag)}function Rq(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 xq=(t,e,r,n,s)=>{let i=s(e,Rq(r),n);return i===Zo.default.trueFunc?t:i===Zo.default.falseFunc?Zo.default.falseFunc:o=>i(o)&&t(o)},F2={is:xq,matches:xq,where:xq,not(t,e,r,n,s){let i=s(e,Rq(r),n);return i===Zo.default.falseFunc?t:i===Zo.default.trueFunc?Zo.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=Rq(r);o.relativeSelector=!0;let a=e.some(u=>u.some(Qb))?[Dq]:void 0,c=s(e,o,a);if(c===Zo.default.falseFunc)return Zo.default.falseFunc;let A=kq(c,i);if(a&&c!==Zo.default.trueFunc){let{shouldTestNextSiblings:u=!1}=c;return l=>{if(!t(l))return!1;a[0]=l;let d=i.getChildren(l),h=u?[...d,...vq(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function nCe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in F2))throw new Error(`Unknown pseudo-class :${o}(${a})`);return F2[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:_2[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,rCe.parse)(A);return F2.is(t,u,r,n,s)}if(typeof c=="function")return Tq(c,o,a,1),u=>c(u,a)&&t(u);if(o in sE)return sE[o](t,a,r,n);if(o in Sb){let u=Sb[o];return Tq(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var ea=Ae(rE(),1);function _q(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function sCe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case ea.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case ea.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case ea.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()),XEe[e.action](t,e,r)}case ea.SelectorType.Pseudo:return nCe(t,e,r,n,s);case ea.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 ea.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=_q(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=_q(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=_q(A,i));return!1};case ea.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case ea.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case ea.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 ea.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 ea.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function iCe(t,e,r){let n=M2(t,e,r);return kq(n,e.adapter)}function M2(t,e,r){let n=typeof t=="string"?(0,sc.parse)(t):t;return L2(n,e,r)}function oCe(t){return t.type===sc.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(oCe)))}var Rgt={type:sc.SelectorType.Descendant},Dgt={type:"_flexibleDescendant"},kgt={type:sc.SelectorType.Pseudo,name:"scope",data:null};function vgt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===Dq||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(BCe,`\r
|
||||
`)}}).toArray()}var Kq={};Na(Kq,{extract:()=>zpt});function Jpt(t){var e;return typeof t=="string"?{selector:t,value:"textContent"}:{selector:t.selector,value:(e=t.value)!==null&&e!==void 0?e:"textContent"}}function zpt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Jpt(s?n[0]:n),a=typeof o=="function"?o:typeof o=="string"?c=>this._make(c).prop(o):c=>this._make(c).extract(o);if(s)e[r]=this._findBySelector(i,Number.POSITIVE_INFINITY).map((c,A)=>a(A,r,e)).get();else{let c=this._findBySelector(i,1);e[r]=c.length>0?a(c[0],r,e):void 0}}return e}var _d=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}}};_d.prototype.cheerio="[cheerio object]";_d.prototype.splice=Array.prototype.splice;_d.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(_d.prototype,bq,Wq,Jq,zq,jq,Kq);function bCe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=Y0(s),a=t(n,o,i,null);class c extends _d{_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&&$o(u))return u;let f=Y0(h,o),p=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],I=$o(p)?p:new c(p,null,f);if(I._root=I,!u)return new c(void 0,I,f);let m=typeof u=="string"&&Eb(u)?t(u,f,!1,null).children:jpt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(m,I,f);if(m)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let y=u,N=l?typeof l=="string"?Eb(l)?new c([t(l,f,!1,null)],I,f):(y=`${l} ${y}`,I):$o(l)?l:new c(Array.isArray(l)?l:[l],I,f):I;return N?N.find(y):C}return Object.assign(A,gq,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function jpt(t){return!!t.name||t.type===zo.Root||t.type===zo.Text||t.type===zo.Comment}var Kpt=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),ur="\uFFFD",S;(function(t){t[t.EOF=-1]="EOF",t[t.NULL=0]="NULL",t[t.TABULATION=9]="TABULATION",t[t.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",t[t.LINE_FEED=10]="LINE_FEED",t[t.FORM_FEED=12]="FORM_FEED",t[t.SPACE=32]="SPACE",t[t.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",t[t.QUOTATION_MARK=34]="QUOTATION_MARK",t[t.AMPERSAND=38]="AMPERSAND",t[t.APOSTROPHE=39]="APOSTROPHE",t[t.HYPHEN_MINUS=45]="HYPHEN_MINUS",t[t.SOLIDUS=47]="SOLIDUS",t[t.DIGIT_0=48]="DIGIT_0",t[t.DIGIT_9=57]="DIGIT_9",t[t.SEMICOLON=59]="SEMICOLON",t[t.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",t[t.EQUALS_SIGN=61]="EQUALS_SIGN",t[t.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",t[t.QUESTION_MARK=63]="QUESTION_MARK",t[t.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",t[t.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",t[t.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",t[t.GRAVE_ACCENT=96]="GRAVE_ACCENT",t[t.LATIN_SMALL_A=97]="LATIN_SMALL_A",t[t.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(S||(S={}));var Ls={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function q2(t){return t>=55296&&t<=57343}function QCe(t){return t>=56320&&t<=57343}function wCe(t,e){return(t-55296)*1024+9216+e}function Y2(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function V2(t){return t>=64976&&t<=65007||Kpt.has(t)}var W;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
${t.toDisplayList(this.invalid)}`),this.valid.length>0&&(e.length>0&&(e+=`
|
||||
`),e+=`\u2713 Found known Gradle Wrapper JAR files:
|
||||
${t.toDisplayList(this.valid)}`),e}static toDisplayList(e){return` ${e.map(r=>r.toDisplayString()).join(`
|
||||
`)}`}},o_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var Vg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function axe(t){if(t instanceof AggregateError){Kl("Multiple errors returned");for(let e of t.errors)Ui(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof Vg?(Kl(String(t)),t.stack&&$(t.stack)):(Kl(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function cxe(t,e,r){if(!t.doValidateWrappers())return;let n=new VD(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await oxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await qN("All Gradle Wrapper jars are valid",async()=>{P(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new Vg(`At least one Gradle Wrapper Jar failed validation!
|
||||
`)}`}},y_=class{constructor(e,r){this.path=e,this.checksum=r}toDisplayString(){return`${this.checksum} ${this.path}`}};var zg=class extends Error{constructor(e){e instanceof Error?(super(e.message),this.name=e.name,this.stack=e.stack):super(String(e))}};function $xe(t){if(t instanceof AggregateError){$l("Multiple errors returned");for(let e of t.errors)Pi(`Error ${t.errors.indexOf(e)}: ${e.message}`),e.stack&&$(e.stack)}else t instanceof zg?($l(String(t)),t.stack&&$(t.stack)):($l(String(t)),t instanceof Error&&t.stack&&$(t.stack))}async function Xxe(t,e,r){if(!t.doValidateWrappers())return;let n=new o2(r),s=process.env.ALLOWED_GRADLE_WRAPPER_CHECKSUMS?.split(",")||[],i=n.load(),o=await Kxe(e,t.allowSnapshotWrappers(),s,i);if(o.isValid())await KN("All Gradle Wrapper jars are valid",async()=>{H(`Loaded previously validated checksums from cache: ${i.join(", ")}`),$(o.toDisplayString())});else throw $(o.toDisplayString()),new zg(`At least one Gradle Wrapper Jar failed validation!
|
||||
See https://github.com/gradle/actions/blob/main/docs/wrapper-validation.md#validation-failures
|
||||
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import lo from"fs";import Wg from"path";function Axe(t,e,r){let n=Wg.resolve(e,_D);lo.mkdirSync(n,{recursive:!0}),ykt(e),Bkt(t),Oa()&&bkt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function ykt(t){let e=Wg.resolve(t,"init.d");lo.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=Qkt("init-scripts",n),i=Wg.resolve(e,n);lo.writeFileSync(i,s)}}function Bkt(t){let e=wkt();if(e==null)return;let r=Wg.resolve(t,".m2"),n=Wg.resolve(r,"toolchains.xml");if(!lo.existsSync(n))lo.mkdirSync(r,{recursive:!0}),lo.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=lo.readFileSync(n,"utf8"),i=Skt(s,e);lo.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function bkt(t){let e=`org.gradle.logging.level=info
|
||||
${o.toDisplayString()}`);n.save(o.valid.map(a=>a.checksum))}import ho from"fs";import jg from"path";function Zxe(t,e,r){let n=jg.resolve(e,jD);ho.mkdirSync(n,{recursive:!0}),Svt(e),Nvt(t),Ha()&&Tvt(e),r&&pn("GRADLE_ENCRYPTION_KEY",r)}function Svt(t){let e=jg.resolve(t,"init.d");ho.mkdirSync(e,{recursive:!0});let r=["gradle-actions.build-result-capture.init.gradle","gradle-actions.build-result-capture-service.plugin.groovy","gradle-actions.github-dependency-graph.init.gradle","gradle-actions.github-dependency-graph-gradle-plugin-apply.groovy","gradle-actions.inject-develocity.init.gradle"];for(let n of r){let s=xvt("init-scripts",n),i=jg.resolve(e,n);ho.writeFileSync(i,s)}}function Nvt(t){let e=Rvt();if(e==null)return;let r=jg.resolve(t,".m2"),n=jg.resolve(r,"toolchains.xml");if(!ho.existsSync(n))ho.mkdirSync(r,{recursive:!0}),ho.writeFileSync(n,e),$(`Wrote default JDK locations to ${n}`);else{let s=ho.readFileSync(n,"utf8"),i=Dvt(s,e);ho.writeFileSync(n,i),$(`Merged default JDK locations into ${n}`)}}function Tvt(t){let e=`org.gradle.logging.level=info
|
||||
org.gradle.logging.stacktrace=all
|
||||
`,r=Wg.resolve(t,"gradle.properties");if(lo.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=lo.readFileSync(r,"utf-8");lo.writeFileSync(r,`${e}
|
||||
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),lo.writeFileSync(r,e)}function Qkt(...t){let e=import.meta.dirname,r=Wg.resolve(e,"..","..","..","sources","src","resources",...t);return lo.readFileSync(r,"utf8")}function wkt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
|
||||
`,r=jg.resolve(t,"gradle.properties");if(ho.existsSync(r)){$(`Merged --info and --stacktrace into existing ${r} file`);let n=ho.readFileSync(r,"utf-8");ho.writeFileSync(r,`${e}
|
||||
${n}`)}else $(`Created a new ${r} with --info and --stacktrace`),ho.writeFileSync(r,e)}function xvt(...t){let e=import.meta.dirname,r=jg.resolve(e,"..","..","..","sources","src","resources",...t);return ho.readFileSync(r,"utf8")}function Rvt(){let t=Object.entries(process.env).filter(([e])=>e.startsWith("JAVA_HOME_")&&process.env[e]).map(([e,r])=>({jdkVersion:e.match(/JAVA_HOME_(\d+)_/)?.[1]??null,jdkPath:r})).filter(e=>e.jdkVersion!==null);return t.length===0?null:`<?xml version="1.0" encoding="UTF-8"?>
|
||||
<toolchains>
|
||||
<!-- JDK Toolchains installed by default on GitHub-hosted runners -->
|
||||
${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
|
||||
@@ -294,55 +294,55 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
|
||||
</toolchain>`).join(`
|
||||
`)}
|
||||
</toolchains>
|
||||
`}function Skt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var ez="GRADLE_BUILD_ACTION_SETUP_COMPLETED",Nkt="GRADLE_USER_HOME";async function uxe(t,e,r){let n=await lxe(),s=await xkt();return process.env[ez]?($("Gradle setup only performed on first gradle/actions step in workflow."),!1):(pn(ez,!0),bu(ez,!0),bu(Nkt,s),Axe(n,s,t.getCacheEncryptionKey()),await(await Kme(t)).restore(s,Tkt(t)),await cxe(r,Gu(),s),await fme(e),!0)}function Tkt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function xkt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Gu();return rz.resolve(r,t)}let e=rz.resolve(await lxe(),".gradle");if(tz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(a_.platform()==="win32"&&e.startsWith("C:\\")&&tz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function lxe(){let t=await gy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),a_.homedir();let n=r[1];return P(`Determined user.home from java -version output: '${n}'`),n}var Xxe=Ae(Nxe(),1),az=Ae(Ry(),1);import*as zE from"fs";import*as Yxe from"os";import*as Ah from"path";import*as iz from"crypto";import*as zg from"fs";var qkt=Ae(Ry(),1);import*as qQ from"path";var u_=Ae(Ry(),1);import*as xxe from"stream";import*as Rxe from"util";import{ok as Vkt}from"assert";var Txe=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())})},c_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return Txe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return Txe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Jg=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())})},A_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},Wkt=process.platform==="win32",mQr=process.platform==="darwin",Jkt="actions/tool-cache";function Dxe(t,e,r,n){return Jg(this,void 0,void 0,function*(){e=e||qQ.join(vxe(),iz.randomUUID()),yield cf(qQ.dirname(e)),P(`Downloading ${t}`),P(`Destination ${e}`);let s=3,i=sz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=sz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new c_(s,i,o).execute(()=>Jg(this,void 0,void 0,function*(){return yield zkt(t,e||"",r,n)}),c=>!(c instanceof A_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function zkt(t,e,r,n){return Jg(this,void 0,void 0,function*(){if(zg.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Jkt,[],{allowRetries:!1});r&&(P("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new A_(i.message.statusCode);throw P(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=Rxe.promisify(xxe.pipeline),c=sz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,zg.createWriteStream(e)),P("download complete"),A=!0,e}finally{if(!A){P("download failed");try{yield uce(e)}catch(u){P(`Failed to delete '${e}'. ${u.message}`)}}}})}function kxe(t,e){return Jg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield $kt(e),Wkt?yield jkt(t,e):yield Kkt(t,e),e})}function jkt(t,e){return Jg(this,void 0,void 0,function*(){let r=
Line truncated
|
||||
`," Line feed \\n"]]),lRe=new Map([...qz,["\\"," Backslash \\"],["/"," Forward slash /"]]);function dRe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of lRe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
`}function Dvt(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var bz="GRADLE_BUILD_ACTION_SETUP_COMPLETED",kvt="GRADLE_USER_HOME";async function eRe(t,e,r){let n=await tRe(),s=await _vt();return process.env[bz]?($("Gradle setup only performed on first gradle/actions step in workflow."),!1):(pn(bz,!0),Qu(bz,!0),Qu(kvt,s),Zxe(n,s,t.getCacheEncryptionKey()),await(await O0e(t)).restore(s,vvt(t)),await Xxe(r,qu(),s),await s0e(e),!0)}function vvt(t){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function _vt(){let t=process.env.GRADLE_USER_HOME;if(t){let r=qu();return wz.resolve(r,t)}let e=wz.resolve(await tRe(),".gradle");if(Qz.existsSync(e))return $(`Gradle User Home already exists at ${e}`),pn("GRADLE_USER_HOME",e),e;if(B_.platform()==="win32"&&e.startsWith("C:\\")&&Qz.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return $(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),pn("GRADLE_USER_HOME",r),r}return pn("GRADLE_USER_HOME",e),e}async function tRe(){let t=await yy("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return $("Could not determine user.home from java -version output. Using os.homedir()."),B_.homedir();let n=r[1];return H(`Determined user.home from java -version output: '${n}'`),n}var GRe=Ae(mRe(),1),Rz=Ae(My(),1);import*as eC from"fs";import*as _Re from"os";import*as lh from"path";import*as Tz from"crypto";import*as $g from"fs";var zvt=Ae(My(),1);import*as KQ from"path";var w_=Ae(My(),1);import*as CRe from"stream";import*as IRe from"util";import{ok as Kvt}from"assert";var ERe=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())})},b_=class{constructor(e,r,n){if(e<1)throw new Error("max attempts should be greater than or equal to 1");if(this.maxAttempts=e,this.minSeconds=Math.floor(r),this.maxSeconds=Math.floor(n),this.minSeconds>this.maxSeconds)throw new Error("min seconds should be less than or equal to max seconds")}execute(e,r){return ERe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;$(i.message)}let s=this.getSleepAmount();$(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return ERe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var Kg=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{A(n.next(u))}catch(l){o(l)}}function c(u){try{A(n.throw(u))}catch(l){o(l)}}function A(u){u.done?i(u.value):s(u.value).then(a,c)}A((n=n.apply(t,e||[])).next())})},Q_=class extends Error{constructor(e){super(`Unexpected HTTP response: ${e}`),this.httpStatusCode=e,Object.setPrototypeOf(this,new.target.prototype)}},$vt=process.platform==="win32",Gwr=process.platform==="darwin",Xvt="actions/tool-cache";function yRe(t,e,r,n){return Kg(this,void 0,void 0,function*(){e=e||KQ.join(bRe(),Tz.randomUUID()),yield uf(KQ.dirname(e)),H(`Downloading ${t}`),H(`Destination ${e}`);let s=3,i=Nz("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Nz("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new b_(s,i,o).execute(()=>Kg(this,void 0,void 0,function*(){return yield Zvt(t,e||"",r,n)}),c=>!(c instanceof Q_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function Zvt(t,e,r,n){return Kg(this,void 0,void 0,function*(){if($g.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new Lr(Xvt,[],{allowRetries:!1});r&&(H("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new Q_(i.message.statusCode);throw H(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=IRe.promisify(CRe.pipeline),c=Nz("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,$g.createWriteStream(e)),H("download complete"),A=!0,e}finally{if(!A){H("download failed");try{yield vce(e)}catch(u){H(`Failed to delete '${e}'. ${u.message}`)}}}})}function BRe(t,e){return Kg(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return e=yield r_t(e),$vt?yield e_t(t,e):yield t_t(t,e),e})}function e_t(t,e){return Kg(this,void 0,void 0,function*(){let r=
Line truncated
|
||||
`," Line feed \\n"]]),tDe=new Map([...dj,["\\"," Backslash \\"],["/"," Forward slash /"]]);function rDe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of tDe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(lRe.values()).toString()}
|
||||
Invalid characters include: ${Array.from(tDe.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.`);$("Artifact name is valid!")}function Yz(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of qz)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.`);$("Artifact name is valid!")}function hj(t){if(!t)throw new Error("Provided file path input during validation is empty");for(let[e,r]of dj)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(qz.values()).toString()}
|
||||
Invalid characters include: ${Array.from(dj.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 pRe=Ae(gRe(),1);function GA(){return`@actions/artifact-${pRe.version}`}var XE=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"}},fl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},gl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},uh=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"}},pl=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"}};pl.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Kg=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"}};Kg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var $g=class extends Error{};$g.prototype.name="InvalidTokenError";function yvt(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 Bvt(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 yvt(e)}catch{return atob(e)}}function mRe(t,e){if(typeof t!="string")throw new $g("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 $g(`Invalid token specified: missing part #${r+1}`);let s;try{s=Bvt(n)}catch(i){throw new $g(`Invalid token specified: invalid base64 for part #${r+1} (${i.message})`)}try{return JSON.parse(s)}catch(i){throw new $g(`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 qA(){let t=h_(),e=mRe(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 P(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),P(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw g_}function ERe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Ua(r),Ua(encodeURIComponent(r)))}catch(e){P(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function CRe(t){if(typeof t!="object"||t===null){P("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&ERe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&ERe(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())})},Vz=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=h_();this.baseUrl=eRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new Bu(i)])}request(e,r,n,s){return p_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;P(`[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(),P(`[Response] - ${a.message.statusCode}`),P(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(CRe(A),P(`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(Kg.isUsageErrorMessage(A.msg))throw new Kg;n=`${n}: ${A.msg}`}}catch(a){if(a instanceof SyntaxError&&P(`Raw Body: ${s}`),a instanceof Kg)throw a;if(pl.isNetworkErrorCode(a?.code))throw new pl(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);$(`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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.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 YA(t){let e=new Vz(GA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new f_(e)}import*as ZE from"fs";import{normalize as IRe,resolve as yRe}from"path";function BRe(t){if(!ZE.existsSync(t))throw ne
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("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);$(`Redirecting to blob download url: ${v3e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield _3e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,P(`Computed digest: ${l.sha256Digest}`),P(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function L3e(){return JC(this,arguments,void 0,function*(t=tRe()){return(yield ZVt(t))?P(`Artifact destination folder already exists: ${t}`):(P(`Artifact destination folder does not exist, creating: ${t}`),yield T3e.mkdir(t,{recursive:!0})),t})}var t7t=5,r7t=[400,401,403,404,422];function zC(t,e=t7t,r=r7t){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 P(`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 U3e="6.0.0";function Sp(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})})}Sp.VERSION=U3e;var H3e=Ae(P3e(),1),G3e=Ae(vO(),1),n7t="0.0.0-development";async function O3e(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 s7t(t,e,r,n){let s=new H3e.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(i7t.bind(null,t,e,r),n)}async function i7t(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 G3e.RequestError(s.data.errors[0].message,500,{request:n,response:s});return O3e(t,e,i,n)}return s}function Np(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",O3e.bind(null,r,t)),t.hook.wrap("request",s7t.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Np.VERSION=n7t;var q3e=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 bM(t,e,r,n,s){return q3e(this,void 0,void 0,function*(){var i;let[o,a]=zC(uf),c={log:void 0,userAgent:GA(),previews:void 0,retry:o,request:a},u=yield Ha(s,c,Np,Sp).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 fl(`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 gl(`Artifact not found for name: ${t}
|
||||
`)}var oDe=Ae(iDe(),1);function qA(){return`@actions/artifact-${oDe.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"}},gl=class extends Error{constructor(e){super(e),this.name="InvalidResponseError"}},pl=class extends Error{constructor(e="Artifact not found"){super(e),this.name="ArtifactNotFoundError"}},dh=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"}},ml=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"}};ml.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 S_t(t){return decodeURIComponent(atob(t).replace(/(.)/g,(e,r)=>{let n=r.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n="0"+n),"%"+n}))}function N_t(t){let e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return S_t(e)}catch{return atob(e)}}function aDe(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=N_t(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 R_=new Error("Failed to get backend IDs: The provided JWT token is invalid and/or missing claims");function YA(){let t=T_(),e=aDe(t);if(!e.scp)throw R_;let r=e.scp.split(" ");if(r.length===0)throw R_;for(let n of r){let s=n.split(":");if(s?.[0]!=="Actions.Results")continue;if(s.length!==3)throw R_;let i={workflowRunBackendId:s[1],workflowJobRunBackendId:s[2]};return H(`Workflow Run Backend ID: ${i.workflowRunBackendId}`),H(`Workflow Job Run Backend ID: ${i.workflowJobRunBackendId}`),i}throw R_}function cDe(t){if(t)try{let r=new URL(t).searchParams.get("sig");r&&(Pa(r),Pa(encodeURIComponent(r)))}catch(e){H(`Failed to parse URL: ${t} ${e instanceof Error?e.message:String(e)}`)}}function ADe(t){if(typeof t!="object"||t===null){H("body is not an object or is null");return}"signed_upload_url"in t&&typeof t.signed_upload_url=="string"&&cDe(t.signed_upload_url),"signed_url"in t&&typeof t.signed_url=="string"&&cDe(t.signed_url)}var D_=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())})},fj=class{constructor(e,r,n,s){this.maxAttempts=5,this.baseRetryIntervalMilliseconds=3e3,this.retryMultiplier=1.5;let i=T_();this.baseUrl=YRe(),r&&(this.maxAttempts=r),n&&(this.baseRetryIntervalMilliseconds=n),s&&(this.retryMultiplier=s),this.httpClient=new Lr(e,[new bu(i)])}request(e,r,n,s){return D_(this,void 0,void 0,function*(){let i=new URL(`/twirp/${e}/${r}`,this.baseUrl).href;H(`[Request] ${r} ${i}`);let o={"Content-Type":n};try{let{body:a}=yield this.retryableRequest(()=>D_(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 D_(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(),H(`[Response] - ${a.message.statusCode}`),H(`Headers: ${JSON.stringify(a.message.headers,null,2)}`);let A=JSON.parse(s);if(ADe(A),H(`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&&H(`Raw Body: ${s}`),a instanceof Zg)throw a;if(ml.isNetworkErrorCode(a?.code))throw new ml(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);$(`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?[er.BadGateway,er.GatewayTimeout,er.InternalServerError,er.ServiceUnavailable,er.TooManyRequests].includes(e):!1}sleep(e){return D_(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 VA(t){let e=new fj(qA(),t?.maxAttempts,t?.retryIntervalMs,t?.retryMultiplier);return new x_(e)}import*as iC from"fs";import{normalize as uDe,resolve as lDe}from"path";function dDe(t){if(!iC.existsSync(t))throw ne
Line truncated
|
||||
Are you trying to download from a different run? Try specifying a github-token with \`actions:read\` scope.`);c.length>1&&Ve("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);$(`Redirecting to blob download url: ${b8e(u)}`);try{$(`Starting download of artifact to: ${r}`);let l=yield Q8e(u,r,e?.skipDecompress);$("Artifact download completed successfully."),e?.expectedHash&&e?.expectedHash!==l.sha256Digest&&(s=!0,H(`Computed digest: ${l.sha256Digest}`),H(`Expected digest: ${e.expectedHash}`))}catch(l){throw new Error(`Unable to download and extract artifact: ${l.message}`)}return{downloadPath:r,digestMismatch:s}})}function N8e(){return ZC(this,arguments,void 0,function*(t=VRe()){return(yield sWt(t))?H(`Artifact destination folder already exists: ${t}`):(H(`Artifact destination folder does not exist, creating: ${t}`),yield E8e.mkdir(t,{recursive:!0})),t})}var oWt=5,aWt=[400,401,403,404,422];function eI(t,e=oWt,r=aWt){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 H(`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 T8e="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=T8e;var D8e=Ae(x8e(),1),k8e=Ae(zO(),1),cWt="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 AWt(t,e,r,n){let s=new D8e.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(uWt.bind(null,t,e,r),n)}async function uWt(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 k8e.RequestError(s.data.errors[0].message,500,{request:n,response:s});return R8e(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",R8e.bind(null,r,t)),t.hook.wrap("request",AWt.bind(null,r,t))),{retry:{retryRequest:(n,s,i)=>(n.request.request=Object.assign({},n.request.request,{retries:s,retryAfter:i}),n)}}}Rp.VERSION=cWt;var v8e=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 UM(t,e,r,n,s){return v8e(this,void 0,void 0,function*(){var i;let[o,a]=eI(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},u=yield Ga(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 gl(`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 pl(`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],P(`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 Y3e(t){return q3e(this,void 0,void 0,function*(){var e;let r=YA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=qA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new gl(`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],H(`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 _8e(t){return v8e(this,void 0,void 0,function*(){var e;let r=VA(),{workflowRunBackendId:n,workflowJobRunBackendId:s}=YA(),i={workflowRunBackendId:n,workflowJobRunBackendId:s,nameFilter:dn.create({value:t})},o=yield r.ListArtifacts(i);if(o.artifacts.length===0)throw new pl(`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],P(`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?ho.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var V3e=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 W3e(t,e,r,n,s){return V3e(this,void 0,void 0,function*(){var i;let[o,a]=zC(uf),c={log:void 0,userAgent:GA(),previews:void 0,retry:o,request:a},A=Ha(s,c,Np,Sp),u=yield bM(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 fl(`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 J3e(t){return V3e(this,void 0,void 0,function*(){let e=YA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=qA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new gl(`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],P(`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 $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}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())})},QM=sRe(),wM=100,o7t=Math.ceil(QM/wM);function j3e(t,e,r,n){return z3e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=zC(uf),d={log:void 0,userAgent:GA(),previews:void 0,retry:u,request:l},h=Ha(a,d,Np,Sp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:wM,page:f}),I=Math.ceil(p.total_count/wM),m=p.total_count;m>QM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${QM}. Results will be incomplete as only the first ${QM} artifacts will be returned`),I=o7t);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){P(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:wM,page:f});for(let y of C.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=$3e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function K3e(){return z3e(this,arguments,void 0,function*(t=!1){let e=YA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=qA(),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?ho.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=$3e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function $3e(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 l1=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},Tp=class{uploadArtifact(e,r,n,s){return l1(this,void 0,void 0,function*(){try{if(jE())throw new uh;return JOe(e,r,n,s)}catch(i){throw Ve(`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],H(`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?fo.toDate(a.createdAt):void 0,digest:(e=a.digest)===null||e===void 0?void 0:e.value}}})}var F8e=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 M8e(t,e,r,n,s){return F8e(this,void 0,void 0,function*(){var i;let[o,a]=eI(df),c={log:void 0,userAgent:qA(),previews:void 0,retry:o,request:a},A=Ga(s,c,Rp,xp),u=yield UM(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 gl(`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 L8e(t){return F8e(this,void 0,void 0,function*(){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),s={workflowRunBackendId:r,workflowJobRunBackendId:n,nameFilter:dn.create({value:t})},i=yield e.ListArtifacts(s);if(i.artifacts.length===0)throw new pl(`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],H(`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 $(`Artifact '${t}' (ID: ${c.artifactId}) deleted`),{id:Number(c.artifactId)}})}var U8e=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())})},PM=zRe(),OM=100,lWt=Math.ceil(PM/OM);function P8e(t,e,r,n){return U8e(this,arguments,void 0,function*(s,i,o,a,c=!1){$(`Fetching artifact list for workflow run ${s} in repository ${i}/${o}`);let A=[],[u,l]=eI(df),d={log:void 0,userAgent:qA(),previews:void 0,retry:u,request:l},h=Ga(a,d,Rp,xp),f=1,{data:p}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f}),I=Math.ceil(p.total_count/OM),m=p.total_count;m>PM&&(Ve(`Workflow run ${s} has ${m} artifacts, exceeding the limit of ${PM}. Results will be incomplete as only the first ${PM} artifacts will be returned`),I=lWt);for(let C of p.artifacts)A.push({name:C.name,id:C.id,size:C.size_in_bytes,createdAt:C.created_at?new Date(C.created_at):void 0,digest:C.digest});for(f++,f;f<=I;f++){H(`Fetching page ${f} of artifact list`);let{data:C}=yield h.request("GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",{owner:i,repo:o,run_id:s,per_page:OM,page:f});for(let y of C.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=H8e(A)),$(`Found ${A.length} artifact(s)`),{artifacts:A}})}function O8e(){return U8e(this,arguments,void 0,function*(t=!1){let e=VA(),{workflowRunBackendId:r,workflowJobRunBackendId:n}=YA(),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?fo.toDate(a.createdAt):void 0,digest:(c=a.digest)===null||c===void 0?void 0:c.value}});return t&&(o=H8e(o)),$(`Found ${o.length} artifact(s)`),{artifacts:o}})}function H8e(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 E1=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())})},dWt=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},Dp=class{uploadArtifact(e,r,n,s){return E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;return L3e(e,r,n,s)}catch(i){throw Ve(`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 l1(this,void 0,void 0,function*(){try{if(jE())throw new uh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=a7t(r,["findBy"]);return F3e(e,n,s,i,o)}return M3e(e,r)}catch(n){throw Ve(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,token:i}}=r,o=dWt(r,["findBy"]);return w8e(e,n,s,i,o)}return S8e(e,r)}catch(n){throw Ve(`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 l1(this,void 0,void 0,function*(){try{if(jE())throw new uh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return j3e(r,n,s,i,e?.latest)}return K3e(e?.latest)}catch(r){throw Ve(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(e?.findBy){let{findBy:{workflowRunId:r,repositoryOwner:n,repositoryName:s,token:i}}=e;return P8e(r,n,s,i,e?.latest)}return O8e(e?.latest)}catch(r){throw Ve(`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 l1(this,void 0,void 0,function*(){try{if(jE())throw new uh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return bM(e,n,s,i,o)}return Y3e(e)}catch(n){throw Ve(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{workflowRunId:n,repositoryOwner:s,repositoryName:i,token:o}}=r;return UM(e,n,s,i,o)}return _8e(e)}catch(n){throw Ve(`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 l1(this,void 0,void 0,function*(){try{if(jE())throw new uh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return W3e(e,i,n,s,o)}return J3e(e)}catch(n){throw Ve(`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 E1(this,void 0,void 0,function*(){try{if(tC())throw new dh;if(r?.findBy){let{findBy:{repositoryOwner:n,repositoryName:s,workflowRunId:i,token:o}}=r;return M8e(e,i,n,s,o)}return L8e(e)}catch(n){throw Ve(`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 lRr=new Tp;import*as SM from"path";import HX from"fs";var Z3e="dependency-graph_";async function e8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await A7t(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",E7t()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Gu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function t8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await X3e(t,!1);return;case"generate-submit-and-upload":await X3e(t,!0);return;case"generate-and-upload":await u7t(t)}}catch(r){n8e(t,e,r)}}async function A7t(t){if(YX()){$("Dependency graph not supported in the ACT environment.");return}try{await r8e(await l7t(t))}catch(e){n8e(t,"download-and-submit",e)}}async function X3e(t,e){if(YX()){$("Dependency graph not supported in the ACT environment.");return}let r=await GX();try{await r8e(r)}catch(n){try{await OX(r,t)}catch(s){$(String(s))}throw n}e&&await OX(r,t)}async function u7t(t){if(YX()){$("Dependency graph not supported in the ACT environment.");return}await OX(await GX(),t)}async function l7t(t){let e=ri.payload.workflow_run?{token:FD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new Tp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Z3e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return GX()}async function GX(){let r=(await(await EG(`${f7t()}/**/*.json`)).glob()).filter(n=>!g7t(n));return r.forEach(p7t),$(`Found dependency graph files: ${r.join(", ")}`),r}async function OX(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=Gu(),n=new Tp;for(let s of t){let i=qX(s);$(`Uploading dependency graph file: ${i}`);let o=`${Z3e}${SM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function r8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await h7t(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=d7t(e,r)),r}}function d7t(t,e){let n=`Dependency submission failed for ${qX(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 MDr=new Dp;import*as HM from"path";import uZ from"fs";var q8e="dependency-graph_";async function Y8e(t){let e=t.getDependencyGraphOption();if(e==="disabled"){pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await fWt(t);return}$("Enabling dependency graph generation"),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),zs("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),zs("GITHUB_DEPENDENCY_GRAPH_JOB_ID",ri.runId.toString()),zs("GITHUB_DEPENDENCY_GRAPH_REF",ri.ref),zs("GITHUB_DEPENDENCY_GRAPH_SHA",bWt()),zs("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",qu()),zs("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),zs("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),zs("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),zs("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),zs("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),zs("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),zs("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),zs("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function zs(t,e){process.env[t]||e!==void 0&&pn(t,e)}async function V8e(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await G8e(t,!1);return;case"generate-submit-and-upload":await G8e(t,!0);return;case"generate-and-upload":await gWt(t)}}catch(r){J8e(t,e,r)}}async function fWt(t){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}try{await W8e(await pWt(t))}catch(e){J8e(t,"download-and-submit",e)}}async function G8e(t,e){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}let r=await lZ();try{await W8e(r)}catch(n){try{await AZ(r,t)}catch(s){$(String(s))}throw n}e&&await AZ(r,t)}async function gWt(t){if(hZ()){$("Dependency graph not supported in the ACT environment.");return}await AZ(await lZ(),t)}async function pWt(t){let e=ri.payload.workflow_run?{token:KD(),workflowRunId:ri.payload.workflow_run.id,repositoryName:ri.repo.repo,repositoryOwner:ri.repo.owner}:void 0,r=new Dp,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(q8e)),s=t.getDownloadArtifactName();s&&($(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});$(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return lZ()}async function lZ(){let r=(await(await HG(`${CWt()}/**/*.json`)).glob()).filter(n=>!IWt(n));return r.forEach(yWt),$(`Found dependency graph files: ${r.join(", ")}`),r}async function AZ(t,e){if(t.length===0){$("No dependency graph files found to upload.");return}let r=qu(),n=new Dp;for(let s of t){let i=dZ(s);$(`Uploading dependency graph file: ${i}`);let o=`${q8e}${HM.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function W8e(t){if(t.length===0){$("No dependency graph files found to submit.");return}for(let e of t)try{await EWt(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=mWt(e,r)),r}}function mWt(t,e){let n=`Dependency submission failed for ${dZ(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 h7t(t){let e=m7t(),r=HX.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=qX(t);yce(`Submitted ${i}: ${s.data.message}`)}function f7t(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function g7t(t){let e=`${t}.processed`;return HX.existsSync(e)}function p7t(t){let e=`${t}.processed`;HX.writeFileSync(e,"")}function n8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new Vg(r);Ve(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function m7t(){return Ha(FD())}function qX(t){let e=Gu();return SM.relative(e,t)}function E7t(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function YX(){return process.env.ACT!==void 0}function VX(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(I7t(o[1],o[6],o[0]));while(o!==null);return i}function I7t(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function y7t(t=process.platform){return t==="win32"?50:0}async function s8e(t=process.platform){let e=y7t(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function B7t(){try{lme("gradle/actions/dependency-submission"),await uxe(new _0,new Vo,new vD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new RD;if(await e8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new kD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
|
||||
`:n}async function EWt(t){let e=BWt(),r=uZ.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=ri.repo.owner,n.repo=ri.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=dZ(t);Yce(`Submitted ${i}: ${s.data.message}`)}function CWt(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function IWt(t){let e=`${t}.processed`;return uZ.existsSync(e)}function yWt(t){let e=`${t}.processed`;uZ.writeFileSync(e,"")}function J8e(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new zg(r);Ve(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function BWt(){return Ga(KD())}function dZ(t){let e=qu();return HM.relative(e,t)}function bWt(){let t=ri;return["pull_request","pull_request_comment","pull_request_review","pull_request_review_comment"].includes(t.eventName)?t.payload.pull_request.head.sha:t.sha}function hZ(){return process.env.ACT!==void 0}function fZ(t,e,r){var n=/([^\s'"]([^\s'"]*(['"])([^\3]*?)\3)+[^\s'"]*)|[^\s'"]+|(['"])([^\5]*?)\5/gi,s=t,i=[];e&&i.push(e),r&&i.push(r);var o;do o=n.exec(s),o!==null&&i.push(wWt(o[1],o[6],o[0]));while(o!==null);return i}function wWt(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var r=0;r<t.length;r++){var n=t[r];if(typeof n=="string")return n}}function SWt(t=process.platform){return t==="win32"?50:0}async function z8e(t=process.platform){let e=SWt(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function NWt(){try{t0e("gradle/actions/dependency-submission"),await eRe(new O0,new Wo,new zD);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new VD;if(await Y8e(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new JD,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
|
||||
-Dorg.gradle.configureondemand=false
|
||||
-Dorg.gradle.dependency.verification=off
|
||||
-Dorg.gradle.unsafe.isolated-projects=false
|
||||
${n}
|
||||
${s}
|
||||
`,o=VX(i);await Zxe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await t8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Ame()}catch(t){axe(t)}await s8e()}B7t();export{B7t as run};
|
||||
`,o=fZ(i);await qRe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await V8e(e),pn("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),Zme()}catch(t){$xe(t)}await z8e()}NWt();export{NWt as run};
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+4
-4
@@ -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": ";s1BAAA,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": ";s1BAAA,IAAAA,IAAAC,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,IAAUH,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,IAAUH,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,IAAUH,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,MAAA,CAAAA,IAAO,QAAU,QCAjB,IAAAC,GAAAC,EAAA,CAAAC,IAAAC,MAAA,CAAAA,IAAO,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
|
||||
}
|
||||
Reference in new issue
Block a user