mirror of
https://github.com/gradle/actions.git
synced 2026-11-08 19:14:54 +00:00
[bot] Update dist directory
This commit is contained in:
6 files changed
+134
-134
No files matched your search
+43
-43
@@ -1,9 +1,9 @@
|
||||
import {createRequire} from 'module';const require=createRequire(import.meta.url);
|
||||
var bWe=Object.create;var q3=Object.defineProperty;var QWe=Object.getOwnPropertyDescriptor;var wWe=Object.getOwnPropertyNames;var NWe=Object.getPrototypeOf,xWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},SWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wWe(e))!xWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=QWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?bWe(NWe(t)):{},SWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var tce=y(L0=>{"use strict";var Nsr=Q("net"),PWe=Q("tls"),W3=Q("http"),Zae=Q("https"),MWe=Q("events"),xsr=Q("assert"),FWe=Q("util");L0.httpOverHttp=LWe;L0.httpsOverHttp=_We;L0.httpOverHttps=UWe;L0.httpsOverHttps=OWe;function LWe(t){var e=new id(t);return e.request=W3.request,e}function _We(t){var e=new id(t);return e.request=W3.request,e.createSocket=$ae,e.defaultPort=443,e}function UWe(t){var e=new id(t);return e.request=Zae.request,e}function OWe(t){var e=new id(t);return e.request=Zae.request,e.createSocket=$ae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=ece(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)})}FWe.inherits(id,MWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,ece(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)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),zh("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){zh("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){zh("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 zh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),zh(`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)}};id.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 $ae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=PWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function ece(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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 zh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?zh=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)}:zh=function(){};L0.debug=zh});var V3=y((Tsr,rce)=>{rce.exports=tce()});var Xr=y((Rsr,nce)=>{nce.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 or=y((Dsr,Sce)=>{"use strict";var sce=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sce]===!0}[sce]=!0},ice=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ice]===!0}[ice]=!0},oce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[oce]===!0}[oce]=!0},ace=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[ace]===!0}[ace]=!0},cce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[cce]===!0}[cce]=!0},Ace=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function rVe(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(OJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function nVe(){return"allowed"}function sVe(){return"success"}function iVe(){return"success"}function oVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function aVe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":rR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function J0(t,e){return t}function cVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:J0(t.domainLookupStartTime,r),domainLookupEndTime:J0(t.domainLookupEndTime,r),connectionStartTime:J0(t.connectionStartTime,r),connectionEndTime:J0(t.connectionEndTime,r),secureConnectionStartTime:J0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function AVe(t){return J0(zJe.now(),t)}function uVe(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 qAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lVe(t){return{referrerPolicy:t.referrerPolicy}}function dVe(t){let e=t.referrerPolicy;pp(e);let r=null;if(t.referrer==="client"){let a=FAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=rR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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=Hb(t);return rR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return pp(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 Ob(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 hVe(t,e){if(tR===void 0)return!0;let r=GAe(e);if(r==="no metadata"||r.length===0)return!0;let n=mVe(r),s=pVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=tR.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)),gVe(c,a))return!0}return!1}var fVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=fVe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_Ae.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mVe(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 pVe(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 gVe(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 EVe(t){}function rR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function yVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function CVe(t){return t.controller.state==="aborted"}function IVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function BVe(t){return VJe[t.toLowerCase()]??t}function bVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return pp(typeof e=="string"),e}var QVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
var bWe=Object.create;var q3=Object.defineProperty;var QWe=Object.getOwnPropertyDescriptor;var wWe=Object.getOwnPropertyNames;var NWe=Object.getPrototypeOf,xWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},SWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of wWe(e))!xWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=QWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?bWe(NWe(t)):{},SWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var tce=y(L0=>{"use strict";var Ssr=Q("net"),PWe=Q("tls"),W3=Q("http"),Zae=Q("https"),MWe=Q("events"),Tsr=Q("assert"),FWe=Q("util");L0.httpOverHttp=LWe;L0.httpsOverHttp=_We;L0.httpOverHttps=UWe;L0.httpsOverHttps=OWe;function LWe(t){var e=new id(t);return e.request=W3.request,e}function _We(t){var e=new id(t);return e.request=W3.request,e.createSocket=$ae,e.defaultPort=443,e}function UWe(t){var e=new id(t);return e.request=Zae.request,e}function OWe(t){var e=new id(t);return e.request=Zae.request,e.createSocket=$ae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=ece(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)})}FWe.inherits(id,MWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,ece(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)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),zh("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){zh("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){zh("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 zh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),zh(`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)}};id.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 $ae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=PWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function ece(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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 zh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?zh=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)}:zh=function(){};L0.debug=zh});var V3=y((Dsr,rce)=>{rce.exports=tce()});var Xr=y((ksr,nce)=>{nce.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 or=y((vsr,Sce)=>{"use strict";var sce=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[sce]===!0}[sce]=!0},ice=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ice]===!0}[ice]=!0},oce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[oce]===!0}[oce]=!0},ace=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[ace]===!0}[ace]=!0},cce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[cce]===!0}[cce]=!0},Ace=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function rVe(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(OJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function nVe(){return"allowed"}function sVe(){return"success"}function iVe(){return"success"}function oVe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function aVe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":rR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function J0(t,e){return t}function cVe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:J0(t.domainLookupStartTime,r),domainLookupEndTime:J0(t.domainLookupEndTime,r),connectionStartTime:J0(t.connectionStartTime,r),connectionEndTime:J0(t.connectionEndTime,r),secureConnectionStartTime:J0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function AVe(t){return J0(zJe.now(),t)}function uVe(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 qAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function lVe(t){return{referrerPolicy:t.referrerPolicy}}function dVe(t){let e=t.referrerPolicy;pp(e);let r=null;if(t.referrer==="client"){let a=FAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=rR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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=Hb(t);return rR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return pp(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 Ob(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 hVe(t,e){if(tR===void 0)return!0;let r=GAe(e);if(r==="no metadata"||r.length===0)return!0;let n=mVe(r),s=pVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=tR.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)),gVe(c,a))return!0}return!1}var fVe=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function GAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=fVe.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();_Ae.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function mVe(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 pVe(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 gVe(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 EVe(t){}function rR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function yVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function CVe(t){return t.controller.state==="aborted"}function IVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function BVe(t){return VJe[t.toLowerCase()]??t}function bVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return pp(typeof e=="string"),e}var QVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function YAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function eje(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function tje(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 rje(t,e){sR(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&&iR(t,ZVe,i)||i.position===t.length-4&&iR(t,$Ve,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=nje(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",eje(u)||(u=""),h=new KVe([d],A,{type:u})):h=zVe(Buffer.from(d)),sR(rue(c)),sR(typeof h=="string"&&rue(h)||JVe(h)),s.push(VVe(c,h,A))}}function nje(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=j0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=X4(o,!0,!0,a=>a===9||a===32),!WVe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,j0(a=>a===32||a===9,t,e),YVe(o)){case"content-disposition":{if(r=n=null,!iR(t,XVe,e)||(e.position+=17,r=iue(t,e),r===null))return"failure";if(iR(t,sue,e)){let a=e.position+sue.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=iue(t,e),n===null))return"failure"}break}case"content-type":{let a=j0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),s=nue(a);break}case"content-transfer-encoding":{let a=j0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),i=nue(a);break}default:j0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function iue(t,e){sR(t[e.position-1]===34);let r=j0(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 j0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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 iR(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}oue.exports={multipartFormDataParser:rje,validateBoundary:tje}});var Z0=y((rir,gue)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:sje,isBlobLike:cue,isReadableStreamLike:ije,readableStreamClose:oje,createDeferredPromise:aje,fullyReadBody:cje,extractMimeType:Aje,utf8DecodeBytes:lue}=qo(),{FormData:Aue}=Gb(),{kState:X0}=Wh(),{webidl:uje}=Ws(),{Blob:lje}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:due,isDisturbed:dje}=Q("node:stream"),{isArrayBuffer:hje}=Q("node:util/types"),{serializeAMimeType:fje}=ro(),{multipartFormDataParser:mje}=aue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var oR=new TextEncoder;function pje(){}var hue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fue;hue&&(fue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dje(e)&&!due(e)&&e.cancel("Response object has been garbage collected").catch(pje)}));function mue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?oR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>oje(c))},start(){},type:"bytes"}),Z4(ije(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(hje(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function j0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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 iR(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}oue.exports={multipartFormDataParser:rje,validateBoundary:tje}});var Z0=y((sir,gue)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:sje,isBlobLike:cue,isReadableStreamLike:ije,readableStreamClose:oje,createDeferredPromise:aje,fullyReadBody:cje,extractMimeType:Aje,utf8DecodeBytes:lue}=qo(),{FormData:Aue}=Gb(),{kState:X0}=Wh(),{webidl:uje}=Ws(),{Blob:lje}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:due,isDisturbed:dje}=Q("node:stream"),{isArrayBuffer:hje}=Q("node:util/types"),{serializeAMimeType:fje}=ro(),{multipartFormDataParser:mje}=aue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var oR=new TextEncoder;function pje(){}var hue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,fue;hue&&(fue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dje(e)&&!due(e)&&e.cancel("Response object has been garbage collected").catch(pje)}));function mue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:cue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?oR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>oje(c))},start(){},type:"bytes"}),Z4(ije(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(hje(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=oR.encode(A+`; name="${u(l(E))}"\r
|
||||
\r
|
||||
@@ -12,7 +12,7 @@ ${l(g)}\r
|
||||
Content-Type: ${g.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=oR.encode(`--${c}--\r
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(cue(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(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:sje(t)}if((typeof s=="string"||Yb.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(!due(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 gje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),mue(t,e)}function Eje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function yje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Cje(t){return{blob(){return K0(this,r=>{let n=uue(this);return n===null?n="":n&&(n=fje(n)),new lje([r],{type:n})},t)},arrayBuffer(){return K0(this,r=>new Uint8Array(r).buffer,t)},text(){return K0(this,lue,t)},json(){return K0(this,Bje,t)},formData(){return K0(this,r=>{let n=uue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Aue;return i[X0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Aue;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 K0(this,r=>new Uint8Array(r),t)}}}function Ije(t){Object.assign(t.prototype,Cje(t))}async function K0(t,e,r){if(uje.brandCheck(t,r),pue(t))throw new TypeError("Body is unusable: Body has already been read");yje(t[X0]);let n=aje(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[X0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await cje(t[X0].body,i,s),n.promise)}function pue(t){let e=t[X0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function Bje(t){return JSON.parse(lue(t))}function uue(t){let e=t[X0].headersList,r=Aje(e);return r==="failure"?null:r}gue.exports={extractBody:mue,safelyExtractBody:gje,cloneBody:Eje,mixinBody:Ije,streamRegistry:fue,hasFinalizationRegistry:hue,bodyUnusable:pue}});var vue=y((nir,kue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:Eue}=U0(),e8=M4(),{RequestContentLengthMismatchError:gp,ResponseContentLengthMismatchError:yue,RequestAbortedError:xue,InvalidArgumentError:bje,HeadersTimeoutError:Qje,HeadersOverflowError:wje,SocketError:$0,InformationalError:ey,BodyTimeoutError:Nje,HTTPParserError:xje,ResponseExceededMaxSizeError:Sje}=or(),{kUrl:Sue,kReset:no,kClient:uR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Tue,kSize:Cue,kWriting:Jh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:Tje,kHostHeader:Rje,kPendingIdx:Dje,kRunningIdx:_a,kError:Si,kPipelining:lR,kSocket:Ep,kKeepAliveTimeoutValue:hR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:kje,kKeepAliveTimeoutThreshold:vje,kHeadersTimeout:Pje,kBodyTimeout:Mje,kStrictContentLength:s8,kMaxRequests:Iue,kCounter:Fje,kMaxResponseSize:Lje,kOnError:Bue,kResume:ld,kHTTPContext:Rue}=Xr(),Go=fAe(),bue=Buffer.alloc(0),aR=Buffer[Symbol.species],cR=Xe.addListener,_je=Xe.removeAllListeners,yp=Symbol("kIdleSocketValidation"),ty=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Uje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(gAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onStatus(new aR(ZA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderField(new aR(ZA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderValue(new aR(ZA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onBody(new aR(ZA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Uje();i8.catch();var pn=null,ZA=null,AR=0,$A=null,Oje=0,Wb=1,ry=2|Wb,dR=4|Wb,o8=8|Oje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(cue(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(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:sje(t)}if((typeof s=="string"||Yb.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(!due(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 gje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),mue(t,e)}function Eje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function yje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function Cje(t){return{blob(){return K0(this,r=>{let n=uue(this);return n===null?n="":n&&(n=fje(n)),new lje([r],{type:n})},t)},arrayBuffer(){return K0(this,r=>new Uint8Array(r).buffer,t)},text(){return K0(this,lue,t)},json(){return K0(this,Bje,t)},formData(){return K0(this,r=>{let n=uue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=mje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new Aue;return i[X0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new Aue;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 K0(this,r=>new Uint8Array(r),t)}}}function Ije(t){Object.assign(t.prototype,Cje(t))}async function K0(t,e,r){if(uje.brandCheck(t,r),pue(t))throw new TypeError("Body is unusable: Body has already been read");yje(t[X0]);let n=aje(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[X0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await cje(t[X0].body,i,s),n.promise)}function pue(t){let e=t[X0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function Bje(t){return JSON.parse(lue(t))}function uue(t){let e=t[X0].headersList,r=Aje(e);return r==="failure"?null:r}gue.exports={extractBody:mue,safelyExtractBody:gje,cloneBody:Eje,mixinBody:Ije,streamRegistry:fue,hasFinalizationRegistry:hue,bodyUnusable:pue}});var vue=y((iir,kue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:Eue}=U0(),e8=M4(),{RequestContentLengthMismatchError:gp,ResponseContentLengthMismatchError:yue,RequestAbortedError:xue,InvalidArgumentError:bje,HeadersTimeoutError:Qje,HeadersOverflowError:wje,SocketError:$0,InformationalError:ey,BodyTimeoutError:Nje,HTTPParserError:xje,ResponseExceededMaxSizeError:Sje}=or(),{kUrl:Sue,kReset:no,kClient:uR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Tue,kSize:Cue,kWriting:Jh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:Tje,kHostHeader:Rje,kPendingIdx:Dje,kRunningIdx:_a,kError:Si,kPipelining:lR,kSocket:Ep,kKeepAliveTimeoutValue:hR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:kje,kKeepAliveTimeoutThreshold:vje,kHeadersTimeout:Pje,kBodyTimeout:Mje,kStrictContentLength:s8,kMaxRequests:Iue,kCounter:Fje,kMaxResponseSize:Lje,kOnError:Bue,kResume:ld,kHTTPContext:Rue}=Xr(),Go=fAe(),bue=Buffer.alloc(0),aR=Buffer[Symbol.species],cR=Xe.addListener,_je=Xe.removeAllListeners,yp=Symbol("kIdleSocketValidation"),ty=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Uje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(gAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onStatus(new aR(ZA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderField(new aR(ZA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onHeaderValue(new aR(ZA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-$A+ZA.byteOffset;return pn.onBody(new aR(ZA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Uje();i8.catch();var pn=null,ZA=null,AR=0,$A=null,Oje=0,Wb=1,ry=2|Wb,dR=4|Wb,o8=8|Oje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[Rje],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -38,17 +38,17 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new gp;process.emitWarning(new gp)}e[Lr].timeout&&e[Lr].timeoutType===ry&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Jh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};kue.exports=Hje});var Hue=y((sir,Oue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:Vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Pue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:mR,kReset:gR,kClient:ny,kRunning:ER,kPending:jje,kQueue:Vh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:Cs,kStrictContentLength:Kje,kOnError:d8,kMaxConcurrentStreams:Uue,kHTTP2Session:eA,kResume:jh,kSize:Xje,kHTTPContext:Zje}=Xr(),dd=Symbol("open streams"),Mue,Fue=!1,pR;try{pR=Q("node:http2")}catch{pR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$je,HTTP2_HEADER_METHOD:eKe,HTTP2_HEADER_PATH:tKe,HTTP2_HEADER_SCHEME:rKe,HTTP2_HEADER_CONTENT_LENGTH:nKe,HTTP2_HEADER_EXPECT:sKe,HTTP2_HEADER_STATUS:iKe}}=pR;function oKe(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 aKe(t,e){t[Cs]=e,Fue||(Fue=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=pR.connect(t[mR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uue]});r[dd]=0,r[ny]=t,r[Cs]=e,qt.addListener(r,"error",AKe),qt.addListener(r,"frameError",uKe),qt.addListener(r,"end",lKe),qt.addListener(r,"goaway",dKe),qt.addListener(r,"close",function(){let{[ny]:s}=this,{[Cs]:i}=s,o=this[Cs][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[jje]===0);let a=s[Vh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ny][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[Cs]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[ER]===0),t.emit("disconnect",t[mR],[t],s),t[jh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return fKe(t,...s)},resume(){cKe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function cKe(t){let e=t[Cs];e?.destroyed===!1&&(t[Xje]===0&&t[Uue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function AKe(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cs][tA]=t,this[ny][d8](t)}function uKe(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Cs][tA]=n,this[ny][d8](n)}}function lKe(){let t=new Vb("other side closed",qt.getSocketInfo(this[Cs]));this.destroy(t),qt.destroy(this[Cs],t)}function dKe(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ny];if(r[Cs]=null,r[Zje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[Cs],e),r[$c]<r[Vh].length){let n=r[Vh][r[$c]];r[Vh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[ER]===0),r.emit("disconnect",r[mR],[r],e),r[jh]()}function hKe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fKe(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[mR];l[$je]=i||`${h}${f?`:${f}`:""}`,l[eKe]=n;let m=B=>{e.aborted||e.completed||(B=B||new Pue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Vh][t[$c]++]=null,t[jh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[tKe]=s,l[rKe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Mue??=Z0().extractBody;let[B,M]=Mue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),hKe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Kje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[nKe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[sKe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[OKe]=c??3e5,this[UKe]=s??3e5,this[HKe]=C??!0,this[qKe]=B,this[p8]=J,this[Xh]=null,this[JKe]=H>-1?H:-1,this[jKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[VKe]=fe=>$ue(this,fe)}get pipelining(){return this[BR]}set pipelining(e){this[BR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[kKe](){return!!this[kn]&&!this[iy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Zue(this)||1)||this[tQ]>0)}[DKe](e){ele(this),this.once("connect",e)}[WKe](e,r){let n=e.origin||this[tu].origin,s=new wKe(n,e,r);return this[rA].push(s),this[Ip]||(Cp.bodyLength(s.body)==null&&Cp.isIterable(s.body)?(this[Ip]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Ip]&&this[Zh]!==2&&this[m8]&&(this[Zh]=2),this[Zh]<2}async[YKe](){return new Promise(e=>{this[$b]?this[Xh]=e:e(null)})}async[zKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];Cp.errorRequest(this,o,e)}let s=()=>{this[Xh]&&(this[Xh](),this[Xh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},ZKe=IR();function $ue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];Cp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function ele(t){hd(!t[iy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[tu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Xue.isIP(o)),r=o}t[iy]=!0,sy.beforeConnect.hasSubscribers&&sy.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[Kh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Cp.destroy(i.on("error",jue),new SKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await XKe(t,i):await KKe(t,i)}catch(o){throw i.destroy().on("error",jue),o}t[iy]=!1,i[GKe]=0,i[p8]=t[p8],i[RKe]=t,i[PKe]=null,sy.connected.hasSubscribers&&sy.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[tu],[t])}catch(i){if(t.destroyed)return;if(t[iy]=!1,sy.connectError.hasSubscribers&&sy.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[Kh];){let o=t[rA][t[nA]++];Cp.errorRequest(t,o,i)}else $ue(t,i);t.emit("connectionError",t[tu],[t],i)}t[Zb]()}function Kue(t){t[Zh]=0,t.emit("drain",t[tu],[t])}function E8(t,e){t[Ip]!==2&&(t[Ip]=2,$Ke(t,e),t[Ip]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function $Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Xh]&&!t[$b]){t[Xh](),t[Xh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Zh]=2;else if(t[Zh]===2){e?(t[Zh]=1,queueMicrotask(()=>Kue(t))):Kue(t);continue}if(t[tQ]===0||t[eQ]>=(Zue(t)||1))return;let r=t[rA][t[nA]];if(t[tu].protocol==="https:"&&t[Kh]!==r.servername){if(t[eQ]>0)return;t[Kh]=r.servername,t[kn]?.destroy(new xKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[iy])return;if(!t[kn]){ele(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}tle.exports=g8});var y8=y((Air,rle)=>{"use strict";var bR=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)}};rle.exports=class{constructor(){this.head=this.tail=new bR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sle=y((uir,nle)=>{var{kFree:eXe,kConnected:tXe,kPending:rXe,kQueued:nXe,kRunning:sXe,kSize:iXe}=Xr(),Bp=Symbol("pool"),C8=class{constructor(e){this[Bp]=e}get connected(){return this[Bp][tXe]}get free(){return this[Bp][eXe]}get pending(){return this[Bp][rXe]}get queued(){return this[Bp][nXe]}get running(){return this[Bp][sXe]}get size(){return this[Bp][iXe]}};nle.exports=C8});var N8=y((lir,fle)=>{"use strict";var oXe=G0(),aXe=y8(),{kConnected:I8,kSize:ile,kRunning:ole,kPending:ale,kQueued:rQ,kBusy:cXe,kFree:AXe,kUrl:uXe,kClose:lXe,kDestroy:dXe,kDispatch:hXe}=Xr(),fXe=sle(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),cle=Symbol("onConnect"),Ale=Symbol("onDisconnect"),ule=Symbol("onCo
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new gp;process.emitWarning(new gp)}e[Lr].timeout&&e[Lr].timeoutType===ry&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Jh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};kue.exports=Hje});var Hue=y((oir,Oue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:Vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Pue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:mR,kReset:gR,kClient:ny,kRunning:ER,kPending:jje,kQueue:Vh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:Cs,kStrictContentLength:Kje,kOnError:d8,kMaxConcurrentStreams:Uue,kHTTP2Session:eA,kResume:jh,kSize:Xje,kHTTPContext:Zje}=Xr(),dd=Symbol("open streams"),Mue,Fue=!1,pR;try{pR=Q("node:http2")}catch{pR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:$je,HTTP2_HEADER_METHOD:eKe,HTTP2_HEADER_PATH:tKe,HTTP2_HEADER_SCHEME:rKe,HTTP2_HEADER_CONTENT_LENGTH:nKe,HTTP2_HEADER_EXPECT:sKe,HTTP2_HEADER_STATUS:iKe}}=pR;function oKe(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 aKe(t,e){t[Cs]=e,Fue||(Fue=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=pR.connect(t[mR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uue]});r[dd]=0,r[ny]=t,r[Cs]=e,qt.addListener(r,"error",AKe),qt.addListener(r,"frameError",uKe),qt.addListener(r,"end",lKe),qt.addListener(r,"goaway",dKe),qt.addListener(r,"close",function(){let{[ny]:s}=this,{[Cs]:i}=s,o=this[Cs][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[jje]===0);let a=s[Vh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ny][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[Cs]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[ER]===0),t.emit("disconnect",t[mR],[t],s),t[jh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return fKe(t,...s)},resume(){cKe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function cKe(t){let e=t[Cs];e?.destroyed===!1&&(t[Xje]===0&&t[Uue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function AKe(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Cs][tA]=t,this[ny][d8](t)}function uKe(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[Cs][tA]=n,this[ny][d8](n)}}function lKe(){let t=new Vb("other side closed",qt.getSocketInfo(this[Cs]));this.destroy(t),qt.destroy(this[Cs],t)}function dKe(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ny];if(r[Cs]=null,r[Zje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[Cs],e),r[$c]<r[Vh].length){let n=r[Vh][r[$c]];r[Vh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[ER]===0),r.emit("disconnect",r[mR],[r],e),r[jh]()}function hKe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function fKe(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[mR];l[$je]=i||`${h}${f?`:${f}`:""}`,l[eKe]=n;let m=B=>{e.aborted||e.completed||(B=B||new Pue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Vh][t[$c]++]=null,t[jh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Vh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[tKe]=s,l[rKe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Mue??=Z0().extractBody;let[B,M]=Mue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),hKe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Kje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[nKe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[sKe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[OKe]=c??3e5,this[UKe]=s??3e5,this[HKe]=C??!0,this[qKe]=B,this[p8]=J,this[Xh]=null,this[JKe]=H>-1?H:-1,this[jKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[VKe]=fe=>$ue(this,fe)}get pipelining(){return this[BR]}set pipelining(e){this[BR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[kKe](){return!!this[kn]&&!this[iy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Zue(this)||1)||this[tQ]>0)}[DKe](e){ele(this),this.once("connect",e)}[WKe](e,r){let n=e.origin||this[tu].origin,s=new wKe(n,e,r);return this[rA].push(s),this[Ip]||(Cp.bodyLength(s.body)==null&&Cp.isIterable(s.body)?(this[Ip]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Ip]&&this[Zh]!==2&&this[m8]&&(this[Zh]=2),this[Zh]<2}async[YKe](){return new Promise(e=>{this[$b]?this[Xh]=e:e(null)})}async[zKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];Cp.errorRequest(this,o,e)}let s=()=>{this[Xh]&&(this[Xh](),this[Xh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},ZKe=IR();function $ue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];Cp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function ele(t){hd(!t[iy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[tu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Xue.isIP(o)),r=o}t[iy]=!0,sy.beforeConnect.hasSubscribers&&sy.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[Kh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){Cp.destroy(i.on("error",jue),new SKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await XKe(t,i):await KKe(t,i)}catch(o){throw i.destroy().on("error",jue),o}t[iy]=!1,i[GKe]=0,i[p8]=t[p8],i[RKe]=t,i[PKe]=null,sy.connected.hasSubscribers&&sy.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[tu],[t])}catch(i){if(t.destroyed)return;if(t[iy]=!1,sy.connectError.hasSubscribers&&sy.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[Kh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[Kh];){let o=t[rA][t[nA]++];Cp.errorRequest(t,o,i)}else $ue(t,i);t.emit("connectionError",t[tu],[t],i)}t[Zb]()}function Kue(t){t[Zh]=0,t.emit("drain",t[tu],[t])}function E8(t,e){t[Ip]!==2&&(t[Ip]=2,$Ke(t,e),t[Ip]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function $Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Xh]&&!t[$b]){t[Xh](),t[Xh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Zh]=2;else if(t[Zh]===2){e?(t[Zh]=1,queueMicrotask(()=>Kue(t))):Kue(t);continue}if(t[tQ]===0||t[eQ]>=(Zue(t)||1))return;let r=t[rA][t[nA]];if(t[tu].protocol==="https:"&&t[Kh]!==r.servername){if(t[eQ]>0)return;t[Kh]=r.servername,t[kn]?.destroy(new xKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[iy])return;if(!t[kn]){ele(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}tle.exports=g8});var y8=y((lir,rle)=>{"use strict";var bR=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)}};rle.exports=class{constructor(){this.head=this.tail=new bR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new bR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var sle=y((dir,nle)=>{var{kFree:eXe,kConnected:tXe,kPending:rXe,kQueued:nXe,kRunning:sXe,kSize:iXe}=Xr(),Bp=Symbol("pool"),C8=class{constructor(e){this[Bp]=e}get connected(){return this[Bp][tXe]}get free(){return this[Bp][eXe]}get pending(){return this[Bp][rXe]}get queued(){return this[Bp][nXe]}get running(){return this[Bp][sXe]}get size(){return this[Bp][iXe]}};nle.exports=C8});var N8=y((hir,fle)=>{"use strict";var oXe=G0(),aXe=y8(),{kConnected:I8,kSize:ile,kRunning:ole,kPending:ale,kQueued:rQ,kBusy:cXe,kFree:AXe,kUrl:uXe,kClose:lXe,kDestroy:dXe,kDispatch:hXe}=Xr(),fXe=sle(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),cle=Symbol("onConnect"),Ale=Symbol("onDisconnect"),ule=Symbol("onCo
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};Ihe.exports=NH});var HR=y((Uir,Nhe)=>{"use strict";var bhe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:O$e}=or(),H$e=cy();whe()===void 0&&Qhe(new H$e);function Qhe(t){if(!t||typeof t.dispatch!="function")throw new O$e("Argument agent must implement Agent");Object.defineProperty(globalThis,bhe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function whe(){return globalThis[bhe]}Nhe.exports={setGlobalDispatcher:Qhe,getGlobalDispatcher:whe}});var qR=y((Hir,xhe)=>{"use strict";xhe.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 The=y((qir,She)=>{"use strict";var q$e=CR();She.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 q$e(r,o,s,i);return r(a,c)}}});var Dhe=y((Gir,Rhe)=>{"use strict";var G$e=DR();Rhe.exports=t=>e=>function(n,s){return e(n,new G$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var vhe=y((Yir,khe)=>{"use strict";var Y$e=vt(),{InvalidArgumentError:z$e,RequestAbortedError:W$e}=or(),J$e=qR(),xH=class extends J$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new z$e("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.#s=e}onHeaders(e,r,n,s){let o=Y$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new W$e(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function V$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}khe.exports=V$e});var Fhe=y((zir,Mhe)=>{"use strict";var{isIP:j$e}=Q("node:net"),{lookup:K$e}=Q("node:dns"),X$e=qR(),{InvalidArgumentError:gy,InformationalError:Z$e}=or(),Phe=Math.pow(2,31)-1,SH=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Z$e("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){K$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Phe?(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===Phe?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 TH(this,e,r)}},TH=class extends X$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(SD(e,s,hst)){fst(e,i)&&(r.retry=e.toString("utf8",i));return}if(SD(e,s,dst)){mst(e,i)&&(r.id=e.toString("utf8",i));return}if(SD(e,s,lst)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&ost(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ast(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Dy[0]||(this.checkBOM=!1),!0):n===void 0?e===Dy[0]&&r===Dy[1]?!0:(this.checkBOM=!1,!1):(e===Dy[0]&&r===Dy[1]&&n===Dy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};fpe.exports={EventSourceStream:E6}});var bpe=y((bor,Bpe)=>{"use strict";var{pipeline:pst}=Q("node:stream"),{fetching:gst}=pQ(),{makeRequest:Est}=Cy(),{webidl:Ed}=Ws(),{EventSourceStream:yst}=mpe(),{parseMIMEType:Cst}=ro(),{createFastMessageEvent:Ist}=Ny(),{isNetworkError:ppe}=fQ(),{delay:Bst}=p6(),{kEnumerableProperty:_p}=vt(),{environmentSettingsObject:gpe}=qo(),Epe=!1,ype=3e3,RQ=0,Cpe=1,DQ=2,bst="anonymous",Qst="use-credentials",ky=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),Epe||(Epe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ype};let s=gpe,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=bst;r.withCredentials&&(o=Qst,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=gpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Est(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{ppe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(ppe(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?Cst(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=Cpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new yst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Ist(c.type,c.options))}});pst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=gst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n
Line truncated
|
||||
`.trim())}};Ihe.exports=NH});var HR=y((Hir,Nhe)=>{"use strict";var bhe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:O$e}=or(),H$e=cy();whe()===void 0&&Qhe(new H$e);function Qhe(t){if(!t||typeof t.dispatch!="function")throw new O$e("Argument agent must implement Agent");Object.defineProperty(globalThis,bhe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function whe(){return globalThis[bhe]}Nhe.exports={setGlobalDispatcher:Qhe,getGlobalDispatcher:whe}});var qR=y((Gir,xhe)=>{"use strict";xhe.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 The=y((Yir,She)=>{"use strict";var q$e=CR();She.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 q$e(r,o,s,i);return r(a,c)}}});var Dhe=y((zir,Rhe)=>{"use strict";var G$e=DR();Rhe.exports=t=>e=>function(n,s){return e(n,new G$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var vhe=y((Wir,khe)=>{"use strict";var Y$e=vt(),{InvalidArgumentError:z$e,RequestAbortedError:W$e}=or(),J$e=qR(),xH=class extends J$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new z$e("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.#s=e}onHeaders(e,r,n,s){let o=Y$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new W$e(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function V$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}khe.exports=V$e});var Fhe=y((Jir,Mhe)=>{"use strict";var{isIP:j$e}=Q("node:net"),{lookup:K$e}=Q("node:dns"),X$e=qR(),{InvalidArgumentError:gy,InformationalError:Z$e}=or(),Phe=Math.pow(2,31)-1,SH=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new Z$e("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){K$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Phe?(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===Phe?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 TH(this,e,r)}},TH=class extends X$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(SD(e,s,hst)){fst(e,i)&&(r.retry=e.toString("utf8",i));return}if(SD(e,s,dst)){mst(e,i)&&(r.id=e.toString("utf8",i));return}if(SD(e,s,lst)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&ost(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&ast(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Dy[0]||(this.checkBOM=!1),!0):n===void 0?e===Dy[0]&&r===Dy[1]?!0:(this.checkBOM=!1,!1):(e===Dy[0]&&r===Dy[1]&&n===Dy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};fpe.exports={EventSourceStream:E6}});var bpe=y((wor,Bpe)=>{"use strict";var{pipeline:pst}=Q("node:stream"),{fetching:gst}=pQ(),{makeRequest:Est}=Cy(),{webidl:Ed}=Ws(),{EventSourceStream:yst}=mpe(),{parseMIMEType:Cst}=ro(),{createFastMessageEvent:Ist}=Ny(),{isNetworkError:ppe}=fQ(),{delay:Bst}=p6(),{kEnumerableProperty:_p}=vt(),{environmentSettingsObject:gpe}=qo(),Epe=!1,ype=3e3,RQ=0,Cpe=1,DQ=2,bst="anonymous",Qst="use-credentials",ky=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),Epe||(Epe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:ype};let s=gpe,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=bst;r.withCredentials&&(o=Qst,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=gpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=Est(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{ppe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(ppe(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?Cst(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=Cpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new yst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(Ist(c.type,c.options))}});pst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=gst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+U2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=sdt()+e+" "+t[0]}function sdt(){return Bs.inspectOpts.hideDate?"":new Date().toISOString()+" "}function idt(...t){return process.stderr.write(_2.formatWithOptions(Bs.inspectOpts,...t)+`
|
||||
`)}function odt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function adt(){return process.env.DEBUG}function cdt(t){t.inspectOpts={};let e=Object.keys(Bs.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Bs.inspectOpts[e[r]]}U2.exports=$5()(Bs);var{formatters:Kye}=U2.exports;Kye.o=function(t){return this.inspectOpts.colors=this.useColors,_2.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Kye.O=function(t){return this.inspectOpts.colors=this.useColors,_2.inspect(t,this.inspectOpts)}});var O2=y((Nlr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Yye():rq.exports=Xye()});var eCe=y(fo=>{"use strict";var Adt=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]})),udt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=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)&&Adt(e,t,r);return udt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var ldt=Zye(Q("http")),ddt=Zye(Q("https"));async function $ye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=$ye;async function hdt(t){let r=(await $ye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=hdt;function fdt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ddt:ldt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=fdt});var sq=y(ta=>{"use strict";var rCe=ta&&ta.__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]})),mdt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nCe=ta&&ta.__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)&&rCe(e,t,r);return mdt(e,t),e},pdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rCe(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var gdt=nCe(Q("net")),tCe=nCe(Q("http")),Edt=Q("https");pdt(eCe(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends tCe.Agent{constructor(e){super(e),this[lu]={}}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(`
|
||||
`).map(e=>e.trim()).join(" ")};Kye.O=function(t){return this.inspectOpts.colors=this.useColors,_2.inspect(t,this.inspectOpts)}});var O2=y((Slr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Yye():rq.exports=Xye()});var eCe=y(fo=>{"use strict";var Adt=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]})),udt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=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)&&Adt(e,t,r);return udt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var ldt=Zye(Q("http")),ddt=Zye(Q("https"));async function $ye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=$ye;async function hdt(t){let r=(await $ye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=hdt;function fdt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ddt:ldt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=fdt});var sq=y(ta=>{"use strict";var rCe=ta&&ta.__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]})),mdt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),nCe=ta&&ta.__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)&&rCe(e,t,r);return mdt(e,t),e},pdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&rCe(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var gdt=nCe(Q("net")),tCe=nCe(Q("http")),Edt=Q("https");pdt(eCe(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends tCe.Agent{constructor(e){super(e),this[lu]={}}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 gdt.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)?Edt.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 tCe.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[lu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[lu].currentSocket;if(this[lu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[lu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[lu]&&(this[lu].defaultPort=e)}get protocol(){return this[lu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[lu]&&(this[lu].protocol=e)}};ta.Agent=nq});var sCe=y(jy=>{"use strict";var ydt=jy&&jy.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jy,"__esModule",{value:!0});jy.parseProxyResponse=void 0;var Cdt=ydt(O2()),H2=(0,Cdt.default)("https-proxy-agent:parse-proxy-response");function Idt(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(),H2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),H2("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){H2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
@@ -57,16 +57,16 @@ ${o}`;return}if(SD(e,s,hst)){fst(e,i)&&(r.retry=e.toString("utf8",i));return}if(
|
||||
`;let c=(0,Sdt.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",Tdt),r.secureEndpoint?(Ew("Upgrading socket connection to TLS"),iCe.connect({...aCe(oCe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new q2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Ew("Replaying proxy buffer for failed request"),(0,Qdt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};G2.protocols=["http","https"];Xa.HttpsProxyAgent=G2;function Tdt(t){t.resume()}function aCe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var hCe=y(Za=>{"use strict";var Rdt=Za&&Za.__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]})),Ddt=Za&&Za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),dCe=Za&&Za.__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)&&Rdt(e,t,r);return Ddt(e,t),e},kdt=Za&&Za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.HttpProxyAgent=void 0;var vdt=dCe(Q("net")),Pdt=dCe(Q("tls")),Mdt=kdt(O2()),Fdt=Q("events"),Ldt=sq(),lCe=Q("url"),Ky=(0,Mdt.default)("http-proxy-agent"),Y2=class extends Ldt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new lCe.URL(e):e,this.proxyHeaders=r?.headers??{},Ky("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?_dt(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 lCe.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;Ky("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Ky("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),Ky("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Ky("Creating `tls.Socket`: %o",this.connectOpts),i=Pdt.connect(this.connectOpts)):(Ky("Creating `net.Socket`: %o",this.connectOpts),i=vdt.connect(this.connectOpts)),await(0,Fdt.once)(i,"connect"),i}};Y2.protocols=["http","https"];Za.HttpProxyAgent=Y2;function _dt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var FCe=y(J2=>{"use strict";Object.defineProperty(J2,"__esModule",{value:!0});J2.state=void 0;J2.state={instrumenterImplementation:void 0}});var dIe=y(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.state=void 0;ik.state={operationRequestMap:new WeakMap}});var zbe=y((fRr,T0t)=>{T0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Jbe=y((mRr,Wbe)=>{var R0t=zbe();Wbe.exports={version:R0t.version}});var Mv=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.isJsonObject=kC.typeofJsonValue=void 0;function U0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}kC.typeofJsonValue=U0t;function O0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}kC.isJsonObject=O0t});var Lv=y(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0});vC.base64encode=vC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Fv=[];for(let t=0;t<Ud.length;t++)Fv[Ud[t].charCodeAt(0)]=t;Fv[45]=Ud.indexOf("+");Fv[95]=Ud.indexOf("/");function H0t(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=Fv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),Ky("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Ky("Creating `tls.Socket`: %o",this.connectOpts),i=Pdt.connect(this.connectOpts)):(Ky("Creating `net.Socket`: %o",this.connectOpts),i=vdt.connect(this.connectOpts)),await(0,Fdt.once)(i,"connect"),i}};Y2.protocols=["http","https"];Za.HttpProxyAgent=Y2;function _dt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var FCe=y(J2=>{"use strict";Object.defineProperty(J2,"__esModule",{value:!0});J2.state=void 0;J2.state={instrumenterImplementation:void 0}});var dIe=y(ik=>{"use strict";Object.defineProperty(ik,"__esModule",{value:!0});ik.state=void 0;ik.state={operationRequestMap:new WeakMap}});var zbe=y((pRr,T0t)=>{T0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var Jbe=y((gRr,Wbe)=>{var R0t=zbe();Wbe.exports={version:R0t.version}});var Mv=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.isJsonObject=kC.typeofJsonValue=void 0;function U0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}kC.typeofJsonValue=U0t;function O0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}kC.isJsonObject=O0t});var Lv=y(vC=>{"use strict";Object.defineProperty(vC,"__esModule",{value:!0});vC.base64encode=vC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Fv=[];for(let t=0;t<Ud.length;t++)Fv[Ud[t].charCodeAt(0)]=t;Fv[45]=Ud.indexOf("+");Fv[95]=Ud.indexOf("/");function H0t(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=Fv[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)}vC.base64decode=H0t;function q0t(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ud[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ud[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ud[s|n>>6],e+=Ud[n&63],r=0;break}return r&&(e+=Ud[s],e+="=",r==1&&(e+="=")),e}vC.base64encode=q0t});var Zbe=y(_v=>{"use strict";Object.defineProperty(_v,"__esModule",{value:!0});_v.utf8read=void 0;var iW=t=>String.fromCharCode.apply(String,t);function G0t(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(iW(n)),s=0);return r.length?(s&&r.push(iW(n.slice(0,s))),r.join("")):iW(n.slice(0,s))}_v.utf8read=G0t});var CN=y(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.WireType=Lu.mergeBinaryOptions=Lu.UnknownFieldHandler=void 0;var Y0t;(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])})(Y0t=Lu.UnknownFieldHandler||(Lu.UnknownFieldHandler={}));function z0t(t,e){return Object.assign(Object.assign({},t),e)}Lu.mergeBinaryOptions=z0t;var W0t;(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"})(W0t=Lu.WireType||(Lu.WireType={}))});var Ov=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.varint32read=bo.varint32write=bo.int64toString=bo.int64fromString=bo.varint64write=bo.varint64read=void 0;function J0t(){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")}bo.varint64read=J0t;function V0t(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)}}bo.varint64write=V0t;var Uv=65536*65536;function j0t(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>=Uv&&(s=s+(n/Uv|0),n=n%Uv)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}bo.int64fromString=j0t;function K0t(t,e){if(e>>>0<=2097151)return""+(Uv*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)}bo.int64toString=K0t;function X0t(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)}}bo.varint32write=X0t;function Z0t(){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}bo.varint32read=Z0t});var Gf=y(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});qf.PbLong=qf.PbULong=qf.detectBi=void 0;var IN=Ov(),kr;function $be(){let t=new DataView(new ArrayBuffer(8));kr=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}qf.detectBi=$be;$be();function eQe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var tQe=/^-?[0-9]+$/,qv=4294967296,Hv=2147483648,Gv=c
Line truncated
|
||||
`)}};hP.RpcError=kW});var PW=y(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.mergeRpcOptions=void 0;var DQe=Tt();function CCt(t,e){if(!e)return t;let r={};fP(t,r),fP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=DQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=DQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fP(t.meta,r.meta),fP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}mP.mergeRpcOptions=CCt;function fP(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 FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.RpcOutputStreamController=void 0;var kQe=FW(),bg=Tt(),LW=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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 kQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==kQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pP.RpcOutputStreamController=LW});var OW=y(OC=>{"use strict";var ICt=OC&&OC.__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(OC,"__esModule",{value:!0});OC.UnaryCall=void 0;var UW=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 ICt(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}})}};OC.UnaryCall=UW});var qW=y(HC=>{"use strict";var BCt=HC&&HC.__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(HC,"__esModule",{value:!0});HC.ServerStreamingCall=void 0;var HW=class{constructor(e
Line truncated
|
||||
`)}};hP.RpcError=kW});var PW=y(mP=>{"use strict";Object.defineProperty(mP,"__esModule",{value:!0});mP.mergeRpcOptions=void 0;var DQe=Tt();function CCt(t,e){if(!e)return t;let r={};fP(t,r),fP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=DQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=DQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},fP(t.meta,r.meta),fP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}mP.mergeRpcOptions=CCt;function fP(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 FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.RpcOutputStreamController=void 0;var kQe=FW(),bg=Tt(),LW=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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 kQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==kQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};pP.RpcOutputStreamController=LW});var OW=y(OC=>{"use strict";var ICt=OC&&OC.__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(OC,"__esModule",{value:!0});OC.UnaryCall=void 0;var UW=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 ICt(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}})}};OC.UnaryCall=UW});var qW=y(HC=>{"use strict";var BCt=HC&&HC.__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(HC,"__esModule",{value:!0});HC.ServerStreamingCall=void 0;var HW=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 pSe=y(mSe=>{"use strict";var QV=Vd().Buffer;mSe._dbcs=jd;var Ks=-1,fSe=-2,yc=-10,Hi=-1e3,pI=new Array(256),hx=-1;for(XM=0;XM<256;XM++)pI[XM]=Ks;var XM;function jd(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]=pI.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(pI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(pI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=fSe)}}}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 dTt(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(X1t.has(s)){r=s;break}}return r}function hTt(t,e){let r=dTt(e);r!==""&&(t.referrerPolicy=r)}function fTt(){return"allowed"}function mTt(){return"success"}function pTt(){return"success"}function gTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ETt(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&&Gj(t.origin)&&!Gj(Vg(t))&&(e=null);break;case"same-origin":bx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function II(t,e){return t}function yTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:II(t.domainLookupStartTime,r),domainLookupEndTime:II(t.domainLookupEndTime,r),connectionStartTime:II(t.connectionStartTime,r),connectionEndTime:II(t.connectionEndTime,r),secureConnectionStartTime:II(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CTt(t){return II(tTt.now(),t)}function ITt(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 zTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function BTt(t){return{referrerPolicy:t.referrerPolicy}}function bTt(t){let e=t.referrerPolicy;Qx(e);let r=null;if(t.referrer==="client"){let i=OTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else cm.is.URL(t.referrer)&&(r=t.referrer);let n=qj(r),s=qj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return bx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return bx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return bx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function qj(t,e=!1){return Qx(cm.is.URL(t)),t=new URL(t),jTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var QTt=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)$/),wTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function WTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),wTt(t)):QTt(t)}function NTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||WTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return cm.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:NTt(t.origin):!1}function xTt(t){}function bx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function STt(t){return t.controller.state==="aborted"}function TTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function RTt(t){return nTt[t.toLowerCase()]??t}var DTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function JTe(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,DTt),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 kTt(t,e,r,n=0,s=1){let i=JTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Zj(a)&&a!==59,t,e);i=Kj.decode(o)}return{name:n,value:i,extended:s}}function rRt(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 Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Xj(o,!0,!0,a=>a===9||a===32),!VTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),JTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Zj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=tRt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),s=tRe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),i=tRe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Xj(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 nRt(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 Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function sRt(t){return t<=31||t===127}function iRt(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 Zj(t){return t<=127&&t!==32&&t!==9&&!sRt(t)&&!iRt(t)}rRe.exports={multipartFormDataParser:eRt,validateBoundary:$Tt}});var wx=y((VFr,sRe)=>{"use strict";function oRt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}sRe.exports={createDeferredPromise:oRt}});var QI=y((jFr,ARe)=>{"use strict";var tK=ht(),{ReadableStreamFrom:aRt,readableStreamClose:cRt,fullyReadBody:ARt,extractMimeType:uRt}=fa(),{FormData:iRe,setFormDataState:lRt}=BF(),{webidl:SA}=Xs(),$j=Q("node:assert"),{isErrored:eK,isDisturbed:dRt}=Q("node:stream"),{isUint8Array:hRt}=Q("node:util/types"),{serializeAMimeType:fRt}=Ic(),{multipartFormDataParser:mRt}=nRe(),{createDeferredPromise:pRt}=wx(),{parseJSONFromBytes:gRt}=Zd(),{utf8DecodeBytes:ERt}=pF(),{runtimeFeatures:yRt}=$d(),CRt=yRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),bF=new TextEncoder;function IRt(){}var BRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dRt(e)&&!eK(e)&&e.cancel("Response object has been garbage collected").catch(IRt)});function aRe(t,e=!1){let r=null,n=null;SA.is.ReadableStream(t)?r=t:SA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),$j(SA.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(SA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(SA.is.BufferSource(t))i=SA.util.getCopyOfBytesHeldByBufferSource(t);else if(SA.is.FormData(t)){let A=`----formdata-undici-0${`${CRt(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 pSe=y(mSe=>{"use strict";var QV=Vd().Buffer;mSe._dbcs=jd;var Ks=-1,fSe=-2,yc=-10,Hi=-1e3,pI=new Array(256),hx=-1;for(XM=0;XM<256;XM++)pI[XM]=Ks;var XM;function jd(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]=pI.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(pI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(pI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=fSe)}}}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 dTt(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(X1t.has(s)){r=s;break}}return r}function hTt(t,e){let r=dTt(e);r!==""&&(t.referrerPolicy=r)}function fTt(){return"allowed"}function mTt(){return"success"}function pTt(){return"success"}function gTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function ETt(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&&Gj(t.origin)&&!Gj(Vg(t))&&(e=null);break;case"same-origin":bx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function II(t,e){return t}function yTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:II(t.domainLookupStartTime,r),domainLookupEndTime:II(t.domainLookupEndTime,r),connectionStartTime:II(t.connectionStartTime,r),connectionEndTime:II(t.connectionEndTime,r),secureConnectionStartTime:II(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function CTt(t){return II(tTt.now(),t)}function ITt(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 zTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function BTt(t){return{referrerPolicy:t.referrerPolicy}}function bTt(t){let e=t.referrerPolicy;Qx(e);let r=null;if(t.referrer==="client"){let i=OTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else cm.is.URL(t.referrer)&&(r=t.referrer);let n=qj(r),s=qj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??qj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return bx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return bx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return bx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function qj(t,e=!1){return Qx(cm.is.URL(t)),t=new URL(t),jTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var QTt=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)$/),wTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function WTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),wTt(t)):QTt(t)}function NTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||WTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return cm.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:NTt(t.origin):!1}function xTt(t){}function bx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function STt(t){return t.controller.state==="aborted"}function TTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function RTt(t){return nTt[t.toLowerCase()]??t}var DTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function JTe(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,DTt),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 kTt(t,e,r,n=0,s=1){let i=JTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return cm.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Zj(a)&&a!==59,t,e);i=Kj.decode(o)}return{name:n,value:i,extended:s}}function rRt(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 Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Xj(o,!0,!0,a=>a===9||a===32),!VTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),JTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Zj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=tRt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),s=tRe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Xj(a,!1,!0,c=>c===9||c===32),i=tRe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Xj(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 nRt(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 Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function sRt(t){return t<=31||t===127}function iRt(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 Zj(t){return t<=127&&t!==32&&t!==9&&!sRt(t)&&!iRt(t)}rRe.exports={multipartFormDataParser:eRt,validateBoundary:$Tt}});var wx=y((KFr,sRe)=>{"use strict";function oRt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}sRe.exports={createDeferredPromise:oRt}});var QI=y((XFr,ARe)=>{"use strict";var tK=ht(),{ReadableStreamFrom:aRt,readableStreamClose:cRt,fullyReadBody:ARt,extractMimeType:uRt}=fa(),{FormData:iRe,setFormDataState:lRt}=BF(),{webidl:SA}=Xs(),$j=Q("node:assert"),{isErrored:eK,isDisturbed:dRt}=Q("node:stream"),{isUint8Array:hRt}=Q("node:util/types"),{serializeAMimeType:fRt}=Ic(),{multipartFormDataParser:mRt}=nRe(),{createDeferredPromise:pRt}=wx(),{parseJSONFromBytes:gRt}=Zd(),{utf8DecodeBytes:ERt}=pF(),{runtimeFeatures:yRt}=$d(),CRt=yRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),bF=new TextEncoder;function IRt(){}var BRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!dRt(e)&&!eK(e)&&e.cancel("Response object has been garbage collected").catch(IRt)});function aRe(t,e=!1){let r=null,n=null;SA.is.ReadableStream(t)?r=t:SA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),$j(SA.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(SA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(SA.is.BufferSource(t))i=SA.util.getCopyOfBytesHeldByBufferSource(t);else if(SA.is.FormData(t)){let A=`----formdata-undici-0${`${CRt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
|
||||
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=bF.encode(u+`; name="${l(d(g))}"\r
|
||||
\r
|
||||
@@ -75,7 +75,7 @@ ${d(C)}\r
|
||||
Content-Type: ${C.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=bF.encode(`--${A}--\r
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(SA.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(tK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=SA.is.ReadableStream(t)?t:aRt(t)}return(typeof i=="string"||hRt(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(eK(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!eK(r)&&n.enqueue(typeof A=="string"?bF.encode(A):new Uint8Array(A));queueMicrotask(()=>cRt(n))})(),[{stream:r,source:i,length:o},a]}function bRt(t,e=!1){return SA.is.ReadableStream(t)&&($j(!tK.isDisturbed(t),"The body has already been consumed."),$j(!t.locked,"The stream is locked.")),aRe(t,e)}function QRt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function wRt(t,e){return{blob(){return bI(this,n=>{let s=oRe(e(this));return s===null?s="":s&&(s=fRt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bI(this,ERt,t,e)},json(){return bI(this,gRt,t,e)},formData(){return bI(this,n=>{let s=oRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=mRt(n,s),o=new iRe;return lRt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new iRe;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 bI(this,n=>new Uint8Array(n),t,e)}}}function NRt(t,e){Object.assign(t.prototype,wRt(t,e))}function bI(t,e,r,n){try{SA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),cRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=pRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ARt(t.body,o,i),s.promise)}function cRe(t){let e=t.body;return e!=null&&(e.stream.locked||tK.isDisturbed(e.stream))}function oRe(t){let e=t.headersList,r=uRt(e);return r==="failure"?null:r}ARe.exports={extractBody:aRe,safelyExtractBody:bRt,cloneBody:QRt,mixinBody:NRt,streamRegistry:BRt,bodyUnusable:cRe}});var QRe=y((KFr,bRe)=>{"use strict";var et=Q("node:assert"),He=ht(),{channels:uRe}=om(),rK=FV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:lRe,RequestAbortedError:yRe,InvalidArgumentError:xRt,HeadersTimeoutError:SRt,HeadersOverflowError:TRt,SocketError:Kg,InformationalError:wI,BodyTimeoutError:RRt,HTTPParserError:DRt,ResponseExceededMaxSizeError:kRt}=At(),{kUrl:CRe,kReset:ko,kClient:SF,kParser:Yr,kBlocking:Sx,kRunning:jn,kPending:AK,kSize:dRe,kWriting:Am,kQueue:TA,kNoRef:Nx,kKeepAliveDefaultTimeout:vRt,kHostHeader:PRt,kPendingIdx:MRt,kRunningIdx:bc,kError:qi,kPipelining:NF,kSocket:Xg,kKeepAliveTimeoutValue:TF,kMaxHeadersSize:FRt,kKeepAliveMaxTimeout:LRt,kKeepAliveTimeoutThreshold:_Rt,kHeadersTimeout:URt,kBodyTimeout:ORt,kStrictContentLength:iK,kMaxRequests:hRe,kCounter:HRt,kMaxResponseSize:qRt,kOnError:fRe,kResume:th,kHTTPContext:IRe,kClosed:oK}=br(),ma=ATe(),mRe=Buffer.alloc(0),QF=Buffer[Symbol.species],GRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),NI=Symbol("kIdleSocketValidationTimeout"),uK=Symbol("kSocketUsed"),nK;function YRt(){let t=process.env.JEST_WORKER_ID?Tj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(dTe())}catch{}return e||(e=new WebAssembly.Module(t||Tj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new QF(Zu.buffer,o,i))},wasm_on_message_begin:n=>(et(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new QF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new QF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(et(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new QF(Zu.buffer,o,i))},wasm_on_message_complete:n=>(et(wn.ptr===n),wn.onMessageComplete())}})}var sK=null,wn=null,Zu=null,wF=0,$u=null,zRt=0,xx=1,xI=2|xx,xF=4|xx,aK=8|zRt,cK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[FRt],this.shouldKeepAliv
Line truncated
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(SA.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(tK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=SA.is.ReadableStream(t)?t:aRt(t)}return(typeof i=="string"||hRt(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(eK(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!eK(r)&&n.enqueue(typeof A=="string"?bF.encode(A):new Uint8Array(A));queueMicrotask(()=>cRt(n))})(),[{stream:r,source:i,length:o},a]}function bRt(t,e=!1){return SA.is.ReadableStream(t)&&($j(!tK.isDisturbed(t),"The body has already been consumed."),$j(!t.locked,"The stream is locked.")),aRe(t,e)}function QRt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function wRt(t,e){return{blob(){return bI(this,n=>{let s=oRe(e(this));return s===null?s="":s&&(s=fRt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return bI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return bI(this,ERt,t,e)},json(){return bI(this,gRt,t,e)},formData(){return bI(this,n=>{let s=oRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=mRt(n,s),o=new iRe;return lRt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new iRe;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 bI(this,n=>new Uint8Array(n),t,e)}}}function NRt(t,e){Object.assign(t.prototype,wRt(t,e))}function bI(t,e,r,n){try{SA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),cRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=pRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ARt(t.body,o,i),s.promise)}function cRe(t){let e=t.body;return e!=null&&(e.stream.locked||tK.isDisturbed(e.stream))}function oRe(t){let e=t.headersList,r=uRt(e);return r==="failure"?null:r}ARe.exports={extractBody:aRe,safelyExtractBody:bRt,cloneBody:QRt,mixinBody:NRt,streamRegistry:BRt,bodyUnusable:cRe}});var QRe=y((ZFr,bRe)=>{"use strict";var et=Q("node:assert"),He=ht(),{channels:uRe}=om(),rK=FV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:lRe,RequestAbortedError:yRe,InvalidArgumentError:xRt,HeadersTimeoutError:SRt,HeadersOverflowError:TRt,SocketError:Kg,InformationalError:wI,BodyTimeoutError:RRt,HTTPParserError:DRt,ResponseExceededMaxSizeError:kRt}=At(),{kUrl:CRe,kReset:ko,kClient:SF,kParser:Yr,kBlocking:Sx,kRunning:jn,kPending:AK,kSize:dRe,kWriting:Am,kQueue:TA,kNoRef:Nx,kKeepAliveDefaultTimeout:vRt,kHostHeader:PRt,kPendingIdx:MRt,kRunningIdx:bc,kError:qi,kPipelining:NF,kSocket:Xg,kKeepAliveTimeoutValue:TF,kMaxHeadersSize:FRt,kKeepAliveMaxTimeout:LRt,kKeepAliveTimeoutThreshold:_Rt,kHeadersTimeout:URt,kBodyTimeout:ORt,kStrictContentLength:iK,kMaxRequests:hRe,kCounter:HRt,kMaxResponseSize:qRt,kOnError:fRe,kResume:th,kHTTPContext:IRe,kClosed:oK}=br(),ma=ATe(),mRe=Buffer.alloc(0),QF=Buffer[Symbol.species],GRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),NI=Symbol("kIdleSocketValidationTimeout"),uK=Symbol("kSocketUsed"),nK;function YRt(){let t=process.env.JEST_WORKER_ID?Tj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(dTe())}catch{}return e||(e=new WebAssembly.Module(t||Tj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new QF(Zu.buffer,o,i))},wasm_on_message_begin:n=>(et(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new QF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new QF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>(et(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{et(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new QF(Zu.buffer,o,i))},wasm_on_message_complete:n=>(et(wn.ptr===n),wn.onMessageComplete())}})}var sK=null,wn=null,Zu=null,wF=0,$u=null,zRt=0,xx=1,xI=2|xx,xF=4|xx,aK=8|zRt,cK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[FRt],this.shouldKeepAliv
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[PRt],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -101,13 +101,13 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[iK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===xI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[th]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Am]=!1,e&&(et(n[jn]<=1,"pipeline should only contain this request"),s(e))}};bRe.exports=WRt});var vRe=y((XFr,kRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:sDt}=Q("node:stream"),Rt=ht(),{RequestContentLengthMismatchError:fK,RequestAbortedError:iDt,SocketError:Px,InformationalError:um,InvalidArgumentError:oDt,HeadersTimeoutError:aDt,BodyTimeoutError:cDt}=At(),{kUrl:vx,kReset:vF,kClient:pa,kRunning:Mx,kPending:ADt,kQueue:Rx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:uDt,kOnError:SI,kMaxConcurrentStreams:mK,kPingInterval:wRe,kHTTP2Session:rh,kHTTP2InitialWindowSize:lDt,kHTTP2ConnectionWindowSize:dDt,kResume:tl,kSize:hDt,kHTTPContext:gK,kClosed:pK,kBodyTimeout:fDt,kHeadersTimeout:mDt,kEnableConnectProtocol:Dx,kRemoteSettings:kx,kHTTP2Stream:DF,kHTTP2SessionState:EK}=br(),{channels:NRe}=om(),Qc=Symbol("open streams"),xRe,kF;try{kF=Q("node:http2")}catch{kF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:pDt,HTTP2_HEADER_METHOD:SRe,HTTP2_HEADER_PATH:TRe,HTTP2_HEADER_SCHEME:lK,HTTP2_HEADER_CONTENT_LENGTH:gDt,HTTP2_HEADER_EXPECT:EDt,HTTP2_HEADER_STATUS:dK,HTTP2_HEADER_PROTOCOL:yDt,NGHTTP2_REFUSED_STREAM:CDt,NGHTTP2_CANCEL:IDt}}=kF;function hK(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 BDt(t,e){t[An]=e;let r=t[lDt],n=t[dDt],s=kF.connect(t[vx],{createConnection:()=>e,peerMaxConcurrentStreams:t[mK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[EK]={ping:{interval:t[wRe]===0?null:setInterval(NDt,t[wRe],s).unref()}},s[Dx]=!1,s[kx]=!1,n&&Rt.addListener(s,"connect",QDt.bind(s,n)),Rt.addListener(s,"error",xDt),Rt.addListener(s,"frameError",SDt),Rt.addListener(s,"end",TDt),Rt.addListener(s,"goaway",RDt),Rt.addListener(s,"close",DDt),Rt.addListener(s,"remoteSettings",wDt),s.unref(),t[rh]=s,e[rh]=s,Rt.addListener(e,"error",vDt),Rt.addListener(e,"end",PDt),Rt.addListener(e,"close",kDt),e[pK]=!1,e.on("close",MDt),{version:"h2",defaultPipelining:1/0,write(i){return LDt(t,i)},resume(){bDt(t)},destroy(i,o){e[pK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Mx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1||Rt.bodyLength(i.body)!==0&&(Rt.isStream(i.body)||Rt.isAsyncIterable(i.body)||Rt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1;return!1}}}function bDt(t){let e=t[An];e?.destroyed===!1&&(t[hDt]===0?(e.unref(),t[rh].unref()):(e.ref(),t[rh].ref()))}function QDt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function wDt(t){if(this[pa][mK]=t.maxConcurrentStreams??this[pa][mK],this[kx]===!0&&this[Dx]===!0&&t.enableConnectProtocol===!1){let e=new um("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][SI](e);return}this[Dx]=t.enableConnectProtocol??this[Dx],this[kx]=!0,this[pa][tl]()}function NDt(t){let e=t[EK];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[pa],o=this[pa];if(n!=null){let a=new um(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[SI](a)}else i.emit("ping",s)}}function xDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][SI](t)}function SDt(t,e,r){if(r===0){let n=new um(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][SI](n)}}function TDt(){let t=new Px("other side closed",Rt.getSocketInfo(this[An]));this.destroy(t),Rt.destroy(this[An],t)}function Tx(t,e,r=!1){let n=t[Rx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function RDt(t){let e=this[ga]||new Px(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[gK]=null,this.close(),this[rh]=null,Rt.destroy(this[An],e),r[el]<r[Rx].length){let n=r[Rx][r[el]];r[Rx][r[el]++]=null,n!=null&&Rt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Mx]===0),r.emit("disconnect",r[vx],[r],e),r.emit("connectionError",r[vx],[r],e),r[tl]()}function DDt(){let{[pa]:t,[EK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Px("closed",Rt.getSocketInfo(r));if(t[An]=null,t[gK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[ADt]===0);let s=t[Rx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Rt.errorRequest(t,o,n)}}}function kDt(){let t=this[ga]||new Px("closed",Rt.getSocketInfo(this)),e=this[rh][pa];e[An]=null,e[gK]=null,this[rh]!==null&&this[
Line truncated
|
||||
`;NRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[EDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[dK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),hK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Tx(t,e),t[tl]()):(C(new um("HTTP/2: stream half-closed (remote)")),Tx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new um("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new um(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new cDt(`HTTP/2: "body timeout after ${n}"`):new aDt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?RRe(C,m,null,t,e,t[An],B,I):Rt.isBuffer(h)?RRe(C,m,h,t,e,t[An],B,I):Rt.isBlobLike(h)?typeof h.stream=="function"?DRe(C,m,h.stream(),t,e,t[An],B,I):UDt(C,m,h,t,e,t[An],B,I):Rt.isStream(h)?_Dt(C,t[An],I,m,h,t,e,B):Rt.isIterable(h)?DRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function RRe(t,e,r,n,s,i,o,a){try{r!=null&&Rt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[vF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function _Dt(t,e,r,n,s,i,o,a){wc(a!==0||i[Mx]===0,"stream body cannot be pipelined");let c=sDt(s,n,u=>{u?(Rt.destroy(c,u),t(u)):(Rt.removeAllListeners(c),o.onRequestSent(),r||(e[vF]=!0),i[tl]())});Rt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function UDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new fK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(c){t(c)}}async function DRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Mx]===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)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}kRe.exports=BDt});var fm=y((ZFr,HRe)=>{"use strict";var nh=Q("node:assert"),LRe=Q("node:net"),Fx=Q("node:http"),eE=ht(),{ClientStats:ODt}=lj(),{channels:TI}=om(),HDt=X1e(),qDt=Yg(),{InvalidArgumentError:zr,InformationalError:GDt,ClientDestroyedError:YDt}=At(),zDt=zg(),{kUrl:rl,kServerName:hm,kClient:WDt,kBusy:CK,kConnect:JDt,kResuming:tE,kRunning:Ox,kPending:Hx,kSize:Lx,kQueue:RA,kConnected:VDt,kConnecting:RI,kNeedDrain:dm,kKeepAliveDefaultTimeout:PRe,kHostHeader:jDt,kPendingIdx:DA,kRunningIdx:ih,kError:KDt,kPipelining:PF,kKeepAliveTimeoutValue:XDt,kMaxHeadersSize:ZDt,kKeepAliveMaxTimeout:$Dt,kKeepAliveTimeoutThreshold:e2t,kHeadersTimeout:t2t,kBodyTimeout:r2t,kStrictContentLength:n2t,kConnector:_x,kMaxRequests:IK,kCounter:s2t,kClose:i2t,kDestroy:o2t,kDispatch:a2t,kLocalAddress:Ux,kMaxResponseSize:c2t,kOnError:A2t,kHTTPContext:On,kMaxConcurrentStreams:u2t,kHTTP2InitialWindowSize:l2t,kHTTP2ConnectionWindowSize:d2t,kResume:sh,kPingInterval:h2t}=br(),f2t=QRe(),m2t=vRe(),lm=Symbol("kClosedResolve"),p2t=Fx&&Fx.maxHeaderSize&&Number.isInteger(Fx.maxHeaderSize)&&Fx.maxHeaderSize>0?()=>Fx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},MRe=()=>{};function _Re(t){return t[PF]??t[On]?.defaultPipelining??1}var BK=class extends qDt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[r2t]=a??3e5,this[t2t]=n??3e5,this[n2t]=g??!0,this[IK]=B,this[lm]=null,this[c2t]=J>-1?J:-1,this[On]=null,this[u2t]=k??100,this[l2t]=ne??262144,this[d2t]=le??524288,this[h2t]=fe??6e4,this[RA]=[],this[ih]=0,this[DA]=0,this[sh]=ze=>bK(this,ze),this[A2t]=ze=>URe(this,ze)}get pipelining(){return this[PF]}set pipelining(e){this[PF]=e,this[sh](!0)}get stats(){return new ODt(this)}get[Hx](){return this[RA].length-this[DA]}get[Ox](){return this[DA]-this[ih]}get[Lx](){return this[RA].length-this[ih]}get[VDt](){return!!this[On]&&!this[RI]&&!this[On].destroyed}get[CK](){return!!(this[On]?.busy(null)||this[Lx]>=(_Re(this)||1)||this[Hx]>0)}[JDt](e){ORe(this),this.once("connect",e)}[a2t](e,r){let n=new HDt(this[rl].origin,e,r);return this[RA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>bK(this))):this[sh](!0)),this[tE]&&this[dm]!==2&&this[CK]&&(this[dm]=2),this[dm]<2}[i2t](){return new Promise(e=>{this[Lx]?this[lm]=e:e(null)})}[o2t](e){return new Promise(r=>{let n=this[RA].splice(this[DA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[lm]&&(this[lm](),this[lm]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[sh]()})}};function URe(t,e){if(t[Ox]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){nh(t[DA]===t[ih]);let r=t[RA].splice(t[ih]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}nh(t[Lx]===0)}}function ORe(t){nh(!t[RI]),nh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");nh(i!==-1);let o=r.substring(1,i);nh(LRe.isIPv6(o)),r=o}t[RI]=!0,TI.beforeConnect.hasSubscribers&&TI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x]});try{t[_x]({host:e,hostname:r,protocol:n,port:s,servername:t[hm],localAddress:t[Ux]},(i,o)=>{if(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}if(t.destroyed){eE.destroy(o.on("error",MRe),new YDt),t[sh]();return}nh(o);try{t[On]=o.alpnProtocol==="h2"?m2t(t,o):f2t(t,o)}catch(a){o.destroy().on("error",MRe),yK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}t[RI]=!1,o[s2t]=0,o[IK]=t[IK],o[WDt]=t,o[KDt]=null,TI.connected.hasSubscribers&&TI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],socket:o}),t.emit("connect",t[rl],[t]),t[sh]()})}catch(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]()}}function yK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[RI]=!1,TI.connectError.hasSubscribers&&TI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(nh(t[Ox]===0);t[Hx]>0&&t[RA][t[DA]].servername===t[hm];){let o=t[RA][t[DA]++];eE.errorRequest(t,o,e)}else URe(t,e);t.emit("connectionError",t[rl],[t],e)}}function FRe(t){t[dm]=0,t.emit("drain",t[rl],[t])}function bK(t,e){t[tE]!==2&&(t[tE]=2,g2t(t,e),t[tE]=0,t[ih]>256&&(t[RA].splice(0,t[ih]),t[DA]-=t[ih],t[ih]=0))}function g2t(t,e){for(;;){if(t.destroyed){nh(t[Hx]===0);return}if(t[lm]&&!t[Lx]){t[lm](),t[lm]=null;return}if(t[On]&&t[On].resume(),t[CK])t[dm]=2;else if(t[dm]===2){e?(t[dm]=1,queueMicrotask(()=>FRe(t))):FRe(t);continue}if(t[Hx]===0||t[Ox]>=(_Re(t)||1))return;let r=t[RA][t[DA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[hm]!==r.servername){if(t[Ox]>0)return;t[hm]=r.servername,t[On]?.destroy(new GDt("servername changed"),()=>{t[On]=null,bK(t)})}if(t[RI])return;if(!t[On]){ORe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[DA]++:t[RA].splice(t[DA],1)}}HRe.exports=BK});var QK=y((eLr,qRe)=>{"use strict";var MF=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)}};qRe.exports=class{constructor(){this.head=this.tail=new MF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new MF),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 FF=y((tLr,XRe)=>{"use strict";var{PoolStats:E2t}=lj(),y2t=Yg(),C2t=QK(),{kConnected:wK,kSize:GRe,kRunning:YRe,kPending:zRe,kQueued:qx,kBusy:I2t,kFree:B2t,kUrl:b2t,kClose:Q2t,kDestroy:w2t,kDispatch:N2t}=br(),Ms=Symbol("clients"),Gi=Symbol("needDrain"),Gx=Symbol("queue"),NK=Symbol("closed resolve"),xK=Symbol("onDrain"),WRe=Symbol("onConnect"),JRe=Symbol("onDisconnect"),VRe=Symbol("onConnectionError"),SK=Symbol("get dispatcher"),jRe=Symbol("add client"),KRe=Symbol("remove client"),TK=class extends y2t{[Gx]=n
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[iK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===xI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[th]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Am]=!1,e&&(et(n[jn]<=1,"pipeline should only contain this request"),s(e))}};bRe.exports=WRt});var vRe=y(($Fr,kRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:sDt}=Q("node:stream"),Rt=ht(),{RequestContentLengthMismatchError:fK,RequestAbortedError:iDt,SocketError:Px,InformationalError:um,InvalidArgumentError:oDt,HeadersTimeoutError:aDt,BodyTimeoutError:cDt}=At(),{kUrl:vx,kReset:vF,kClient:pa,kRunning:Mx,kPending:ADt,kQueue:Rx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:uDt,kOnError:SI,kMaxConcurrentStreams:mK,kPingInterval:wRe,kHTTP2Session:rh,kHTTP2InitialWindowSize:lDt,kHTTP2ConnectionWindowSize:dDt,kResume:tl,kSize:hDt,kHTTPContext:gK,kClosed:pK,kBodyTimeout:fDt,kHeadersTimeout:mDt,kEnableConnectProtocol:Dx,kRemoteSettings:kx,kHTTP2Stream:DF,kHTTP2SessionState:EK}=br(),{channels:NRe}=om(),Qc=Symbol("open streams"),xRe,kF;try{kF=Q("node:http2")}catch{kF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:pDt,HTTP2_HEADER_METHOD:SRe,HTTP2_HEADER_PATH:TRe,HTTP2_HEADER_SCHEME:lK,HTTP2_HEADER_CONTENT_LENGTH:gDt,HTTP2_HEADER_EXPECT:EDt,HTTP2_HEADER_STATUS:dK,HTTP2_HEADER_PROTOCOL:yDt,NGHTTP2_REFUSED_STREAM:CDt,NGHTTP2_CANCEL:IDt}}=kF;function hK(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 BDt(t,e){t[An]=e;let r=t[lDt],n=t[dDt],s=kF.connect(t[vx],{createConnection:()=>e,peerMaxConcurrentStreams:t[mK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[EK]={ping:{interval:t[wRe]===0?null:setInterval(NDt,t[wRe],s).unref()}},s[Dx]=!1,s[kx]=!1,n&&Rt.addListener(s,"connect",QDt.bind(s,n)),Rt.addListener(s,"error",xDt),Rt.addListener(s,"frameError",SDt),Rt.addListener(s,"end",TDt),Rt.addListener(s,"goaway",RDt),Rt.addListener(s,"close",DDt),Rt.addListener(s,"remoteSettings",wDt),s.unref(),t[rh]=s,e[rh]=s,Rt.addListener(e,"error",vDt),Rt.addListener(e,"end",PDt),Rt.addListener(e,"close",kDt),e[pK]=!1,e.on("close",MDt),{version:"h2",defaultPipelining:1/0,write(i){return LDt(t,i)},resume(){bDt(t)},destroy(i,o){e[pK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Mx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1||Rt.bodyLength(i.body)!==0&&(Rt.isStream(i.body)||Rt.isAsyncIterable(i.body)||Rt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[kx]===!1;return!1}}}function bDt(t){let e=t[An];e?.destroyed===!1&&(t[hDt]===0?(e.unref(),t[rh].unref()):(e.ref(),t[rh].ref()))}function QDt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function wDt(t){if(this[pa][mK]=t.maxConcurrentStreams??this[pa][mK],this[kx]===!0&&this[Dx]===!0&&t.enableConnectProtocol===!1){let e=new um("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][SI](e);return}this[Dx]=t.enableConnectProtocol??this[Dx],this[kx]=!0,this[pa][tl]()}function NDt(t){let e=t[EK];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[pa],o=this[pa];if(n!=null){let a=new um(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[SI](a)}else i.emit("ping",s)}}function xDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][SI](t)}function SDt(t,e,r){if(r===0){let n=new um(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][SI](n)}}function TDt(){let t=new Px("other side closed",Rt.getSocketInfo(this[An]));this.destroy(t),Rt.destroy(this[An],t)}function Tx(t,e,r=!1){let n=t[Rx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function RDt(t){let e=this[ga]||new Px(`HTTP/2: "GOAWAY" frame received with code ${t}`,Rt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[gK]=null,this.close(),this[rh]=null,Rt.destroy(this[An],e),r[el]<r[Rx].length){let n=r[Rx][r[el]];r[Rx][r[el]++]=null,n!=null&&Rt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Mx]===0),r.emit("disconnect",r[vx],[r],e),r.emit("connectionError",r[vx],[r],e),r[tl]()}function DDt(){let{[pa]:t,[EK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Px("closed",Rt.getSocketInfo(r));if(t[An]=null,t[gK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[ADt]===0);let s=t[Rx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Rt.errorRequest(t,o,n)}}}function kDt(){let t=this[ga]||new Px("closed",Rt.getSocketInfo(this)),e=this[rh][pa];e[An]=null,e[gK]=null,this[rh]!==null&&this[
Line truncated
|
||||
`;NRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[EDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[DF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[dK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),hK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Tx(t,e),t[tl]()):(C(new um("HTTP/2: stream half-closed (remote)")),Tx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new um("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new um(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new cDt(`HTTP/2: "body timeout after ${n}"`):new aDt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?RRe(C,m,null,t,e,t[An],B,I):Rt.isBuffer(h)?RRe(C,m,h,t,e,t[An],B,I):Rt.isBlobLike(h)?typeof h.stream=="function"?DRe(C,m,h.stream(),t,e,t[An],B,I):UDt(C,m,h,t,e,t[An],B,I):Rt.isStream(h)?_Dt(C,t[An],I,m,h,t,e,B):Rt.isIterable(h)?DRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function RRe(t,e,r,n,s,i,o,a){try{r!=null&&Rt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[vF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function _Dt(t,e,r,n,s,i,o,a){wc(a!==0||i[Mx]===0,"stream body cannot be pipelined");let c=sDt(s,n,u=>{u?(Rt.destroy(c,u),t(u)):(Rt.removeAllListeners(c),o.onRequestSent(),r||(e[vF]=!0),i[tl]())});Rt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function UDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new fK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(c){t(c)}}async function DRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Mx]===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)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[vF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}kRe.exports=BDt});var fm=y((eLr,HRe)=>{"use strict";var nh=Q("node:assert"),LRe=Q("node:net"),Fx=Q("node:http"),eE=ht(),{ClientStats:ODt}=lj(),{channels:TI}=om(),HDt=X1e(),qDt=Yg(),{InvalidArgumentError:zr,InformationalError:GDt,ClientDestroyedError:YDt}=At(),zDt=zg(),{kUrl:rl,kServerName:hm,kClient:WDt,kBusy:CK,kConnect:JDt,kResuming:tE,kRunning:Ox,kPending:Hx,kSize:Lx,kQueue:RA,kConnected:VDt,kConnecting:RI,kNeedDrain:dm,kKeepAliveDefaultTimeout:PRe,kHostHeader:jDt,kPendingIdx:DA,kRunningIdx:ih,kError:KDt,kPipelining:PF,kKeepAliveTimeoutValue:XDt,kMaxHeadersSize:ZDt,kKeepAliveMaxTimeout:$Dt,kKeepAliveTimeoutThreshold:e2t,kHeadersTimeout:t2t,kBodyTimeout:r2t,kStrictContentLength:n2t,kConnector:_x,kMaxRequests:IK,kCounter:s2t,kClose:i2t,kDestroy:o2t,kDispatch:a2t,kLocalAddress:Ux,kMaxResponseSize:c2t,kOnError:A2t,kHTTPContext:On,kMaxConcurrentStreams:u2t,kHTTP2InitialWindowSize:l2t,kHTTP2ConnectionWindowSize:d2t,kResume:sh,kPingInterval:h2t}=br(),f2t=QRe(),m2t=vRe(),lm=Symbol("kClosedResolve"),p2t=Fx&&Fx.maxHeaderSize&&Number.isInteger(Fx.maxHeaderSize)&&Fx.maxHeaderSize>0?()=>Fx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},MRe=()=>{};function _Re(t){return t[PF]??t[On]?.defaultPipelining??1}var BK=class extends qDt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[r2t]=a??3e5,this[t2t]=n??3e5,this[n2t]=g??!0,this[IK]=B,this[lm]=null,this[c2t]=J>-1?J:-1,this[On]=null,this[u2t]=k??100,this[l2t]=ne??262144,this[d2t]=le??524288,this[h2t]=fe??6e4,this[RA]=[],this[ih]=0,this[DA]=0,this[sh]=ze=>bK(this,ze),this[A2t]=ze=>URe(this,ze)}get pipelining(){return this[PF]}set pipelining(e){this[PF]=e,this[sh](!0)}get stats(){return new ODt(this)}get[Hx](){return this[RA].length-this[DA]}get[Ox](){return this[DA]-this[ih]}get[Lx](){return this[RA].length-this[ih]}get[VDt](){return!!this[On]&&!this[RI]&&!this[On].destroyed}get[CK](){return!!(this[On]?.busy(null)||this[Lx]>=(_Re(this)||1)||this[Hx]>0)}[JDt](e){ORe(this),this.once("connect",e)}[a2t](e,r){let n=new HDt(this[rl].origin,e,r);return this[RA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>bK(this))):this[sh](!0)),this[tE]&&this[dm]!==2&&this[CK]&&(this[dm]=2),this[dm]<2}[i2t](){return new Promise(e=>{this[Lx]?this[lm]=e:e(null)})}[o2t](e){return new Promise(r=>{let n=this[RA].splice(this[DA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[lm]&&(this[lm](),this[lm]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[sh]()})}};function URe(t,e){if(t[Ox]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){nh(t[DA]===t[ih]);let r=t[RA].splice(t[ih]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}nh(t[Lx]===0)}}function ORe(t){nh(!t[RI]),nh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");nh(i!==-1);let o=r.substring(1,i);nh(LRe.isIPv6(o)),r=o}t[RI]=!0,TI.beforeConnect.hasSubscribers&&TI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x]});try{t[_x]({host:e,hostname:r,protocol:n,port:s,servername:t[hm],localAddress:t[Ux]},(i,o)=>{if(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}if(t.destroyed){eE.destroy(o.on("error",MRe),new YDt),t[sh]();return}nh(o);try{t[On]=o.alpnProtocol==="h2"?m2t(t,o):f2t(t,o)}catch(a){o.destroy().on("error",MRe),yK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[sh]();return}t[RI]=!1,o[s2t]=0,o[IK]=t[IK],o[WDt]=t,o[KDt]=null,TI.connected.hasSubscribers&&TI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],socket:o}),t.emit("connect",t[rl],[t]),t[sh]()})}catch(i){yK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[sh]()}}function yK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[RI]=!1,TI.connectError.hasSubscribers&&TI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[hm],localAddress:t[Ux]},connector:t[_x],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(nh(t[Ox]===0);t[Hx]>0&&t[RA][t[DA]].servername===t[hm];){let o=t[RA][t[DA]++];eE.errorRequest(t,o,e)}else URe(t,e);t.emit("connectionError",t[rl],[t],e)}}function FRe(t){t[dm]=0,t.emit("drain",t[rl],[t])}function bK(t,e){t[tE]!==2&&(t[tE]=2,g2t(t,e),t[tE]=0,t[ih]>256&&(t[RA].splice(0,t[ih]),t[DA]-=t[ih],t[ih]=0))}function g2t(t,e){for(;;){if(t.destroyed){nh(t[Hx]===0);return}if(t[lm]&&!t[Lx]){t[lm](),t[lm]=null;return}if(t[On]&&t[On].resume(),t[CK])t[dm]=2;else if(t[dm]===2){e?(t[dm]=1,queueMicrotask(()=>FRe(t))):FRe(t);continue}if(t[Hx]===0||t[Ox]>=(_Re(t)||1))return;let r=t[RA][t[DA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[hm]!==r.servername){if(t[Ox]>0)return;t[hm]=r.servername,t[On]?.destroy(new GDt("servername changed"),()=>{t[On]=null,bK(t)})}if(t[RI])return;if(!t[On]){ORe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[DA]++:t[RA].splice(t[DA],1)}}HRe.exports=BK});var QK=y((rLr,qRe)=>{"use strict";var MF=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)}};qRe.exports=class{constructor(){this.head=this.tail=new MF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new MF),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 FF=y((nLr,XRe)=>{"use strict";var{PoolStats:E2t}=lj(),y2t=Yg(),C2t=QK(),{kConnected:wK,kSize:GRe,kRunning:YRe,kPending:zRe,kQueued:qx,kBusy:I2t,kFree:B2t,kUrl:b2t,kClose:Q2t,kDestroy:w2t,kDispatch:N2t}=br(),Ms=Symbol("clients"),Gi=Symbol("needDrain"),Gx=Symbol("queue"),NK=Symbol("closed resolve"),xK=Symbol("onDrain"),WRe=Symbol("onConnect"),JRe=Symbol("onDisconnect"),VRe=Symbol("onConnectionError"),SK=Symbol("get dispatcher"),jRe=Symbol("add client"),KRe=Symbol("remove client"),TK=class extends y2t{[Gx]=n
Line truncated
|
||||
|
||||
${e.format(r)}`.trim():`${r.length} interceptors are pending:
|
||||
|
||||
${e.format(r)}`.trim())}};Bke.exports=JX});var jX=y((kLr,Nke)=>{"use strict";var{InvalidArgumentError:BPt}=At(),{runtimeFeatures:bPt}=$d();function QPt(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 bke=bPt.has("crypto")?Q("node:crypto"):null,wPt=bke?.hash?t=>bke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wke(t){return Array.isArray(t)&&(t.length&1)===0}function NPt(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 xPt(t){let e={};if(!t)return e;if(wke(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 Qke=["record","playback","update"];function SPt(t){if(!Qke.includes(t))throw new BPt(`Invalid snapshot mode: ${t}. Must be one of: ${Qke.join(", ")}`)}Nke.exports={createHeaderFilters:QPt,hashId:wPt,isUndiciHeaders:wke,normalizeHeaders:xPt,isUrlExcludedFactory:NPt,validateSnapshotMode:SPt}});var Mke=y((vLr,Pke)=>{"use strict";var{writeFile:TPt,readFile:RPt,mkdir:DPt}=Q("node:fs/promises"),{dirname:kPt,resolve:xke}=Q("node:path"),{setTimeout:vPt,clearTimeout:Ske}=Q("node:timers"),{InvalidArgumentError:Tke,UndiciError:PPt}=At(),{hashId:MPt,isUrlExcludedFactory:FPt,normalizeHeaders:Rke,createHeaderFilters:Dke}=jX();function rS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Rke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kke(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 vke(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 nS(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 MPt(r)}var KX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Dke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=FPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=rS(e,this.#a,this.matchOptions),s=nS(n),i=Rke(r.headers),o={statusCode:r.statusCode,headers:vke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=rS(e,this.#a,this.matchOptions),n=nS(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 Tke("Snapshot path is required");try{let n=await RPt(xke(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 PPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Tke("Snapshot path is required");let n=xke(r);await DPt(kPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await TPt(n,JSON.s
Line truncated
|
||||
${e.format(r)}`.trim())}};Bke.exports=JX});var jX=y((PLr,Nke)=>{"use strict";var{InvalidArgumentError:BPt}=At(),{runtimeFeatures:bPt}=$d();function QPt(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 bke=bPt.has("crypto")?Q("node:crypto"):null,wPt=bke?.hash?t=>bke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function wke(t){return Array.isArray(t)&&(t.length&1)===0}function NPt(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 xPt(t){let e={};if(!t)return e;if(wke(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 Qke=["record","playback","update"];function SPt(t){if(!Qke.includes(t))throw new BPt(`Invalid snapshot mode: ${t}. Must be one of: ${Qke.join(", ")}`)}Nke.exports={createHeaderFilters:QPt,hashId:wPt,isUndiciHeaders:wke,normalizeHeaders:xPt,isUrlExcludedFactory:NPt,validateSnapshotMode:SPt}});var Mke=y((MLr,Pke)=>{"use strict";var{writeFile:TPt,readFile:RPt,mkdir:DPt}=Q("node:fs/promises"),{dirname:kPt,resolve:xke}=Q("node:path"),{setTimeout:vPt,clearTimeout:Ske}=Q("node:timers"),{InvalidArgumentError:Tke,UndiciError:PPt}=At(),{hashId:MPt,isUrlExcludedFactory:FPt,normalizeHeaders:Rke,createHeaderFilters:Dke}=jX();function rS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Rke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:kke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function kke(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 vke(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 nS(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 MPt(r)}var KX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=Dke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=FPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=rS(e,this.#a,this.matchOptions),s=nS(n),i=Rke(r.headers),o={statusCode:r.statusCode,headers:vke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=rS(e,this.#a,this.matchOptions),n=nS(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 Tke("Snapshot path is required");try{let n=await RPt(xke(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 PPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new Tke("Snapshot path is required");let n=xke(r);await DPt(kPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await TPt(n,JSON.s
Line truncated
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
PRAGMA temp_store = memory;
|
||||
@@ -190,40 +190,40 @@ ${e.format(r)}`.trim())}};Bke.exports=JX});var jX=y((kLr,Nke)=>{"use strict";var
|
||||
ORDER BY cachedAt ASC
|
||||
LIMIT ?
|
||||
)
|
||||
`)}close(){this.#n.close()}get(e){wZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){wZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wZ(e),OFt(r);let n=0,s=[],i=this;return new UFt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!HFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function HFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((t_r,iPe)=>{"use strict";var{kConstruct:qFt}=br(),{kEnumerableProperty:WI}=ht(),{iteratorMixin:GFt,isValidHeaderName:cS,isValidHeaderValue:ePe}=fa(),{webidl:jt}=Xs(),xZ=Q("node:assert"),fL=Q("node:util");function $ve(t){return t===10||t===13||t===9||t===32}function tPe(t){let e=0,r=t.length;for(;r>e&&$ve(t.charCodeAt(r-1));)--r;for(;r>e&&$ve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rPe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});SZ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)SZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function SZ(t,e,r){if(r=tPe(r),cS(e)){if(!ePe(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sPe(t)==="immutable")throw new TypeError("immutable");return pL(t).append(e,r,!1)}function YFt(t){let e=pL(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 nPe(t,e){return t[0]<e[0]?-1:1}var mL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if($L(e,s,l3t)){d3t(e,i)&&(r.retry=e.toString("utf8",i));return}if($L(e,s,u3t)){h3t(e,i)&&(r.id=e.toString("utf8",i));return}if($L(e,s,A3t)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&s3t(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&i3t(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===sB[0]||(this.checkBOM=!1),!0):n===void 0?e===sB[0]&&r===sB[1]?!0:(this.checkBOM=!1,!1):(e===sB[0]&&r===sB[1]&&n===sB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};uFe.exports={EventSourceStream:f$}});var yFe=y((N_r,EFe)=>{"use strict";var{pipeline:f3t}=Q("node:stream"),{fetching:m3t}=hS(),{makeRequest:p3t}=VI(),{webidl:zi}=Xs(),{EventSourceStream:g3t}=lFe(),{parseMIMEType:E3t}=Ic(),{createFastMessageEvent:y3t}=HL(),{isNetworkError:dFe}=uS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:hFe}=fa(),fFe=!1,mFe=3e3,CS=0,pFe=1,IS=2,C3t="anonymous",I3t="use-credentials",iB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=CS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),fFe||(fFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=hFe,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=C3t;r.withCredentials===!0&&(o=I3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hFe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=p3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===IS)return;this.#r=CS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!dFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dFe(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?E3t(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=pFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new g3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(y3t(c.type,c.options))}});f3t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=m3t(e)}#A(){this.#r!==IS&&(this.#r=CS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`)}close(){this.#n.close()}get(e){wZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){wZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){wZ(e),OFt(r);let n=0,s=[],i=this;return new UFt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!HFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function HFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((n_r,iPe)=>{"use strict";var{kConstruct:qFt}=br(),{kEnumerableProperty:WI}=ht(),{iteratorMixin:GFt,isValidHeaderName:cS,isValidHeaderValue:ePe}=fa(),{webidl:jt}=Xs(),xZ=Q("node:assert"),fL=Q("node:util");function $ve(t){return t===10||t===13||t===9||t===32}function tPe(t){let e=0,r=t.length;for(;r>e&&$ve(t.charCodeAt(r-1));)--r;for(;r>e&&$ve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function rPe(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});SZ(t,n[0],n[1])}else if(typeof e=="object"&&e!==null){let r=Object.keys(e);for(let n=0;n<r.length;++n)SZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function SZ(t,e,r){if(r=tPe(r),cS(e)){if(!ePe(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(sPe(t)==="immutable")throw new TypeError("immutable");return pL(t).append(e,r,!1)}function YFt(t){let e=pL(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 nPe(t,e){return t[0]<e[0]?-1:1}var mL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if($L(e,s,l3t)){d3t(e,i)&&(r.retry=e.toString("utf8",i));return}if($L(e,s,u3t)){h3t(e,i)&&(r.id=e.toString("utf8",i));return}if($L(e,s,A3t)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&s3t(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&i3t(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===sB[0]||(this.checkBOM=!1),!0):n===void 0?e===sB[0]&&r===sB[1]?!0:(this.checkBOM=!1,!1):(e===sB[0]&&r===sB[1]&&n===sB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};uFe.exports={EventSourceStream:f$}});var yFe=y((S_r,EFe)=>{"use strict";var{pipeline:f3t}=Q("node:stream"),{fetching:m3t}=hS(),{makeRequest:p3t}=VI(),{webidl:zi}=Xs(),{EventSourceStream:g3t}=lFe(),{parseMIMEType:E3t}=Ic(),{createFastMessageEvent:y3t}=HL(),{isNetworkError:dFe}=uS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:hFe}=fa(),fFe=!1,mFe=3e3,CS=0,pFe=1,IS=2,C3t="anonymous",I3t="use-credentials",iB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=CS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),fFe||(fFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=hFe,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=C3t;r.withCredentials===!0&&(o=I3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=hFe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=p3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===IS)return;this.#r=CS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!dFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(dFe(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?E3t(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=pFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new g3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(y3t(c.type,c.options))}});f3t(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=m3t(e)}#A(){this.#r!==IS&&(this.#r=CS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`).slice(1).join(`
|
||||
`);t.stack=r?`${r}
|
||||
${i}`:s.stack}Qe.exports.fetch=function(e,r=void 0){return z3t(e,r).catch(n=>{throw CFe?QFe(n,CFe):n&&typeof n=="object"&&Error.captureStackTrace(n,Qe.exports.fetch),n})};Qe.exports.Headers=IE().Headers;Qe.exports.Response=uS().Response;Qe.exports.Request=VI().Request;Qe.exports.FormData=BF().FormData;var{setGlobalOrigin:W3t,getGlobalOrigin:J3t}=kj();Qe.exports.setGlobalOrigin=W3t;Qe.exports.getGlobalOrigin=J3t;var{CacheStorage:V3t}=cMe(),{kConstruct:j3t}=br();Qe.exports.caches=new V3t(j3t);var{deleteCookie:K3t,getCookies:X3t,getSetCookies:Z3t,setCookie:$3t,parseCookie:e4t}=CMe();Qe.exports.deleteCookie=K3t;Qe.exports.getCookies=X3t;Qe.exports.getSetCookies=Z3t;Qe.exports.setCookie=$3t;Qe.exports.parseCookie=e4t;var{parseMIMEType:t4t,serializeAMimeType:r4t}=Ic();Qe.exports.parseMIMEType=t4t;Qe.exports.serializeAMimeType=r4t;var{CloseEvent:n4t,ErrorEvent:s4t,MessageEvent:i4t}=HL(),{WebSocket:o4t,ping:a4t}=$Me();Qe.exports.WebSocket=o4t;Qe.exports.CloseEvent=n4t;Qe.exports.ErrorEvent=s4t;Qe.exports.MessageEvent=i4t;Qe.exports.ping=a4t;Qe.exports.WebSocketStream=aFe().WebSocketStream;Qe.exports.WebSocketError=A$().WebSocketError;Qe.exports.request=BS(oB.request);Qe.exports.stream=BS(oB.stream);Qe.exports.pipeline=BS(oB.pipeline);Qe.exports.connect=BS(oB.connect);Qe.exports.upgrade=BS(oB.upgrade);Qe.exports.MockClient=v3t;Qe.exports.MockCallHistory=P3t;Qe.exports.MockCallHistoryLog=M3t;Qe.exports.MockPool=L3t;Qe.exports.MockAgent=F3t;Qe.exports.SnapshotAgent=_3t;Qe.exports.mockErrors=U3t;var{EventSource:c4t}=yFe();Qe.exports.EventSource=c4t;function A4t(){globalThis.fetch=Qe.exports.fetch,globalThis.Headers=Qe.exports.Headers,globalThis.Response=Qe.exports.Response,globalThis.Request=Qe.exports.Request,globalThis.FormData=Qe.exports.FormData,globalThis.WebSocket=Qe.exports.WebSocket,globalThis.CloseEvent=Qe.exports.CloseEvent,globalThis.ErrorEvent=Qe.exports.ErrorEvent,globalThis.MessageEvent=Qe.exports.MessageEvent,globalThis.EventSource=Qe.exports.EventSource}Qe.exports.install=A4t});var bS=y(xm=>{"use strict";xm.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");xm.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");xm.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";xm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);xm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);xm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());xm.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 xFe=y((R_r,NFe)=>{"use strict";var{asciiLowercase:r_,solelyContainsHTTPTokenCodePoints:u4t,soleyContainsHTTPQuotedStringTokenCodePoints:l4t}=bS();NFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=r_(String(e)),this._map.get(e)}has(e){return e=r_(String(e)),this._map.has(e)}set(e,r){if(e=r_(String(e)),r=String(r),!u4t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!l4t(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=r_(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 RFe=y((D_r,TFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:d4t,removeTrailingHTTPWhitespace:SFe,isHTTPWhitespaceChar:h4t,solelyContainsHTTPTokenCodePoints:m$,soleyContainsHTTPQuotedStringTokenCodePoints:f4t,asciiLowercase:p$,collectAnHTTPQuotedString:m4t}=bS();TFe.exports=t=>{t=d4t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!m$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=SFe(n),n.length===0||!m$(n))return null;let s={type:p$(r),subtype:p$(n),parameters:new Map};for(;e<t.length;){for(++e;h4t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=p$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=m4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=SFe(o),o==="")continue}i.length>0&&m$(i)&&f4t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var kFe=y((k_r,DFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:p4t}=bS();DFe.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+="=",(!p4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var FFe=y((P_r,MFe)=>{"use strict";var g4t=xFe(),E4t=RFe(),y4t=kFe(),{asciiLowercase:vFe,solelyContainsHTTPTokenCodePoints:PFe}=bS();MFe.exports=class{constructor(e){e=String(e);let r=E4t(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 g4t(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=vFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PFe(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=vFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return y4t(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 $Fe=y(As=>{"use strict";var b$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),q4t=b$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?One:f.type==="?"?Gne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=w5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==Hne?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Hne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return x5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_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?One:r.dot?b5t:Q5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?T5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(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]=Ji))}),o.filter(a=>a!==Ji).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;qne.sep!=="/"&&(e=e.split(qne.sep).join("/")),e=e.split(KUe),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 Sa.defaults(e).Minimatch}};Sa.Minimatch=BB});var sOe=y((f6r,nOe)=>{nOe.exports=rOe;var Wne=Q("fs"),{EventEmitter:D5t}=Q("events"),{Minimatch:zne}=$Ue(),{resolve:k5t}=Q("path");function v5t(t,e){return new Promise((r,n)=>{Wne.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 eOe(t,e){return new Promise((r,n)=>{(e?Wne.stat:Wne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?eOe(t,!1):null):r(null):r(o)})})}async function*tOe(t,e,r,n,s,i){let o=await v5t(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 eOe(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*tOe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*P5t(t,e,r,n){yield*tOe("",t,e,r,n,!0)}function M5t(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 fU=class extends D5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=M5t(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 zne(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 zne(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 zne(i,{dot:!0}))}this.iterator=P5t(k5t(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
Line truncated
|
||||
`||t==="\r";xm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);xm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);xm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());xm.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 xFe=y((k_r,NFe)=>{"use strict";var{asciiLowercase:r_,solelyContainsHTTPTokenCodePoints:u4t,soleyContainsHTTPQuotedStringTokenCodePoints:l4t}=bS();NFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=r_(String(e)),this._map.get(e)}has(e){return e=r_(String(e)),this._map.has(e)}set(e,r){if(e=r_(String(e)),r=String(r),!u4t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!l4t(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=r_(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 RFe=y((v_r,TFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:d4t,removeTrailingHTTPWhitespace:SFe,isHTTPWhitespaceChar:h4t,solelyContainsHTTPTokenCodePoints:m$,soleyContainsHTTPQuotedStringTokenCodePoints:f4t,asciiLowercase:p$,collectAnHTTPQuotedString:m4t}=bS();TFe.exports=t=>{t=d4t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!m$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=SFe(n),n.length===0||!m$(n))return null;let s={type:p$(r),subtype:p$(n),parameters:new Map};for(;e<t.length;){for(++e;h4t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=p$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=m4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=SFe(o),o==="")continue}i.length>0&&m$(i)&&f4t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var kFe=y((P_r,DFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:p4t}=bS();DFe.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+="=",(!p4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var FFe=y((F_r,MFe)=>{"use strict";var g4t=xFe(),E4t=RFe(),y4t=kFe(),{asciiLowercase:vFe,solelyContainsHTTPTokenCodePoints:PFe}=bS();MFe.exports=class{constructor(e){e=String(e);let r=E4t(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 g4t(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=vFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!PFe(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=vFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!PFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return y4t(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 $Fe=y(As=>{"use strict";var b$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),q4t=b$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?One:f.type==="?"?Gne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=w5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==Hne?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===Hne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return x5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_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?One:r.dot?b5t:Q5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?T5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(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]=Ji))}),o.filter(a=>a!==Ji).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;qne.sep!=="/"&&(e=e.split(qne.sep).join("/")),e=e.split(KUe),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 Sa.defaults(e).Minimatch}};Sa.Minimatch=BB});var sOe=y((p6r,nOe)=>{nOe.exports=rOe;var Wne=Q("fs"),{EventEmitter:D5t}=Q("events"),{Minimatch:zne}=$Ue(),{resolve:k5t}=Q("path");function v5t(t,e){return new Promise((r,n)=>{Wne.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 eOe(t,e){return new Promise((r,n)=>{(e?Wne.stat:Wne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?eOe(t,!1):null):r(null):r(o)})})}async function*tOe(t,e,r,n,s,i){let o=await v5t(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 eOe(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*tOe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*P5t(t,e,r,n){yield*tOe("",t,e,r,n,!0)}function M5t(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 fU=class extends D5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=M5t(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 zne(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 zne(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 zne(i,{dot:!0}))}this.iterator=P5t(k5t(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
Line truncated
|
||||
`,x);x=Y===-1?w.length:Y}else if(P!==-1&&w[x]==="/"&&w[x+1]==="*"){let Y=w.indexOf("*/",x);Y!==-1?(x=Y+2,P=w.indexOf("*/",x)):(b+=w[x],x++)}else b+=w[x],x++;return b}function ms(w){let b=Qi(w.toString()),x=b.match(Oo);if(x||(x=b.match(ed)),!x)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(zA).map(Y=>Y.replace(Q0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=ms(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Oh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Oh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Oh(w,b){w.length=1,w.head=w.tail=b}function WA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(rt,Pe){K[rt].push(Pe)}function se(rt,Pe){let nt=(...Zt)=>{Fe(rt,nt),Pe(...Zt)};K[rt].push(nt)}function Fe(rt,Pe){if(!rt)return Object.keys(K).forEach(nt=>K[nt]=[]);if(!Pe)return K[rt]=[];K[rt]=K[rt].filter(nt=>nt!==Pe)}function Wt(rt,...Pe){K[rt].forEach(nt=>nt(...Pe))}var cr=!1;function Xt(rt,Pe,nt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,Es;function Ma(dp,...Rb){if(dp)return nt?Es(dp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var F0=Ar._createTaskItem(rt,nt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(F0):Ar._tasks.push(F0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),nt||!Zt)return new Promise((dp,Rb)=>{Kr=dp,Es=Rb})}function Pa(rt){return function(Pe,...nt){Y-=1;for(var Zt=0,Kr=rt.length;Zt<Kr;Zt++){var Es=rt[Zt],Ma=W.indexOf(Es);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),Es.callback(Pe,...nt),Pe!=null&&Wt("error",Pe,Es.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function M0(rt){return rt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let lp=rt=>Pe=>{if(!Pe)return new Promise((nt,Zt)=>{se(rt,(Kr,Es)=>{if(Kr)return Zt(Kr);nt(Es)})});Fe(rt),Z(rt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(rt,Pe){return{data:rt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!1,Pe)):Xt(rt,!1,!1,Pe)},pushAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!0,Pe)):Xt(rt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!1,Pe)):Xt(rt,!0,!1,Pe)},unshiftAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!0,Pe)):Xt(rt,!0,!0,Pe)},remove(rt){Ar._tasks.remove(rt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var rt=[],Pe=[],nt=Ar._tasks.length;Ar.payload&&(nt=Math.min(nt,Ar.payload));for(var Zt=0;Zt<nt;Zt++){var Kr=Ar._tasks.shift();rt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var Es=ne(Pa(rt));P(Pe,Es)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:lp("saturated")},unsaturated:{writable:!1,value:lp("unsaturated")},empty:{writable:!1,value:lp("empty")},drain:{writable:!1,value:lp("drain")},error:{writable:!1,value:lp("error")}}),Ar}function td(w,b){return WA(w,1,b)}function rd(w,b,x){return WA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Ys(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=YA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function op(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var te=g(X,3);function Ae(w,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});dn[$s]||(fOe=global[$s]||[],pOe(dn,fOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||mOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,yU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),mOe()}return Object.defineProperty(e,yU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var fOe;global[$s]||pOe(global,dn[$s]);Kne.exports=Vne(Y5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(Kne.exports=Vne(dn),dn.__patched=!0);function Vne(t){q5t(t),t.gracefulify=Vne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?bB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?bB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=G5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function bB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),jne()}var EU;function mOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);jne()}function jne(){if(clearTimeout(EU),EU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("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?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}EU===void 0&&(EU=setTimeout(jne,0))}}});var CU=y((y6r,gOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};j4e.exports={AggregateError:kse,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 vse=y((T5r,K4e)=>{"use strict";K4e.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 Ci=y((R5r,$4e)=>{"use strict";var{format:hzt,inspect:UU}=vse(),{AggregateError:fzt}=sn(),mzt=globalThis.AggregateError||fzt,pzt=Symbol("kIsNodeError"),gzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ezt=/^([A-Z][a-z0-9]*)+$/,yzt="__node_internal_",OU={};function ZE(t,e){if(!t)throw new OU.ERR_INTERNAL_ASSERTION(e)}function X4e(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 Czt(t,e,r){if(typeof e=="function")return ZE(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 ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:hzt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Czt(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[pzt]=!0,OU[t]=n}function Z4e(t){let e=yzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Izt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mzt([e,t],e.message);return r.code=e.code,r}return t||e}var Pse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new OU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(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)ZE(typeof c=="string","All expected entries have to be of type string"),gzt.includes(c)?s.push(c.toLowerCase()):Ezt.test(c)?i.push(c):(ZE(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;defaulLine truncated
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(zA).map(Y=>Y.replace(Q0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=ms(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Oh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Oh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Oh(w,b){w.length=1,w.head=w.tail=b}function WA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(rt,Pe){K[rt].push(Pe)}function se(rt,Pe){let nt=(...Zt)=>{Fe(rt,nt),Pe(...Zt)};K[rt].push(nt)}function Fe(rt,Pe){if(!rt)return Object.keys(K).forEach(nt=>K[nt]=[]);if(!Pe)return K[rt]=[];K[rt]=K[rt].filter(nt=>nt!==Pe)}function Wt(rt,...Pe){K[rt].forEach(nt=>nt(...Pe))}var cr=!1;function Xt(rt,Pe,nt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,Es;function Ma(dp,...Rb){if(dp)return nt?Es(dp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var F0=Ar._createTaskItem(rt,nt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(F0):Ar._tasks.push(F0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),nt||!Zt)return new Promise((dp,Rb)=>{Kr=dp,Es=Rb})}function Pa(rt){return function(Pe,...nt){Y-=1;for(var Zt=0,Kr=rt.length;Zt<Kr;Zt++){var Es=rt[Zt],Ma=W.indexOf(Es);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),Es.callback(Pe,...nt),Pe!=null&&Wt("error",Pe,Es.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function M0(rt){return rt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let lp=rt=>Pe=>{if(!Pe)return new Promise((nt,Zt)=>{se(rt,(Kr,Es)=>{if(Kr)return Zt(Kr);nt(Es)})});Fe(rt),Z(rt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(rt,Pe){return{data:rt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!1,Pe)):Xt(rt,!1,!1,Pe)},pushAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!1,!0,Pe)):Xt(rt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!1,Pe)):Xt(rt,!0,!1,Pe)},unshiftAsync(rt,Pe){return Array.isArray(rt)?M0(rt)?void 0:rt.map(nt=>Xt(nt,!0,!0,Pe)):Xt(rt,!0,!0,Pe)},remove(rt){Ar._tasks.remove(rt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var rt=[],Pe=[],nt=Ar._tasks.length;Ar.payload&&(nt=Math.min(nt,Ar.payload));for(var Zt=0;Zt<nt;Zt++){var Kr=Ar._tasks.shift();rt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var Es=ne(Pa(rt));P(Pe,Es)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:lp("saturated")},unsaturated:{writable:!1,value:lp("unsaturated")},empty:{writable:!1,value:lp("empty")},drain:{writable:!1,value:lp("drain")},error:{writable:!1,value:lp("error")}}),Ar}function td(w,b){return WA(w,1,b)}function rd(w,b,x){return WA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Ys(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=YA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function op(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var te=g(X,3);function Ae(w,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});dn[$s]||(fOe=global[$s]||[],pOe(dn,fOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||mOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,yU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),mOe()}return Object.defineProperty(e,yU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var fOe;global[$s]||pOe(global,dn[$s]);Kne.exports=Vne(Y5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(Kne.exports=Vne(dn),dn.__patched=!0);function Vne(t){q5t(t),t.gracefulify=Vne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?bB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?bB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=G5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?bB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function bB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),jne()}var EU;function mOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);jne()}function jne(){if(clearTimeout(EU),EU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("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?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}EU===void 0&&(EU=setTimeout(jne,0))}}});var CU=y((I6r,gOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};j4e.exports={AggregateError:kse,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 vse=y((D5r,K4e)=>{"use strict";K4e.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 Ci=y((k5r,$4e)=>{"use strict";var{format:hzt,inspect:UU}=vse(),{AggregateError:fzt}=sn(),mzt=globalThis.AggregateError||fzt,pzt=Symbol("kIsNodeError"),gzt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],Ezt=/^([A-Z][a-z0-9]*)+$/,yzt="__node_internal_",OU={};function ZE(t,e){if(!t)throw new OU.ERR_INTERNAL_ASSERTION(e)}function X4e(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 Czt(t,e,r){if(typeof e=="function")return ZE(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 ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:hzt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(Czt(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[pzt]=!0,OU[t]=n}function Z4e(t){let e=yzt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function Izt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new mzt([e,t],e.message);return r.code=e.code,r}return t||e}var Pse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new OU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(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)ZE(typeof c=="string","All expected entries have to be of type string"),gzt.includes(c)?s.push(c.toLowerCase()):Ezt.test(c)?i.push(c):(ZE(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;defaulLine truncated
|
||||
`)),e.linkname&&(r+=fae(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=fae(" "+s+"="+n[s]+`
|
||||
`);return ir.from(r)};ub.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};ub.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,$m(e.mode&Lrr,6),100),ir.write(r,$m(e.uid,6),108),ir.write(r,$m(e.gid,6),116),Yrr(e.size,r,124),ir.write(r,$m(e.mtime.getTime()/1e3|0,11),136),r[156]=f3+qrr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(RYe,r,iT),ir.copy(Prr,r,mae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,$m(e.devmajor||0,6),329),ir.write(r,$m(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,$m(kYe(r),6),148),r)};ub.decode=function(e,r,n){let s=e[156]===0?0:e[156]-f3,i=Ab(e,0,100,r),o=Zm(e,100,8),a=Zm(e,108,8),c=Zm(e,116,8),A=Zm(e,124,12),u=Zm(e,136,12),l=Hrr(s),d=e[157]===0?null:Ab(e,157,100,r),h=Ab(e,265,32),f=Ab(e,297,32),m=Zm(e,329,8),E=Zm(e,337,8),g=kYe(e);if(g===256)return null;if(g!==Zm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(_rr(e))e[345]&&(i=Ab(e,345,155,r)+"/"+i);else if(!Urr(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function _rr(t){return ir.equals(RYe,t.subarray(iT,iT+6))}function Urr(t){return ir.equals(Mrr,t.subarray(iT,iT+6))&&ir.equals(Frr,t.subarray(mae,mae+2))}function Orr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Hrr(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 qrr(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 DYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function kYe(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 $m(t,e){return t=t.toString(8),t.length>e?vrr.slice(0,e)+" ":krr.slice(0,e-t.length)+t+" "}function Grr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function Yrr(t,e,r){t.toString(8).length>11?Grr(t,e,r):ir.write(e,$m(t,11),r)}function zrr(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 Zm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return zrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Orr(DYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function Ab(t,e,r,n){return ir.toString(t.subarray(e,DYe(t,0,e,e+r)),n)}function fae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var LYe=y((i9r,FYe)=>{var{Writable:Wrr,Readable:Jrr,getStreamError:vYe}=hae(),Vrr=Xoe(),PYe=sb(),lb=pae(),jrr=PYe.alloc(0),Krr=4*1024*1024,Eae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Vrr,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 jrr;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 PYe.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)}},yae=class extends Jrr{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(vYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=MYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`);return ir.from(r)};ub.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};ub.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,$m(e.mode&Lrr,6),100),ir.write(r,$m(e.uid,6),108),ir.write(r,$m(e.gid,6),116),Yrr(e.size,r,124),ir.write(r,$m(e.mtime.getTime()/1e3|0,11),136),r[156]=f3+qrr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(RYe,r,iT),ir.copy(Prr,r,mae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,$m(e.devmajor||0,6),329),ir.write(r,$m(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,$m(kYe(r),6),148),r)};ub.decode=function(e,r,n){let s=e[156]===0?0:e[156]-f3,i=Ab(e,0,100,r),o=Zm(e,100,8),a=Zm(e,108,8),c=Zm(e,116,8),A=Zm(e,124,12),u=Zm(e,136,12),l=Hrr(s),d=e[157]===0?null:Ab(e,157,100,r),h=Ab(e,265,32),f=Ab(e,297,32),m=Zm(e,329,8),E=Zm(e,337,8),g=kYe(e);if(g===256)return null;if(g!==Zm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(_rr(e))e[345]&&(i=Ab(e,345,155,r)+"/"+i);else if(!Urr(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function _rr(t){return ir.equals(RYe,t.subarray(iT,iT+6))}function Urr(t){return ir.equals(Mrr,t.subarray(iT,iT+6))&&ir.equals(Frr,t.subarray(mae,mae+2))}function Orr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Hrr(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 qrr(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 DYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function kYe(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 $m(t,e){return t=t.toString(8),t.length>e?vrr.slice(0,e)+" ":krr.slice(0,e-t.length)+t+" "}function Grr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function Yrr(t,e,r){t.toString(8).length>11?Grr(t,e,r):ir.write(e,$m(t,11),r)}function zrr(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 Zm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return zrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Orr(DYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function Ab(t,e,r,n){return ir.toString(t.subarray(e,DYe(t,0,e,e+r)),n)}function fae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var LYe=y((a9r,FYe)=>{var{Writable:Wrr,Readable:Jrr,getStreamError:vYe}=hae(),Vrr=Xoe(),PYe=sb(),lb=pae(),jrr=PYe.alloc(0),Krr=4*1024*1024,Eae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Vrr,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 jrr;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 PYe.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)}},yae=class extends Jrr{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(vYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=MYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function zpe(t,e){if(process.env.GITHUB_OUTPUT||"")return Db("OUTPUT",PT(t,e));process.stdout.write(S6.EOL),Xc("set-output",{name:t},VA(e))}function hf(t){process.exitCode=x6.Failure,$o(t)}function AA(){return process.env.RUNNER_DEBUG==="1"}function G(t){Xc("debug",{},t)}function $o(t,e={}){Xc("error",DT(e),t instanceof Error?t.toString():t)}function Ze(t,e={}){Xc("warning",DT(e),t instanceof Error?t.toString():t)}function R6(t,e={}){Xc("notice",DT(e),t instanceof Error?t.toString():t)}function ee(t){process.stdout.write(t+S6.EOL)}function Wpe(t){Y3("group",t)}function Jpe(){Y3("endgroup")}function HD(t,e){return xit(this,void 0,void 0,function*(){Wpe(t);let r;try{r=yield e()}finally{Jpe()}return r})}function au(t,e){if(process.env.GITHUB_STATE||"")return Db("STATE",PT(t,e));Xc("save-state",{name:t},VA(e))}function _Q(t){return process.env[`STATE_${t}`]||""}import*as I$ from"fs";import*as B$ from"path";import*as i_ from"os";import{readFileSync as Sit,existsSync as Tit}from"fs";import{EOL as Rit}from"os";var Py=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(Tit(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(Sit(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${Rit}`)}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 P6=be(Zpe(),1),$pe=be(DD(),1),Git=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 ege(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 tge(t){return new P6.HttpClient().getAgent(t)}function Yit(t){return new P6.HttpClient().getAgentDispatcher(t)}function rge(t){let e=Yit(t);return(n,s)=>Git(this,void 0,void 0,function*(){return(0,$pe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function nge(){return process.env.GITHUB_API_URL||"https://api.github.com"}function M6(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 ff(){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 VD(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)=>VD.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 sge(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 ige(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 oge=Function.bind,age=oge.bind(oge);function cge(t,e,r){let n=age(ige,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]=age(sge,null).
Line truncated
|
||||
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(q6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=G6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(mf(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(q6(B))continue;f.first||u.push(","),n?u.push(`
|
||||
`+n.repeat(l)+mf(g)+": "):u.push(mf(g)+":");let M=B!==null&&typeof B=="object",J=G6(B);if(M&&!J){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(mf(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
|
||||
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Sge=(t,e,r)=>{try{return"rawJSON"in JSON?mf(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?mf(t,(a,c)=>typeof c=="string"&&KD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(bge,"$1$2$3").replace(Qge,"$1$2$3"):mf(t,e,r)}catch(n){if(n instanceof RangeError){let s=dot(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(bge,"$1$2$3").replace(Qge,"$1$2$3")}throw n}},jD=new Map,hot=()=>{let t=JSON.parse.toString();if(jD.has(t))return jD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return jD.set(t,e),e}catch{return jD.set(t,!1),!1}},fot=(t,e,r,n)=>typeof e=="string"&&xge.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&KD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,mot=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&lot.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Tge=Number.MAX_SAFE_INTEGER.toString(),wge=Tge.length,pot=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,got=/^"-?\d+n+"$/,Eot=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(xge.test(a)?a=BigInt(a.slice(0,-1)):KD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Nge=t=>t.replace(pot,(e,r,n,s)=>{let i=e[0]==='"';if(i&&got.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<wge||r.length===wge&&r<=Tge);return i||a||c?e:'"'+e+'n"'}),Rge=(t,e)=>{if(!t)return H6(t,e);try{if(hot())return mot(t,e);let r=Nge(t);return H6(r,(n,s,i)=>fot(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Nge(t),s=H6(n);return Eot(s,e)}throw r}};var Bd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var yot="10.0.16",Cot={headers:{"user-agent":`octokit-request.js/${yot} ${ff()}`}};function Iot(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Dge=()=>"";async function kge(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=Iot(t.body)||Array.isArray(t.body)?Sge(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new Bd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new Bd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await Y6(o),new Bd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await Y6(o),new Bd(bot(u.data),a,{response:u,request:t});return u.data=n?await Y6(o):o.body,u}async function Y6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Dge);let r=yge(e);if(Bot(r)){let n="";try{return n=await t.text(),Rge(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var Not=class extends Error{constructor(t,e,r){super(wot(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)}request;headers;response;name="GraphqlResponseError";errors;data},xot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Sot=["query","method","url"],vge=/\/api\/v3\/?$/;function Tot(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(Sot.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)=>xot.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 vge.test(i)&&(s.url=i.replace(vge,"/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 Not(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Tot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var Tar=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Qot} ${ff()}`},method:"POST",url:"/graphql"});function Pge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Mge="\\.",Fge=new RegExp(`^${J6}${Mge}${J6}${Mge}${J6}$`),Rot=Fge.test.bind(Fge);async function Dot(t){let e=Rot(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 kot(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=kot(t),e(s)}var Lge=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(Dot.bind(null,e),{hook:vot.bind(null,e)})};var V6="7.0.8";var _ge=()=>{},Pot=console.warn.bind(console),Mot=console.error.bind(console);function Fot(t={}){return typeof t.debug!="function"&&(t.debug=_ge),typeof t.info!="function"&&(t.info=_ge),typeof t.warn!="function"&&(t.warn=Pot),typeof t.error!="function"&&(t.error=Mot),t}var Uge=`octokit-core.js/${V6} ${ff()}`,XD=class{static VERSION=V6;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 Age.Collection,n={baseUrl:HQ.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} ${Uge}`:Uge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Pge(this.request).defaults(n),this.log=Fot(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=Lge(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 j6="17.0.0";var Lot={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 Not=class extends Error{constructor(t,e,r){super(wot(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)}request;headers;response;name="GraphqlResponseError";errors;data},xot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],Sot=["query","method","url"],vge=/\/api\/v3\/?$/;function Tot(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(Sot.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)=>xot.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 vge.test(i)&&(s.url=i.replace(vge,"/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 Not(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>Tot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var Dar=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Qot} ${ff()}`},method:"POST",url:"/graphql"});function Pge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Mge="\\.",Fge=new RegExp(`^${J6}${Mge}${J6}${Mge}${J6}$`),Rot=Fge.test.bind(Fge);async function Dot(t){let e=Rot(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 kot(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function vot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=kot(t),e(s)}var Lge=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(Dot.bind(null,e),{hook:vot.bind(null,e)})};var V6="7.0.8";var _ge=()=>{},Pot=console.warn.bind(console),Mot=console.error.bind(console);function Fot(t={}){return typeof t.debug!="function"&&(t.debug=_ge),typeof t.info!="function"&&(t.info=_ge),typeof t.warn!="function"&&(t.warn=Pot),typeof t.error!="function"&&(t.error=Mot),t}var Uge=`octokit-core.js/${V6} ${ff()}`,XD=class{static VERSION=V6;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 Age.Collection,n={baseUrl:HQ.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} ${Uge}`:Uge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Pge(this.request).defaults(n),this.log=Fot(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=Lge(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 j6="17.0.0";var Lot={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 VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Uy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Uy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Uy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as n2 from"fs";import*as fEe from"stream";import*as mEe from"util";import*as pEe from"path";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())})},rct=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 gEe(t,e){return tct(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ee:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=rct(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${pEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield mEe.promisify(fEe.pipeline)(n2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var EEe=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 KQ(t,e){return EEe(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function yEe(t){return EEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return gEe(o,r,s)})}var lye=be(p2(),1);import*as C2 from"crypto";import*as Gy from"fs";import*as Jp from"path";import*as dye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var g2=2,E2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",OAr=10*Math.pow(1024,3),y2="cache read denied:";var qy=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())})},ult=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)}},llt="1.0";function Vp(){return qy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,C2.randomUUID());return yield Up(r),r})}function Au(t){return Gy.statSync(t).size}function L5(t){return qy(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 KQ
Line truncated
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield Uy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield Uy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield Uy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as n2 from"fs";import*as fEe from"stream";import*as mEe from"util";import*as pEe from"path";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())})},rct=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 gEe(t,e){return tct(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ee:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=rct(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${pEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(n2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield mEe.promisify(fEe.pipeline)(n2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var EEe=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 KQ(t,e){return EEe(this,void 0,void 0,function*(){return yield t2.create(t,e)})}function yEe(t){return EEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return gEe(o,r,s)})}var lye=be(p2(),1);import*as C2 from"crypto";import*as Gy from"fs";import*as Jp from"path";import*as dye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var g2=2,E2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,uye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",qAr=10*Math.pow(1024,3),y2="cache read denied:";var qy=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())})},ult=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)}},llt="1.0";function Vp(){return qy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,C2.randomUUID());return yield Up(r),r})}function Au(t){return Gy.statSync(t).size}function L5(t){return qy(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 KQ
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=ult(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Jp.relative(a,s).replace(new RegExp(`\\${Jp.sep}`,"g"),"/");G(`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 sw(t){return qy(this,void 0,void 0,function*(){return dye.promisify(Gy.unlink)(t)})}function hye(t){return qy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield cA(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function iw(){return qy(this,void 0,void 0,function*(){let t=yield hye("zstd",["--quiet"]),e=lye.clean(t);return G(`zstd version: ${e}`),t===""?Pi.Gzip:Pi.ZstdWithoutLong})}function If(t){return t===Pi.Gzip?rw.Gzip:rw.Zstd}function fye(){return qy(this,void 0,void 0,function*(){return Gy.existsSync(M5)?M5:(yield hye("tar")).toLowerCase().includes("gnu tar")?Zo("tar"):""})}function _5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Yy(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(llt),C2.createHash("sha256").update(n.join("|")).digest("hex")}function mye(){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 DC from"fs";import{URL as D0t}from"url";var uu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as dlt}from"node:os";import hlt from"node:util";import flt from"node:process";function pye(t,...e){flt.stderr.write(`${hlt.format(t,...e)}${dlt}`)}import ow from"node:process";function B2(t){return ow.env[t]}var gye=typeof ow.versions.deno=="string"&&ow.versions.deno.length>0,Eye=typeof ow.versions.bun=="string"&&ow.versions.bun.length>0,b2=!0;var yye=B2("DEBUG"),Iye,U5=[],O5=[],Q2=[];yye&&H5(yye);var Bye=Object.assign(t=>bye(t),{enable:H5,enabled:q5,disable:mlt,log:pye});function H5(t){Iye=t,U5=[],O5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?O5.push(r.substring(1)):U5.push(r);for(let r of Q2)r.enabled=q5(r.namespace)}function q5(t){if(t.endsWith("*"))return!0;for(let e of O5)if(Cye(t,e))return!1;for(let e of U5)if(Cye(t,e))return!0;return!1}function Cye(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 mlt(){let t=Iye||"";return H5(""),t}function bye(t){let e=Object.assign(r,{enabled:q5(t),destroy:plt,log:Bye.log,namespace:t,extend:glt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return Q2.push(e),e}function plt(){let t=Q2.indexOf(this);return t>=0?(Q2.splice(t,1),!0):!1}function glt(t){let e=bye(`${this.namespace}:${t}`);return e.log=this.log,e}var zy=Bye;var G5=["verbose","info","warning","error"],Qye={verbose:400,info:300,warning:200,error:100};function wye(t,e){e.log=(...r)=>{t.log(...r)}}function Nye(t){return G5.includes(t)}function w2(t){let e=new Set,r=B2(t.logLevelEnvVarName),n,s=zy(t.namespace);s.log=(...u)=>{zy.log(...u)};function i(u){if(u&&!Nye(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${G5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);zy.enable(l.join(","))}r&&(Nye(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${G5.join(", ")}.`));function o(u){return!!(n&&Qye[u.level]<=Qye[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(wye(u,d),o(d)){let h=zy.disable();zy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return wye(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 xye=w2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),Elt=xye.logger;function aw(t){return xye.createClientLogger(t)}function N2(t){return t.toLowerCase()}function ylt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*Clt(t){for(let e of t.values())yield[e.name,e.value]}var Y5=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(N2(e),{name:e,value:ylt(r)})}get(e){return this._headersMap.get(N2(e))?.value}has(e){return this._
Line truncated
|
||||
${Qlt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function bf(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import Rye from"node:zlib";import{Transform as wlt}from"node:stream";var lo=aw("ts-http-runtime");var Nlt={};function lw(t){return t&&typeof t.pipe=="function"}function Dye(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 kye(t){return t&&typeof t.byteLength=="number"}var x2=class extends wlt{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("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 ja;lo.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=Rlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new x2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=xlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Slt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new x2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Tlt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Dye(a));let u=Promise.resolve();lw(c)&&(u=Dye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.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?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):kye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??Nlt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function xlt(t){let e=uo();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 Slt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Rye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Rye.createInflate();return t.pipe(n),n}return t}function Tlt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function Rlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:kye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function vye(){return new K5}function dw(){return vye()}var S2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
${Qlt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function bf(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import Rye from"node:zlib";import{Transform as wlt}from"node:stream";var lo=aw("ts-http-runtime");var Nlt={};function lw(t){return t&&typeof t.pipe=="function"}function Dye(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 kye(t){return t&&typeof t.byteLength=="number"}var x2=class extends wlt{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("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 ja;lo.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=Rlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new x2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=xlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Slt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new x2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await Tlt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Dye(a));let u=Promise.resolve();lw(c)&&(u=Dye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.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?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):kye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??Nlt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function xlt(t){let e=uo();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 Slt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Rye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Rye.createInflate();return t.pipe(n),n}return t}function Tlt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function Rlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:kye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function vye(){return new K5}function dw(){return vye()}var S2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
`;return e}function Xdt(t){return t instanceof Uint8Array?t.byteLength:Qw(t)?t.size===-1?void 0:t.size:void 0}function Zdt(t){let e=0;for(let r of t){let n=Xdt(r);if(n===void 0)return;e+=n}return e}async function $dt(t,e,r){let n=[Mi(`--${r}`,"utf-8"),...e.flatMap(i=>[Mi(`\r
|
||||
`,"utf-8"),Mi(Kdt(i.headers),"utf-8"),Mi(`\r
|
||||
`,"utf-8"),i.body,Mi(`\r
|
||||
--${r}`,"utf-8")]),Mi(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=Zdt(n);s&&t.headers.set("Content-Length",s),t.body=await wCe(n)}var Zy="multipartPolicy",eht=70,tht=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function rht(t){if(t.length>eht)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!tht.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){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?rht(r):r=jdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await $dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var NCe=w2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),qhr=NCe.logger;function bs(t){return NCe.createClientLogger(t)}var Nw=bs("core-rest-pipeline");function vCe(){return"User-Agent"}function PCe(){return vCe()}var kfr=PCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(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 hht="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??hht})}function Nd(t){if(Kp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Aq(t){return Kp(t)}function $a(){return jp()}var ct=b2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Xy;function Nf(t){return yw(t)}var $y={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function MCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue($y.span,t.span)),t.namespace&&(e=e.setValue($y.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var LCe=be(FCe(),1),V2=LCe.state;function fht(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function mht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:fht(),tracingContext:MCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return V2.instrumenterImplementation||(V2.instrumenterImplementation=mht()),V2.instrumenterImplementation}function xf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue($y.namespace)||(h=h.setValue($y.namespace,e)),f.setAttribute("az.namespace",h.getValue($y.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function j2(t){return bf(t)}var Fpr=bs("core-rest-pipeline retryPolicy");var Rht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Dht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...Rht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
Line truncated
|
||||
`,"utf-8")],s=Zdt(n);s&&t.headers.set("Content-Length",s),t.body=await wCe(n)}var Zy="multipartPolicy",eht=70,tht=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function rht(t){if(t.length>eht)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!tht.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){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?rht(r):r=jdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await $dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var NCe=w2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Yhr=NCe.logger;function bs(t){return NCe.createClientLogger(t)}var Nw=bs("core-rest-pipeline");function vCe(){return"User-Agent"}function PCe(){return vCe()}var Pfr=PCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(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 hht="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??hht})}function Nd(t){if(Kp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Aq(t){return Kp(t)}function $a(){return jp()}var ct=b2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Xy;function Nf(t){return yw(t)}var $y={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function MCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue($y.span,t.span)),t.namespace&&(e=e.setValue($y.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var LCe=be(FCe(),1),V2=LCe.state;function fht(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function mht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:fht(),tracingContext:MCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return V2.instrumenterImplementation||(V2.instrumenterImplementation=mht()),V2.instrumenterImplementation}function xf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue($y.namespace)||(h=h.setValue($y.namespace,e)),f.setAttribute("az.namespace",h.getValue($y.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function j2(t){return bf(t)}var _pr=bs("core-rest-pipeline retryPolicy");var Rht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Dht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...Rht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
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--),!smt(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Fn("InvalidTag",l,Fi(t,i))}let A=$ft(t,i);if(A===!1)return Fn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fi(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=kIe(u,e);if(d===!0)n=!0;else return Fn(d.err.code,d.err.msg,Fi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Fn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fi(t,o));if(r.length===0)return Fn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fi(t,l.tagStartPos);return Fn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fi(t,o))}r.length==0&&(s=!0)}}else return Fn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fi(t,i));else{let l=kIe(u,e);if(l!==!0)return Fn(l.err.code,l.err.msg,Fi(t,i-u.length+l.err.line));if(s===!0)return Fn("InvalidXml","Multiple possible root nodes found.",Fi(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=DIe(t,i);continue}else if(t[i+1]==="?"){if(i=RIe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=rmt(t,i);if(l==-1)return Fn("InvalidChar","char '&' is not expected.",Fi(t,i));i=l}else if(s===!0&&!rC(t[i]))return Fn("InvalidXml","Extra text at the end",Fi(t,i));t[i]==="<"&&i--}}else{if(rC(t[i]))continue;return Fn("InvalidChar","char '"+t[i]+"' is not expected.",Fi(t,i))}if(n){if(r.length==1)return Fn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fi(t,r[0].tagStartPos));if(r.length>0)return Fn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Fn("InvalidXml","Start tag expected.",1);return!0}function rC(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function RIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function DIe(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 Xft='"',Zft="'";function $ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Xft||t[e]===Zft)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}}function emt(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&rC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!rC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&rC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&rC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function kIe(t,e){let r=emt(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!nmt(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function tmt(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 rmt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,tmt(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function nmt(t){return Wq(t)}function smt(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var nC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),imt=new Set("!?\\\\/[]$%{}^&*()<>|+");function vIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(imt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",Ak="base",jq="all";function omt(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===Ak?new Set([Ak]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),amt=new Set([9,10,13]);function cmt(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var sC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=omt(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`||t==="\r"}function RIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function DIe(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 Xft='"',Zft="'";function $ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Xft||t[e]===Zft)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}}function emt(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&rC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!rC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&rC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&rC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function kIe(t,e){let r=emt(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!nmt(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function tmt(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 rmt(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,tmt(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function nmt(t){return Wq(t)}function smt(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var nC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),imt=new Set("!?\\\\/[]$%{}^&*()<>|+");function vIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(imt.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",Ak="base",jq="all";function omt(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===Ak?new Set([Ak]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),amt=new Set([9,10,13]);function cmt(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var sC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=omt(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`);let e=new po("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qw(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=AC(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=cG(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()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=AG(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 po(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=AC(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){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;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=AC(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=AG(t,a,s.removeNSPrefix);if(!u){let J=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${J}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!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,I={},B;B=Ymt(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Gmt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let J="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,J=H.tagContent}let F=new po(l);C&&(F[":@"]=C),F.add(s.textNodeName,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s));let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let J=new po(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),r=J}n="",a=m}}}else n+=t[a];return e.child};function Kmt(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 Xmt(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 Zmt(t,e,Line truncated
|
||||
`;function cpt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mG(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function ZIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function fG(t,e){let r="";e.format&&(r=apt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new ra(c)):c instanceof ra&&n.push(c)}let s=cpt(t,e),i=uk("qName",{xmlVersion:s}),o=new pu;return $Ie(t,e,r,o,n,i)}function $Ie(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=js(t);return c=hG(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=mG(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:ZIe(u,!1,e,n,i),h=Apt(A[":@"],e);n.push(d,h);let f=lpt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=hG(I,e)),I=js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=mk(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=zw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=XIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=XIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=eBe(A[u],e):C=$Ie(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Apt(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]=gu(t[s]),n=!0}return n?r:null}function eBe(t,e){if(!Array.isArray(t))return t!=null?js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mG(s);if(i===e.textNodeName)r+=js(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=upt(s[":@"],e),a=eBe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function upt(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)}="${gu(s)}"`}return r}function mG(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 XIe(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:ZIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=hG(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${gu(A)}"`}return i}function lpt(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 hG(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 pG(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 dpt={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 Eo(t){if(this.options=Object.assign({},dpt,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 ra(r)):r instanceof ra&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
|
||||
`,this.newLine=`
|
||||
@@ -246,17 +246,17 @@ ${l}:${decodeURIComponent(A[l])}`}return a}return{name:qpt,async sendRequest(i,o
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new yA(t.version,o,s,void 0,void 0,t.protocol,t.startsOn,t.expiresOn,t.ipRange,t.identifier,r,t.cacheControl,t.contentDisposition,t.contentEncoding,t.contentLanguage,t.contentType,e.userDelegationKey,t.preauthorizedAgentObjectId,t.correlationId,t.encryptionScope,t.delegatedUserObjectId),stringToSign:i}}function mg(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function pg(t){let e=t.version?t.version:vk;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 AN=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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==fA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==fA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==fA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==fA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==fA||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 De.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"}};TC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var yg=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"}};yg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var B0t=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())})},Zz=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function vbe(t,e,r){return B0t(this,void 0,void 0,function*(){var n;let s=new _d(t),i=s.getBlockBlobClient(),o=new Zz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new Sv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw Ze(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Mbe from"buffer";import*as Fu from"fs";import*as Fbe from"stream";import*as Lbe from"util";var Tv=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 Rv(t){return t?t>=200&&t<300:!1}function b0t(t){return t?t>=500:!0}function Q0t(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function w0t(t){return Tv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Pbe(t,e,r){return Tv(this,arguments,void 0,function*(n,s,i,o=g2,a=E2,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),!b0t(d)))return l;if(d&&(h=Q0t(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield w0t(a),u++}throw Error(`${n} failed: ${A}`)})}function gN(t,e){return Tv(this,arguments,void 0,function*(r,n,s=g2,i=E2){return yield Pbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof iu)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function RC(t,e){return Tv(this,arguments,void 0,function*(r,n,s=g2,i=E2){return yield Pbe(r,n,o=>o.message.statusCode,s,i)})}var ic=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 N0t(t,e){return ic(this,void 0,void 0,function*(){yield Lbe.promisify(Fbe.pipeline)(t.message,e)})}var Dv=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);ee(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new D0t(t),s=Hbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Ube(t,e,s):s.concurrentBlobDownloads?yield _be(t,e,s):yield kv(t,e):yield kv(t,e)})}function Xbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Yy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function jbe(t,e){return`bytes ${t}-${e}/*`}function M0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${jbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":jbe(n,s)},o=yield RC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Rv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function F0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=DC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(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 M0t(t,i,()=>DC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{DC.closeSync(o)}})}function L0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vbe(r,e,n)}else{let i=rW();G("Upload cache"),yield F0t(i,t,e,n),G("Commiting cache");let o=Au(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield L0t(i,t,o);if(!Rv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var YQe=be(jW(),1),Un=be(Tt(),1),ca=be(Tt(),1),Qg=be(Tt(),1),wg=be(Tt(),1),Ng=be(Tt(),1);var $W=be(Tt(),1),e7=be(Tt(),1),HQe=be(Tt(),1),qQe=be(Tt(),1),GQe=be(Tt(),1);var KW=be(Tt(),1),XW=be(Tt(),1),_Qe=be(Tt(),1),UQe=be(Tt(),1),OQe=be(Tt(),1),ZW=class extends OQe.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,UQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_Qe.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?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},yP=new ZW;var t7=class extends GQe.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:()=>yP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,qQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,HQe.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(yP.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?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)yP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new D0t(t),s=Hbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Ube(t,e,s):s.concurrentBlobDownloads?yield _be(t,e,s):yield kv(t,e):yield kv(t,e)})}function Xbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Yy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function jbe(t,e){return`bytes ${t}-${e}/*`}function M0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${jbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":jbe(n,s)},o=yield RC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Rv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function F0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=DC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(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 M0t(t,i,()=>DC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{DC.closeSync(o)}})}function L0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield vbe(r,e,n)}else{let i=rW();G("Upload cache"),yield F0t(i,t,e,n),G("Commiting cache");let o=Au(e);ee(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield L0t(i,t,o);if(!Rv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ee("Cache saved successfully")}})}var YQe=be(jW(),1),Un=be(Tt(),1),ca=be(Tt(),1),Qg=be(Tt(),1),wg=be(Tt(),1),Ng=be(Tt(),1);var $W=be(Tt(),1),e7=be(Tt(),1),HQe=be(Tt(),1),qQe=be(Tt(),1),GQe=be(Tt(),1);var KW=be(Tt(),1),XW=be(Tt(),1),_Qe=be(Tt(),1),UQe=be(Tt(),1),OQe=be(Tt(),1),ZW=class extends OQe.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,UQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,_Qe.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?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},yP=new ZW;var t7=class extends GQe.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:()=>yP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,qQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,HQe.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(yP.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?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)yP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite
Line truncated
|
||||
`));let{commands:n}=yield JQe(r,"create");yield jQe(n,t)})}var JC=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())})},Aa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Od=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},y7="cache write denied:",BP=class t extends Od{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},XQe=y2,bP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},QP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function ZQe(t){if(!t||t.length===0)throw new Aa("Path Validation Error: At least one directory or file path is required")}function C7(t){if(t.length>512)throw new Aa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Aa(`Key Validation Error: ${t} cannot contain commas.`)}function $Qe(){return EN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function wP(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=EN();G(`Cache service version: ${A}`),ZQe(s);let u=tW();if(!Gbe(u)){ee(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield eIt(s,i,o,a,c):yield $Ct(s,i,o,a,c)})}function $Ct(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)C7(h);let l=yield iw(),d="";try{let h;try{h=yield Kbe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(XQe)?new bP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ee("Lookup only - skipping download"),h.cacheKey;d=MN.join(yield Vp(),If(l)),G(`Archive Path: ${d}`),yield nW(h.archiveLocation,d,a),AA()&&(yield PN(d,l));let f=Au(d);return ee(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield g7(d,l),ee("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Aa.name)throw h;f instanceof iu&&typeof f.statusCode=="number"&&f.statusCode>=500?$o(`Failed to restore: ${h.message}`):Ze(`Failed to restore: ${h.message}`)}finally{try{yield sw(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function eIt(t,e,r,n){return JC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)C7(d);let l="";try{let d=m7(),h=yield iw(),f={key:i,restoreKeys:o,version:Yy(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(XQe)?new bP(I):C}if(!m.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?ee(`Cache hit for restore-key: ${m.matchedKey}`):ee(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return ee("Lookup only - skipping download"),m.matchedKey;l=MN.join(yield Vp(),If(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield nW(m.signedDownloadUrl,l,a);let g=Au(l);return ee(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),AA()&&(yield PN(l,h)),yield g7(l,h),ee("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===Aa.name)throw d;h instanceof iu&&typeof h.statusCode=="number"&&h.statusCode>=500?$o(`Failed to restore: ${d.message}`):Ze(`Failed to restore: ${d.message}`)}finally{try{l&&(yield sw(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function NP(t,e,r){return JC(this,arguments,void 0,function*(n,s,i,o=!1){let a=EN();G(`Cache service version: ${a}`),ZQe(n),C7(s);let c=tW();return Ybe(c)?a==="v2"?yield rIt(n,s,i,o):yield tIt(n,s,i,o):(ee(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function tIt(t,e,r){return JC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield iw(),f=-1,m=yield L5(n);if(G("Cache Paths:"),G(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Vp(),g=MN.join(E,If(h));G(`Archive Path: ${g}`);try{yield E7(E,m,h),AA()&&(yield PN(g,h));let C=10*1024
Line truncated
|
||||
See ${r.getDocumentationLink()}`;ewe.push(n),hf(n)}function rwe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(ewe))}import*as TP from"path";var nwe="GRADLE_ACTION_ID";var vP=".setup-gradle",LN=class t{getDependencyGraphOption(){let e=Ur("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 Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return iIt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,swe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return TP.resolve(Hd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new RP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var VC=class{isCacheDisabled(){return $Qe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=FN("gradle-home-cache-cleanup");if(e!==void 0)return SP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("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 Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var BA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return FN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return FN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return FN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return FN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new RP}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},RP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p
Line truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${lwe}], make sure you have checked out the target repository`);return`${pIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var yIt="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.",CIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",IIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",UP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function mwe(t){return t.getCacheProvider()==="external"?(_P(IIt),new UP("external")):t.isCacheDisabled()?(_P("Cache is disabled: will not restore state from previous builds."),new UP("disabled")):t.getCacheProvider()==="basic"?(_P(CIt),new LP):(_P(yIt),BIt())}async function BIt(){let t=bIt();return await import(EIt(t).href)}function bIt(){let t=import.meta.dirname,e=fwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(hwe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function _P(t){console.info(t)}import OP from"fs";import pwe from"path";var HP=class{constructor(e){this.cacheFile=pwe.resolve(e,vP,"valid-wrappers.json")}load(){if(OP.existsSync(this.cacheFile))try{return JSON.parse(OP.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];OP.mkdirSync(pwe.dirname(this.cacheFile),{recursive:!0}),OP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Bwe=be(Cwe(),1);import*as Iwe from"util";import*as qP from"path";import*as GP from"fs";var TIt=Iwe.promisify(GP.readdir);async function bwe(t){return(await Qwe(t)).filter(r=>(0,Bwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>qP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Qwe(t){let e=await TIt(t),r=await Promise.all(e.map(async n=>{let s=qP.resolve(t,n),i=GP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Qwe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var DIt={_useHtmlParser2:!1};function jC(t,e){if(!t)return e??DIt;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 K7={};Fa(K7,{contains:()=>sM,extract:()=>wBt,html:()=>IBt,merge:()=>Jwe,parseHTML:()=>bBt,root:()=>QBt,text:()=>Pg,xml:()=>BBt});var Kf={};Fa(Kf,{DocumentPosition:()=>lc,append:()=>nBt,appendChild:()=>rBt,compareDocumentPosition:()=>Gwe,existsOne:()=>Hwe,filter:()=>eI,find:()=>eM,findAll:()=>aBt,findOne:()=>tM,findOneChild:()=>oBt,getAttributeValue:()=>ZIt,getChildren:()=>$C,getElementById:()=>lBt,getElements:()=>uBt,getElementsByClassName:()=>dBt,getElementsByTagName:()=>vg,getElementsByTagType:()=>hBt,getFeed:()=>j7,getInnerHTML:()=>XIt,getName:()=>eBt,getOuterHTML:()=>Uwe,getParent:()=>Owe,getSiblings:()=>J7,getText:()=>XP,hasAttrib:()=>$It,hasChildren:()=>Tr,innerText:()=>GN,isCDATA:()=>KC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>ZP,prepend:()=>iBt,prependChild:()=>sBt,prevElementSibling:()=>$P,removeElement:()=>Yd,removeSubsets:()=>fBt,replaceElement:()=>tBt,testElement:()=>ABt,textContent:()=>Gd,uniqueSort:()=>Vf});var Ac={};Fa(Ac,{CDATA:()=>M7,Comment:()=>D7,Directive:()=>R7,Doctype:()=>F7,ElementType:()=>Jt,Root:()=>S7,Script:()=>k7,Style:()=>v7,Tag:()=>P7,Text:()=>T7,isTag:()=>x7});var Jt;(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"})(Jt||(Jt={}));function x7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var S7=Jt.Root,T7=Jt.Text,R7=Jt.Directive,D7=Jt.Comment,k7=Jt.Script,v7=Jt.Style,P7=Jt.Tag,M7=Jt.CDATA,F7=Jt.Doctype;var YP=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 XC(this,e)}},UN=class extends YP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends UN{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends UN{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends UN{constructor(e,r){super(r),this.name=e,this.type=Jt.Di
Line truncated
|
||||
See ${r.getDocumentationLink()}`;ewe.push(n),hf(n)}function rwe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(ewe))}import*as TP from"path";var nwe="GRADLE_ACTION_ID";var vP=".setup-gradle",LN=class t{getDependencyGraphOption(){let e=Ur("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 Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return iIt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,swe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return TP.resolve(Hd(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new RP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var VC=class{isCacheDisabled(){return $Qe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=FN("gradle-home-cache-cleanup");if(e!==void 0)return SP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("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 Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var BA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return FN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return FN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return FN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return FN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new RP}hasTermsOfUseAgreement(){let e=this.getDevelocityAccessKey()!=="",r=this.getTermsOfUseUrl()==="https://gradle.com/terms-of-service"||this.getTermsOfUseUrl()==="https://gradle.com/help/legal-terms-of-use",n=this.getTermsOfUseAgree()==="yes";return e||r&&n}verifyTermsOfUseAgreement(){return this.hasTermsOfUseAgreement()?!0:(Ze("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},RP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p
Line truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${lwe}], make sure you have checked out the target repository`);return`${pIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var yIt="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.",CIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",IIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",UP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function mwe(t){return t.getCacheProvider()==="external"?(_P(IIt),new UP("external")):t.isCacheDisabled()?(_P("Cache is disabled: will not restore state from previous builds."),new UP("disabled")):t.getCacheProvider()==="basic"?(_P(CIt),new LP):(_P(yIt),BIt())}async function BIt(){let t=bIt();return await import(EIt(t).href)}function bIt(){let t=import.meta.dirname,e=fwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(hwe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function _P(t){console.info(t)}import OP from"fs";import pwe from"path";var HP=class{constructor(e){this.cacheFile=pwe.resolve(e,vP,"valid-wrappers.json")}load(){if(OP.existsSync(this.cacheFile))try{return JSON.parse(OP.readFileSync(this.cacheFile,"utf-8"))}catch(e){Ze(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];OP.mkdirSync(pwe.dirname(this.cacheFile),{recursive:!0}),OP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var Bwe=be(Cwe(),1);import*as Iwe from"util";import*as qP from"path";import*as GP from"fs";var TIt=Iwe.promisify(GP.readdir);async function bwe(t){return(await Qwe(t)).filter(r=>(0,Bwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>qP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Qwe(t){let e=await TIt(t),r=await Promise.all(e.map(async n=>{let s=qP.resolve(t,n),i=GP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Qwe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var DIt={_useHtmlParser2:!1};function jC(t,e){if(!t)return e??DIt;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 K7={};Fa(K7,{contains:()=>sM,extract:()=>wBt,html:()=>IBt,merge:()=>Jwe,parseHTML:()=>bBt,root:()=>QBt,text:()=>Pg,xml:()=>BBt});var Kf={};Fa(Kf,{DocumentPosition:()=>lc,append:()=>nBt,appendChild:()=>rBt,compareDocumentPosition:()=>Gwe,existsOne:()=>Hwe,filter:()=>eI,find:()=>eM,findAll:()=>aBt,findOne:()=>tM,findOneChild:()=>oBt,getAttributeValue:()=>ZIt,getChildren:()=>$C,getElementById:()=>lBt,getElements:()=>uBt,getElementsByClassName:()=>dBt,getElementsByTagName:()=>vg,getElementsByTagType:()=>hBt,getFeed:()=>j7,getInnerHTML:()=>XIt,getName:()=>eBt,getOuterHTML:()=>Uwe,getParent:()=>Owe,getSiblings:()=>J7,getText:()=>XP,hasAttrib:()=>$It,hasChildren:()=>Tr,innerText:()=>GN,isCDATA:()=>KC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>ZP,prepend:()=>iBt,prependChild:()=>sBt,prevElementSibling:()=>$P,removeElement:()=>Yd,removeSubsets:()=>fBt,replaceElement:()=>tBt,testElement:()=>ABt,textContent:()=>Gd,uniqueSort:()=>Vf});var Ac={};Fa(Ac,{CDATA:()=>M7,Comment:()=>D7,Directive:()=>R7,Doctype:()=>F7,ElementType:()=>Jt,Root:()=>S7,Script:()=>k7,Style:()=>v7,Tag:()=>P7,Text:()=>T7,isTag:()=>x7});var Jt;(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"})(Jt||(Jt={}));function x7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var S7=Jt.Root,T7=Jt.Text,R7=Jt.Directive,D7=Jt.Comment,k7=Jt.Script,v7=Jt.Style,P7=Jt.Tag,M7=Jt.CDATA,F7=Jt.Doctype;var YP=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 XC(this,e)}},UN=class extends YP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends UN{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends UN{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends UN{constructor(e,r){super(r),this.name=e,this.type=Jt.Di
Line truncated
|
||||
`:XP(t.children):KC(t)?XP(t.children):No(t)?t.data:""}function Gd(t){return Array.isArray(t)?t.map(Gd).join(""):Tr(t)&&!kg(t)?Gd(t.children):No(t)?t.data:""}function GN(t){return Array.isArray(t)?t.map(GN).join(""):Tr(t)&&(t.type===Jt.Tag||KC(t))?GN(t.children):No(t)?t.data:""}function $C(t){return Tr(t)?t.children:[]}function Owe(t){return t.parent||null}function J7(t){let e=Owe(t);if(e!=null)return $C(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 ZIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function $It(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function eBt(t){return t.name}function ZP(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function $P(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Yd(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 tBt(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 rBt(t,e){if(Yd(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 nBt(t,e){Yd(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 sBt(t,e){if(Yd(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 iBt(t,e){Yd(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 eI(t,e,r=!0,n=1/0){return eM(t,Array.isArray(e)?e:[e],r,n)}function eM(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 oBt(t,e){return e.find(t)}function tM(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=tM(t,i.children,!0);if(o)return o}}return null}function Hwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Hwe(t,r.children))}function aBt(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]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var rM={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(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=>No(e)&&t(e.data):e=>No(e)&&e.data===t}};function V7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function cBt(t,e){return r=>t(r)||e(r)}function qwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(rM,r)?rM[r](n):V7(r,n)});return e.length===0?null:e.reduce(cBt)}function ABt(t,e){let r=qwe(t);return r?r(e):!0}function uBt(t,e,r,n=1/0){let s=qwe(t);return s?eI(s,e,r,n):[]}function lBt(t,e,r=!0){return Array.isArray(e)||(e=[e]),tM(V7("id",t),e,r)}function vg(t,e,r=!0,n=1/0){return eI(rM.tag_name(t),e,r,n)}function dBt(t,e,r=!0,n=1/0){return eI(V7("class",t),e,r,n)}function hBt(t,e,r=!0,n=1/0){return eI(rM.tag_type(t),e,r,n)}function fBt(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 lc;(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"})(lc||(lc={}));function Gwe(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 lc.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?lc.FOLLOWING|lc.CONTAINED_BY:lc.FOLLOWING:a===t?lc.PRECEDING|lc.CONTAINS:lc.PRECEDING}function Vf(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Gwe(e,r);return n&lc.PRECEDING?-1:n&lc.FOLLOWING?1:0}),t}function j7(t){let e=nM(yBt,t);return e?e.name==="feed"?mBt(e):pBt(e):null}function mBt(t){var e;let r=t.children,n={type:"atom",items:vg("entry",r).map(o=>{var a;let{children:c}=o,A={media:Ywe(c)};xo(A,"id","id",c),xo(A,"title","title",c);let u=(a=nM("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=jf("summary",c)||jf("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 fc=be(Xf(),1);var dJ={};function hJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function fJ(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 lJ(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 uJ=(t,e,r,n,s)=>{let i=s(e,lJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},pM={is:uJ,matches:uJ,where:uJ,not(t,e,r,n,s){let i=s(e,lJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=lJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(KN))?[dJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=hJ(c,i);if(a&&c!==fc.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,...fJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function kNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in pM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return pM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:mM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,DNe.parse)(A);return pM.is(t,u,r,n,s)}if(typeof c=="function")return AJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in AI)return AI[o](t,a,r,n);if(o in ZN){let u=ZN[o];return AJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(aI(),1);function mJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function vNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.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()),xNe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return kNe(t,e,r,n,s);case mc.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 mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mJ(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=mJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.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 mc.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 mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function PNe(t,e,r){let n=gM(t,e,r);return hJ(n,e.adapter)}function gM(t,e,r){let n=typeof t=="string"?(0,QA.parse)(t):t;return EM(n,e,r)}function MNe(t){return t.type===QA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(MNe)))}var ubt={type:QA.SelectorType.Descendant},lbt={type:"_flexibleDescendant"},dbt={type:QA.SelectorType.Pseudo,name:"scope",data:null};function hbt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===dJ||i&&e.isTag(i)});fo
Line truncated
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var fc=be(Xf(),1);var dJ={};function hJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function fJ(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 lJ(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 uJ=(t,e,r,n,s)=>{let i=s(e,lJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},pM={is:uJ,matches:uJ,where:uJ,not(t,e,r,n,s){let i=s(e,lJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=lJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(KN))?[dJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=hJ(c,i);if(a&&c!==fc.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,...fJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function kNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in pM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return pM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:mM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,DNe.parse)(A);return pM.is(t,u,r,n,s)}if(typeof c=="function")return AJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in AI)return AI[o](t,a,r,n);if(o in ZN){let u=ZN[o];return AJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(aI(),1);function mJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function vNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.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()),xNe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return kNe(t,e,r,n,s);case mc.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 mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=mJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=mJ(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=mJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.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 mc.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 mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function PNe(t,e,r){let n=gM(t,e,r);return hJ(n,e.adapter)}function gM(t,e,r){let n=typeof t=="string"?(0,QA.parse)(t):t;return EM(n,e,r)}function MNe(t){return t.type===QA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(MNe)))}var ubt={type:QA.SelectorType.Descendant},lbt={type:"_flexibleDescendant"},dbt={type:QA.SelectorType.Pseudo,name:"scope",data:null};function hbt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===dJ||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(XNe,`\r
|
||||
`)}}).toArray()}var DJ={};Fa(DJ,{extract:()=>SQt});function xQt(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 SQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=xQt(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 em=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}}};em.prototype.cheerio="[cheerio object]";em.prototype.splice=Array.prototype.splice;em.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(em.prototype,sJ,xJ,SJ,TJ,RJ,DJ);function ZNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=jC(s),a=t(n,o,i,null);class c extends em{_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&&dc(u))return u;let f=jC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&YN(u)?t(u,f,!1,null).children:TQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?YN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,K7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function TQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var RQt=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]),Fr="\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 Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function QM(t){return t>=55296&&t<=57343}function $Ne(t){return t>=56320&&t<=57343}function exe(t,e){return(t-55296)*1024+9216+e}function wM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function NM(t){return t>=64976&&t<=65007||RQt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`)}}).toArray()}var DJ={};Fa(DJ,{extract:()=>SQt});function xQt(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 SQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=xQt(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 em=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}}};em.prototype.cheerio="[cheerio object]";em.prototype.splice=Array.prototype.splice;em.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(em.prototype,sJ,xJ,SJ,TJ,RJ,DJ);function ZNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=jC(s),a=t(n,o,i,null);class c extends em{_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&&dc(u))return u;let f=jC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&YN(u)?t(u,f,!1,null).children:TQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?YN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,K7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function TQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var RQt=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]),Fr="\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 Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function QM(t){return t>=55296&&t<=57343}function $Ne(t){return t>=56320&&t<=57343}function exe(t,e){return(t-55296)*1024+9216+e}function wM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function NM(t){return t>=64976&&t<=65007||RQt.has(t)}var V;(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(`
|
||||
@@ -279,7 +279,7 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
|
||||
</toolchain>`).join(`
|
||||
`)}
|
||||
</toolchains>
|
||||
`}function F4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var C$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",L4t="GRADLE_USER_HOME",_4t="DEVELOCITY_CACHE_TOKEN";async function WFe(t,e,r){let n=await JFe(),s=await O4t();if(process.env[C$])return ee("Gradle setup only performed on first gradle/actions step in workflow."),!1;ts(C$,!0),au(C$,!0),au(L4t,s),zFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await cwe(e);return au(_4t,o??""),await(await mwe(t)).restore(s,U4t(t,i,o)),await YFe(r,Hd(),s),owe(e),!0}function U4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function O4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Hd();return B$.resolve(r,t)}let e=B$.resolve(await JFe(),".gradle");if(I$.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),ts("GRADLE_USER_HOME",e),e;if(i_.platform()==="win32"&&e.startsWith("C:\\")&&I$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),ts("GRADLE_USER_HOME",r),r}return ts("GRADLE_USER_HOME",e),e}async function JFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return ee("Could not determine user.home from java -version output. Using os.homedir()."),i_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var vLe=be(ALe(),1);import*as aB from"fs";import*as NLe from"os";import*as Sm from"path";import*as w$ from"crypto";import*as vE from"fs";var e8t=be(p2(),1);import*as QS from"path";var c_=be(p2(),1);import*as lLe from"stream";import*as dLe from"util";import{ok as r8t}from"assert";var uLe=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())})},o_=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 uLe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;ee(i.message)}let s=this.getSleepAmount();ee(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return uLe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=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)}},n8t=process.platform==="win32",xUr=process.platform==="darwin",s8t="actions/tool-cache";function hLe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||QS.join(mLe(),w$.randomUUID()),yield Up(QS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=Q$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Q$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new o_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield i8t(t,e||"",r,n)}),c=>!(c instanceof a_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function i8t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(s8t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new a_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=dLe.promisify(lLe.pipeline),c=Q$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield FD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function fLe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' i
Line truncated
|
||||
`}function F4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var C$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",L4t="GRADLE_USER_HOME",_4t="DEVELOCITY_CACHE_TOKEN";async function WFe(t,e,r){let n=await JFe(),s=await O4t();if(process.env[C$])return ee("Gradle setup only performed on first gradle/actions step in workflow."),!1;ts(C$,!0),au(C$,!0),au(L4t,s),zFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await cwe(e);return au(_4t,o??""),await(await mwe(t)).restore(s,U4t(t,i,o)),await YFe(r,Hd(),s),owe(e),!0}function U4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function O4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Hd();return B$.resolve(r,t)}let e=B$.resolve(await JFe(),".gradle");if(I$.existsSync(e))return ee(`Gradle User Home already exists at ${e}`),ts("GRADLE_USER_HOME",e),e;if(i_.platform()==="win32"&&e.startsWith("C:\\")&&I$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return ee(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),ts("GRADLE_USER_HOME",r),r}return ts("GRADLE_USER_HOME",e),e}async function JFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return ee("Could not determine user.home from java -version output. Using os.homedir()."),i_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}var vLe=be(ALe(),1);import*as aB from"fs";import*as NLe from"os";import*as Sm from"path";import*as w$ from"crypto";import*as vE from"fs";var e8t=be(p2(),1);import*as QS from"path";var c_=be(p2(),1);import*as lLe from"stream";import*as dLe from"util";import{ok as r8t}from"assert";var uLe=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())})},o_=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 uLe(this,void 0,void 0,function*(){let n=1;for(;n<this.maxAttempts;){try{return yield e()}catch(i){if(r&&!r(i))throw i;ee(i.message)}let s=this.getSleepAmount();ee(`Waiting ${s} seconds before trying again`),yield this.sleep(s),n++}return yield e()})}getSleepAmount(){return Math.floor(Math.random()*(this.maxSeconds-this.minSeconds+1))+this.minSeconds}sleep(e){return uLe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=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)}},n8t=process.platform==="win32",TUr=process.platform==="darwin",s8t="actions/tool-cache";function hLe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||QS.join(mLe(),w$.randomUUID()),yield Up(QS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=Q$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=Q$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new o_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield i8t(t,e||"",r,n)}),c=>!(c instanceof a_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function i8t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(s8t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new a_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=dLe.promisify(lLe.pipeline),c=Q$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield FD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function fLe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' i
Line truncated
|
||||
`," Line feed \\n"]]),WLe=new Map([...cee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function JLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of WLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(WLe.values()).toString()}
|
||||
@@ -327,19 +327,19 @@ If the error persists, please check whether Actions and API requests are operati
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var szr=new B0;import*as B3 from"path";import Mae from"fs";var gWe="dependency-graph_";async function EWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await asr(t);return}ee("Enabling dependency graph generation"),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",psr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Hd()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&ts(t,e)}async function yWe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await pWe(t,!1);return;case"generate-submit-and-upload":await pWe(t,!0);return;case"generate-and-upload":await csr(t)}}catch(r){IWe(t,e,r)}}async function asr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}try{await CWe(await Asr(t))}catch(e){IWe(t,"download-and-submit",e)}}async function pWe(t,e){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}let r=await Fae();try{await CWe(r)}catch(n){try{await Pae(r,t)}catch(s){ee(String(s))}throw n}e&&await Pae(r,t)}async function csr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}await Pae(await Fae(),t)}async function Asr(t){let e=co.payload.workflow_run?{token:PP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new B0,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(gWe)),s=t.getDownloadArtifactName();s&&(ee(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});ee(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fae()}async function Fae(){let r=(await(await KQ(`${dsr()}/**/*.json`)).glob()).filter(n=>!hsr(n));return r.forEach(fsr),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function Pae(t,e){if(t.length===0){ee("No dependency graph files found to upload.");return}let r=Hd(),n=new B0;for(let s of t){let i=Lae(s);ee(`Uploading dependency graph file: ${i}`);let o=`${gWe}${B3.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function CWe(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await lsr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=usr(e,r)),r}}function usr(t,e){let n=`Dependency submission failed for ${Lae(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 ozr=new B0;import*as B3 from"path";import Mae from"fs";var gWe="dependency-graph_";async function EWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await asr(t);return}ee("Enabling dependency graph generation"),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",Esr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Hd()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&ts(t,e)}async function yWe(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await pWe(t,!1);return;case"generate-submit-and-upload":await pWe(t,!0);return;case"generate-and-upload":await csr(t)}}catch(r){IWe(t,e,r)}}async function asr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}try{await CWe(await Asr(t))}catch(e){IWe(t,"download-and-submit",e)}}async function pWe(t,e){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}let r=await Fae();try{await CWe(r)}catch(n){try{await Pae(r,t)}catch(s){ee(String(s))}throw n}e&&await Pae(r,t)}async function csr(t){if(_ae()){ee("Dependency graph not supported in the ACT environment.");return}await Pae(await Fae(),t)}async function Asr(t){let e=co.payload.workflow_run?{token:PP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new B0,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(gWe)),s=t.getDownloadArtifactName();s&&(ee(`Filtering for artifacts ending with ${s}`),n=n.filter(i=>i.name.includes(s)));for(let i of n){let o=await r.downloadArtifact(i.id,{findBy:e});ee(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Fae()}async function Fae(){let r=(await(await KQ(`${fsr()}/**/*.json`)).glob()).filter(n=>!msr(n));return r.forEach(psr),ee(`Found dependency graph files: ${r.join(", ")}`),r}async function Pae(t,e){if(t.length===0){ee("No dependency graph files found to upload.");return}let r=Hd(),n=new B0;for(let s of t){let i=Lae(s);ee(`Uploading dependency graph file: ${i}`);let o=`${gWe}${B3.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function CWe(t){if(t.length===0){ee("No dependency graph files found to submit.");return}for(let e of t)try{await lsr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=usr(e,r)),r}}function usr(t,e){let n=`Dependency submission failed for ${Lae(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 lsr(t){let e=msr(),r=Mae.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=co.repo.owner,n.repo=co.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Lae(t);R6(`Submitted ${i}: ${s.data.message}`)}function dsr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function hsr(t){let e=`${t}.processed`;return Mae.existsSync(e)}function fsr(t){let e=`${t}.processed`;Mae.writeFileSync(e,"")}function IWe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);Ze(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function msr(){return uA(PP())}function Lae(t){let e=Hd();return B3.relative(e,t)}function psr(){let t=co;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 _ae(){return process.env.ACT!==void 0}function Uae(t,e,r){let n=[];e&&n.push(e),r&&n.push(r);let s="",i=null,o=!1,a=0;for(;a<t.length;){let c=t[a];i?c===i?i=null:s+=c:c==='"'||c==="'"?(i=c,o=!0):/\s/.test(c)?o&&(n.push(s),s="",o=!1):(s+=c,o=!0),a++}return o&&n.push(s),n}function Esr(t=process.platform){return t==="win32"?50:0}async function BWe(t=process.platform){let e=Esr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function ysr(){try{iwe("gradle/actions/dependency-submission"),await WFe(new VC,new BA,new kP);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new LN;if(await EWe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new DP,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
|
||||
`:n}async function lsr(t){let e=gsr(),r=Mae.readFileSync(t,"utf8"),n=hsr(JSON.parse(r),co.repo.owner,co.repo.repo),s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=Lae(t);R6(`Submitted ${i}: ${s.data.message}`)}var dsr=["version","job","sha","ref","detector","metadata","manifests","scanned"];function hsr(t,e,r){let n={owner:e,repo:r};for(let s of dsr)t[s]!==void 0&&(n[s]=t[s]);return n}function fsr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function msr(t){let e=`${t}.processed`;return Mae.existsSync(e)}function psr(t){let e=`${t}.processed`;Mae.writeFileSync(e,"")}function IWe(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);Ze(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function gsr(){return uA(PP())}function Lae(t){let e=Hd();return B3.relative(e,t)}function Esr(){let t=co;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 _ae(){return process.env.ACT!==void 0}function Uae(t,e,r){let n=[];e&&n.push(e),r&&n.push(r);let s="",i=null,o=!1,a=0;for(;a<t.length;){let c=t[a];i?c===i?i=null:s+=c:c==='"'||c==="'"?(i=c,o=!0):/\s/.test(c)?o&&(n.push(s),s="",o=!1):(s+=c,o=!0),a++}return o&&n.push(s),n}function Csr(t=process.platform){return t==="win32"?50:0}async function BWe(t=process.platform){let e=Csr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function Isr(){try{iwe("gradle/actions/dependency-submission"),await WFe(new VC,new BA,new kP);let t=process.env.GITHUB_DEPENDENCY_GRAPH_ENABLED,e=new LN;if(await EWe(e),e.getDependencyGraphOption()==="download-and-submit")return;let r=new DP,n=r.getDependencyResolutionTask(),s=r.getAdditionalArguments(),i=`
|
||||
-Dorg.gradle.configureondemand=false
|
||||
-Dorg.gradle.dependency.verification=off
|
||||
-Dorg.gradle.unsafe.isolated-projects=false
|
||||
-Dorg.gradle.isolated-projects=false
|
||||
${n}
|
||||
${s}
|
||||
`,o=Uae(i);await PLe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await yWe(e),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),rwe()}catch(t){GFe(t)}await BWe()}ysr();export{ysr as run};
|
||||
`,o=Uae(i);await PLe(r.getGradleVersion(),r.getBuildRootDirectory(),o),await yWe(e),ts("GITHUB_DEPENDENCY_GRAPH_ENABLED",t),rwe()}catch(t){GFe(t)}await BWe()}Isr();export{Isr as run};
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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
|
||||
}
|
||||
Vendored
+42
-42
@@ -1,9 +1,9 @@
|
||||
import {createRequire} from 'module';const require=createRequire(import.meta.url);
|
||||
var cWe=Object.create;var q3=Object.defineProperty;var AWe=Object.getOwnPropertyDescriptor;var uWe=Object.getOwnPropertyNames;var lWe=Object.getPrototypeOf,dWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},hWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of uWe(e))!dWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=AWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?cWe(lWe(t)):{},hWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var Kae=y(F0=>{"use strict";var usr=Q("net"),yWe=Q("tls"),W3=Q("http"),Jae=Q("https"),CWe=Q("events"),lsr=Q("assert"),IWe=Q("util");F0.httpOverHttp=BWe;F0.httpsOverHttp=bWe;F0.httpOverHttps=QWe;F0.httpsOverHttps=wWe;function BWe(t){var e=new id(t);return e.request=W3.request,e}function bWe(t){var e=new id(t);return e.request=W3.request,e.createSocket=Vae,e.defaultPort=443,e}function QWe(t){var e=new id(t);return e.request=Jae.request,e}function wWe(t){var e=new id(t);return e.request=Jae.request,e.createSocket=Vae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=jae(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)})}IWe.inherits(id,CWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,jae(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)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),Yh("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){Yh("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){Yh("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 Yh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Yh(`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)}};id.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 Vae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=yWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function jae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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 Yh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yh=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)}:Yh=function(){};F0.debug=Yh});var V3=y((hsr,Xae)=>{Xae.exports=Kae()});var Xr=y((fsr,Zae)=>{Zae.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 or=y((msr,bce)=>{"use strict";var $ae=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[$ae]===!0}[$ae]=!0},ece=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ece]===!0}[ece]=!0},tce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[tce]===!0}[tce]=!0},rce=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[rce]===!0}[rce]=!0},nce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[nce]===!0}[nce]=!0},sce=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function HJe(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(wJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function qJe(){return"allowed"}function GJe(){return"success"}function YJe(){return"success"}function zJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WJe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":nR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function W0(t,e){return t}function JJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:W0(t.domainLookupStartTime,r),domainLookupEndTime:W0(t.domainLookupEndTime,r),connectionStartTime:W0(t.connectionStartTime,r),connectionEndTime:W0(t.connectionEndTime,r),secureConnectionStartTime:W0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VJe(t){return W0(RJe.now(),t)}function jJe(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 LAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KJe(t){return{referrerPolicy:t.referrerPolicy}}function XJe(t){let e=t.referrerPolicy;mp(e);let r=null;if(t.referrer==="client"){let a=DAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=nR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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=Hb(t);return nR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return mp(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 Ob(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 ZJe(t,e){if(rR===void 0)return!0;let r=_Ae(e);if(r==="no metadata"||r.length===0)return!0;let n=eVe(r),s=tVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=rR.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)),rVe(c,a))return!0}return!1}var $Je=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function _Ae(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=$Je.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();vAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function eVe(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 tVe(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 rVe(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 nVe(t){}function nR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function sVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function iVe(t){return t.controller.state==="aborted"}function oVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function aVe(t){return vJe[t.toLowerCase()]??t}function cVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return mp(typeof e=="string"),e}var AVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
var cWe=Object.create;var q3=Object.defineProperty;var AWe=Object.getOwnPropertyDescriptor;var uWe=Object.getOwnPropertyNames;var lWe=Object.getPrototypeOf,dWe=Object.prototype.hasOwnProperty;var Q=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Fa=(t,e)=>{for(var r in e)q3(t,r,{get:e[r],enumerable:!0})},hWe=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of uWe(e))!dWe.call(t,s)&&s!==r&&q3(t,s,{get:()=>e[s],enumerable:!(n=AWe(e,s))||n.enumerable});return t};var be=(t,e,r)=>(r=t!=null?cWe(lWe(t)):{},hWe(e||!t||!t.__esModule?q3(r,"default",{value:t,enumerable:!0}):r,t));var Kae=y(F0=>{"use strict";var dsr=Q("net"),yWe=Q("tls"),W3=Q("http"),Jae=Q("https"),CWe=Q("events"),hsr=Q("assert"),IWe=Q("util");F0.httpOverHttp=BWe;F0.httpsOverHttp=bWe;F0.httpOverHttps=QWe;F0.httpsOverHttps=wWe;function BWe(t){var e=new id(t);return e.request=W3.request,e}function bWe(t){var e=new id(t);return e.request=W3.request,e.createSocket=Vae,e.defaultPort=443,e}function QWe(t){var e=new id(t);return e.request=Jae.request,e}function wWe(t){var e=new id(t);return e.request=Jae.request,e.createSocket=Vae,e.defaultPort=443,e}function id(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||W3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=jae(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)})}IWe.inherits(id,CWe.EventEmitter);id.prototype.addRequest=function(e,r,n,s){var i=this,o=J3({request:e},i.options,jae(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)}})};id.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=J3({},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")),Yh("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){Yh("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){Yh("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 Yh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Yh(`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)}};id.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 Vae(t,e){var r=this;id.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=J3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=yWe.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function jae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function J3(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 Yh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Yh=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)}:Yh=function(){};F0.debug=Yh});var V3=y((msr,Xae)=>{Xae.exports=Kae()});var Xr=y((psr,Zae)=>{Zae.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 or=y((gsr,bce)=>{"use strict";var $ae=Symbol.for("undici.error.UND_ERR"),Zr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[$ae]===!0}[$ae]=!0},ece=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),j3=class extends Zr{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[ece]===!0}[ece]=!0},tce=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),K3=class extends Zr{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[tce]===!0}[tce]=!0},rce=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),X3=class extends Zr{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[rce]===!0}[rce]=!0},nce=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),Z3=class extends Zr{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[nce]===!0}[nce]=!0},sce=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),$3=class extends Zr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function HJe(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(wJe.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function qJe(){return"allowed"}function GJe(){return"success"}function YJe(){return"success"}function zJe(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function WJe(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&&Y4(t.origin)&&!Y4(Hb(t))&&(e=null);break;case"same-origin":nR(t,Hb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function W0(t,e){return t}function JJe(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:W0(t.domainLookupStartTime,r),domainLookupEndTime:W0(t.domainLookupEndTime,r),connectionStartTime:W0(t.connectionStartTime,r),connectionEndTime:W0(t.connectionEndTime,r),secureConnectionStartTime:W0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function VJe(t){return W0(RJe.now(),t)}function jJe(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 LAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function KJe(t){return{referrerPolicy:t.referrerPolicy}}function XJe(t){let e=t.referrerPolicy;mp(e);let r=null;if(t.referrer==="client"){let a=DAe();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=G4(r),s=G4(r,!0);n.toString().length>4096&&(n=s);let i=nR(t,n),o=Ob(n)&&!Ob(t.url);switch(e){case"origin":return s??G4(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=Hb(t);return nR(n,a)?n:Ob(n)&&!Ob(a)?"no-referrer":s}default:return o?"no-referrer":s}}function G4(t,e){return mp(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 Ob(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 ZJe(t,e){if(rR===void 0)return!0;let r=_Ae(e);if(r==="no metadata"||r.length===0)return!0;let n=eVe(r),s=tVe(r,n);for(let i of s){let o=i.algo,a=i.hash,c=rR.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)),rVe(c,a))return!0}return!1}var $Je=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function _Ae(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=$Je.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();vAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function eVe(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 tVe(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 rVe(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 nVe(t){}function nR(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function sVe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function iVe(t){return t.controller.state==="aborted"}function oVe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function aVe(t){return vJe[t.toLowerCase()]??t}function cVe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return mp(typeof e=="string"),e}var AVe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function UAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function UVe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function OVe(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 HVe(t,e){iR(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&&oR(t,LVe,i)||i.position===t.length-4&&oR(t,_Ve,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=qVe(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",UVe(u)||(u=""),h=new MVe([d],A,{type:u})):h=RVe(Buffer.from(d)),iR(XAe(c)),iR(typeof h=="string"&&XAe(h)||kVe(h)),s.push(vVe(c,h,A))}}function qVe(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=V0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=X4(o,!0,!0,a=>a===9||a===32),!DVe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,V0(a=>a===32||a===9,t,e),TVe(o)){case"content-disposition":{if(r=n=null,!oR(t,FVe,e)||(e.position+=17,r=eue(t,e),r===null))return"failure";if(oR(t,$Ae,e)){let a=e.position+$Ae.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=eue(t,e),n===null))return"failure"}break}case"content-type":{let a=V0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),s=ZAe(a);break}case"content-transfer-encoding":{let a=V0(c=>c!==10&&c!==13,t,e);a=X4(a,!1,!0,c=>c===9||c===32),i=ZAe(a);break}default:V0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function eue(t,e){iR(t[e.position-1]===34);let r=V0(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 V0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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 oR(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}tue.exports={multipartFormDataParser:HVe,validateBoundary:OVe}});var X0=y((Osr,due)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:GVe,isBlobLike:nue,isReadableStreamLike:YVe,readableStreamClose:zVe,createDeferredPromise:WVe,fullyReadBody:JVe,extractMimeType:VVe,utf8DecodeBytes:oue}=qo(),{FormData:sue}=Gb(),{kState:K0}=zh(),{webidl:jVe}=zs(),{Blob:KVe}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:aue,isDisturbed:XVe}=Q("node:stream"),{isArrayBuffer:ZVe}=Q("node:util/types"),{serializeAMimeType:$Ve}=ro(),{multipartFormDataParser:eje}=rue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var aR=new TextEncoder;function tje(){}var cue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Aue;cue&&(Aue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XVe(e)&&!aue(e)&&e.cancel("Response object has been garbage collected").catch(tje)}));function uue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?aR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>zVe(c))},start(){},type:"bytes"}),Z4(YVe(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(ZVe(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function V0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function X4(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 oR(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}tue.exports={multipartFormDataParser:HVe,validateBoundary:OVe}});var X0=y((qsr,due)=>{"use strict";var Yb=vt(),{ReadableStreamFrom:GVe,isBlobLike:nue,isReadableStreamLike:YVe,readableStreamClose:zVe,createDeferredPromise:WVe,fullyReadBody:JVe,extractMimeType:VVe,utf8DecodeBytes:oue}=qo(),{FormData:sue}=Gb(),{kState:K0}=zh(),{webidl:jVe}=zs(),{Blob:KVe}=Q("node:buffer"),Z4=Q("node:assert"),{isErrored:aue,isDisturbed:XVe}=Q("node:stream"),{isArrayBuffer:ZVe}=Q("node:util/types"),{serializeAMimeType:$Ve}=ro(),{multipartFormDataParser:eje}=rue(),$4;try{let t=Q("node:crypto");$4=e=>t.randomInt(0,e)}catch{$4=t=>Math.floor(Math.random(t))}var aR=new TextEncoder;function tje(){}var cue=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,Aue;cue&&(Aue=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XVe(e)&&!aue(e)&&e.cancel("Response object has been garbage collected").catch(tje)}));function uue(t,e=!1){let r=null;t instanceof ReadableStream?r=t:nue(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?aR.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>zVe(c))},start(){},type:"bytes"}),Z4(YVe(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(ZVe(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(Yb.isFormDataLike(t)){let c=`----formdata-undici-0${`${$4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=aR.encode(A+`; name="${u(l(E))}"\r
|
||||
\r
|
||||
@@ -12,7 +12,7 @@ ${l(g)}\r
|
||||
Content-Type: ${g.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=aR.encode(`--${c}--\r
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(nue(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(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:GVe(t)}if((typeof s=="string"||Yb.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(!aue(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 rje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),uue(t,e)}function nje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function sje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function ije(t){return{blob(){return j0(this,r=>{let n=iue(this);return n===null?n="":n&&(n=$Ve(n)),new KVe([r],{type:n})},t)},arrayBuffer(){return j0(this,r=>new Uint8Array(r).buffer,t)},text(){return j0(this,oue,t)},json(){return j0(this,aje,t)},formData(){return j0(this,r=>{let n=iue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=eje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new sue;return i[K0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new sue;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 j0(this,r=>new Uint8Array(r),t)}}}function oje(t){Object.assign(t.prototype,ije(t))}async function j0(t,e,r){if(jVe.brandCheck(t,r),lue(t))throw new TypeError("Body is unusable: Body has already been read");sje(t[K0]);let n=WVe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[K0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await JVe(t[K0].body,i,s),n.promise)}function lue(t){let e=t[K0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function aje(t){return JSON.parse(oue(t))}function iue(t){let e=t[K0].headersList,r=VVe(e);return r==="failure"?null:r}due.exports={extractBody:uue,safelyExtractBody:rje,cloneBody:nje,mixinBody:oje,streamRegistry:Aue,hasFinalizationRegistry:cue,bodyUnusable:lue}});var Sue=y((Hsr,xue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:hue}=_0(),e8=M4(),{RequestContentLengthMismatchError:pp,ResponseContentLengthMismatchError:fue,RequestAbortedError:Bue,InvalidArgumentError:cje,HeadersTimeoutError:Aje,HeadersOverflowError:uje,SocketError:Z0,InformationalError:$0,BodyTimeoutError:lje,HTTPParserError:dje,ResponseExceededMaxSizeError:hje}=or(),{kUrl:bue,kReset:no,kClient:lR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Que,kSize:mue,kWriting:Wh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:fje,kHostHeader:mje,kPendingIdx:pje,kRunningIdx:_a,kError:Si,kPipelining:dR,kSocket:gp,kKeepAliveTimeoutValue:fR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:gje,kKeepAliveTimeoutThreshold:Eje,kHeadersTimeout:yje,kBodyTimeout:Cje,kStrictContentLength:s8,kMaxRequests:pue,kCounter:Ije,kMaxResponseSize:Bje,kOnError:gue,kResume:ld,kHTTPContext:wue}=Xr(),Go=AAe(),Eue=Buffer.alloc(0),cR=Buffer[Symbol.species],AR=Xe.addListener,bje=Xe.removeAllListeners,Ep=Symbol("kIdleSocketValidation"),ey=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Qje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(dAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onStatus(new cR(XA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderField(new cR(XA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderValue(new cR(XA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onBody(new cR(XA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Qje();i8.catch();var pn=null,XA=null,uR=0,ZA=null,wje=0,Wb=1,ty=2|Wb,hR=4|Wb,o8=8|wje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(nue(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(Yb.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:GVe(t)}if((typeof s=="string"||Yb.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(!aue(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 rje(t,e=!1){return t instanceof ReadableStream&&(Z4(!Yb.isDisturbed(t),"The body has already been consumed."),Z4(!t.locked,"The stream is locked.")),uue(t,e)}function nje(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function sje(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function ije(t){return{blob(){return j0(this,r=>{let n=iue(this);return n===null?n="":n&&(n=$Ve(n)),new KVe([r],{type:n})},t)},arrayBuffer(){return j0(this,r=>new Uint8Array(r).buffer,t)},text(){return j0(this,oue,t)},json(){return j0(this,aje,t)},formData(){return j0(this,r=>{let n=iue(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=eje(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new sue;return i[K0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new sue;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 j0(this,r=>new Uint8Array(r),t)}}}function oje(t){Object.assign(t.prototype,ije(t))}async function j0(t,e,r){if(jVe.brandCheck(t,r),lue(t))throw new TypeError("Body is unusable: Body has already been read");sje(t[K0]);let n=WVe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[K0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await JVe(t[K0].body,i,s),n.promise)}function lue(t){let e=t[K0].body;return e!=null&&(e.stream.locked||Yb.isDisturbed(e.stream))}function aje(t){return JSON.parse(oue(t))}function iue(t){let e=t[K0].headersList,r=VVe(e);return r==="failure"?null:r}due.exports={extractBody:uue,safelyExtractBody:rje,cloneBody:nje,mixinBody:oje,streamRegistry:Aue,hasFinalizationRegistry:cue,bodyUnusable:lue}});var Sue=y((Gsr,xue)=>{"use strict";var We=Q("node:assert"),Xe=vt(),{channels:hue}=_0(),e8=M4(),{RequestContentLengthMismatchError:pp,ResponseContentLengthMismatchError:fue,RequestAbortedError:Bue,InvalidArgumentError:cje,HeadersTimeoutError:Aje,HeadersOverflowError:uje,SocketError:Z0,InformationalError:$0,BodyTimeoutError:lje,HTTPParserError:dje,ResponseExceededMaxSizeError:hje}=or(),{kUrl:bue,kReset:no,kClient:lR,kParser:Lr,kBlocking:Jb,kRunning:Yn,kPending:Que,kSize:mue,kWriting:Wh,kQueue:Zc,kNoRef:zb,kKeepAliveDefaultTimeout:fje,kHostHeader:mje,kPendingIdx:pje,kRunningIdx:_a,kError:Si,kPipelining:dR,kSocket:gp,kKeepAliveTimeoutValue:fR,kMaxHeadersSize:t8,kKeepAliveMaxTimeout:gje,kKeepAliveTimeoutThreshold:Eje,kHeadersTimeout:yje,kBodyTimeout:Cje,kStrictContentLength:s8,kMaxRequests:pue,kCounter:Ije,kMaxResponseSize:Bje,kOnError:gue,kResume:ld,kHTTPContext:wue}=Xr(),Go=AAe(),Eue=Buffer.alloc(0),cR=Buffer[Symbol.species],AR=Xe.addListener,bje=Xe.removeAllListeners,Ep=Symbol("kIdleSocketValidation"),ey=Symbol("kIdleSocketValidationTimeout"),c8=Symbol("kSocketUsed"),r8;async function Qje(){let t=process.env.JEST_WORKER_ID?_4():void 0,e;try{e=await WebAssembly.compile(dAe())}catch{e=await WebAssembly.compile(t||_4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onStatus(new cR(XA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(pn.ptr===r),pn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderField(new cR(XA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onHeaderValue(new cR(XA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(pn.ptr===r),pn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(pn.ptr===r);let i=n-ZA+XA.byteOffset;return pn.onBody(new cR(XA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(pn.ptr===r),pn.onMessageComplete()||0)}})}var n8=null,i8=Qje();i8.catch();var pn=null,XA=null,uR=0,ZA=null,wje=0,Wb=1,ty=2|Wb,hR=4|Wb,o8=8|wje,a8=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[t8])&&e[t8]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Go.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[mje],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -38,17 +38,17 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new pp;process.emitWarning(new pp)}e[Lr].timeout&&e[Lr].timeoutType===ty&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};xue.exports=Nje});var Fue=y((qsr,Mue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Tue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:pR,kReset:ER,kClient:ry,kRunning:yR,kPending:Pje,kQueue:Jh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:ys,kStrictContentLength:Mje,kOnError:d8,kMaxConcurrentStreams:Pue,kHTTP2Session:eA,kResume:Vh,kSize:Fje,kHTTPContext:Lje}=Xr(),dd=Symbol("open streams"),Rue,Due=!1,gR;try{gR=Q("node:http2")}catch{gR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_je,HTTP2_HEADER_METHOD:Uje,HTTP2_HEADER_PATH:Oje,HTTP2_HEADER_SCHEME:Hje,HTTP2_HEADER_CONTENT_LENGTH:qje,HTTP2_HEADER_EXPECT:Gje,HTTP2_HEADER_STATUS:Yje}}=gR;function zje(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 Wje(t,e){t[ys]=e,Due||(Due=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=gR.connect(t[pR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Pue]});r[dd]=0,r[ry]=t,r[ys]=e,qt.addListener(r,"error",Vje),qt.addListener(r,"frameError",jje),qt.addListener(r,"end",Kje),qt.addListener(r,"goaway",Xje),qt.addListener(r,"close",function(){let{[ry]:s}=this,{[ys]:i}=s,o=this[ys][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[Pje]===0);let a=s[Jh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ry][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[ys]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[yR]===0),t.emit("disconnect",t[pR],[t],s),t[Vh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return $je(t,...s)},resume(){Jje(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Jje(t){let e=t[ys];e?.destroyed===!1&&(t[Fje]===0&&t[Pue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function Vje(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ys][tA]=t,this[ry][d8](t)}function jje(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ys][tA]=n,this[ry][d8](n)}}function Kje(){let t=new Vb("other side closed",qt.getSocketInfo(this[ys]));this.destroy(t),qt.destroy(this[ys],t)}function Xje(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ry];if(r[ys]=null,r[Lje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[ys],e),r[$c]<r[Jh].length){let n=r[Jh][r[$c]];r[Jh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[yR]===0),r.emit("disconnect",r[pR],[r],e),r[Vh]()}function Zje(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $je(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[pR];l[_je]=i||`${h}${f?`:${f}`:""}`,l[Uje]=n;let m=B=>{e.aborted||e.completed||(B=B||new Tue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Jh][t[$c]++]=null,t[Vh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[Oje]=s,l[Hje]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Rue??=X0().extractBody;let[B,M]=Rue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),Zje(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Mje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[qje]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[Gje]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[wKe]=c??3e5,this[QKe]=s??3e5,this[NKe]=C??!0,this[xKe]=B,this[p8]=J,this[Kh]=null,this[kKe]=H>-1?H:-1,this[PKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[vKe]=fe=>Vue(this,fe)}get pipelining(){return this[bR]}set pipelining(e){this[bR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[gKe](){return!!this[kn]&&!this[sy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Jue(this)||1)||this[tQ]>0)}[pKe](e){jue(this),this.once("connect",e)}[DKe](e,r){let n=e.origin||this[eu].origin,s=new uKe(n,e,r);return this[rA].push(s),this[Cp]||(yp.bodyLength(s.body)==null&&yp.isIterable(s.body)?(this[Cp]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Cp]&&this[Xh]!==2&&this[m8]&&(this[Xh]=2),this[Xh]<2}async[TKe](){return new Promise(e=>{this[$b]?this[Kh]=e:e(null)})}async[RKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];yp.errorRequest(this,o,e)}let s=()=>{this[Kh]&&(this[Kh](),this[Kh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},LKe=BR();function Vue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];yp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function jue(t){hd(!t[sy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[eu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Wue.isIP(o)),r=o}t[sy]=!0,ny.beforeConnect.hasSubscribers&&ny.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[jh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){yp.destroy(i.on("error",Yue),new hKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await FKe(t,i):await MKe(t,i)}catch(o){throw i.destroy().on("error",Yue),o}t[sy]=!1,i[SKe]=0,i[p8]=t[p8],i[mKe]=t,i[yKe]=null,ny.connected.hasSubscribers&&ny.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[eu],[t])}catch(i){if(t.destroyed)return;if(t[sy]=!1,ny.connectError.hasSubscribers&&ny.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[jh];){let o=t[rA][t[nA]++];yp.errorRequest(t,o,i)}else Vue(t,i);t.emit("connectionError",t[eu],[t],i)}t[Zb]()}function zue(t){t[Xh]=0,t.emit("drain",t[eu],[t])}function E8(t,e){t[Cp]!==2&&(t[Cp]=2,_Ke(t,e),t[Cp]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function _Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Kh]&&!t[$b]){t[Kh](),t[Kh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Xh]=2;else if(t[Xh]===2){e?(t[Xh]=1,queueMicrotask(()=>zue(t))):zue(t);continue}if(t[tQ]===0||t[eQ]>=(Jue(t)||1))return;let r=t[rA][t[nA]];if(t[eu].protocol==="https:"&&t[jh]!==r.servername){if(t[eQ]>0)return;t[jh]=r.servername,t[kn]?.destroy(new dKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[sy])return;if(!t[kn]){jue(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}Kue.exports=g8});var y8=y((Jsr,Xue)=>{"use strict";var QR=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)}};Xue.exports=class{constructor(){this.head=this.tail=new QR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new QR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var $ue=y((Vsr,Zue)=>{var{kFree:UKe,kConnected:OKe,kPending:HKe,kQueued:qKe,kRunning:GKe,kSize:YKe}=Xr(),Ip=Symbol("pool"),C8=class{constructor(e){this[Ip]=e}get connected(){return this[Ip][OKe]}get free(){return this[Ip][UKe]}get pending(){return this[Ip][HKe]}get queued(){return this[Ip][qKe]}get running(){return this[Ip][GKe]}get size(){return this[Ip][YKe]}};Zue.exports=C8});var N8=y((jsr,Ale)=>{"use strict";var zKe=q0(),WKe=y8(),{kConnected:I8,kSize:ele,kRunning:tle,kPending:rle,kQueued:rQ,kBusy:JKe,kFree:VKe,kUrl:jKe,kClose:KKe,kDestroy:XKe,kDispatch:ZKe}=Xr(),$Ke=$ue(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),nle=Symbol("onConnect"),sle=Symbol("onDisconnect"),ile=Symbol("onCo
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[s8])throw new pp;process.emitWarning(new pp)}e[Lr].timeout&&e[Lr].timeoutType===ty&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[ld]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Wh]=!1,e&&(We(n[Yn]<=1,"pipeline should only contain this request"),s(e))}};xue.exports=Nje});var Fue=y((Ysr,Mue)=>{"use strict";var Ua=Q("node:assert"),{pipeline:vje}=Q("node:stream"),qt=vt(),{RequestContentLengthMismatchError:A8,RequestAbortedError:Tue,SocketError:Vb,InformationalError:u8}=or(),{kUrl:pR,kReset:ER,kClient:ry,kRunning:yR,kPending:Pje,kQueue:Jh,kPendingIdx:l8,kRunningIdx:$c,kError:tA,kSocket:ys,kStrictContentLength:Mje,kOnError:d8,kMaxConcurrentStreams:Pue,kHTTP2Session:eA,kResume:Vh,kSize:Fje,kHTTPContext:Lje}=Xr(),dd=Symbol("open streams"),Rue,Due=!1,gR;try{gR=Q("node:http2")}catch{gR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:_je,HTTP2_HEADER_METHOD:Uje,HTTP2_HEADER_PATH:Oje,HTTP2_HEADER_SCHEME:Hje,HTTP2_HEADER_CONTENT_LENGTH:qje,HTTP2_HEADER_EXPECT:Gje,HTTP2_HEADER_STATUS:Yje}}=gR;function zje(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 Wje(t,e){t[ys]=e,Due||(Due=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=gR.connect(t[pR],{createConnection:()=>e,peerMaxConcurrentStreams:t[Pue]});r[dd]=0,r[ry]=t,r[ys]=e,qt.addListener(r,"error",Vje),qt.addListener(r,"frameError",jje),qt.addListener(r,"end",Kje),qt.addListener(r,"goaway",Xje),qt.addListener(r,"close",function(){let{[ry]:s}=this,{[ys]:i}=s,o=this[ys][tA]||this[tA]||new Vb("closed",qt.getSocketInfo(i));if(s[eA]=null,s.destroyed){Ua(s[Pje]===0);let a=s[Jh].splice(s[$c]);for(let c=0;c<a.length;c++){let A=a[c];qt.errorRequest(s,A,o)}}}),r.unref(),t[eA]=r,e[eA]=r,qt.addListener(e,"error",function(s){Ua(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[tA]=s,this[ry][d8](s)}),qt.addListener(e,"end",function(){qt.destroy(this,new Vb("other side closed",qt.getSocketInfo(this)))}),qt.addListener(e,"close",function(){let s=this[tA]||new Vb("closed",qt.getSocketInfo(this));t[ys]=null,this[eA]!=null&&this[eA].destroy(s),t[l8]=t[$c],Ua(t[yR]===0),t.emit("disconnect",t[pR],[t],s),t[Vh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return $je(t,...s)},resume(){Jje(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function Jje(t){let e=t[ys];e?.destroyed===!1&&(t[Fje]===0&&t[Pue]===0?(e.unref(),t[eA].unref()):(e.ref(),t[eA].ref()))}function Vje(t){Ua(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[ys][tA]=t,this[ry][d8](t)}function jje(t,e,r){if(r===0){let n=new u8(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[ys][tA]=n,this[ry][d8](n)}}function Kje(){let t=new Vb("other side closed",qt.getSocketInfo(this[ys]));this.destroy(t),qt.destroy(this[ys],t)}function Xje(t){let e=this[tA]||new Vb(`HTTP/2: "GOAWAY" frame received with code ${t}`,qt.getSocketInfo(this)),r=this[ry];if(r[ys]=null,r[Lje]=null,this[eA]!=null&&(this[eA].destroy(e),this[eA]=null),qt.destroy(this[ys],e),r[$c]<r[Jh].length){let n=r[Jh][r[$c]];r[Jh][r[$c]++]=null,qt.errorRequest(r,n,e),r[l8]=r[$c]}Ua(r[yR]===0),r.emit("disconnect",r[pR],[r],e),r[Vh]()}function Zje(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function $je(t,e){let r=t[eA],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return qt.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],J=A[B+1];if(Array.isArray(J))for(let F=0;F<J.length;F++)l[M]?l[M]+=`,${J[F]}`:l[M]=J[F];else l[M]=J}let d,{hostname:h,port:f}=t[pR];l[_je]=i||`${h}${f?`:${f}`:""}`,l[Uje]=n;let m=B=>{e.aborted||e.completed||(B=B||new Tue,qt.errorRequest(t,e,B),d!=null&&qt.destroy(d,B),qt.destroy(u,B),t[Jh][t[$c]++]=null,t[Vh]())};try{e.onConnect(m)}catch(B){qt.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[dd],t[Jh][t[$c]++]=null}),d.once("close",()=>{r[dd]-=1,r[dd]===0&&r.unref()}),!0;l[Oje]=s,l[Hje]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=qt.bodyLength(u);if(qt.isFormDataLike(u)){Rue??=X0().extractBody;let[B,M]=Rue(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),Zje(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[Mje])return qt.errorRequest(t,e,new A8),!1;process.emitWarning(new A8)}g!=null&&(Ua(u,"no body must not have content length"),l[qje]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[Gje]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[wKe]=c??3e5,this[QKe]=s??3e5,this[NKe]=C??!0,this[xKe]=B,this[p8]=J,this[Kh]=null,this[kKe]=H>-1?H:-1,this[PKe]=$??100,this[kn]=null,this[rA]=[],this[fd]=0,this[nA]=0,this[Zb]=fe=>E8(this,fe),this[vKe]=fe=>Vue(this,fe)}get pipelining(){return this[bR]}set pipelining(e){this[bR]=e,this[Zb](!0)}get[tQ](){return this[rA].length-this[nA]}get[eQ](){return this[nA]-this[fd]}get[$b](){return this[rA].length-this[fd]}get[gKe](){return!!this[kn]&&!this[sy]&&!this[kn].destroyed}get[m8](){return!!(this[kn]?.busy(null)||this[$b]>=(Jue(this)||1)||this[tQ]>0)}[pKe](e){jue(this),this.once("connect",e)}[DKe](e,r){let n=e.origin||this[eu].origin,s=new uKe(n,e,r);return this[rA].push(s),this[Cp]||(yp.bodyLength(s.body)==null&&yp.isIterable(s.body)?(this[Cp]=1,queueMicrotask(()=>E8(this))):this[Zb](!0)),this[Cp]&&this[Xh]!==2&&this[m8]&&(this[Xh]=2),this[Xh]<2}async[TKe](){return new Promise(e=>{this[$b]?this[Kh]=e:e(null)})}async[RKe](e){return new Promise(r=>{let n=this[rA].splice(this[nA]);for(let i=0;i<n.length;i++){let o=n[i];yp.errorRequest(this,o,e)}let s=()=>{this[Kh]&&(this[Kh](),this[Kh]=null),r(null)};this[kn]?(this[kn].destroy(e,s),this[kn]=null):queueMicrotask(s),this[Zb]()})}},LKe=BR();function Vue(t,e){if(t[eQ]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){hd(t[nA]===t[fd]);let r=t[rA].splice(t[fd]);for(let n=0;n<r.length;n++){let s=r[n];yp.errorRequest(t,s,e)}hd(t[$b]===0)}}async function jue(t){hd(!t[sy]),hd(!t[kn]);let{host:e,hostname:r,protocol:n,port:s}=t[eu];if(r[0]==="["){let i=r.indexOf("]");hd(i!==-1);let o=r.substring(1,i);hd(Wue.isIP(o)),r=o}t[sy]=!0,ny.beforeConnect.hasSubscribers&&ny.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb]});try{let i=await new Promise((o,a)=>{t[Kb]({host:e,hostname:r,protocol:n,port:s,servername:t[jh],localAddress:t[Xb]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){yp.destroy(i.on("error",Yue),new hKe);return}hd(i);try{t[kn]=i.alpnProtocol==="h2"?await FKe(t,i):await MKe(t,i)}catch(o){throw i.destroy().on("error",Yue),o}t[sy]=!1,i[SKe]=0,i[p8]=t[p8],i[mKe]=t,i[yKe]=null,ny.connected.hasSubscribers&&ny.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],socket:i}),t.emit("connect",t[eu],[t])}catch(i){if(t.destroyed)return;if(t[sy]=!1,ny.connectError.hasSubscribers&&ny.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[kn]?.version,servername:t[jh],localAddress:t[Xb]},connector:t[Kb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(hd(t[eQ]===0);t[tQ]>0&&t[rA][t[nA]].servername===t[jh];){let o=t[rA][t[nA]++];yp.errorRequest(t,o,i)}else Vue(t,i);t.emit("connectionError",t[eu],[t],i)}t[Zb]()}function zue(t){t[Xh]=0,t.emit("drain",t[eu],[t])}function E8(t,e){t[Cp]!==2&&(t[Cp]=2,_Ke(t,e),t[Cp]=0,t[fd]>256&&(t[rA].splice(0,t[fd]),t[nA]-=t[fd],t[fd]=0))}function _Ke(t,e){for(;;){if(t.destroyed){hd(t[tQ]===0);return}if(t[Kh]&&!t[$b]){t[Kh](),t[Kh]=null;return}if(t[kn]&&t[kn].resume(),t[m8])t[Xh]=2;else if(t[Xh]===2){e?(t[Xh]=1,queueMicrotask(()=>zue(t))):zue(t);continue}if(t[tQ]===0||t[eQ]>=(Jue(t)||1))return;let r=t[rA][t[nA]];if(t[eu].protocol==="https:"&&t[jh]!==r.servername){if(t[eQ]>0)return;t[jh]=r.servername,t[kn]?.destroy(new dKe("servername changed"),()=>{t[kn]=null,E8(t)})}if(t[sy])return;if(!t[kn]){jue(t);return}if(t[kn].destroyed||t[kn].busy(r))return;!r.aborted&&t[kn].write(r)?t[nA]++:t[rA].splice(t[nA],1)}}Kue.exports=g8});var y8=y((jsr,Xue)=>{"use strict";var QR=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)}};Xue.exports=class{constructor(){this.head=this.tail=new QR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new QR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var $ue=y((Ksr,Zue)=>{var{kFree:UKe,kConnected:OKe,kPending:HKe,kQueued:qKe,kRunning:GKe,kSize:YKe}=Xr(),Ip=Symbol("pool"),C8=class{constructor(e){this[Ip]=e}get connected(){return this[Ip][OKe]}get free(){return this[Ip][UKe]}get pending(){return this[Ip][HKe]}get queued(){return this[Ip][qKe]}get running(){return this[Ip][GKe]}get size(){return this[Ip][YKe]}};Zue.exports=C8});var N8=y((Xsr,Ale)=>{"use strict";var zKe=q0(),WKe=y8(),{kConnected:I8,kSize:ele,kRunning:tle,kPending:rle,kQueued:rQ,kBusy:JKe,kFree:VKe,kUrl:jKe,kClose:KKe,kDestroy:XKe,kDispatch:ZKe}=Xr(),$Ke=$ue(),so=Symbol("clients"),Ti=Symbol("needDrain"),nQ=Symbol("queue"),B8=Symbol("closed resolve"),b8=Symbol("onDrain"),nle=Symbol("onConnect"),sle=Symbol("onDisconnect"),ile=Symbol("onCo
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};phe.exports=NH});var qR=y((bir,Ihe)=>{"use strict";var Ehe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:w$e}=or(),N$e=ay();Che()===void 0&&yhe(new N$e);function yhe(t){if(!t||typeof t.dispatch!="function")throw new w$e("Argument agent must implement Agent");Object.defineProperty(globalThis,Ehe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Che(){return globalThis[Ehe]}Ihe.exports={setGlobalDispatcher:yhe,getGlobalDispatcher:Che}});var GR=y((wir,Bhe)=>{"use strict";Bhe.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 Qhe=y((Nir,bhe)=>{"use strict";var x$e=IR();bhe.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 x$e(r,o,s,i);return r(a,c)}}});var Nhe=y((xir,whe)=>{"use strict";var S$e=kR();whe.exports=t=>e=>function(n,s){return e(n,new S$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var She=y((Sir,xhe)=>{"use strict";var T$e=vt(),{InvalidArgumentError:R$e,RequestAbortedError:D$e}=or(),k$e=GR(),xH=class extends k$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new R$e("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.#s=e}onHeaders(e,r,n,s){let o=T$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new D$e(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function v$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}xhe.exports=v$e});var Dhe=y((Tir,Rhe)=>{"use strict";var{isIP:P$e}=Q("node:net"),{lookup:M$e}=Q("node:dns"),F$e=GR(),{InvalidArgumentError:py,InformationalError:L$e}=or(),The=Math.pow(2,31)-1,SH=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new L$e("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){M$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===The?(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===The?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 TH(this,e,r)}},TH=class extends F$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(TD(e,s,Znt)){$nt(e,i)&&(r.retry=e.toString("utf8",i));return}if(TD(e,s,Xnt)){est(e,i)&&(r.id=e.toString("utf8",i));return}if(TD(e,s,Knt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&znt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Wnt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Ry[0]||(this.checkBOM=!1),!0):n===void 0?e===Ry[0]&&r===Ry[1]?!0:(this.checkBOM=!1,!1):(e===Ry[0]&&r===Ry[1]&&n===Ry[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Ape.exports={EventSourceStream:E6}});var Epe=y((oor,gpe)=>{"use strict";var{pipeline:tst}=Q("node:stream"),{fetching:rst}=pQ(),{makeRequest:nst}=yy(),{webidl:Ed}=zs(),{EventSourceStream:sst}=upe(),{parseMIMEType:ist}=ro(),{createFastMessageEvent:ost}=wy(),{isNetworkError:lpe}=fQ(),{delay:ast}=p6(),{kEnumerableProperty:Lp}=vt(),{environmentSettingsObject:dpe}=qo(),hpe=!1,fpe=3e3,RQ=0,mpe=1,DQ=2,cst="anonymous",Ast="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),hpe||(hpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:fpe};let s=dpe,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=cst;r.withCredentials&&(o=Ast,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=dpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=nst(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{lpe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(lpe(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?ist(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=mpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new sst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(ost(c.type,c.options))}});tst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=rst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n
Line truncated
|
||||
`.trim())}};phe.exports=NH});var qR=y((wir,Ihe)=>{"use strict";var Ehe=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:w$e}=or(),N$e=ay();Che()===void 0&&yhe(new N$e);function yhe(t){if(!t||typeof t.dispatch!="function")throw new w$e("Argument agent must implement Agent");Object.defineProperty(globalThis,Ehe,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Che(){return globalThis[Ehe]}Ihe.exports={setGlobalDispatcher:yhe,getGlobalDispatcher:Che}});var GR=y((xir,Bhe)=>{"use strict";Bhe.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 Qhe=y((Sir,bhe)=>{"use strict";var x$e=IR();bhe.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 x$e(r,o,s,i);return r(a,c)}}});var Nhe=y((Tir,whe)=>{"use strict";var S$e=kR();whe.exports=t=>e=>function(n,s){return e(n,new S$e({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var She=y((Rir,xhe)=>{"use strict";var T$e=vt(),{InvalidArgumentError:R$e,RequestAbortedError:D$e}=or(),k$e=GR(),xH=class extends k$e{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new R$e("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.#s=e}onHeaders(e,r,n,s){let o=T$e.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new D$e(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function v$e({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new xH({maxSize:i},s);return e(n,o)}}xhe.exports=v$e});var Dhe=y((Dir,Rhe)=>{"use strict";var{isIP:P$e}=Q("node:net"),{lookup:M$e}=Q("node:dns"),F$e=GR(),{InvalidArgumentError:py,InformationalError:L$e}=or(),The=Math.pow(2,31)-1,SH=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new L$e("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){M$e(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===The?(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===The?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 TH(this,e,r)}},TH=class extends F$e{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(TD(e,s,Znt)){$nt(e,i)&&(r.retry=e.toString("utf8",i));return}if(TD(e,s,Xnt)){est(e,i)&&(r.id=e.toString("utf8",i));return}if(TD(e,s,Knt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&znt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Wnt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===Ry[0]||(this.checkBOM=!1),!0):n===void 0?e===Ry[0]&&r===Ry[1]?!0:(this.checkBOM=!1,!1):(e===Ry[0]&&r===Ry[1]&&n===Ry[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Ape.exports={EventSourceStream:E6}});var Epe=y((cor,gpe)=>{"use strict";var{pipeline:tst}=Q("node:stream"),{fetching:rst}=pQ(),{makeRequest:nst}=yy(),{webidl:Ed}=zs(),{EventSourceStream:sst}=upe(),{parseMIMEType:ist}=ro(),{createFastMessageEvent:ost}=wy(),{isNetworkError:lpe}=fQ(),{delay:ast}=p6(),{kEnumerableProperty:Lp}=vt(),{environmentSettingsObject:dpe}=qo(),hpe=!1,fpe=3e3,RQ=0,mpe=1,DQ=2,cst="anonymous",Ast="use-credentials",Dy=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=RQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Ed.util.markAsUncloneable(this);let n="EventSource constructor";Ed.argumentLengthCheck(arguments,1,n),hpe||(hpe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Ed.converters.USVString(e,n,"url"),r=Ed.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:fpe};let s=dpe,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=cst;r.withCredentials&&(o=Ast,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=dpe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=nst(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===DQ)return;this.#r=RQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{lpe(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(lpe(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?ist(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=mpe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new sst({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(ost(c.type,c.options))}});tst(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=rst(e)}async#A(){this.#r!==DQ&&(this.#r=RQ,this.dispatchEvent(n
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+O2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Glt()+e+" "+t[0]}function Glt(){return Is.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Ylt(...t){return process.stderr.write(U2.formatWithOptions(Is.inspectOpts,...t)+`
|
||||
`)}function zlt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Wlt(){return process.env.DEBUG}function Jlt(t){t.inspectOpts={};let e=Object.keys(Is.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Is.inspectOpts[e[r]]}O2.exports=$5()(Is);var{formatters:zye}=O2.exports;zye.o=function(t){return this.inspectOpts.colors=this.useColors,U2.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};zye.O=function(t){return this.inspectOpts.colors=this.useColors,U2.inspect(t,this.inspectOpts)}});var H2=y((ulr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Uye():rq.exports=Wye()});var jye=y(fo=>{"use strict";var Vlt=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]})),jlt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jye=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)&&Vlt(e,t,r);return jlt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var Klt=Jye(Q("http")),Xlt=Jye(Q("https"));async function Vye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=Vye;async function Zlt(t){let r=(await Vye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=Zlt;function $lt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Xlt:Klt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=$lt});var sq=y(ta=>{"use strict";var Xye=ta&&ta.__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]})),edt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=ta&&ta.__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)&&Xye(e,t,r);return edt(e,t),e},tdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xye(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var rdt=Zye(Q("net")),Kye=Zye(Q("http")),ndt=Q("https");tdt(jye(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends Kye.Agent{constructor(e){super(e),this[lu]={}}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(`
|
||||
`).map(e=>e.trim()).join(" ")};zye.O=function(t){return this.inspectOpts.colors=this.useColors,U2.inspect(t,this.inspectOpts)}});var H2=y((dlr,rq)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?rq.exports=Uye():rq.exports=Wye()});var jye=y(fo=>{"use strict";var Vlt=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]})),jlt=fo&&fo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Jye=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)&&Vlt(e,t,r);return jlt(e,t),e};Object.defineProperty(fo,"__esModule",{value:!0});fo.req=fo.json=fo.toBuffer=void 0;var Klt=Jye(Q("http")),Xlt=Jye(Q("https"));async function Vye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}fo.toBuffer=Vye;async function Zlt(t){let r=(await Vye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}fo.json=Zlt;function $lt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?Xlt:Klt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}fo.req=$lt});var sq=y(ta=>{"use strict";var Xye=ta&&ta.__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]})),edt=ta&&ta.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Zye=ta&&ta.__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)&&Xye(e,t,r);return edt(e,t),e},tdt=ta&&ta.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Xye(e,t,r)};Object.defineProperty(ta,"__esModule",{value:!0});ta.Agent=void 0;var rdt=Zye(Q("net")),Kye=Zye(Q("http")),ndt=Q("https");tdt(jye(),ta);var lu=Symbol("AgentBaseInternalState"),nq=class extends Kye.Agent{constructor(e){super(e),this[lu]={}}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 rdt.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)?ndt.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 Kye.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[lu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[lu].currentSocket;if(this[lu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[lu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[lu]&&(this[lu].defaultPort=e)}get protocol(){return this[lu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[lu]&&(this[lu].protocol=e)}};ta.Agent=nq});var $ye=y(Vy=>{"use strict";var sdt=Vy&&Vy.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Vy,"__esModule",{value:!0});Vy.parseProxyResponse=void 0;var idt=sdt(H2()),q2=(0,idt.default)("https-proxy-agent:parse-proxy-response");function odt(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(),q2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),q2("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){q2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
@@ -57,16 +57,16 @@ ${o}`;return}if(TD(e,s,Znt)){$nt(e,i)&&(r.retry=e.toString("utf8",i));return}if(
|
||||
`;let c=(0,hdt.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",fdt),r.secureEndpoint?(Ew("Upgrading socket connection to TLS"),eCe.connect({...rCe(tCe(r),"host","path","port"),socket:s})):s;s.destroy();let l=new G2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{Ew("Replaying proxy buffer for failed request"),(0,Adt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};Y2.protocols=["http","https"];Xa.HttpsProxyAgent=Y2;function fdt(t){t.resume()}function rCe(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var cCe=y(Za=>{"use strict";var mdt=Za&&Za.__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]})),pdt=Za&&Za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),aCe=Za&&Za.__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)&&mdt(e,t,r);return pdt(e,t),e},gdt=Za&&Za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Za,"__esModule",{value:!0});Za.HttpProxyAgent=void 0;var Edt=aCe(Q("net")),ydt=aCe(Q("tls")),Cdt=gdt(H2()),Idt=Q("events"),Bdt=sq(),oCe=Q("url"),jy=(0,Cdt.default)("http-proxy-agent"),z2=class extends Bdt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new oCe.URL(e):e,this.proxyHeaders=r?.headers??{},jy("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?bdt(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 oCe.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;jy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(jy("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),jy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(jy("Creating `tls.Socket`: %o",this.connectOpts),i=ydt.connect(this.connectOpts)):(jy("Creating `net.Socket`: %o",this.connectOpts),i=Edt.connect(this.connectOpts)),await(0,Idt.once)(i,"connect"),i}};z2.protocols=["http","https"];Za.HttpProxyAgent=z2;function bdt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var DCe=y(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.state=void 0;V2.state={instrumenterImplementation:void 0}});var aIe=y(ok=>{"use strict";Object.defineProperty(ok,"__esModule",{value:!0});ok.state=void 0;ok.state={operationRequestMap:new WeakMap}});var Obe=y((ZTr,f0t)=>{f0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var qbe=y(($Tr,Hbe)=>{var m0t=Obe();Hbe.exports={version:m0t.version}});var Fv=y(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});DC.isJsonObject=DC.typeofJsonValue=void 0;function Q0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}DC.typeofJsonValue=Q0t;function w0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}DC.isJsonObject=w0t});var _v=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.base64encode=kC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Lv=[];for(let t=0;t<Ud.length;t++)Lv[Ud[t].charCodeAt(0)]=t;Lv[45]=Ud.indexOf("+");Lv[95]=Ud.indexOf("/");function N0t(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=Lv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),jy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(jy("Creating `tls.Socket`: %o",this.connectOpts),i=ydt.connect(this.connectOpts)):(jy("Creating `net.Socket`: %o",this.connectOpts),i=Edt.connect(this.connectOpts)),await(0,Idt.once)(i,"connect"),i}};z2.protocols=["http","https"];Za.HttpProxyAgent=z2;function bdt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var DCe=y(V2=>{"use strict";Object.defineProperty(V2,"__esModule",{value:!0});V2.state=void 0;V2.state={instrumenterImplementation:void 0}});var aIe=y(ok=>{"use strict";Object.defineProperty(ok,"__esModule",{value:!0});ok.state=void 0;ok.state={operationRequestMap:new WeakMap}});var Obe=y((eRr,f0t)=>{f0t.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var qbe=y((tRr,Hbe)=>{var m0t=Obe();Hbe.exports={version:m0t.version}});var Fv=y(DC=>{"use strict";Object.defineProperty(DC,"__esModule",{value:!0});DC.isJsonObject=DC.typeofJsonValue=void 0;function Q0t(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}DC.typeofJsonValue=Q0t;function w0t(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}DC.isJsonObject=w0t});var _v=y(kC=>{"use strict";Object.defineProperty(kC,"__esModule",{value:!0});kC.base64encode=kC.base64decode=void 0;var Ud="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Lv=[];for(let t=0;t<Ud.length;t++)Lv[Ud[t].charCodeAt(0)]=t;Lv[45]=Ud.indexOf("+");Lv[95]=Ud.indexOf("/");function N0t(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=Lv[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)}kC.base64decode=N0t;function x0t(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Ud[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Ud[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Ud[s|n>>6],e+=Ud[n&63],r=0;break}return r&&(e+=Ud[s],e+="=",r==1&&(e+="=")),e}kC.base64encode=x0t});var Jbe=y(Uv=>{"use strict";Object.defineProperty(Uv,"__esModule",{value:!0});Uv.utf8read=void 0;var iW=t=>String.fromCharCode.apply(String,t);function S0t(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(iW(n)),s=0);return r.length?(s&&r.push(iW(n.slice(0,s))),r.join("")):iW(n.slice(0,s))}Uv.utf8read=S0t});var CN=y(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});Lu.WireType=Lu.mergeBinaryOptions=Lu.UnknownFieldHandler=void 0;var T0t;(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])})(T0t=Lu.UnknownFieldHandler||(Lu.UnknownFieldHandler={}));function R0t(t,e){return Object.assign(Object.assign({},t),e)}Lu.mergeBinaryOptions=R0t;var D0t;(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"})(D0t=Lu.WireType||(Lu.WireType={}))});var Hv=y(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.varint32read=bo.varint32write=bo.int64toString=bo.int64fromString=bo.varint64write=bo.varint64read=void 0;function k0t(){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")}bo.varint64read=k0t;function v0t(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)}}bo.varint64write=v0t;var Ov=65536*65536;function P0t(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>=Ov&&(s=s+(n/Ov|0),n=n%Ov)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}bo.int64fromString=P0t;function M0t(t,e){if(e>>>0<=2097151)return""+(Ov*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)}bo.int64toString=M0t;function F0t(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)}}bo.varint32write=F0t;function L0t(){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}bo.varint32read=L0t});var Hf=y(Of=>{"use strict";Object.defineProperty(Of,"__esModule",{value:!0});Of.PbLong=Of.PbULong=Of.detectBi=void 0;var IN=Hv(),kr;function Vbe(){let t=new DataView(new ArrayBuffer(8));kr=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}Of.detectBi=Vbe;Vbe();function jbe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var Kbe=/^-?[0-9]+$/,Gv=4294967296,qv=2147483648,Yv=c
Line truncated
|
||||
`)}};fP.RpcError=kW});var PW=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.mergeRpcOptions=void 0;var NQe=St();function iCt(t,e){if(!e)return t;let r={};mP(t,r),mP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=NQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=NQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mP(t.meta,r.meta),mP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pP.mergeRpcOptions=iCt;function mP(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 FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.RpcOutputStreamController=void 0;var xQe=FW(),bg=St(),LW=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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 xQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==xQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};gP.RpcOutputStreamController=LW});var OW=y(UC=>{"use strict";var oCt=UC&&UC.__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(UC,"__esModule",{value:!0});UC.UnaryCall=void 0;var UW=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 oCt(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}})}};UC.UnaryCall=UW});var qW=y(OC=>{"use strict";var aCt=OC&&OC.__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(OC,"__esModule",{value:!0});OC.ServerStreamingCall=void 0;var HW=class{constructor(e
Line truncated
|
||||
`)}};fP.RpcError=kW});var PW=y(pP=>{"use strict";Object.defineProperty(pP,"__esModule",{value:!0});pP.mergeRpcOptions=void 0;var NQe=St();function iCt(t,e){if(!e)return t;let r={};mP(t,r),mP(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=NQe.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=NQe.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},mP(t.meta,r.meta),mP(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}pP.mergeRpcOptions=iCt;function mP(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 FW=y(Bg=>{"use strict";Object.defineProperty(Bg,"__esModule",{value:!0});Bg.Deferred=Bg.DeferredState=void 0;var Ou;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ou=Bg.DeferredState||(Bg.DeferredState={}));var MW=class{constructor(e=!0){this._state=Ou.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!==Ou.PENDING)throw new Error(`cannot resolve ${Ou[this.state].toLowerCase()}`);this._resolve(e),this._state=Ou.RESOLVED}reject(e){if(this.state!==Ou.PENDING)throw new Error(`cannot reject ${Ou[this.state].toLowerCase()}`);this._reject(e),this._state=Ou.REJECTED}resolvePending(e){this._state===Ou.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ou.PENDING&&this.reject(e)}};Bg.Deferred=MW});var _W=y(gP=>{"use strict";Object.defineProperty(gP,"__esModule",{value:!0});gP.RpcOutputStreamController=void 0;var xQe=FW(),bg=St(),LW=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){bg.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){bg.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){bg.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(){bg.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;bg.assert(e,"bad state"),bg.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 xQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;bg.assert(n.state==xQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};gP.RpcOutputStreamController=LW});var OW=y(UC=>{"use strict";var oCt=UC&&UC.__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(UC,"__esModule",{value:!0});UC.UnaryCall=void 0;var UW=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 oCt(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}})}};UC.UnaryCall=UW});var qW=y(OC=>{"use strict";var aCt=OC&&OC.__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(OC,"__esModule",{value:!0});OC.ServerStreamingCall=void 0;var HW=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 uSe=y(ASe=>{"use strict";var bV=Jd().Buffer;ASe._dbcs=Vd;var Ks=-1,cSe=-2,yc=-10,Hi=-1e3,mI=new Array(256),fx=-1;for($M=0;$M<256;$M++)mI[$M]=Ks;var $M;function Vd(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]=mI.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(mI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(mI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=cSe)}}}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 X1t(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(F1t.has(s)){r=s;break}}return r}function Z1t(t,e){let r=X1t(e);r!==""&&(t.referrerPolicy=r)}function $1t(){return"allowed"}function eTt(){return"success"}function tTt(){return"success"}function rTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function nTt(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&&qj(t.origin)&&!qj(Vg(t))&&(e=null);break;case"same-origin":Qx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function CI(t,e){return t}function sTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:CI(t.domainLookupStartTime,r),domainLookupEndTime:CI(t.domainLookupEndTime,r),connectionStartTime:CI(t.connectionStartTime,r),connectionEndTime:CI(t.connectionEndTime,r),secureConnectionStartTime:CI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function iTt(t){return CI(O1t.now(),t)}function oTt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function UTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function aTt(t){return{referrerPolicy:t.referrerPolicy}}function cTt(t){let e=t.referrerPolicy;wx(e);let r=null;if(t.referrer==="client"){let i=PTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else am.is.URL(t.referrer)&&(r=t.referrer);let n=Hj(r),s=Hj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??Hj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return Qx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return Qx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Qx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function Hj(t,e=!1){return wx(am.is.URL(t)),t=new URL(t),GTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var ATt=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)$/),uTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function OTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),uTt(t)):ATt(t)}function lTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||OTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return am.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:lTt(t.origin):!1}function dTt(t){}function Qx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function hTt(t){return t.controller.state==="aborted"}function fTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function mTt(t){return q1t[t.toLowerCase()]??t}var pTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function HTe(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,pTt),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 gTt(t,e,r,n=0,s=1){let i=HTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Xj(a)&&a!==59,t,e);i=jj.decode(o)}return{name:n,value:i,extended:s}}function HTt(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 Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Kj(o,!0,!0,a=>a===9||a===32),!vTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),kTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Xj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=OTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),s=jTe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),i=jTe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Kj(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 qTt(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 Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function GTt(t){return t<=31||t===127}function YTt(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 Xj(t){return t<=127&&t!==32&&t!==9&&!GTt(t)&&!YTt(t)}KTe.exports={multipartFormDataParser:UTt,validateBoundary:_Tt}});var Nx=y((kFr,ZTe)=>{"use strict";function zTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}ZTe.exports={createDeferredPromise:zTt}});var bI=y((vFr,nRe)=>{"use strict";var eK=ht(),{ReadableStreamFrom:WTt,readableStreamClose:JTt,fullyReadBody:VTt,extractMimeType:jTt}=fa(),{FormData:$Te,setFormDataState:KTt}=QF(),{webidl:xA}=Xs(),Zj=Q("node:assert"),{isErrored:$j,isDisturbed:XTt}=Q("node:stream"),{isUint8Array:ZTt}=Q("node:util/types"),{serializeAMimeType:$Tt}=Ic(),{multipartFormDataParser:eRt}=XTe(),{createDeferredPromise:tRt}=Nx(),{parseJSONFromBytes:rRt}=Xd(),{utf8DecodeBytes:nRt}=EF(),{runtimeFeatures:sRt}=Zd(),iRt=sRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),wF=new TextEncoder;function oRt(){}var aRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XTt(e)&&!$j(e)&&e.cancel("Response object has been garbage collected").catch(oRt)});function tRe(t,e=!1){let r=null,n=null;xA.is.ReadableStream(t)?r=t:xA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),Zj(xA.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(xA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(xA.is.BufferSource(t))i=xA.util.getCopyOfBytesHeldByBufferSource(t);else if(xA.is.FormData(t)){let A=`----formdata-undici-0${`${iRt(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 uSe=y(ASe=>{"use strict";var bV=Jd().Buffer;ASe._dbcs=Vd;var Ks=-1,cSe=-2,yc=-10,Hi=-1e3,mI=new Array(256),fx=-1;for($M=0;$M<256;$M++)mI[$M]=Ks;var $M;function Vd(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]=mI.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(mI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(mI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Hi-o[n]],c=48;c<=57;c++){if(a[c]===Ks)a[c]=Hi-s;else if(a[c]>Hi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Hi-a[c]],u=129;u<=254;u++){if(A[u]===Ks)A[u]=Hi-i;else{if(A[u]===Hi-i)continue;if(A[u]>Hi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Hi-A[u]],d=48;d<=57;d++)l[d]===Ks&&(l[d]=cSe)}}}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 X1t(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(F1t.has(s)){r=s;break}}return r}function Z1t(t,e){let r=X1t(e);r!==""&&(t.referrerPolicy=r)}function $1t(){return"allowed"}function eTt(){return"success"}function tTt(){return"success"}function rTt(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function nTt(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&&qj(t.origin)&&!qj(Vg(t))&&(e=null);break;case"same-origin":Qx(t,Vg(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function CI(t,e){return t}function sTt(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:CI(t.domainLookupStartTime,r),domainLookupEndTime:CI(t.domainLookupEndTime,r),connectionStartTime:CI(t.connectionStartTime,r),connectionEndTime:CI(t.connectionEndTime,r),secureConnectionStartTime:CI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function iTt(t){return CI(O1t.now(),t)}function oTt(t){return{startTime:t.startTime??0,redirectStartTime:0,redirectEndTime:0,postRedirectStartTime:t.startTime??0,finalServiceWorkerStartTime:0,finalNetworkResponseStartTime:0,finalNetworkRequestStartTime:0,endTime:0,encodedBodySize:0,decodedBodySize:0,finalConnectionTimingInfo:null}}function UTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function aTt(t){return{referrerPolicy:t.referrerPolicy}}function cTt(t){let e=t.referrerPolicy;wx(e);let r=null;if(t.referrer==="client"){let i=PTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else am.is.URL(t.referrer)&&(r=t.referrer);let n=Hj(r),s=Hj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??Hj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Vg(t);return Qx(n,i)?n:Jg(n)&&!Jg(i)?"no-referrer":s}case"same-origin":return Qx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return Qx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Vg(t);return Jg(n)&&!Jg(i)?"no-referrer":n}}}function Hj(t,e=!1){return wx(am.is.URL(t)),t=new URL(t),GTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var ATt=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)$/),uTt=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function OTe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),uTt(t)):ATt(t)}function lTt(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||OTe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function Jg(t){return am.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:lTt(t.origin):!1}function dTt(t){}function Qx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function hTt(t){return t.controller.state==="aborted"}function fTt(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function mTt(t){return q1t[t.toLowerCase()]??t}var pTt=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function HTe(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,pTt),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 gTt(t,e,r,n=0,s=1){let i=HTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return am.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=Bc(a=>Xj(a)&&a!==59,t,e);i=jj.decode(o)}return{name:n,value:i,extended:s}}function HTt(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 Do("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=Bc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Kj(o,!0,!0,a=>a===9||a===32),!vTt.test(o.toString()))throw Do("header name does not match the field-name token production");if(t[e.position]!==58)throw Do("expected :");switch(e.position++,Bc(a=>a===32||a===9,t,e),kTt(o)){case"content-disposition":{r=n=null;let a=!1;if(Bc(A=>Xj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw Do("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=OTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw Do("name attribute is required in content-disposition header");break}case"content-type":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),s=jTe(a);break}case"content-transfer-encoding":{let a=Bc(c=>c!==10&&c!==13,t,e);a=Kj(a,!1,!0,c=>c===9||c===32),i=jTe(a);break}default:Bc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw Do("expected CRLF");e.position+=2}}function Bc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Kj(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 qTt(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 Do(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function GTt(t){return t<=31||t===127}function YTt(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 Xj(t){return t<=127&&t!==32&&t!==9&&!GTt(t)&&!YTt(t)}KTe.exports={multipartFormDataParser:UTt,validateBoundary:_Tt}});var Nx=y((PFr,ZTe)=>{"use strict";function zTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}ZTe.exports={createDeferredPromise:zTt}});var bI=y((MFr,nRe)=>{"use strict";var eK=ht(),{ReadableStreamFrom:WTt,readableStreamClose:JTt,fullyReadBody:VTt,extractMimeType:jTt}=fa(),{FormData:$Te,setFormDataState:KTt}=QF(),{webidl:xA}=Xs(),Zj=Q("node:assert"),{isErrored:$j,isDisturbed:XTt}=Q("node:stream"),{isUint8Array:ZTt}=Q("node:util/types"),{serializeAMimeType:$Tt}=Ic(),{multipartFormDataParser:eRt}=XTe(),{createDeferredPromise:tRt}=Nx(),{parseJSONFromBytes:rRt}=Xd(),{utf8DecodeBytes:nRt}=EF(),{runtimeFeatures:sRt}=Zd(),iRt=sRt.has("crypto")?Q("node:crypto").randomInt:t=>Math.floor(Math.random()*t),wF=new TextEncoder;function oRt(){}var aRt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!XTt(e)&&!$j(e)&&e.cancel("Response object has been garbage collected").catch(oRt)});function tRe(t,e=!1){let r=null,n=null;xA.is.ReadableStream(t)?r=t:xA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),Zj(xA.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(xA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(xA.is.BufferSource(t))i=xA.util.getCopyOfBytesHeldByBufferSource(t);else if(xA.is.FormData(t)){let A=`----formdata-undici-0${`${iRt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
|
||||
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=wF.encode(u+`; name="${l(d(g))}"\r
|
||||
\r
|
||||
@@ -75,7 +75,7 @@ ${d(C)}\r
|
||||
Content-Type: ${C.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=wF.encode(`--${A}--\r
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(xA.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(eK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=xA.is.ReadableStream(t)?t:WTt(t)}return(typeof i=="string"||ZTt(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($j(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!$j(r)&&n.enqueue(typeof A=="string"?wF.encode(A):new Uint8Array(A));queueMicrotask(()=>JTt(n))})(),[{stream:r,source:i,length:o},a]}function cRt(t,e=!1){return xA.is.ReadableStream(t)&&(Zj(!eK.isDisturbed(t),"The body has already been consumed."),Zj(!t.locked,"The stream is locked.")),tRe(t,e)}function ARt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function uRt(t,e){return{blob(){return BI(this,n=>{let s=eRe(e(this));return s===null?s="":s&&(s=$Tt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return BI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return BI(this,nRt,t,e)},json(){return BI(this,rRt,t,e)},formData(){return BI(this,n=>{let s=eRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=eRt(n,s),o=new $Te;return KTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new $Te;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 BI(this,n=>new Uint8Array(n),t,e)}}}function lRt(t,e){Object.assign(t.prototype,uRt(t,e))}function BI(t,e,r,n){try{xA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),rRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=tRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(VTt(t.body,o,i),s.promise)}function rRe(t){let e=t.body;return e!=null&&(e.stream.locked||eK.isDisturbed(e.stream))}function eRe(t){let e=t.headersList,r=jTt(e);return r==="failure"?null:r}nRe.exports={extractBody:tRe,safelyExtractBody:cRt,cloneBody:ARt,mixinBody:lRt,streamRegistry:aRt,bodyUnusable:rRe}});var ERe=y((PFr,gRe)=>{"use strict";var $e=Q("node:assert"),He=ht(),{channels:sRe}=im(),tK=MV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:iRe,RequestAbortedError:hRe,InvalidArgumentError:dRt,HeadersTimeoutError:hRt,HeadersOverflowError:fRt,SocketError:Kg,InformationalError:QI,BodyTimeoutError:mRt,HTTPParserError:pRt,ResponseExceededMaxSizeError:gRt}=At(),{kUrl:fRe,kReset:ko,kClient:RF,kParser:Yr,kBlocking:Tx,kRunning:jn,kPending:cK,kSize:oRe,kWriting:cm,kQueue:SA,kNoRef:xx,kKeepAliveDefaultTimeout:ERt,kHostHeader:yRt,kPendingIdx:CRt,kRunningIdx:bc,kError:qi,kPipelining:SF,kSocket:Xg,kKeepAliveTimeoutValue:DF,kMaxHeadersSize:IRt,kKeepAliveMaxTimeout:BRt,kKeepAliveTimeoutThreshold:bRt,kHeadersTimeout:QRt,kBodyTimeout:wRt,kStrictContentLength:sK,kMaxRequests:aRe,kCounter:NRt,kMaxResponseSize:xRt,kOnError:cRe,kResume:eh,kHTTPContext:mRe,kClosed:iK}=br(),ma=nTe(),ARe=Buffer.alloc(0),NF=Buffer[Symbol.species],SRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),wI=Symbol("kIdleSocketValidationTimeout"),AK=Symbol("kSocketUsed"),rK;function TRt(){let t=process.env.JEST_WORKER_ID?Sj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(oTe())}catch{}return e||(e=new WebAssembly.Module(t||Sj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new NF(Zu.buffer,o,i))},wasm_on_message_begin:n=>($e(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new NF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new NF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new NF(Zu.buffer,o,i))},wasm_on_message_complete:n=>($e(wn.ptr===n),wn.onMessageComplete())}})}var nK=null,wn=null,Zu=null,xF=0,$u=null,RRt=0,Sx=1,NI=2|Sx,TF=4|Sx,oK=8|RRt,aK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[IRt],this.shouldKeepAliv
Line truncated
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(xA.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(eK.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=xA.is.ReadableStream(t)?t:WTt(t)}return(typeof i=="string"||ZTt(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($j(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!$j(r)&&n.enqueue(typeof A=="string"?wF.encode(A):new Uint8Array(A));queueMicrotask(()=>JTt(n))})(),[{stream:r,source:i,length:o},a]}function cRt(t,e=!1){return xA.is.ReadableStream(t)&&(Zj(!eK.isDisturbed(t),"The body has already been consumed."),Zj(!t.locked,"The stream is locked.")),tRe(t,e)}function ARt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function uRt(t,e){return{blob(){return BI(this,n=>{let s=eRe(e(this));return s===null?s="":s&&(s=$Tt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return BI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return BI(this,nRt,t,e)},json(){return BI(this,rRt,t,e)},formData(){return BI(this,n=>{let s=eRe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=eRt(n,s),o=new $Te;return KTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new $Te;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 BI(this,n=>new Uint8Array(n),t,e)}}}function lRt(t,e){Object.assign(t.prototype,uRt(t,e))}function BI(t,e,r,n){try{xA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),rRe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=tRt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(VTt(t.body,o,i),s.promise)}function rRe(t){let e=t.body;return e!=null&&(e.stream.locked||eK.isDisturbed(e.stream))}function eRe(t){let e=t.headersList,r=jTt(e);return r==="failure"?null:r}nRe.exports={extractBody:tRe,safelyExtractBody:cRt,cloneBody:ARt,mixinBody:lRt,streamRegistry:aRt,bodyUnusable:rRe}});var ERe=y((FFr,gRe)=>{"use strict";var $e=Q("node:assert"),He=ht(),{channels:sRe}=im(),tK=MV(),{RequestContentLengthMismatchError:jg,ResponseContentLengthMismatchError:iRe,RequestAbortedError:hRe,InvalidArgumentError:dRt,HeadersTimeoutError:hRt,HeadersOverflowError:fRt,SocketError:Kg,InformationalError:QI,BodyTimeoutError:mRt,HTTPParserError:pRt,ResponseExceededMaxSizeError:gRt}=At(),{kUrl:fRe,kReset:ko,kClient:RF,kParser:Yr,kBlocking:Tx,kRunning:jn,kPending:cK,kSize:oRe,kWriting:cm,kQueue:SA,kNoRef:xx,kKeepAliveDefaultTimeout:ERt,kHostHeader:yRt,kPendingIdx:CRt,kRunningIdx:bc,kError:qi,kPipelining:SF,kSocket:Xg,kKeepAliveTimeoutValue:DF,kMaxHeadersSize:IRt,kKeepAliveMaxTimeout:BRt,kKeepAliveTimeoutThreshold:bRt,kHeadersTimeout:QRt,kBodyTimeout:wRt,kStrictContentLength:sK,kMaxRequests:aRe,kCounter:NRt,kMaxResponseSize:xRt,kOnError:cRe,kResume:eh,kHTTPContext:mRe,kClosed:iK}=br(),ma=nTe(),ARe=Buffer.alloc(0),NF=Buffer[Symbol.species],SRt=He.removeAllListeners,Zg=Symbol("kIdleSocketValidation"),wI=Symbol("kIdleSocketValidationTimeout"),AK=Symbol("kSocketUsed"),rK;function TRt(){let t=process.env.JEST_WORKER_ID?Sj():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(oTe())}catch{}return e||(e=new WebAssembly.Module(t||Sj())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onStatus(new NF(Zu.buffer,o,i))},wasm_on_message_begin:n=>($e(wn.ptr===n),wn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderField(new NF(Zu.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onHeaderValue(new NF(Zu.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(wn.ptr===n),wn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(wn.ptr===n);let o=s-$u+Zu.byteOffset;return wn.onBody(new NF(Zu.buffer,o,i))},wasm_on_message_complete:n=>($e(wn.ptr===n),wn.onMessageComplete())}})}var nK=null,wn=null,Zu=null,xF=0,$u=null,RRt=0,Sx=1,NI=2|Sx,TF=4|Sx,oK=8|RRt,aK=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ma.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[IRt],this.shouldKeepAliv
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[yRt],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -101,13 +101,13 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[sK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===NI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[eh]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[cm]=!1,e&&($e(n[jn]<=1,"pipeline should only contain this request"),s(e))}};gRe.exports=DRt});var xRe=y((MFr,NRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:GRt}=Q("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:hK,RequestAbortedError:YRt,SocketError:Mx,InformationalError:Am,InvalidArgumentError:zRt,HeadersTimeoutError:WRt,BodyTimeoutError:JRt}=At(),{kUrl:Px,kReset:MF,kClient:pa,kRunning:Fx,kPending:VRt,kQueue:Dx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:jRt,kOnError:xI,kMaxConcurrentStreams:fK,kPingInterval:yRe,kHTTP2Session:th,kHTTP2InitialWindowSize:KRt,kHTTP2ConnectionWindowSize:XRt,kResume:tl,kSize:ZRt,kHTTPContext:pK,kClosed:mK,kBodyTimeout:$Rt,kHeadersTimeout:eDt,kEnableConnectProtocol:kx,kRemoteSettings:vx,kHTTP2Stream:vF,kHTTP2SessionState:gK}=br(),{channels:CRe}=im(),Qc=Symbol("open streams"),IRe,PF;try{PF=Q("node:http2")}catch{PF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tDt,HTTP2_HEADER_METHOD:BRe,HTTP2_HEADER_PATH:bRe,HTTP2_HEADER_SCHEME:uK,HTTP2_HEADER_CONTENT_LENGTH:rDt,HTTP2_HEADER_EXPECT:nDt,HTTP2_HEADER_STATUS:lK,HTTP2_HEADER_PROTOCOL:sDt,NGHTTP2_REFUSED_STREAM:iDt,NGHTTP2_CANCEL:oDt}}=PF;function dK(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 aDt(t,e){t[An]=e;let r=t[KRt],n=t[XRt],s=PF.connect(t[Px],{createConnection:()=>e,peerMaxConcurrentStreams:t[fK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[gK]={ping:{interval:t[yRe]===0?null:setInterval(lDt,t[yRe],s).unref()}},s[kx]=!1,s[vx]=!1,n&&Tt.addListener(s,"connect",ADt.bind(s,n)),Tt.addListener(s,"error",dDt),Tt.addListener(s,"frameError",hDt),Tt.addListener(s,"end",fDt),Tt.addListener(s,"goaway",mDt),Tt.addListener(s,"close",pDt),Tt.addListener(s,"remoteSettings",uDt),s.unref(),t[th]=s,e[th]=s,Tt.addListener(e,"error",EDt),Tt.addListener(e,"end",yDt),Tt.addListener(e,"close",gDt),e[mK]=!1,e.on("close",CDt),{version:"h2",defaultPipelining:1/0,write(i){return BDt(t,i)},resume(){cDt(t)},destroy(i,o){e[mK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Fx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1;return!1}}}function cDt(t){let e=t[An];e?.destroyed===!1&&(t[ZRt]===0?(e.unref(),t[th].unref()):(e.ref(),t[th].ref()))}function ADt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uDt(t){if(this[pa][fK]=t.maxConcurrentStreams??this[pa][fK],this[vx]===!0&&this[kx]===!0&&t.enableConnectProtocol===!1){let e=new Am("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][xI](e);return}this[kx]=t.enableConnectProtocol??this[kx],this[vx]=!0,this[pa][tl]()}function lDt(t){let e=t[gK];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[pa],o=this[pa];if(n!=null){let a=new Am(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[xI](a)}else i.emit("ping",s)}}function dDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][xI](t)}function hDt(t,e,r){if(r===0){let n=new Am(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][xI](n)}}function fDt(){let t=new Mx("other side closed",Tt.getSocketInfo(this[An]));this.destroy(t),Tt.destroy(this[An],t)}function Rx(t,e,r=!1){let n=t[Dx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function mDt(t){let e=this[ga]||new Mx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[pK]=null,this.close(),this[th]=null,Tt.destroy(this[An],e),r[el]<r[Dx].length){let n=r[Dx][r[el]];r[Dx][r[el]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Fx]===0),r.emit("disconnect",r[Px],[r],e),r.emit("connectionError",r[Px],[r],e),r[tl]()}function pDt(){let{[pa]:t,[gK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Mx("closed",Tt.getSocketInfo(r));if(t[An]=null,t[pK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[VRt]===0);let s=t[Dx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function gDt(){let t=this[ga]||new Mx("closed",Tt.getSocketInfo(this)),e=this[th][pa];e[An]=null,e[pK]=null,this[th]!==null&&this[
Line truncated
|
||||
`;CRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[nDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[lK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),dK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Rx(t,e),t[tl]()):(C(new Am("HTTP/2: stream half-closed (remote)")),Rx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new Am("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new Am(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new JRt(`HTTP/2: "body timeout after ${n}"`):new WRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?QRe(C,m,null,t,e,t[An],B,I):Tt.isBuffer(h)?QRe(C,m,h,t,e,t[An],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?wRe(C,m,h.stream(),t,e,t[An],B,I):QDt(C,m,h,t,e,t[An],B,I):Tt.isStream(h)?bDt(C,t[An],I,m,h,t,e,B):Tt.isIterable(h)?wRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function QRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[MF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function bDt(t,e,r,n,s,i,o,a){wc(a!==0||i[Fx]===0,"stream body cannot be pipelined");let c=GRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[MF]=!0),i[tl]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function QDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new hK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(c){t(c)}}async function wRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Fx]===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)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}NRe.exports=aDt});var hm=y((FFr,MRe)=>{"use strict";var rh=Q("node:assert"),DRe=Q("node:net"),Lx=Q("node:http"),eE=ht(),{ClientStats:wDt}=uj(),{channels:SI}=im(),NDt=z1e(),xDt=Yg(),{InvalidArgumentError:zr,InformationalError:SDt,ClientDestroyedError:TDt}=At(),RDt=zg(),{kUrl:rl,kServerName:dm,kClient:DDt,kBusy:yK,kConnect:kDt,kResuming:tE,kRunning:Hx,kPending:qx,kSize:_x,kQueue:TA,kConnected:vDt,kConnecting:TI,kNeedDrain:lm,kKeepAliveDefaultTimeout:SRe,kHostHeader:PDt,kPendingIdx:RA,kRunningIdx:sh,kError:MDt,kPipelining:FF,kKeepAliveTimeoutValue:FDt,kMaxHeadersSize:LDt,kKeepAliveMaxTimeout:_Dt,kKeepAliveTimeoutThreshold:UDt,kHeadersTimeout:ODt,kBodyTimeout:HDt,kStrictContentLength:qDt,kConnector:Ux,kMaxRequests:CK,kCounter:GDt,kClose:YDt,kDestroy:zDt,kDispatch:WDt,kLocalAddress:Ox,kMaxResponseSize:JDt,kOnError:VDt,kHTTPContext:On,kMaxConcurrentStreams:jDt,kHTTP2InitialWindowSize:KDt,kHTTP2ConnectionWindowSize:XDt,kResume:nh,kPingInterval:ZDt}=br(),$Dt=ERe(),e2t=xRe(),um=Symbol("kClosedResolve"),t2t=Lx&&Lx.maxHeaderSize&&Number.isInteger(Lx.maxHeaderSize)&&Lx.maxHeaderSize>0?()=>Lx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},TRe=()=>{};function kRe(t){return t[FF]??t[On]?.defaultPipelining??1}var IK=class extends xDt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[HDt]=a??3e5,this[ODt]=n??3e5,this[qDt]=g??!0,this[CK]=B,this[um]=null,this[JDt]=J>-1?J:-1,this[On]=null,this[jDt]=k??100,this[KDt]=ne??262144,this[XDt]=le??524288,this[ZDt]=fe??6e4,this[TA]=[],this[sh]=0,this[RA]=0,this[nh]=ze=>BK(this,ze),this[VDt]=ze=>vRe(this,ze)}get pipelining(){return this[FF]}set pipelining(e){this[FF]=e,this[nh](!0)}get stats(){return new wDt(this)}get[qx](){return this[TA].length-this[RA]}get[Hx](){return this[RA]-this[sh]}get[_x](){return this[TA].length-this[sh]}get[vDt](){return!!this[On]&&!this[TI]&&!this[On].destroyed}get[yK](){return!!(this[On]?.busy(null)||this[_x]>=(kRe(this)||1)||this[qx]>0)}[kDt](e){PRe(this),this.once("connect",e)}[WDt](e,r){let n=new NDt(this[rl].origin,e,r);return this[TA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>BK(this))):this[nh](!0)),this[tE]&&this[lm]!==2&&this[yK]&&(this[lm]=2),this[lm]<2}[YDt](){return new Promise(e=>{this[_x]?this[um]=e:e(null)})}[zDt](e){return new Promise(r=>{let n=this[TA].splice(this[RA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[um]&&(this[um](),this[um]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[nh]()})}};function vRe(t,e){if(t[Hx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){rh(t[RA]===t[sh]);let r=t[TA].splice(t[sh]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}rh(t[_x]===0)}}function PRe(t){rh(!t[TI]),rh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");rh(i!==-1);let o=r.substring(1,i);rh(DRe.isIPv6(o)),r=o}t[TI]=!0,SI.beforeConnect.hasSubscribers&&SI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux]});try{t[Ux]({host:e,hostname:r,protocol:n,port:s,servername:t[dm],localAddress:t[Ox]},(i,o)=>{if(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}if(t.destroyed){eE.destroy(o.on("error",TRe),new TDt),t[nh]();return}rh(o);try{t[On]=o.alpnProtocol==="h2"?e2t(t,o):$Dt(t,o)}catch(a){o.destroy().on("error",TRe),EK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}t[TI]=!1,o[GDt]=0,o[CK]=t[CK],o[DDt]=t,o[MDt]=null,SI.connected.hasSubscribers&&SI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],socket:o}),t.emit("connect",t[rl],[t]),t[nh]()})}catch(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]()}}function EK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TI]=!1,SI.connectError.hasSubscribers&&SI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(rh(t[Hx]===0);t[qx]>0&&t[TA][t[RA]].servername===t[dm];){let o=t[TA][t[RA]++];eE.errorRequest(t,o,e)}else vRe(t,e);t.emit("connectionError",t[rl],[t],e)}}function RRe(t){t[lm]=0,t.emit("drain",t[rl],[t])}function BK(t,e){t[tE]!==2&&(t[tE]=2,r2t(t,e),t[tE]=0,t[sh]>256&&(t[TA].splice(0,t[sh]),t[RA]-=t[sh],t[sh]=0))}function r2t(t,e){for(;;){if(t.destroyed){rh(t[qx]===0);return}if(t[um]&&!t[_x]){t[um](),t[um]=null;return}if(t[On]&&t[On].resume(),t[yK])t[lm]=2;else if(t[lm]===2){e?(t[lm]=1,queueMicrotask(()=>RRe(t))):RRe(t);continue}if(t[qx]===0||t[Hx]>=(kRe(t)||1))return;let r=t[TA][t[RA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[dm]!==r.servername){if(t[Hx]>0)return;t[dm]=r.servername,t[On]?.destroy(new SDt("servername changed"),()=>{t[On]=null,BK(t)})}if(t[TI])return;if(!t[On]){PRe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[RA]++:t[TA].splice(t[RA],1)}}MRe.exports=IK});var bK=y((_Fr,FRe)=>{"use strict";var LF=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)}};FRe.exports=class{constructor(){this.head=this.tail=new LF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LF),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 _F=y((UFr,zRe)=>{"use strict";var{PoolStats:n2t}=uj(),s2t=Yg(),i2t=bK(),{kConnected:QK,kSize:LRe,kRunning:_Re,kPending:URe,kQueued:Gx,kBusy:o2t,kFree:a2t,kUrl:c2t,kClose:A2t,kDestroy:u2t,kDispatch:l2t}=br(),Ps=Symbol("clients"),Gi=Symbol("needDrain"),Yx=Symbol("queue"),wK=Symbol("closed resolve"),NK=Symbol("onDrain"),ORe=Symbol("onConnect"),HRe=Symbol("onDisconnect"),qRe=Symbol("onConnectionError"),xK=Symbol("get dispatcher"),GRe=Symbol("add client"),YRe=Symbol("remove client"),SK=class extends s2t{[Yx]=n
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[sK])throw new jg;process.emitWarning(new jg)}e[Yr].timeout&&e[Yr].timeoutType===NI&&e[Yr].timeout.refresh&&e[Yr].timeout.refresh(),n[eh]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[cm]=!1,e&&($e(n[jn]<=1,"pipeline should only contain this request"),s(e))}};gRe.exports=DRt});var xRe=y((LFr,NRe)=>{"use strict";var wc=Q("node:assert"),{pipeline:GRt}=Q("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:hK,RequestAbortedError:YRt,SocketError:Mx,InformationalError:Am,InvalidArgumentError:zRt,HeadersTimeoutError:WRt,BodyTimeoutError:JRt}=At(),{kUrl:Px,kReset:MF,kClient:pa,kRunning:Fx,kPending:VRt,kQueue:Dx,kPendingIdx:$g,kRunningIdx:el,kError:ga,kSocket:An,kStrictContentLength:jRt,kOnError:xI,kMaxConcurrentStreams:fK,kPingInterval:yRe,kHTTP2Session:th,kHTTP2InitialWindowSize:KRt,kHTTP2ConnectionWindowSize:XRt,kResume:tl,kSize:ZRt,kHTTPContext:pK,kClosed:mK,kBodyTimeout:$Rt,kHeadersTimeout:eDt,kEnableConnectProtocol:kx,kRemoteSettings:vx,kHTTP2Stream:vF,kHTTP2SessionState:gK}=br(),{channels:CRe}=im(),Qc=Symbol("open streams"),IRe,PF;try{PF=Q("node:http2")}catch{PF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:tDt,HTTP2_HEADER_METHOD:BRe,HTTP2_HEADER_PATH:bRe,HTTP2_HEADER_SCHEME:uK,HTTP2_HEADER_CONTENT_LENGTH:rDt,HTTP2_HEADER_EXPECT:nDt,HTTP2_HEADER_STATUS:lK,HTTP2_HEADER_PROTOCOL:sDt,NGHTTP2_REFUSED_STREAM:iDt,NGHTTP2_CANCEL:oDt}}=PF;function dK(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 aDt(t,e){t[An]=e;let r=t[KRt],n=t[XRt],s=PF.connect(t[Px],{createConnection:()=>e,peerMaxConcurrentStreams:t[fK],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[An]=e,s[Qc]=0,s[pa]=t,s[An]=e,s[gK]={ping:{interval:t[yRe]===0?null:setInterval(lDt,t[yRe],s).unref()}},s[kx]=!1,s[vx]=!1,n&&Tt.addListener(s,"connect",ADt.bind(s,n)),Tt.addListener(s,"error",dDt),Tt.addListener(s,"frameError",hDt),Tt.addListener(s,"end",fDt),Tt.addListener(s,"goaway",mDt),Tt.addListener(s,"close",pDt),Tt.addListener(s,"remoteSettings",uDt),s.unref(),t[th]=s,e[th]=s,Tt.addListener(e,"error",EDt),Tt.addListener(e,"end",yDt),Tt.addListener(e,"close",gDt),e[mK]=!1,e.on("close",CDt),{version:"h2",defaultPipelining:1/0,write(i){return BDt(t,i)},resume(){cDt(t)},destroy(i,o){e[mK]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Fx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[vx]===!1;return!1}}}function cDt(t){let e=t[An];e?.destroyed===!1&&(t[ZRt]===0?(e.unref(),t[th].unref()):(e.ref(),t[th].ref()))}function ADt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function uDt(t){if(this[pa][fK]=t.maxConcurrentStreams??this[pa][fK],this[vx]===!0&&this[kx]===!0&&t.enableConnectProtocol===!1){let e=new Am("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[An][ga]=e,this[pa][xI](e);return}this[kx]=t.enableConnectProtocol??this[kx],this[vx]=!0,this[pa][tl]()}function lDt(t){let e=t[gK];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[pa],o=this[pa];if(n!=null){let a=new Am(`HTTP/2: "PING" errored - type ${n.message}`);o[ga]=a,i[xI](a)}else i.emit("ping",s)}}function dDt(t){wc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[An][ga]=t,this[pa][xI](t)}function hDt(t,e,r){if(r===0){let n=new Am(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[An][ga]=n,this[pa][xI](n)}}function fDt(){let t=new Mx("other side closed",Tt.getSocketInfo(this[An]));this.destroy(t),Tt.destroy(this[An],t)}function Rx(t,e,r=!1){let n=t[Dx],s=t[el];if(s<t[$g]&&n[s]===e){n[s]=null,t[el]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[$g]||(n.splice(i,1),t[$g]--,r&&t[$g]<t[el]&&(t[$g]=t[el]))}function mDt(t){let e=this[ga]||new Mx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[An])),r=this[pa];if(r[An]=null,r[pK]=null,this.close(),this[th]=null,Tt.destroy(this[An],e),r[el]<r[Dx].length){let n=r[Dx][r[el]];r[Dx][r[el]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[$g]=r[el]}wc(r[Fx]===0),r.emit("disconnect",r[Px],[r],e),r.emit("connectionError",r[Px],[r],e),r[tl]()}function pDt(){let{[pa]:t,[gK]:e}=this,{[An]:r}=t,n=this[An][ga]||this[ga]||new Mx("closed",Tt.getSocketInfo(r));if(t[An]=null,t[pK]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){wc(t[VRt]===0);let s=t[Dx].splice(t[el]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function gDt(){let t=this[ga]||new Mx("closed",Tt.getSocketInfo(this)),e=this[th][pa];e[An]=null,e[pK]=null,this[th]!==null&&this[
Line truncated
|
||||
`;CRe.sendHeaders.publish({request:e,headers:H,socket:s[An]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[nDt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[vF]=!0,F()),++s[Qc],m.setTimeout(r);let J=!1;return m.once("response",H=>{let{[lK]:k,...j}=H;if(e.onResponseStarted(),J=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),dK(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),J?(!e.aborted&&!e.completed&&e.onComplete({}),Rx(t,e),t[tl]()):(C(new Am("HTTP/2: stream half-closed (remote)")),Rx(t,e,!0),t[tl]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),!e.aborted&&!e.completed&&C(new Am("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new Am(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=J?new JRt(`HTTP/2: "body timeout after ${n}"`):new WRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Qc]-=1,s[Qc]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?QRe(C,m,null,t,e,t[An],B,I):Tt.isBuffer(h)?QRe(C,m,h,t,e,t[An],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?wRe(C,m,h.stream(),t,e,t[An],B,I):QDt(C,m,h,t,e,t[An],B,I):Tt.isStream(h)?bDt(C,t[An],I,m,h,t,e,B):Tt.isIterable(h)?wRe(C,m,h,t,e,t[An],B,I):wc(!1)}}function QRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(wc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[MF]=!0),s.onRequestSent(),n[tl]()}catch(c){t(c)}}function bDt(t,e,r,n,s,i,o,a){wc(a!==0||i[Fx]===0,"stream body cannot be pipelined");let c=GRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[MF]=!0),i[tl]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function QDt(t,e,r,n,s,i,o,a){wc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new hK;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(c){t(c)}}async function wRe(t,e,r,n,s,i,o,a){wc(o!==0||n[Fx]===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)=>{wc(c===null),i[ga]?d(i[ga]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[ga])throw i[ga];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[MF]=!0),n[tl]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}NRe.exports=aDt});var hm=y((_Fr,MRe)=>{"use strict";var rh=Q("node:assert"),DRe=Q("node:net"),Lx=Q("node:http"),eE=ht(),{ClientStats:wDt}=uj(),{channels:SI}=im(),NDt=z1e(),xDt=Yg(),{InvalidArgumentError:zr,InformationalError:SDt,ClientDestroyedError:TDt}=At(),RDt=zg(),{kUrl:rl,kServerName:dm,kClient:DDt,kBusy:yK,kConnect:kDt,kResuming:tE,kRunning:Hx,kPending:qx,kSize:_x,kQueue:TA,kConnected:vDt,kConnecting:TI,kNeedDrain:lm,kKeepAliveDefaultTimeout:SRe,kHostHeader:PDt,kPendingIdx:RA,kRunningIdx:sh,kError:MDt,kPipelining:FF,kKeepAliveTimeoutValue:FDt,kMaxHeadersSize:LDt,kKeepAliveMaxTimeout:_Dt,kKeepAliveTimeoutThreshold:UDt,kHeadersTimeout:ODt,kBodyTimeout:HDt,kStrictContentLength:qDt,kConnector:Ux,kMaxRequests:CK,kCounter:GDt,kClose:YDt,kDestroy:zDt,kDispatch:WDt,kLocalAddress:Ox,kMaxResponseSize:JDt,kOnError:VDt,kHTTPContext:On,kMaxConcurrentStreams:jDt,kHTTP2InitialWindowSize:KDt,kHTTP2ConnectionWindowSize:XDt,kResume:nh,kPingInterval:ZDt}=br(),$Dt=ERe(),e2t=xRe(),um=Symbol("kClosedResolve"),t2t=Lx&&Lx.maxHeaderSize&&Number.isInteger(Lx.maxHeaderSize)&&Lx.maxHeaderSize>0?()=>Lx.maxHeaderSize:()=>{throw new zr("http module not available or http.maxHeaderSize invalid")},TRe=()=>{};function kRe(t){return t[FF]??t[On]?.defaultPipelining??1}var IK=class extends xDt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:J,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:ne,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new zr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new zr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new zr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[HDt]=a??3e5,this[ODt]=n??3e5,this[qDt]=g??!0,this[CK]=B,this[um]=null,this[JDt]=J>-1?J:-1,this[On]=null,this[jDt]=k??100,this[KDt]=ne??262144,this[XDt]=le??524288,this[ZDt]=fe??6e4,this[TA]=[],this[sh]=0,this[RA]=0,this[nh]=ze=>BK(this,ze),this[VDt]=ze=>vRe(this,ze)}get pipelining(){return this[FF]}set pipelining(e){this[FF]=e,this[nh](!0)}get stats(){return new wDt(this)}get[qx](){return this[TA].length-this[RA]}get[Hx](){return this[RA]-this[sh]}get[_x](){return this[TA].length-this[sh]}get[vDt](){return!!this[On]&&!this[TI]&&!this[On].destroyed}get[yK](){return!!(this[On]?.busy(null)||this[_x]>=(kRe(this)||1)||this[qx]>0)}[kDt](e){PRe(this),this.once("connect",e)}[WDt](e,r){let n=new NDt(this[rl].origin,e,r);return this[TA].push(n),this[tE]||(eE.bodyLength(n.body)==null&&eE.isIterable(n.body)?(this[tE]=1,queueMicrotask(()=>BK(this))):this[nh](!0)),this[tE]&&this[lm]!==2&&this[yK]&&(this[lm]=2),this[lm]<2}[YDt](){return new Promise(e=>{this[_x]?this[um]=e:e(null)})}[zDt](e){return new Promise(r=>{let n=this[TA].splice(this[RA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&eE.errorRequest(this,o,e)}let s=()=>{this[um]&&(this[um](),this[um]=null),r(null)};this[On]?(this[On].destroy(e,s),this[On]=null):queueMicrotask(s),this[nh]()})}};function vRe(t,e){if(t[Hx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){rh(t[RA]===t[sh]);let r=t[TA].splice(t[sh]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&eE.errorRequest(t,s,e)}rh(t[_x]===0)}}function PRe(t){rh(!t[TI]),rh(!t[On]);let{host:e,hostname:r,protocol:n,port:s}=t[rl];if(r[0]==="["){let i=r.indexOf("]");rh(i!==-1);let o=r.substring(1,i);rh(DRe.isIPv6(o)),r=o}t[TI]=!0,SI.beforeConnect.hasSubscribers&&SI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux]});try{t[Ux]({host:e,hostname:r,protocol:n,port:s,servername:t[dm],localAddress:t[Ox]},(i,o)=>{if(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}if(t.destroyed){eE.destroy(o.on("error",TRe),new TDt),t[nh]();return}rh(o);try{t[On]=o.alpnProtocol==="h2"?e2t(t,o):$Dt(t,o)}catch(a){o.destroy().on("error",TRe),EK(t,a,{host:e,hostname:r,protocol:n,port:s}),t[nh]();return}t[TI]=!1,o[GDt]=0,o[CK]=t[CK],o[DDt]=t,o[MDt]=null,SI.connected.hasSubscribers&&SI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],socket:o}),t.emit("connect",t[rl],[t]),t[nh]()})}catch(i){EK(t,i,{host:e,hostname:r,protocol:n,port:s}),t[nh]()}}function EK(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[TI]=!1,SI.connectError.hasSubscribers&&SI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[On]?.version,servername:t[dm],localAddress:t[Ox]},connector:t[Ux],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(rh(t[Hx]===0);t[qx]>0&&t[TA][t[RA]].servername===t[dm];){let o=t[TA][t[RA]++];eE.errorRequest(t,o,e)}else vRe(t,e);t.emit("connectionError",t[rl],[t],e)}}function RRe(t){t[lm]=0,t.emit("drain",t[rl],[t])}function BK(t,e){t[tE]!==2&&(t[tE]=2,r2t(t,e),t[tE]=0,t[sh]>256&&(t[TA].splice(0,t[sh]),t[RA]-=t[sh],t[sh]=0))}function r2t(t,e){for(;;){if(t.destroyed){rh(t[qx]===0);return}if(t[um]&&!t[_x]){t[um](),t[um]=null;return}if(t[On]&&t[On].resume(),t[yK])t[lm]=2;else if(t[lm]===2){e?(t[lm]=1,queueMicrotask(()=>RRe(t))):RRe(t);continue}if(t[qx]===0||t[Hx]>=(kRe(t)||1))return;let r=t[TA][t[RA]];if(r===null)return;if(t[rl].protocol==="https:"&&t[dm]!==r.servername){if(t[Hx]>0)return;t[dm]=r.servername,t[On]?.destroy(new SDt("servername changed"),()=>{t[On]=null,BK(t)})}if(t[TI])return;if(!t[On]){PRe(t);return}if(t[On].destroyed||t[On].busy(r))return;!r.aborted&&t[On].write(r)?t[RA]++:t[TA].splice(t[RA],1)}}MRe.exports=IK});var bK=y((OFr,FRe)=>{"use strict";var LF=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)}};FRe.exports=class{constructor(){this.head=this.tail=new LF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new LF),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 _F=y((HFr,zRe)=>{"use strict";var{PoolStats:n2t}=uj(),s2t=Yg(),i2t=bK(),{kConnected:QK,kSize:LRe,kRunning:_Re,kPending:URe,kQueued:Gx,kBusy:o2t,kFree:a2t,kUrl:c2t,kClose:A2t,kDestroy:u2t,kDispatch:l2t}=br(),Ps=Symbol("clients"),Gi=Symbol("needDrain"),Yx=Symbol("queue"),wK=Symbol("closed resolve"),NK=Symbol("onDrain"),ORe=Symbol("onConnect"),HRe=Symbol("onDisconnect"),qRe=Symbol("onConnectionError"),xK=Symbol("get dispatcher"),GRe=Symbol("add client"),YRe=Symbol("remove client"),SK=class extends s2t{[Yx]=n
Line truncated
|
||||
|
||||
${e.format(r)}`.trim():`${r.length} interceptors are pending:
|
||||
|
||||
${e.format(r)}`.trim())}};pke.exports=WX});var VX=y((pLr,Cke)=>{"use strict";var{InvalidArgumentError:aPt}=At(),{runtimeFeatures:cPt}=Zd();function APt(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 gke=cPt.has("crypto")?Q("node:crypto"):null,uPt=gke?.hash?t=>gke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function yke(t){return Array.isArray(t)&&(t.length&1)===0}function lPt(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 dPt(t){let e={};if(!t)return e;if(yke(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 Eke=["record","playback","update"];function hPt(t){if(!Eke.includes(t))throw new aPt(`Invalid snapshot mode: ${t}. Must be one of: ${Eke.join(", ")}`)}Cke.exports={createHeaderFilters:APt,hashId:uPt,isUndiciHeaders:yke,normalizeHeaders:dPt,isUrlExcludedFactory:lPt,validateSnapshotMode:hPt}});var Tke=y((gLr,Ske)=>{"use strict";var{writeFile:fPt,readFile:mPt,mkdir:pPt}=Q("node:fs/promises"),{dirname:gPt,resolve:Ike}=Q("node:path"),{setTimeout:EPt,clearTimeout:Bke}=Q("node:timers"),{InvalidArgumentError:bke,UndiciError:yPt}=At(),{hashId:CPt,isUrlExcludedFactory:IPt,normalizeHeaders:Qke,createHeaderFilters:wke}=VX();function nS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Qke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Nke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Nke(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 xke(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 sS(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 CPt(r)}var jX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=wke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=IPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=nS(e,this.#a,this.matchOptions),s=sS(n),i=Qke(r.headers),o={statusCode:r.statusCode,headers:xke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nS(e,this.#a,this.matchOptions),n=sS(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 bke("Snapshot path is required");try{let n=await mPt(Ike(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 yPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new bke("Snapshot path is required");let n=Ike(r);await pPt(gPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fPt(n,JSON.s
Line truncated
|
||||
${e.format(r)}`.trim())}};pke.exports=WX});var VX=y((ELr,Cke)=>{"use strict";var{InvalidArgumentError:aPt}=At(),{runtimeFeatures:cPt}=Zd();function APt(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 gke=cPt.has("crypto")?Q("node:crypto"):null,uPt=gke?.hash?t=>gke.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function yke(t){return Array.isArray(t)&&(t.length&1)===0}function lPt(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 dPt(t){let e={};if(!t)return e;if(yke(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 Eke=["record","playback","update"];function hPt(t){if(!Eke.includes(t))throw new aPt(`Invalid snapshot mode: ${t}. Must be one of: ${Eke.join(", ")}`)}Cke.exports={createHeaderFilters:APt,hashId:uPt,isUndiciHeaders:yke,normalizeHeaders:dPt,isUrlExcludedFactory:lPt,validateSnapshotMode:hPt}});var Tke=y((yLr,Ske)=>{"use strict";var{writeFile:fPt,readFile:mPt,mkdir:pPt}=Q("node:fs/promises"),{dirname:gPt,resolve:Ike}=Q("node:path"),{setTimeout:EPt,clearTimeout:Bke}=Q("node:timers"),{InvalidArgumentError:bke,UndiciError:yPt}=At(),{hashId:CPt,isUrlExcludedFactory:IPt,normalizeHeaders:Qke,createHeaderFilters:wke}=VX();function nS(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||Qke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:Nke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function Nke(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 xke(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 sS(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 CPt(r)}var jX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=wke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=IPt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=nS(e,this.#a,this.matchOptions),s=sS(n),i=Qke(r.headers),o={statusCode:r.statusCode,headers:xke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=nS(e,this.#a,this.matchOptions),n=sS(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 bke("Snapshot path is required");try{let n=await mPt(Ike(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 yPt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new bke("Snapshot path is required");let n=Ike(r);await pPt(gPt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await fPt(n,JSON.s
Line truncated
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
PRAGMA temp_store = memory;
|
||||
@@ -190,40 +190,40 @@ ${e.format(r)}`.trim())}};pke.exports=WX});var VX=y((pLr,Cke)=>{"use strict";var
|
||||
ORDER BY cachedAt ASC
|
||||
LIMIT ?
|
||||
)
|
||||
`)}close(){this.#n.close()}get(e){QZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){QZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){QZ(e),wFt(r);let n=0,s=[],i=this;return new QFt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!NFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((ULr,$ve)=>{"use strict";var{kConstruct:xFt}=br(),{kEnumerableProperty:zI}=ht(),{iteratorMixin:SFt,isValidHeaderName:AS,isValidHeaderValue:Vve}=fa(),{webidl:jt}=Xs(),NZ=Q("node:assert"),pL=Q("node:util");function Jve(t){return t===10||t===13||t===9||t===32}function jve(t){let e=0,r=t.length;for(;r>e&&Jve(t.charCodeAt(r-1));)--r;for(;r>e&&Jve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Kve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});xZ(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)xZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function xZ(t,e,r){if(r=jve(r),AS(e)){if(!Vve(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Zve(t)==="immutable")throw new TypeError("immutable");return EL(t).append(e,r,!1)}function TFt(t){let e=EL(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 Xve(t,e){return t[0]<e[0]?-1:1}var gL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if(t_(e,s,KOt)){XOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(t_(e,s,jOt)){ZOt(e,i)&&(r.id=e.toString("utf8",i));return}if(t_(e,s,VOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&GOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&YOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===nB[0]||(this.checkBOM=!1),!0):n===void 0?e===nB[0]&&r===nB[1]?!0:(this.checkBOM=!1,!1):(e===nB[0]&&r===nB[1]&&n===nB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};sFe.exports={EventSourceStream:h$}});var hFe=y((u_r,dFe)=>{"use strict";var{pipeline:$Ot}=Q("node:stream"),{fetching:e3t}=fS(),{makeRequest:t3t}=JI(),{webidl:zi}=Xs(),{EventSourceStream:r3t}=iFe(),{parseMIMEType:n3t}=Ic(),{createFastMessageEvent:s3t}=GL(),{isNetworkError:oFe}=lS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:aFe}=fa(),cFe=!1,AFe=3e3,IS=0,uFe=1,BS=2,i3t="anonymous",o3t="use-credentials",sB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=IS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),cFe||(cFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=aFe,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=i3t;r.withCredentials===!0&&(o=o3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=aFe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=t3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===BS)return;this.#r=IS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!oFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(oFe(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?n3t(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=uFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new r3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(s3t(c.type,c.options))}});$Ot(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=e3t(e)}#A(){this.#r!==BS&&(this.#r=IS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`)}close(){this.#n.close()}get(e){QZ(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){QZ(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){QZ(e),wFt(r);let n=0,s=[],i=this;return new QFt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!NFt(s[l],u[l])){A=!1;break}}if(A)return c}}};function NFt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var IE=y((HLr,$ve)=>{"use strict";var{kConstruct:xFt}=br(),{kEnumerableProperty:zI}=ht(),{iteratorMixin:SFt,isValidHeaderName:AS,isValidHeaderValue:Vve}=fa(),{webidl:jt}=Xs(),NZ=Q("node:assert"),pL=Q("node:util");function Jve(t){return t===10||t===13||t===9||t===32}function jve(t){let e=0,r=t.length;for(;r>e&&Jve(t.charCodeAt(r-1));)--r;for(;r>e&&Jve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function Kve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw jt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});xZ(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)xZ(t,r[n],e[r[n]])}else throw jt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function xZ(t,e,r){if(r=jve(r),AS(e)){if(!Vve(r))throw jt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw jt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Zve(t)==="immutable")throw new TypeError("immutable");return EL(t).append(e,r,!1)}function TFt(t){let e=EL(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 Xve(t,e){return t[0]<e[0]?-1:1}var gL=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if(t_(e,s,KOt)){XOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(t_(e,s,jOt)){ZOt(e,i)&&(r.id=e.toString("utf8",i));return}if(t_(e,s,VOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&GOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&YOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===nB[0]||(this.checkBOM=!1),!0):n===void 0?e===nB[0]&&r===nB[1]?!0:(this.checkBOM=!1,!1):(e===nB[0]&&r===nB[1]&&n===nB[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};sFe.exports={EventSourceStream:h$}});var hFe=y((d_r,dFe)=>{"use strict";var{pipeline:$Ot}=Q("node:stream"),{fetching:e3t}=fS(),{makeRequest:t3t}=JI(),{webidl:zi}=Xs(),{EventSourceStream:r3t}=iFe(),{parseMIMEType:n3t}=Ic(),{createFastMessageEvent:s3t}=GL(),{isNetworkError:oFe}=lS(),{kEnumerableProperty:TE}=ht(),{environmentSettingsObject:aFe}=fa(),cFe=!1,AFe=3e3,IS=0,uFe=1,BS=2,i3t="anonymous",o3t="use-credentials",sB=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=IS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),zi.util.markAsUncloneable(this);let n="EventSource constructor";zi.argumentLengthCheck(arguments,1,n),cFe||(cFe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=zi.converters.USVString(e),r=zi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=aFe,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=i3t;r.withCredentials===!0&&(o=o3t,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=aFe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=t3t(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===BS)return;this.#r=IS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!oFe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(oFe(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?n3t(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=uFe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new r3t({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(s3t(c.type,c.options))}});$Ot(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=e3t(e)}#A(){this.#r!==BS&&(this.#r=IS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`).slice(1).join(`
|
||||
`);t.stack=r?`${r}
|
||||
${i}`:s.stack}Qe.exports.fetch=function(e,r=void 0){return R3t(e,r).catch(n=>{throw fFe?EFe(n,fFe):n&&typeof n=="object"&&Error.captureStackTrace(n,Qe.exports.fetch),n})};Qe.exports.Headers=IE().Headers;Qe.exports.Response=lS().Response;Qe.exports.Request=JI().Request;Qe.exports.FormData=QF().FormData;var{setGlobalOrigin:D3t,getGlobalOrigin:k3t}=Dj();Qe.exports.setGlobalOrigin=D3t;Qe.exports.getGlobalOrigin=k3t;var{CacheStorage:v3t}=rMe(),{kConstruct:P3t}=br();Qe.exports.caches=new v3t(P3t);var{deleteCookie:M3t,getCookies:F3t,getSetCookies:L3t,setCookie:_3t,parseCookie:U3t}=fMe();Qe.exports.deleteCookie=M3t;Qe.exports.getCookies=F3t;Qe.exports.getSetCookies=L3t;Qe.exports.setCookie=_3t;Qe.exports.parseCookie=U3t;var{parseMIMEType:O3t,serializeAMimeType:H3t}=Ic();Qe.exports.parseMIMEType=O3t;Qe.exports.serializeAMimeType=H3t;var{CloseEvent:q3t,ErrorEvent:G3t,MessageEvent:Y3t}=GL(),{WebSocket:z3t,ping:W3t}=JMe();Qe.exports.WebSocket=z3t;Qe.exports.CloseEvent=q3t;Qe.exports.ErrorEvent=G3t;Qe.exports.MessageEvent=Y3t;Qe.exports.ping=W3t;Qe.exports.WebSocketStream=tFe().WebSocketStream;Qe.exports.WebSocketError=c$().WebSocketError;Qe.exports.request=bS(iB.request);Qe.exports.stream=bS(iB.stream);Qe.exports.pipeline=bS(iB.pipeline);Qe.exports.connect=bS(iB.connect);Qe.exports.upgrade=bS(iB.upgrade);Qe.exports.MockClient=E3t;Qe.exports.MockCallHistory=y3t;Qe.exports.MockCallHistoryLog=C3t;Qe.exports.MockPool=B3t;Qe.exports.MockAgent=I3t;Qe.exports.SnapshotAgent=b3t;Qe.exports.mockErrors=Q3t;var{EventSource:J3t}=hFe();Qe.exports.EventSource=J3t;function V3t(){globalThis.fetch=Qe.exports.fetch,globalThis.Headers=Qe.exports.Headers,globalThis.Response=Qe.exports.Response,globalThis.Request=Qe.exports.Request,globalThis.FormData=Qe.exports.FormData,globalThis.WebSocket=Qe.exports.WebSocket,globalThis.CloseEvent=Qe.exports.CloseEvent,globalThis.ErrorEvent=Qe.exports.ErrorEvent,globalThis.MessageEvent=Qe.exports.MessageEvent,globalThis.EventSource=Qe.exports.EventSource}Qe.exports.install=V3t});var QS=y(Nm=>{"use strict";Nm.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");Nm.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");Nm.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";Nm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Nm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Nm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Nm.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 IFe=y((f_r,CFe)=>{"use strict";var{asciiLowercase:s_,solelyContainsHTTPTokenCodePoints:j3t,soleyContainsHTTPQuotedStringTokenCodePoints:K3t}=QS();CFe.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),!j3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!K3t(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 QFe=y((m_r,bFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:X3t,removeTrailingHTTPWhitespace:BFe,isHTTPWhitespaceChar:Z3t,solelyContainsHTTPTokenCodePoints:f$,soleyContainsHTTPQuotedStringTokenCodePoints:$3t,asciiLowercase:m$,collectAnHTTPQuotedString:e4t}=QS();bFe.exports=t=>{t=X3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!f$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=BFe(n),n.length===0||!f$(n))return null;let s={type:m$(r),subtype:m$(n),parameters:new Map};for(;e<t.length;){for(++e;Z3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=m$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=e4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=BFe(o),o==="")continue}i.length>0&&f$(i)&&$3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var NFe=y((p_r,wFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:t4t}=QS();wFe.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+="=",(!t4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var RFe=y((E_r,TFe)=>{"use strict";var r4t=IFe(),n4t=QFe(),s4t=NFe(),{asciiLowercase:xFe,solelyContainsHTTPTokenCodePoints:SFe}=QS();TFe.exports=class{constructor(e){e=String(e);let r=n4t(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 r4t(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=xFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!SFe(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=xFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!SFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return s4t(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 $Fe=y(cs=>{"use strict";var Q$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),L4t=Q$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?Une:f.type==="?"?qne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=o5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==One?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===One)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return c5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_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?Une:r.dot?s5t:i5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?u5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(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]=Ji))}),o.filter(a=>a!==Ji).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;Hne.sep!=="/"&&(e=e.split(Hne.sep).join("/")),e=e.split(UUe),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 Sa.defaults(e).Minimatch}};Sa.Minimatch=IB});var JUe=y(($Hr,WUe)=>{WUe.exports=zUe;var zne=Q("fs"),{EventEmitter:d5t}=Q("events"),{Minimatch:Yne}=qUe(),{resolve:h5t}=Q("path");function f5t(t,e){return new Promise((r,n)=>{zne.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 GUe(t,e){return new Promise((r,n)=>{(e?zne.stat:zne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?GUe(t,!1):null):r(null):r(o)})})}async function*YUe(t,e,r,n,s,i){let o=await f5t(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 GUe(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*YUe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*m5t(t,e,r,n){yield*YUe("",t,e,r,n,!0)}function p5t(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 mU=class extends d5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=p5t(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 Yne(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 Yne(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 Yne(i,{dot:!0}))}this.iterator=m5t(h5t(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
Line truncated
|
||||
`||t==="\r";Nm.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);Nm.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);Nm.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());Nm.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 IFe=y((p_r,CFe)=>{"use strict";var{asciiLowercase:s_,solelyContainsHTTPTokenCodePoints:j3t,soleyContainsHTTPQuotedStringTokenCodePoints:K3t}=QS();CFe.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),!j3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!K3t(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 QFe=y((g_r,bFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:X3t,removeTrailingHTTPWhitespace:BFe,isHTTPWhitespaceChar:Z3t,solelyContainsHTTPTokenCodePoints:f$,soleyContainsHTTPQuotedStringTokenCodePoints:$3t,asciiLowercase:m$,collectAnHTTPQuotedString:e4t}=QS();bFe.exports=t=>{t=X3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!f$(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=BFe(n),n.length===0||!f$(n))return null;let s={type:m$(r),subtype:m$(n),parameters:new Map};for(;e<t.length;){for(++e;Z3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=m$(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=e4t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=BFe(o),o==="")continue}i.length>0&&f$(i)&&$3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var NFe=y((E_r,wFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:t4t}=QS();wFe.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+="=",(!t4t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var RFe=y((C_r,TFe)=>{"use strict";var r4t=IFe(),n4t=QFe(),s4t=NFe(),{asciiLowercase:xFe,solelyContainsHTTPTokenCodePoints:SFe}=QS();TFe.exports=class{constructor(e){e=String(e);let r=n4t(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 r4t(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=xFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!SFe(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=xFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!SFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return s4t(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 $Fe=y(cs=>{"use strict";var Q$=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),L4t=Q$(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sync=t.isexe=void 0;var e=Q("node:fs"),r=Q("node:fs/promises"),n=async(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i(await(0,r.stat)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.isexe=n;var s=(a,c={})=>{let{ignoreErrors:A=!1}=c;try{return i((0,e.statSync)(a),c)}catch(u){let l=u;if(A||l.code==="EACCES")return!1;throw l}};t.sync=s;var i=(a,c)=>a.isFile()&&o(a,c),o=(a,c)=>{let A=c.uid??process.getuid?.(),u=c.groups??process.getgroups?.()Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?Une:f.type==="?"?qne:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=o5t[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),ne=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==One?"(?:$|\\/)":"";s=k+j+$+ze+ne}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===One)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return c5t(e);let J=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",J),{_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?Une:r.dot?s5t:i5t,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?u5t(a):a===Ji?Ji:a._src).reduce((a,c)=>(a[a.length-1]===Ji&&c===Ji||a.push(c),a),[]),o.forEach((a,c)=>{a!==Ji||o[c-1]===Ji||(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]=Ji))}),o.filter(a=>a!==Ji).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;Hne.sep!=="/"&&(e=e.split(Hne.sep).join("/")),e=e.split(UUe),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 Sa.defaults(e).Minimatch}};Sa.Minimatch=IB});var JUe=y((t6r,WUe)=>{WUe.exports=zUe;var zne=Q("fs"),{EventEmitter:d5t}=Q("events"),{Minimatch:Yne}=qUe(),{resolve:h5t}=Q("path");function f5t(t,e){return new Promise((r,n)=>{zne.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 GUe(t,e){return new Promise((r,n)=>{(e?zne.stat:zne.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?GUe(t,!1):null):r(null):r(o)})})}async function*YUe(t,e,r,n,s,i){let o=await f5t(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 GUe(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*YUe(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*m5t(t,e,r,n){yield*YUe("",t,e,r,n,!0)}function p5t(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 mU=class extends d5t{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=p5t(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 Yne(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 Yne(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 Yne(i,{dot:!0}))}this.iterator=m5t(h5t(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
Line truncated
|
||||
`,x);x=Y===-1?w.length:Y}else if(P!==-1&&w[x]==="/"&&w[x+1]==="*"){let Y=w.indexOf("*/",x);Y!==-1?(x=Y+2,P=w.indexOf("*/",x)):(b+=w[x],x++)}else b+=w[x],x++;return b}function fs(w){let b=Qi(w.toString()),x=b.match(Oo);if(x||(x=b.match(ed)),!x)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(YA).map(Y=>Y.replace(b0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=fs(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Uh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Uh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Uh(w,b){w.length=1,w.head=w.tail=b}function zA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function se(tt,Pe){let rt=(...Zt)=>{Fe(tt,rt),Pe(...Zt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function Wt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Xt(tt,Pe,rt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,gs;function Ma(lp,...Rb){if(lp)return rt?gs(lp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var M0=Ar._createTaskItem(tt,rt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(M0):Ar._tasks.push(M0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Zt)return new Promise((lp,Rb)=>{Kr=lp,gs=Rb})}function Pa(tt){return function(Pe,...rt){Y-=1;for(var Zt=0,Kr=tt.length;Zt<Kr;Zt++){var gs=tt[Zt],Ma=W.indexOf(gs);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),gs.callback(Pe,...rt),Pe!=null&&Wt("error",Pe,gs.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function P0(tt){return tt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let up=tt=>Pe=>{if(!Pe)return new Promise((rt,Zt)=>{se(tt,(Kr,gs)=>{if(Kr)return Zt(Kr);rt(gs)})});Fe(tt),Z(tt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!1,Pe)):Xt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!0,Pe)):Xt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!1,Pe)):Xt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!0,Pe)):Xt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Zt=0;Zt<rt;Zt++){var Kr=Ar._tasks.shift();tt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var gs=ne(Pa(tt));P(Pe,gs)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:up("saturated")},unsaturated:{writable:!1,value:up("unsaturated")},empty:{writable:!1,value:up("empty")},drain:{writable:!1,value:up("drain")},error:{writable:!1,value:up("error")}}),Ar}function td(w,b){return zA(w,1,b)}function rd(w,b,x){return zA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Gs(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=GA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function ip(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var ee=g(X,3);function Ae(w,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});dn[$s]||(nOe=global[$s]||[],iOe(dn,nOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||sOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,CU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),sOe()}return Object.defineProperty(e,CU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var nOe;global[$s]||iOe(global,dn[$s]);jne.exports=Jne(w5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(jne.exports=Jne(dn),dn.__patched=!0);function Jne(t){b5t(t),t.gracefulify=Jne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?BB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?BB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=Q5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function BB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),Vne()}var yU;function sOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);Vne()}function Vne(){if(clearTimeout(yU),yU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("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?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}yU===void 0&&(yU=setTimeout(Vne,0))}}});var IU=y((s6r,oOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};_4e.exports={AggregateError:Dse,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 kse=y((f5r,U4e)=>{"use strict";U4e.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 Ci=y((m5r,q4e)=>{"use strict";var{format:VYt,inspect:OU}=kse(),{AggregateError:jYt}=sn(),KYt=globalThis.AggregateError||jYt,XYt=Symbol("kIsNodeError"),ZYt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$Yt=/^([A-Z][a-z0-9]*)+$/,ezt="__node_internal_",HU={};function ZE(t,e){if(!t)throw new HU.ERR_INTERNAL_ASSERTION(e)}function O4e(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 tzt(t,e,r){if(typeof e=="function")return ZE(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 ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:VYt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(tzt(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[XYt]=!0,HU[t]=n}function H4e(t){let e=ezt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function rzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KYt([e,t],e.message);return r.code=e.code,r}return t||e}var vse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new HU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(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)ZE(typeof c=="string","All expected entries have to be of type string"),ZYt.includes(c)?s.push(c.toLowerCase()):$Yt.test(c)?i.push(c):(ZE(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;defaulLine truncated
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(YA).map(Y=>Y.replace(b0,"").trim())}function Jc(w,b){var x={};return Object.keys(w).forEach(P=>{var Y=w[P],W,K=h(Y),Z=!K&&Y.length===1||K&&Y.length===0;if(Array.isArray(Y))W=[...Y],Y=W.pop(),x[P]=W.concat(W.length>0?se:Y);else if(Z)x[P]=Y;else{if(W=fs(Y),Y.length===0&&!K&&W.length===0)throw new Error("autoInject task functions require explicit parameters.");K||W.pop(),x[P]=W.concat(se)}function se(Fe,Wt){var cr=W.map(Xt=>Fe[Xt]);cr.push(Wt),E(Y)(...cr)}}),$l(x,b)}class Vc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Uh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Uh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Uh(w,b){w.length=1,w.head=w.tail=b}function zA(w,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(w),Y=0,W=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function se(tt,Pe){let rt=(...Zt)=>{Fe(tt,rt),Pe(...Zt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function Wt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Xt(tt,Pe,rt,Zt){if(Zt!=null&&typeof Zt!="function")throw new Error("task callback must be a function");Ar.started=!0;var Kr,gs;function Ma(lp,...Rb){if(lp)return rt?gs(lp):Kr();if(Rb.length<=1)return Kr(Rb[0]);Kr(Rb)}var M0=Ar._createTaskItem(tt,rt?Ma:Zt||Ma);if(Pe?Ar._tasks.unshift(M0):Ar._tasks.push(M0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Zt)return new Promise((lp,Rb)=>{Kr=lp,gs=Rb})}function Pa(tt){return function(Pe,...rt){Y-=1;for(var Zt=0,Kr=tt.length;Zt<Kr;Zt++){var gs=tt[Zt],Ma=W.indexOf(gs);Ma===0?W.shift():Ma>0&&W.splice(Ma,1),gs.callback(Pe,...rt),Pe!=null&&Wt("error",Pe,gs.data)}Y<=Ar.concurrency-Ar.buffer&&Wt("unsaturated"),Ar.idle()&&Wt("drain"),Ar.process()}}function P0(tt){return tt.length===0&&Ar.idle()?(A(()=>Wt("drain")),!0):!1}let up=tt=>Pe=>{if(!Pe)return new Promise((rt,Zt)=>{se(tt,(Kr,gs)=>{if(Kr)return Zt(Kr);rt(gs)})});Fe(tt),Z(tt,Pe)};var Tb=!1,Ar={_tasks:new Vc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!1,Pe)):Xt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!1,!0,Pe)):Xt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!1,Pe)):Xt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?P0(tt)?void 0:tt.map(rt=>Xt(rt,!0,!0,Pe)):Xt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!Tb){for(Tb=!0;!Ar.paused&&Y<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Zt=0;Zt<rt;Zt++){var Kr=Ar._tasks.shift();tt.push(Kr),W.push(Kr),Pe.push(Kr.data)}Y+=1,Ar._tasks.length===0&&Wt("empty"),Y===Ar.concurrency&&Wt("saturated");var gs=ne(Pa(tt));P(Pe,gs)}Tb=!1}},length(){return Ar._tasks.length},running(){return Y},workersList(){return W},idle(){return Ar._tasks.length+Y===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:up("saturated")},unsaturated:{writable:!1,value:up("unsaturated")},empty:{writable:!1,value:up("empty")},drain:{writable:!1,value:up("drain")},error:{writable:!1,value:up("error")}}),Ar}function td(w,b){return zA(w,1,b)}function rd(w,b,x){return zA(w,b,x)}function eo(w,b,x,P){P=J(P);var Y=E(x);return Gs(w,(W,K,Z)=>{Y(b,W,(se,Fe)=>{b=Fe,Z(se)})},W=>P(W,b))}var wi=g(eo,4);function nd(...w){var b=w.map(E);return function(...x){var P=this,Y=x[x.length-1];return typeof Y=="function"?x.pop():Y=GA(),wi(b,x,(W,K,Z)=>{K.apply(P,W.concat((se,...Fe)=>{Z(se,Fe)}))},(W,K)=>Y(W,...K)),Y[Wc]}}function ip(...w){return nd(...w.reverse())}function ve(w,b,x,P){return I(fe(b),w,x,P)}var q=g(ve,4);function T(w,b,x,P){var Y=E(x);return q(w,b,(W,K)=>{Y(W,(Z,...se)=>Z?K(Z):K(Z,se))},(W,K)=>{for(var Z=[],se=0;se<K.length;se++)K[se]&&(Z=Z.concat(...K[se]));return P(W,Z)})}var z=g(T,4);function X(w,b,x){return z(w,1/0,b,x)}var ee=g(X,3);function Ae(w,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});dn[$s]||(nOe=global[$s]||[],iOe(dn,nOe),dn.close=(function(t){function e(r,n){return t.call(dn,r,function(s){s||sOe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,CU,{value:t}),e})(dn.close),dn.closeSync=(function(t){function e(r){t.apply(dn,arguments),sOe()}return Object.defineProperty(e,CU,{value:t}),e})(dn.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){jE(dn[$s]),Q("assert").equal(dn[$s].length,0)}));var nOe;global[$s]||iOe(global,dn[$s]);jne.exports=Jne(w5t(dn));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!dn.__patched&&(jne.exports=Jne(dn),dn.__patched=!0);function Jne(t){b5t(t),t.gracefulify=Jne,t.createReadStream=M,t.createWriteStream=J;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),ne(k,j,$);function ne(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?BB([ne,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,ne){return typeof $=="function"&&(ne=$,$=0),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var ne=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return ne(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?BB([ne,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=Q5t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function J(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,ne){return typeof $=="function"&&(ne=$,$=null),le(k,j,$,ne);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,mn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?BB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function BB(t){jE("ENQUEUE",t[0].name,t[1]),dn[$s].push(t),Vne()}var yU;function sOe(){for(var t=Date.now(),e=0;e<dn[$s].length;++e)dn[$s][e].length>2&&(dn[$s][e][3]=t,dn[$s][e][4]=t);Vne()}function Vne(){if(clearTimeout(yU),yU=void 0,dn[$s].length!==0){var t=dn[$s].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)jE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){jE("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?(jE("RETRY",e.name,r),e.apply(null,r.concat([s]))):dn[$s].push(t)}yU===void 0&&(yU=setTimeout(Vne,0))}}});var IU=y((o6r,oOe)=>{"use strict";var Fl=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Fl.writable=t=>Fl(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Fl.readable=t=>Fl(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};_4e.exports={AggregateError:Dse,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 kse=y((p5r,U4e)=>{"use strict";U4e.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 Ci=y((g5r,q4e)=>{"use strict";var{format:VYt,inspect:OU}=kse(),{AggregateError:jYt}=sn(),KYt=globalThis.AggregateError||jYt,XYt=Symbol("kIsNodeError"),ZYt=["string","function","number","object","Function","Object","boolean","bigint","symbol"],$Yt=/^([A-Z][a-z0-9]*)+$/,ezt="__node_internal_",HU={};function ZE(t,e){if(!t)throw new HU.ERR_INTERNAL_ASSERTION(e)}function O4e(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 tzt(t,e,r){if(typeof e=="function")return ZE(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 ZE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:VYt(e,...r)}function ti(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(tzt(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[XYt]=!0,HU[t]=n}function H4e(t){let e=ezt+t.name;return Object.defineProperty(t,"name",{value:e}),t}function rzt(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new KYt([e,t],e.message);return r.code=e.code,r}return t||e}var vse=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new HU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};ti("ERR_ASSERTION","%s",Error);ti("ERR_INVALID_ARG_TYPE",(t,e,r)=>{ZE(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)ZE(typeof c=="string","All expected entries have to be of type string"),ZYt.includes(c)?s.push(c.toLowerCase()):$Yt.test(c)?i.push(c):(ZE(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;defaulLine truncated
|
||||
`)),e.linkname&&(r+=hae(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=hae(" "+s+"="+n[s]+`
|
||||
`);return ir.from(r)};Ab.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};Ab.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Zm(e.mode&Err,6),100),ir.write(r,Zm(e.uid,6),108),ir.write(r,Zm(e.gid,6),116),wrr(e.size,r,124),ir.write(r,Zm(e.mtime.getTime()/1e3|0,11),136),r[156]=m3+brr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(yYe,r,oT),ir.copy(mrr,r,fae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Zm(e.devmajor||0,6),329),ir.write(r,Zm(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Zm(IYe(r),6),148),r)};Ab.decode=function(e,r,n){let s=e[156]===0?0:e[156]-m3,i=cb(e,0,100,r),o=Xm(e,100,8),a=Xm(e,108,8),c=Xm(e,116,8),A=Xm(e,124,12),u=Xm(e,136,12),l=Brr(s),d=e[157]===0?null:cb(e,157,100,r),h=cb(e,265,32),f=cb(e,297,32),m=Xm(e,329,8),E=Xm(e,337,8),g=IYe(e);if(g===256)return null;if(g!==Xm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yrr(e))e[345]&&(i=cb(e,345,155,r)+"/"+i);else if(!Crr(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function yrr(t){return ir.equals(yYe,t.subarray(oT,oT+6))}function Crr(t){return ir.equals(prr,t.subarray(oT,oT+6))&&ir.equals(grr,t.subarray(fae,fae+2))}function Irr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Brr(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 brr(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 CYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function IYe(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 Zm(t,e){return t=t.toString(8),t.length>e?frr.slice(0,e)+" ":hrr.slice(0,e-t.length)+t+" "}function Qrr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function wrr(t,e,r){t.toString(8).length>11?Qrr(t,e,r):ir.write(e,Zm(t,11),r)}function Nrr(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 Xm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Nrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Irr(CYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function cb(t,e,r,n){return ir.toString(t.subarray(e,CYe(t,0,e,e+r)),n)}function hae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var NYe=y((YGr,wYe)=>{var{Writable:xrr,Readable:Srr,getStreamError:BYe}=dae(),Trr=Koe(),bYe=nb(),ub=mae(),Rrr=bYe.alloc(0),Drr=4*1024*1024,gae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Trr,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 Rrr;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 bYe.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)}},Eae=class extends Srr{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(BYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=QYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`);return ir.from(r)};Ab.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};Ab.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Zm(e.mode&Err,6),100),ir.write(r,Zm(e.uid,6),108),ir.write(r,Zm(e.gid,6),116),wrr(e.size,r,124),ir.write(r,Zm(e.mtime.getTime()/1e3|0,11),136),r[156]=m3+brr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(yYe,r,oT),ir.copy(mrr,r,fae),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Zm(e.devmajor||0,6),329),ir.write(r,Zm(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Zm(IYe(r),6),148),r)};Ab.decode=function(e,r,n){let s=e[156]===0?0:e[156]-m3,i=cb(e,0,100,r),o=Xm(e,100,8),a=Xm(e,108,8),c=Xm(e,116,8),A=Xm(e,124,12),u=Xm(e,136,12),l=Brr(s),d=e[157]===0?null:cb(e,157,100,r),h=cb(e,265,32),f=cb(e,297,32),m=Xm(e,329,8),E=Xm(e,337,8),g=IYe(e);if(g===256)return null;if(g!==Xm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(yrr(e))e[345]&&(i=cb(e,345,155,r)+"/"+i);else if(!Crr(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function yrr(t){return ir.equals(yYe,t.subarray(oT,oT+6))}function Crr(t){return ir.equals(prr,t.subarray(oT,oT+6))&&ir.equals(grr,t.subarray(fae,fae+2))}function Irr(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function Brr(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 brr(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 CYe(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function IYe(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 Zm(t,e){return t=t.toString(8),t.length>e?frr.slice(0,e)+" ":hrr.slice(0,e-t.length)+t+" "}function Qrr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function wrr(t,e,r){t.toString(8).length>11?Qrr(t,e,r):ir.write(e,Zm(t,11),r)}function Nrr(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 Xm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return Nrr(t);{for(;e<t.length&&t[e]===32;)e++;let n=Irr(CYe(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function cb(t,e,r,n){return ir.toString(t.subarray(e,CYe(t,0,e,e+r)),n)}function hae(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var NYe=y((WGr,wYe)=>{var{Writable:xrr,Readable:Srr,getStreamError:BYe}=dae(),Trr=Koe(),bYe=nb(),ub=mae(),Rrr=bYe.alloc(0),Drr=4*1024*1024,gae=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new Trr,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 Rrr;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 bYe.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)}},Eae=class extends Srr{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(BYe(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=QYe(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function Ope(t,e){if(process.env.GITHUB_OUTPUT||"")return Db("OUTPUT",MT(t,e));process.stdout.write(S6.EOL),Xc("set-output",{name:t},JA(e))}function Up(t){process.exitCode=x6.Failure,$o(t)}function cA(){return process.env.RUNNER_DEBUG==="1"}function G(t){Xc("debug",{},t)}function $o(t,e={}){Xc("error",kT(e),t instanceof Error?t.toString():t)}function nt(t,e={}){Xc("warning",kT(e),t instanceof Error?t.toString():t)}function R6(t,e={}){Xc("notice",kT(e),t instanceof Error?t.toString():t)}function re(t){process.stdout.write(t+S6.EOL)}function Hpe(t){Y3("group",t)}function qpe(){Y3("endgroup")}function qD(t,e){return dit(this,void 0,void 0,function*(){Hpe(t);let r;try{r=yield e()}finally{qpe()}return r})}function au(t,e){if(process.env.GITHUB_STATE||"")return Db("STATE",MT(t,e));Xc("save-state",{name:t},JA(e))}function _Q(t){return process.env[`STATE_${t}`]||""}import*as C$ from"fs";import*as I$ from"path";import*as a_ from"os";import{readFileSync as hit,existsSync as fit}from"fs";import{EOL as mit}from"os";var vy=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(fit(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(hit(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${mit}`)}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 P6=be(Jpe(),1),Vpe=be(kD(),1),Sit=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 jpe(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 Kpe(t){return new P6.HttpClient().getAgent(t)}function Tit(t){return new P6.HttpClient().getAgentDispatcher(t)}function Xpe(t){let e=Tit(t);return(n,s)=>Sit(this,void 0,void 0,function*(){return(0,Vpe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function Zpe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function M6(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 df(){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 jD(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)=>jD.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 $pe(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 ege(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 tge=Function.bind,rge=tge.bind(tge);function nge(t,e,r){let n=rge(ege,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]=rge($pe,null).
Line truncated
|
||||
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(q6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=G6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(hf(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(q6(B))continue;f.first||u.push(","),n?u.push(`
|
||||
`+n.repeat(l)+hf(g)+": "):u.push(hf(g)+":");let M=B!==null&&typeof B=="object",J=G6(B);if(M&&!J){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(hf(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
|
||||
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},bge=(t,e,r)=>{try{return"rawJSON"in JSON?hf(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?hf(t,(a,c)=>typeof c=="string"&&XD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Ege,"$1$2$3").replace(yge,"$1$2$3"):hf(t,e,r)}catch(n){if(n instanceof RangeError){let s=Xit(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Ege,"$1$2$3").replace(yge,"$1$2$3")}throw n}},KD=new Map,Zit=()=>{let t=JSON.parse.toString();if(KD.has(t))return KD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return KD.set(t,e),e}catch{return KD.set(t,!1),!1}},$it=(t,e,r,n)=>typeof e=="string"&&Bge.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&XD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,eot=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&Kit.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),Qge=Number.MAX_SAFE_INTEGER.toString(),Cge=Qge.length,tot=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,rot=/^"-?\d+n+"$/,not=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Bge.test(a)?a=BigInt(a.slice(0,-1)):XD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Ige=t=>t.replace(tot,(e,r,n,s)=>{let i=e[0]==='"';if(i&&rot.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<Cge||r.length===Cge&&r<=Qge);return i||a||c?e:'"'+e+'n"'}),wge=(t,e)=>{if(!t)return H6(t,e);try{if(Zit())return eot(t,e);let r=Ige(t);return H6(r,(n,s,i)=>$it(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Ige(t),s=H6(n);return not(s,e)}throw r}};var Bd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var sot="10.0.16",iot={headers:{"user-agent":`octokit-request.js/${sot} ${df()}`}};function oot(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Nge=()=>"";async function xge(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=oot(t.body)||Array.isArray(t.body)?bge(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new Bd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new Bd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await Y6(o),new Bd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await Y6(o),new Bd(cot(u.data),a,{response:u,request:t});return u.data=n?await Y6(o):o.body,u}async function Y6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Nge);let r=fge(e);if(aot(r)){let n="";try{return n=await t.text(),wge(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var lot=class extends Error{constructor(t,e,r){super(uot(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)}request;headers;response;name="GraphqlResponseError";errors;data},dot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hot=["query","method","url"],Sge=/\/api\/v3\/?$/;function fot(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(hot.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)=>dot.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 Sge.test(i)&&(s.url=i.replace(Sge,"/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 lot(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>fot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var har=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Aot} ${df()}`},method:"POST",url:"/graphql"});function Tge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Rge="\\.",Dge=new RegExp(`^${J6}${Rge}${J6}${Rge}${J6}$`),mot=Dge.test.bind(Dge);async function pot(t){let e=mot(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 got(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Eot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=got(t),e(s)}var kge=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(pot.bind(null,e),{hook:Eot.bind(null,e)})};var V6="7.0.8";var vge=()=>{},yot=console.warn.bind(console),Cot=console.error.bind(console);function Iot(t={}){return typeof t.debug!="function"&&(t.debug=vge),typeof t.info!="function"&&(t.info=vge),typeof t.warn!="function"&&(t.warn=yot),typeof t.error!="function"&&(t.error=Cot),t}var Pge=`octokit-core.js/${V6} ${df()}`,ZD=class{static VERSION=V6;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 sge.Collection,n={baseUrl:HQ.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} ${Pge}`:Pge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Tge(this.request).defaults(n),this.log=Iot(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=kge(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 j6="17.0.0";var Bot={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 lot=class extends Error{constructor(t,e,r){super(uot(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)}request;headers;response;name="GraphqlResponseError";errors;data},dot=["method","baseUrl","url","headers","request","query","mediaType","operationName"],hot=["query","method","url"],Sge=/\/api\/v3\/?$/;function fot(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(hot.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)=>dot.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 Sge.test(i)&&(s.url=i.replace(Sge,"/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 lot(s,a,o.data)}return o.data.data})}function W6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>fot(r,s,i),{defaults:W6.bind(null,r),endpoint:r.endpoint})}var mar=W6(HQ,{headers:{"user-agent":`octokit-graphql.js/${Aot} ${df()}`},method:"POST",url:"/graphql"});function Tge(t){return W6(t,{method:"POST",url:"/graphql"})}var J6="(?:[a-zA-Z0-9_-]+)",Rge="\\.",Dge=new RegExp(`^${J6}${Rge}${J6}${Rge}${J6}$`),mot=Dge.test.bind(Dge);async function pot(t){let e=mot(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 got(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function Eot(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=got(t),e(s)}var kge=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(pot.bind(null,e),{hook:Eot.bind(null,e)})};var V6="7.0.8";var vge=()=>{},yot=console.warn.bind(console),Cot=console.error.bind(console);function Iot(t={}){return typeof t.debug!="function"&&(t.debug=vge),typeof t.info!="function"&&(t.info=vge),typeof t.warn!="function"&&(t.warn=yot),typeof t.error!="function"&&(t.error=Cot),t}var Pge=`octokit-core.js/${V6} ${df()}`,ZD=class{static VERSION=V6;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 sge.Collection,n={baseUrl:HQ.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} ${Pge}`:Pge,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=HQ.defaults(n),this.graphql=Tge(this.request).defaults(n),this.log=Iot(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=kge(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 j6="17.0.0";var Bot={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 VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield _y.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield _y.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield _y.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as s2 from"fs";import*as AEe from"stream";import*as uEe from"util";import*as lEe from"path";var Oat=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())})},Hat=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 dEe(t,e){return Oat(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=Hat(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${lEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(s2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield uEe.promisify(AEe.pipeline)(s2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var hEe=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 KQ(t,e){return hEe(this,void 0,void 0,function*(){return yield r2.create(t,e)})}function fEe(t){return hEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return dEe(o,r,s)})}var oye=be(g2(),1);import*as I2 from"crypto";import*as qy from"fs";import*as Jp from"path";import*as aye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var E2=2,y2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,iye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",QAr=10*Math.pow(1024,3),C2="cache read denied:";var Hy=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())})},jut=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)}},Kut="1.0";function Vp(){return Hy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,I2.randomUUID());return yield _p(r),r})}function Au(t){return qy.statSync(t).size}function L5(t){return Hy(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 KQ
Line truncated
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new VQ(i));return n.searchPaths.push(...n5(n.patterns)),n})}static stat(e,r,n){return l5(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield _y.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){G(`Broken symlink '${e.path}'`);return}throw new Error(`No information found for the path '${e.path}'. This may indicate a broken symbolic link.`)}throw i}else s=yield _y.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield _y.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){G(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as d5 from"crypto";import*as s2 from"fs";import*as AEe from"stream";import*as uEe from"util";import*as lEe from"path";var Oat=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())})},Hat=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 dEe(t,e){return Oat(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?re:G,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=d5.createHash("sha256"),f=0;try{for(var m=!0,E=Hat(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${lEe.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(s2.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=d5.createHash("sha256");yield uEe.promisify(AEe.pipeline)(s2.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var hEe=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 KQ(t,e){return hEe(this,void 0,void 0,function*(){return yield r2.create(t,e)})}function fEe(t){return hEe(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield KQ(e,{followSymbolicLinks:i});return dEe(o,r,s)})}var oye=be(g2(),1);import*as I2 from"crypto";import*as qy from"fs";import*as Jp from"path";import*as aye from"util";var rw;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(rw||(rw={}));var Pi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(Pi||(Pi={}));var ea;(function(t){t.GNU="gnu",t.BSD="bsd"})(ea||(ea={}));var E2=2,y2=5e3,P5=5e3,M5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,iye=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,nw="cache.tar",F5="manifest.txt",NAr=10*Math.pow(1024,3),C2="cache read denied:";var Hy=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())})},jut=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)}},Kut="1.0";function Vp(){return Hy(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=Jp.join(n,"actions","temp")}let r=Jp.join(e,I2.randomUUID());return yield _p(r),r})}function Au(t){return qy.statSync(t).size}function L5(t){return Hy(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 KQ
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=jut(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Jp.relative(a,s).replace(new RegExp(`\\${Jp.sep}`,"g"),"/");G(`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 sw(t){return Hy(this,void 0,void 0,function*(){return aye.promisify(qy.unlink)(t)})}function cye(t){return Hy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),G(`Checking ${e} ${r.join(" ")}`);try{yield ou(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){G(s.message)}return n=n.trim(),G(n),n})}function iw(){return Hy(this,void 0,void 0,function*(){let t=yield cye("zstd",["--quiet"]),e=oye.clean(t);return G(`zstd version: ${e}`),t===""?Pi.Gzip:Pi.ZstdWithoutLong})}function yf(t){return t===Pi.Gzip?rw.Gzip:rw.Zstd}function Aye(){return Hy(this,void 0,void 0,function*(){return qy.existsSync(M5)?M5:(yield cye("tar")).toLowerCase().includes("gnu tar")?Zo("tar"):""})}function _5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Gy(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(Kut),I2.createHash("sha256").update(n.join("|")).digest("hex")}function uye(){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 RC from"fs";import{URL as p0t}from"url";var uu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as Xut}from"node:os";import Zut from"node:util";import $ut from"node:process";function lye(t,...e){$ut.stderr.write(`${Zut.format(t,...e)}${Xut}`)}import ow from"node:process";function b2(t){return ow.env[t]}var dye=typeof ow.versions.deno=="string"&&ow.versions.deno.length>0,hye=typeof ow.versions.bun=="string"&&ow.versions.bun.length>0,Q2=!0;var fye=b2("DEBUG"),pye,U5=[],O5=[],w2=[];fye&&H5(fye);var gye=Object.assign(t=>Eye(t),{enable:H5,enabled:q5,disable:elt,log:lye});function H5(t){pye=t,U5=[],O5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?O5.push(r.substring(1)):U5.push(r);for(let r of w2)r.enabled=q5(r.namespace)}function q5(t){if(t.endsWith("*"))return!0;for(let e of O5)if(mye(t,e))return!1;for(let e of U5)if(mye(t,e))return!0;return!1}function mye(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 elt(){let t=pye||"";return H5(""),t}function Eye(t){let e=Object.assign(r,{enabled:q5(t),destroy:tlt,log:gye.log,namespace:t,extend:rlt});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return w2.push(e),e}function tlt(){let t=w2.indexOf(this);return t>=0?(w2.splice(t,1),!0):!1}function rlt(t){let e=Eye(`${this.namespace}:${t}`);return e.log=this.log,e}var Yy=gye;var G5=["verbose","info","warning","error"],yye={verbose:400,info:300,warning:200,error:100};function Cye(t,e){e.log=(...r)=>{t.log(...r)}}function Iye(t){return G5.includes(t)}function N2(t){let e=new Set,r=b2(t.logLevelEnvVarName),n,s=Yy(t.namespace);s.log=(...u)=>{Yy.log(...u)};function i(u){if(u&&!Iye(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${G5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Yy.enable(l.join(","))}r&&(Iye(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${G5.join(", ")}.`));function o(u){return!!(n&&yye[u.level]<=yye[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(Cye(u,d),o(d)){let h=Yy.disable();Yy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return Cye(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 Bye=N2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),nlt=Bye.logger;function aw(t){return Bye.createClientLogger(t)}function x2(t){return t.toLowerCase()}function slt(t){return String(t).trim().replace(/[\r\n]/g,"")}function*ilt(t){for(let e of t.values())yield[e.name,e.value]}var Y5=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(x2(e),{name:e,value:slt(r)})}get(e){return this._headersMap.get(x2(e))?.value}has(e){return this._
Line truncated
|
||||
${Alt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function If(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import wye from"node:zlib";import{Transform as ult}from"node:stream";var lo=aw("ts-http-runtime");var llt={};function lw(t){return t&&typeof t.pipe=="function"}function Nye(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 xye(t){return t&&typeof t.byteLength=="number"}var S2=class extends ult{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("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 ja;lo.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=mlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new S2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=dlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?hlt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new S2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await flt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Nye(a));let u=Promise.resolve();lw(c)&&(u=Nye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.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?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??llt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function dlt(t){let e=uo();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 hlt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=wye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=wye.createInflate();return t.pipe(n),n}return t}function flt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function mlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:xye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sye(){return new K5}function dw(){return Sye()}var T2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
${Alt.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function If(t){return t instanceof Ai?!0:Kp(t)&&t.name==="RestError"}function uw(t,e){return Buffer.from(t).toString(e)}function Mi(t,e){return Buffer.from(t,e)}import V5 from"node:http";import j5 from"node:https";import wye from"node:zlib";import{Transform as ult}from"node:stream";var lo=aw("ts-http-runtime");var llt={};function lw(t){return t&&typeof t.pipe=="function"}function Nye(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 xye(t){return t&&typeof t.byteLength=="number"}var S2=class extends ult{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}},K5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new uu("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 ja;lo.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=mlt(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new S2(f);m.on("error",E=>{lo.error("Error in upload progress",E)}),lw(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=dlt(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?hlt(A,u):A;let h=e.onDownloadProgress;if(h){let f=new S2(h);f.on("error",m=>{lo.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await flt(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();lw(a)&&(A=Nye(a));let u=Promise.resolve();lw(c)&&(u=Nye(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{lo.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?V5.request(a,c):j5.request(a,c);u.once("error",l=>{A(new Ai(l.message,{code:l.code??Ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new uu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&lw(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):xye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(lo.error("Unrecognized body type",n),A(new Ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?V5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new V5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return j5.globalAgent;let s=e.tlsSettings??llt,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(lo.info("No cached TLS Agent exist, creating a new Agent"),i=new j5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function dlt(t){let e=uo();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 hlt(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=wye.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=wye.createInflate();return t.pipe(n),n}return t}function flt(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 Ai(`Error reading response as text: ${s.message}`,{code:Ai.PARSE_ERROR}))})})}function mlt(t){return t?Buffer.isBuffer(t)?t.length:lw(t)?null:xye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function Sye(){return new K5}function dw(){return Sye()}var T2="logPolicy";function hw(t={}){let e=t.logger??lo.info,r=new ja({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
`;return e}function Fdt(t){return t instanceof Uint8Array?t.byteLength:Qw(t)?t.size===-1?void 0:t.size:void 0}function Ldt(t){let e=0;for(let r of t){let n=Fdt(r);if(n===void 0)return;e+=n}return e}async function _dt(t,e,r){let n=[Mi(`--${r}`,"utf-8"),...e.flatMap(i=>[Mi(`\r
|
||||
`,"utf-8"),Mi(Mdt(i.headers),"utf-8"),Mi(`\r
|
||||
`,"utf-8"),i.body,Mi(`\r
|
||||
--${r}`,"utf-8")]),Mi(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=Ldt(n);s&&t.headers.set("Content-Length",s),t.body=await CCe(n)}var Xy="multipartPolicy",Udt=70,Odt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Hdt(t){if(t.length>Udt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Odt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){return{name:Xy,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?Hdt(r):r=Pdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await _dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var ICe=N2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Nhr=ICe.logger;function Bs(t){return ICe.createClientLogger(t)}var Nw=Bs("core-rest-pipeline");function SCe(){return"User-Agent"}function TCe(){return SCe()}var pfr=TCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(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 Zdt="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Zdt})}function Nd(t){if(Kp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Aq(t){return Kp(t)}function $a(){return jp()}var ct=Q2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Ky;function Qf(t){return yw(t)}var Zy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function RCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue(Zy.span,t.span)),t.namespace&&(e=e.setValue(Zy.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var kCe=be(DCe(),1),j2=kCe.state;function $dt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function eht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$dt(),tracingContext:RCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return j2.instrumenterImplementation||(j2.instrumenterImplementation=eht()),j2.instrumenterImplementation}function wf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Zy.namespace)||(h=h.setValue(Zy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Zy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function K2(t){return If(t)}var Cpr=Bs("core-rest-pipeline retryPolicy");var mht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function pht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...mht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
Line truncated
|
||||
`,"utf-8")],s=Ldt(n);s&&t.headers.set("Content-Length",s),t.body=await CCe(n)}var Xy="multipartPolicy",Udt=70,Odt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function Hdt(t){if(t.length>Udt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Odt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function ww(){return{name:Xy,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?Hdt(r):r=Pdt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await _dt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var ICe=N2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Shr=ICe.logger;function Bs(t){return ICe.createClientLogger(t)}var Nw=Bs("core-rest-pipeline");function SCe(){return"User-Agent"}function TCe(){return SCe()}var Efr=TCe();var Mn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function aq(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Mn(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 Zdt="The delay was aborted.";function du(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return aq(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??Zdt})}function Nd(t){if(Kp(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function Aq(t){return Kp(t)}function $a(){return jp()}var ct=Q2;function uq(t,e){return uw(t,e)}function lq(t,e){return Mi(t,e)}var dq=Ky;function Qf(t){return yw(t)}var Zy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function RCe(t={}){let e=new hq(t.parentContext);return t.span&&(e=e.setValue(Zy.span,t.span)),t.namespace&&(e=e.setValue(Zy.namespace,t.namespace)),e}var hq=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var kCe=be(DCe(),1),j2=kCe.state;function $dt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function eht(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:$dt(),tracingContext:RCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function xw(){return j2.instrumenterImplementation||(j2.instrumenterImplementation=eht()),j2.instrumenterImplementation}function wf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=xw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Zy.namespace)||(h=h.setValue(Zy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Zy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return xw().withContext(A,u,...l)}function a(A){return xw().parseTraceparentHeader(A)}function c(A){return xw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function K2(t){return If(t)}var Bpr=Bs("core-rest-pipeline retryPolicy");var mht={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function pht(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await du(e),s=await n();return s}function fq(t,e){let r=null,n=null,s,i={...mht,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
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--),!Gft(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Fn("InvalidTag",l,Fi(t,i))}let A=_ft(t,i);if(A===!1)return Fn("InvalidAttr","Attributes for '"+c+"' have open quote.",Fi(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=xIe(u,e);if(d===!0)n=!0;else return Fn(d.err.code,d.err.msg,Fi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Fn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Fi(t,o));if(r.length===0)return Fn("InvalidTag","Closing tag '"+c+"' has not been opened.",Fi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Fi(t,l.tagStartPos);return Fn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Fi(t,o))}r.length==0&&(s=!0)}}else return Fn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Fi(t,i));else{let l=xIe(u,e);if(l!==!0)return Fn(l.err.code,l.err.msg,Fi(t,i-u.length+l.err.line));if(s===!0)return Fn("InvalidXml","Multiple possible root nodes found.",Fi(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=NIe(t,i);continue}else if(t[i+1]==="?"){if(i=wIe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=Hft(t,i);if(l==-1)return Fn("InvalidChar","char '&' is not expected.",Fi(t,i));i=l}else if(s===!0&&!tC(t[i]))return Fn("InvalidXml","Extra text at the end",Fi(t,i));t[i]==="<"&&i--}}else{if(tC(t[i]))continue;return Fn("InvalidChar","char '"+t[i]+"' is not expected.",Fi(t,i))}if(n){if(r.length==1)return Fn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Fi(t,r[0].tagStartPos));if(r.length>0)return Fn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Fn("InvalidXml","Start tag expected.",1);return!0}function tC(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function wIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function NIe(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 Fft='"',Lft="'";function _ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Fft||t[e]===Lft)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}}function Uft(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&tC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!tC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&tC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&tC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function xIe(t,e){let r=Uft(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!qft(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function Oft(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 Hft(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Oft(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function qft(t){return Wq(t)}function Gft(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var rC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Yft=new Set("!?\\\\/[]$%{}^&*()<>|+");function SIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Yft.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",uk="base",jq="all";function zft(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===uk?new Set([uk]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Wft=new Set([9,10,13]);function Jft(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var nC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=zft(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`||t==="\r"}function wIe(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 Fn("InvalidXml","XML declaration allowed only at the start of the document.",Fi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function NIe(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 Fft='"',Lft="'";function _ft(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Fft||t[e]===Lft)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}}function Uft(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&tC(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!tC(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&tC(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&tC(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function xIe(t,e){let r=Uft(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",_w(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Fn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",_w(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Fn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",_w(r[s]));let i=r[s][2];if(!qft(i))return Fn("InvalidAttr","Attribute '"+i+"' is an invalid name.",_w(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Fn("InvalidAttr","Attribute '"+i+"' is repeated.",_w(r[s]))}return!0}function Oft(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 Hft(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Oft(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 Fn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function qft(t){return Wq(t)}function Gft(t){return Wq(t)}function Fi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function _w(t){return t.startIndex+t[1].length}var Jq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Uw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},Vq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var rC=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Yft=new Set("!?\\\\/[]$%{}^&*()<>|+");function SIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Yft.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function Ow(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var sg="external",uk="base",jq="all";function zft(t){return!t||t===sg?new Set([sg]):t===jq?new Set([jq]):t===uk?new Set([uk]):Array.isArray(t)?new Set(t):new Set([sg])}var mo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),Wft=new Set([9,10,13]);function Jft(t){if(!t)return{xmlVersion:1,onLevel:mo.allow,nullLevel:mo.remove};let e=t.xmlVersion===1.1?1.1:1,r=mo[t.onNCR]??mo.allow,n=mo[t.nullNCR]??mo.remove,s=Math.max(n,mo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var nC=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=zft(this._limit.applyLimitsTo??sg),this._numericAllowed=e.numericAllowed??!0,this._baseMap=Ow(Uw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`);let e=new po("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new qw(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=cC(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=cG(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()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=AG(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 po(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=cC(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){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;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=cC(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=AG(t,a,s.removeNSPrefix);if(!u){let J=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${J}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!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,I={},B;B=Tmt(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Smt(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let J="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,J=H.tagContent}let F=new po(l);C&&(F[":@"]=C),F.add(s.textNodeName,J),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=cG(s.transformTagName,l,h,s));let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let J=new po(l);C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let J=new po(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(J[":@"]=C),this.addChild(r,J,this.readonlyMatcher,M),r=J}n="",a=m}}}else n+=t[a];return e.child};function Mmt(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 Fmt(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 Lmt(t,e,Line truncated
|
||||
`;function Jmt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(mG(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function JIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function fG(t,e){let r="";e.format&&(r=Wmt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new ra(c)):c instanceof ra&&n.push(c)}let s=Jmt(t,e),i=lk("qName",{xmlVersion:s}),o=new pu;return VIe(t,e,r,o,n,i)}function VIe(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=js(t);return c=hG(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=mG(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:JIe(u,!1,e,n,i),h=Vmt(A[":@"],e);n.push(d,h);let f=Kmt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=hG(I,e)),I=js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=pk(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=zw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=WIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=WIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=jIe(A[u],e):C=VIe(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function Vmt(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]=gu(t[s]),n=!0}return n?r:null}function jIe(t,e){if(!Array.isArray(t))return t!=null?js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=mG(s);if(i===e.textNodeName)r+=js(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=jmt(s[":@"],e),a=jIe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function jmt(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)}="${gu(s)}"`}return r}function mG(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 WIe(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:JIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=hG(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${gu(A)}"`}return i}function Kmt(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 hG(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 pG(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 Xmt={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 Eo(t){if(this.options=Object.assign({},Xmt,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 ra(r)):r instanceof ra&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
|
||||
`,this.newLine=`
|
||||
@@ -246,17 +246,17 @@ ${l}:${decodeURIComponent(A[l])}`}return a}return{name:xpt,async sendRequest(i,o
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new EA(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 mg(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function pg(t){let e=t.version?t.version:Pk;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 AN=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=$a()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==hA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==hA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==hA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==hA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==hA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==hA||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 De.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"}};SC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var yg=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"}};yg.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var pN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var a0t=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())})},Zz=class{constructor(e){this.contentLength=e,this.sentBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}setSentBytes(e){this.sentBytes=e}getTransferredBytes(){return this.sentBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.sentBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Sent ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setSentBytes(e.loadedBytes)}}startDisplayTimer(e=1e3){let r=()=>{this.display(),this.isDone()||(this.timeoutHandle=setTimeout(r,e))};this.timeoutHandle=setTimeout(r,e)}stopDisplayTimer(){this.timeoutHandle&&(clearTimeout(this.timeoutHandle),this.timeoutHandle=void 0),this.display()}};function Sbe(t,e,r){return a0t(this,void 0,void 0,function*(){var n;let s=new _d(t),i=s.getBlockBlobClient(),o=new Zz((n=r?.archiveSizeBytes)!==null&&n!==void 0?n:0),a={blockSize:r?.uploadChunkSize,concurrency:r?.uploadConcurrency,maxSingleShotSize:128*1024*1024,onProgress:o.onProgress()};try{o.startDisplayTimer(),G(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new Tv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw nt(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as Rbe from"buffer";import*as Fu from"fs";import*as Dbe from"stream";import*as kbe from"util";var Rv=function(t,e,r,n){function s(i){return i instanceof r?i:new r(function(o){o(i)})}return new(r||(r=Promise))(function(i,o){function a(u){try{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 Dv(t){return t?t>=200&&t<300:!1}function c0t(t){return t?t>=500:!0}function A0t(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function u0t(t){return Rv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function Tbe(t,e,r){return Rv(this,arguments,void 0,function*(n,s,i,o=E2,a=y2,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),!c0t(d)))return l;if(d&&(h=A0t(d),A=`Cache service responded with ${d}`),G(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){G(`${n} - Error is not retryable`);break}yield u0t(a),u++}throw Error(`${n} failed: ${A}`)})}function gN(t,e){return Rv(this,arguments,void 0,function*(r,n,s=E2,i=y2){return yield Tbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof su)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function TC(t,e){return Rv(this,arguments,void 0,function*(r,n,s=E2,i=y2){return yield Tbe(r,n,o=>o.message.statusCode,s,i)})}var ic=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 l0t(t,e){return ic(this,void 0,void 0,function*(){yield kbe.promisify(Dbe.pipeline)(t.message,e)})}var kv=class{constructor(e){this.contentLength=e,this.segmentIndex=0,this.segmentSize=0,this.segmentOffset=0,this.receivedBytes=0,this.displayedComplete=!1,this.startTime=Date.now()}nextSegment(e){this.segmentOffset=this.segmentOffset+this.segmentSize,this.segmentIndex=this.segmentIndex+1,this.segmentSize=e,this.receivedBytes=0,G(`Downloading segment at offset ${this.segmentOffset} with length ${this.segmentSize}...`)}setReceivedBytes(e){this.receivedBytes=e}getTransferredBytes(){return this.segmentOffset+this.receivedBytes}isDone(){return this.getTransferredBytes()===this.contentLength}display(){if(this.displayedComplete)return;let e=this.segmentOffset+this.receivedBytes,r=(100*(e/this.contentLength)).toFixed(1),n=Date.now()-this.startTime,s=(e/(1024*1024)/(n/1e3)).toFixed(1);re(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new p0t(t),s=Fbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Pbe(t,e,s):s.concurrentBlobDownloads?yield vbe(t,e,s):yield vv(t,e):yield vv(t,e)})}function Wbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Gy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function Ybe(t,e){return`bytes ${t}-${e}/*`}function C0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ybe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ybe(n,s)},o=yield TC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Dv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function I0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=RC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(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 C0t(t,i,()=>RC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{RC.closeSync(o)}})}function B0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Sbe(r,e,n)}else{let i=rW();G("Upload cache"),yield I0t(i,t,e,n),G("Commiting cache");let o=Au(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield B0t(i,t,o);if(!Dv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var UQe=be(jW(),1),Un=be(St(),1),ca=be(St(),1),Qg=be(St(),1),wg=be(St(),1),Ng=be(St(),1);var $W=be(St(),1),e7=be(St(),1),FQe=be(St(),1),LQe=be(St(),1),_Qe=be(St(),1);var KW=be(St(),1),XW=be(St(),1),vQe=be(St(),1),PQe=be(St(),1),MQe=be(St(),1),ZW=class extends MQe.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,PQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vQe.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?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},CP=new ZW;var t7=class extends _Qe.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:()=>CP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,LQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FQe.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(CP.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?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])G(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function nW(t,e,r){return Bo(this,void 0,void 0,function*(){let n=new p0t(t),s=Fbe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield Pbe(t,e,s):s.concurrentBlobDownloads?yield vbe(t,e,s):yield vv(t,e):yield vv(t,e)})}function Wbe(t,e,r){return Bo(this,void 0,void 0,function*(){let n=rW(),s=Gy(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield gN("reserveCache",()=>Bo(this,void 0,void 0,function*(){return n.postJson(yN("caches"),i)}))})}function Ybe(t,e){return`bytes ${t}-${e}/*`}function C0t(t,e,r,n,s){return Bo(this,void 0,void 0,function*(){G(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${Ybe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":Ybe(n,s)},o=yield TC(`uploadChunk (start: ${n}, end: ${s})`,()=>Bo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!Dv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function I0t(t,e,r,n){return Bo(this,void 0,void 0,function*(){let s=Au(r),i=yN(`caches/${e.toString()}`),o=RC.openSync(r,"r"),a=$z(n),c=_5("uploadConcurrency",a.uploadConcurrency),A=_5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];G("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>Bo(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 C0t(t,i,()=>RC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{RC.closeSync(o)}})}function B0t(t,e,r){return Bo(this,void 0,void 0,function*(){let n={size:r};return yield gN("commitCache",()=>Bo(this,void 0,void 0,function*(){return t.postJson(yN(`caches/${e.toString()}`),n)}))})}function sW(t,e,r,n){return Bo(this,void 0,void 0,function*(){if($z(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield Sbe(r,e,n)}else{let i=rW();G("Upload cache"),yield I0t(i,t,e,n),G("Commiting cache");let o=Au(e);re(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield B0t(i,t,o);if(!Dv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);re("Cache saved successfully")}})}var UQe=be(jW(),1),Un=be(St(),1),ca=be(St(),1),Qg=be(St(),1),wg=be(St(),1),Ng=be(St(),1);var $W=be(St(),1),e7=be(St(),1),FQe=be(St(),1),LQe=be(St(),1),_Qe=be(St(),1);var KW=be(St(),1),XW=be(St(),1),vQe=be(St(),1),PQe=be(St(),1),MQe=be(St(),1),ZW=class extends MQe.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,PQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,vQe.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?XW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,KW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,KW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?XW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},CP=new ZW;var t7=class extends _Qe.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:()=>CP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,LQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,FQe.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(CP.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?e7.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,$W.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)CP.internalBinaryWrite(e.scope[i],r.tag(2,$W.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?e7.UnknownFieldHandler.onWrite
Line truncated
|
||||
`));let{commands:n}=yield qQe(r,"create");yield YQe(n,t)})}var WC=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())})},Aa=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},Od=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},y7="cache write denied:",bP=class t extends Od{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},WQe=C2,QP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},wP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function JQe(t){if(!t||t.length===0)throw new Aa("Path Validation Error: At least one directory or file path is required")}function C7(t){if(t.length>512)throw new Aa(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new Aa(`Key Validation Error: ${t} cannot contain commas.`)}function VQe(){return EN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function NP(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=EN();G(`Cache service version: ${A}`),JQe(s);let u=tW();if(!_be(u)){re(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),G(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield UCt(s,i,o,a,c):yield _Ct(s,i,o,a,c)})}function _Ct(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)C7(h);let l=yield iw(),d="";try{let h;try{h=yield zbe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(WQe)?new QP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return re("Lookup only - skipping download"),h.cacheKey;d=MN.join(yield Vp(),yf(l)),G(`Archive Path: ${d}`),yield nW(h.archiveLocation,d,a),cA()&&(yield PN(d,l));let f=Au(d);return re(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield g7(d,l),re("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===Aa.name)throw h;f instanceof su&&typeof f.statusCode=="number"&&f.statusCode>=500?$o(`Failed to restore: ${h.message}`):nt(`Failed to restore: ${h.message}`)}finally{try{yield sw(d)}catch(h){G(`Failed to delete archive: ${h}`)}}})}function UCt(t,e,r,n){return WC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(G("Resolved Keys:"),G(JSON.stringify(u)),u.length>10)throw new Aa("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)C7(d);let l="";try{let d=m7(),h=yield iw(),f={key:i,restoreKeys:o,version:Gy(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(WQe)?new QP(I):C}if(!m.ok){G(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?re(`Cache hit for restore-key: ${m.matchedKey}`):re(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return re("Lookup only - skipping download"),m.matchedKey;l=MN.join(yield Vp(),yf(h)),G(`Archive path: ${l}`),G(`Starting download of archive to: ${l}`),yield nW(m.signedDownloadUrl,l,a);let g=Au(l);return re(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),cA()&&(yield PN(l,h)),yield g7(l,h),re("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===Aa.name)throw d;h instanceof su&&typeof h.statusCode=="number"&&h.statusCode>=500?$o(`Failed to restore: ${d.message}`):nt(`Failed to restore: ${d.message}`)}finally{try{l&&(yield sw(l))}catch(d){G(`Failed to delete archive: ${d}`)}}})}function xP(t,e,r){return WC(this,arguments,void 0,function*(n,s,i,o=!1){let a=EN();G(`Cache service version: ${a}`),JQe(n),C7(s);let c=tW();return Ube(c)?a==="v2"?yield HCt(n,s,i,o):yield OCt(n,s,i,o):(re(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),G(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function OCt(t,e,r){return WC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield iw(),f=-1,m=yield L5(n);if(G("Cache Paths:"),G(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield Vp(),g=MN.join(E,yf(h));G(`Archive Path: ${g}`);try{yield E7(E,m,h),cA()&&(yield PN(g,h));let C=10*1024
Line truncated
|
||||
See ${r.getDocumentationLink()}`;jQe.push(n),Up(n)}function KQe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(jQe))}import*as DP from"path";var XQe="GRADLE_ACTION_ID";var MP=".setup-gradle",_N=class t{getDependencyGraphOption(){let e=Ur("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 Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return YCt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,ZQe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return DP.resolve(Yf(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new kP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var JC=class{isCacheDisabled(){return VQe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=LN("gradle-home-cache-cleanup");if(e!==void 0)return TP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("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 Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var IA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return LN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return LN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return LN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return LN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new kP}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:(nt("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},kP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p
Line truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${iwe}], make sure you have checked out the target repository`);return`${tIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var sIt="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.",iIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",oIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",HP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function Awe(t){return t.getCacheProvider()==="external"?(OP(oIt),new HP("external")):t.isCacheDisabled()?(OP("Cache is disabled: will not restore state from previous builds."),new HP("disabled")):t.getCacheProvider()==="basic"?(OP(iIt),new UP):(OP(sIt),aIt())}async function aIt(){let t=cIt();return await import(nIt(t).href)}function cIt(){let t=import.meta.dirname,e=cwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(awe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function OP(t){console.info(t)}import qP from"fs";import uwe from"path";var GP=class{constructor(e){this.cacheFile=uwe.resolve(e,MP,"valid-wrappers.json")}load(){if(qP.existsSync(this.cacheFile))try{return JSON.parse(qP.readFileSync(this.cacheFile,"utf-8"))}catch(e){nt(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];qP.mkdirSync(uwe.dirname(this.cacheFile),{recursive:!0}),qP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var pwe=be(fwe(),1);import*as mwe from"util";import*as YP from"path";import*as zP from"fs";var fIt=mwe.promisify(zP.readdir);async function gwe(t){return(await Ewe(t)).filter(r=>(0,pwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>YP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Ewe(t){let e=await fIt(t),r=await Promise.all(e.map(async n=>{let s=YP.resolve(t,n),i=zP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ewe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var pIt={_useHtmlParser2:!1};function VC(t,e){if(!t)return e??pIt;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 j7={};Fa(j7,{contains:()=>oM,extract:()=>uBt,html:()=>oBt,merge:()=>Hwe,parseHTML:()=>cBt,root:()=>ABt,text:()=>Pg,xml:()=>aBt});var jf={};Fa(jf,{DocumentPosition:()=>lc,append:()=>qIt,appendChild:()=>HIt,compareDocumentPosition:()=>Lwe,existsOne:()=>Mwe,filter:()=>$C,find:()=>rM,findAll:()=>WIt,findOne:()=>nM,findOneChild:()=>zIt,getAttributeValue:()=>LIt,getChildren:()=>ZC,getElementById:()=>KIt,getElements:()=>jIt,getElementsByClassName:()=>XIt,getElementsByTagName:()=>vg,getElementsByTagType:()=>ZIt,getFeed:()=>V7,getInnerHTML:()=>FIt,getName:()=>UIt,getOuterHTML:()=>vwe,getParent:()=>Pwe,getSiblings:()=>W7,getText:()=>$P,hasAttrib:()=>_It,hasChildren:()=>Tr,innerText:()=>YN,isCDATA:()=>jC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>eM,prepend:()=>YIt,prependChild:()=>GIt,prevElementSibling:()=>tM,removeElement:()=>Gd,removeSubsets:()=>$It,replaceElement:()=>OIt,testElement:()=>VIt,textContent:()=>qd,uniqueSort:()=>Jf});var Ac={};Fa(Ac,{CDATA:()=>P7,Comment:()=>R7,Directive:()=>T7,Doctype:()=>M7,ElementType:()=>Jt,Root:()=>x7,Script:()=>D7,Style:()=>k7,Tag:()=>v7,Text:()=>S7,isTag:()=>N7});var Jt;(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"})(Jt||(Jt={}));function N7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var x7=Jt.Root,S7=Jt.Text,T7=Jt.Directive,R7=Jt.Comment,D7=Jt.Script,k7=Jt.Style,v7=Jt.Tag,P7=Jt.CDATA,M7=Jt.Doctype;var WP=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 KC(this,e)}},ON=class extends WP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends ON{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends ON{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends ON{constructor(e,r){super(r),this.name=e,this.type=Jt.Di
Line truncated
|
||||
See ${r.getDocumentationLink()}`;jQe.push(n),Up(n)}function KQe(){au("deprecation-collector_deprecations",JSON.stringify(B7)),au("deprecation-collector_errors",JSON.stringify(jQe))}import*as DP from"path";var XQe="GRADLE_ACTION_ID";var MP=".setup-gradle",_N=class t{getDependencyGraphOption(){let e=Ur("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 Gu("dependency-graph-continue-on-failure",!0)}getArtifactRetentionDays(){let e=Ur("artifact-retention-days");return YCt("artifact-retention-days",e,0)}getJobCorrelator(){return t.constructJobCorrelator(co.workflow,co.job,ZQe())}getReportDirectory(){let e=Ur("dependency-graph-report-dir");return DP.resolve(Yf(),e)}getDownloadArtifactName(){return process.env.DEPENDENCY_GRAPH_DOWNLOAD_ARTIFACT_NAME}getExcludeProjects(){return xg("dependency-graph-exclude-projects")}getIncludeProjects(){return xg("dependency-graph-include-projects")}getExcludeConfigurations(){return xg("dependency-graph-exclude-configurations")}getIncludeConfigurations(){return xg("dependency-graph-include-configurations")}getPluginRepository(){return new kP}static constructJobCorrelator(e,r,n){let s=this.describeMatrix(n),i=s?`${e}-${r}-${s}`:`${e}-${r}`;return this.sanitize(i)}static describeMatrix(e){G(`Got matrix json: ${e}`);let r=JSON.parse(e);return r?Object.values(r).join("-"):""}static sanitize(e){return e.replace(/[^a-zA-Z0-9_-\s]/g,"").replace(/\s+/g,"_").toLowerCase()}};var JC=class{isCacheDisabled(){return VQe()?Gu("cache-disabled"):!0}isCacheReadOnly(){return!this.isCacheWriteOnly()&&Gu("cache-read-only")}isCacheWriteOnly(){return Gu("cache-write-only")}isCacheOverwriteExisting(){return Gu("cache-overwrite-existing")}isCacheStrictMatch(){return Gu("gradle-home-cache-strict-match")}getCacheCleanupOption(){let e=LN("gradle-home-cache-cleanup");if(e!==void 0)return TP("The `gradle-home-cache-cleanup` input parameter has been replaced by `cache-cleanup`"),e?"always".toString():"never".toString();let r=Ur("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 Ur("cache-encryption-key")}getCacheIncludes(){return T6("gradle-home-cache-includes")}getCacheExcludes(){return T6("gradle-home-cache-excludes")}getCacheProvider(){let e=Ur("cache-provider");switch(e.toLowerCase().trim()){case"basic":return"basic";case"enhanced":case"":return"enhanced";case"external":return"external"}throw TypeError(`The value '${e}' is not valid for 'cache-provider'. Valid values are: [basic, enhanced, external].`)}};var IA=class t{static{this.DevelocityAccessKeyEnvVar="DEVELOCITY_ACCESS_KEY"}static{this.GradleEnterpriseAccessKeyEnvVar="GRADLE_ENTERPRISE_ACCESS_KEY"}getBuildScanPublishEnabled(){return Gu("build-scan-publish")&&this.verifyTermsOfUseAgreement()}getTermsOfUseUrl(){return Ur("build-scan-terms-of-use-url")}getTermsOfUseAgree(){return Ur("build-scan-terms-of-use-agree")}getDevelocityAccessKey(){return Ur("develocity-access-key")||process.env[t.DevelocityAccessKeyEnvVar]||process.env[t.GradleEnterpriseAccessKeyEnvVar]||""}getDevelocityTokenExpiry(){return Ur("develocity-token-expiry")}getDevelocityInjectionEnabled(){return LN("develocity-injection-enabled")}getDevelocityUrl(){return Ur("develocity-url")}getDevelocityAllowUntrustedServer(){return LN("develocity-allow-untrusted-server")}getDevelocityCaptureFileFingerprints(){return LN("develocity-capture-file-fingerprints")}getDevelocityEnforceUrl(){return LN("develocity-enforce-url")}getDevelocityPluginVersion(){return Ur("develocity-plugin-version")}getDevelocityCcudPluginVersion(){return Ur("develocity-ccud-plugin-version")}getPluginRepository(){return new kP}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:(nt("Terms of use at 'https://gradle.com/help/legal-terms-of-use' must be agreed in order to publish build scans."),!1)}},kP=class{getUrl(){return xg("gradle-plugin-repository-url")}getUsername(){return xg("gradle-plugin-repository-username")}getPassword(){return xg("gradle-plugin-repository-p
Line truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${iwe}], make sure you have checked out the target repository`);return`${tIt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var sIt="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.",iIt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",oIt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",HP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function Awe(t){return t.getCacheProvider()==="external"?(OP(oIt),new HP("external")):t.isCacheDisabled()?(OP("Cache is disabled: will not restore state from previous builds."),new HP("disabled")):t.getCacheProvider()==="basic"?(OP(iIt),new UP):(OP(sIt),aIt())}async function aIt(){let t=cIt();return await import(nIt(t).href)}function cIt(){let t=import.meta.dirname,e=cwe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(awe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function OP(t){console.info(t)}import qP from"fs";import uwe from"path";var GP=class{constructor(e){this.cacheFile=uwe.resolve(e,MP,"valid-wrappers.json")}load(){if(qP.existsSync(this.cacheFile))try{return JSON.parse(qP.readFileSync(this.cacheFile,"utf-8"))}catch(e){nt(`Failed to parse checksum cache file: ${e}`)}return[]}save(e){let r=[...new Set(e)];qP.mkdirSync(uwe.dirname(this.cacheFile),{recursive:!0}),qP.writeFileSync(this.cacheFile,JSON.stringify(r))}};var pwe=be(fwe(),1);import*as mwe from"util";import*as YP from"path";import*as zP from"fs";var fIt=mwe.promisify(zP.readdir);async function gwe(t){return(await Ewe(t)).filter(r=>(0,pwe.default)(r).endsWith("gradle-wrapper.jar")).map(r=>YP.relative(t,r)).sort((r,n)=>r.localeCompare(n))}async function Ewe(t){let e=await fIt(t),r=await Promise.all(e.map(async n=>{let s=YP.resolve(t,n),i=zP.lstatSync(s,{throwIfNoEntry:!1});return i===void 0?[]:i.isDirectory()?Ewe(s):new Promise(o=>o([s]))}));return Array.prototype.concat(...r)}var pIt={_useHtmlParser2:!1};function VC(t,e){if(!t)return e??pIt;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 j7={};Fa(j7,{contains:()=>oM,extract:()=>uBt,html:()=>oBt,merge:()=>Hwe,parseHTML:()=>cBt,root:()=>ABt,text:()=>Pg,xml:()=>aBt});var jf={};Fa(jf,{DocumentPosition:()=>lc,append:()=>qIt,appendChild:()=>HIt,compareDocumentPosition:()=>Lwe,existsOne:()=>Mwe,filter:()=>$C,find:()=>rM,findAll:()=>WIt,findOne:()=>nM,findOneChild:()=>zIt,getAttributeValue:()=>LIt,getChildren:()=>ZC,getElementById:()=>KIt,getElements:()=>jIt,getElementsByClassName:()=>XIt,getElementsByTagName:()=>vg,getElementsByTagType:()=>ZIt,getFeed:()=>V7,getInnerHTML:()=>FIt,getName:()=>UIt,getOuterHTML:()=>vwe,getParent:()=>Pwe,getSiblings:()=>W7,getText:()=>$P,hasAttrib:()=>_It,hasChildren:()=>Tr,innerText:()=>YN,isCDATA:()=>jC,isComment:()=>kg,isDocument:()=>uc,isTag:()=>Me,isText:()=>No,nextElementSibling:()=>eM,prepend:()=>YIt,prependChild:()=>GIt,prevElementSibling:()=>tM,removeElement:()=>Gd,removeSubsets:()=>$It,replaceElement:()=>OIt,testElement:()=>VIt,textContent:()=>qd,uniqueSort:()=>Jf});var Ac={};Fa(Ac,{CDATA:()=>P7,Comment:()=>R7,Directive:()=>T7,Doctype:()=>M7,ElementType:()=>Jt,Root:()=>x7,Script:()=>D7,Style:()=>k7,Tag:()=>v7,Text:()=>S7,isTag:()=>N7});var Jt;(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"})(Jt||(Jt={}));function N7(t){return t.type===Jt.Tag||t.type===Jt.Script||t.type===Jt.Style}var x7=Jt.Root,S7=Jt.Text,T7=Jt.Directive,R7=Jt.Comment,D7=Jt.Script,k7=Jt.Style,v7=Jt.Tag,P7=Jt.CDATA,M7=Jt.Doctype;var WP=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 KC(this,e)}},ON=class extends WP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},zu=class extends ON{constructor(){super(...arguments),this.type=Jt.Text}get nodeType(){return 3}},Tg=class extends ON{constructor(){super(...arguments),this.type=Jt.Comment}get nodeType(){return 8}},Rg=class extends ON{constructor(e,r){super(r),this.name=e,this.type=Jt.Di
Line truncated
|
||||
`:$P(t.children):jC(t)?$P(t.children):No(t)?t.data:""}function qd(t){return Array.isArray(t)?t.map(qd).join(""):Tr(t)&&!kg(t)?qd(t.children):No(t)?t.data:""}function YN(t){return Array.isArray(t)?t.map(YN).join(""):Tr(t)&&(t.type===Jt.Tag||jC(t))?YN(t.children):No(t)?t.data:""}function ZC(t){return Tr(t)?t.children:[]}function Pwe(t){return t.parent||null}function W7(t){let e=Pwe(t);if(e!=null)return ZC(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 LIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function _It(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function UIt(t){return t.name}function eM(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function tM(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Gd(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 OIt(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 HIt(t,e){if(Gd(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 qIt(t,e){Gd(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 GIt(t,e){if(Gd(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 YIt(t,e){Gd(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 $C(t,e,r=!0,n=1/0){return rM(t,Array.isArray(e)?e:[e],r,n)}function rM(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 zIt(t,e){return e.find(t)}function nM(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=nM(t,i.children,!0);if(o)return o}}return null}function Mwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Mwe(t,r.children))}function WIt(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]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var sM={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(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=>No(e)&&t(e.data):e=>No(e)&&e.data===t}};function J7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function JIt(t,e){return r=>t(r)||e(r)}function Fwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(sM,r)?sM[r](n):J7(r,n)});return e.length===0?null:e.reduce(JIt)}function VIt(t,e){let r=Fwe(t);return r?r(e):!0}function jIt(t,e,r,n=1/0){let s=Fwe(t);return s?$C(s,e,r,n):[]}function KIt(t,e,r=!0){return Array.isArray(e)||(e=[e]),nM(J7("id",t),e,r)}function vg(t,e,r=!0,n=1/0){return $C(sM.tag_name(t),e,r,n)}function XIt(t,e,r=!0,n=1/0){return $C(J7("class",t),e,r,n)}function ZIt(t,e,r=!0,n=1/0){return $C(sM.tag_type(t),e,r,n)}function $It(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 lc;(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"})(lc||(lc={}));function Lwe(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 lc.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?lc.FOLLOWING|lc.CONTAINED_BY:lc.FOLLOWING:a===t?lc.PRECEDING|lc.CONTAINS:lc.PRECEDING}function Jf(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Lwe(e,r);return n&lc.PRECEDING?-1:n&lc.FOLLOWING?1:0}),t}function V7(t){let e=iM(sBt,t);return e?e.name==="feed"?eBt(e):tBt(e):null}function eBt(t){var e;let r=t.children,n={type:"atom",items:vg("entry",r).map(o=>{var a;let{children:c}=o,A={media:_we(c)};xo(A,"id","id",c),xo(A,"title","title",c);let u=(a=iM("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Vf("summary",c)||Vf("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 fc=be(Kf(),1);var lJ={};function dJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function hJ(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 uJ(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 AJ=(t,e,r,n,s)=>{let i=s(e,uJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},EM={is:AJ,matches:AJ,where:AJ,not(t,e,r,n,s){let i=s(e,uJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=uJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(XN))?[lJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=dJ(c,i);if(a&&c!==fc.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,...hJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function NNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in EM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return EM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:gM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,wNe.parse)(A);return EM.is(t,u,r,n,s)}if(typeof c=="function")return cJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in cI)return cI[o](t,a,r,n);if(o in $N){let u=$N[o];return cJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(oI(),1);function fJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.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()),INe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return NNe(t,e,r,n,s);case mc.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 mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=fJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=fJ(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=fJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.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 mc.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 mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function SNe(t,e,r){let n=yM(t,e,r);return dJ(n,e.adapter)}function yM(t,e,r){let n=typeof t=="string"?(0,bA.parse)(t):t;return CM(n,e,r)}function TNe(t){return t.type===bA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(TNe)))}var jBt={type:bA.SelectorType.Descendant},KBt={type:"_flexibleDescendant"},XBt={type:bA.SelectorType.Pseudo,name:"scope",data:null};function ZBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===lJ||i&&e.isTag(i)});fo
Line truncated
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var fc=be(Kf(),1);var lJ={};function dJ(t,e){return t===fc.default.falseFunc?fc.default.falseFunc:r=>e.isTag(r)&&t(r)}function hJ(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 uJ(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 AJ=(t,e,r,n,s)=>{let i=s(e,uJ(r),n);return i===fc.default.trueFunc?t:i===fc.default.falseFunc?fc.default.falseFunc:o=>i(o)&&t(o)},EM={is:AJ,matches:AJ,where:AJ,not(t,e,r,n,s){let i=s(e,uJ(r),n);return i===fc.default.falseFunc?t:i===fc.default.trueFunc?fc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=uJ(r);o.relativeSelector=!0;let a=e.some(u=>u.some(XN))?[lJ]:void 0,c=s(e,o,a);if(c===fc.default.falseFunc)return fc.default.falseFunc;let A=dJ(c,i);if(a&&c!==fc.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,...hJ(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function NNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in EM))throw new Error(`Unknown pseudo-class :${o}(${a})`);return EM[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:gM[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,wNe.parse)(A);return EM.is(t,u,r,n,s)}if(typeof c=="function")return cJ(c,o,a,1),u=>c(u,a)&&t(u);if(o in cI)return cI[o](t,a,r,n);if(o in $N){let u=$N[o];return cJ(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var mc=be(oI(),1);function fJ(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function xNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case mc.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case mc.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case mc.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()),INe[e.action](t,e,r)}case mc.SelectorType.Pseudo:return NNe(t,e,r,n,s);case mc.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 mc.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=fJ(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=fJ(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=fJ(A,i));return!1};case mc.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case mc.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case mc.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 mc.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 mc.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function SNe(t,e,r){let n=yM(t,e,r);return dJ(n,e.adapter)}function yM(t,e,r){let n=typeof t=="string"?(0,bA.parse)(t):t;return CM(n,e,r)}function TNe(t){return t.type===bA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(TNe)))}var jBt={type:bA.SelectorType.Descendant},KBt={type:"_flexibleDescendant"},XBt={type:bA.SelectorType.Pseudo,name:"scope",data:null};function ZBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===lJ||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(zNe,`\r
|
||||
`)}}).toArray()}var RJ={};Fa(RJ,{extract:()=>hQt});function dQt(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 hQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=dQt(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 $f=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}}};$f.prototype.cheerio="[cheerio object]";$f.prototype.splice=Array.prototype.splice;$f.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign($f.prototype,nJ,NJ,xJ,SJ,TJ,RJ);function WNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=VC(s),a=t(n,o,i,null);class c extends $f{_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&&dc(u))return u;let f=VC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&zN(u)?t(u,f,!1,null).children:fQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?zN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,j7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function fQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var mQt=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]),Fr="\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 Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function NM(t){return t>=55296&&t<=57343}function JNe(t){return t>=56320&&t<=57343}function VNe(t,e){return(t-55296)*1024+9216+e}function xM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function SM(t){return t>=64976&&t<=65007||mQt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`)}}).toArray()}var RJ={};Fa(RJ,{extract:()=>hQt});function dQt(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 hQt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=dQt(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 $f=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}}};$f.prototype.cheerio="[cheerio object]";$f.prototype.splice=Array.prototype.splice;$f.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign($f.prototype,nJ,NJ,xJ,SJ,TJ,RJ);function WNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=VC(s),a=t(n,o,i,null);class c extends $f{_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&&dc(u))return u;let f=VC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=dc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&zN(u)?t(u,f,!1,null).children:fQt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?zN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):dc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,j7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function fQt(t){return!!t.name||t.type===Ac.Root||t.type===Ac.Text||t.type===Ac.Comment}var mQt=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]),Fr="\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 Oi={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function NM(t){return t>=55296&&t<=57343}function JNe(t){return t>=56320&&t<=57343}function VNe(t,e){return(t-55296)*1024+9216+e}function xM(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function SM(t){return t>=64976&&t<=65007||mQt.has(t)}var V;(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(`
|
||||
@@ -279,7 +279,7 @@ ${t.map(({jdkVersion:e,jdkPath:r})=>` <toolchain>
|
||||
</toolchain>`).join(`
|
||||
`)}
|
||||
</toolchains>
|
||||
`}function I4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var y$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",B4t="GRADLE_USER_HOME",b4t="DEVELOCITY_CACHE_TOKEN";async function OFe(t,e,r){let n=await HFe(),s=await w4t();if(process.env[y$])return re("Gradle setup only performed on first gradle/actions step in workflow."),!1;Ws(y$,!0),au(y$,!0),au(B4t,s),UFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await rwe(e);return au(b4t,o??""),await(await Awe(t)).restore(s,Q4t(t,i,o)),await _Fe(r,Yf(),s),ewe(e),!0}function Q4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function w4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yf();return I$.resolve(r,t)}let e=I$.resolve(await HFe(),".gradle");if(C$.existsSync(e))return re(`Gradle User Home already exists at ${e}`),Ws("GRADLE_USER_HOME",e),e;if(a_.platform()==="win32"&&e.startsWith("C:\\")&&C$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return re(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Ws("GRADLE_USER_HOME",r),r}return Ws("GRADLE_USER_HOME",e),e}async function HFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return re("Could not determine user.home from java -version output. Using os.homedir()."),a_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as oB from"fs";import*as CLe from"os";import*as xm from"path";import*as b$ from"crypto";import*as vE from"fs";var x4t=be(g2(),1);import*as wS from"path";var u_=be(g2(),1);import*as GFe from"stream";import*as YFe from"util";import{ok as T4t}from"assert";var qFe=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 qFe(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;re(i.message)}let s=this.getSleepAmount();re(`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 qFe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=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)}},R4t=process.platform==="win32",AUr=process.platform==="darwin",D4t="actions/tool-cache";function zFe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||wS.join(JFe(),b$.randomUUID()),yield _p(wS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=B$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=B$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new c_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield k4t(t,e||"",r,n)}),c=>!(c instanceof A_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function k4t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(D4t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new A_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=YFe.promisify(GFe.pipeline),c=B$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield LD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function WFe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return
Line truncated
|
||||
`}function I4t(t,e){let r=e.split("<toolchains>").pop();return t.replace("</toolchains>",r)}var y$="GRADLE_BUILD_ACTION_SETUP_COMPLETED",B4t="GRADLE_USER_HOME",b4t="DEVELOCITY_CACHE_TOKEN";async function OFe(t,e,r){let n=await HFe(),s=await w4t();if(process.env[y$])return re("Gradle setup only performed on first gradle/actions step in workflow."),!1;Ws(y$,!0),au(y$,!0),au(B4t,s),UFe(n,s,t.getCacheEncryptionKey());let i=e.getDevelocityUrl()||void 0,o=await rwe(e);return au(b4t,o??""),await(await Awe(t)).restore(s,Q4t(t,i,o)),await _Fe(r,Yf(),s),ewe(e),!0}function Q4t(t,e,r){return{disabled:t.isCacheDisabled(),readOnly:t.isCacheReadOnly(),writeOnly:t.isCacheWriteOnly(),overwriteExisting:t.isCacheOverwriteExisting(),strictMatch:t.isCacheStrictMatch(),cleanup:t.getCacheCleanupOption(),encryptionKey:t.getCacheEncryptionKey()||void 0,develocityAccessToken:r,develocityServerUrl:e,includes:t.getCacheIncludes(),excludes:t.getCacheExcludes()}}async function w4t(){let t=process.env.GRADLE_USER_HOME;if(t){let r=Yf();return I$.resolve(r,t)}let e=I$.resolve(await HFe(),".gradle");if(C$.existsSync(e))return re(`Gradle User Home already exists at ${e}`),Ws("GRADLE_USER_HOME",e),e;if(a_.platform()==="win32"&&e.startsWith("C:\\")&&C$.existsSync("D:\\a\\")){let r="D:\\a\\.gradle";return re(`Setting GRADLE_USER_HOME to ${r} to leverage (potentially) faster drive.`),Ws("GRADLE_USER_HOME",r),r}return Ws("GRADLE_USER_HOME",e),e}async function HFe(){let t=await LQ("java",["-XshowSettings:properties","-version"],{silent:!0}),e=/user\.home = (\S*)/i,r=t.stderr.match(e);if(r==null||r.length<=1)return re("Could not determine user.home from java -version output. Using os.homedir()."),a_.homedir();let n=r[1];return G(`Determined user.home from java -version output: '${n}'`),n}import*as oB from"fs";import*as CLe from"os";import*as xm from"path";import*as b$ from"crypto";import*as vE from"fs";var x4t=be(g2(),1);import*as wS from"path";var u_=be(g2(),1);import*as GFe from"stream";import*as YFe from"util";import{ok as T4t}from"assert";var qFe=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 qFe(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;re(i.message)}let s=this.getSleepAmount();re(`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 qFe(this,void 0,void 0,function*(){return new Promise(r=>setTimeout(r,e*1e3))})}};var kE=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)}},R4t=process.platform==="win32",lUr=process.platform==="darwin",D4t="actions/tool-cache";function zFe(t,e,r,n){return kE(this,void 0,void 0,function*(){e=e||wS.join(JFe(),b$.randomUUID()),yield _p(wS.dirname(e)),G(`Downloading ${t}`),G(`Destination ${e}`);let s=3,i=B$("TEST_DOWNLOAD_TOOL_RETRY_MIN_SECONDS",10),o=B$("TEST_DOWNLOAD_TOOL_RETRY_MAX_SECONDS",20);return yield new c_(s,i,o).execute(()=>kE(this,void 0,void 0,function*(){return yield k4t(t,e||"",r,n)}),c=>!(c instanceof A_&&c.httpStatusCode&&c.httpStatusCode<500&&c.httpStatusCode!==408&&c.httpStatusCode!==429))})}function k4t(t,e,r,n){return kE(this,void 0,void 0,function*(){if(vE.existsSync(e))throw new Error(`Destination file path ${e} already exists`);let s=new gn(D4t,[],{allowRetries:!1});r&&(G("set auth"),n===void 0&&(n={}),n.authorization=r);let i=yield s.get(t,n);if(i.message.statusCode!==200){let u=new A_(i.message.statusCode);throw G(`Failed to download from "${t}". Code(${i.message.statusCode}) Message(${i.message.statusMessage})`),u}let o=YFe.promisify(GFe.pipeline),c=B$("TEST_DOWNLOAD_TOOL_RESPONSE_MESSAGE_FACTORY",()=>i.message)(),A=!1;try{return yield o(c,vE.createWriteStream(e)),G("download complete"),A=!0,e}finally{if(!A){G("download failed");try{yield LD(e)}catch(u){G(`Failed to delete '${e}'. ${u.message}`)}}}})}function WFe(t,e){return kE(this,void 0,void 0,function*(){if(!t)throw new Error("parameter 'file' is required");return
Line truncated
|
||||
`," Line feed \\n"]]),MLe=new Map([...aee,["\\"," Backslash \\"],["/"," Forward slash /"]]);function FLe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of MLe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(MLe.values()).toString()}
|
||||
@@ -327,12 +327,12 @@ If the error persists, please check whether Actions and API requests are operati
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var GYr=new pb;import*as vae from"path";import Pae from"fs";var Hnr="dependency-graph_";async function iWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await qnr(t);return}re("Enabling dependency graph generation"),Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",$nr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yf()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&Ws(t,e)}async function qnr(t){if(esr()){re("Dependency graph not supported in the ACT environment.");return}try{await znr(await Gnr(t))}catch(e){Xnr(t,"download-and-submit",e)}}async function Gnr(t){let e=co.payload.workflow_run?{token:FP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new pb,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Hnr)),s=t.getDownloadArtifactName();s&&(re(`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});re(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ynr()}async function Ynr(){let r=(await(await KQ(`${Vnr()}/**/*.json`)).glob()).filter(n=>!jnr(n));return r.forEach(Knr),re(`Found dependency graph files: ${r.join(", ")}`),r}async function znr(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await Jnr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Wnr(e,r)),r}}function Wnr(t,e){let n=`Dependency submission failed for ${oWe(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 zYr=new pb;import*as vae from"path";import Pae from"fs";var Hnr="dependency-graph_";async function iWe(t){let e=t.getDependencyGraphOption();if(e==="disabled"){Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","false");return}if(e==="download-and-submit"){$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),await qnr(t);return}re("Enabling dependency graph generation"),Ws("GITHUB_DEPENDENCY_GRAPH_ENABLED","true"),$i("GITHUB_DEPENDENCY_GRAPH_CONTINUE_ON_FAILURE",t.getDependencyGraphContinueOnFailure()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_CORRELATOR",t.getJobCorrelator()),$i("GITHUB_DEPENDENCY_GRAPH_JOB_ID",co.runId.toString()),$i("GITHUB_DEPENDENCY_GRAPH_REF",co.ref),$i("GITHUB_DEPENDENCY_GRAPH_SHA",tsr()),$i("GITHUB_DEPENDENCY_GRAPH_WORKSPACE",Yf()),$i("DEPENDENCY_GRAPH_REPORT_DIR",t.getReportDirectory()),$i("DEPENDENCY_GRAPH_EXCLUDE_PROJECTS",t.getExcludeProjects()),$i("DEPENDENCY_GRAPH_INCLUDE_PROJECTS",t.getIncludeProjects()),$i("DEPENDENCY_GRAPH_EXCLUDE_CONFIGURATIONS",t.getExcludeConfigurations()),$i("DEPENDENCY_GRAPH_INCLUDE_CONFIGURATIONS",t.getIncludeConfigurations()),$i("GRADLE_PLUGIN_REPOSITORY_URL",t.getPluginRepository().getUrl()),$i("GRADLE_PLUGIN_REPOSITORY_USERNAME",t.getPluginRepository().getUsername()),$i("GRADLE_PLUGIN_REPOSITORY_PASSWORD",t.getPluginRepository().getPassword())}function $i(t,e){process.env[t]||e!==void 0&&Ws(t,e)}async function qnr(t){if(rsr()){re("Dependency graph not supported in the ACT environment.");return}try{await znr(await Gnr(t))}catch(e){$nr(t,"download-and-submit",e)}}async function Gnr(t){let e=co.payload.workflow_run?{token:FP(),workflowRunId:co.payload.workflow_run.id,repositoryName:co.repo.repo,repositoryOwner:co.repo.owner}:void 0,r=new pb,n=(await r.listArtifacts({latest:!0,findBy:e})).artifacts.filter(i=>i.name.startsWith(Hnr)),s=t.getDownloadArtifactName();s&&(re(`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});re(`Downloading dependency-graph artifact ${i.name} to ${o.downloadPath}`)}return Ynr()}async function Ynr(){let r=(await(await KQ(`${Knr()}/**/*.json`)).glob()).filter(n=>!Xnr(n));return r.forEach(Znr),re(`Found dependency graph files: ${r.join(", ")}`),r}async function znr(t){if(t.length===0){re("No dependency graph files found to submit.");return}for(let e of t)try{await Jnr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Wnr(e,r)),r}}function Wnr(t,e){let n=`Dependency submission failed for ${oWe(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 Jnr(t){let e=Znr(),r=Pae.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=co.repo.owner,n.repo=co.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=oWe(t);R6(`Submitted ${i}: ${s.data.message}`)}function Vnr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function jnr(t){let e=`${t}.processed`;return Pae.existsSync(e)}function Knr(t){let e=`${t}.processed`;Pae.writeFileSync(e,"")}function Xnr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);nt(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function Znr(){return AA(FP())}function oWe(t){let e=Yf();return vae.relative(e,t)}function $nr(){let t=co;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 esr(){return process.env.ACT!==void 0}function rsr(t=process.platform){return t==="win32"?50:0}async function aWe(t=process.platform){let e=rsr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function nsr(){try{FN()==="gradle/gradle-build-action"&&RP("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),$Qe("gradle/actions/setup-gradle"),await OFe(new JC,new IA,new PP),await iWe(new _N);let t=new vP;t.verifyNoArguments(),await w$(t.getGradleVersion()),KQe()}catch(t){LFe(t)}await aWe()}nsr();export{nsr as run};
|
||||
`:n}async function Jnr(t){let e=esr(),r=Pae.readFileSync(t,"utf8"),n=jnr(JSON.parse(r),co.repo.owner,co.repo.repo),s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=oWe(t);R6(`Submitted ${i}: ${s.data.message}`)}var Vnr=["version","job","sha","ref","detector","metadata","manifests","scanned"];function jnr(t,e,r){let n={owner:e,repo:r};for(let s of Vnr)t[s]!==void 0&&(n[s]=t[s]);return n}function Knr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function Xnr(t){let e=`${t}.processed`;return Pae.existsSync(e)}function Znr(t){let e=`${t}.processed`;Pae.writeFileSync(e,"")}function $nr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new RE(r);nt(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function esr(){return AA(FP())}function oWe(t){let e=Yf();return vae.relative(e,t)}function tsr(){let t=co;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 rsr(){return process.env.ACT!==void 0}function ssr(t=process.platform){return t==="win32"?50:0}async function aWe(t=process.platform){let e=ssr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}async function isr(){try{FN()==="gradle/gradle-build-action"&&RP("The action `gradle/gradle-build-action` has been replaced by `gradle/actions/setup-gradle`"),$Qe("gradle/actions/setup-gradle"),await OFe(new JC,new IA,new PP),await iWe(new _N);let t=new vP;t.verifyNoArguments(),await w$(t.getGradleVersion()),KQe()}catch(t){LFe(t)}await aWe()}isr();export{isr as run};
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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
|
||||
}
|
||||
Vendored
+40
-40
@@ -1,9 +1,9 @@
|
||||
import {createRequire} from 'module';const require=createRequire(import.meta.url);
|
||||
var oze=Object.create;var c3=Object.defineProperty;var aze=Object.getOwnPropertyDescriptor;var cze=Object.getOwnPropertyNames;var Aze=Object.getPrototypeOf,uze=Object.prototype.hasOwnProperty;var w=(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 y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ra=(t,e)=>{for(var r in e)c3(t,r,{get:e[r],enumerable:!0})},lze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of cze(e))!uze.call(t,s)&&s!==r&&c3(t,s,{get:()=>e[s],enumerable:!(n=aze(e,s))||n.enumerable});return t};var xe=(t,e,r)=>(r=t!=null?oze(Aze(t)):{},lze(e||!t||!t.__esModule?c3(r,"default",{value:t,enumerable:!0}):r,t));var gae=y(b0=>{"use strict";var _rr=w("net"),gze=w("tls"),d3=w("http"),fae=w("https"),Eze=w("events"),Urr=w("assert"),yze=w("util");b0.httpOverHttp=Cze;b0.httpsOverHttp=Ize;b0.httpOverHttps=Bze;b0.httpsOverHttps=bze;function Cze(t){var e=new Jl(t);return e.request=d3.request,e}function Ize(t){var e=new Jl(t);return e.request=d3.request,e.createSocket=mae,e.defaultPort=443,e}function Bze(t){var e=new Jl(t);return e.request=fae.request,e}function bze(t){var e=new Jl(t);return e.request=fae.request,e.createSocket=mae,e.defaultPort=443,e}function Jl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||d3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=pae(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)})}yze.inherits(Jl,Eze.EventEmitter);Jl.prototype.addRequest=function(e,r,n,s){var i=this,o=h3({request:e},i.options,pae(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)}})};Jl.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=h3({},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")),Lh("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){Lh("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){Lh("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 Lh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Lh(`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)}};Jl.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 mae(t,e){var r=this;Jl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=h3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=gze.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function pae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function h3(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 Lh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Lh=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)}:Lh=function(){};b0.debug=Lh});var f3=y((Hrr,Eae)=>{Eae.exports=gae()});var Kr=y((qrr,yae)=>{yae.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 or=y((Grr,Yae)=>{"use strict";var Cae=Symbol.for("undici.error.UND_ERR"),Xr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Cae]===!0}[Cae]=!0},Iae=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),m3=class extends Xr{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[Iae]===!0}[Iae]=!0},Bae=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),p3=class extends Xr{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[Bae]===!0}[Bae]=!0},bae=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),g3=class extends Xr{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[bae]===!0}[bae]=!0},Qae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),E3=class extends Xr{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[Qae]===!0}[Qae]=!0},wae=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),y3=class extends Xr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function U7e(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(b7e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function O7e(){return"allowed"}function H7e(){return"success"}function q7e(){return"success"}function G7e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Y7e(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&&u4(t.origin)&&!u4(Sb(t))&&(e=null);break;case"same-origin":qT(t,Sb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function v0(t,e){return t}function z7e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:v0(t.domainLookupStartTime,r),domainLookupEndTime:v0(t.domainLookupEndTime,r),connectionStartTime:v0(t.connectionStartTime,r),connectionEndTime:v0(t.connectionEndTime,r),secureConnectionStartTime:v0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W7e(t){return v0(S7e.now(),t)}function J7e(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 sAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V7e(t){return{referrerPolicy:t.referrerPolicy}}function j7e(t){let e=t.referrerPolicy;ap(e);let r=null;if(t.referrer==="client"){let a=Zce();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=A4(r),s=A4(r,!0);n.toString().length>4096&&(n=s);let i=qT(t,n),o=xb(n)&&!xb(t.url);switch(e){case"origin":return s??A4(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=Sb(t);return qT(n,a)?n:xb(n)&&!xb(a)?"no-referrer":s}default:return o?"no-referrer":s}}function A4(t,e){return ap(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 xb(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 K7e(t,e){if(HT===void 0)return!0;let r=iAe(e);if(r==="no metadata"||r.length===0)return!0;let n=Z7e(r),s=$7e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=HT.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)),eJe(c,a))return!0}return!1}var X7e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function iAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=X7e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();eAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Z7e(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 $7e(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 eJe(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 tJe(t){}function qT(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function rJe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function nJe(t){return t.controller.state==="aborted"}function sJe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iJe(t){return D7e[t.toLowerCase()]??t}function oJe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ap(typeof e=="string"),e}var aJe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
var oze=Object.create;var c3=Object.defineProperty;var aze=Object.getOwnPropertyDescriptor;var cze=Object.getOwnPropertyNames;var Aze=Object.getPrototypeOf,uze=Object.prototype.hasOwnProperty;var w=(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 y=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}},Ra=(t,e)=>{for(var r in e)c3(t,r,{get:e[r],enumerable:!0})},lze=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of cze(e))!uze.call(t,s)&&s!==r&&c3(t,s,{get:()=>e[s],enumerable:!(n=aze(e,s))||n.enumerable});return t};var xe=(t,e,r)=>(r=t!=null?oze(Aze(t)):{},lze(e||!t||!t.__esModule?c3(r,"default",{value:t,enumerable:!0}):r,t));var gae=y(b0=>{"use strict";var Orr=w("net"),gze=w("tls"),d3=w("http"),fae=w("https"),Eze=w("events"),Hrr=w("assert"),yze=w("util");b0.httpOverHttp=Cze;b0.httpsOverHttp=Ize;b0.httpOverHttps=Bze;b0.httpsOverHttps=bze;function Cze(t){var e=new Jl(t);return e.request=d3.request,e}function Ize(t){var e=new Jl(t);return e.request=d3.request,e.createSocket=mae,e.defaultPort=443,e}function Bze(t){var e=new Jl(t);return e.request=fae.request,e}function bze(t){var e=new Jl(t);return e.request=fae.request,e.createSocket=mae,e.defaultPort=443,e}function Jl(t){var e=this;e.options=t||{},e.proxyOptions=e.options.proxy||{},e.maxSockets=e.options.maxSockets||d3.Agent.defaultMaxSockets,e.requests=[],e.sockets=[],e.on("free",function(n,s,i,o){for(var a=pae(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)})}yze.inherits(Jl,Eze.EventEmitter);Jl.prototype.addRequest=function(e,r,n,s){var i=this,o=h3({request:e},i.options,pae(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)}})};Jl.prototype.createSocket=function(e,r){var n=this,s={};n.sockets.push(s);var i=h3({},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")),Lh("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){Lh("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){Lh("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 Lh("tunneling connection has established"),n.sockets[n.sockets.indexOf(s)]=d,r(d)}function u(l){o.removeAllListeners(),Lh(`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)}};Jl.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 mae(t,e){var r=this;Jl.prototype.createSocket.call(r,t,function(n){var s=t.request.getHeader("host"),i=h3({},r.options,{socket:n,servername:s?s.replace(/:.*$/,""):t.host}),o=gze.connect(0,i);r.sockets[r.sockets.indexOf(n)]=o,e(o)})}function pae(t,e,r){return typeof t=="string"?{host:t,port:e,localAddress:r}:t}function h3(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 Lh;process.env.NODE_DEBUG&&/\btunnel\b/.test(process.env.NODE_DEBUG)?Lh=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)}:Lh=function(){};b0.debug=Lh});var f3=y((Grr,Eae)=>{Eae.exports=gae()});var Kr=y((Yrr,yae)=>{yae.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 or=y((zrr,Yae)=>{"use strict";var Cae=Symbol.for("undici.error.UND_ERR"),Xr=class extends Error{constructor(e){super(e),this.name="UndiciError",this.code="UND_ERR"}static[Symbol.hasInstance](e){return e&&e[Cae]===!0}[Cae]=!0},Iae=Symbol.for("undici.error.UND_ERR_CONNECT_TIMEOUT"),m3=class extends Xr{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[Iae]===!0}[Iae]=!0},Bae=Symbol.for("undici.error.UND_ERR_HEADERS_TIMEOUT"),p3=class extends Xr{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[Bae]===!0}[Bae]=!0},bae=Symbol.for("undici.error.UND_ERR_HEADERS_OVERFLOW"),g3=class extends Xr{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[bae]===!0}[bae]=!0},Qae=Symbol.for("undici.error.UND_ERR_BODY_TIMEOUT"),E3=class extends Xr{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[Qae]===!0}[Qae]=!0},wae=Symbol.for("undici.error.UND_ERR_RESPONSE_STATUS_CODE"),y3=class extends Xr{constructor(e,r,n,s){super(e),this.name="ResponseStatusCodeError",this.message=e||"Response Status Code Error",this.code="UND_ERR_RESPONSE_STATUS_C
Line truncated
|
||||
`)||t.includes("\r")||t.includes("\0"))===!1}function U7e(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(b7e.has(o)){s=o;break}}s!==""&&(t.referrerPolicy=s)}function O7e(){return"allowed"}function H7e(){return"success"}function q7e(){return"success"}function G7e(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function Y7e(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&&u4(t.origin)&&!u4(Sb(t))&&(e=null);break;case"same-origin":qT(t,Sb(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function v0(t,e){return t}function z7e(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:v0(t.domainLookupStartTime,r),domainLookupEndTime:v0(t.domainLookupEndTime,r),connectionStartTime:v0(t.connectionStartTime,r),connectionEndTime:v0(t.connectionEndTime,r),secureConnectionStartTime:v0(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function W7e(t){return v0(S7e.now(),t)}function J7e(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 sAe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function V7e(t){return{referrerPolicy:t.referrerPolicy}}function j7e(t){let e=t.referrerPolicy;ap(e);let r=null;if(t.referrer==="client"){let a=Zce();if(!a||a.origin==="null")return"no-referrer";r=new URL(a)}else t.referrer instanceof URL&&(r=t.referrer);let n=A4(r),s=A4(r,!0);n.toString().length>4096&&(n=s);let i=qT(t,n),o=xb(n)&&!xb(t.url);switch(e){case"origin":return s??A4(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=Sb(t);return qT(n,a)?n:xb(n)&&!xb(a)?"no-referrer":s}default:return o?"no-referrer":s}}function A4(t,e){return ap(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 xb(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 K7e(t,e){if(HT===void 0)return!0;let r=iAe(e);if(r==="no metadata"||r.length===0)return!0;let n=Z7e(r),s=$7e(r,n);for(let i of s){let o=i.algo,a=i.hash,c=HT.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)),eJe(c,a))return!0}return!1}var X7e=/(?<algo>sha256|sha384|sha512)-((?<hash>[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i;function iAe(t){let e=[],r=!0;for(let n of t.split(" ")){r=!1;let s=X7e.exec(n);if(s===null||s.groups===void 0||s.groups.algo===void 0)continue;let i=s.groups.algo.toLowerCase();eAe.includes(i)&&e.push(s.groups)}return r===!0?"no metadata":e}function Z7e(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 $7e(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 eJe(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 tJe(t){}function qT(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function rJe(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}function nJe(t){return t.controller.state==="aborted"}function sJe(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function iJe(t){return D7e[t.toLowerCase()]??t}function oJe(t){let e=JSON.stringify(t);if(e===void 0)throw new TypeError("Value is not JSON serializable");return ap(typeof e=="string"),e}var aJe=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function oAe(t,e,r=0,n=1){class s{
Line truncated
|
||||
`);function LJe(t){for(let e=0;e<t.length;++e)if((t.charCodeAt(e)&-128)!==0)return!1;return!0}function _Je(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 UJe(t,e){YT(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&&zT(t,MJe,i)||i.position===t.length-4&&zT(t,FJe,i))return s;if(t[i.position]!==13||t[i.position+1]!==10)return"failure";i.position+=2;let a=OJe(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",LJe(u)||(u=""),h=new vJe([d],A,{type:u})):h=SJe(Buffer.from(d)),YT(EAe(c)),YT(typeof h=="string"&&EAe(h)||RJe(h)),s.push(DJe(c,h,A))}}function OJe(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=M0(a=>a!==10&&a!==13&&a!==58,t,e);if(o=g4(o,!0,!0,a=>a===9||a===32),!TJe.test(o.toString())||t[e.position]!==58)return"failure";switch(e.position++,M0(a=>a===32||a===9,t,e),xJe(o)){case"content-disposition":{if(r=n=null,!zT(t,PJe,e)||(e.position+=17,r=IAe(t,e),r===null))return"failure";if(zT(t,CAe,e)){let a=e.position+CAe.length;if(t[a]===42&&(e.position+=1,a+=1),t[a]!==61||t[a+1]!==34||(e.position+=12,n=IAe(t,e),n===null))return"failure"}break}case"content-type":{let a=M0(c=>c!==10&&c!==13,t,e);a=g4(a,!1,!0,c=>c===9||c===32),s=yAe(a);break}case"content-transfer-encoding":{let a=M0(c=>c!==10&&c!==13,t,e);a=g4(a,!1,!0,c=>c===9||c===32),i=yAe(a);break}default:M0(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13&&t[e.position+1]!==10)return"failure";e.position+=2}}function IAe(t,e){YT(t[e.position-1]===34);let r=M0(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 M0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function g4(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 zT(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}BAe.exports={multipartFormDataParser:UJe,validateBoundary:_Je}});var _0=y((fnr,vAe)=>{"use strict";var Db=kt(),{ReadableStreamFrom:HJe,isBlobLike:QAe,isReadableStreamLike:qJe,readableStreamClose:GJe,createDeferredPromise:YJe,fullyReadBody:zJe,extractMimeType:WJe,utf8DecodeBytes:xAe}=Uo(),{FormData:wAe}=Rb(),{kState:L0}=_h(),{webidl:JJe}=Gs(),{Blob:VJe}=w("node:buffer"),E4=w("node:assert"),{isErrored:SAe,isDisturbed:jJe}=w("node:stream"),{isArrayBuffer:KJe}=w("node:util/types"),{serializeAMimeType:XJe}=eo(),{multipartFormDataParser:ZJe}=bAe(),y4;try{let t=w("node:crypto");y4=e=>t.randomInt(0,e)}catch{y4=t=>Math.floor(Math.random(t))}var WT=new TextEncoder;function $Je(){}var TAe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,RAe;TAe&&(RAe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!jJe(e)&&!SAe(e)&&e.cancel("Response object has been garbage collected").catch($Je)}));function DAe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:QAe(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?WT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>GJe(c))},start(){},type:"bytes"}),E4(qJe(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(KJe(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(Db.isFormDataLike(t)){let c=`----formdata-undici-0${`${y4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"'),r)}function M0(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function g4(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 zT(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}BAe.exports={multipartFormDataParser:UJe,validateBoundary:_Je}});var _0=y((pnr,vAe)=>{"use strict";var Db=kt(),{ReadableStreamFrom:HJe,isBlobLike:QAe,isReadableStreamLike:qJe,readableStreamClose:GJe,createDeferredPromise:YJe,fullyReadBody:zJe,extractMimeType:WJe,utf8DecodeBytes:xAe}=Uo(),{FormData:wAe}=Rb(),{kState:L0}=_h(),{webidl:JJe}=Gs(),{Blob:VJe}=w("node:buffer"),E4=w("node:assert"),{isErrored:SAe,isDisturbed:jJe}=w("node:stream"),{isArrayBuffer:KJe}=w("node:util/types"),{serializeAMimeType:XJe}=eo(),{multipartFormDataParser:ZJe}=bAe(),y4;try{let t=w("node:crypto");y4=e=>t.randomInt(0,e)}catch{y4=t=>Math.floor(Math.random(t))}var WT=new TextEncoder;function $Je(){}var TAe=globalThis.FinalizationRegistry&&process.version.indexOf("v18")!==0,RAe;TAe&&(RAe=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!jJe(e)&&!SAe(e)&&e.cancel("Response object has been garbage collected").catch($Je)}));function DAe(t,e=!1){let r=null;t instanceof ReadableStream?r=t:QAe(t)?r=t.stream():r=new ReadableStream({async pull(c){let A=typeof s=="string"?WT.encode(s):s;A.byteLength&&c.enqueue(A),queueMicrotask(()=>GJe(c))},start(){},type:"bytes"}),E4(qJe(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(KJe(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(Db.isFormDataLike(t)){let c=`----formdata-undici-0${`${y4(1e11)}`.padStart(11,"0")}`,A=`--${c}\r
|
||||
Content-Disposition: form-data`;let u=E=>E.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),l=E=>E.replace(/\r?\n|\r/g,`\r
|
||||
`),d=[],h=new Uint8Array([13,10]);i=0;let f=!1;for(let[E,g]of t)if(typeof g=="string"){let C=WT.encode(A+`; name="${u(l(E))}"\r
|
||||
\r
|
||||
@@ -12,7 +12,7 @@ ${l(g)}\r
|
||||
Content-Type: ${g.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);d.push(C,g,h),typeof g.size=="number"?i+=C.byteLength+g.size+h.byteLength:f=!0}let m=WT.encode(`--${c}--\r
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(QAe(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(Db.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:HJe(t)}if((typeof s=="string"||Db.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(!SAe(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 eVe(t,e=!1){return t instanceof ReadableStream&&(E4(!Db.isDisturbed(t),"The body has already been consumed."),E4(!t.locked,"The stream is locked.")),DAe(t,e)}function tVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function rVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function nVe(t){return{blob(){return F0(this,r=>{let n=NAe(this);return n===null?n="":n&&(n=XJe(n)),new VJe([r],{type:n})},t)},arrayBuffer(){return F0(this,r=>new Uint8Array(r).buffer,t)},text(){return F0(this,xAe,t)},json(){return F0(this,iVe,t)},formData(){return F0(this,r=>{let n=NAe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=ZJe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new wAe;return i[L0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new wAe;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 F0(this,r=>new Uint8Array(r),t)}}}function sVe(t){Object.assign(t.prototype,nVe(t))}async function F0(t,e,r){if(JJe.brandCheck(t,r),kAe(t))throw new TypeError("Body is unusable: Body has already been read");rVe(t[L0]);let n=YJe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[L0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await zJe(t[L0].body,i,s),n.promise)}function kAe(t){let e=t[L0].body;return e!=null&&(e.stream.locked||Db.isDisturbed(e.stream))}function iVe(t){return JSON.parse(xAe(t))}function NAe(t){let e=t[L0].headersList,r=WJe(e);return r==="failure"?null:r}vAe.exports={extractBody:DAe,safelyExtractBody:eVe,cloneBody:tVe,mixinBody:sVe,streamRegistry:RAe,hasFinalizationRegistry:TAe,bodyUnusable:kAe}});var jAe=y((mnr,VAe)=>{"use strict";var We=w("node:assert"),Xe=kt(),{channels:PAe}=w0(),C4=t4(),{RequestContentLengthMismatchError:cp,ResponseContentLengthMismatchError:MAe,RequestAbortedError:GAe,InvalidArgumentError:oVe,HeadersTimeoutError:aVe,HeadersOverflowError:cVe,SocketError:U0,InformationalError:O0,BodyTimeoutError:AVe,HTTPParserError:uVe,ResponseExceededMaxSizeError:lVe}=or(),{kUrl:YAe,kReset:to,kClient:KT,kParser:Lr,kBlocking:Pb,kRunning:Gn,kPending:zAe,kSize:FAe,kWriting:Uh,kQueue:zc,kNoRef:kb,kKeepAliveDefaultTimeout:dVe,kHostHeader:hVe,kPendingIdx:fVe,kRunningIdx:ka,kError:Ni,kPipelining:XT,kSocket:Ap,kKeepAliveTimeoutValue:$T,kMaxHeadersSize:I4,kKeepAliveMaxTimeout:mVe,kKeepAliveTimeoutThreshold:pVe,kHeadersTimeout:gVe,kBodyTimeout:EVe,kStrictContentLength:Q4,kMaxRequests:LAe,kCounter:yVe,kMaxResponseSize:CVe,kOnError:_Ae,kResume:$l,kHTTPContext:WAe}=Kr(),Oo=Rce(),UAe=Buffer.alloc(0),JT=Buffer[Symbol.species],VT=Xe.addListener,IVe=Xe.removeAllListeners,up=Symbol("kIdleSocketValidation"),H0=Symbol("kIdleSocketValidationTimeout"),S4=Symbol("kSocketUsed"),B4;async function BVe(){let t=process.env.JEST_WORKER_ID?s4():void 0,e;try{e=await WebAssembly.compile(vce())}catch{e=await WebAssembly.compile(t||s4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onStatus(new JT(HA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(mn.ptr===r),mn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderField(new JT(HA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderValue(new JT(HA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(mn.ptr===r),mn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onBody(new JT(HA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(mn.ptr===r),mn.onMessageComplete()||0)}})}var b4=null,w4=BVe();w4.catch();var mn=null,HA=null,jT=0,qA=null,bVe=0,vb=1,q0=2|vb,ZT=4|vb,N4=8|bVe,x4=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[I4])&&e[I4]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Oo.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`);d.push(m),i+=m.byteLength,f&&(i=null),s=t,n=async function*(){for(let E of d)E.stream?yield*E.stream():yield E},o=`multipart/form-data; boundary=${c}`}else if(QAe(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(Db.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=t instanceof ReadableStream?t:HJe(t)}if((typeof s=="string"||Db.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(!SAe(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 eVe(t,e=!1){return t instanceof ReadableStream&&(E4(!Db.isDisturbed(t),"The body has already been consumed."),E4(!t.locked,"The stream is locked.")),DAe(t,e)}function tVe(t,e){let[r,n]=e.stream.tee();return e.stream=r,{stream:n,length:e.length,source:e.source}}function rVe(t){if(t.aborted)throw new DOMException("The operation was aborted.","AbortError")}function nVe(t){return{blob(){return F0(this,r=>{let n=NAe(this);return n===null?n="":n&&(n=XJe(n)),new VJe([r],{type:n})},t)},arrayBuffer(){return F0(this,r=>new Uint8Array(r).buffer,t)},text(){return F0(this,xAe,t)},json(){return F0(this,iVe,t)},formData(){return F0(this,r=>{let n=NAe(this);if(n!==null)switch(n.essence){case"multipart/form-data":{let s=ZJe(r,n);if(s==="failure")throw new TypeError("Failed to parse body as FormData.");let i=new wAe;return i[L0]=s,i}case"application/x-www-form-urlencoded":{let s=new URLSearchParams(r.toString()),i=new wAe;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 F0(this,r=>new Uint8Array(r),t)}}}function sVe(t){Object.assign(t.prototype,nVe(t))}async function F0(t,e,r){if(JJe.brandCheck(t,r),kAe(t))throw new TypeError("Body is unusable: Body has already been read");rVe(t[L0]);let n=YJe(),s=o=>n.reject(o),i=o=>{try{n.resolve(e(o))}catch(a){s(a)}};return t[L0].body==null?(i(Buffer.allocUnsafe(0)),n.promise):(await zJe(t[L0].body,i,s),n.promise)}function kAe(t){let e=t[L0].body;return e!=null&&(e.stream.locked||Db.isDisturbed(e.stream))}function iVe(t){return JSON.parse(xAe(t))}function NAe(t){let e=t[L0].headersList,r=WJe(e);return r==="failure"?null:r}vAe.exports={extractBody:DAe,safelyExtractBody:eVe,cloneBody:tVe,mixinBody:sVe,streamRegistry:RAe,hasFinalizationRegistry:TAe,bodyUnusable:kAe}});var jAe=y((gnr,VAe)=>{"use strict";var We=w("node:assert"),Xe=kt(),{channels:PAe}=w0(),C4=t4(),{RequestContentLengthMismatchError:cp,ResponseContentLengthMismatchError:MAe,RequestAbortedError:GAe,InvalidArgumentError:oVe,HeadersTimeoutError:aVe,HeadersOverflowError:cVe,SocketError:U0,InformationalError:O0,BodyTimeoutError:AVe,HTTPParserError:uVe,ResponseExceededMaxSizeError:lVe}=or(),{kUrl:YAe,kReset:to,kClient:KT,kParser:Lr,kBlocking:Pb,kRunning:Gn,kPending:zAe,kSize:FAe,kWriting:Uh,kQueue:zc,kNoRef:kb,kKeepAliveDefaultTimeout:dVe,kHostHeader:hVe,kPendingIdx:fVe,kRunningIdx:ka,kError:Ni,kPipelining:XT,kSocket:Ap,kKeepAliveTimeoutValue:$T,kMaxHeadersSize:I4,kKeepAliveMaxTimeout:mVe,kKeepAliveTimeoutThreshold:pVe,kHeadersTimeout:gVe,kBodyTimeout:EVe,kStrictContentLength:Q4,kMaxRequests:LAe,kCounter:yVe,kMaxResponseSize:CVe,kOnError:_Ae,kResume:$l,kHTTPContext:WAe}=Kr(),Oo=Rce(),UAe=Buffer.alloc(0),JT=Buffer[Symbol.species],VT=Xe.addListener,IVe=Xe.removeAllListeners,up=Symbol("kIdleSocketValidation"),H0=Symbol("kIdleSocketValidationTimeout"),S4=Symbol("kSocketUsed"),B4;async function BVe(){let t=process.env.JEST_WORKER_ID?s4():void 0,e;try{e=await WebAssembly.compile(vce())}catch{e=await WebAssembly.compile(t||s4())}return await WebAssembly.instantiate(e,{env:{wasm_on_url:(r,n,s)=>0,wasm_on_status:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onStatus(new JT(HA.buffer,i,s))||0},wasm_on_message_begin:r=>(We(mn.ptr===r),mn.onMessageBegin()||0),wasm_on_header_field:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderField(new JT(HA.buffer,i,s))||0},wasm_on_header_value:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onHeaderValue(new JT(HA.buffer,i,s))||0},wasm_on_headers_complete:(r,n,s,i)=>(We(mn.ptr===r),mn.onHeadersComplete(n,!!s,!!i)||0),wasm_on_body:(r,n,s)=>{We(mn.ptr===r);let i=n-qA+HA.byteOffset;return mn.onBody(new JT(HA.buffer,i,s))||0},wasm_on_message_complete:r=>(We(mn.ptr===r),mn.onMessageComplete()||0)}})}var b4=null,w4=BVe();w4.catch();var mn=null,HA=null,jT=0,qA=null,bVe=0,vb=1,q0=2|vb,ZT=4|vb,N4=8|bVe,x4=class{constructor(e,r,{exports:n}){We(Number.isFinite(e[I4])&&e[I4]>0),this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(Oo.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeou
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[hVe],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -38,17 +38,17 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[Q4])throw new cp;process.emitWarning(new cp)}e[Lr].timeout&&e[Lr].timeoutType===q0&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[$l]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Uh]=!1,e&&(We(n[Gn]<=1,"pipeline should only contain this request"),s(e))}};VAe.exports=QVe});var nue=y((pnr,rue)=>{"use strict";var va=w("node:assert"),{pipeline:DVe}=w("node:stream"),Ht=kt(),{RequestContentLengthMismatchError:T4,RequestAbortedError:KAe,SocketError:Mb,InformationalError:R4}=or(),{kUrl:tR,kReset:nR,kClient:G0,kRunning:sR,kPending:kVe,kQueue:Oh,kPendingIdx:D4,kRunningIdx:Wc,kError:Vc,kSocket:gs,kStrictContentLength:vVe,kOnError:k4,kMaxConcurrentStreams:tue,kHTTP2Session:Jc,kResume:Hh,kSize:PVe,kHTTPContext:MVe}=Kr(),ed=Symbol("open streams"),XAe,ZAe=!1,rR;try{rR=w("node:http2")}catch{rR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:FVe,HTTP2_HEADER_METHOD:LVe,HTTP2_HEADER_PATH:_Ve,HTTP2_HEADER_SCHEME:UVe,HTTP2_HEADER_CONTENT_LENGTH:OVe,HTTP2_HEADER_EXPECT:HVe,HTTP2_HEADER_STATUS:qVe}}=rR;function GVe(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 YVe(t,e){t[gs]=e,ZAe||(ZAe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rR.connect(t[tR],{createConnection:()=>e,peerMaxConcurrentStreams:t[tue]});r[ed]=0,r[G0]=t,r[gs]=e,Ht.addListener(r,"error",WVe),Ht.addListener(r,"frameError",JVe),Ht.addListener(r,"end",VVe),Ht.addListener(r,"goaway",jVe),Ht.addListener(r,"close",function(){let{[G0]:s}=this,{[gs]:i}=s,o=this[gs][Vc]||this[Vc]||new Mb("closed",Ht.getSocketInfo(i));if(s[Jc]=null,s.destroyed){va(s[kVe]===0);let a=s[Oh].splice(s[Wc]);for(let c=0;c<a.length;c++){let A=a[c];Ht.errorRequest(s,A,o)}}}),r.unref(),t[Jc]=r,e[Jc]=r,Ht.addListener(e,"error",function(s){va(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vc]=s,this[G0][k4](s)}),Ht.addListener(e,"end",function(){Ht.destroy(this,new Mb("other side closed",Ht.getSocketInfo(this)))}),Ht.addListener(e,"close",function(){let s=this[Vc]||new Mb("closed",Ht.getSocketInfo(this));t[gs]=null,this[Jc]!=null&&this[Jc].destroy(s),t[D4]=t[Wc],va(t[sR]===0),t.emit("disconnect",t[tR],[t],s),t[Hh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return XVe(t,...s)},resume(){zVe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function zVe(t){let e=t[gs];e?.destroyed===!1&&(t[PVe]===0&&t[tue]===0?(e.unref(),t[Jc].unref()):(e.ref(),t[Jc].ref()))}function WVe(t){va(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gs][Vc]=t,this[G0][k4](t)}function JVe(t,e,r){if(r===0){let n=new R4(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gs][Vc]=n,this[G0][k4](n)}}function VVe(){let t=new Mb("other side closed",Ht.getSocketInfo(this[gs]));this.destroy(t),Ht.destroy(this[gs],t)}function jVe(t){let e=this[Vc]||new Mb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ht.getSocketInfo(this)),r=this[G0];if(r[gs]=null,r[MVe]=null,this[Jc]!=null&&(this[Jc].destroy(e),this[Jc]=null),Ht.destroy(this[gs],e),r[Wc]<r[Oh].length){let n=r[Oh][r[Wc]];r[Oh][r[Wc]++]=null,Ht.errorRequest(r,n,e),r[D4]=r[Wc]}va(r[sR]===0),r.emit("disconnect",r[tR],[r],e),r[Hh]()}function KVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function XVe(t,e){let r=t[Jc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Ht.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],W=A[B+1];if(Array.isArray(W))for(let F=0;F<W.length;F++)l[M]?l[M]+=`,${W[F]}`:l[M]=W[F];else l[M]=W}let d,{hostname:h,port:f}=t[tR];l[FVe]=i||`${h}${f?`:${f}`:""}`,l[LVe]=n;let m=B=>{e.aborted||e.completed||(B=B||new KAe,Ht.errorRequest(t,e,B),d!=null&&Ht.destroy(d,B),Ht.destroy(u,B),t[Oh][t[Wc]++]=null,t[Hh]())};try{e.onConnect(m)}catch(B){Ht.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null}),d.once("close",()=>{r[ed]-=1,r[ed]===0&&r.unref()}),!0;l[_Ve]=s,l[UVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=Ht.bodyLength(u);if(Ht.isFormDataLike(u)){XAe??=_0().extractBody;let[B,M]=XAe(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),KVe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[vVe])return Ht.errorRequest(t,e,new T4),!1;process.emitWarning(new T4)}g!=null&&(va(u,"no body must not have content length"),l[OVe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[HVe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[bje]=c??3e5,this[Bje]=s??3e5,this[Qje]=C??!0,this[wje]=B,this[F4]=W,this[Gh]=null,this[Rje]=H>-1?H:-1,this[kje]=$??100,this[Rn]=null,this[jc]=[],this[rd]=0,this[Kc]=0,this[Ub]=fe=>_4(this,fe),this[Dje]=fe=>mue(this,fe)}get pipelining(){return this[cR]}set pipelining(e){this[cR]=e,this[Ub](!0)}get[qb](){return this[jc].length-this[Kc]}get[Hb](){return this[Kc]-this[rd]}get[Ob](){return this[jc].length-this[rd]}get[mje](){return!!this[Rn]&&!this[z0]&&!this[Rn].destroyed}get[M4](){return!!(this[Rn]?.busy(null)||this[Ob]>=(fue(this)||1)||this[qb]>0)}[fje](e){pue(this),this.once("connect",e)}[Tje](e,r){let n=e.origin||this[YA].origin,s=new cje(n,e,r);return this[jc].push(s),this[dp]||(lp.bodyLength(s.body)==null&&lp.isIterable(s.body)?(this[dp]=1,queueMicrotask(()=>_4(this))):this[Ub](!0)),this[dp]&&this[Yh]!==2&&this[M4]&&(this[Yh]=2),this[Yh]<2}async[xje](){return new Promise(e=>{this[Ob]?this[Gh]=e:e(null)})}async[Sje](e){return new Promise(r=>{let n=this[jc].splice(this[Kc]);for(let i=0;i<n.length;i++){let o=n[i];lp.errorRequest(this,o,e)}let s=()=>{this[Gh]&&(this[Gh](),this[Gh]=null),r(null)};this[Rn]?(this[Rn].destroy(e,s),this[Rn]=null):queueMicrotask(s),this[Ub]()})}},Mje=aR();function mue(t,e){if(t[Hb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){td(t[Kc]===t[rd]);let r=t[jc].splice(t[rd]);for(let n=0;n<r.length;n++){let s=r[n];lp.errorRequest(t,s,e)}td(t[Ob]===0)}}async function pue(t){td(!t[z0]),td(!t[Rn]);let{host:e,hostname:r,protocol:n,port:s}=t[YA];if(r[0]==="["){let i=r.indexOf("]");td(i!==-1);let o=r.substring(1,i);td(hue.isIP(o)),r=o}t[z0]=!0,Y0.beforeConnect.hasSubscribers&&Y0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb]});try{let i=await new Promise((o,a)=>{t[Lb]({host:e,hostname:r,protocol:n,port:s,servername:t[qh],localAddress:t[_b]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){lp.destroy(i.on("error",lue),new lje);return}td(i);try{t[Rn]=i.alpnProtocol==="h2"?await Pje(t,i):await vje(t,i)}catch(o){throw i.destroy().on("error",lue),o}t[z0]=!1,i[Nje]=0,i[F4]=t[F4],i[hje]=t,i[gje]=null,Y0.connected.hasSubscribers&&Y0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],socket:i}),t.emit("connect",t[YA],[t])}catch(i){if(t.destroyed)return;if(t[z0]=!1,Y0.connectError.hasSubscribers&&Y0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(td(t[Hb]===0);t[qb]>0&&t[jc][t[Kc]].servername===t[qh];){let o=t[jc][t[Kc]++];lp.errorRequest(t,o,i)}else mue(t,i);t.emit("connectionError",t[YA],[t],i)}t[Ub]()}function due(t){t[Yh]=0,t.emit("drain",t[YA],[t])}function _4(t,e){t[dp]!==2&&(t[dp]=2,Fje(t,e),t[dp]=0,t[rd]>256&&(t[jc].splice(0,t[rd]),t[Kc]-=t[rd],t[rd]=0))}function Fje(t,e){for(;;){if(t.destroyed){td(t[qb]===0);return}if(t[Gh]&&!t[Ob]){t[Gh](),t[Gh]=null;return}if(t[Rn]&&t[Rn].resume(),t[M4])t[Yh]=2;else if(t[Yh]===2){e?(t[Yh]=1,queueMicrotask(()=>due(t))):due(t);continue}if(t[qb]===0||t[Hb]>=(fue(t)||1))return;let r=t[jc][t[Kc]];if(t[YA].protocol==="https:"&&t[qh]!==r.servername){if(t[Hb]>0)return;t[qh]=r.servername,t[Rn]?.destroy(new uje("servername changed"),()=>{t[Rn]=null,_4(t)})}if(t[z0])return;if(!t[Rn]){pue(t);return}if(t[Rn].destroyed||t[Rn].busy(r))return;!r.aborted&&t[Rn].write(r)?t[Kc]++:t[jc].splice(t[Kc],1)}}gue.exports=L4});var U4=y((Inr,Eue)=>{"use strict";var AR=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)}};Eue.exports=class{constructor(){this.head=this.tail=new AR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Cue=y((Bnr,yue)=>{var{kFree:Lje,kConnected:_je,kPending:Uje,kQueued:Oje,kRunning:Hje,kSize:qje}=Kr(),hp=Symbol("pool"),O4=class{constructor(e){this[hp]=e}get connected(){return this[hp][_je]}get free(){return this[hp][Lje]}get pending(){return this[hp][Uje]}get queued(){return this[hp][Oje]}get running(){return this[hp][Hje]}get size(){return this[hp][qje]}};yue.exports=O4});var W4=y((bnr,Rue)=>{"use strict";var Gje=T0(),Yje=U4(),{kConnected:H4,kSize:Iue,kRunning:Bue,kPending:bue,kQueued:Gb,kBusy:zje,kFree:Wje,kUrl:Jje,kClose:Vje,kDestroy:jje,kDispatch:Kje}=Kr(),Xje=Cue(),ro=Symbol("clients"),xi=Symbol("needDrain"),Yb=Symbol("queue"),q4=Symbol("closed resolve"),G4=Symbol("onDrain"),Que=Symbol("onConnect"),wue=Symbol("onDisconnect"),Nue=Symbol("onCo
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[Q4])throw new cp;process.emitWarning(new cp)}e[Lr].timeout&&e[Lr].timeoutType===q0&&e[Lr].timeout.refresh&&e[Lr].timeout.refresh(),n[$l]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[Uh]=!1,e&&(We(n[Gn]<=1,"pipeline should only contain this request"),s(e))}};VAe.exports=QVe});var nue=y((Enr,rue)=>{"use strict";var va=w("node:assert"),{pipeline:DVe}=w("node:stream"),Ht=kt(),{RequestContentLengthMismatchError:T4,RequestAbortedError:KAe,SocketError:Mb,InformationalError:R4}=or(),{kUrl:tR,kReset:nR,kClient:G0,kRunning:sR,kPending:kVe,kQueue:Oh,kPendingIdx:D4,kRunningIdx:Wc,kError:Vc,kSocket:gs,kStrictContentLength:vVe,kOnError:k4,kMaxConcurrentStreams:tue,kHTTP2Session:Jc,kResume:Hh,kSize:PVe,kHTTPContext:MVe}=Kr(),ed=Symbol("open streams"),XAe,ZAe=!1,rR;try{rR=w("node:http2")}catch{rR={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:FVe,HTTP2_HEADER_METHOD:LVe,HTTP2_HEADER_PATH:_Ve,HTTP2_HEADER_SCHEME:UVe,HTTP2_HEADER_CONTENT_LENGTH:OVe,HTTP2_HEADER_EXPECT:HVe,HTTP2_HEADER_STATUS:qVe}}=rR;function GVe(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 YVe(t,e){t[gs]=e,ZAe||(ZAe=!0,process.emitWarning("H2 support is experimental, expect them to change at any time.",{code:"UNDICI-H2"}));let r=rR.connect(t[tR],{createConnection:()=>e,peerMaxConcurrentStreams:t[tue]});r[ed]=0,r[G0]=t,r[gs]=e,Ht.addListener(r,"error",WVe),Ht.addListener(r,"frameError",JVe),Ht.addListener(r,"end",VVe),Ht.addListener(r,"goaway",jVe),Ht.addListener(r,"close",function(){let{[G0]:s}=this,{[gs]:i}=s,o=this[gs][Vc]||this[Vc]||new Mb("closed",Ht.getSocketInfo(i));if(s[Jc]=null,s.destroyed){va(s[kVe]===0);let a=s[Oh].splice(s[Wc]);for(let c=0;c<a.length;c++){let A=a[c];Ht.errorRequest(s,A,o)}}}),r.unref(),t[Jc]=r,e[Jc]=r,Ht.addListener(e,"error",function(s){va(s.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[Vc]=s,this[G0][k4](s)}),Ht.addListener(e,"end",function(){Ht.destroy(this,new Mb("other side closed",Ht.getSocketInfo(this)))}),Ht.addListener(e,"close",function(){let s=this[Vc]||new Mb("closed",Ht.getSocketInfo(this));t[gs]=null,this[Jc]!=null&&this[Jc].destroy(s),t[D4]=t[Wc],va(t[sR]===0),t.emit("disconnect",t[tR],[t],s),t[Hh]()});let n=!1;return e.on("close",()=>{n=!0}),{version:"h2",defaultPipelining:1/0,write(...s){return XVe(t,...s)},resume(){zVe(t)},destroy(s,i){n?queueMicrotask(i):e.destroy(s).on("close",i)},get destroyed(){return e.destroyed},busy(){return!1}}}function zVe(t){let e=t[gs];e?.destroyed===!1&&(t[PVe]===0&&t[tue]===0?(e.unref(),t[Jc].unref()):(e.ref(),t[Jc].ref()))}function WVe(t){va(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[gs][Vc]=t,this[G0][k4](t)}function JVe(t,e,r){if(r===0){let n=new R4(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[gs][Vc]=n,this[G0][k4](n)}}function VVe(){let t=new Mb("other side closed",Ht.getSocketInfo(this[gs]));this.destroy(t),Ht.destroy(this[gs],t)}function jVe(t){let e=this[Vc]||new Mb(`HTTP/2: "GOAWAY" frame received with code ${t}`,Ht.getSocketInfo(this)),r=this[G0];if(r[gs]=null,r[MVe]=null,this[Jc]!=null&&(this[Jc].destroy(e),this[Jc]=null),Ht.destroy(this[gs],e),r[Wc]<r[Oh].length){let n=r[Oh][r[Wc]];r[Oh][r[Wc]++]=null,Ht.errorRequest(r,n,e),r[D4]=r[Wc]}va(r[sR]===0),r.emit("disconnect",r[tR],[r],e),r[Hh]()}function KVe(t){return t!=="GET"&&t!=="HEAD"&&t!=="OPTIONS"&&t!=="TRACE"&&t!=="CONNECT"}function XVe(t,e){let r=t[Jc],{method:n,path:s,host:i,upgrade:o,expectContinue:a,signal:c,headers:A}=e,{body:u}=e;if(o)return Ht.errorRequest(t,e,new Error("Upgrade not supported for H2")),!1;let l={};for(let B=0;B<A.length;B+=2){let M=A[B+0],W=A[B+1];if(Array.isArray(W))for(let F=0;F<W.length;F++)l[M]?l[M]+=`,${W[F]}`:l[M]=W[F];else l[M]=W}let d,{hostname:h,port:f}=t[tR];l[FVe]=i||`${h}${f?`:${f}`:""}`,l[LVe]=n;let m=B=>{e.aborted||e.completed||(B=B||new KAe,Ht.errorRequest(t,e,B),d!=null&&Ht.destroy(d,B),Ht.destroy(u,B),t[Oh][t[Wc]++]=null,t[Hh]())};try{e.onConnect(m)}catch(B){Ht.errorRequest(t,e,B)}if(e.aborted)return!1;if(n==="CONNECT")return r.ref(),d=r.request(l,{endStream:!1,signal:c}),d.id&&!d.pending?(e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null):d.once("ready",()=>{e.onUpgrade(null,null,d),++r[ed],t[Oh][t[Wc]++]=null}),d.once("close",()=>{r[ed]-=1,r[ed]===0&&r.unref()}),!0;l[_Ve]=s,l[UVe]="https";let E=n==="PUT"||n==="POST"||n==="PATCH";u&&typeof u.read=="function"&&u.read(0);let g=Ht.bodyLength(u);if(Ht.isFormDataLike(u)){XAe??=_0().extractBody;let[B,M]=XAe(u);l["content-type"]=M,u=B.stream,g=B.length}if(g==null&&(g=e.contentLength),(g===0||!E)&&(g=null),KVe(n)&&g>0&&e.contentLength!=null&&e.contentLength!==g){if(t[vVe])return Ht.errorRequest(t,e,new T4),!1;process.emitWarning(new T4)}g!=null&&(va(u,"no body must not have content length"),l[OVe]=`${g}`),r.ref();let C=n==="GET"||n==="HEAD"||u===null;return a?(l[HVe]="100-continue",d=r.request(l,{endStream:C,signal:c}),d.once("cont
Line truncated
|
||||
`,this[bje]=c??3e5,this[Bje]=s??3e5,this[Qje]=C??!0,this[wje]=B,this[F4]=W,this[Gh]=null,this[Rje]=H>-1?H:-1,this[kje]=$??100,this[Rn]=null,this[jc]=[],this[rd]=0,this[Kc]=0,this[Ub]=fe=>_4(this,fe),this[Dje]=fe=>mue(this,fe)}get pipelining(){return this[cR]}set pipelining(e){this[cR]=e,this[Ub](!0)}get[qb](){return this[jc].length-this[Kc]}get[Hb](){return this[Kc]-this[rd]}get[Ob](){return this[jc].length-this[rd]}get[mje](){return!!this[Rn]&&!this[z0]&&!this[Rn].destroyed}get[M4](){return!!(this[Rn]?.busy(null)||this[Ob]>=(fue(this)||1)||this[qb]>0)}[fje](e){pue(this),this.once("connect",e)}[Tje](e,r){let n=e.origin||this[YA].origin,s=new cje(n,e,r);return this[jc].push(s),this[dp]||(lp.bodyLength(s.body)==null&&lp.isIterable(s.body)?(this[dp]=1,queueMicrotask(()=>_4(this))):this[Ub](!0)),this[dp]&&this[Yh]!==2&&this[M4]&&(this[Yh]=2),this[Yh]<2}async[xje](){return new Promise(e=>{this[Ob]?this[Gh]=e:e(null)})}async[Sje](e){return new Promise(r=>{let n=this[jc].splice(this[Kc]);for(let i=0;i<n.length;i++){let o=n[i];lp.errorRequest(this,o,e)}let s=()=>{this[Gh]&&(this[Gh](),this[Gh]=null),r(null)};this[Rn]?(this[Rn].destroy(e,s),this[Rn]=null):queueMicrotask(s),this[Ub]()})}},Mje=aR();function mue(t,e){if(t[Hb]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){td(t[Kc]===t[rd]);let r=t[jc].splice(t[rd]);for(let n=0;n<r.length;n++){let s=r[n];lp.errorRequest(t,s,e)}td(t[Ob]===0)}}async function pue(t){td(!t[z0]),td(!t[Rn]);let{host:e,hostname:r,protocol:n,port:s}=t[YA];if(r[0]==="["){let i=r.indexOf("]");td(i!==-1);let o=r.substring(1,i);td(hue.isIP(o)),r=o}t[z0]=!0,Y0.beforeConnect.hasSubscribers&&Y0.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb]});try{let i=await new Promise((o,a)=>{t[Lb]({host:e,hostname:r,protocol:n,port:s,servername:t[qh],localAddress:t[_b]},(c,A)=>{c?a(c):o(A)})});if(t.destroyed){lp.destroy(i.on("error",lue),new lje);return}td(i);try{t[Rn]=i.alpnProtocol==="h2"?await Pje(t,i):await vje(t,i)}catch(o){throw i.destroy().on("error",lue),o}t[z0]=!1,i[Nje]=0,i[F4]=t[F4],i[hje]=t,i[gje]=null,Y0.connected.hasSubscribers&&Y0.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],socket:i}),t.emit("connect",t[YA],[t])}catch(i){if(t.destroyed)return;if(t[z0]=!1,Y0.connectError.hasSubscribers&&Y0.connectError.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Rn]?.version,servername:t[qh],localAddress:t[_b]},connector:t[Lb],error:i}),i.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(td(t[Hb]===0);t[qb]>0&&t[jc][t[Kc]].servername===t[qh];){let o=t[jc][t[Kc]++];lp.errorRequest(t,o,i)}else mue(t,i);t.emit("connectionError",t[YA],[t],i)}t[Ub]()}function due(t){t[Yh]=0,t.emit("drain",t[YA],[t])}function _4(t,e){t[dp]!==2&&(t[dp]=2,Fje(t,e),t[dp]=0,t[rd]>256&&(t[jc].splice(0,t[rd]),t[Kc]-=t[rd],t[rd]=0))}function Fje(t,e){for(;;){if(t.destroyed){td(t[qb]===0);return}if(t[Gh]&&!t[Ob]){t[Gh](),t[Gh]=null;return}if(t[Rn]&&t[Rn].resume(),t[M4])t[Yh]=2;else if(t[Yh]===2){e?(t[Yh]=1,queueMicrotask(()=>due(t))):due(t);continue}if(t[qb]===0||t[Hb]>=(fue(t)||1))return;let r=t[jc][t[Kc]];if(t[YA].protocol==="https:"&&t[qh]!==r.servername){if(t[Hb]>0)return;t[qh]=r.servername,t[Rn]?.destroy(new uje("servername changed"),()=>{t[Rn]=null,_4(t)})}if(t[z0])return;if(!t[Rn]){pue(t);return}if(t[Rn].destroyed||t[Rn].busy(r))return;!r.aborted&&t[Rn].write(r)?t[Kc]++:t[jc].splice(t[Kc],1)}}gue.exports=L4});var U4=y((bnr,Eue)=>{"use strict";var AR=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)}};Eue.exports=class{constructor(){this.head=this.tail=new AR}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AR),this.head.push(e)}shift(){let e=this.tail,r=e.shift();return e.isEmpty()&&e.next!==null&&(this.tail=e.next),r}}});var Cue=y((Qnr,yue)=>{var{kFree:Lje,kConnected:_je,kPending:Uje,kQueued:Oje,kRunning:Hje,kSize:qje}=Kr(),hp=Symbol("pool"),O4=class{constructor(e){this[hp]=e}get connected(){return this[hp][_je]}get free(){return this[hp][Lje]}get pending(){return this[hp][Uje]}get queued(){return this[hp][Oje]}get running(){return this[hp][Hje]}get size(){return this[hp][qje]}};yue.exports=O4});var W4=y((wnr,Rue)=>{"use strict";var Gje=T0(),Yje=U4(),{kConnected:H4,kSize:Iue,kRunning:Bue,kPending:bue,kQueued:Gb,kBusy:zje,kFree:Wje,kUrl:Jje,kClose:Vje,kDestroy:jje,kDispatch:Kje}=Kr(),Xje=Cue(),ro=Symbol("clients"),xi=Symbol("needDrain"),Yb=Symbol("queue"),q4=Symbol("closed resolve"),G4=Symbol("onDrain"),Que=Symbol("onConnect"),wue=Symbol("onDisconnect"),Nue=Symbol("onCo
Line truncated
|
||||
${n.count} ${n.noun} ${n.is} pending:
|
||||
|
||||
${e.format(r)}
|
||||
`.trim())}};Lde.exports=W8});var xR=y((Xnr,qde)=>{"use strict";var Ude=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bZe}=or(),QZe=V0();Hde()===void 0&&Ode(new QZe);function Ode(t){if(!t||typeof t.dispatch!="function")throw new bZe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ude,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Hde(){return globalThis[Ude]}qde.exports={setGlobalDispatcher:Ode,getGlobalDispatcher:Hde}});var SR=y(($nr,Gde)=>{"use strict";Gde.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 zde=y((esr,Yde)=>{"use strict";var wZe=oR();Yde.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 wZe(r,o,s,i);return r(a,c)}}});var Jde=y((tsr,Wde)=>{"use strict";var NZe=gR();Wde.exports=t=>e=>function(n,s){return e(n,new NZe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var jde=y((rsr,Vde)=>{"use strict";var xZe=kt(),{InvalidArgumentError:SZe,RequestAbortedError:TZe}=or(),RZe=SR(),J8=class extends RZe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new SZe("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.#s=e}onHeaders(e,r,n,s){let o=xZe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new TZe(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function DZe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new J8({maxSize:i},s);return e(n,o)}}Vde.exports=DZe});var Zde=y((nsr,Xde)=>{"use strict";var{isIP:kZe}=w("node:net"),{lookup:vZe}=w("node:dns"),PZe=SR(),{InvalidArgumentError:ny,InformationalError:MZe}=or(),Kde=Math.pow(2,31)-1,V8=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new MZe("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){vZe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Kde?(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===Kde?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 j8(this,e,r)}},j8=class extends PZe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(fD(e,s,Krt)){Xrt(e,i)&&(r.retry=e.toString("utf8",i));return}if(fD(e,s,jrt)){Zrt(e,i)&&(r.id=e.toString("utf8",i));return}if(fD(e,s,Vrt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Grt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Yrt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===gy[0]||(this.checkBOM=!1),!0):n===void 0?e===gy[0]&&r===gy[1]?!0:(this.checkBOM=!1,!1):(e===gy[0]&&r===gy[1]&&n===gy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Rme.exports={EventSourceStream:_H}});var Ume=y((Psr,_me)=>{"use strict";var{pipeline:$rt}=w("node:stream"),{fetching:ent}=nQ(),{makeRequest:tnt}=oy(),{webidl:od}=Gs(),{EventSourceStream:rnt}=Dme(),{parseMIMEType:nnt}=eo(),{createFastMessageEvent:snt}=dy(),{isNetworkError:kme}=tQ(),{delay:int}=FH(),{kEnumerableProperty:Tp}=kt(),{environmentSettingsObject:vme}=Uo(),Pme=!1,Mme=3e3,gQ=0,Fme=1,EQ=2,ont="anonymous",ant="use-credentials",Ey=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),od.util.markAsUncloneable(this);let n="EventSource constructor";od.argumentLengthCheck(arguments,1,n),Pme||(Pme=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=od.converters.USVString(e,n,"url"),r=od.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Mme};let s=vme,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=ont;r.withCredentials&&(o=ant,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vme.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=tnt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===EQ)return;this.#r=gQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{kme(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kme(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?nnt(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=Fme,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new rnt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(snt(c.type,c.options))}});$rt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=ent(e)}async#A(){this.#r!==EQ&&(this.#r=gQ,this.dispatchEvent(n
Line truncated
|
||||
`.trim())}};Lde.exports=W8});var xR=y(($nr,qde)=>{"use strict";var Ude=Symbol.for("undici.globalDispatcher.1"),{InvalidArgumentError:bZe}=or(),QZe=V0();Hde()===void 0&&Ode(new QZe);function Ode(t){if(!t||typeof t.dispatch!="function")throw new bZe("Argument agent must implement Agent");Object.defineProperty(globalThis,Ude,{value:t,writable:!0,enumerable:!1,configurable:!1})}function Hde(){return globalThis[Ude]}qde.exports={setGlobalDispatcher:Ode,getGlobalDispatcher:Hde}});var SR=y((tsr,Gde)=>{"use strict";Gde.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 zde=y((rsr,Yde)=>{"use strict";var wZe=oR();Yde.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 wZe(r,o,s,i);return r(a,c)}}});var Jde=y((nsr,Wde)=>{"use strict";var NZe=gR();Wde.exports=t=>e=>function(n,s){return e(n,new NZe({...n,retryOptions:{...t,...n.retryOptions}},{handler:s,dispatch:e}))}});var jde=y((ssr,Vde)=>{"use strict";var xZe=kt(),{InvalidArgumentError:SZe,RequestAbortedError:TZe}=or(),RZe=SR(),J8=class extends RZe{#e=1024*1024;#t=null;#n=!1;#r=!1;#i=0;#s=null;#a=null;constructor({maxSize:e},r){if(super(r),e!=null&&(!Number.isFinite(e)||e<1))throw new SZe("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.#s=e}onHeaders(e,r,n,s){let o=xZe.parseHeaders(r)["content-length"];if(o!=null&&o>this.#e)throw new TZe(`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.#s??e,this.#a.onError(e))}onData(e){return this.#i=this.#i+e.length,this.#i>=this.#e&&(this.#n=!0,this.#r?this.#a.onError(this.#s):this.#a.onComplete([])),!0}onComplete(e){if(!this.#n){if(this.#r){this.#a.onError(this.reason);return}this.#a.onComplete(e)}}};function DZe({maxSize:t}={maxSize:1024*1024}){return e=>function(n,s){let{dumpMaxSize:i=t}=n,o=new J8({maxSize:i},s);return e(n,o)}}Vde.exports=DZe});var Zde=y((isr,Xde)=>{"use strict";var{isIP:kZe}=w("node:net"),{lookup:vZe}=w("node:dns"),PZe=SR(),{InvalidArgumentError:ny,InformationalError:MZe}=or(),Kde=Math.pow(2,31)-1,V8=class{#e=0;#t=0;#n=new Map;dualStack=!0;affinity=null;lookup=null;pick=null;constructor(e){this.#e=e.maxTTL,this.#t=e.maxItems,this.dualStack=e.dualStack,this.affinity=e.affinity,this.lookup=e.lookup??this.#r,this.pick=e.pick??this.#i}get full(){return this.#n.size===this.#t}runLookup(e,r,n){let s=this.#n.get(e.hostname);if(s==null&&this.full){n(null,e.origin);return}let i={affinity:this.affinity,dualStack:this.dualStack,lookup:this.lookup,pick:this.pick,...r.dns,maxTTL:this.#e,maxItems:this.#t};if(s==null)this.lookup(e,i,(o,a)=>{if(o||a==null||a.length===0){n(o??new MZe("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){vZe(e.hostname,{all:!0,family:this.dualStack===!1?this.affinity:0,order:"ipv4first"},(s,i)=>{if(s)return n(s);let o=new Map;for(let a of i)o.set(`${a.address}:${a.family}`,a);n(null,o.values())})}#i(e,r,n){let s=null,{records:i,offset:o}=r,a;if(this.dualStack?(n==null&&(o==null||o===Kde?(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===Kde?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 j8(this,e,r)}},j8=class extends PZe{#e=null;#t=null;#n=null;#r=null;#i=null;constructor(e,{origin:r,handler:n,dispatch:s},i){super(n),this.#i=r,this.#r=n,this.#t={...i},this.#e=e,this.#n=s}onError(e){switch(e.code){case"ETIMEDOUT":case"ECONNREFUSED":{if(this.#e.dualStack){this.#e.runLookup(this.#i,this.#t,(r,n)=>{if(r)
Line truncated
|
||||
${o}`;return}if(fD(e,s,Krt)){Xrt(e,i)&&(r.retry=e.toString("utf8",i));return}if(fD(e,s,jrt)){Zrt(e,i)&&(r.id=e.toString("utf8",i));return}if(fD(e,s,Vrt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&Grt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id&&Yrt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===gy[0]||(this.checkBOM=!1),!0):n===void 0?e===gy[0]&&r===gy[1]?!0:(this.checkBOM=!1,!1):(e===gy[0]&&r===gy[1]&&n===gy[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};Rme.exports={EventSourceStream:_H}});var Ume=y((Fsr,_me)=>{"use strict";var{pipeline:$rt}=w("node:stream"),{fetching:ent}=nQ(),{makeRequest:tnt}=oy(),{webidl:od}=Gs(),{EventSourceStream:rnt}=Dme(),{parseMIMEType:nnt}=eo(),{createFastMessageEvent:snt}=dy(),{isNetworkError:kme}=tQ(),{delay:int}=FH(),{kEnumerableProperty:Tp}=kt(),{environmentSettingsObject:vme}=Uo(),Pme=!1,Mme=3e3,gQ=0,Fme=1,EQ=2,ont="anonymous",ant="use-credentials",Ey=class t extends EventTarget{#e={open:null,error:null,message:null};#t=null;#n=!1;#r=gQ;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),od.util.markAsUncloneable(this);let n="EventSource constructor";od.argumentLengthCheck(arguments,1,n),Pme||(Pme=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=od.converters.USVString(e,n,"url"),r=od.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.dispatcher,this.#o={lastEventId:"",reconnectionTime:Mme};let s=vme,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=ont;r.withCredentials&&(o=ant,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=vme.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=tnt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===EQ)return;this.#r=gQ;let e={request:this.#i,dispatcher:this.#a},r=n=>{kme(n)&&(this.dispatchEvent(new Event("error")),this.close()),this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(kme(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?nnt(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=Fme,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new rnt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(snt(c.type,c.options))}});$rt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=ent(e)}async#A(){this.#r!==EQ&&(this.#r=gQ,this.dispatchEvent(n
Line truncated
|
||||
`).join(`
|
||||
`+i),t.push(s+"m+"+Q2.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=Xut()+e+" "+t[0]}function Xut(){return ys.inspectOpts.hideDate?"":new Date().toISOString()+" "}function Zut(...t){return process.stderr.write(b2.formatWithOptions(ys.inspectOpts,...t)+`
|
||||
`)}function $ut(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function elt(){return process.env.DEBUG}function tlt(t){t.inspectOpts={};let e=Object.keys(ys.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=ys.inspectOpts[e[r]]}Q2.exports=B5()(ys);var{formatters:Eye}=Q2.exports;Eye.o=function(t){return this.inspectOpts.colors=this.useColors,b2.inspect(t,this.inspectOpts).split(`
|
||||
`).map(e=>e.trim()).join(" ")};Eye.O=function(t){return this.inspectOpts.colors=this.useColors,b2.inspect(t,this.inspectOpts)}});var w2=y((vAr,w5)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?w5.exports=dye():w5.exports=yye()});var Bye=y(uo=>{"use strict";var rlt=uo&&uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nlt=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cye=uo&&uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rlt(e,t,r);return nlt(e,t),e};Object.defineProperty(uo,"__esModule",{value:!0});uo.req=uo.json=uo.toBuffer=void 0;var slt=Cye(w("http")),ilt=Cye(w("https"));async function Iye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}uo.toBuffer=Iye;async function olt(t){let r=(await Iye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}uo.json=olt;function alt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ilt:slt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}uo.req=alt});var x5=y(Xo=>{"use strict";var Qye=Xo&&Xo.__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]})),clt=Xo&&Xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wye=Xo&&Xo.__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)&&Qye(e,t,r);return clt(e,t),e},Alt=Xo&&Xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qye(e,t,r)};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.Agent=void 0;var ult=wye(w("net")),bye=wye(w("http")),llt=w("https");Alt(Bye(),Xo);var tu=Symbol("AgentBaseInternalState"),N5=class extends bye.Agent{constructor(e){super(e),this[tu]={}}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(`
|
||||
`).map(e=>e.trim()).join(" ")};Eye.O=function(t){return this.inspectOpts.colors=this.useColors,b2.inspect(t,this.inspectOpts)}});var w2=y((MAr,w5)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?w5.exports=dye():w5.exports=yye()});var Bye=y(uo=>{"use strict";var rlt=uo&&uo.__createBinding||(Object.create?(function(t,e,r,n){n===void 0&&(n=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,s)}):(function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]})),nlt=uo&&uo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Cye=uo&&uo.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&rlt(e,t,r);return nlt(e,t),e};Object.defineProperty(uo,"__esModule",{value:!0});uo.req=uo.json=uo.toBuffer=void 0;var slt=Cye(w("http")),ilt=Cye(w("https"));async function Iye(t){let e=0,r=[];for await(let n of t)e+=n.length,r.push(n);return Buffer.concat(r,e)}uo.toBuffer=Iye;async function olt(t){let r=(await Iye(t)).toString("utf8");try{return JSON.parse(r)}catch(n){let s=n;throw s.message+=` (input: ${r})`,s}}uo.json=olt;function alt(t,e={}){let n=((typeof t=="string"?t:t.href).startsWith("https:")?ilt:slt).request(t,e),s=new Promise((i,o)=>{n.once("response",i).once("error",o).end()});return n.then=s.then.bind(s),n}uo.req=alt});var x5=y(Xo=>{"use strict";var Qye=Xo&&Xo.__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]})),clt=Xo&&Xo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),wye=Xo&&Xo.__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)&&Qye(e,t,r);return clt(e,t),e},Alt=Xo&&Xo.__exportStar||function(t,e){for(var r in t)r!=="default"&&!Object.prototype.hasOwnProperty.call(e,r)&&Qye(e,t,r)};Object.defineProperty(Xo,"__esModule",{value:!0});Xo.Agent=void 0;var ult=wye(w("net")),bye=wye(w("http")),llt=w("https");Alt(Bye(),Xo);var tu=Symbol("AgentBaseInternalState"),N5=class extends bye.Agent{constructor(e){super(e),this[tu]={}}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 ult.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)?llt.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 bye.Agent)try{return a.addRequest(e,s)}catch(c){return n(c)}this[tu].currentSocket=a,super.createSocket(e,r,n)},a=>{this.decrementSockets(i,o),n(a)})}createConnection(){let e=this[tu].currentSocket;if(this[tu].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[tu].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[tu]&&(this[tu].defaultPort=e)}get protocol(){return this[tu].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[tu]&&(this[tu].protocol=e)}};Xo.Agent=N5});var Nye=y(My=>{"use strict";var dlt=My&&My.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(My,"__esModule",{value:!0});My.parseProxyResponse=void 0;var hlt=dlt(w2()),N2=(0,hlt.default)("https-proxy-agent:parse-proxy-response");function flt(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(),N2("onend"),r(new Error("Proxy connection ended before receiving CONNECT response"))}function c(u){o(),N2("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){N2("have not received end of HTTP headers yet..."),i();return}let h=l.slice(0,d).toString("ascii").split(`\r
|
||||
@@ -57,16 +57,16 @@ ${o}`;return}if(fD(e,s,Krt)){Xrt(e,i)&&(r.retry=e.toString("utf8",i));return}if(
|
||||
`;let c=(0,Ilt.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",Blt),r.secureEndpoint?(nw("Upgrading socket connection to TLS"),xye.connect({...Tye(Sye(r),"host","path","port"),socket:s})):s;s.destroy();let l=new x2.Socket({writable:!1});return l.readable=!0,e.once("socket",d=>{nw("Replaying proxy buffer for failed request"),(0,glt.default)(d.listenerCount("data")>0),d.push(u),d.push(null)}),l}};S2.protocols=["http","https"];Ya.HttpsProxyAgent=S2;function Blt(t){t.resume()}function Tye(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var Mye=y(za=>{"use strict";var blt=za&&za.__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]})),Qlt=za&&za.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),Pye=za&&za.__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)&&blt(e,t,r);return Qlt(e,t),e},wlt=za&&za.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(za,"__esModule",{value:!0});za.HttpProxyAgent=void 0;var Nlt=Pye(w("net")),xlt=Pye(w("tls")),Slt=wlt(w2()),Tlt=w("events"),Rlt=x5(),vye=w("url"),Fy=(0,Slt.default)("http-proxy-agent"),T2=class extends Rlt.Agent{constructor(e,r){super(r),this.proxy=typeof e=="string"?new vye.URL(e):e,this.proxyHeaders=r?.headers??{},Fy("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?Dlt(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 vye.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;Fy("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(Fy("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),Fy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Fy("Creating `tls.Socket`: %o",this.connectOpts),i=xlt.connect(this.connectOpts)):(Fy("Creating `net.Socket`: %o",this.connectOpts),i=Nlt.connect(this.connectOpts)),await(0,Tlt.once)(i,"connect"),i}};T2.protocols=["http","https"];za.HttpProxyAgent=T2;function Dlt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var sCe=y(k2=>{"use strict";Object.defineProperty(k2,"__esModule",{value:!0});k2.state=void 0;k2.state={instrumenterImplementation:void 0}});var PCe=y(Y2=>{"use strict";Object.defineProperty(Y2,"__esModule",{value:!0});Y2.state=void 0;Y2.state={operationRequestMap:new WeakMap}});var hbe=y((I1r,BEt)=>{BEt.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var mbe=y((B1r,fbe)=>{var bEt=hbe();fbe.exports={version:bEt.version}});var Cv=y(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.isJsonObject=EC.typeofJsonValue=void 0;function kEt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}EC.typeofJsonValue=kEt;function vEt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}EC.isJsonObject=vEt});var Bv=y(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.base64encode=yC.base64decode=void 0;var Rd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Iv=[];for(let t=0;t<Rd.length;t++)Iv[Rd[t].charCodeAt(0)]=t;Iv[45]=Rd.indexOf("+");Iv[95]=Rd.indexOf("/");function PEt(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=Iv[t.charCodeAt(a)],i===void 0)switch(t[a]){case"=":s=0;case`
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),Fy("Output buffer: %o",e.outputData[0].data));let i;return this.proxy.protocol==="https:"?(Fy("Creating `tls.Socket`: %o",this.connectOpts),i=xlt.connect(this.connectOpts)):(Fy("Creating `net.Socket`: %o",this.connectOpts),i=Nlt.connect(this.connectOpts)),await(0,Tlt.once)(i,"connect"),i}};T2.protocols=["http","https"];za.HttpProxyAgent=T2;function Dlt(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}});var sCe=y(k2=>{"use strict";Object.defineProperty(k2,"__esModule",{value:!0});k2.state=void 0;k2.state={instrumenterImplementation:void 0}});var PCe=y(Y2=>{"use strict";Object.defineProperty(Y2,"__esModule",{value:!0});Y2.state=void 0;Y2.state={operationRequestMap:new WeakMap}});var hbe=y((b1r,BEt)=>{BEt.exports={name:"@actions/cache",version:"6.3.0",description:"Actions cache lib",keywords:["github","actions","cache"],homepage:"https://github.com/actions/toolkit/tree/main/packages/cache",license:"MIT",type:"module",main:"lib/cache.js",types:"lib/cache.d.ts",exports:{".":{types:"./lib/cache.d.ts",import:"./lib/cache.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/cache"},scripts:{"audit-moderate":"npm install && npm audit --json --audit-level=moderate > audit.json",test:'echo "Error: run tests from root" && exit 1',tsc:"tsc && cp src/internal/shared/package-version.cjs lib/internal/shared/"},bugs:{url:"https://github.com/actions/toolkit/issues"},dependencies:{"@actions/core":"^3.0.1","@actions/exec":"^3.0.0","@actions/glob":"^0.7.0","@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.8.5"},devDependencies:{"@protobuf-ts/plugin":"^2.11.1","@types/node":"^25.9.8","@types/semver":"^7.8.0",typescript:"^5.9.3"},overrides:{"uri-js":"npm:uri-js-replace@^1.0.1","node-fetch":"^3.3.2"}}});var mbe=y((Q1r,fbe)=>{var bEt=hbe();fbe.exports={version:bEt.version}});var Cv=y(EC=>{"use strict";Object.defineProperty(EC,"__esModule",{value:!0});EC.isJsonObject=EC.typeofJsonValue=void 0;function kEt(t){let e=typeof t;if(e=="object"){if(Array.isArray(t))return"array";if(t===null)return"null"}return e}EC.typeofJsonValue=kEt;function vEt(t){return t!==null&&typeof t=="object"&&!Array.isArray(t)}EC.isJsonObject=vEt});var Bv=y(yC=>{"use strict";Object.defineProperty(yC,"__esModule",{value:!0});yC.base64encode=yC.base64decode=void 0;var Rd="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Iv=[];for(let t=0;t<Rd.length;t++)Iv[Rd[t].charCodeAt(0)]=t;Iv[45]=Rd.indexOf("+");Iv[95]=Rd.indexOf("/");function PEt(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=Iv[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)}yC.base64decode=PEt;function MEt(t){let e="",r=0,n,s=0;for(let i=0;i<t.length;i++)switch(n=t[i],r){case 0:e+=Rd[n>>2],s=(n&3)<<4,r=1;break;case 1:e+=Rd[s|n>>4],s=(n&15)<<2,r=2;break;case 2:e+=Rd[s|n>>6],e+=Rd[n&63],r=0;break}return r&&(e+=Rd[s],e+="=",r==1&&(e+="=")),e}yC.base64encode=MEt});var Cbe=y(bv=>{"use strict";Object.defineProperty(bv,"__esModule",{value:!0});bv.utf8read=void 0;var Sz=t=>String.fromCharCode.apply(String,t);function FEt(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(Sz(n)),s=0);return r.length?(s&&r.push(Sz(n.slice(0,s))),r.join("")):Sz(n.slice(0,s))}bv.utf8read=FEt});var iN=y(xu=>{"use strict";Object.defineProperty(xu,"__esModule",{value:!0});xu.WireType=xu.mergeBinaryOptions=xu.UnknownFieldHandler=void 0;var LEt;(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])})(LEt=xu.UnknownFieldHandler||(xu.UnknownFieldHandler={}));function _Et(t,e){return Object.assign(Object.assign({},t),e)}xu.mergeBinaryOptions=_Et;var UEt;(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"})(UEt=xu.WireType||(xu.WireType={}))});var wv=y(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.varint32read=Co.varint32write=Co.int64toString=Co.int64fromString=Co.varint64write=Co.varint64read=void 0;function OEt(){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")}Co.varint64read=OEt;function HEt(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)}}Co.varint64write=HEt;var Qv=65536*65536;function qEt(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>=Qv&&(s=s+(n/Qv|0),n=n%Qv)}return i(-24,-18),i(-18,-12),i(-12,-6),i(-6),[e,n,s]}Co.int64fromString=qEt;function GEt(t,e){if(e>>>0<=2097151)return""+(Qv*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)}Co.int64toString=GEt;function YEt(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)}}Co.varint32write=YEt;function zEt(){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}Co.varint32read=zEt});var Mf=y(Pf=>{"use strict";Object.defineProperty(Pf,"__esModule",{value:!0});Pf.PbLong=Pf.PbULong=Pf.detectBi=void 0;var oN=wv(),kr;function Ibe(){let t=new DataView(new ArrayBuffer(8));kr=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}Pf.detectBi=Ibe;Ibe();function Bbe(t){if(!t)throw new Error("BigInt unavailable, see https://github.com/timostamm/protobuf-ts/blob/v1.0.8/MANUAL.md#bigint-support")}var bbe=/^-?[0-9]+$/,xv=4294967296,Nv=2147483648,Sv=c
Line truncated
|
||||
`)}};Zv.RpcError=tW});var nW=y(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.mergeRpcOptions=void 0;var $be=St();function hyt(t,e){if(!e)return t;let r={};$v(t,r),$v(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$be.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$be.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$v(t.meta,r.meta),$v(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}eP.mergeRpcOptions=hyt;function $v(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 iW=y(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.Deferred=dg.DeferredState=void 0;var Ru;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ru=dg.DeferredState||(dg.DeferredState={}));var sW=class{constructor(e=!0){this._state=Ru.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!==Ru.PENDING)throw new Error(`cannot resolve ${Ru[this.state].toLowerCase()}`);this._resolve(e),this._state=Ru.RESOLVED}reject(e){if(this.state!==Ru.PENDING)throw new Error(`cannot reject ${Ru[this.state].toLowerCase()}`);this._reject(e),this._state=Ru.REJECTED}resolvePending(e){this._state===Ru.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ru.PENDING&&this.reject(e)}};dg.Deferred=sW});var aW=y(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.RpcOutputStreamController=void 0;var eQe=iW(),hg=St(),oW=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){hg.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){hg.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){hg.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(){hg.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;hg.assert(e,"bad state"),hg.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 eQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;hg.assert(n.state==eQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};tP.RpcOutputStreamController=oW});var AW=y(NC=>{"use strict";var fyt=NC&&NC.__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(NC,"__esModule",{value:!0});NC.UnaryCall=void 0;var cW=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 fyt(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}})}};NC.UnaryCall=cW});var lW=y(xC=>{"use strict";var myt=xC&&xC.__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(xC,"__esModule",{value:!0});xC.ServerStreamingCall=void 0;var uW=class{constructor(e
Line truncated
|
||||
`)}};Zv.RpcError=tW});var nW=y(eP=>{"use strict";Object.defineProperty(eP,"__esModule",{value:!0});eP.mergeRpcOptions=void 0;var $be=St();function hyt(t,e){if(!e)return t;let r={};$v(t,r),$v(e,r);for(let n of Object.keys(e)){let s=e[n];switch(n){case"jsonOptions":r.jsonOptions=$be.mergeJsonOptions(t.jsonOptions,r.jsonOptions);break;case"binaryOptions":r.binaryOptions=$be.mergeBinaryOptions(t.binaryOptions,r.binaryOptions);break;case"meta":r.meta={},$v(t.meta,r.meta),$v(e.meta,r.meta);break;case"interceptors":r.interceptors=t.interceptors?t.interceptors.concat(s):s.concat();break}}return r}eP.mergeRpcOptions=hyt;function $v(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 iW=y(dg=>{"use strict";Object.defineProperty(dg,"__esModule",{value:!0});dg.Deferred=dg.DeferredState=void 0;var Ru;(function(t){t[t.PENDING=0]="PENDING",t[t.REJECTED=1]="REJECTED",t[t.RESOLVED=2]="RESOLVED"})(Ru=dg.DeferredState||(dg.DeferredState={}));var sW=class{constructor(e=!0){this._state=Ru.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!==Ru.PENDING)throw new Error(`cannot resolve ${Ru[this.state].toLowerCase()}`);this._resolve(e),this._state=Ru.RESOLVED}reject(e){if(this.state!==Ru.PENDING)throw new Error(`cannot reject ${Ru[this.state].toLowerCase()}`);this._reject(e),this._state=Ru.REJECTED}resolvePending(e){this._state===Ru.PENDING&&this.resolve(e)}rejectPending(e){this._state===Ru.PENDING&&this.reject(e)}};dg.Deferred=sW});var aW=y(tP=>{"use strict";Object.defineProperty(tP,"__esModule",{value:!0});tP.RpcOutputStreamController=void 0;var eQe=iW(),hg=St(),oW=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){hg.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){hg.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){hg.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(){hg.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;hg.assert(e,"bad state"),hg.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 eQe.Deferred,e.p.promise)}}}pushIt(e){let r=this._itState;if(r.p){let n=r.p;hg.assert(n.state==eQe.DeferredState.PENDING,"iterator contract broken"),"value"in e?n.resolve(e):n.reject(e),delete r.p}else r.q.push(e)}};tP.RpcOutputStreamController=oW});var AW=y(NC=>{"use strict";var fyt=NC&&NC.__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(NC,"__esModule",{value:!0});NC.UnaryCall=void 0;var cW=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 fyt(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}})}};NC.UnaryCall=cW});var lW=y(xC=>{"use strict";var myt=xC&&xC.__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(xC,"__esModule",{value:!0});xC.ServerStreamingCall=void 0;var uW=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 Zxe=y(Xxe=>{"use strict";var VJ=_d().Buffer;Xxe._dbcs=Ud;var Vs=-1,Kxe=-2,hc=-10,Oi=-1e3,nI=new Array(256),rx=-1;for(wM=0;wM<256;wM++)nI[wM]=Vs;var wM;function Ud(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]=nI.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(nI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(nI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Oi-o[n]],c=48;c<=57;c++){if(a[c]===Vs)a[c]=Oi-s;else if(a[c]>Oi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Oi-a[c]],u=129;u<=254;u++){if(A[u]===Vs)A[u]=Oi-i;else{if(A[u]===Oi-i)continue;if(A[u]>Oi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Oi-A[u]],d=48;d<=57;d++)l[d]===Vs&&(l[d]=Kxe)}}}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 I1t(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(o1t.has(s)){r=s;break}}return r}function B1t(t,e){let r=I1t(e);r!==""&&(t.referrerPolicy=r)}function b1t(){return"allowed"}function Q1t(){return"success"}function w1t(){return"success"}function N1t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function x1t(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&&hj(t.origin)&&!hj(Ug(t))&&(e=null);break;case"same-origin":dx(t,Ug(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cI(t,e){return t}function S1t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cI(t.domainLookupStartTime,r),domainLookupEndTime:cI(t.domainLookupEndTime,r),connectionStartTime:cI(t.connectionStartTime,r),connectionEndTime:cI(t.connectionEndTime,r),secureConnectionStartTime:cI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T1t(t){return cI(u1t.now(),t)}function R1t(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 xTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function D1t(t){return{referrerPolicy:t.referrerPolicy}}function k1t(t){let e=t.referrerPolicy;hx(e);let r=null;if(t.referrer==="client"){let i=BTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else em.is.URL(t.referrer)&&(r=t.referrer);let n=dj(r),s=dj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??dj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Ug(t);return dx(n,i)?n:_g(n)&&!_g(i)?"no-referrer":s}case"same-origin":return dx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return dx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":n}}}function dj(t,e=!1){return hx(em.is.URL(t)),t=new URL(t),DTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var v1t=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)$/),P1t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function STe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),P1t(t)):v1t(t)}function M1t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||STe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function _g(t){return em.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:M1t(t.origin):!1}function F1t(t){}function dx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function L1t(t){return t.controller.state==="aborted"}function _1t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function U1t(t){return d1t[t.toLowerCase()]??t}var O1t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TTe(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,O1t),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 H1t(t,e,r,n=0,s=1){let i=TTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=pc(a=>Bj(a)&&a!==59,t,e);i=Cj.decode(o)}return{name:n,value:i,extended:s}}function lTt(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 So("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=pc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Ij(o,!0,!0,a=>a===9||a===32),!nTt.test(o.toString()))throw So("header name does not match the field-name token production");if(t[e.position]!==58)throw So("expected :");switch(e.position++,pc(a=>a===32||a===9,t,e),rTt(o)){case"content-disposition":{r=n=null;let a=!1;if(pc(A=>Bj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw So("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=uTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw So("name attribute is required in content-disposition header");break}case"content-type":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),s=LTe(a);break}case"content-transfer-encoding":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),i=LTe(a);break}default:pc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw So("expected CRLF");e.position+=2}}function pc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Ij(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 dTt(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 So(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function hTt(t){return t<=31||t===127}function fTt(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 Bj(t){return t<=127&&t!==32&&t!==9&&!hTt(t)&&!fTt(t)}_Te.exports={multipartFormDataParser:ATt,validateBoundary:cTt}});var fx=y((VPr,OTe)=>{"use strict";function mTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}OTe.exports={createDeferredPromise:mTt}});var lI=y((jPr,zTe)=>{"use strict";var wj=ht(),{ReadableStreamFrom:pTt,readableStreamClose:gTt,fullyReadBody:ETt,extractMimeType:yTt}=Aa(),{FormData:HTe,setFormDataState:CTt}=KM(),{webidl:EA}=js(),bj=w("node:assert"),{isErrored:Qj,isDisturbed:ITt}=w("node:stream"),{isUint8Array:BTt}=w("node:util/types"),{serializeAMimeType:bTt}=mc(),{multipartFormDataParser:QTt}=UTe(),{createDeferredPromise:wTt}=fx(),{parseJSONFromBytes:NTt}=qd(),{utf8DecodeBytes:xTt}=YM(),{runtimeFeatures:STt}=Gd(),TTt=STt.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),XM=new TextEncoder;function RTt(){}var DTt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ITt(e)&&!Qj(e)&&e.cancel("Response object has been garbage collected").catch(RTt)});function GTe(t,e=!1){let r=null,n=null;EA.is.ReadableStream(t)?r=t:EA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),bj(EA.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(EA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(EA.is.BufferSource(t))i=EA.util.getCopyOfBytesHeldByBufferSource(t);else if(EA.is.FormData(t)){let A=`----formdata-undici-0${`${TTt(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 Zxe=y(Xxe=>{"use strict";var VJ=_d().Buffer;Xxe._dbcs=Ud;var Vs=-1,Kxe=-2,hc=-10,Oi=-1e3,nI=new Array(256),rx=-1;for(wM=0;wM<256;wM++)nI[wM]=Vs;var wM;function Ud(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]=nI.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(nI.slice(0));var i=this.decodeTables.length;this.decodeTables.push(nI.slice(0));for(var o=this.decodeTables[0],n=129;n<=254;n++)for(var a=this.decodeTables[Oi-o[n]],c=48;c<=57;c++){if(a[c]===Vs)a[c]=Oi-s;else if(a[c]>Oi)throw new Error("gb18030 decode tables conflict at byte 2");for(var A=this.decodeTables[Oi-a[c]],u=129;u<=254;u++){if(A[u]===Vs)A[u]=Oi-i;else{if(A[u]===Oi-i)continue;if(A[u]>Oi)throw new Error("gb18030 decode tables conflict at byte 3")}for(var l=this.decodeTables[Oi-A[u]],d=48;d<=57;d++)l[d]===Vs&&(l[d]=Kxe)}}}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 I1t(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(o1t.has(s)){r=s;break}}return r}function B1t(t,e){let r=I1t(e);r!==""&&(t.referrerPolicy=r)}function b1t(){return"allowed"}function Q1t(){return"success"}function w1t(){return"success"}function N1t(t){let e=null;e=t.mode,t.headersList.set("sec-fetch-mode",e,!0)}function x1t(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&&hj(t.origin)&&!hj(Ug(t))&&(e=null);break;case"same-origin":dx(t,Ug(t))||(e=null);break;default:}t.headersList.append("origin",e,!0)}}}function cI(t,e){return t}function S1t(t,e,r){return!t?.startTime||t.startTime<e?{domainLookupStartTime:e,domainLookupEndTime:e,connectionStartTime:e,connectionEndTime:e,secureConnectionStartTime:e,ALPNNegotiatedProtocol:t?.ALPNNegotiatedProtocol}:{domainLookupStartTime:cI(t.domainLookupStartTime,r),domainLookupEndTime:cI(t.domainLookupEndTime,r),connectionStartTime:cI(t.connectionStartTime,r),connectionEndTime:cI(t.connectionEndTime,r),secureConnectionStartTime:cI(t.secureConnectionStartTime,r),ALPNNegotiatedProtocol:t.ALPNNegotiatedProtocol}}function T1t(t){return cI(u1t.now(),t)}function R1t(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 xTe(){return{referrerPolicy:"strict-origin-when-cross-origin"}}function D1t(t){return{referrerPolicy:t.referrerPolicy}}function k1t(t){let e=t.referrerPolicy;hx(e);let r=null;if(t.referrer==="client"){let i=BTe();if(!i||i.origin==="null")return"no-referrer";r=new URL(i)}else em.is.URL(t.referrer)&&(r=t.referrer);let n=dj(r),s=dj(r,!0);switch(n.toString().length>4096&&(n=s),e){case"no-referrer":return"no-referrer";case"origin":return s??dj(r,!0);case"unsafe-url":return n;case"strict-origin":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":s}case"strict-origin-when-cross-origin":{let i=Ug(t);return dx(n,i)?n:_g(n)&&!_g(i)?"no-referrer":s}case"same-origin":return dx(t,n)?n:"no-referrer";case"origin-when-cross-origin":return dx(t,n)?n:s;case"no-referrer-when-downgrade":{let i=Ug(t);return _g(n)&&!_g(i)?"no-referrer":n}}}function dj(t,e=!1){return hx(em.is.URL(t)),t=new URL(t),DTe(t)?"no-referrer":(t.username="",t.password="",t.hash="",e===!0&&(t.pathname="",t.search=""),t)}var v1t=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)$/),P1t=RegExp.prototype.test.bind(/^(?:(?:0{1,4}:){7}|(?:0{1,4}:){1,6}:|::)0{0,3}1$/);function STe(t){return t.includes(":")?(t[0]==="["&&t[t.length-1]==="]"&&(t=t.slice(1,-1)),P1t(t)):v1t(t)}function M1t(t){return t==null||t==="null"?!1:(t=new URL(t),!!(t.protocol==="https:"||t.protocol==="wss:"||STe(t.hostname)||t.hostname==="localhost"||t.hostname==="localhost."||t.hostname.endsWith(".localhost")||t.hostname.endsWith(".localhost.")||t.protocol==="file:"))}function _g(t){return em.is.URL(t)?t.href==="about:blank"||t.href==="about:srcdoc"||t.protocol==="data:"||t.protocol==="blob:"?!0:M1t(t.origin):!1}function F1t(t){}function dx(t,e){return t.origin===e.origin&&t.origin==="null"||t.protocol===e.protocol&&t.hostname===e.hostname&&t.port===e.port}function L1t(t){return t.controller.state==="aborted"}function _1t(t){return t.controller.state==="aborted"||t.controller.state==="terminated"}function U1t(t){return d1t[t.toLowerCase()]??t}var O1t=Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()));function TTe(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,O1t),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 H1t(t,e,r,n=0,s=1){let i=TTe(t,r,n,s),o={keys:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"key")}},values:{writable:!0,enumerable:!0,configurable:!0,value:function(){return em.brandCheck(this,e),i(this,"value
Line truncated
|
||||
`).replace(/%0D/ig,"\r").replace(/%22/g,'"')}else{let o=pc(a=>Bj(a)&&a!==59,t,e);i=Cj.decode(o)}return{name:n,value:i,extended:s}}function lTt(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 So("header name is null");return{name:r,filename:n,contentType:s,encoding:i}}let o=pc(a=>a!==10&&a!==13&&a!==58,t,e);if(o=Ij(o,!0,!0,a=>a===9||a===32),!nTt.test(o.toString()))throw So("header name does not match the field-name token production");if(t[e.position]!==58)throw So("expected :");switch(e.position++,pc(a=>a===32||a===9,t,e),rTt(o)){case"content-disposition":{r=n=null;let a=!1;if(pc(A=>Bj(A),t,e).toString("ascii").toLowerCase()!=="form-data")throw So("expected form-data for content-disposition header");for(;e.position<t.length&&(t[e.position]!==13||t[e.position+1]!==10);){let A=uTt(t,e);if(!A)break;A.name==="name"?r=A.value:A.name==="filename"&&(A.extended?(n=A.value,a=!0):a||(n=A.value))}if(r===null)throw So("name attribute is required in content-disposition header");break}case"content-type":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),s=LTe(a);break}case"content-transfer-encoding":{let a=pc(c=>c!==10&&c!==13,t,e);a=Ij(a,!1,!0,c=>c===9||c===32),i=LTe(a);break}default:pc(a=>a!==10&&a!==13,t,e)}if(t[e.position]!==13||t[e.position+1]!==10)throw So("expected CRLF");e.position+=2}}function pc(t,e,r){let n=r.position;for(;n<e.length&&t(e[n]);)++n;return e.subarray(r.position,r.position=n)}function Ij(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 dTt(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 So(t){return new TypeError("Failed to parse body as FormData.",{cause:new TypeError(t)})}function hTt(t){return t<=31||t===127}function fTt(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 Bj(t){return t<=127&&t!==32&&t!==9&&!hTt(t)&&!fTt(t)}_Te.exports={multipartFormDataParser:ATt,validateBoundary:cTt}});var fx=y((KPr,OTe)=>{"use strict";function mTt(){let t,e;return{promise:new Promise((n,s)=>{t=n,e=s}),resolve:t,reject:e}}OTe.exports={createDeferredPromise:mTt}});var lI=y((XPr,zTe)=>{"use strict";var wj=ht(),{ReadableStreamFrom:pTt,readableStreamClose:gTt,fullyReadBody:ETt,extractMimeType:yTt}=Aa(),{FormData:HTe,setFormDataState:CTt}=KM(),{webidl:EA}=js(),bj=w("node:assert"),{isErrored:Qj,isDisturbed:ITt}=w("node:stream"),{isUint8Array:BTt}=w("node:util/types"),{serializeAMimeType:bTt}=mc(),{multipartFormDataParser:QTt}=UTe(),{createDeferredPromise:wTt}=fx(),{parseJSONFromBytes:NTt}=qd(),{utf8DecodeBytes:xTt}=YM(),{runtimeFeatures:STt}=Gd(),TTt=STt.has("crypto")?w("node:crypto").randomInt:t=>Math.floor(Math.random()*t),XM=new TextEncoder;function RTt(){}var DTt=new FinalizationRegistry(t=>{let e=t.deref();e&&!e.locked&&!ITt(e)&&!Qj(e)&&e.cancel("Response object has been garbage collected").catch(RTt)});function GTe(t,e=!1){let r=null,n=null;EA.is.ReadableStream(t)?r=t:EA.is.Blob(t)?r=t.stream():r=new ReadableStream({pull(){},start(A){n=A},cancel(){},type:"bytes"}),bj(EA.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(EA.is.URLSearchParams(t))i=t.toString(),a="application/x-www-form-urlencoded;charset=UTF-8";else if(EA.is.BufferSource(t))i=EA.util.getCopyOfBytesHeldByBufferSource(t);else if(EA.is.FormData(t)){let A=`----formdata-undici-0${`${TTt(1e11)}`.padStart(11,"0")}`,u=`--${A}\r
|
||||
Content-Disposition: form-data`;let l=g=>g.replace(/\n/g,"%0A").replace(/\r/g,"%0D").replace(/"/g,"%22"),d=g=>g.replace(/\r?\n|\r/g,`\r
|
||||
`),h=[],f=new Uint8Array([13,10]);o=0;let m=!1;for(let[g,C]of t)if(typeof C=="string"){let I=XM.encode(u+`; name="${l(d(g))}"\r
|
||||
\r
|
||||
@@ -75,7 +75,7 @@ ${d(C)}\r
|
||||
Content-Type: ${C.type||"application/octet-stream"}\r
|
||||
\r
|
||||
`);h.push(I,C,f),typeof C.size=="number"?o+=I.byteLength+C.size+f.byteLength:m=!0}let E=XM.encode(`--${A}--\r
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(EA.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(wj.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=EA.is.ReadableStream(t)?t:pTt(t)}return(typeof i=="string"||BTt(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(Qj(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!Qj(r)&&n.enqueue(typeof A=="string"?XM.encode(A):new Uint8Array(A));queueMicrotask(()=>gTt(n))})(),[{stream:r,source:i,length:o},a]}function kTt(t,e=!1){return EA.is.ReadableStream(t)&&(bj(!wj.isDisturbed(t),"The body has already been consumed."),bj(!t.locked,"The stream is locked.")),GTe(t,e)}function vTt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function PTt(t,e){return{blob(){return uI(this,n=>{let s=qTe(e(this));return s===null?s="":s&&(s=bTt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return uI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return uI(this,xTt,t,e)},json(){return uI(this,NTt,t,e)},formData(){return uI(this,n=>{let s=qTe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QTt(n,s),o=new HTe;return CTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new HTe;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 uI(this,n=>new Uint8Array(n),t,e)}}}function MTt(t,e){Object.assign(t.prototype,PTt(t,e))}function uI(t,e,r,n){try{EA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),YTe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=wTt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ETt(t.body,o,i),s.promise)}function YTe(t){let e=t.body;return e!=null&&(e.stream.locked||wj.isDisturbed(e.stream))}function qTe(t){let e=t.headersList,r=yTt(e);return r==="failure"?null:r}zTe.exports={extractBody:GTe,safelyExtractBody:kTt,cloneBody:vTt,mixinBody:MTt,streamRegistry:DTt,bodyUnusable:YTe}});var oRe=y((KPr,iRe)=>{"use strict";var $e=w("node:assert"),He=ht(),{channels:WTe}=Zf(),Nj=oV(),{RequestContentLengthMismatchError:Og,ResponseContentLengthMismatchError:JTe,RequestAbortedError:tRe,InvalidArgumentError:FTt,HeadersTimeoutError:LTt,HeadersOverflowError:_Tt,SocketError:Hg,InformationalError:dI,BodyTimeoutError:UTt,HTTPParserError:OTt,ResponseExceededMaxSizeError:HTt}=At(),{kUrl:rRe,kReset:To,kClient:rF,kParser:Gr,kBlocking:gx,kRunning:Vn,kPending:vj,kSize:VTe,kWriting:tm,kQueue:yA,kNoRef:mx,kKeepAliveDefaultTimeout:qTt,kHostHeader:GTt,kPendingIdx:YTt,kRunningIdx:gc,kError:Hi,kPipelining:eF,kSocket:qg,kKeepAliveTimeoutValue:nF,kMaxHeadersSize:zTt,kKeepAliveMaxTimeout:WTt,kKeepAliveTimeoutThreshold:JTt,kHeadersTimeout:VTt,kBodyTimeout:jTt,kStrictContentLength:Tj,kMaxRequests:jTe,kCounter:KTt,kMaxResponseSize:XTt,kOnError:KTe,kResume:zd,kHTTPContext:nRe,kClosed:Rj}=br(),ua=z1e(),XTe=Buffer.alloc(0),ZM=Buffer[Symbol.species],ZTt=He.removeAllListeners,Gg=Symbol("kIdleSocketValidation"),hI=Symbol("kIdleSocketValidationTimeout"),Pj=Symbol("kSocketUsed"),xj;function $Tt(){let t=process.env.JEST_WORKER_ID?$V():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(V1e())}catch{}return e||(e=new WebAssembly.Module(t||$V())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onStatus(new ZM(Ou.buffer,o,i))},wasm_on_message_begin:n=>($e(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderField(new ZM(Ou.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderValue(new ZM(Ou.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onBody(new ZM(Ou.buffer,o,i))},wasm_on_message_complete:n=>($e(bn.ptr===n),bn.onMessageComplete())}})}var Sj=null,bn=null,Ou=null,$M=0,Hu=null,eRt=0,px=1,fI=2|px,tF=4|px,Dj=8|eRt,kj=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ua.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[zTt],this.shouldKeepAliv
Line truncated
|
||||
`);h.push(E),o+=E.byteLength,m&&(o=null),i=t,s=async function*(){for(let g of h)g.stream?yield*g.stream():yield g},a=`multipart/form-data; boundary=${A}`}else if(EA.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(wj.isDisturbed(t)||t.locked)throw new TypeError("Response body object should not be disturbed or locked");r=EA.is.ReadableStream(t)?t:pTt(t)}return(typeof i=="string"||BTt(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(Qj(r))break;l.length&&n.enqueue(new Uint8Array(l))}else A?.length&&!Qj(r)&&n.enqueue(typeof A=="string"?XM.encode(A):new Uint8Array(A));queueMicrotask(()=>gTt(n))})(),[{stream:r,source:i,length:o},a]}function kTt(t,e=!1){return EA.is.ReadableStream(t)&&(bj(!wj.isDisturbed(t),"The body has already been consumed."),bj(!t.locked,"The stream is locked.")),GTe(t,e)}function vTt(t){let{0:e,1:r}=t.stream.tee();return t.stream=e,{stream:r,length:t.length,source:t.source}}function PTt(t,e){return{blob(){return uI(this,n=>{let s=qTe(e(this));return s===null?s="":s&&(s=bTt(s)),new Blob([n],{type:s})},t,e)},arrayBuffer(){return uI(this,n=>new Uint8Array(n).buffer,t,e)},text(){return uI(this,xTt,t,e)},json(){return uI(this,NTt,t,e)},formData(){return uI(this,n=>{let s=qTe(e(this));if(s!==null)switch(s.essence){case"multipart/form-data":{let i=QTt(n,s),o=new HTe;return CTt(o,i),o}case"application/x-www-form-urlencoded":{let i=new URLSearchParams(n.toString()),o=new HTe;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 uI(this,n=>new Uint8Array(n),t,e)}}}function MTt(t,e){Object.assign(t.prototype,PTt(t,e))}function uI(t,e,r,n){try{EA.brandCheck(t,r)}catch(a){return Promise.reject(a)}if(t=n(t),YTe(t))return Promise.reject(new TypeError("Body is unusable: Body has already been read"));let s=wTt(),i=s.reject,o=a=>{try{s.resolve(e(a))}catch(c){i(c)}};return t.body==null?(o(Buffer.allocUnsafe(0)),s.promise):(ETt(t.body,o,i),s.promise)}function YTe(t){let e=t.body;return e!=null&&(e.stream.locked||wj.isDisturbed(e.stream))}function qTe(t){let e=t.headersList,r=yTt(e);return r==="failure"?null:r}zTe.exports={extractBody:GTe,safelyExtractBody:kTt,cloneBody:vTt,mixinBody:MTt,streamRegistry:DTt,bodyUnusable:YTe}});var oRe=y((ZPr,iRe)=>{"use strict";var $e=w("node:assert"),He=ht(),{channels:WTe}=Zf(),Nj=oV(),{RequestContentLengthMismatchError:Og,ResponseContentLengthMismatchError:JTe,RequestAbortedError:tRe,InvalidArgumentError:FTt,HeadersTimeoutError:LTt,HeadersOverflowError:_Tt,SocketError:Hg,InformationalError:dI,BodyTimeoutError:UTt,HTTPParserError:OTt,ResponseExceededMaxSizeError:HTt}=At(),{kUrl:rRe,kReset:To,kClient:rF,kParser:Gr,kBlocking:gx,kRunning:Vn,kPending:vj,kSize:VTe,kWriting:tm,kQueue:yA,kNoRef:mx,kKeepAliveDefaultTimeout:qTt,kHostHeader:GTt,kPendingIdx:YTt,kRunningIdx:gc,kError:Hi,kPipelining:eF,kSocket:qg,kKeepAliveTimeoutValue:nF,kMaxHeadersSize:zTt,kKeepAliveMaxTimeout:WTt,kKeepAliveTimeoutThreshold:JTt,kHeadersTimeout:VTt,kBodyTimeout:jTt,kStrictContentLength:Tj,kMaxRequests:jTe,kCounter:KTt,kMaxResponseSize:XTt,kOnError:KTe,kResume:zd,kHTTPContext:nRe,kClosed:Rj}=br(),ua=z1e(),XTe=Buffer.alloc(0),ZM=Buffer[Symbol.species],ZTt=He.removeAllListeners,Gg=Symbol("kIdleSocketValidation"),hI=Symbol("kIdleSocketValidationTimeout"),Pj=Symbol("kSocketUsed"),xj;function $Tt(){let t=process.env.JEST_WORKER_ID?$V():void 0,e,r=process.arch!=="ppc64";if(process.env.UNDICI_NO_WASM_SIMD==="1"?r=!1:process.env.UNDICI_NO_WASM_SIMD==="0"&&(r=!0),r)try{e=new WebAssembly.Module(V1e())}catch{}return e||(e=new WebAssembly.Module(t||$V())),new WebAssembly.Instance(e,{env:{wasm_on_url:(n,s,i)=>0,wasm_on_status:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onStatus(new ZM(Ou.buffer,o,i))},wasm_on_message_begin:n=>($e(bn.ptr===n),bn.onMessageBegin()),wasm_on_header_field:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderField(new ZM(Ou.buffer,o,i))},wasm_on_header_value:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onHeaderValue(new ZM(Ou.buffer,o,i))},wasm_on_headers_complete:(n,s,i,o)=>($e(bn.ptr===n),bn.onHeadersComplete(s,i===1,o===1)),wasm_on_body:(n,s,i)=>{$e(bn.ptr===n);let o=s-Hu+Ou.byteOffset;return bn.onBody(new ZM(Ou.buffer,o,i))},wasm_on_message_complete:n=>($e(bn.ptr===n),bn.onMessageComplete())}})}var Sj=null,bn=null,Ou=null,$M=0,Hu=null,eRt=0,px=1,fI=2|px,tF=4|px,Dj=8|eRt,kj=class{constructor(e,r,{exports:n}){this.llhttp=n,this.ptr=this.llhttp.llhttp_alloc(ua.TYPE.RESPONSE),this.client=e,this.socket=r,this.timeout=null,this.timeoutWeakRef=new WeakRef(this),this.timeoutValue=null,this.timeoutType=null,this.statusCode=0,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[zTt],this.shouldKeepAliv
Line truncated
|
||||
`;if(typeof s=="string"?m+=`host: ${s}\r
|
||||
`:m+=t[GTt],i?m+=`connection: upgrade\r
|
||||
upgrade: ${i}\r
|
||||
@@ -101,13 +101,13 @@ ${A.toString(16)}\r
|
||||
`,"latin1"):r===null&&e.write(`\r
|
||||
0\r
|
||||
\r
|
||||
`,"latin1"),r!==null&&s!==r){if(n[Tj])throw new Og;process.emitWarning(new Og)}e[Gr].timeout&&e[Gr].timeoutType===fI&&e[Gr].timeout.refresh&&e[Gr].timeout.refresh(),n[zd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[tm]=!1,e&&($e(n[Vn]<=1,"pipeline should only contain this request"),s(e))}};iRe.exports=tRt});var mRe=y((XPr,fRe)=>{"use strict";var yc=w("node:assert"),{pipeline:hRt}=w("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:_j,RequestAbortedError:fRt,SocketError:bx,InformationalError:rm,InvalidArgumentError:mRt,HeadersTimeoutError:pRt,BodyTimeoutError:gRt}=At(),{kUrl:Bx,kReset:aF,kClient:la,kRunning:Qx,kPending:ERt,kQueue:yx,kPendingIdx:Yg,kRunningIdx:qu,kError:da,kSocket:cn,kStrictContentLength:yRt,kOnError:mI,kMaxConcurrentStreams:Uj,kPingInterval:aRe,kHTTP2Session:Wd,kHTTP2InitialWindowSize:CRt,kHTTP2ConnectionWindowSize:IRt,kResume:Gu,kSize:BRt,kHTTPContext:Hj,kClosed:Oj,kBodyTimeout:bRt,kHeadersTimeout:QRt,kEnableConnectProtocol:Cx,kRemoteSettings:Ix,kHTTP2Stream:iF,kHTTP2SessionState:qj}=br(),{channels:cRe}=Zf(),Ec=Symbol("open streams"),ARe,oF;try{oF=w("node:http2")}catch{oF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wRt,HTTP2_HEADER_METHOD:uRe,HTTP2_HEADER_PATH:lRe,HTTP2_HEADER_SCHEME:Mj,HTTP2_HEADER_CONTENT_LENGTH:NRt,HTTP2_HEADER_EXPECT:xRt,HTTP2_HEADER_STATUS:Fj,HTTP2_HEADER_PROTOCOL:SRt,NGHTTP2_REFUSED_STREAM:TRt,NGHTTP2_CANCEL:RRt}}=oF;function Lj(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 DRt(t,e){t[cn]=e;let r=t[CRt],n=t[IRt],s=oF.connect(t[Bx],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uj],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[cn]=e,s[Ec]=0,s[la]=t,s[cn]=e,s[qj]={ping:{interval:t[aRe]===0?null:setInterval(MRt,t[aRe],s).unref()}},s[Cx]=!1,s[Ix]=!1,n&&Tt.addListener(s,"connect",vRt.bind(s,n)),Tt.addListener(s,"error",FRt),Tt.addListener(s,"frameError",LRt),Tt.addListener(s,"end",_Rt),Tt.addListener(s,"goaway",URt),Tt.addListener(s,"close",ORt),Tt.addListener(s,"remoteSettings",PRt),s.unref(),t[Wd]=s,e[Wd]=s,Tt.addListener(e,"error",qRt),Tt.addListener(e,"end",GRt),Tt.addListener(e,"close",HRt),e[Oj]=!1,e.on("close",YRt),{version:"h2",defaultPipelining:1/0,write(i){return WRt(t,i)},resume(){kRt(t)},destroy(i,o){e[Oj]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Qx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1;return!1}}}function kRt(t){let e=t[cn];e?.destroyed===!1&&(t[BRt]===0?(e.unref(),t[Wd].unref()):(e.ref(),t[Wd].ref()))}function vRt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function PRt(t){if(this[la][Uj]=t.maxConcurrentStreams??this[la][Uj],this[Ix]===!0&&this[Cx]===!0&&t.enableConnectProtocol===!1){let e=new rm("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[cn][da]=e,this[la][mI](e);return}this[Cx]=t.enableConnectProtocol??this[Cx],this[Ix]=!0,this[la][Gu]()}function MRt(t){let e=t[qj];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[la],o=this[la];if(n!=null){let a=new rm(`HTTP/2: "PING" errored - type ${n.message}`);o[da]=a,i[mI](a)}else i.emit("ping",s)}}function FRt(t){yc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn][da]=t,this[la][mI](t)}function LRt(t,e,r){if(r===0){let n=new rm(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cn][da]=n,this[la][mI](n)}}function _Rt(){let t=new bx("other side closed",Tt.getSocketInfo(this[cn]));this.destroy(t),Tt.destroy(this[cn],t)}function Ex(t,e,r=!1){let n=t[yx],s=t[qu];if(s<t[Yg]&&n[s]===e){n[s]=null,t[qu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Yg]||(n.splice(i,1),t[Yg]--,r&&t[Yg]<t[qu]&&(t[Yg]=t[qu]))}function URt(t){let e=this[da]||new bx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[cn])),r=this[la];if(r[cn]=null,r[Hj]=null,this.close(),this[Wd]=null,Tt.destroy(this[cn],e),r[qu]<r[yx].length){let n=r[yx][r[qu]];r[yx][r[qu]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[Yg]=r[qu]}yc(r[Qx]===0),r.emit("disconnect",r[Bx],[r],e),r.emit("connectionError",r[Bx],[r],e),r[Gu]()}function ORt(){let{[la]:t,[qj]:e}=this,{[cn]:r}=t,n=this[cn][da]||this[da]||new bx("closed",Tt.getSocketInfo(r));if(t[cn]=null,t[Hj]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){yc(t[ERt]===0);let s=t[yx].splice(t[qu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function HRt(){let t=this[da]||new bx("closed",Tt.getSocketInfo(this)),e=this[Wd][la];e[cn]=null,e[Hj]=null,this[Wd]!==null&&this[
Line truncated
|
||||
`;cRe.sendHeaders.publish({request:e,headers:H,socket:s[cn]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[xRt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,F()),++s[Ec],m.setTimeout(r);let W=!1;return m.once("response",H=>{let{[Fj]:k,...j}=H;if(e.onResponseStarted(),W=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),Lj(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),W?(!e.aborted&&!e.completed&&e.onComplete({}),Ex(t,e),t[Gu]()):(C(new rm("HTTP/2: stream half-closed (remote)")),Ex(t,e,!0),t[Gu]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),!e.aborted&&!e.completed&&C(new rm("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new rm(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=W?new gRt(`HTTP/2: "body timeout after ${n}"`):new pRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?dRe(C,m,null,t,e,t[cn],B,I):Tt.isBuffer(h)?dRe(C,m,h,t,e,t[cn],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?hRe(C,m,h.stream(),t,e,t[cn],B,I):VRt(C,m,h,t,e,t[cn],B,I):Tt.isStream(h)?JRt(C,t[cn],I,m,h,t,e,B):Tt.isIterable(h)?hRe(C,m,h,t,e,t[cn],B,I):yc(!1)}}function dRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(yc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[aF]=!0),s.onRequestSent(),n[Gu]()}catch(c){t(c)}}function JRt(t,e,r,n,s,i,o,a){yc(a!==0||i[Qx]===0,"stream body cannot be pipelined");let c=hRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[aF]=!0),i[Gu]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function VRt(t,e,r,n,s,i,o,a){yc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _j;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(c){t(c)}}async function hRe(t,e,r,n,s,i,o,a){yc(o!==0||n[Qx]===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)=>{yc(c===null),i[da]?d(i[da]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[da])throw i[da];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}fRe.exports=DRt});var om=y((ZPr,bRe)=>{"use strict";var Jd=w("node:assert"),yRe=w("node:net"),wx=w("node:http"),zg=ht(),{ClientStats:jRt}=MV(),{channels:pI}=Zf(),KRt=v1e(),XRt=Mg(),{InvalidArgumentError:Yr,InformationalError:ZRt,ClientDestroyedError:$Rt}=At(),eDt=Fg(),{kUrl:Yu,kServerName:im,kClient:tDt,kBusy:Yj,kConnect:rDt,kResuming:Wg,kRunning:Tx,kPending:Rx,kSize:Nx,kQueue:CA,kConnected:nDt,kConnecting:gI,kNeedDrain:sm,kKeepAliveDefaultTimeout:pRe,kHostHeader:sDt,kPendingIdx:IA,kRunningIdx:jd,kError:iDt,kPipelining:cF,kKeepAliveTimeoutValue:oDt,kMaxHeadersSize:aDt,kKeepAliveMaxTimeout:cDt,kKeepAliveTimeoutThreshold:ADt,kHeadersTimeout:uDt,kBodyTimeout:lDt,kStrictContentLength:dDt,kConnector:xx,kMaxRequests:zj,kCounter:hDt,kClose:fDt,kDestroy:mDt,kDispatch:pDt,kLocalAddress:Sx,kMaxResponseSize:gDt,kOnError:EDt,kHTTPContext:Un,kMaxConcurrentStreams:yDt,kHTTP2InitialWindowSize:CDt,kHTTP2ConnectionWindowSize:IDt,kResume:Vd,kPingInterval:BDt}=br(),bDt=oRe(),QDt=mRe(),nm=Symbol("kClosedResolve"),wDt=wx&&wx.maxHeaderSize&&Number.isInteger(wx.maxHeaderSize)&&wx.maxHeaderSize>0?()=>wx.maxHeaderSize:()=>{throw new Yr("http module not available or http.maxHeaderSize invalid")},gRe=()=>{};function CRe(t){return t[cF]??t[Un]?.defaultPipelining??1}var Wj=class extends XRt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:W,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:re,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new Yr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Yr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Yr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[lDt]=a??3e5,this[uDt]=n??3e5,this[dDt]=g??!0,this[zj]=B,this[nm]=null,this[gDt]=W>-1?W:-1,this[Un]=null,this[yDt]=k??100,this[CDt]=re??262144,this[IDt]=le??524288,this[BDt]=fe??6e4,this[CA]=[],this[jd]=0,this[IA]=0,this[Vd]=ze=>Jj(this,ze),this[EDt]=ze=>IRe(this,ze)}get pipelining(){return this[cF]}set pipelining(e){this[cF]=e,this[Vd](!0)}get stats(){return new jRt(this)}get[Rx](){return this[CA].length-this[IA]}get[Tx](){return this[IA]-this[jd]}get[Nx](){return this[CA].length-this[jd]}get[nDt](){return!!this[Un]&&!this[gI]&&!this[Un].destroyed}get[Yj](){return!!(this[Un]?.busy(null)||this[Nx]>=(CRe(this)||1)||this[Rx]>0)}[rDt](e){BRe(this),this.once("connect",e)}[pDt](e,r){let n=new KRt(this[Yu].origin,e,r);return this[CA].push(n),this[Wg]||(zg.bodyLength(n.body)==null&&zg.isIterable(n.body)?(this[Wg]=1,queueMicrotask(()=>Jj(this))):this[Vd](!0)),this[Wg]&&this[sm]!==2&&this[Yj]&&(this[sm]=2),this[sm]<2}[fDt](){return new Promise(e=>{this[Nx]?this[nm]=e:e(null)})}[mDt](e){return new Promise(r=>{let n=this[CA].splice(this[IA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&zg.errorRequest(this,o,e)}let s=()=>{this[nm]&&(this[nm](),this[nm]=null),r(null)};this[Un]?(this[Un].destroy(e,s),this[Un]=null):queueMicrotask(s),this[Vd]()})}};function IRe(t,e){if(t[Tx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jd(t[IA]===t[jd]);let r=t[CA].splice(t[jd]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&zg.errorRequest(t,s,e)}Jd(t[Nx]===0)}}function BRe(t){Jd(!t[gI]),Jd(!t[Un]);let{host:e,hostname:r,protocol:n,port:s}=t[Yu];if(r[0]==="["){let i=r.indexOf("]");Jd(i!==-1);let o=r.substring(1,i);Jd(yRe.isIPv6(o)),r=o}t[gI]=!0,pI.beforeConnect.hasSubscribers&&pI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx]});try{t[xx]({host:e,hostname:r,protocol:n,port:s,servername:t[im],localAddress:t[Sx]},(i,o)=>{if(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}if(t.destroyed){zg.destroy(o.on("error",gRe),new $Rt),t[Vd]();return}Jd(o);try{t[Un]=o.alpnProtocol==="h2"?QDt(t,o):bDt(t,o)}catch(a){o.destroy().on("error",gRe),Gj(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}t[gI]=!1,o[hDt]=0,o[zj]=t[zj],o[tDt]=t,o[iDt]=null,pI.connected.hasSubscribers&&pI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],socket:o}),t.emit("connect",t[Yu],[t]),t[Vd]()})}catch(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]()}}function Gj(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[gI]=!1,pI.connectError.hasSubscribers&&pI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jd(t[Tx]===0);t[Rx]>0&&t[CA][t[IA]].servername===t[im];){let o=t[CA][t[IA]++];zg.errorRequest(t,o,e)}else IRe(t,e);t.emit("connectionError",t[Yu],[t],e)}}function ERe(t){t[sm]=0,t.emit("drain",t[Yu],[t])}function Jj(t,e){t[Wg]!==2&&(t[Wg]=2,NDt(t,e),t[Wg]=0,t[jd]>256&&(t[CA].splice(0,t[jd]),t[IA]-=t[jd],t[jd]=0))}function NDt(t,e){for(;;){if(t.destroyed){Jd(t[Rx]===0);return}if(t[nm]&&!t[Nx]){t[nm](),t[nm]=null;return}if(t[Un]&&t[Un].resume(),t[Yj])t[sm]=2;else if(t[sm]===2){e?(t[sm]=1,queueMicrotask(()=>ERe(t))):ERe(t);continue}if(t[Rx]===0||t[Tx]>=(CRe(t)||1))return;let r=t[CA][t[IA]];if(r===null)return;if(t[Yu].protocol==="https:"&&t[im]!==r.servername){if(t[Tx]>0)return;t[im]=r.servername,t[Un]?.destroy(new ZRt("servername changed"),()=>{t[Un]=null,Jj(t)})}if(t[gI])return;if(!t[Un]){BRe(t);return}if(t[Un].destroyed||t[Un].busy(r))return;!r.aborted&&t[Un].write(r)?t[IA]++:t[CA].splice(t[IA],1)}}bRe.exports=Wj});var Vj=y((eMr,QRe)=>{"use strict";var AF=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)}};QRe.exports=class{constructor(){this.head=this.tail=new AF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AF),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 uF=y((tMr,vRe)=>{"use strict";var{PoolStats:xDt}=MV(),SDt=Mg(),TDt=Vj(),{kConnected:jj,kSize:wRe,kRunning:NRe,kPending:xRe,kQueued:Dx,kBusy:RDt,kFree:DDt,kUrl:kDt,kClose:vDt,kDestroy:PDt,kDispatch:MDt}=br(),ks=Symbol("clients"),qi=Symbol("needDrain"),kx=Symbol("queue"),Kj=Symbol("closed resolve"),Xj=Symbol("onDrain"),SRe=Symbol("onConnect"),TRe=Symbol("onDisconnect"),RRe=Symbol("onConnectionError"),Zj=Symbol("get dispatcher"),DRe=Symbol("add client"),kRe=Symbol("remove client"),$j=class extends SDt{[kx]=n
Line truncated
|
||||
`,"latin1"),r!==null&&s!==r){if(n[Tj])throw new Og;process.emitWarning(new Og)}e[Gr].timeout&&e[Gr].timeoutType===fI&&e[Gr].timeout.refresh&&e[Gr].timeout.refresh(),n[zd]()}}destroy(e){let{socket:r,client:n,abort:s}=this;r[tm]=!1,e&&($e(n[Vn]<=1,"pipeline should only contain this request"),s(e))}};iRe.exports=tRt});var mRe=y(($Pr,fRe)=>{"use strict";var yc=w("node:assert"),{pipeline:hRt}=w("node:stream"),Tt=ht(),{RequestContentLengthMismatchError:_j,RequestAbortedError:fRt,SocketError:bx,InformationalError:rm,InvalidArgumentError:mRt,HeadersTimeoutError:pRt,BodyTimeoutError:gRt}=At(),{kUrl:Bx,kReset:aF,kClient:la,kRunning:Qx,kPending:ERt,kQueue:yx,kPendingIdx:Yg,kRunningIdx:qu,kError:da,kSocket:cn,kStrictContentLength:yRt,kOnError:mI,kMaxConcurrentStreams:Uj,kPingInterval:aRe,kHTTP2Session:Wd,kHTTP2InitialWindowSize:CRt,kHTTP2ConnectionWindowSize:IRt,kResume:Gu,kSize:BRt,kHTTPContext:Hj,kClosed:Oj,kBodyTimeout:bRt,kHeadersTimeout:QRt,kEnableConnectProtocol:Cx,kRemoteSettings:Ix,kHTTP2Stream:iF,kHTTP2SessionState:qj}=br(),{channels:cRe}=Zf(),Ec=Symbol("open streams"),ARe,oF;try{oF=w("node:http2")}catch{oF={constants:{}}}var{constants:{HTTP2_HEADER_AUTHORITY:wRt,HTTP2_HEADER_METHOD:uRe,HTTP2_HEADER_PATH:lRe,HTTP2_HEADER_SCHEME:Mj,HTTP2_HEADER_CONTENT_LENGTH:NRt,HTTP2_HEADER_EXPECT:xRt,HTTP2_HEADER_STATUS:Fj,HTTP2_HEADER_PROTOCOL:SRt,NGHTTP2_REFUSED_STREAM:TRt,NGHTTP2_CANCEL:RRt}}=oF;function Lj(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 DRt(t,e){t[cn]=e;let r=t[CRt],n=t[IRt],s=oF.connect(t[Bx],{createConnection:()=>e,peerMaxConcurrentStreams:t[Uj],settings:{enablePush:!1,...r!=null?{initialWindowSize:r}:null}});return t[cn]=e,s[Ec]=0,s[la]=t,s[cn]=e,s[qj]={ping:{interval:t[aRe]===0?null:setInterval(MRt,t[aRe],s).unref()}},s[Cx]=!1,s[Ix]=!1,n&&Tt.addListener(s,"connect",vRt.bind(s,n)),Tt.addListener(s,"error",FRt),Tt.addListener(s,"frameError",LRt),Tt.addListener(s,"end",_Rt),Tt.addListener(s,"goaway",URt),Tt.addListener(s,"close",ORt),Tt.addListener(s,"remoteSettings",PRt),s.unref(),t[Wd]=s,e[Wd]=s,Tt.addListener(e,"error",qRt),Tt.addListener(e,"end",GRt),Tt.addListener(e,"close",HRt),e[Oj]=!1,e.on("close",YRt),{version:"h2",defaultPipelining:1/0,write(i){return WRt(t,i)},resume(){kRt(t)},destroy(i,o){e[Oj]?queueMicrotask(o):e.destroy(i).on("close",o)},get destroyed(){return e.destroyed},busy(i){if(i!=null)if(t[Qx]>0){if(i.idempotent===!1||(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1||Tt.bodyLength(i.body)!==0&&(Tt.isStream(i.body)||Tt.isAsyncIterable(i.body)||Tt.isFormDataLike(i.body)))return!0}else return(i.upgrade==="websocket"||i.method==="CONNECT")&&s[Ix]===!1;return!1}}}function kRt(t){let e=t[cn];e?.destroyed===!1&&(t[BRt]===0?(e.unref(),t[Wd].unref()):(e.ref(),t[Wd].ref()))}function vRt(t){try{typeof this.setLocalWindowSize=="function"&&this.setLocalWindowSize(t)}catch{}}function PRt(t){if(this[la][Uj]=t.maxConcurrentStreams??this[la][Uj],this[Ix]===!0&&this[Cx]===!0&&t.enableConnectProtocol===!1){let e=new rm("HTTP/2: Server disabled extended CONNECT protocol against RFC-8441");this[cn][da]=e,this[la][mI](e);return}this[Cx]=t.enableConnectProtocol??this[Cx],this[Ix]=!0,this[la][Gu]()}function MRt(t){let e=t[qj];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[la],o=this[la];if(n!=null){let a=new rm(`HTTP/2: "PING" errored - type ${n.message}`);o[da]=a,i[mI](a)}else i.emit("ping",s)}}function FRt(t){yc(t.code!=="ERR_TLS_CERT_ALTNAME_INVALID"),this[cn][da]=t,this[la][mI](t)}function LRt(t,e,r){if(r===0){let n=new rm(`HTTP/2: "frameError" received - type ${t}, code ${e}`);this[cn][da]=n,this[la][mI](n)}}function _Rt(){let t=new bx("other side closed",Tt.getSocketInfo(this[cn]));this.destroy(t),Tt.destroy(this[cn],t)}function Ex(t,e,r=!1){let n=t[yx],s=t[qu];if(s<t[Yg]&&n[s]===e){n[s]=null,t[qu]=s+1;return}let i=n.indexOf(e,s);i===-1||i>=t[Yg]||(n.splice(i,1),t[Yg]--,r&&t[Yg]<t[qu]&&(t[Yg]=t[qu]))}function URt(t){let e=this[da]||new bx(`HTTP/2: "GOAWAY" frame received with code ${t}`,Tt.getSocketInfo(this[cn])),r=this[la];if(r[cn]=null,r[Hj]=null,this.close(),this[Wd]=null,Tt.destroy(this[cn],e),r[qu]<r[yx].length){let n=r[yx][r[qu]];r[yx][r[qu]++]=null,n!=null&&Tt.errorRequest(r,n,e),r[Yg]=r[qu]}yc(r[Qx]===0),r.emit("disconnect",r[Bx],[r],e),r.emit("connectionError",r[Bx],[r],e),r[Gu]()}function ORt(){let{[la]:t,[qj]:e}=this,{[cn]:r}=t,n=this[cn][da]||this[da]||new bx("closed",Tt.getSocketInfo(r));if(t[cn]=null,t[Hj]=null,e.ping.interval!=null&&(clearInterval(e.ping.interval),e.ping.interval=null),t.destroyed){yc(t[ERt]===0);let s=t[yx].splice(t[qu]);for(let i=0;i<s.length;i++){let o=s[i];o!=null&&Tt.errorRequest(t,o,n)}}}function HRt(){let t=this[da]||new bx("closed",Tt.getSocketInfo(this)),e=this[Wd][la];e[cn]=null,e[Hj]=null,this[Wd]!==null&&this[
Line truncated
|
||||
`;cRe.sendHeaders.publish({request:e,headers:H,socket:s[cn]})}let M=i==="GET"||i==="HEAD"||h===null;A?(f[xRt]="100-continue",m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,m.once("continue",F)):(m=s.request(f,{endStream:M,signal:u}),m[iF]=!0,F()),++s[Ec],m.setTimeout(r);let W=!1;return m.once("response",H=>{let{[Fj]:k,...j}=H;if(e.onResponseStarted(),W=!0,m.setTimeout(n),e.aborted){m.removeAllListeners("data");return}e.onHeaders(Number(k),Lj(j),m.resume.bind(m),"")===!1&&m.pause(),m.on("data",$=>{e.aborted||e.completed||e.onData($)===!1&&m.pause()})}),m.once("end",()=>{m.removeAllListeners("data"),W?(!e.aborted&&!e.completed&&e.onComplete({}),Ex(t,e),t[Gu]()):(C(new rm("HTTP/2: stream half-closed (remote)")),Ex(t,e,!0),t[Gu]())}),m.once("close",()=>{m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),!e.aborted&&!e.completed&&C(new rm("HTTP/2: stream closed before the response was complete"))}),m.once("error",function(H){m.removeAllListeners("data"),C(H)}),m.once("frameError",(H,k)=>{m.removeAllListeners("data"),C(new rm(`HTTP/2: "frameError" received - type ${H}, code ${k}`))}),m.on("aborted",()=>{m.removeAllListeners("data")}),m.on("timeout",()=>{let H=W?new gRt(`HTTP/2: "body timeout after ${n}"`):new pRt(`HTTP/2: "headers timeout after ${r}"`);m.removeAllListeners("data"),s[Ec]-=1,s[Ec]===0&&s.unref(),C(H)}),m.once("trailers",H=>{e.aborted||e.completed||(m.removeAllListeners("data"),e.onComplete(H))}),!0;function F(){!h||B===0?dRe(C,m,null,t,e,t[cn],B,I):Tt.isBuffer(h)?dRe(C,m,h,t,e,t[cn],B,I):Tt.isBlobLike(h)?typeof h.stream=="function"?hRe(C,m,h.stream(),t,e,t[cn],B,I):VRt(C,m,h,t,e,t[cn],B,I):Tt.isStream(h)?JRt(C,t[cn],I,m,h,t,e,B):Tt.isIterable(h)?hRe(C,m,h,t,e,t[cn],B,I):yc(!1)}}function dRe(t,e,r,n,s,i,o,a){try{r!=null&&Tt.isBuffer(r)&&(yc(o===r.byteLength,"buffer body must have content length"),e.cork(),e.write(r),e.uncork(),e.end(),s.onBodySent(r)),a||(i[aF]=!0),s.onRequestSent(),n[Gu]()}catch(c){t(c)}}function JRt(t,e,r,n,s,i,o,a){yc(a!==0||i[Qx]===0,"stream body cannot be pipelined");let c=hRt(s,n,u=>{u?(Tt.destroy(c,u),t(u)):(Tt.removeAllListeners(c),o.onRequestSent(),r||(e[aF]=!0),i[Gu]())});Tt.addListener(c,"data",A);function A(u){o.onBodySent(u)}}async function VRt(t,e,r,n,s,i,o,a){yc(o===r.size,"blob body must have content length");try{if(o!=null&&o!==r.size)throw new _j;let c=Buffer.from(await r.arrayBuffer());e.cork(),e.write(c),e.uncork(),e.end(),s.onBodySent(c),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(c){t(c)}}async function hRe(t,e,r,n,s,i,o,a){yc(o!==0||n[Qx]===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)=>{yc(c===null),i[da]?d(i[da]):c=l});e.on("close",A).on("drain",A);try{for await(let l of r){if(i[da])throw i[da];let d=e.write(l);s.onBodySent(l),d||await u()}e.end(),s.onRequestSent(),a||(i[aF]=!0),n[Gu]()}catch(l){t(l)}finally{e.off("close",A).off("drain",A)}}fRe.exports=DRt});var om=y((eMr,bRe)=>{"use strict";var Jd=w("node:assert"),yRe=w("node:net"),wx=w("node:http"),zg=ht(),{ClientStats:jRt}=MV(),{channels:pI}=Zf(),KRt=v1e(),XRt=Mg(),{InvalidArgumentError:Yr,InformationalError:ZRt,ClientDestroyedError:$Rt}=At(),eDt=Fg(),{kUrl:Yu,kServerName:im,kClient:tDt,kBusy:Yj,kConnect:rDt,kResuming:Wg,kRunning:Tx,kPending:Rx,kSize:Nx,kQueue:CA,kConnected:nDt,kConnecting:gI,kNeedDrain:sm,kKeepAliveDefaultTimeout:pRe,kHostHeader:sDt,kPendingIdx:IA,kRunningIdx:jd,kError:iDt,kPipelining:cF,kKeepAliveTimeoutValue:oDt,kMaxHeadersSize:aDt,kKeepAliveMaxTimeout:cDt,kKeepAliveTimeoutThreshold:ADt,kHeadersTimeout:uDt,kBodyTimeout:lDt,kStrictContentLength:dDt,kConnector:xx,kMaxRequests:zj,kCounter:hDt,kClose:fDt,kDestroy:mDt,kDispatch:pDt,kLocalAddress:Sx,kMaxResponseSize:gDt,kOnError:EDt,kHTTPContext:Un,kMaxConcurrentStreams:yDt,kHTTP2InitialWindowSize:CDt,kHTTP2ConnectionWindowSize:IDt,kResume:Vd,kPingInterval:BDt}=br(),bDt=oRe(),QDt=mRe(),nm=Symbol("kClosedResolve"),wDt=wx&&wx.maxHeaderSize&&Number.isInteger(wx.maxHeaderSize)&&wx.maxHeaderSize>0?()=>wx.maxHeaderSize:()=>{throw new Yr("http module not available or http.maxHeaderSize invalid")},gRe=()=>{};function CRe(t){return t[cF]??t[Un]?.defaultPipelining??1}var Wj=class extends XRt{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:m,tls:E,strictContentLength:g,maxCachedSessions:C,connect:I,maxRequestsPerClient:B,localAddress:M,maxResponseSize:W,autoSelectFamily:F,autoSelectFamilyAttemptTimeout:H,maxConcurrentStreams:k,allowH2:j,useH2c:$,initialWindowSize:re,connectionWindowSize:le,pingInterval:fe,webSocket:Ve}={}){if(A!==void 0)throw new Yr("unsupported keepAlive, use pipelining=0 instead");if(s!==void 0)throw new Yr("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(i!==void 0)throw new Yr("unsupported requestTimeout, use headersTimeout &
Line truncated
|
||||
`,this[lDt]=a??3e5,this[uDt]=n??3e5,this[dDt]=g??!0,this[zj]=B,this[nm]=null,this[gDt]=W>-1?W:-1,this[Un]=null,this[yDt]=k??100,this[CDt]=re??262144,this[IDt]=le??524288,this[BDt]=fe??6e4,this[CA]=[],this[jd]=0,this[IA]=0,this[Vd]=ze=>Jj(this,ze),this[EDt]=ze=>IRe(this,ze)}get pipelining(){return this[cF]}set pipelining(e){this[cF]=e,this[Vd](!0)}get stats(){return new jRt(this)}get[Rx](){return this[CA].length-this[IA]}get[Tx](){return this[IA]-this[jd]}get[Nx](){return this[CA].length-this[jd]}get[nDt](){return!!this[Un]&&!this[gI]&&!this[Un].destroyed}get[Yj](){return!!(this[Un]?.busy(null)||this[Nx]>=(CRe(this)||1)||this[Rx]>0)}[rDt](e){BRe(this),this.once("connect",e)}[pDt](e,r){let n=new KRt(this[Yu].origin,e,r);return this[CA].push(n),this[Wg]||(zg.bodyLength(n.body)==null&&zg.isIterable(n.body)?(this[Wg]=1,queueMicrotask(()=>Jj(this))):this[Vd](!0)),this[Wg]&&this[sm]!==2&&this[Yj]&&(this[sm]=2),this[sm]<2}[fDt](){return new Promise(e=>{this[Nx]?this[nm]=e:e(null)})}[mDt](e){return new Promise(r=>{let n=this[CA].splice(this[IA]);for(let i=0;i<n.length;i++){let o=n[i];o!=null&&zg.errorRequest(this,o,e)}let s=()=>{this[nm]&&(this[nm](),this[nm]=null),r(null)};this[Un]?(this[Un].destroy(e,s),this[Un]=null):queueMicrotask(s),this[Vd]()})}};function IRe(t,e){if(t[Tx]===0&&e.code!=="UND_ERR_INFO"&&e.code!=="UND_ERR_SOCKET"){Jd(t[IA]===t[jd]);let r=t[CA].splice(t[jd]);for(let n=0;n<r.length;n++){let s=r[n];s!=null&&zg.errorRequest(t,s,e)}Jd(t[Nx]===0)}}function BRe(t){Jd(!t[gI]),Jd(!t[Un]);let{host:e,hostname:r,protocol:n,port:s}=t[Yu];if(r[0]==="["){let i=r.indexOf("]");Jd(i!==-1);let o=r.substring(1,i);Jd(yRe.isIPv6(o)),r=o}t[gI]=!0,pI.beforeConnect.hasSubscribers&&pI.beforeConnect.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx]});try{t[xx]({host:e,hostname:r,protocol:n,port:s,servername:t[im],localAddress:t[Sx]},(i,o)=>{if(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}if(t.destroyed){zg.destroy(o.on("error",gRe),new $Rt),t[Vd]();return}Jd(o);try{t[Un]=o.alpnProtocol==="h2"?QDt(t,o):bDt(t,o)}catch(a){o.destroy().on("error",gRe),Gj(t,a,{host:e,hostname:r,protocol:n,port:s}),t[Vd]();return}t[gI]=!1,o[hDt]=0,o[zj]=t[zj],o[tDt]=t,o[iDt]=null,pI.connected.hasSubscribers&&pI.connected.publish({connectParams:{host:e,hostname:r,protocol:n,port:s,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],socket:o}),t.emit("connect",t[Yu],[t]),t[Vd]()})}catch(i){Gj(t,i,{host:e,hostname:r,protocol:n,port:s}),t[Vd]()}}function Gj(t,e,{host:r,hostname:n,protocol:s,port:i}){if(!t.destroyed){if(t[gI]=!1,pI.connectError.hasSubscribers&&pI.connectError.publish({connectParams:{host:r,hostname:n,protocol:s,port:i,version:t[Un]?.version,servername:t[im],localAddress:t[Sx]},connector:t[xx],error:e}),e.code==="ERR_TLS_CERT_ALTNAME_INVALID")for(Jd(t[Tx]===0);t[Rx]>0&&t[CA][t[IA]].servername===t[im];){let o=t[CA][t[IA]++];zg.errorRequest(t,o,e)}else IRe(t,e);t.emit("connectionError",t[Yu],[t],e)}}function ERe(t){t[sm]=0,t.emit("drain",t[Yu],[t])}function Jj(t,e){t[Wg]!==2&&(t[Wg]=2,NDt(t,e),t[Wg]=0,t[jd]>256&&(t[CA].splice(0,t[jd]),t[IA]-=t[jd],t[jd]=0))}function NDt(t,e){for(;;){if(t.destroyed){Jd(t[Rx]===0);return}if(t[nm]&&!t[Nx]){t[nm](),t[nm]=null;return}if(t[Un]&&t[Un].resume(),t[Yj])t[sm]=2;else if(t[sm]===2){e?(t[sm]=1,queueMicrotask(()=>ERe(t))):ERe(t);continue}if(t[Rx]===0||t[Tx]>=(CRe(t)||1))return;let r=t[CA][t[IA]];if(r===null)return;if(t[Yu].protocol==="https:"&&t[im]!==r.servername){if(t[Tx]>0)return;t[im]=r.servername,t[Un]?.destroy(new ZRt("servername changed"),()=>{t[Un]=null,Jj(t)})}if(t[gI])return;if(!t[Un]){BRe(t);return}if(t[Un].destroyed||t[Un].busy(r))return;!r.aborted&&t[Un].write(r)?t[IA]++:t[CA].splice(t[IA],1)}}bRe.exports=Wj});var Vj=y((rMr,QRe)=>{"use strict";var AF=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)}};QRe.exports=class{constructor(){this.head=this.tail=new AF}isEmpty(){return this.head.isEmpty()}push(e){this.head.isFull()&&(this.head=this.head.next=new AF),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 uF=y((nMr,vRe)=>{"use strict";var{PoolStats:xDt}=MV(),SDt=Mg(),TDt=Vj(),{kConnected:jj,kSize:wRe,kRunning:NRe,kPending:xRe,kQueued:Dx,kBusy:RDt,kFree:DDt,kUrl:kDt,kClose:vDt,kDestroy:PDt,kDispatch:MDt}=br(),ks=Symbol("clients"),qi=Symbol("needDrain"),kx=Symbol("queue"),Kj=Symbol("closed resolve"),Xj=Symbol("onDrain"),SRe=Symbol("onConnect"),TRe=Symbol("onDisconnect"),RRe=Symbol("onConnectionError"),Zj=Symbol("get dispatcher"),DRe=Symbol("add client"),kRe=Symbol("remove client"),$j=class extends SDt{[kx]=n
Line truncated
|
||||
|
||||
${e.format(r)}`.trim():`${r.length} interceptors are pending:
|
||||
|
||||
${e.format(r)}`.trim())}};ske.exports=gX});var yX=y((kMr,cke)=>{"use strict";var{InvalidArgumentError:Dvt}=At(),{runtimeFeatures:kvt}=Gd();function vvt(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 ike=kvt.has("crypto")?w("node:crypto"):null,Pvt=ike?.hash?t=>ike.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ake(t){return Array.isArray(t)&&(t.length&1)===0}function Mvt(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 Fvt(t){let e={};if(!t)return e;if(ake(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 oke=["record","playback","update"];function Lvt(t){if(!oke.includes(t))throw new Dvt(`Invalid snapshot mode: ${t}. Must be one of: ${oke.join(", ")}`)}cke.exports={createHeaderFilters:vvt,hashId:Pvt,isUndiciHeaders:ake,normalizeHeaders:Fvt,isUrlExcludedFactory:Mvt,validateSnapshotMode:Lvt}});var gke=y((vMr,pke)=>{"use strict";var{writeFile:_vt,readFile:Uvt,mkdir:Ovt}=w("node:fs/promises"),{dirname:Hvt,resolve:Ake}=w("node:path"),{setTimeout:qvt,clearTimeout:uke}=w("node:timers"),{InvalidArgumentError:lke,UndiciError:Gvt}=At(),{hashId:Yvt,isUrlExcludedFactory:zvt,normalizeHeaders:dke,createHeaderFilters:hke}=yX();function zx(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||dke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:fke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function fke(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 mke(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 Wx(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 Yvt(r)}var CX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=hke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=zvt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=zx(e,this.#a,this.matchOptions),s=Wx(n),i=dke(r.headers),o={statusCode:r.statusCode,headers:mke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=zx(e,this.#a,this.matchOptions),n=Wx(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 lke("Snapshot path is required");try{let n=await Uvt(Ake(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 Gvt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new lke("Snapshot path is required");let n=Ake(r);await Ovt(Hvt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await _vt(n,JSON.s
Line truncated
|
||||
${e.format(r)}`.trim())}};ske.exports=gX});var yX=y((PMr,cke)=>{"use strict";var{InvalidArgumentError:Dvt}=At(),{runtimeFeatures:kvt}=Gd();function vvt(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 ike=kvt.has("crypto")?w("node:crypto"):null,Pvt=ike?.hash?t=>ike.hash("sha256",t,"base64url"):t=>Buffer.from(t).toString("base64url");function ake(t){return Array.isArray(t)&&(t.length&1)===0}function Mvt(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 Fvt(t){let e={};if(!t)return e;if(ake(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 oke=["record","playback","update"];function Lvt(t){if(!oke.includes(t))throw new Dvt(`Invalid snapshot mode: ${t}. Must be one of: ${oke.join(", ")}`)}cke.exports={createHeaderFilters:vvt,hashId:Pvt,isUndiciHeaders:ake,normalizeHeaders:Fvt,isUrlExcludedFactory:Mvt,validateSnapshotMode:Lvt}});var gke=y((MMr,pke)=>{"use strict";var{writeFile:_vt,readFile:Uvt,mkdir:Ovt}=w("node:fs/promises"),{dirname:Hvt,resolve:Ake}=w("node:path"),{setTimeout:qvt,clearTimeout:uke}=w("node:timers"),{InvalidArgumentError:lke,UndiciError:Gvt}=At(),{hashId:Yvt,isUrlExcludedFactory:zvt,normalizeHeaders:dke,createHeaderFilters:hke}=yX();function zx(t,e,r={}){let n=new URL(t.path,t.origin),s=t._normalizedHeaders||dke(t.headers);return t._normalizedHeaders||(t._normalizedHeaders=s),{method:t.method||"GET",url:r.matchQuery!==!1?n.toString():`${n.origin}${n.pathname}`,headers:fke(s,e,r),body:r.matchBody!==!1&&t.body?String(t.body):""}}function fke(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 mke(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 Wx(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 Yvt(r)}var CX=class{#e;#t;#n=new Map;#r;#i=1/0;#s=!1;#a;constructor(e={}){this.#r=e.snapshotPath,this.#i=e.maxSnapshots||1/0,this.#s=e.autoFlush||!1,this.flushInterval=e.flushInterval||3e4,this._flushTimer=null,this.matchOptions={matchHeaders:e.matchHeaders||[],ignoreHeaders:e.ignoreHeaders||[],excludeHeaders:e.excludeHeaders||[],matchBody:e.matchBody!==!1,matchQuery:e.matchQuery!==!1,caseSensitive:e.caseSensitive||!1},this.#a=hke(this.matchOptions),this.shouldRecord=e.shouldRecord||(()=>!0),this.shouldPlayback=e.shouldPlayback||(()=>!0),this.#t=zvt(e.excludeUrls),this.#s&&this.#r&&this.#o()}async record(e,r){if(!this.shouldRecord(e)||this.isUrlExcluded(e))return;let n=zx(e,this.#a,this.matchOptions),s=Wx(n),i=dke(r.headers),o={statusCode:r.statusCode,headers:mke(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.#i&&!this.#n.has(s)){let c=this.#n.keys().next().value;this.#n.delete(c)}let a=this.#n.get(s);a&&a.responses?(a.responses.push(o),a.timestamp=new Date().toISOString()):this.#n.set(s,{request:n,responses:[o],callCount:0,timestamp:new Date().toISOString()}),this.#s&&this.#r&&this.#A()}isUrlExcluded(e){let r=new URL(e.path,e.origin).toString();return this.#t(r)}findSnapshot(e){if(!this.shouldPlayback(e)||this.isUrlExcluded(e))return;let r=zx(e,this.#a,this.matchOptions),n=Wx(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 lke("Snapshot path is required");try{let n=await Uvt(Ake(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 Gvt(`Failed to load snapshots from ${r}`,{cause:n})}}async saveSnapshots(e){let r=e||this.#r;if(!r)throw new lke("Snapshot path is required");let n=Ake(r);await Ovt(Hvt(n),{recursive:!0});let s=Array.from(this.#n.entries()).map(([i,o])=>({hash:i,snapshot:o}));await _vt(n,JSON.s
Line truncated
|
||||
PRAGMA journal_mode = WAL;
|
||||
PRAGMA synchronous = NORMAL;
|
||||
PRAGMA temp_store = memory;
|
||||
@@ -190,27 +190,27 @@ ${e.format(r)}`.trim())}};ske.exports=gX});var yX=y((kMr,cke)=>{"use strict";var
|
||||
ORDER BY cachedAt ASC
|
||||
LIMIT ?
|
||||
)
|
||||
`)}close(){this.#n.close()}get(e){jX(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){jX(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){jX(e),jMt(r);let n=0,s=[],i=this;return new VMt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!KMt(s[l],u[l])){A=!1;break}}if(A)return c}}};function KMt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var dE=y((tFr,Hve)=>{"use strict";var{kConstruct:XMt}=br(),{kEnumerableProperty:vI}=ht(),{iteratorMixin:ZMt,isValidHeaderName:Xx,isValidHeaderValue:Fve}=Aa(),{webidl:Vt}=js(),XX=w("node:assert"),qF=w("node:util");function Mve(t){return t===10||t===13||t===9||t===32}function Lve(t){let e=0,r=t.length;for(;r>e&&Mve(t.charCodeAt(r-1));)--r;for(;r>e&&Mve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function _ve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Vt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});ZX(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)ZX(t,r[n],e[r[n]])}else throw Vt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function ZX(t,e,r){if(r=Lve(r),Xx(e)){if(!Fve(r))throw Vt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Vt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ove(t)==="immutable")throw new TypeError("immutable");return YF(t).append(e,r,!1)}function $Mt(t){let e=YF(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 Uve(t,e){return t[0]<e[0]?-1:1}var GF=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if(xL(e,s,COt)){IOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(xL(e,s,yOt)){BOt(e,i)&&(r.id=e.toString("utf8",i));return}if(xL(e,s,EOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&hOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&fOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===zI[0]||(this.checkBOM=!1),!0):n===void 0?e===zI[0]&&r===zI[1]?!0:(this.checkBOM=!1,!1):(e===zI[0]&&r===zI[1]&&n===zI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};WMe.exports={EventSourceStream:_Z}});var tFe=y((NFr,eFe)=>{"use strict";var{pipeline:bOt}=w("node:stream"),{fetching:QOt}=rS(),{makeRequest:wOt}=MI(),{webidl:Yi}=js(),{EventSourceStream:NOt}=JMe(),{parseMIMEType:xOt}=mc(),{createFastMessageEvent:SOt}=mL(),{isNetworkError:VMe}=$x(),{kEnumerableProperty:CE}=ht(),{environmentSettingsObject:jMe}=Aa(),KMe=!1,XMe=3e3,AS=0,ZMe=1,uS=2,TOt="anonymous",ROt="use-credentials",WI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=AS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Yi.util.markAsUncloneable(this);let n="EventSource constructor";Yi.argumentLengthCheck(arguments,1,n),KMe||(KMe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yi.converters.USVString(e),r=Yi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=jMe,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=TOt;r.withCredentials===!0&&(o=ROt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jMe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=wOt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===uS)return;this.#r=AS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!VMe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(VMe(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?xOt(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=ZMe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new NOt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(SOt(c.type,c.options))}});bOt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=QOt(e)}#A(){this.#r!==uS&&(this.#r=AS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`)}close(){this.#n.close()}get(e){jX(e);let r=this.#f(e);return r?{body:r.body?Buffer.from(r.body.buffer,r.body.byteOffset,r.body.byteLength):void 0,statusCode:r.statusCode,statusMessage:r.statusMessage,headers:r.headers?JSON.parse(r.headers):void 0,etag:r.etag?r.etag:void 0,vary:r.vary?JSON.parse(r.vary):void 0,cacheControlDirectives:r.cacheControlDirectives?JSON.parse(r.cacheControlDirectives):void 0,cachedAt:r.cachedAt,staleAt:r.staleAt,deleteAt:r.deleteAt}:void 0}set(e,r){jX(e);let n=this.#d(e),s=Array.isArray(r.body)?Buffer.concat(r.body):r.body,i=s?.byteLength;if(i&&i>this.#e)return;let o=this.#f(e,!0);o?this.#i.run(s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.cachedAt,r.staleAt,o.id):(this.#s.run(n,e.method,s,r.deleteAt,r.statusCode,r.statusMessage,r.headers?JSON.stringify(r.headers):null,r.etag?r.etag:null,r.cacheControlDirectives?JSON.stringify(r.cacheControlDirectives):null,r.vary?JSON.stringify(r.vary):null,r.cachedAt,r.staleAt),this.#u())}createWriteStream(e,r){jX(e),jMt(r);let n=0,s=[],i=this;return new VMt({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}`}#f(e,r=!1){let n=this.#d(e),{headers:s,method:i}=e,o=this.#r.all(n,i);if(o.length===0)return;let a=Date.now();for(let c of o){if(a>=c.deleteAt&&!r)continue;let A=!0;if(c.vary){let u=JSON.parse(c.vary);for(let l in u)if(!KMt(s[l],u[l])){A=!1;break}}if(A)return c}}};function KMt(t,e){if(t==null&&e==null)return!0;if(t==null&&e!=null||t!=null&&e==null)return!1;if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++)if(t[r]!==e[r])return!1;return!0}return t===e}});var dE=y((nFr,Hve)=>{"use strict";var{kConstruct:XMt}=br(),{kEnumerableProperty:vI}=ht(),{iteratorMixin:ZMt,isValidHeaderName:Xx,isValidHeaderValue:Fve}=Aa(),{webidl:Vt}=js(),XX=w("node:assert"),qF=w("node:util");function Mve(t){return t===10||t===13||t===9||t===32}function Lve(t){let e=0,r=t.length;for(;r>e&&Mve(t.charCodeAt(r-1));)--r;for(;r>e&&Mve(t.charCodeAt(e));)++e;return e===0&&r===t.length?t:t.substring(e,r)}function _ve(t,e){if(Array.isArray(e))for(let r=0;r<e.length;++r){let n=e[r];if(n.length!==2)throw Vt.errors.exception({header:"Headers constructor",message:`expected name/value pair to be length 2, found ${n.length}.`});ZX(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)ZX(t,r[n],e[r[n]])}else throw Vt.errors.conversionFailed({prefix:"Headers constructor",argument:"Argument 1",types:["sequence<sequence<ByteString>>","record<ByteString, ByteString>"]})}function ZX(t,e,r){if(r=Lve(r),Xx(e)){if(!Fve(r))throw Vt.errors.invalidArgument({prefix:"Headers.append",value:r,type:"header value"})}else throw Vt.errors.invalidArgument({prefix:"Headers.append",value:e,type:"header name"});if(Ove(t)==="immutable")throw new TypeError("immutable");return YF(t).append(e,r,!1)}function $Mt(t){let e=YF(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 Uve(t,e){return t[0]<e[0]?-1:1}var GF=class t{cookies=null;sortedMap;headersMap;constructor(e){e instanceof t?(this.headersMap=new Map(e.headersMap),this.sortedMap=e.sortedMap,this.cookies=e.cookies===null?null:[...e.cookies]):(this.headersMap=new Map(e),this.sortedMap=null)}contains(e,r){return this.headersMap.has(r?e:e.toLowerCase())}clear(){this.headersMap.clear(),this.sortedMap=null,this.cookies=null}append(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase(),i=this.headersMap.get(s);if(i){let o=s==="cookie"?"; ":", ";this.headersMap.set(s,{name:i.name,value:`${i.value}${o}${r}`})}else this.headersMap.set(s,{name:e,value:r});s==="set-cookie"&&(this.cookies??=[]).push(r)}set(e,r,n){this.sortedMap=null;let s=n?e:e.toLowerCase();s==="set-cookie"&&(this.cookies=[r]),this.headersMap.set(s,{name:e,value:r})}delete(e,r){this.sortedMap=null,r||(e=e.toLowerCase()),e==="set-cookie"&&(this.cookies=null),this.headersMap.delete(e)}get(e,r){return this.headersMap.get(r?e:e.toLowerCase())?.value??null}*[Symbol.iterator](){for(let{0:e,1:{value:r}}of this.headersMap)yield[e,r]}get entries(){let e={};if(this.headersMap.size!==0)for(let{name:r,value:n}of this.headersMap.values())e[r]=n;return e}rawValues(){return this.hea
Line truncated
|
||||
${o}`;return}if(xL(e,s,COt)){IOt(e,i)&&(r.retry=e.toString("utf8",i));return}if(xL(e,s,yOt)){BOt(e,i)&&(r.id=e.toString("utf8",i));return}if(xL(e,s,EOt)){let o=e.toString("utf8",i);o.length>0&&(r.event=o)}}processEvent(e){e.retry&&hOt(e.retry)&&(this.state.reconnectionTime=parseInt(e.retry,10)),e.id!==void 0&&fOt(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,this.event.event=void 0,this.event.id=void 0,this.event.retry=void 0}hasPendingEvent(){return this.event.data!==void 0||this.event.event!==void 0||this.event.id!==void 0||this.event.retry!==void 0}hasCurrentByte(){return this.chunkIndex<this.chunks.length&&this.pos<this.chunks[this.chunkIndex].length}currentByte(){return this.chunks[this.chunkIndex][this.pos]}consumeCurrentByte(){this.advanceCursor(),this.syncLineStartToCursor()}advanceCursor(){for(this.pos++;this.chunkIndex<this.chunks.length&&this.pos>=this.chunks[this.chunkIndex].length;)this.chunkIndex++,this.pos=0}syncLineStartToCursor(){this.lineChunkIndex=this.chunkIndex,this.linePos=this.pos,this.dropConsumedChunks()}dropConsumedChunks(){for(;this.lineChunkIndex>0;)this.chunks.shift(),this.lineChunkIndex--,this.chunkIndex--;this.chunkIndex===this.chunks.length&&(this.chunks.length=0,this.chunkIndex=0,this.pos=0,this.lineChunkIndex=0,this.linePos=0)}readLine(){if(this.lineChunkIndex===this.chunkIndex)return this.chunks[this.chunkIndex].subarray(this.linePos,this.pos);let e=[],r=0;for(let n=this.lineChunkIndex;n<=this.chunkIndex;n++){let s=this.chunks[n],i=n===this.lineChunkIndex?this.linePos:0,o=n===this.chunkIndex?this.pos:s.length,a=s.subarray(i,o);r+=a.length,e.push(a)}return Buffer.concat(e,r)}peekBufferedByte(e){let r=this.lineChunkIndex,n=this.linePos;for(;r<this.chunks.length;){let s=this.chunks[r],i=s.length-n;if(e<i)return s[n+e];e-=i,r++,n=0}}discardLeadingBytes(e){for(;e>0&&this.lineChunkIndex<this.chunks.length;){let n=this.chunks[this.lineChunkIndex].length-this.linePos;e<n?(this.linePos+=e,e=0):(e-=n,this.lineChunkIndex++,this.linePos=0)}this.chunkIndex=this.lineChunkIndex,this.pos=this.linePos,this.dropConsumedChunks()}handleBOM(){let e=this.peekBufferedByte(0),r=this.peekBufferedByte(1),n=this.peekBufferedByte(2);return r===void 0?(e===zI[0]||(this.checkBOM=!1),!0):n===void 0?e===zI[0]&&r===zI[1]?!0:(this.checkBOM=!1,!1):(e===zI[0]&&r===zI[1]&&n===zI[2]&&this.discardLeadingBytes(3),this.checkBOM=!1,!this.hasCurrentByte())}};WMe.exports={EventSourceStream:_Z}});var tFe=y((SFr,eFe)=>{"use strict";var{pipeline:bOt}=w("node:stream"),{fetching:QOt}=rS(),{makeRequest:wOt}=MI(),{webidl:Yi}=js(),{EventSourceStream:NOt}=JMe(),{parseMIMEType:xOt}=mc(),{createFastMessageEvent:SOt}=mL(),{isNetworkError:VMe}=$x(),{kEnumerableProperty:CE}=ht(),{environmentSettingsObject:jMe}=Aa(),KMe=!1,XMe=3e3,AS=0,ZMe=1,uS=2,TOt="anonymous",ROt="use-credentials",WI=class t extends EventTarget{#e={open:null,error:null,message:null};#t;#n=!1;#r=AS;#i=null;#s=null;#a;#o;constructor(e,r={}){super(),Yi.util.markAsUncloneable(this);let n="EventSource constructor";Yi.argumentLengthCheck(arguments,1,n),KMe||(KMe=!0,process.emitWarning("EventSource is experimental, expect them to change at any time.",{code:"UNDICI-ES"})),e=Yi.converters.USVString(e),r=Yi.converters.EventSourceInitDict(r,n,"eventSourceInitDict"),this.#a=r.node.dispatcher||r.dispatcher,this.#o={lastEventId:"",reconnectionTime:r.node.reconnectionTime};let s=jMe,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=TOt;r.withCredentials===!0&&(o=ROt,this.#n=!0);let a={redirect:"follow",keepalive:!0,mode:"cors",credentials:o==="anonymous"?"same-origin":"omit",referrer:"no-referrer"};a.client=jMe.settingsObject,a.headersList=[["accept",{name:"accept",value:"text/event-stream"}]],a.cache="no-store",a.initiator="other",a.urlList=[new URL(this.#t)],this.#i=wOt(a),this.#c()}get readyState(){return this.#r}get url(){return this.#t}get withCredentials(){return this.#n}#c(){if(this.#r===uS)return;this.#r=AS;let e={request:this.#i,dispatcher:this.#a},r=n=>{if(!VMe(n))return this.#A()};e.processResponseEndOfBody=r,e.processResponse=n=>{if(VMe(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?xOt(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=ZMe,this.dispatchEvent(new Event("open")),this.#o.origin=n.urlList[n.urlList.length-1].origin;let a=new NOt({eventSourceSettings:this.#o,push:c=>{this.dispatchEvent(SOt(c.type,c.options))}});bOt(n.body.stream,a,c=>{c?.aborted===!1&&(this.close(),this.dispatchEvent(new Event("error")))})},this.#s=QOt(e)}#A(){this.#r!==uS&&(this.#r=AS,this.dispatchEvent(new Event("error")),setTime
Line truncated
|
||||
`).slice(1).join(`
|
||||
`);t.stack=r?`${r}
|
||||
${i}`:s.stack}be.exports.fetch=function(e,r=void 0){return e3t(e,r).catch(n=>{throw rFe?oFe(n,rFe):n&&typeof n=="object"&&Error.captureStackTrace(n,be.exports.fetch),n})};be.exports.Headers=dE().Headers;be.exports.Response=$x().Response;be.exports.Request=MI().Request;be.exports.FormData=KM().FormData;var{setGlobalOrigin:t3t,getGlobalOrigin:r3t}=rj();be.exports.setGlobalOrigin=t3t;be.exports.getGlobalOrigin=r3t;var{CacheStorage:n3t}=YPe(),{kConstruct:s3t}=br();be.exports.caches=new n3t(s3t);var{deleteCookie:i3t,getCookies:o3t,getSetCookies:a3t,setCookie:c3t,parseCookie:A3t}=rMe();be.exports.deleteCookie=i3t;be.exports.getCookies=o3t;be.exports.getSetCookies=a3t;be.exports.setCookie=c3t;be.exports.parseCookie=A3t;var{parseMIMEType:u3t,serializeAMimeType:l3t}=mc();be.exports.parseMIMEType=u3t;be.exports.serializeAMimeType=l3t;var{CloseEvent:d3t,ErrorEvent:h3t,MessageEvent:f3t}=mL(),{WebSocket:m3t,ping:p3t}=MMe();be.exports.WebSocket=m3t;be.exports.CloseEvent=d3t;be.exports.ErrorEvent=h3t;be.exports.MessageEvent=f3t;be.exports.ping=p3t;be.exports.WebSocketStream=GMe().WebSocketStream;be.exports.WebSocketError=vZ().WebSocketError;be.exports.request=lS(JI.request);be.exports.stream=lS(JI.stream);be.exports.pipeline=lS(JI.pipeline);be.exports.connect=lS(JI.connect);be.exports.upgrade=lS(JI.upgrade);be.exports.MockClient=qOt;be.exports.MockCallHistory=GOt;be.exports.MockCallHistoryLog=YOt;be.exports.MockPool=WOt;be.exports.MockAgent=zOt;be.exports.SnapshotAgent=JOt;be.exports.mockErrors=VOt;var{EventSource:g3t}=tFe();be.exports.EventSource=g3t;function E3t(){globalThis.fetch=be.exports.fetch,globalThis.Headers=be.exports.Headers,globalThis.Response=be.exports.Response,globalThis.Request=be.exports.Request,globalThis.FormData=be.exports.FormData,globalThis.WebSocket=be.exports.WebSocket,globalThis.CloseEvent=be.exports.CloseEvent,globalThis.ErrorEvent=be.exports.ErrorEvent,globalThis.MessageEvent=be.exports.MessageEvent,globalThis.EventSource=be.exports.EventSource}be.exports.install=E3t});var dS=y(ym=>{"use strict";ym.removeLeadingAndTrailingHTTPWhitespace=t=>t.replace(/^[ \t\n\r]+/u,"").replace(/[ \t\n\r]+$/u,"");ym.removeTrailingHTTPWhitespace=t=>t.replace(/[ \t\n\r]+$/u,"");ym.isHTTPWhitespaceChar=t=>t===" "||t===" "||t===`
|
||||
`||t==="\r";ym.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ym.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ym.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ym.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 AFe=y((RFr,cFe)=>{"use strict";var{asciiLowercase:RL,solelyContainsHTTPTokenCodePoints:y3t,soleyContainsHTTPQuotedStringTokenCodePoints:C3t}=dS();cFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=RL(String(e)),this._map.get(e)}has(e){return e=RL(String(e)),this._map.has(e)}set(e,r){if(e=RL(String(e)),r=String(r),!y3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!C3t(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=RL(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 dFe=y((DFr,lFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:I3t,removeTrailingHTTPWhitespace:uFe,isHTTPWhitespaceChar:B3t,solelyContainsHTTPTokenCodePoints:UZ,soleyContainsHTTPQuotedStringTokenCodePoints:b3t,asciiLowercase:OZ,collectAnHTTPQuotedString:Q3t}=dS();lFe.exports=t=>{t=I3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!UZ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=uFe(n),n.length===0||!UZ(n))return null;let s={type:OZ(r),subtype:OZ(n),parameters:new Map};for(;e<t.length;){for(++e;B3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=OZ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Q3t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=uFe(o),o==="")continue}i.length>0&&UZ(i)&&b3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var fFe=y((kFr,hFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:w3t}=dS();hFe.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+="=",(!w3t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var EFe=y((PFr,gFe)=>{"use strict";var N3t=AFe(),x3t=dFe(),S3t=fFe(),{asciiLowercase:mFe,solelyContainsHTTPTokenCodePoints:pFe}=dS();gFe.exports=class{constructor(e){e=String(e);let r=x3t(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 N3t(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=mFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!pFe(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=mFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!pFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return S3t(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 vFe=y((jLr,G3t)=>{G3t.exports={name:"@actions/artifact",version:"6.3.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?nne:f.type==="?"?one:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=_Ht[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),re=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==sne?"(?:$|\\/)":"";s=k+j+$+ze+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return OHt(e);let W=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",W),{_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?nne:r.dot?FHt:LHt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?qHt(a):a===Wi?Wi:a._src).reduce((a,c)=>(a[a.length-1]===Wi&&c===Wi||a.push(c),a),[]),o.forEach((a,c)=>{a!==Wi||o[c-1]===Wi||(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]=Wi))}),o.filter(a=>a!==Wi).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;ine.sep!=="/"&&(e=e.split(ine.sep).join("/")),e=e.split(M_e),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 Ba.defaults(e).Minimatch}};Ba.Minimatch=AB});var G_e=y((s8r,q_e)=>{q_e.exports=H_e;var Ane=w("fs"),{EventEmitter:YHt}=w("events"),{Minimatch:cne}=__e(),{resolve:zHt}=w("path");function WHt(t,e){return new Promise((r,n)=>{Ane.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 U_e(t,e){return new Promise((r,n)=>{(e?Ane.stat:Ane.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?U_e(t,!1):null):r(null):r(o)})})}async function*O_e(t,e,r,n,s,i){let o=await WHt(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 U_e(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*O_e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*JHt(t,e,r,n){yield*O_e("",t,e,r,n,!0)}function VHt(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 P_=class extends YHt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=VHt(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 cne(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 cne(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 cne(i,{dot:!0}))}this.iterator=JHt(zHt(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
Line truncated
|
||||
`||t==="\r";ym.solelyContainsHTTPTokenCodePoints=t=>/^[-!#$%&'*+.^_`|~A-Za-z0-9]*$/u.test(t);ym.soleyContainsHTTPQuotedStringTokenCodePoints=t=>/^[\t\u0020-\u007E\u0080-\u00FF]*$/u.test(t);ym.asciiLowercase=t=>t.replace(/[A-Z]/ug,e=>e.toLowerCase());ym.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 AFe=y((kFr,cFe)=>{"use strict";var{asciiLowercase:RL,solelyContainsHTTPTokenCodePoints:y3t,soleyContainsHTTPQuotedStringTokenCodePoints:C3t}=dS();cFe.exports=class{constructor(e){this._map=e}get size(){return this._map.size}get(e){return e=RL(String(e)),this._map.get(e)}has(e){return e=RL(String(e)),this._map.has(e)}set(e,r){if(e=RL(String(e)),r=String(r),!y3t(e))throw new Error(`Invalid MIME type parameter name "${e}": only HTTP token code points are valid.`);if(!C3t(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=RL(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 dFe=y((vFr,lFe)=>{"use strict";var{removeLeadingAndTrailingHTTPWhitespace:I3t,removeTrailingHTTPWhitespace:uFe,isHTTPWhitespaceChar:B3t,solelyContainsHTTPTokenCodePoints:UZ,soleyContainsHTTPQuotedStringTokenCodePoints:b3t,asciiLowercase:OZ,collectAnHTTPQuotedString:Q3t}=dS();lFe.exports=t=>{t=I3t(t);let e=0,r="";for(;e<t.length&&t[e]!=="/";)r+=t[e],++e;if(r.length===0||!UZ(r)||e>=t.length)return null;++e;let n="";for(;e<t.length&&t[e]!==";";)n+=t[e],++e;if(n=uFe(n),n.length===0||!UZ(n))return null;let s={type:OZ(r),subtype:OZ(n),parameters:new Map};for(;e<t.length;){for(++e;B3t(t[e]);)++e;let i="";for(;e<t.length&&t[e]!==";"&&t[e]!=="=";)i+=t[e],++e;if(i=OZ(i),e<t.length){if(t[e]===";")continue;++e}let o=null;if(t[e]==='"')for([o,e]=Q3t(t,e);e<t.length&&t[e]!==";";)++e;else{for(o="";e<t.length&&t[e]!==";";)o+=t[e],++e;if(o=uFe(o),o==="")continue}i.length>0&&UZ(i)&&b3t(o)&&!s.parameters.has(i)&&s.parameters.set(i,o)}return s}});var fFe=y((PFr,hFe)=>{"use strict";var{solelyContainsHTTPTokenCodePoints:w3t}=dS();hFe.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+="=",(!w3t(n)||n.length===0)&&(n=n.replace(/(["\\])/ug,"\\$1"),n=`"${n}"`),e+=n;return e}});var EFe=y((FFr,gFe)=>{"use strict";var N3t=AFe(),x3t=dFe(),S3t=fFe(),{asciiLowercase:mFe,solelyContainsHTTPTokenCodePoints:pFe}=dS();gFe.exports=class{constructor(e){e=String(e);let r=x3t(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 N3t(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=mFe(String(e)),e.length===0)throw new Error("Invalid type: must be a non-empty string");if(!pFe(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=mFe(String(e)),e.length===0)throw new Error("Invalid subtype: must be a non-empty string");if(!pFe(e))throw new Error(`Invalid subtype ${e}: must contain only HTTP token code points`);this._subtype=e}get parameters(){return this._parameters}toString(){return S3t(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 vFe=y((XLr,G3t)=>{G3t.exports={name:"@actions/artifact",version:"6.3.1",preview:!0,description:"Actions artifact lib",keywords:["github","actions","artifact"],homepage:"https://github.com/actions/toolkit/tree/main/packages/artifact",license:"MIT",type:"module",main:"lib/artifact.js",types:"lib/artifact.d.ts",exports:{".":{types:"./lib/artifact.d.ts",import:"./lib/artifact.js"}},directories:{lib:"lib",test:"__tests__"},files:["lib","!.DS_Store"],publishConfig:{access:"public"},repository:{type:"git",url:"git+https://github.com/actions/toolkit.git",directory:"packages/artifact"},scripts:{"audit-moderate":"npm install &&Line truncated
|
||||
%s`,F,F,f,s);let H=f.type==="*"?nne:f.type==="?"?one:"\\"+f.type;i=!0,s=s.slice(0,f.reStart)+H+"\\("+F}B(),o&&(s+="\\\\");let M=_Ht[s.charAt(0)];for(let F=c.length-1;F>-1;F--){let H=c[F],k=s.slice(0,H.reStart),j=s.slice(H.reStart,H.reEnd-8),$=s.slice(H.reEnd),re=s.slice(H.reEnd-8,H.reEnd)+$,le=k.split(")").length,fe=k.split("(").length-le,Ve=$;for(let ft=0;ft<fe;ft++)Ve=Ve.replace(/\)[+*?]?/,"");$=Ve;let ze=$===""&&r!==sne?"(?:$|\\/)":"";s=k+j+$+ze+re}if(s!==""&&i&&(s="(?=.)"+s),M&&(s=C()+s),r===sne)return[s,i];if(n.nocase&&!i&&(i=e.toUpperCase()!==e.toLowerCase()),!i)return OHt(e);let W=n.nocase?"i":"";try{return Object.assign(new RegExp("^"+s+"$",W),{_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?nne:r.dot?FHt:LHt,s=r.nocase?"i":"",i=e.map(o=>(o=o.map(a=>typeof a=="string"?qHt(a):a===Wi?Wi:a._src).reduce((a,c)=>(a[a.length-1]===Wi&&c===Wi||a.push(c),a),[]),o.forEach((a,c)=>{a!==Wi||o[c-1]===Wi||(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]=Wi))}),o.filter(a=>a!==Wi).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;ine.sep!=="/"&&(e=e.split(ine.sep).join("/")),e=e.split(M_e),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 Ba.defaults(e).Minimatch}};Ba.Minimatch=AB});var G_e=y((o8r,q_e)=>{q_e.exports=H_e;var Ane=w("fs"),{EventEmitter:YHt}=w("events"),{Minimatch:cne}=__e(),{resolve:zHt}=w("path");function WHt(t,e){return new Promise((r,n)=>{Ane.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 U_e(t,e){return new Promise((r,n)=>{(e?Ane.stat:Ane.lstat)(t,(i,o)=>{i?i.code==="ENOENT"?r(e?U_e(t,!1):null):r(null):r(o)})})}async function*O_e(t,e,r,n,s,i){let o=await WHt(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 U_e(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*O_e(A,e,r,n,s,!1)):yield{relative:u,absolute:l,stats:d}}}async function*JHt(t,e,r,n){yield*O_e("",t,e,r,n,!0)}function VHt(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 P_=class extends YHt{constructor(e,r,n){if(super(),typeof r=="function"&&(n=r,r=null),this.options=VHt(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 cne(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 cne(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 cne(i,{dot:!0}))}this.iterator=JHt(zHt(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
Line truncated
|
||||
`,x);x=G===-1?Q.length:G}else if(P!==-1&&Q[x]==="/"&&Q[x+1]==="*"){let G=Q.indexOf("*/",x);G!==-1?(x=G+2,P=Q.indexOf("*/",x)):(b+=Q[x],x++)}else b+=Q[x],x++;return b}function ds(Q){let b=Bi(Q.toString()),x=b.match(Lo);if(x||(x=b.match(ql)),!x)throw new Error(`could not parse args in autoInject
|
||||
Source:
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(MA).map(G=>G.replace(u0,"").trim())}function Hc(Q,b){var x={};return Object.keys(Q).forEach(P=>{var G=Q[P],z,K=h(G),Z=!K&&G.length===1||K&&G.length===0;if(Array.isArray(G))z=[...G],G=z.pop(),x[P]=z.concat(z.length>0?ne:G);else if(Z)x[P]=G;else{if(z=ds(G),G.length===0&&!K&&z.length===0)throw new Error("autoInject task functions require explicit parameters.");K||z.pop(),x[P]=z.concat(ne)}function ne(Fe,zt){var cr=z.map(Kt=>Fe[Kt]);cr.push(zt),E(G)(...cr)}}),Hl(x,b)}class qc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Rh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Rh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Rh(Q,b){Q.length=1,Q.head=Q.tail=b}function FA(Q,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(Q),G=0,z=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function ne(tt,Pe){let rt=(...Xt)=>{Fe(tt,rt),Pe(...Xt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function zt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Kt(tt,Pe,rt,Xt){if(Xt!=null&&typeof Xt!="function")throw new Error("task callback must be a function");Ar.started=!0;var jr,ms;function Ta(np,...Eb){if(np)return rt?ms(np):jr();if(Eb.length<=1)return jr(Eb[0]);jr(Eb)}var B0=Ar._createTaskItem(tt,rt?Ta:Xt||Ta);if(Pe?Ar._tasks.unshift(B0):Ar._tasks.push(B0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Xt)return new Promise((np,Eb)=>{jr=np,ms=Eb})}function Sa(tt){return function(Pe,...rt){G-=1;for(var Xt=0,jr=tt.length;Xt<jr;Xt++){var ms=tt[Xt],Ta=z.indexOf(ms);Ta===0?z.shift():Ta>0&&z.splice(Ta,1),ms.callback(Pe,...rt),Pe!=null&&zt("error",Pe,ms.data)}G<=Ar.concurrency-Ar.buffer&&zt("unsaturated"),Ar.idle()&&zt("drain"),Ar.process()}}function I0(tt){return tt.length===0&&Ar.idle()?(A(()=>zt("drain")),!0):!1}let rp=tt=>Pe=>{if(!Pe)return new Promise((rt,Xt)=>{ne(tt,(jr,ms)=>{if(jr)return Xt(jr);rt(ms)})});Fe(tt),Z(tt,Pe)};var gb=!1,Ar={_tasks:new qc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!1,Pe)):Kt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!0,Pe)):Kt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!1,Pe)):Kt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!0,Pe)):Kt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!gb){for(gb=!0;!Ar.paused&&G<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Xt=0;Xt<rt;Xt++){var jr=Ar._tasks.shift();tt.push(jr),z.push(jr),Pe.push(jr.data)}G+=1,Ar._tasks.length===0&&zt("empty"),G===Ar.concurrency&&zt("saturated");var ms=re(Sa(tt));P(Pe,ms)}gb=!1}},length(){return Ar._tasks.length},running(){return G},workersList(){return z},idle(){return Ar._tasks.length+G===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:rp("saturated")},unsaturated:{writable:!1,value:rp("unsaturated")},empty:{writable:!1,value:rp("empty")},drain:{writable:!1,value:rp("drain")},error:{writable:!1,value:rp("error")}}),Ar}function Gl(Q,b){return FA(Q,1,b)}function Yl(Q,b,x){return FA(Q,b,x)}function Zi(Q,b,x,P){P=W(P);var G=E(x);return Hs(Q,(z,K,Z)=>{G(b,z,(ne,Fe)=>{b=Fe,Z(ne)})},z=>P(z,b))}var bi=g(Zi,4);function zl(...Q){var b=Q.map(E);return function(...x){var P=this,G=x[x.length-1];return typeof G=="function"?x.pop():G=PA(),bi(b,x,(z,K,Z)=>{K.apply(P,z.concat((ne,...Fe)=>{Z(ne,Fe)}))},(z,K)=>G(z,...K)),G[Oc]}}function Xm(...Q){return zl(...Q.reverse())}function ve(Q,b,x,P){return I(fe(b),Q,x,P)}var q=g(ve,4);function T(Q,b,x,P){var G=E(x);return q(Q,b,(z,K)=>{G(z,(Z,...ne)=>Z?K(Z):K(Z,ne))},(z,K)=>{for(var Z=[],ne=0;ne<K.length;ne++)K[ne]&&(Z=Z.concat(...K[ne]));return P(z,Z)})}var Y=g(T,4);function X(Q,b,x){return Y(Q,1/0,b,x)}var ee=g(X,3);function Ae(Q,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});ln[Xs]||($_e=global[Xs]||[],tUe(ln,$_e),ln.close=(function(t){function e(r,n){return t.call(ln,r,function(s){s||eUe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(ln.close),ln.closeSync=(function(t){function e(r){t.apply(ln,arguments),eUe()}return Object.defineProperty(e,U_,{value:t}),e})(ln.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){FE(ln[Xs]),w("assert").equal(ln[Xs].length,0)}));var $_e;global[Xs]||tUe(global,ln[Xs]);hne.exports=lne(n6t(ln));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ln.__patched&&(hne.exports=lne(ln),ln.__patched=!0);function lne(t){t6t(t),t.gracefulify=lne,t.createReadStream=M,t.createWriteStream=W;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),re(k,j,$);function re(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?uB([re,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,re){return typeof $=="function"&&(re=$,$=0),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var re=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return re(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?uB([re,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=r6t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function W(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,fn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function uB(t){FE("ENQUEUE",t[0].name,t[1]),ln[Xs].push(t),dne()}var __;function eUe(){for(var t=Date.now(),e=0;e<ln[Xs].length;++e)ln[Xs][e].length>2&&(ln[Xs][e][3]=t,ln[Xs][e][4]=t);dne()}function dne(){if(clearTimeout(__),__=void 0,ln[Xs].length!==0){var t=ln[Xs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)FE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){FE("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?(FE("RETRY",e.name,r),e.apply(null,r.concat([s]))):ln[Xs].push(t)}__===void 0&&(__=setTimeout(dne,0))}}});var O_=y((A8r,rUe)=>{"use strict";var Ql=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ql.writable=t=>Ql(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ql.readable=t=>Ql(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};P3e.exports={AggregateError:jne,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 Kne=y((yHr,M3e)=>{"use strict";M3e.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 Ei=y((CHr,_3e)=>{"use strict";var{format:N9t,inspect:iU}=Kne(),{AggregateError:x9t}=nn(),S9t=globalThis.AggregateError||x9t,T9t=Symbol("kIsNodeError"),R9t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],D9t=/^([A-Z][a-z0-9]*)+$/,k9t="__node_internal_",oU={};function UE(t,e){if(!t)throw new oU.ERR_INTERNAL_ASSERTION(e)}function F3e(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 v9t(t,e,r){if(typeof e=="function")return UE(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 UE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:N9t(e,...r)}function $s(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(v9t(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[T9t]=!0,oU[t]=n}function L3e(t){let e=k9t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function P9t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new S9t([e,t],e.message);return r.code=e.code,r}return t||e}var Xne=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};$s("ERR_ASSERTION","%s",Error);$s("ERR_INVALID_ARG_TYPE",(t,e,r)=>{UE(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)UE(typeof c=="string","All expected entries have to be of type string"),R9t.includes(c)?s.push(c.toLowerCase()):D9t.test(c)?i.push(c):(UE(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;defaulLine truncated
|
||||
`+b);let[,P]=x;return P.replace(/\s/g,"").split(MA).map(G=>G.replace(u0,"").trim())}function Hc(Q,b){var x={};return Object.keys(Q).forEach(P=>{var G=Q[P],z,K=h(G),Z=!K&&G.length===1||K&&G.length===0;if(Array.isArray(G))z=[...G],G=z.pop(),x[P]=z.concat(z.length>0?ne:G);else if(Z)x[P]=G;else{if(z=ds(G),G.length===0&&!K&&z.length===0)throw new Error("autoInject task functions require explicit parameters.");K||z.pop(),x[P]=z.concat(ne)}function ne(Fe,zt){var cr=z.map(Kt=>Fe[Kt]);cr.push(zt),E(G)(...cr)}}),Hl(x,b)}class qc{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,x){x.prev=b,x.next=b.next,b.next?b.next.prev=x:this.tail=x,b.next=x,this.length+=1}insertBefore(b,x){x.prev=b.prev,x.next=b,b.prev?b.prev.next=x:this.head=x,b.prev=x,this.length+=1}unshift(b){this.head?this.insertBefore(this.head,b):Rh(this,b)}push(b){this.tail?this.insertAfter(this.tail,b):Rh(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 x=this.head;x;){var{next:P}=x;b(x)&&this.removeLink(x),x=P}return this}}function Rh(Q,b){Q.length=1,Q.head=Q.tail=b}function FA(Q,b,x){if(b==null)b=1;else if(b===0)throw new RangeError("Concurrency must not be zero");var P=E(Q),G=0,z=[];let K={error:[],drain:[],saturated:[],unsaturated:[],empty:[]};function Z(tt,Pe){K[tt].push(Pe)}function ne(tt,Pe){let rt=(...Xt)=>{Fe(tt,rt),Pe(...Xt)};K[tt].push(rt)}function Fe(tt,Pe){if(!tt)return Object.keys(K).forEach(rt=>K[rt]=[]);if(!Pe)return K[tt]=[];K[tt]=K[tt].filter(rt=>rt!==Pe)}function zt(tt,...Pe){K[tt].forEach(rt=>rt(...Pe))}var cr=!1;function Kt(tt,Pe,rt,Xt){if(Xt!=null&&typeof Xt!="function")throw new Error("task callback must be a function");Ar.started=!0;var jr,ms;function Ta(np,...Eb){if(np)return rt?ms(np):jr();if(Eb.length<=1)return jr(Eb[0]);jr(Eb)}var B0=Ar._createTaskItem(tt,rt?Ta:Xt||Ta);if(Pe?Ar._tasks.unshift(B0):Ar._tasks.push(B0),cr||(cr=!0,A(()=>{cr=!1,Ar.process()})),rt||!Xt)return new Promise((np,Eb)=>{jr=np,ms=Eb})}function Sa(tt){return function(Pe,...rt){G-=1;for(var Xt=0,jr=tt.length;Xt<jr;Xt++){var ms=tt[Xt],Ta=z.indexOf(ms);Ta===0?z.shift():Ta>0&&z.splice(Ta,1),ms.callback(Pe,...rt),Pe!=null&&zt("error",Pe,ms.data)}G<=Ar.concurrency-Ar.buffer&&zt("unsaturated"),Ar.idle()&&zt("drain"),Ar.process()}}function I0(tt){return tt.length===0&&Ar.idle()?(A(()=>zt("drain")),!0):!1}let rp=tt=>Pe=>{if(!Pe)return new Promise((rt,Xt)=>{ne(tt,(jr,ms)=>{if(jr)return Xt(jr);rt(ms)})});Fe(tt),Z(tt,Pe)};var gb=!1,Ar={_tasks:new qc,_createTaskItem(tt,Pe){return{data:tt,callback:Pe}},*[Symbol.iterator](){yield*Ar._tasks[Symbol.iterator]()},concurrency:b,payload:x,buffer:b/4,started:!1,paused:!1,push(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!1,Pe)):Kt(tt,!1,!1,Pe)},pushAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!1,!0,Pe)):Kt(tt,!1,!0,Pe)},kill(){Fe(),Ar._tasks.empty()},unshift(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!1,Pe)):Kt(tt,!0,!1,Pe)},unshiftAsync(tt,Pe){return Array.isArray(tt)?I0(tt)?void 0:tt.map(rt=>Kt(rt,!0,!0,Pe)):Kt(tt,!0,!0,Pe)},remove(tt){Ar._tasks.remove(tt)},process(){if(!gb){for(gb=!0;!Ar.paused&&G<Ar.concurrency&&Ar._tasks.length;){var tt=[],Pe=[],rt=Ar._tasks.length;Ar.payload&&(rt=Math.min(rt,Ar.payload));for(var Xt=0;Xt<rt;Xt++){var jr=Ar._tasks.shift();tt.push(jr),z.push(jr),Pe.push(jr.data)}G+=1,Ar._tasks.length===0&&zt("empty"),G===Ar.concurrency&&zt("saturated");var ms=re(Sa(tt));P(Pe,ms)}gb=!1}},length(){return Ar._tasks.length},running(){return G},workersList(){return z},idle(){return Ar._tasks.length+G===0},pause(){Ar.paused=!0},resume(){Ar.paused!==!1&&(Ar.paused=!1,A(Ar.process))}};return Object.defineProperties(Ar,{saturated:{writable:!1,value:rp("saturated")},unsaturated:{writable:!1,value:rp("unsaturated")},empty:{writable:!1,value:rp("empty")},drain:{writable:!1,value:rp("drain")},error:{writable:!1,value:rp("error")}}),Ar}function Gl(Q,b){return FA(Q,1,b)}function Yl(Q,b,x){return FA(Q,b,x)}function Zi(Q,b,x,P){P=W(P);var G=E(x);return Hs(Q,(z,K,Z)=>{G(b,z,(ne,Fe)=>{b=Fe,Z(ne)})},z=>P(z,b))}var bi=g(Zi,4);function zl(...Q){var b=Q.map(E);return function(...x){var P=this,G=x[x.length-1];return typeof G=="function"?x.pop():G=PA(),bi(b,x,(z,K,Z)=>{K.apply(P,z.concat((ne,...Fe)=>{Z(ne,Fe)}))},(z,K)=>G(z,...K)),G[Oc]}}function Xm(...Q){return zl(...Q.reverse())}function ve(Q,b,x,P){return I(fe(b),Q,x,P)}var q=g(ve,4);function T(Q,b,x,P){var G=E(x);return q(Q,b,(z,K)=>{G(z,(Z,...ne)=>Z?K(Z):K(Z,ne))},(z,K)=>{for(var Z=[],ne=0;ne<K.length;ne++)K[ne]&&(Z=Z.concat(...K[ne]));return P(z,Z)})}var Y=g(T,4);function X(Q,b,x){return Y(Q,1/0,b,x)}var ee=g(X,3);function Ae(Q,b,x){retu
Line truncated
|
||||
GFS4: `),console.error(t)});ln[Xs]||($_e=global[Xs]||[],tUe(ln,$_e),ln.close=(function(t){function e(r,n){return t.call(ln,r,function(s){s||eUe(),typeof n=="function"&&n.apply(this,arguments)})}return Object.defineProperty(e,U_,{value:t}),e})(ln.close),ln.closeSync=(function(t){function e(r){t.apply(ln,arguments),eUe()}return Object.defineProperty(e,U_,{value:t}),e})(ln.closeSync),/\bgfs4\b/i.test(process.env.NODE_DEBUG||"")&&process.on("exit",function(){FE(ln[Xs]),w("assert").equal(ln[Xs].length,0)}));var $_e;global[Xs]||tUe(global,ln[Xs]);hne.exports=lne(n6t(ln));process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH&&!ln.__patched&&(hne.exports=lne(ln),ln.__patched=!0);function lne(t){t6t(t),t.gracefulify=lne,t.createReadStream=M,t.createWriteStream=W;var e=t.readFile;t.readFile=r;function r(k,j,$){return typeof j=="function"&&($=j,j=null),re(k,j,$);function re(le,fe,Ve,ze){return e(le,fe,function(ft){ft&&(ft.code==="EMFILE"||ft.code==="ENFILE")?uB([re,[le,fe,Ve],ft,ze||Date.now(),Date.now()]):typeof Ve=="function"&&Ve.apply(this,arguments)})}}var n=t.writeFile;t.writeFile=s;function s(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return n(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var i=t.appendFile;i&&(t.appendFile=o);function o(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return i(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var a=t.copyFile;a&&(t.copyFile=c);function c(k,j,$,re){return typeof $=="function"&&(re=$,$=0),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return a(fe,Ve,ze,function(dr){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}var A=t.readdir;t.readdir=l;var u=/^v[0-5]\./;function l(k,j,$){typeof j=="function"&&($=j,j=null);var re=u.test(process.version)?function(Ve,ze,ft,ar){return A(Ve,le(Ve,ze,ft,ar))}:function(Ve,ze,ft,ar){return A(Ve,ze,le(Ve,ze,ft,ar))};return re(k,j,$);function le(fe,Ve,ze,ft){return function(ar,dr){ar&&(ar.code==="EMFILE"||ar.code==="ENFILE")?uB([re,[fe,Ve,ze],ar,ft||Date.now(),Date.now()]):(dr&&dr.sort&&dr.sort(),typeof ze=="function"&&ze.call(this,ar,dr))}}}if(process.version.substr(0,4)==="v0.8"){var d=r6t(t);g=d.ReadStream,I=d.WriteStream}var h=t.ReadStream;h&&(g.prototype=Object.create(h.prototype),g.prototype.open=C);var f=t.WriteStream;f&&(I.prototype=Object.create(f.prototype),I.prototype.open=B),Object.defineProperty(t,"ReadStream",{get:function(){return g},set:function(k){g=k},enumerable:!0,configurable:!0}),Object.defineProperty(t,"WriteStream",{get:function(){return I},set:function(k){I=k},enumerable:!0,configurable:!0});var m=g;Object.defineProperty(t,"FileReadStream",{get:function(){return m},set:function(k){m=k},enumerable:!0,configurable:!0});var E=I;Object.defineProperty(t,"FileWriteStream",{get:function(){return E},set:function(k){E=k},enumerable:!0,configurable:!0});function g(k,j){return this instanceof g?(h.apply(this,arguments),this):g.apply(Object.create(g.prototype),arguments)}function C(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.autoClose&&k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$),k.read())})}function I(k,j){return this instanceof I?(f.apply(this,arguments),this):I.apply(Object.create(I.prototype),arguments)}function B(){var k=this;H(k.path,k.flags,k.mode,function(j,$){j?(k.destroy(),k.emit("error",j)):(k.fd=$,k.emit("open",$))})}function M(k,j){return new t.ReadStream(k,j)}function W(k,j){return new t.WriteStream(k,j)}var F=t.open;t.open=H;function H(k,j,$,re){return typeof $=="function"&&(re=$,$=null),le(k,j,$,re);function le(fe,Ve,ze,ft,ar){return F(fe,Ve,ze,function(dr,fn){dr&&(dr.code==="EMFILE"||dr.code==="ENFILE")?uB([le,[fe,Ve,ze,ft],dr,ar||Date.now(),Date.now()]):typeof ft=="function"&&ft.apply(this,arguments)})}}return t}function uB(t){FE("ENQUEUE",t[0].name,t[1]),ln[Xs].push(t),dne()}var __;function eUe(){for(var t=Date.now(),e=0;e<ln[Xs].length;++e)ln[Xs][e].length>2&&(ln[Xs][e][3]=t,ln[Xs][e][4]=t);dne()}function dne(){if(clearTimeout(__),__=void 0,ln[Xs].length!==0){var t=ln[Xs].shift(),e=t[0],r=t[1],n=t[2],s=t[3],i=t[4];if(s===void 0)FE("RETRY",e.name,r),e.apply(null,r);else if(Date.now()-s>=6e4){FE("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?(FE("RETRY",e.name,r),e.apply(null,r.concat([s]))):ln[Xs].push(t)}__===void 0&&(__=setTimeout(dne,0))}}});var O_=y((l8r,rUe)=>{"use strict";var Ql=t=>t!==null&&typeof t=="object"&&typeof t.pipe=="function";Ql.writable=t=>Ql(t)&&t.writable!==!1&&typeof t._write=="function"&&typeof t._writableState=="object";Ql.readable=t=>Ql(t)&&t.readable!=
Line truncated
|
||||
`;super(r),this.name="AggregateError",this.errors=e}};P3e.exports={AggregateError:jne,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 Kne=y((IHr,M3e)=>{"use strict";M3e.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 Ei=y((BHr,_3e)=>{"use strict";var{format:N9t,inspect:iU}=Kne(),{AggregateError:x9t}=nn(),S9t=globalThis.AggregateError||x9t,T9t=Symbol("kIsNodeError"),R9t=["string","function","number","object","Function","Object","boolean","bigint","symbol"],D9t=/^([A-Z][a-z0-9]*)+$/,k9t="__node_internal_",oU={};function UE(t,e){if(!t)throw new oU.ERR_INTERNAL_ASSERTION(e)}function F3e(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 v9t(t,e,r){if(typeof e=="function")return UE(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 UE(n===r.length,`Code: ${t}; The provided arguments length (${r.length}) does not match the required ones (${n}).`),r.length===0?e:N9t(e,...r)}function $s(t,e,r){r||(r=Error);class n extends r{constructor(...i){super(v9t(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[T9t]=!0,oU[t]=n}function L3e(t){let e=k9t+t.name;return Object.defineProperty(t,"name",{value:e}),t}function P9t(t,e){if(t&&e&&t!==e){if(Array.isArray(e.errors))return e.errors.push(t),e;let r=new S9t([e,t],e.message);return r.code=e.code,r}return t||e}var Xne=class extends Error{constructor(e="The operation was aborted",r=void 0){if(r!==void 0&&typeof r!="object")throw new oU.ERR_INVALID_ARG_TYPE("options","Object",r);super(e,r),this.code="ABORT_ERR",this.name="AbortError"}};$s("ERR_ASSERTION","%s",Error);$s("ERR_INVALID_ARG_TYPE",(t,e,r)=>{UE(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)UE(typeof c=="string","All expected entries have to be of type string"),R9t.includes(c)?s.push(c.toLowerCase()):D9t.test(c)?i.push(c):(UE(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;defaulLine truncated
|
||||
`)),e.linkname&&(r+=Doe(" linkpath="+e.linkname+`
|
||||
`));let n=e.pax;if(n)for(let s in n)r+=Doe(" "+s+"="+n[s]+`
|
||||
`);return ir.from(r)};XB.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};XB.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Ym(e.mode&Ker,6),100),ir.write(r,Ym(e.uid,6),108),ir.write(r,Ym(e.gid,6),116),ntr(e.size,r,124),ir.write(r,Ym(e.mtime.getTime()/1e3|0,11),136),r[156]=PO+ttr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(m9e,r,W1),ir.copy(Jer,r,koe),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Ym(e.devmajor||0,6),329),ir.write(r,Ym(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Ym(g9e(r),6),148),r)};XB.decode=function(e,r,n){let s=e[156]===0?0:e[156]-PO,i=KB(e,0,100,r),o=Gm(e,100,8),a=Gm(e,108,8),c=Gm(e,116,8),A=Gm(e,124,12),u=Gm(e,136,12),l=etr(s),d=e[157]===0?null:KB(e,157,100,r),h=KB(e,265,32),f=KB(e,297,32),m=Gm(e,329,8),E=Gm(e,337,8),g=g9e(e);if(g===256)return null;if(g!==Gm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Xer(e))e[345]&&(i=KB(e,345,155,r)+"/"+i);else if(!Zer(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function Xer(t){return ir.equals(m9e,t.subarray(W1,W1+6))}function Zer(t){return ir.equals(Ver,t.subarray(W1,W1+6))&&ir.equals(jer,t.subarray(koe,koe+2))}function $er(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function etr(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 ttr(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 p9e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function g9e(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 Ym(t,e){return t=t.toString(8),t.length>e?Wer.slice(0,e)+" ":zer.slice(0,e-t.length)+t+" "}function rtr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function ntr(t,e,r){t.toString(8).length>11?rtr(t,e,r):ir.write(e,Ym(t,11),r)}function str(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 Gm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return str(t);{for(;e<t.length&&t[e]===32;)e++;let n=$er(p9e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function KB(t,e,r,n){return ir.toString(t.subarray(e,p9e(t,0,e,e+r)),n)}function Doe(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B9e=y((j5r,I9e)=>{var{Writable:itr,Readable:otr,getStreamError:E9e}=Roe(),atr=foe(),y9e=zB(),ZB=voe(),ctr=y9e.alloc(0),Atr=4*1024*1024,Moe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new atr,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 ctr;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 y9e.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)}},Foe=class extends otr{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(E9e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=C9e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`);return ir.from(r)};XB.decodePax=function(e){let r={};for(;e.length;){let n=0;for(;n<e.length&&e[n]!==32;)n++;let s=parseInt(ir.toString(e.subarray(0,n)),10);if(!s)return r;let i=ir.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};XB.encode=function(e){let r=ir.alloc(512),n=e.name,s="";if(e.typeflag===5&&n[n.length-1]!=="/"&&(n+="/"),ir.byteLength(n)!==n.length)return null;for(;ir.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 ir.byteLength(n)>100||ir.byteLength(s)>155||e.linkname&&ir.byteLength(e.linkname)>100?null:(ir.write(r,n),ir.write(r,Ym(e.mode&Ker,6),100),ir.write(r,Ym(e.uid,6),108),ir.write(r,Ym(e.gid,6),116),ntr(e.size,r,124),ir.write(r,Ym(e.mtime.getTime()/1e3|0,11),136),r[156]=PO+ttr(e.type),e.linkname&&ir.write(r,e.linkname,157),ir.copy(m9e,r,W1),ir.copy(Jer,r,koe),e.uname&&ir.write(r,e.uname,265),e.gname&&ir.write(r,e.gname,297),ir.write(r,Ym(e.devmajor||0,6),329),ir.write(r,Ym(e.devminor||0,6),337),s&&ir.write(r,s,345),ir.write(r,Ym(g9e(r),6),148),r)};XB.decode=function(e,r,n){let s=e[156]===0?0:e[156]-PO,i=KB(e,0,100,r),o=Gm(e,100,8),a=Gm(e,108,8),c=Gm(e,116,8),A=Gm(e,124,12),u=Gm(e,136,12),l=etr(s),d=e[157]===0?null:KB(e,157,100,r),h=KB(e,265,32),f=KB(e,297,32),m=Gm(e,329,8),E=Gm(e,337,8),g=g9e(e);if(g===256)return null;if(g!==Gm(e,148,8))throw new Error("Invalid tar header. Maybe the tar is corrupted or it needs to be gunzipped?");if(Xer(e))e[345]&&(i=KB(e,345,155,r)+"/"+i);else if(!Zer(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,byteOffset:0,mtime:new Date(1e3*u),type:l,linkname:d,uname:h,gname:f,devmajor:m,devminor:E,pax:null}};function Xer(t){return ir.equals(m9e,t.subarray(W1,W1+6))}function Zer(t){return ir.equals(Ver,t.subarray(W1,W1+6))&&ir.equals(jer,t.subarray(koe,koe+2))}function $er(t,e,r){return typeof t!="number"?r:(t=~~t,t>=e?e:t>=0||(t+=e,t>=0)?t:0)}function etr(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 ttr(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 p9e(t,e,r,n){for(;r<n;r++)if(t[r]===e)return r;return n}function g9e(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 Ym(t,e){return t=t.toString(8),t.length>e?Wer.slice(0,e)+" ":zer.slice(0,e-t.length)+t+" "}function rtr(t,e,r){e[r]=128;for(let n=11;n>0;n--)e[r+n]=t&255,t=Math.floor(t/256)}function ntr(t,e,r){t.toString(8).length>11?rtr(t,e,r):ir.write(e,Ym(t,11),r)}function str(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 Gm(t,e,r){if(t=t.subarray(e,e+r),e=0,t[e]&128)return str(t);{for(;e<t.length&&t[e]===32;)e++;let n=$er(p9e(t,32,e,t.length),t.length,t.length);for(;e<n&&t[e]===0;)e++;return n===e?0:parseInt(ir.toString(t.subarray(e,n)),8)}}function KB(t,e,r,n){return ir.toString(t.subarray(e,p9e(t,0,e,e+r)),n)}function Doe(t){let e=ir.byteLength(t),r=Math.floor(Math.log(e)/Math.log(10))+1;return e+r>=Math.pow(10,r)&&r++,e+r+t}});var B9e=y((X5r,I9e)=>{var{Writable:itr,Readable:otr,getStreamError:E9e}=Roe(),atr=foe(),y9e=zB(),ZB=voe(),ctr=y9e.alloc(0),Atr=4*1024*1024,Moe=class{constructor(){this.buffered=0,this.shifted=0,this.queue=new atr,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 ctr;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 y9e.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)}},Foe=class extends otr{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(E9e(this))}_detach(){this._parent._stream===this&&(this._parent._stream=null,this._parent._missing=C9e(this.header.size),this._parent._update())}_destroy(e){this._detach(),e
Line truncated
|
||||
`).filter(n=>n!=="");return e&&e.trimWhitespace===!1?r:r.map(n=>n.trim())}function ZH(t){process.exitCode=KH.Failure,La(t)}function sf(){return process.env.RUNNER_DEBUG==="1"}function J(t){Fh("debug",{},t)}function La(t,e={}){Fh("error",ET(e),t instanceof Error?t.toString():t)}function at(t,e={}){Fh("warning",ET(e),t instanceof Error?t.toString():t)}function ND(t,e={}){Fh("notice",ET(e),t instanceof Error?t.toString():t)}function ie(t){process.stdout.write(t+spe.EOL)}function ipe(t){u3("group",t)}function ope(){u3("endgroup")}function bQ(t,e){if(process.env.GITHUB_STATE||"")return dae("STATE",hae(t,e));Fh("save-state",{name:t},Mh(e))}function XA(t){return process.env[`STATE_${t}`]||""}import{readFileSync as dst,existsSync as hst}from"fs";import{EOL as fst}from"os";var Cy=class{constructor(){var e,r,n;if(this.payload={},process.env.GITHUB_EVENT_PATH)if(hst(process.env.GITHUB_EVENT_PATH))this.payload=JSON.parse(dst(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${fst}`)}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 r6=xe(lpe(),1),dpe=xe(gD(),1),xst=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 hpe(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 fpe(t){return new r6.HttpClient().getAgent(t)}function Sst(t){return new r6.HttpClient().getAgentDispatcher(t)}function mpe(t){let e=Sst(t);return(n,s)=>xst(this,void 0,void 0,function*(){return(0,dpe.fetch)(n,Object.assign(Object.assign({},s),{dispatcher:e}))})}function ppe(){return process.env.GITHUB_API_URL||"https://api.github.com"}function n6(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 of(){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 vD(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)=>vD.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 gpe(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 Epe(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 ype=Function.bind,Cpe=ype.bind(ype);function Ipe(t,e,r){let n=Cpe(Epe,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]=Cpe(gpe,null).apply(null,i)})}function Rst(){let t=Symbol("Singular"),e={registry:{}},r=vD.bind(null,e,t);return Ipe(r,e,t),r}function Dst(){let t={registry:{}},e=vD.bind(null,t);return Ipe(e,t),e}var Bpe={Singular:Rst,Collection:Dst};var kst="0.0.0-development",vst=`octokit-endpoint.js/${kst} ${of()}`,Pst={method:"GET",baseUrl:"h
Line truncated
|
||||
`+n.repeat(l));let E=f.val[f.index],g=o(f.val,String(f.index),E);if(u6(g))u.push("null"),f.first=!1,f.index++;else{let C=g!==null&&typeof g=="object",I=l6(g);if(C&&!I){if(h.has(g))throw new TypeError("Converting circular structure to JSON");h.add(g),d.push({parent:f.val,key:String(f.index),val:g,isArray:Array.isArray(g),keys:Array.isArray(g)?null:Object.keys(g),index:0,first:!0}),f.first=!1,f.index++}else u.push(af(g)),f.first=!1,f.index++}}else m=!0;else{for(;f.index<f.keys.length;){let g=f.keys[f.index++];if(i&&!i.has(g))continue;let I=f.val[g],B=o(f.val,g,I);if(u6(B))continue;f.first||u.push(","),n?u.push(`
|
||||
`+n.repeat(l)+af(g)+": "):u.push(af(g)+":");let M=B!==null&&typeof B=="object",W=l6(B);if(M&&!W){if(h.has(B))throw new TypeError("Converting circular structure to JSON");h.add(B),d.push({parent:f.val,key:g,val:B,isArray:Array.isArray(B),keys:Array.isArray(B)?null:Object.keys(B),index:0,first:!0}),f.first=!1;break}else u.push(af(B)),f.first=!1}f.index>=f.keys.length&&d[d.length-1]===f&&(m=!0)}m&&(l--,!f.first&&n&&u.push(`
|
||||
`+n.repeat(l)),u.push(f.isArray?"]":"}"),h.delete(f.val),d.pop())}return u.join("")},Hpe=(t,e,r)=>{try{return"rawJSON"in JSON?af(t,(a,c)=>typeof c=="bigint"?JSON.rawJSON(c.toString()):typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r):t?af(t,(a,c)=>typeof c=="string"&&MD.test(c)||typeof c=="bigint"?c.toString()+"n":typeof e=="function"?e(a,c):(Array.isArray(e)&&e.includes(a),c),r).replace(Fpe,"$1$2$3").replace(Lpe,"$1$2$3"):af(t,e,r)}catch(n){if(n instanceof RangeError){let s=Kst(t,e,r);return s===void 0?void 0:"rawJSON"in JSON?s:s.replace(Fpe,"$1$2$3").replace(Lpe,"$1$2$3")}throw n}},PD=new Map,Xst=()=>{let t=JSON.parse.toString();if(PD.has(t))return PD.get(t);try{let e=JSON.parse("1",(r,n,s)=>!!s?.source&&s.source==="1");return PD.set(t,e),e}catch{return PD.set(t,!1),!1}},Zst=(t,e,r,n)=>typeof e=="string"&&Ope.test(e)?BigInt(e.slice(0,-1)):typeof e=="string"&&MD.test(e)?e.slice(0,-1):typeof n=="function"?n(t,e,r):e,$st=(t,e)=>JSON.parse(t,(r,n,s)=>{let i=typeof n=="number",o=n>Number.MAX_SAFE_INTEGER||n<Number.MIN_SAFE_INTEGER,a=i&&o,c=s&&jst.test(s.source);return a&&c?BigInt(s.source):typeof e=="function"?e(r,n,s):n}),qpe=Number.MAX_SAFE_INTEGER.toString(),_pe=qpe.length,eit=/"(?:[^"\\]|\\.)*"|-?(0|[1-9][0-9]*)(\.[0-9]+)?([eE][+-]?[0-9]+)?/g,tit=/^"-?\d+n+"$/,rit=(t,e)=>{let r={"":t},n=[{parent:r,key:"",visited:!1}];for(;n.length>0;){let s=n[n.length-1];if(s.visited){let{parent:i,key:o}=s,a=i[o];typeof a=="string"&&(Ope.test(a)?a=BigInt(a.slice(0,-1)):MD.test(a)&&(a=a.slice(0,-1))),typeof e=="function"&&(a=e.call(i,o,a)),a===void 0?delete i[o]:i[o]=a,n.pop()}else{s.visited=!0;let i=s.parent[s.key];if(i!==null&&typeof i=="object"){let a=Object.keys(i);for(let c=a.length-1;c>=0;c--)n.push({parent:i,key:a[c],visited:!1})}}}return r[""]},Upe=t=>t.replace(eit,(e,r,n,s)=>{let i=e[0]==='"';if(i&&tit.test(e))return e.substring(0,e.length-1)+'n"';let a=n||s,c=r&&(r.length<_pe||r.length===_pe&&r<=qpe);return i||a||c?e:'"'+e+'n"'}),Gpe=(t,e)=>{if(!t)return A6(t,e);try{if(Xst())return $st(t,e);let r=Upe(t);return A6(r,(n,s,i)=>Zst(n,s,i,e))}catch(r){if(r instanceof RangeError){let n=Upe(t),s=A6(n);return rit(s,e)}throw r}};var dd=class extends Error{name;status;request;response;constructor(e,r,n){super(e,{cause:n.cause}),this.name="HttpError",this.status=Number.parseInt(r),Number.isNaN(this.status)&&(this.status=0);"response"in n&&(this.response=n.response);let s=Object.assign({},n.request);n.request.headers.authorization&&(s.headers=Object.assign({},n.request.headers,{authorization:n.request.headers.authorization.replace(/(?<! ) .*$/," [REDACTED]")})),s.url=s.url.replace(/\bclient_secret=\w+/g,"client_secret=[REDACTED]").replace(/\baccess_token=\w+/g,"access_token=[REDACTED]"),this.request=s}};var nit="10.0.16",sit={headers:{"user-agent":`octokit-request.js/${nit} ${of()}`}};function iit(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);if(e===null)return!0;let r=Object.prototype.hasOwnProperty.call(e,"constructor")&&e.constructor;return typeof r=="function"&&r instanceof r&&Function.prototype.call(r)===Function.prototype.call(t)}var Ype=()=>"";async function zpe(t){let e=t.request?.fetch||globalThis.fetch;if(!e)throw new Error("fetch is not set. Please pass a fetch implementation as new Octokit({ request: { fetch }}). Learn more at https://github.com/octokit/octokit.js/#fetch-missing");let r=t.request?.log||console,n=t.request?.parseSuccessResponseBody!==!1,s=iit(t.body)||Array.isArray(t.body)?Hpe(t.body):t.body,i=Object.fromEntries(Object.entries(t.headers).map(([l,d])=>[l,String(d)])),o;try{o=await e(t.url,{method:t.method,body:s,redirect:t.request?.redirect,headers:i,signal:t.request?.signal,...t.body&&{duplex:"half"}})}catch(l){let d="Unknown Error";if(l instanceof Error){if(l.name==="AbortError")throw l.status=500,l;d=l.message,l.name==="TypeError"&&"cause"in l&&(l.cause instanceof Error?d=l.cause.message:typeof l.cause=="string"&&(d=l.cause))}let h=new dd(d,500,{request:t});throw h.cause=l,h}let a=o.status,c=o.url,A={};for(let[l,d]of o.headers)A[l]=d;let u={url:c,status:a,headers:A,data:""};if("deprecation"in A){let l=A.link&&A.link.match(/<([^<>]+)>; rel="deprecation"/),d=l&&l.pop();r.warn(`[@octokit/request] "${t.method} ${t.url}" is deprecated. It is scheduled to be removed on ${A.sunset}${d?`. See ${d}`:""}`)}if(a===204||a===205)return u;if(t.method==="HEAD"){if(a<400)return u;throw new dd(o.statusText,a,{response:u,request:t})}if(a===304)throw u.data=await d6(o),new dd("Not modified",a,{response:u,request:t});if(a>=400)throw u.data=await d6(o),new dd(ait(u.data),a,{response:u,request:t});return u.data=n?await d6(o):o.body,u}async function d6(t){let e=t.headers.get("content-type");if(!e)return t.text().catch(Ype);let r=kpe(e);if(oit(r)){let n="";try{return n=await t.text(),Gpe(n)}catch{return n}}else return r.type.startsWith("text/")||r.parameters.charset?.toLowerCase()==="utf-8"&&r.type!=="application/octet-
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}var uit=class extends Error{constructor(t,e,r){super(Ait(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)}request;headers;response;name="GraphqlResponseError";errors;data},lit=["method","baseUrl","url","headers","request","query","mediaType","operationName"],dit=["query","method","url"],Wpe=/\/api\/v3\/?$/;function hit(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(dit.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)=>lit.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 Wpe.test(i)&&(s.url=i.replace(Wpe,"/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 uit(s,a,o.data)}return o.data.data})}function f6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>hit(r,s,i),{defaults:f6.bind(null,r),endpoint:r.endpoint})}var _ir=f6(NQ,{headers:{"user-agent":`octokit-graphql.js/${cit} ${of()}`},method:"POST",url:"/graphql"});function Jpe(t){return f6(t,{method:"POST",url:"/graphql"})}var m6="(?:[a-zA-Z0-9_-]+)",Vpe="\\.",jpe=new RegExp(`^${m6}${Vpe}${m6}${Vpe}${m6}$`),fit=jpe.test.bind(jpe);async function mit(t){let e=fit(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 pit(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function git(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=pit(t),e(s)}var Kpe=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(mit.bind(null,e),{hook:git.bind(null,e)})};var p6="7.0.8";var Xpe=()=>{},Eit=console.warn.bind(console),yit=console.error.bind(console);function Cit(t={}){return typeof t.debug!="function"&&(t.debug=Xpe),typeof t.info!="function"&&(t.info=Xpe),typeof t.warn!="function"&&(t.warn=Eit),typeof t.error!="function"&&(t.error=yit),t}var Zpe=`octokit-core.js/${p6} ${of()}`,FD=class{static VERSION=p6;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 Bpe.Collection,n={baseUrl:NQ.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} ${Zpe}`:Zpe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=NQ.defaults(n),this.graphql=Jpe(this.request).defaults(n),this.log=Cit(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=Kpe(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 g6="17.0.0";var Iit={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 uit=class extends Error{constructor(t,e,r){super(Ait(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)}request;headers;response;name="GraphqlResponseError";errors;data},lit=["method","baseUrl","url","headers","request","query","mediaType","operationName"],dit=["query","method","url"],Wpe=/\/api\/v3\/?$/;function hit(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(dit.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)=>lit.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 Wpe.test(i)&&(s.url=i.replace(Wpe,"/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 uit(s,a,o.data)}return o.data.data})}function f6(t,e){let r=t.defaults(e);return Object.assign((s,i)=>hit(r,s,i),{defaults:f6.bind(null,r),endpoint:r.endpoint})}var Oir=f6(NQ,{headers:{"user-agent":`octokit-graphql.js/${cit} ${of()}`},method:"POST",url:"/graphql"});function Jpe(t){return f6(t,{method:"POST",url:"/graphql"})}var m6="(?:[a-zA-Z0-9_-]+)",Vpe="\\.",jpe=new RegExp(`^${m6}${Vpe}${m6}${Vpe}${m6}$`),fit=jpe.test.bind(jpe);async function mit(t){let e=fit(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 pit(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}async function git(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=pit(t),e(s)}var Kpe=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(mit.bind(null,e),{hook:git.bind(null,e)})};var p6="7.0.8";var Xpe=()=>{},Eit=console.warn.bind(console),yit=console.error.bind(console);function Cit(t={}){return typeof t.debug!="function"&&(t.debug=Xpe),typeof t.info!="function"&&(t.info=Xpe),typeof t.warn!="function"&&(t.warn=Eit),typeof t.error!="function"&&(t.error=yit),t}var Zpe=`octokit-core.js/${p6} ${of()}`,FD=class{static VERSION=p6;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 Bpe.Collection,n={baseUrl:NQ.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} ${Zpe}`:Zpe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=NQ.defaults(n),this.graphql=Jpe(this.request).defaults(n),this.log=Cit(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=Kpe(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 g6="17.0.0";var Iit={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
|
||||
|
||||
`)}
|
||||
`:`${sge(t.status,e)}
|
||||
@@ -249,17 +249,17 @@ ${A}
|
||||
`)}function ige(t,e){return t.filter(r=>e(r)).length}function _D(t,e){let r=t.map(n=>e(n)??0).reduce((n,s)=>n+s,0);return Math.round(r/(1024*1024))}function oge(t,e){return t.map(r=>e(r)??0).reduce((r,n)=>r+n,0)}function age(t){return t===void 0||t===0?"":`${Math.round(t/(1024*1024))} MB (${t} B)`}function cge(t){return t===void 0||t===0?"":`${t} ms`}import*as CN from"path";import*as wy from"fs";function Q6(t){let e={followSymbolicLinks:!0,implicitDescendants:!0,matchDirectories:!0,omitBrokenSymbolicLinks:!0,excludeHiddenFiles:!1};return t&&(typeof t.followSymbolicLinks=="boolean"&&(e.followSymbolicLinks=t.followSymbolicLinks,J(`followSymbolicLinks '${e.followSymbolicLinks}'`)),typeof t.implicitDescendants=="boolean"&&(e.implicitDescendants=t.implicitDescendants,J(`implicitDescendants '${e.implicitDescendants}'`)),typeof t.matchDirectories=="boolean"&&(e.matchDirectories=t.matchDirectories,J(`matchDirectories '${e.matchDirectories}'`)),typeof t.omitBrokenSymbolicLinks=="boolean"&&(e.omitBrokenSymbolicLinks=t.omitBrokenSymbolicLinks,J(`omitBrokenSymbolicLinks '${e.omitBrokenSymbolicLinks}'`)),typeof t.excludeHiddenFiles=="boolean"&&(e.excludeHiddenFiles=t.excludeHiddenFiles,J(`excludeHiddenFiles '${e.excludeHiddenFiles}'`))),e}import*as qD from"path";import*as by from"path";import kp from"assert";var cf=process.platform==="win32";function md(t){if(t=fd(t),cf&&/^\\\\[^\\]+(\\[^\\]+)?$/.test(t))return t;let e=by.dirname(t);return cf&&/^\\\\[^\\]+\\[^\\]+\\$/.test(e)&&(e=fd(e)),e}function UD(t,e){if(kp(t,"ensureAbsoluteRoot parameter 'root' must not be empty"),kp(e,"ensureAbsoluteRoot parameter 'itemPath' must not be empty"),xQ(e))return e;if(cf){if(e.match(/^[A-Z]:[^\\/]|^[A-Z]:$/i)){let r=process.cwd();return kp(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),e[0].toUpperCase()===r[0].toUpperCase()?e.length===2?`${e[0]}:\\${r.substr(3)}`:(r.endsWith("\\")||(r+="\\"),`${e[0]}:\\${r.substr(3)}${e.substr(2)}`):`${e[0]}:\\${e.substr(2)}`}else if(tA(e).match(/^\\$|^\\[^\\]/)){let r=process.cwd();return kp(r.match(/^[A-Z]:\\/i),`Expected current directory to start with an absolute drive root. Actual '${r}'`),`${r[0]}:\\${e.substr(1)}`}}return kp(xQ(t),"ensureAbsoluteRoot parameter 'root' must have an absolute root"),t.endsWith("/")||cf&&t.endsWith("\\")||(t+=by.sep),t+e}function xQ(t){return kp(t,"hasAbsoluteRoot parameter 'itemPath' must not be empty"),t=tA(t),cf?t.startsWith("\\\\")||/^[A-Z]:\\/i.test(t):t.startsWith("/")}function SQ(t){return kp(t,"isRooted parameter 'itemPath' must not be empty"),t=tA(t),cf?t.startsWith("\\")||/^[A-Z]:/i.test(t):t.startsWith("/")}function tA(t){return t=t||"",cf?(t=t.replace(/\//g,"\\"),(/^\\\\+[^\\]/.test(t)?"\\":"")+t.replace(/\\\\+/g,"\\")):t.replace(/\/\/+/g,"/")}function fd(t){return t?(t=tA(t),!t.endsWith(by.sep)||t===by.sep||cf&&/^[A-Z]:\\$/i.test(t)?t:t.substr(0,t.length-1)):""}var rA;(function(t){t[t.None=0]="None",t[t.Directory=1]="Directory",t[t.File=2]="File",t[t.All=3]="All"})(rA||(rA={}));var dge=process.platform==="win32";function N6(t){t=t.filter(n=>!n.negate);let e={};for(let n of t){let s=dge?n.searchPath.toUpperCase():n.searchPath;e[s]="candidate"}let r=[];for(let n of t){let s=dge?n.searchPath.toUpperCase():n.searchPath;if(e[s]==="included")continue;let i=!1,o=s,a=md(o);for(;a!==o;){if(e[a]){i=!0;break}o=a,a=md(o)}i||(r.push(n.searchPath),e[s]="included")}return r}function hge(t,e){let r=rA.None;for(let n of t)n.negate?r&=~n.match(e):r|=n.match(e);return r}function fge(t,e){return t.some(r=>!r.negate&&r.partialMatch(e))}import*as Pge from"os";import*as Qy from"path";import Fp from"assert";var x6=(t,e,r)=>{let n=t instanceof RegExp?mge(t,r):t,s=e instanceof RegExp?mge(e,r):e,i=n!==null&&s!=null&&_it(n,s,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+n.length,i[1]),post:r.slice(i[1]+s.length)}},mge=(t,e)=>{let r=e.match(t);return r?r[0]:null},_it=(t,e,r)=>{let n,s,i,o,a,c=r.indexOf(t),A=r.indexOf(e,c+1),u=c;if(c>=0&&A>0){if(t===e)return[c,A];for(n=[],i=r.length;u>=0&&!a;){if(u===c)n.push(u),c=r.indexOf(t,u+1);else if(n.length===1){let l=n.pop();l!==void 0&&(a=[l,A])}else s=n.pop(),s!==void 0&&s<i&&(i=s,o=A),A=r.indexOf(e,u+1);u=c<A&&c>=0?c:A}n.length&&o!==void 0&&(a=[i,o])}return a};var pge="\0SLASH"+Math.random()+"\0",gge="\0OPEN"+Math.random()+"\0",R6="\0CLOSE"+Math.random()+"\0",Ege="\0COMMA"+Math.random()+"\0",yge="\0PERIOD"+Math.random()+"\0",Uit=new RegExp(pge,"g"),Oit=new RegExp(gge,"g"),Hit=new RegExp(R6,"g"),qit=new RegExp(Ege,"g"),Git=new RegExp(yge,"g"),Yit=/\\\\/g,zit=/\\{/g,Wit=/\\}/g,Jit=/\\,/g,Vit=/\\\./g,jit=1e5,Kit=4e6;function S6(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Xit(t){return t.replace(Yit,pge).replace(zit,gge).replace(Wit,R6).replace(Jit,Ege).replace(Vit,yge)}function Zit(t){return t.replace(Uit,"\\").replace(Oit,"{").replace(Hit,"}").replace(qit,",").replace(Git,".")}function Cge(t){if(!t)return[""];let e=[],r=x6("{","}",t);if(!r)retu
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 vQ(i));return n.searchPaths.push(...N6(n.patterns)),n})}static stat(e,r,n){return P6(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield wy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){J(`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 wy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield wy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){J(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as M6 from"crypto";import*as GD from"fs";import*as Mge from"stream";import*as Fge from"util";import*as Lge from"path";var Vot=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())})},jot=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 _ge(t,e){return Vot(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ie:J,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=M6.createHash("sha256"),f=0;try{for(var m=!0,E=jot(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${Lge.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(GD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=M6.createHash("sha256");yield Fge.promisify(Mge.pipeline)(GD.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Uge=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 MQ(t,e){return Uge(this,void 0,void 0,function*(){return yield HD.create(t,e)})}function Oge(t){return Uge(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield MQ(e,{followSymbolicLinks:i});return _ge(o,r,s)})}var v0e=xe(D0e(),1);import*as i2 from"crypto";import*as Ty from"fs";import*as Lp from"path";import*as P0e from"util";var HQ;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(HQ||(HQ={}));var vi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vi||(vi={}));var Ko;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ko||(Ko={}));var r2=2,n2=5e3,n5=5e3,s5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,k0e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,qQ="cache.tar",i5="manifest.txt",Jar=10*Math.pow(1024,3),s2="cache read denied:";var Sy=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())})},nut=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)}},sut="1.0";function _p(){return Sy(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=Lp.join(n,"actions","temp")}let r=Lp.join(e,i2.randomUUID());return yield BD(r),r})}function $A(t){return Ty.statSync(t).size}function o5(t){return Sy(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 M
Line truncated
|
||||
`).map(i=>i.trim());for(let i of s)!i||i.startsWith("#")||n.patterns.push(new vQ(i));return n.searchPaths.push(...N6(n.patterns)),n})}static stat(e,r,n){return P6(this,void 0,void 0,function*(){let s;if(r.followSymbolicLinks)try{s=yield wy.promises.stat(e.path)}catch(i){if(i.code==="ENOENT"){if(r.omitBrokenSymbolicLinks){J(`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 wy.promises.lstat(e.path);if(s.isDirectory()&&r.followSymbolicLinks){let i=yield wy.promises.realpath(e.path);for(;n.length>=e.level;)n.pop();if(n.some(o=>o===i)){J(`Symlink cycle detected for path '${e.path}' and realpath '${i}'`);return}n.push(i)}return s})}};import*as M6 from"crypto";import*as GD from"fs";import*as Mge from"stream";import*as Fge from"util";import*as Lge from"path";var Vot=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())})},jot=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 _ge(t,e){return Vot(this,arguments,void 0,function*(r,n,s=!1){var i,o,a,c,A;let u=s?ie:J,l=!1,d=n||((A=process.env.GITHUB_WORKSPACE)!==null&&A!==void 0?A:process.cwd()),h=M6.createHash("sha256"),f=0;try{for(var m=!0,E=jot(r.globGenerator()),g;g=yield E.next(),i=g.done,!i;m=!0){c=g.value,m=!1;let C=c;if(u(C),!C.startsWith(`${d}${Lge.sep}`)){u(`Ignore '${C}' since it is not under GITHUB_WORKSPACE.`);continue}if(GD.statSync(C).isDirectory()){u(`Skip directory '${C}'.`);continue}let I=M6.createHash("sha256");yield Fge.promisify(Mge.pipeline)(GD.createReadStream(C),I),h.write(I.digest()),f++,l||(l=!0)}}catch(C){o={error:C}}finally{try{!m&&!i&&(a=E.return)&&(yield a.call(E))}finally{if(o)throw o.error}}return h.end(),l?(u(`Found ${f} files to hash.`),h.digest("hex")):(u("No matches found for glob"),"")})}var Uge=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 MQ(t,e){return Uge(this,void 0,void 0,function*(){return yield HD.create(t,e)})}function Oge(t){return Uge(this,arguments,void 0,function*(e,r="",n,s=!1){let i=!0;n&&typeof n.followSymbolicLinks=="boolean"&&(i=n.followSymbolicLinks);let o=yield MQ(e,{followSymbolicLinks:i});return _ge(o,r,s)})}var v0e=xe(D0e(),1);import*as i2 from"crypto";import*as Ty from"fs";import*as Lp from"path";import*as P0e from"util";var HQ;(function(t){t.Gzip="cache.tgz",t.Zstd="cache.tzst"})(HQ||(HQ={}));var vi;(function(t){t.Gzip="gzip",t.ZstdWithoutLong="zstd-without-long",t.Zstd="zstd"})(vi||(vi={}));var Ko;(function(t){t.GNU="gnu",t.BSD="bsd"})(Ko||(Ko={}));var r2=2,n2=5e3,n5=5e3,s5=`${process.env.PROGRAMFILES}\\Git\\usr\\bin\\tar.exe`,k0e=`${process.env.SYSTEMDRIVE}\\Windows\\System32\\tar.exe`,qQ="cache.tar",i5="manifest.txt",jar=10*Math.pow(1024,3),s2="cache read denied:";var Sy=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())})},nut=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)}},sut="1.0";function _p(){return Sy(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=Lp.join(n,"actions","temp")}let r=Lp.join(e,i2.randomUUID());return yield BD(r),r})}function $A(t){return Ty.statSync(t).size}function o5(t){return Sy(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 M
Line truncated
|
||||
`),{implicitDescendants:!1});try{for(var A=!0,u=nut(c.globGenerator()),l;l=yield u.next(),e=l.done,!e;A=!0){s=l.value,A=!1;let h=Lp.relative(a,s).replace(new RegExp(`\\${Lp.sep}`,"g"),"/");J(`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 GQ(t){return Sy(this,void 0,void 0,function*(){return P0e.promisify(Ty.unlink)(t)})}function M0e(t){return Sy(this,arguments,void 0,function*(e,r=[]){let n="";r.push("--version"),J(`Checking ${e} ${r.join(" ")}`);try{yield wD(`${e}`,r,{ignoreReturnCode:!0,silent:!0,listeners:{stdout:s=>n+=s.toString(),stderr:s=>n+=s.toString()}})}catch(s){J(s.message)}return n=n.trim(),J(n),n})}function YQ(){return Sy(this,void 0,void 0,function*(){let t=yield M0e("zstd",["--quiet"]),e=v0e.clean(t);return J(`zstd version: ${e}`),t===""?vi.Gzip:vi.ZstdWithoutLong})}function hf(t){return t===vi.Gzip?HQ.Gzip:HQ.Zstd}function F0e(){return Sy(this,void 0,void 0,function*(){return Ty.existsSync(s5)?s5:(yield M0e("tar")).toLowerCase().includes("gnu tar")?ud("tar"):""})}function a5(t,e){if(e===void 0)throw Error(`Expected ${t} but value was undefiend`);return e}function Ry(t,e,r=!1){let n=t.slice();return e&&n.push(e),process.platform==="win32"&&!r&&n.push("windows-only"),n.push(sut),i2.createHash("sha256").update(n.join("|")).digest("hex")}function L0e(){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 gC from"fs";import{URL as QEt}from"url";var eu=class extends Error{constructor(e){super(e),this.name="AbortError"}};import{EOL as iut}from"node:os";import out from"node:util";import aut from"node:process";function _0e(t,...e){aut.stderr.write(`${out.format(t,...e)}${iut}`)}import zQ from"node:process";function a2(t){return zQ.env[t]}var U0e=typeof zQ.versions.deno=="string"&&zQ.versions.deno.length>0,O0e=typeof zQ.versions.bun=="string"&&zQ.versions.bun.length>0,c2=!0;var H0e=a2("DEBUG"),G0e,c5=[],A5=[],A2=[];H0e&&u5(H0e);var Y0e=Object.assign(t=>z0e(t),{enable:u5,enabled:l5,disable:cut,log:_0e});function u5(t){G0e=t,c5=[],A5=[];let e=t.split(",").map(r=>r.trim());for(let r of e)r.startsWith("-")?A5.push(r.substring(1)):c5.push(r);for(let r of A2)r.enabled=l5(r.namespace)}function l5(t){if(t.endsWith("*"))return!0;for(let e of A5)if(q0e(t,e))return!1;for(let e of c5)if(q0e(t,e))return!0;return!1}function q0e(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 cut(){let t=G0e||"";return u5(""),t}function z0e(t){let e=Object.assign(r,{enabled:l5(t),destroy:Aut,log:Y0e.log,namespace:t,extend:uut});function r(...n){e.enabled&&(n.length>0&&(n[0]=`${t} ${n[0]}`),e.log(...n))}return A2.push(e),e}function Aut(){let t=A2.indexOf(this);return t>=0?(A2.splice(t,1),!0):!1}function uut(t){let e=z0e(`${this.namespace}:${t}`);return e.log=this.log,e}var Dy=Y0e;var d5=["verbose","info","warning","error"],W0e={verbose:400,info:300,warning:200,error:100};function J0e(t,e){e.log=(...r)=>{t.log(...r)}}function V0e(t){return d5.includes(t)}function u2(t){let e=new Set,r=a2(t.logLevelEnvVarName),n,s=Dy(t.namespace);s.log=(...u)=>{Dy.log(...u)};function i(u){if(u&&!V0e(u))throw new Error(`Unknown log level '${u}'. Acceptable values: ${d5.join(",")}`);n=u;let l=[];for(let d of e)o(d)&&l.push(d.namespace);Dy.enable(l.join(","))}r&&(V0e(r)?i(r):console.error(`${t.logLevelEnvVarName} set to unknown log level '${r}'; logging is not enabled. Acceptable values: ${d5.join(", ")}.`));function o(u){return!!(n&&W0e[u.level]<=W0e[n])}function a(u,l){let d=Object.assign(u.extend(l),{level:l});if(J0e(u,d),o(d)){let h=Dy.disable();Dy.enable(h+","+d.namespace)}return e.add(d),d}function c(){return n}function A(u){let l=s.extend(u);return J0e(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 j0e=u2({logLevelEnvVarName:"TYPESPEC_RUNTIME_LOG_LEVEL",namespace:"typeSpecRuntime"}),lut=j0e.logger;function WQ(t){return j0e.createClientLogger(t)}function l2(t){return t.toLowerCase()}function dut(t){return String(t).trim().replace(/[\r\n]/g,"")}function*hut(t){for(let e of t.values())yield[e.name,e.value]}var h5=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(l2(e),{name:e,value:dut(r)})}get(e){return this._headersMap.get(l2(e))?.value}has(e){return this._
Line truncated
|
||||
${gut.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function mf(t){return t instanceof ai?!0:Op(t)&&t.name==="RestError"}function jQ(t,e){return Buffer.from(t).toString(e)}function Pi(t,e){return Buffer.from(t,e)}import g5 from"node:http";import E5 from"node:https";import Z0e from"node:zlib";import{Transform as Eut}from"node:stream";var co=WQ("ts-http-runtime");var yut={};function KQ(t){return t&&typeof t.pipe=="function"}function $0e(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 eye(t){return t&&typeof t.byteLength=="number"}var d2=class extends Eut{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}},y5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new eu("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 qa;co.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=but(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new d2(f);m.on("error",E=>{co.error("Error in upload progress",E)}),KQ(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=Cut(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Iut(A,u):A;let h=e.onDownloadProgress;if(h){let f=new d2(h);f.on("error",m=>{co.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await But(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();KQ(a)&&(A=$0e(a));let u=Promise.resolve();KQ(c)&&(u=$0e(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{co.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?g5.request(a,c):E5.request(a,c);u.once("error",l=>{A(new ai(l.message,{code:l.code??ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new eu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&KQ(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):eye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(co.error("Unrecognized body type",n),A(new ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return E5.globalAgent;let s=e.tlsSettings??yut,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(co.info("No cached TLS Agent exist, creating a new Agent"),i=new E5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Cut(t){let e=ao();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 Iut(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Z0e.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Z0e.createInflate();return t.pipe(n),n}return t}function But(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 ai(`Error reading response as text: ${s.message}`,{code:ai.PARSE_ERROR}))})})}function but(t){return t?Buffer.isBuffer(t)?t.length:KQ(t)?null:eye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function tye(){return new y5}function XQ(){return tye()}var h2="logPolicy";function ZQ(t={}){let e=t.logger??co.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
${gut.sanitize({...this,request:{...this.request,agent:n},response:this.response})}`,enumerable:!1}),Object.setPrototypeOf(this,t.prototype)}};function mf(t){return t instanceof ai?!0:Op(t)&&t.name==="RestError"}function jQ(t,e){return Buffer.from(t).toString(e)}function Pi(t,e){return Buffer.from(t,e)}import g5 from"node:http";import E5 from"node:https";import Z0e from"node:zlib";import{Transform as Eut}from"node:stream";var co=WQ("ts-http-runtime");var yut={};function KQ(t){return t&&typeof t.pipe=="function"}function $0e(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 eye(t){return t&&typeof t.byteLength=="number"}var d2=class extends Eut{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}},y5=class{cachedHttpAgent;cachedHttpsAgents=new WeakMap;async sendRequest(e){let r=new AbortController,n;if(e.abortSignal){if(e.abortSignal.aborted)throw new eu("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 qa;co.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=but(a);A!==null&&e.headers.set("Content-Length",A)}let c;try{if(a&&e.onUploadProgress){let f=e.onUploadProgress,m=new d2(f);m.on("error",E=>{co.error("Error in upload progress",E)}),KQ(a)?a.pipe(m):m.end(a),a=m}let A=await this.makeRequest(e,r,a),u=Cut(A),d={status:A.statusCode??0,headers:u,request:e};if(e.method==="HEAD")return A.resume(),d;c=o?Iut(A,u):A;let h=e.onDownloadProgress;if(h){let f=new d2(h);f.on("error",m=>{co.error("Error in download progress",m)}),c.pipe(f),c=f}return e.streamResponseStatusCodes?.has(Number.POSITIVE_INFINITY)||e.streamResponseStatusCodes?.has(d.status)?d.readableStreamBody=c:d.bodyAsText=await But(c),d}finally{if(s!==void 0&&clearTimeout(s),e.abortSignal&&n){let A=Promise.resolve();KQ(a)&&(A=$0e(a));let u=Promise.resolve();KQ(c)&&(u=$0e(c)),Promise.all([A,u]).then(()=>{n&&e.abortSignal?.removeEventListener("abort",n)}).catch(l=>{co.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?g5.request(a,c):E5.request(a,c);u.once("error",l=>{A(new ai(l.message,{code:l.code??ai.REQUEST_SEND_ERROR,request:e}))}),r.signal.addEventListener("abort",()=>{let l=new eu("The operation was aborted. Rejecting from abort signal callback while making request.");u.destroy(l),A(l)}),n&&KQ(n)?n.pipe(u):n?typeof n=="string"||Buffer.isBuffer(n)?u.end(n):eye(n)?u.end(ArrayBuffer.isView(n)?Buffer.from(n.buffer,n.byteOffset,n.byteLength):Buffer.from(n)):(co.error("Unrecognized body type",n),A(new ai("Unrecognized body type"))):u.end()})}getOrCreateAgent(e,r){let n=e.disableKeepAlive;if(r)return n?g5.globalAgent:(this.cachedHttpAgent||(this.cachedHttpAgent=new g5.Agent({keepAlive:!0})),this.cachedHttpAgent);{if(n&&!e.tlsSettings)return E5.globalAgent;let s=e.tlsSettings??yut,i=this.cachedHttpsAgents.get(s);return i&&i.options.keepAlive===!n||(co.info("No cached TLS Agent exist, creating a new Agent"),i=new E5.Agent({keepAlive:!n,...s}),this.cachedHttpsAgents.set(s,i)),i}}};function Cut(t){let e=ao();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 Iut(t,e){let r=e.get("Content-Encoding");if(r==="gzip"){let n=Z0e.createGunzip();return t.pipe(n),n}else if(r==="deflate"){let n=Z0e.createInflate();return t.pipe(n),n}return t}function But(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 ai(`Error reading response as text: ${s.message}`,{code:ai.PARSE_ERROR}))})})}function but(t){return t?Buffer.isBuffer(t)?t.length:KQ(t)?null:eye(t)?t.byteLength:typeof t=="string"?Buffer.from(t).length:null:0}function tye(){return new y5}function XQ(){return tye()}var h2="logPolicy";function ZQ(t={}){let e=t.logger??co.info,r=new qa({additionalAllowedHeaderNames:t.additionalAllowedHeaderNames,additionalAllowedQueryParameters:t.additi
Line truncated
|
||||
`;return e}function Ylt(t){return t instanceof Uint8Array?t.byteLength:Aw(t)?t.size===-1?void 0:t.size:void 0}function zlt(t){let e=0;for(let r of t){let n=Ylt(r);if(n===void 0)return;e+=n}return e}async function Wlt(t,e,r){let n=[Pi(`--${r}`,"utf-8"),...e.flatMap(i=>[Pi(`\r
|
||||
`,"utf-8"),Pi(Glt(i.headers),"utf-8"),Pi(`\r
|
||||
`,"utf-8"),i.body,Pi(`\r
|
||||
--${r}`,"utf-8")]),Pi(`--\r
|
||||
\r
|
||||
`,"utf-8")],s=zlt(n);s&&t.headers.set("Content-Length",s),t.body=await Jye(n)}var _y="multipartPolicy",Jlt=70,Vlt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jlt(t){if(t.length>Jlt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Vlt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function uw(){return{name:_y,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?jlt(r):r=qlt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wlt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var Vye=u2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),jlr=Vye.logger;function Cs(t){return Vye.createClientLogger(t)}var lw=Cs("core-rest-pipeline");function tCe(){return"User-Agent"}function rCe(){return tCe()}var Udr=rCe();var Pn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function R5(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Pn(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 odt="The delay was aborted.";function ru(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return R5(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??odt})}function gd(t){if(Op(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function k5(t){return Op(t)}function Wa(){return Up()}var ct=c2;function v5(t,e){return jQ(t,e)}function P5(t,e){return Pi(t,e)}var M5=Ly;function Ef(t){return sw(t)}var Uy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function nCe(t={}){let e=new F5(t.parentContext);return t.span&&(e=e.setValue(Uy.span,t.span)),t.namespace&&(e=e.setValue(Uy.namespace,t.namespace)),e}var F5=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var iCe=xe(sCe(),1),v2=iCe.state;function adt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cdt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:adt(),tracingContext:nCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dw(){return v2.instrumenterImplementation||(v2.instrumenterImplementation=cdt()),v2.instrumenterImplementation}function yf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Uy.namespace)||(h=h.setValue(Uy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Uy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return dw().withContext(A,u,...l)}function a(A){return dw().parseTraceparentHeader(A)}function c(A){return dw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function P2(t){return mf(t)}var Gfr=Cs("core-rest-pipeline retryPolicy");var bdt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Qdt(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await ru(e),s=await n();return s}function L5(t,e){let r=null,n=null,s,i={...bdt,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
Line truncated
|
||||
`,"utf-8")],s=zlt(n);s&&t.headers.set("Content-Length",s),t.body=await Jye(n)}var _y="multipartPolicy",Jlt=70,Vlt=new Set("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'()+,-./:=?");function jlt(t){if(t.length>Jlt)throw new Error(`Multipart boundary "${t}" exceeds maximum length of 70 characters`);if(Array.from(t).some(e=>!Vlt.has(e)))throw new Error(`Multipart boundary "${t}" contains invalid characters`)}function uw(){return{name:_y,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?jlt(r):r=qlt(),t.headers.set("Content-Type",`${i}; boundary=${r}`),await Wlt(t,t.multipartBody.parts,r),t.multipartBody=void 0,e(t)}}}var Vye=u2({logLevelEnvVarName:"AZURE_LOG_LEVEL",namespace:"azure"}),Xlr=Vye.logger;function Cs(t){return Vye.createClientLogger(t)}var lw=Cs("core-rest-pipeline");function tCe(){return"User-Agent"}function rCe(){return tCe()}var Hdr=rCe();var Pn=class extends Error{constructor(e){super(e),this.name="AbortError"}};function R5(t,e){let{cleanupBeforeAbort:r,abortSignal:n,abortErrorMsg:s}=e??{};return new Promise((i,o)=>{function a(){o(new Pn(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 odt="The delay was aborted.";function ru(t,e){let r,{abortSignal:n,abortErrorMsg:s}=e??{};return R5(i=>{r=setTimeout(i,t)},{cleanupBeforeAbort:()=>clearTimeout(r),abortSignal:n,abortErrorMsg:s??odt})}function gd(t){if(Op(t))return t.message;{let e;try{typeof t=="object"&&t?e=JSON.stringify(t):e=String(t)}catch{e="[unable to stringify input]"}return`Unknown error ${e}`}}function k5(t){return Op(t)}function Wa(){return Up()}var ct=c2;function v5(t,e){return jQ(t,e)}function P5(t,e){return Pi(t,e)}var M5=Ly;function Ef(t){return sw(t)}var Uy={span:Symbol.for("@azure/core-tracing span"),namespace:Symbol.for("@azure/core-tracing namespace")};function nCe(t={}){let e=new F5(t.parentContext);return t.span&&(e=e.setValue(Uy.span,t.span)),t.namespace&&(e=e.setValue(Uy.namespace,t.namespace)),e}var F5=class t{_contextMap;constructor(e){this._contextMap=e instanceof t?new Map(e._contextMap):new Map}setValue(e,r){let n=new t(this);return n._contextMap.set(e,r),n}getValue(e){return this._contextMap.get(e)}deleteValue(e){let r=new t(this);return r._contextMap.delete(e),r}};var iCe=xe(sCe(),1),v2=iCe.state;function adt(){return{end:()=>{},isRecording:()=>!1,recordException:()=>{},setAttribute:()=>{},setStatus:()=>{},addEvent:()=>{}}}function cdt(){return{createRequestHeaders:()=>({}),parseTraceparentHeader:()=>{},startSpan:(t,e)=>({span:adt(),tracingContext:nCe({parentContext:e.tracingContext})}),withContext(t,e,...r){return e(...r)}}}function dw(){return v2.instrumenterImplementation||(v2.instrumenterImplementation=cdt()),v2.instrumenterImplementation}function yf(t){let{namespace:e,packageName:r,packageVersion:n}=t;function s(A,u,l){let d=dw().startSpan(A,{...l,packageName:r,packageVersion:n,tracingContext:u?.tracingOptions?.tracingContext}),h=d.tracingContext,f=d.span;h.getValue(Uy.namespace)||(h=h.setValue(Uy.namespace,e)),f.setAttribute("az.namespace",h.getValue(Uy.namespace));let m=Object.assign({},u,{tracingOptions:{...u?.tracingOptions,tracingContext:h}});return{span:f,updatedOptions:m}}async function i(A,u,l,d){let{span:h,updatedOptions:f}=s(A,u,d);try{let m=await o(f.tracingOptions.tracingContext,()=>l(f,h));return h.setStatus({status:"success"}),m}catch(m){throw h.setStatus({status:"error",error:m}),m}finally{h.end()}}function o(A,u,...l){return dw().withContext(A,u,...l)}function a(A){return dw().parseTraceparentHeader(A)}function c(A){return dw().createRequestHeaders(A)}return{startSpan:s,withSpan:i,withContext:o,parseTraceparentHeader:a,createRequestHeaders:c}}function P2(t){return mf(t)}var zfr=Cs("core-rest-pipeline retryPolicy");var bdt={forcedRefreshWindowInMs:1e3,retryIntervalInMs:3e3,refreshWindowInMs:1e3*60*2};async function Qdt(t,e,r){async function n(){if(Date.now()<r)try{return await t()}catch{return null}else{let i=await t();if(i===null)throw new Error("Failed to refresh access token.");return i}}let s=await n();for(;s===null;)await ru(e),s=await n();return s}function L5(t,e){let r=null,n=null,s,i={...bdt,...e},o={get isRefreshing(){return r!==null},get shouldRefresh(){return o.isRefreshing?!1:n?.refreshAfterTimestamp&&n.refreshAfterTimestamp<Date.now()?!0:(n?.expiresOnTimestamp??0)-i.refreshWindowInMs<Date.now()},get mustRefresh(){return n===n
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--),!Xht(c)){let l;return c.trim().length===0?l="Invalid space after '<'.":l="Tag '"+c+"' is an invalid name.",Mn("InvalidTag",l,Mi(t,i))}let A=Wht(t,i);if(A===!1)return Mn("InvalidAttr","Attributes for '"+c+"' have open quote.",Mi(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=eIe(u,e);if(d===!0)n=!0;else return Mn(d.err.code,d.err.msg,Mi(t,l+d.err.line))}else if(a)if(A.tagClosed){if(u.trim().length>0)return Mn("InvalidTag","Closing tag '"+c+"' can't have attributes or invalid starting.",Mi(t,o));if(r.length===0)return Mn("InvalidTag","Closing tag '"+c+"' has not been opened.",Mi(t,o));{let l=r.pop();if(c!==l.tagName){let d=Mi(t,l.tagStartPos);return Mn("InvalidTag","Expected closing tag '"+l.tagName+"' (opened in line "+d.line+", col "+d.col+") instead of closing tag '"+c+"'.",Mi(t,o))}r.length==0&&(s=!0)}}else return Mn("InvalidTag","Closing tag '"+c+"' doesn't have proper closing.",Mi(t,i));else{let l=eIe(u,e);if(l!==!0)return Mn(l.err.code,l.err.msg,Mi(t,i-u.length+l.err.line));if(s===!0)return Mn("InvalidXml","Multiple possible root nodes found.",Mi(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=$Ce(t,i);continue}else if(t[i+1]==="?"){if(i=ZCe(t,++i),i.err)return i}else break;else if(t[i]==="&"){let l=jht(t,i);if(l==-1)return Mn("InvalidChar","char '&' is not expected.",Mi(t,i));i=l}else if(s===!0&&!qy(t[i]))return Mn("InvalidXml","Extra text at the end",Mi(t,i));t[i]==="<"&&i--}}else{if(qy(t[i]))continue;return Mn("InvalidChar","char '"+t[i]+"' is not expected.",Mi(t,i))}if(n){if(r.length==1)return Mn("InvalidTag","Unclosed tag '"+r[0].tagName+"'.",Mi(t,r[0].tagStartPos));if(r.length>0)return Mn("InvalidXml","Invalid '"+JSON.stringify(r.map(i=>i.tagName),null,4).replace(/\r?\n/g,"")+"' found.",{line:1,col:1})}else return Mn("InvalidXml","Start tag expected.",1);return!0}function qy(t){return t===" "||t===" "||t===`
|
||||
`||t==="\r"}function ZCe(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 Mn("InvalidXml","XML declaration allowed only at the start of the document.",Mi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function $Ce(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 Yht='"',zht="'";function Wht(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yht||t[e]===zht)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}}function Jht(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&qy(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!qy(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&qy(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&qy(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function eIe(t,e){let r=Jht(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bw(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bw(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Mn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bw(r[s]));let i=r[s][2];if(!Kht(i))return Mn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bw(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Mn("InvalidAttr","Attribute '"+i+"' is repeated.",bw(r[s]))}return!0}function Vht(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 jht(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Vht(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 Mn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kht(t){return mq(t)}function Xht(t){return mq(t)}function Mi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bw(t){return t.startIndex+t[1].length}var pq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Qw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},gq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Gy=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Zht=new Set("!?\\\\/[]$%{}^&*()<>|+");function tIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Zht.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function ww(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var Vp="external",V2="base",Eq="all";function $ht(t){return!t||t===Vp?new Set([Vp]):t===Eq?new Set([Eq]):t===V2?new Set([V2]):Array.isArray(t)?new Set(t):new Set([Vp])}var lo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eft=new Set([9,10,13]);function tft(t){if(!t)return{xmlVersion:1,onLevel:lo.allow,nullLevel:lo.remove};let e=t.xmlVersion===1.1?1.1:1,r=lo[t.onNCR]??lo.allow,n=lo[t.nullNCR]??lo.remove,s=Math.max(n,lo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var Yy=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=$ht(this._limit.applyLimitsTo??Vp),this._numericAllowed=e.numericAllowed??!0,this._baseMap=ww(Qw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`||t==="\r"}function ZCe(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 Mn("InvalidXml","XML declaration allowed only at the start of the document.",Mi(t,e));if(t[e]=="?"&&t[e+1]==">"){e++;break}else continue}return e}function $Ce(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 Yht='"',zht="'";function Wht(t,e){let r="",n="",s=!1;for(;e<t.length;e++){if(t[e]===Yht||t[e]===zht)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}}function Jht(t){let e=[],r=t.length,n=0;for(;n<r;){let s=n;for(;n<r&&qy(t[n]);)n++;if(n>=r)break;if(t[n]==="="){n=s+1;continue}let i=t.slice(s,n),o=n;for(;n<r&&!qy(t[n])&&t[n]!=="=";)n++;let a=t.slice(o,n),c,A=n;for(;A<r&&qy(t[A]);)A++;A<r&&t[A]==="="&&(c=t.slice(n,A+1),n=A+1);let u,l,d=n;for(;d<r&&qy(t[d]);)d++;if(d<r&&(t[d]==='"'||t[d]==="'")){let f=d+1,m=t.indexOf(t[d],f);m!==-1&&(u=t[d],l=t.slice(f,m),n=m+1)}let h={startIndex:s};h[1]=i,h[2]=a,h[3]=c,h[4]=u!==void 0?!0:void 0,h[5]=u,h[6]=l,e.push(h)}return e}function eIe(t,e){let r=Jht(t),n={};for(let s=0;s<r.length;s++){if(r[s][1].length===0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' has no space in starting.",bw(r[s]));if(r[s][3]!==void 0&&r[s][4]===void 0)return Mn("InvalidAttr","Attribute '"+r[s][2]+"' is without value.",bw(r[s]));if(r[s][3]===void 0&&!e.allowBooleanAttributes)return Mn("InvalidAttr","boolean attribute '"+r[s][2]+"' is not allowed.",bw(r[s]));let i=r[s][2];if(!Kht(i))return Mn("InvalidAttr","Attribute '"+i+"' is an invalid name.",bw(r[s]));if(!Object.prototype.hasOwnProperty.call(n,i))n[i]=1;else return Mn("InvalidAttr","Attribute '"+i+"' is repeated.",bw(r[s]))}return!0}function Vht(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 jht(t,e){if(e++,t[e]===";")return-1;if(t[e]==="#")return e++,Vht(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 Mn(t,e,r){return{err:{code:t,msg:e,line:r.line||r,col:r.col}}}function Kht(t){return mq(t)}function Xht(t){return mq(t)}function Mi(t,e){let r=t.substring(0,e).split(/\r?\n/);return{line:r.length,col:r[r.length-1].length+1}}function bw(t){return t.startIndex+t[1].length}var pq={cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",euro:"\u20AC",dollar:"$",fnof:"\u0192",inr:"\u20B9",af:"\u060B",birr:"\u1265\u122D",peso:"\u20B1",rub:"\u20BD",won:"\u20A9",yuan:"\xA5",cedil:"\xB8"};var Qw={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'},gq={nbsp:"\xA0",copy:"\xA9",reg:"\xAE",trade:"\u2122",mdash:"\u2014",ndash:"\u2013",hellip:"\u2026",laquo:"\xAB",raquo:"\xBB",lsquo:"\u2018",rsquo:"\u2019",ldquo:"\u201C",rdquo:"\u201D",bull:"\u2022",para:"\xB6",sect:"\xA7",deg:"\xB0",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE"};var Gy=Object.freeze({ALLOW:"allow",BLOCK:"block",THROW:"throw"}),Zht=new Set("!?\\\\/[]$%{}^&*()<>|+");function tIe(t){if(t[0]==="#")throw new Error(`[EntityReplacer] Invalid character '#' in entity name: "${t}"`);for(let e of t)if(Zht.has(e))throw new Error(`[EntityReplacer] Invalid character '${e}' in entity name: "${t}"`);return t}function ww(...t){let e=Object.create(null);for(let r of t)if(r)for(let n of Object.keys(r)){let s=r[n];if(typeof s=="string")e[n]=s;else if(s&&typeof s=="object"&&s.val!==void 0){let i=s.val;typeof i=="string"&&(e[n]=i)}}return e}var Vp="external",V2="base",Eq="all";function $ht(t){return!t||t===Vp?new Set([Vp]):t===Eq?new Set([Eq]):t===V2?new Set([V2]):Array.isArray(t)?new Set(t):new Set([Vp])}var lo=Object.freeze({allow:0,leave:1,remove:2,throw:3}),eft=new Set([9,10,13]);function tft(t){if(!t)return{xmlVersion:1,onLevel:lo.allow,nullLevel:lo.remove};let e=t.xmlVersion===1.1?1.1:1,r=lo[t.onNCR]??lo.allow,n=lo[t.nullNCR]??lo.remove,s=Math.max(n,lo.remove);return{xmlVersion:e,onLevel:r,nullLevel:s}}var Yy=class{constructor(e={}){this._limit=e.limit||{},this._maxTotalExpansions=this._limit.maxTotalExpansions||0,this._maxExpandedLength=this._limit.maxExpandedLength||0,this._postCheck=typeof e.postCheck=="function"?e.postCheck:n=>n,this._limitTiers=$ht(this._limit.applyLimitsTo??Vp),this._numericAllowed=e.numericAllowed??!0,this._baseMap=ww(Qw,e.namedEntities||null),this._externalMap=Object.create(null),this._inputMap=Object.create(null),this._totalExpansions=0,this._expandedLength=0,this._removeSet=new Set(e.remove&&Array.isArray(e.remove)?e.remove:[]),this._leaveSet=new Set(e.le
Line truncated
|
||||
`);let e=new ho("!xml"),r=e,n="";this.matcher.reset(),this.entityDecoder.reset(),this.entityExpansionCount=0,this.currentExpandedLength=0,this.doctypefound=!1;let s=this.options,i=new xw(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=jy(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=Dq(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()||e,s.captureMetaData&&r&&r.addEndIndex(u+1),n="",a=u}else if(A===63){let u=kq(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 ho(u.tagName);d.add(s.textNodeName,""),u.tagName!==u.tagExp&&u.attrExpPresent&&s.ignoreAttributes!==!0&&(d[":@"]=l),this.addChild(r,d,this.readonlyMatcher,a),s.captureMetaData&&r.addEndIndex(u.closeIndex+2)}a=u.closeIndex+1}else if(A===33&&t.charCodeAt(a+2)===45&&t.charCodeAt(a+3)===45){let u=jy(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){if(this.doctypefound)throw new Error("Multiple DOCTYPE declarations found.");this.doctypefound=!0;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=jy(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=kq(t,a,s.removeNSPrefix);if(!u){let W=t.substring(Math.max(0,a-50),Math.min(o,a+50));throw new Error(`readTagExp returned undefined at position ${a}. Context: "${W}"`)}let l=u.tagName,d=u.rawTagName,h=u.tagExp,f=u.attrExpPresent,m=u.closeIndex;if({tagName:l,tagExp:h}=Dq(s.transformTagName,l,h,s),s.strictReservedNames&&(l===s.commentPropName||l===s.cdataPropName||l===s.textNodeName||l===s.attributesGroupName))throw new Error(`Invalid tag name: ${l}`);r&&n&&r.tagname!=="!xml"&&(n=this.saveTextToParentTag(n,r,this.readonlyMatcher,!1));let E=r;E&&s.unpairedTagsSet.has(E.tagname)&&(r=this.tagsNodeStack.pop(),this.matcher.pop());let g=!1;h.length>0&&h.lastIndexOf("/")===h.length-1&&(g=!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,I={},B;B=Lft(d),l!==e.tagname&&this.matcher.push(l,{},B),l!==h&&f&&(C=this.buildAttributesMap(h,this.matcher,l),C&&(I=Fft(C,s))),l!==e.tagname&&(this.isCurrentNodeStopNode=this.isItStopNode());let M=a;if(this.isCurrentNodeStopNode){let W="";if(g)a=u.closeIndex;else if(s.unpairedTagsSet.has(l))a=u.closeIndex;else{let H=this.readStopNodeData(t,d,m+1);if(!H)throw new Error(`Unexpected end of ${d}`);a=H.i,W=H.tagContent}let F=new ho(l);C&&(F[":@"]=C),F.add(s.textNodeName,W),this.matcher.pop(),this.isCurrentNodeStopNode=!1,this.addChild(r,F,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(a+1)}else{if(g){({tagName:l,tagExp:h}=Dq(s.transformTagName,l,h,s));let W=new ho(l);C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(m+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1}else if(s.unpairedTagsSet.has(l)){let W=new ho(l);C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),s.captureMetaData&&r.addEndIndex(u.closeIndex+1),this.matcher.pop(),this.isCurrentNodeStopNode=!1,a=u.closeIndex;continue}else{let W=new ho(l);if(this.tagsNodeStack.length>s.maxNestedTags)throw new Error("Maximum nested tags exceeded");this.tagsNodeStack.push(r),C&&(W[":@"]=C),this.addChild(r,W,this.readonlyMatcher,M),r=W}n="",a=m}}}else n+=t[a];return e.child};function Gft(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 Yft(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 zft(t,e,Line truncated
|
||||
`;function tmt(t,e){if(!Array.isArray(t)||t.length===0)return"1.0";let r=t[0];if(_q(r)==="?xml"){let s=r[":@"];if(s){let i=e.attributeNamePrefix+"version";if(s[i])return s[i]}}return"1.0"}function CIe(t,e,r,n,s){return!r.sanitizeName||s(t)?t:r.sanitizeName(t,{isAttribute:e,matcher:n.readOnly()})}function Lq(t,e){let r="";e.format&&(r=emt);let n=[];if(e.stopNodes&&Array.isArray(e.stopNodes))for(let a=0;a<e.stopNodes.length;a++){let c=e.stopNodes[a];typeof c=="string"?n.push(new Zo(c)):c instanceof Zo&&n.push(c)}let s=tmt(t,e),i=j2("qName",{xmlVersion:s}),o=new ou;return IIe(t,e,r,o,n,i)}function IIe(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=Js(t);return c=Fq(c,e),c}return""}for(let c=0;c<t.length;c++){let A=t[c],u=_q(A);if(u===void 0)continue;let d=u===e.textNodeName||u===e.cdataPropName||u===e.commentPropName||u[0]==="?"?u:CIe(u,!1,e,n,i),h=rmt(A[":@"],e);n.push(d,h);let f=smt(n,s);if(d===e.textNodeName){let I=A[u];f||(I=e.tagValueProcessor(d,I),I=Fq(I,e)),I=Js(I),a&&(o+=r),o+=I,a=!1,n.pop();continue}else if(d===e.cdataPropName){a&&(o+=r);let I=A[u][0][e.textNodeName],B=ek(I);o+=`<![CDATA[${B}]]>`,a=!1,n.pop();continue}else if(d===e.commentPropName){let I=A[u][0][e.textNodeName],B=Rw(I);o+=r+`<!--${B}-->`,a=!0,n.pop();continue}else if(d[0]==="?"){let I=yIe(A[":@"],e,f,n,i);o+=(d==="?xml"?"":r)+`<${d}${I}?>`,a=!0,n.pop();continue}let m=r;m!==""&&(m+=e.indentBy);let E=yIe(A[":@"],e,f,n,i),g=r+`<${d}${E}`,C;f?C=BIe(A[u],e):C=IIe(A[u],e,m,n,s,i),e.unpairedTags.indexOf(d)!==-1?e.suppressUnpairedNode?o+=g+">":o+=g+"/>":(!C||C.length===0)&&e.suppressEmptyNode?o+=g+"/>":C&&C.endsWith(">")?o+=g+`>${C}${r}</${d}>`:(o+=g+">",C&&r!==""&&(C.includes("/>")||C.includes("</"))?o+=r+e.indentBy+C+r:o+=C,o+=`</${d}>`),a=!0,n.pop()}return o}function rmt(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]=au(t[s]),n=!0}return n?r:null}function BIe(t,e){if(!Array.isArray(t))return t!=null?Js(t):"";let r="";for(let n=0;n<t.length;n++){let s=t[n],i=_q(s);if(i===e.textNodeName)r+=Js(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=nmt(s[":@"],e),a=BIe(s[i],e);!a||a.length===0?r+=`<${i}${o}/>`:r+=`<${i}${o}>${a}</${i}>`}}}return r}function nmt(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)}="${au(s)}"`}return r}function _q(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 yIe(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:CIe(a,!0,e,n,s),A;r?A=t[o]:(A=e.attributeValueProcessor(o,t[o]),A=Fq(A,e)),A===!0&&e.suppressBooleanAttributes?i+=` ${c}`:i+=` ${c}="${au(A)}"`}return i}function smt(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 Fq(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 Uq(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 imt={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 mo(t){if(this.options=Object.assign({},imt,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 Zo(r)):r instanceof Zo&&this.stopNodeExpressions.push(r)}this.options.ignoreAttributes===!0||this.options.attributesGroupName?this.isAttribute=function(){return!1}:Line truncated
|
||||
`,this.newLine=`
|
||||
@@ -282,7 +282,7 @@ ${l}:${decodeURIComponent(A[l])}`}return a}return{name:Mmt,async sendRequest(i,o
|
||||
`),o=e.computeHMACSHA256(i);return{sasQueryParameters:new AA(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 ig(t,e,r){let n=[`/blob/${t}/${e}`];return r&&n.push(`/${r}`),n.join("")}function og(t){let e=t.version?t.version:Ek;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 Vw=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=Wa()),this._leaseId=r}async acquireLease(e,r={}){if(this._isContainer&&(r.conditions?.ifMatch&&r.conditions?.ifMatch!==sA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-acquireLease",r,async n=>Ge(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!==sA||r.conditions?.ifNoneMatch&&r.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-changeLease",r,async n=>{let s=Ge(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!==sA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sA||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 De.withSpan("BlobLeaseClient-releaseLease",e,async r=>Ge(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!==sA||e.conditions?.ifNoneMatch&&e.conditions?.ifNoneMatch!==sA||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 De.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"}};mC.isNetworkErrorCode=t=>t?["ECONNRESET","ENOTFOUND","ETIMEDOUT","ECONNREFUSED","EHOSTUNREACH"].includes(t):!1;var Ag=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"}};Ag.isUsageErrorMessage=t=>t?t.includes("insufficient usage"):!1;var tN=class extends Error{constructor(e){super(e),this.name="RateLimitError"}};var mEt=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())})},Iz=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);ie(`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 tbe(t,e,r){return mEt(this,void 0,void 0,function*(){var n;let s=new Td(t),i=s.getBlockBlobClient(),o=new Iz((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(),J(`BlobClient: ${s.name}:${s.accountName}:${s.containerName}`);let c=yield i.uploadFile(e,a);if(c._response.status>=400)throw new hv(`uploadCacheArchiveSDK: upload failed with status code ${c._response.status}`);return c}catch(c){throw at(`uploadCacheArchiveSDK: internal error uploading cache archive: ${c.message}`),c}finally{o.stopDisplayTimer()}})}import*as nbe from"buffer";import*as Nu from"fs";import*as sbe from"stream";import*as ibe from"util";var fv=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 mv(t){return t?t>=200&&t<300:!1}function pEt(t){return t?t>=500:!0}function gEt(t){return t?[Br.BadGateway,Br.ServiceUnavailable,Br.GatewayTimeout].includes(t):!1}function EEt(t){return fv(this,void 0,void 0,function*(){return new Promise(e=>setTimeout(e,t))})}function rbe(t,e,r){return fv(this,arguments,void 0,function*(n,s,i,o=r2,a=n2,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),!pEt(d)))return l;if(d&&(h=gEt(d),A=`Cache service responded with ${d}`),J(`${n} - Attempt ${u} of ${o} failed with error: ${A}`),!h){J(`${n} - Error is not retryable`);break}yield EEt(a),u++}throw Error(`${n} failed: ${A}`)})}function rN(t,e){return fv(this,arguments,void 0,function*(r,n,s=r2,i=n2){return yield rbe(r,n,o=>o.statusCode,s,i,o=>{if(o instanceof VA)return{statusCode:o.statusCode,result:null,headers:{},error:o}})})}function pC(t,e){return fv(this,arguments,void 0,function*(r,n,s=r2,i=n2){return yield rbe(r,n,o=>o.message.statusCode,s,i)})}var Za=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 yEt(t,e){return Za(this,void 0,void 0,function*(){yield ibe.promisify(sbe.pipeline)(t.message,e)})}var pv=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,J(`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);ie(`Received ${e} of ${this.contentLength} (${r}%), ${s} MBs/sec`),this.isDone()&&(this.displayedComplete=!0)}onProgress(){return e=>{this.setReceivedBytes(e.loadedBytes)}}startDisplayTimer(e=1e
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])J(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function Nz(t,e,r){return yo(this,void 0,void 0,function*(){let n=new QEt(t),s=Abe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield abe(t,e,s):s.concurrentBlobDownloads?yield obe(t,e,s):yield gv(t,e):yield gv(t,e)})}function ybe(t,e,r){return yo(this,void 0,void 0,function*(){let n=wz(),s=Ry(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield rN("reserveCache",()=>yo(this,void 0,void 0,function*(){return n.postJson(sN("caches"),i)}))})}function gbe(t,e){return`bytes ${t}-${e}/*`}function SEt(t,e,r,n,s){return yo(this,void 0,void 0,function*(){J(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gbe(n,s)},o=yield pC(`uploadChunk (start: ${n}, end: ${s})`,()=>yo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!mv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function TEt(t,e,r,n){return yo(this,void 0,void 0,function*(){let s=$A(r),i=sN(`caches/${e.toString()}`),o=gC.openSync(r,"r"),a=Bz(n),c=a5("uploadConcurrency",a.uploadConcurrency),A=a5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];J("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>yo(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 SEt(t,i,()=>gC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{gC.closeSync(o)}})}function REt(t,e,r){return yo(this,void 0,void 0,function*(){let n={size:r};return yield rN("commitCache",()=>yo(this,void 0,void 0,function*(){return t.postJson(sN(`caches/${e.toString()}`),n)}))})}function xz(t,e,r,n){return yo(this,void 0,void 0,function*(){if(Bz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield tbe(r,e,n)}else{let i=wz();J("Upload cache"),yield TEt(i,t,e,n),J("Commiting cache");let o=$A(e);ie(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield REt(i,t,o);if(!mv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ie("Cache saved successfully")}})}var dQe=xe(EW(),1),_n=xe(St(),1),sa=xe(St(),1),fg=xe(St(),1),mg=xe(St(),1),pg=xe(St(),1);var BW=xe(St(),1),bW=xe(St(),1),AQe=xe(St(),1),uQe=xe(St(),1),lQe=xe(St(),1);var yW=xe(St(),1),CW=xe(St(),1),oQe=xe(St(),1),aQe=xe(St(),1),cQe=xe(St(),1),IW=class extends cQe.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,aQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oQe.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?CW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,yW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,yW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?CW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},sP=new IW;var QW=class extends lQe.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:()=>sP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,uQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,AQe.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(sP.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?bW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,BW.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)sP.internalBinaryWrite(e.scope[i],r.tag(2,BW.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?bW.UnknownFieldHandler.onWrite
Line truncated
|
||||
Other caches with similar key:`);for(let a of i?.artifactCaches||[])J(`Cache Key: ${a?.cacheKey}, Cache Version: ${a?.cacheVersion}, Cache Scope: ${a?.scope}, Cache Created: ${a?.creationTime}`)}}})}function Nz(t,e,r){return yo(this,void 0,void 0,function*(){let n=new QEt(t),s=Abe(r);n.hostname.endsWith(".blob.core.windows.net")?s.useAzureSdk?yield abe(t,e,s):s.concurrentBlobDownloads?yield obe(t,e,s):yield gv(t,e):yield gv(t,e)})}function ybe(t,e,r){return yo(this,void 0,void 0,function*(){let n=wz(),s=Ry(e,r?.compressionMethod,r?.enableCrossOsArchive),i={key:t,version:s,cacheSize:r?.cacheSize};return yield rN("reserveCache",()=>yo(this,void 0,void 0,function*(){return n.postJson(sN("caches"),i)}))})}function gbe(t,e){return`bytes ${t}-${e}/*`}function SEt(t,e,r,n,s){return yo(this,void 0,void 0,function*(){J(`Uploading chunk of size ${s-n+1} bytes at offset ${n} with content range: ${gbe(n,s)}`);let i={"Content-Type":"application/octet-stream","Content-Range":gbe(n,s)},o=yield pC(`uploadChunk (start: ${n}, end: ${s})`,()=>yo(this,void 0,void 0,function*(){return t.sendStream("PATCH",e,r(),i)}));if(!mv(o.message.statusCode))throw new Error(`Cache service responded with ${o.message.statusCode} during upload chunk.`)})}function TEt(t,e,r,n){return yo(this,void 0,void 0,function*(){let s=$A(r),i=sN(`caches/${e.toString()}`),o=gC.openSync(r,"r"),a=Bz(n),c=a5("uploadConcurrency",a.uploadConcurrency),A=a5("uploadChunkSize",a.uploadChunkSize),u=[...new Array(c).keys()];J("Awaiting all uploads");let l=0;try{yield Promise.all(u.map(()=>yo(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 SEt(t,i,()=>gC.createReadStream(r,{fd:o,start:h,end:f,autoClose:!1}).on("error",m=>{throw new Error(`Cache upload failed because file read failed with ${m.message}`)}),h,f)}})))}finally{gC.closeSync(o)}})}function REt(t,e,r){return yo(this,void 0,void 0,function*(){let n={size:r};return yield rN("commitCache",()=>yo(this,void 0,void 0,function*(){return t.postJson(sN(`caches/${e.toString()}`),n)}))})}function xz(t,e,r,n){return yo(this,void 0,void 0,function*(){if(Bz(n).useAzureSdk){if(!r)throw new Error("Azure Storage SDK can only be used when a signed URL is provided.");yield tbe(r,e,n)}else{let i=wz();J("Upload cache"),yield TEt(i,t,e,n),J("Commiting cache");let o=$A(e);ie(`Cache Size: ~${Math.round(o/(1024*1024))} MB (${o} B)`);let a=yield REt(i,t,o);if(!mv(a.statusCode))throw new Error(`Cache service responded with ${a.statusCode} during commit cache.`);ie("Cache saved successfully")}})}var dQe=xe(EW(),1),_n=xe(St(),1),sa=xe(St(),1),fg=xe(St(),1),mg=xe(St(),1),pg=xe(St(),1);var BW=xe(St(),1),bW=xe(St(),1),AQe=xe(St(),1),uQe=xe(St(),1),lQe=xe(St(),1);var yW=xe(St(),1),CW=xe(St(),1),oQe=xe(St(),1),aQe=xe(St(),1),cQe=xe(St(),1),IW=class extends cQe.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,aQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,oQe.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?CW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.scope!==""&&r.tag(1,yW.WireType.LengthDelimited).string(e.scope),e.permission!=="0"&&r.tag(2,yW.WireType.Varint).int64(e.permission);let s=n.writeUnknownFields;return s!==!1&&(s==!0?CW.UnknownFieldHandler.onWrite:s)(this.typeName,e,r),r}},sP=new IW;var QW=class extends lQe.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:()=>sP}])}create(e){let r={repositoryId:"0",scope:[]};return globalThis.Object.defineProperty(r,uQe.MESSAGE_TYPE,{enumerable:!1,value:this}),e!==void 0&&(0,AQe.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(sP.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?bW.UnknownFieldHandler.onRead:A)(this.typeName,i,a,c,u)}}return i}internalBinaryWrite(e,r,n){e.repositoryId!=="0"&&r.tag(1,BW.WireType.Varint).int64(e.repositoryId);for(let i=0;i<e.scope.length;i++)sP.internalBinaryWrite(e.scope[i],r.tag(2,BW.WireType.LengthDelimited).fork(),n).join();let s=n.writeUnknownFields;return s!==!1&&(s==!0?bW.UnknownFieldHandler.onWrite
Line truncated
|
||||
`));let{commands:n}=yield mQe(r,"create");yield gQe(n,t)})}var vC=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())})},dA=class t extends Error{constructor(e){super(e),this.name="ValidationError",Object.setPrototypeOf(this,t.prototype)}},gg=class t extends Error{constructor(e){super(e),this.name="ReserveCacheError",Object.setPrototypeOf(this,t.prototype)}},qW="cache write denied:",aP=class t extends gg{constructor(e){super(e),this.name="CacheWriteDeniedError",Object.setPrototypeOf(this,t.prototype)}},yQe=s2,cP=class t extends Error{constructor(e){super(e),this.name="CacheReadDeniedError",Object.setPrototypeOf(this,t.prototype)}},AP=class t extends Error{constructor(e){super(e),this.name="FinalizeCacheError",Object.setPrototypeOf(this,t.prototype)}};function CQe(t){if(!t||t.length===0)throw new dA("Path Validation Error: At least one directory or file path is required")}function GW(t){if(t.length>512)throw new dA(`Key Validation Error: ${t} cannot be larger than 512 characters.`);if(!/^[^,]*$/.test(t))throw new dA(`Key Validation Error: ${t} cannot contain commas.`)}function IQe(){return nN()==="v2"?!!process.env.ACTIONS_RESULTS_URL:!!process.env.ACTIONS_CACHE_URL}function BQe(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){let A=nN();J(`Cache service version: ${A}`),CQe(s);let u=Qz();if(!lbe(u)){ie(`Cache restore skipped: the effective cache-mode '${u}' does not permit reads.`),J(`Skipped restore for paths [${s.join(", ")}] with primary key '${i}'.`);return}return A==="v2"?yield Jyt(s,i,o,a,c):yield Wyt(s,i,o,a,c)})}function Wyt(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new dA("Key Validation Error: Keys are limited to a maximum of 10.");for(let h of u)GW(h);let l=yield YQ(),d="";try{let h;try{h=yield Ebe(u,s,{compressionMethod:l,enableCrossOsArchive:c})}catch(m){let E=(A=m?.message)!==null&&A!==void 0?A:"";throw E.includes(yQe)?new cP(E):m}if(!h?.archiveLocation)return;if(a?.lookupOnly)return ie("Lookup only - skipping download"),h.cacheKey;d=CN.join(yield _p(),hf(l)),J(`Archive Path: ${d}`),yield Nz(h.archiveLocation,d,a),sf()&&(yield yN(d,l));let f=$A(d);return ie(`Cache Size: ~${Math.round(f/(1024*1024))} MB (${f} B)`),yield OW(d,l),ie("Cache restored successfully"),h.cacheKey}catch(h){let f=h;if(f.name===dA.name)throw h;f instanceof VA&&typeof f.statusCode=="number"&&f.statusCode>=500?La(`Failed to restore: ${h.message}`):at(`Failed to restore: ${h.message}`)}finally{try{yield GQ(d)}catch(h){J(`Failed to delete archive: ${h}`)}}})}function Jyt(t,e,r,n){return vC(this,arguments,void 0,function*(s,i,o,a,c=!1){var A;a=Object.assign(Object.assign({},a),{useAzureSdk:!0}),o=o||[];let u=[i,...o];if(J("Resolved Keys:"),J(JSON.stringify(u)),u.length>10)throw new dA("Key Validation Error: Keys are limited to a maximum of 10.");for(let d of u)GW(d);let l="";try{let d=_W(),h=yield YQ(),f={key:i,restoreKeys:o,version:Ry(s,h,c)},m;try{m=yield d.GetCacheEntryDownloadURL(f)}catch(C){let I=(A=C?.message)!==null&&A!==void 0?A:"";throw I.includes(yQe)?new cP(I):C}if(!m.ok){J(`Cache not found for version ${f.version} of keys: ${u.join(", ")}`);return}if(f.key!==m.matchedKey?ie(`Cache hit for restore-key: ${m.matchedKey}`):ie(`Cache hit for: ${m.matchedKey}`),a?.lookupOnly)return ie("Lookup only - skipping download"),m.matchedKey;l=CN.join(yield _p(),hf(h)),J(`Archive path: ${l}`),J(`Starting download of archive to: ${l}`),yield Nz(m.signedDownloadUrl,l,a);let g=$A(l);return ie(`Cache Size: ~${Math.round(g/(1024*1024))} MB (${g} B)`),sf()&&(yield yN(l,h)),yield OW(l,h),ie("Cache restored successfully"),m.matchedKey}catch(d){let h=d;if(h.name===dA.name)throw d;h instanceof VA&&typeof h.statusCode=="number"&&h.statusCode>=500?La(`Failed to restore: ${d.message}`):at(`Failed to restore: ${d.message}`)}finally{try{l&&(yield GQ(l))}catch(d){J(`Failed to delete archive: ${d}`)}}})}function bQe(t,e,r){return vC(this,arguments,void 0,function*(n,s,i,o=!1){let a=nN();J(`Cache service version: ${a}`),CQe(n),GW(s);let c=Qz();return dbe(c)?a==="v2"?yield jyt(n,s,i,o):yield Vyt(n,s,i,o):(ie(`Cache save skipped: the effective cache-mode '${c}' does not permit writes.`),J(`Skipped save for paths [${n.join(", ")}] with key '${s}'.`),-1)})}function Vyt(t,e,r){return vC(this,arguments,void 0,function*(n,s,i,o=!1){var a,c,A,u,l,d;let h=yield YQ(),f=-1,m=yield o5(n);if(J("Cache Paths:"),J(`${JSON.stringify(m)}`),m.length===0)throw new Error("Path Validation Error: Path(s) specified in the action for caching do(es) not exist, hence no cache is being saved.");let E=yield _p(),g=CN.join(E,hf(h));J(`Archive Path: ${g}`);try{yield HW(E,m,h),sf()&&(yield yN(g,h));let C=10*10
Line truncated
|
||||
${r.join(`
|
||||
`)}
|
||||
@@ -344,14 +344,14 @@ This job uses deprecated functionality from the <code>${IN()}</code> action. Fol
|
||||
}
|
||||
}
|
||||
`,A=a.filter(u=>!u.isMinimized&&u.body.includes(r)).map(async u=>n.graphql(c,{id:u.id}).then(()=>ie(`Successfully minimized (id:${u.id}, url:${u.url})`)).catch(l=>at(`Failed to minimize (id:${u.id}, url:${u.url}, error:${l?.message||l})`)));await Promise.allSettled(A)}function qQe(t){return`<!-- gradle-job-summary: ${MC.constructJobCorrelator(t.workflow,t.job,zW())} -->`}var GQe=class t{constructor(e){this.keys=e}static of(e){return new t(e)}static{this.keyDelimiter=";"}static{this.hostDelimiter="="}static{this.whitespace=/\s/}static parse(e){let r=e.trim();if(!r)return null;let n=new Array,s=r.split(this.keyDelimiter);for(let[i,o]of s.entries()){let a=o.indexOf(this.hostDelimiter);if(a===-1)return this.warnBadlyFormed(i,s.length,`no '${this.hostDelimiter}' separator`);let c=o.substring(0,a),A=o.substring(a+1);if(!c)return this.warnBadlyFormed(i,s.length,"empty server name");if(!A)return this.warnBadlyFormed(i,s.length,"empty key");if(this.whitespace.test(c))return this.warnBadlyFormed(i,s.length,"whitespace in the server name");if(this.whitespace.test(A))return this.warnBadlyFormed(i,s.length,"whitespace in the key");n.push({hostname:c,key:A})}return new t(n)}static warnBadlyFormed(e,r,n){let s=r>1?`entry ${e+1} of ${r}`:"the value";return at(`Ignoring badly formed Develocity access key: ${n} in ${s}. The expected format is 'server${this.hostDelimiter}key[${this.keyDelimiter}server${this.hostDelimiter}key]*'.`),null}isEmpty(){return this.keys.length===0}raw(){return this.keys.map(e=>`${e.hostname}${t.hostDelimiter}${e.key}`).join(t.keyDelimiter)}};import*as rc from"fs";import*as Dd from"path";function YQe(){return WQe().map(e=>{let r=rc.readFileSync(e,"utf8"),n=JSON.parse(r);return CCt(e,n),n})}function zQe(){WQe().forEach(BCt)}function WQe(){let t=Dd.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-results");return rc.existsSync(t)?rc.readdirSync(t).map(e=>Dd.resolve(t,e)).filter(e=>Dd.extname(e)===".json"&&!ICt(e)):[]}function CCt(t,e){let r=Dd.resolve(process.env.RUNNER_TEMP,".gradle-actions","build-scans");if(!rc.existsSync(r))return;let n=Dd.resolve(r,Dd.basename(t));if(rc.existsSync(n)){let s=rc.readFileSync(n,"utf8"),i=JSON.parse(s);Object.assign(e,i)}}function ICt(t){let e=`${t}.processed`;return rc.existsSync(e)}function BCt(t){let e=`${t}.processed`;rc.writeFileSync(e,"")}import*as XQe from"fs";import*as ZQe from"path";import{pathToFileURL as NCt}from"url";import*as KW from"path";var bCt="Gradle User Home",JQe="BASIC_CACHE_PRIMARY_KEY",VQe="BASIC_CACHE_RESTORED_KEY",QCt="setup-java",jQe=["**/*.gradle*","**/gradle-wrapper.properties","buildSrc/**/Versions.kt","buildSrc/**/Dependencies.kt","gradle/*.versions.toml","**/versions.properties"],mP=class{async restore(e,r){let n=KQe(e),s=await wCt();bQ(JQe,s);try{let i=await BQe(n,s);i?(bQ(VQe,i),ie(`Basic caching restored from cache key: ${i}`)):ie("Basic caching did not find an entry to restore. Will start with empty state.")}catch(i){at(`Basic caching failed to restore from cache: ${i}`)}}async save(e,r,n){let s=XA(JQe),i=XA(VQe);if(n.readOnly)return{status:"read-only",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: cache is read-only)"})]};if(i===s)return ie(`Basic caching restored entry with key \`${s}\`. Save was skipped.`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:"(Entry restored: exact match found)",savedOutcome:"(Entry not saved: entry with key already exists)"})]};let o=KQe(e);try{return await bQe(o,s)===-1?(at(`Basic caching failed to save entry with key \`${s}\`. See preceding log output for the cause.`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry not saved: save failed)"})]}):(ie(`Basic caching saved entry with key: ${s}`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,savedKey:s,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:"(Entry saved)"})]})}catch(a){return at(`Basic caching failed to save entry with key \`${s}\`: ${a}`),{status:"enabled",entries:[xN({primaryKey:s,restoredKey:i,restoredOutcome:i?"(Entry restored: exact match found)":"(Entry not restored: no match found)",savedOutcome:`(Entry not saved: ${a})`})]}}}};function xN(t){return{entryName:bCt,requestedKey:t.primaryKey||void 0,restoredKey:t.restoredKey||void 0,restoredOutcome:t.restoredOutcome,savedKey:t.savedKey||void 0,savedOutcome:t.savedOutcome}}function KQe(t){return[KW.join(t,"caches"),KW.join(t,"wrapper")]}async function wCt(){let t=await Oge(jQe.join(`
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${jQe}], make sure you have checked out the target repository`);return`${QCt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var xCt="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.",SCt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",TCt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",gP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function $Qe(t){return t.getCacheProvider()==="external"?(pP(TCt),new gP("external")):t.isCacheDisabled()?(pP("Cache is disabled: will not restore state from previous builds."),new gP("disabled")):t.getCacheProvider()==="basic"?(pP(SCt),new mP):(pP(xCt),RCt())}function ewe(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function RCt(){let t=DCt();return await import(NCt(t).href)}function DCt(){let t=import.meta.dirname,e=ZQe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(XQe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function pP(t){console.info(t)}import*as iwe from"util";var _Ct=xe(swe(),1);import*as XW from"fs";var wRr=iwe.promisify(XW.readdir);var OCt={_useHtmlParser2:!1};function FC(t,e){if(!t)return e??OCt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var I7={};Ra(I7,{contains:()=>kP,extract:()=>PIt,html:()=>RIt,merge:()=>Swe,parseHTML:()=>kIt,root:()=>vIt,text:()=>wg,xml:()=>DIt});var qf={};Ra(qf,{DocumentPosition:()=>ic,append:()=>dIt,appendChild:()=>lIt,compareDocumentPosition:()=>Qwe,existsOne:()=>Bwe,filter:()=>HC,find:()=>SP,findAll:()=>pIt,findOne:()=>TP,findOneChild:()=>mIt,getAttributeValue:()=>aIt,getChildren:()=>OC,getElementById:()=>CIt,getElements:()=>yIt,getElementsByClassName:()=>IIt,getElementsByTagName:()=>Qg,getElementsByTagType:()=>BIt,getFeed:()=>C7,getInnerHTML:()=>oIt,getName:()=>AIt,getOuterHTML:()=>Cwe,getParent:()=>Iwe,getSiblings:()=>E7,getText:()=>wP,hasAttrib:()=>cIt,hasChildren:()=>Tr,innerText:()=>kN,isCDATA:()=>LC,isComment:()=>bg,isDocument:()=>sc,isTag:()=>Me,isText:()=>bo,nextElementSibling:()=>NP,prepend:()=>fIt,prependChild:()=>hIt,prevElementSibling:()=>xP,removeElement:()=>Pd,removeSubsets:()=>bIt,replaceElement:()=>uIt,testElement:()=>EIt,textContent:()=>vd,uniqueSort:()=>Of});var nc={};Ra(nc,{CDATA:()=>o7,Comment:()=>r7,Directive:()=>t7,Doctype:()=>a7,ElementType:()=>Wt,Root:()=>$W,Script:()=>n7,Style:()=>s7,Tag:()=>i7,Text:()=>e7,isTag:()=>ZW});var Wt;(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"})(Wt||(Wt={}));function ZW(t){return t.type===Wt.Tag||t.type===Wt.Script||t.type===Wt.Style}var $W=Wt.Root,e7=Wt.Text,t7=Wt.Directive,r7=Wt.Comment,n7=Wt.Script,s7=Wt.Style,i7=Wt.Tag,o7=Wt.CDATA,a7=Wt.Doctype;var EP=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 _C(this,e)}},SN=class extends EP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},vu=class extends SN{constructor(){super(...arguments),this.type=Wt.Text}get nodeType(){return 3}},Cg=class extends SN{constructor(){super(...arguments),this.type=Wt.Comment}get nodeType(){return 8}},Ig=class extends SN{constructor(e,r){super(r),this.name=e,this.type=Wt.Directive}get nodeType(){return 1}},TN=class extends EP{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}},RN=class extends TN{constructor(){super(...arguments),this.type=Wt.CDATA}get nodeType(){return 4}},ia=class extends TN{constructor(){super(...arguments),this.type=Wt.Root}get nodeType(){return 9}},Bg=class extends TN{constructor(e,r,n=[],s=e==="script"?Wt.Script:e==="style"?Wt.Style:Wt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret
Line truncated
|
||||
`));if(!t)throw new Error(`No file in ${process.cwd()} matched to [${jQe}], make sure you have checked out the target repository`);return`${QCt}-${process.env.RUNNER_OS}-${process.arch}-gradle-${t}`}var xCt="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.",SCt="Basic Caching: This build uses the basic open-source caching provider. For faster builds and advanced features, consider switching to the Enhanced Caching provider. See https://github.com/gradle/actions/blob/main/DISTRIBUTION.md for details.",TCt="External Caching: Gradle User Home is managed by an external caching provider. This action will not restore or save Gradle User Home.",gP=class{constructor(e){this.status=e}async restore(e,r){}async save(e,r,n){return{status:this.status,entries:[]}}};async function $Qe(t){return t.getCacheProvider()==="external"?(pP(TCt),new gP("external")):t.isCacheDisabled()?(pP("Cache is disabled: will not restore state from previous builds."),new gP("disabled")):t.getCacheProvider()==="basic"?(pP(SCt),new mP):(pP(xCt),RCt())}function ewe(t){if(!(t.isCacheDisabled()||t.getCacheProvider()==="external"))return t.getCacheProvider()==="basic"?{kind:"basic"}:{kind:"enhanced"}}async function RCt(){let t=DCt();return await import(NCt(t).href)}function DCt(){let t=import.meta.dirname,e=ZQe.resolve(t,"../../../sources/vendor/gradle-actions-caching/index.js");if(XQe.existsSync(e))return e;throw new Error(`Unable to locate vendored cache library at ${e}.`)}function pP(t){console.info(t)}import*as iwe from"util";var _Ct=xe(swe(),1);import*as XW from"fs";var xRr=iwe.promisify(XW.readdir);var OCt={_useHtmlParser2:!1};function FC(t,e){if(!t)return e??OCt;let r={_useHtmlParser2:!!t.xmlMode,...e,...t};return t.xml?(r._useHtmlParser2=!0,r.xmlMode=!0,t.xml!==!0&&Object.assign(r,t.xml)):t.xmlMode&&(r._useHtmlParser2=!0),r}var I7={};Ra(I7,{contains:()=>kP,extract:()=>PIt,html:()=>RIt,merge:()=>Swe,parseHTML:()=>kIt,root:()=>vIt,text:()=>wg,xml:()=>DIt});var qf={};Ra(qf,{DocumentPosition:()=>ic,append:()=>dIt,appendChild:()=>lIt,compareDocumentPosition:()=>Qwe,existsOne:()=>Bwe,filter:()=>HC,find:()=>SP,findAll:()=>pIt,findOne:()=>TP,findOneChild:()=>mIt,getAttributeValue:()=>aIt,getChildren:()=>OC,getElementById:()=>CIt,getElements:()=>yIt,getElementsByClassName:()=>IIt,getElementsByTagName:()=>Qg,getElementsByTagType:()=>BIt,getFeed:()=>C7,getInnerHTML:()=>oIt,getName:()=>AIt,getOuterHTML:()=>Cwe,getParent:()=>Iwe,getSiblings:()=>E7,getText:()=>wP,hasAttrib:()=>cIt,hasChildren:()=>Tr,innerText:()=>kN,isCDATA:()=>LC,isComment:()=>bg,isDocument:()=>sc,isTag:()=>Me,isText:()=>bo,nextElementSibling:()=>NP,prepend:()=>fIt,prependChild:()=>hIt,prevElementSibling:()=>xP,removeElement:()=>Pd,removeSubsets:()=>bIt,replaceElement:()=>uIt,testElement:()=>EIt,textContent:()=>vd,uniqueSort:()=>Of});var nc={};Ra(nc,{CDATA:()=>o7,Comment:()=>r7,Directive:()=>t7,Doctype:()=>a7,ElementType:()=>Wt,Root:()=>$W,Script:()=>n7,Style:()=>s7,Tag:()=>i7,Text:()=>e7,isTag:()=>ZW});var Wt;(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"})(Wt||(Wt={}));function ZW(t){return t.type===Wt.Tag||t.type===Wt.Script||t.type===Wt.Style}var $W=Wt.Root,e7=Wt.Text,t7=Wt.Directive,r7=Wt.Comment,n7=Wt.Script,s7=Wt.Style,i7=Wt.Tag,o7=Wt.CDATA,a7=Wt.Doctype;var EP=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 _C(this,e)}},SN=class extends EP{constructor(e){super(),this.data=e}get nodeValue(){return this.data}set nodeValue(e){this.data=e}},vu=class extends SN{constructor(){super(...arguments),this.type=Wt.Text}get nodeType(){return 3}},Cg=class extends SN{constructor(){super(...arguments),this.type=Wt.Comment}get nodeType(){return 8}},Ig=class extends SN{constructor(e,r){super(r),this.name=e,this.type=Wt.Directive}get nodeType(){return 1}},TN=class extends EP{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}},RN=class extends TN{constructor(){super(...arguments),this.type=Wt.CDATA}get nodeType(){return 4}},ia=class extends TN{constructor(){super(...arguments),this.type=Wt.Root}get nodeType(){return 9}},Bg=class extends TN{constructor(e,r,n=[],s=e==="script"?Wt.Script:e==="style"?Wt.Style:Wt.Tag){super(n),this.name=e,this.attribs=r,this.type=s}get nodeType(){return 1}get tagName(){ret
Line truncated
|
||||
`:wP(t.children):LC(t)?wP(t.children):bo(t)?t.data:""}function vd(t){return Array.isArray(t)?t.map(vd).join(""):Tr(t)&&!bg(t)?vd(t.children):bo(t)?t.data:""}function kN(t){return Array.isArray(t)?t.map(kN).join(""):Tr(t)&&(t.type===Wt.Tag||LC(t))?kN(t.children):bo(t)?t.data:""}function OC(t){return Tr(t)?t.children:[]}function Iwe(t){return t.parent||null}function E7(t){let e=Iwe(t);if(e!=null)return OC(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 aIt(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function cIt(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function AIt(t){return t.name}function NP(t){let{next:e}=t;for(;e!==null&&!Me(e);)({next:e}=e);return e}function xP(t){let{prev:e}=t;for(;e!==null&&!Me(e);)({prev:e}=e);return e}function Pd(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 uIt(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 lIt(t,e){if(Pd(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 dIt(t,e){Pd(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 hIt(t,e){if(Pd(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 fIt(t,e){Pd(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 HC(t,e,r=!0,n=1/0){return SP(t,Array.isArray(e)?e:[e],r,n)}function SP(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 mIt(t,e){return e.find(t)}function TP(t,e,r=!0){let n=Array.isArray(e)?e:[e];for(let s=0;s<n.length;s++){let i=n[s];if(Me(i)&&t(i))return i;if(r&&Tr(i)&&i.children.length>0){let o=TP(t,i.children,!0);if(o)return o}}return null}function Bwe(t,e){return(Array.isArray(e)?e:[e]).some(r=>Me(r)&&t(r)||Tr(r)&&Bwe(t,r.children))}function pIt(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]++];Me(i)&&t(i)&&r.push(i),Tr(i)&&i.children.length>0&&(s.unshift(0),n.unshift(i.children))}}var RP={tag_name(t){return typeof t=="function"?e=>Me(e)&&t(e.name):t==="*"?Me:e=>Me(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=>bo(e)&&t(e.data):e=>bo(e)&&e.data===t}};function y7(t,e){return typeof e=="function"?r=>Me(r)&&e(r.attribs[t]):r=>Me(r)&&r.attribs[t]===e}function gIt(t,e){return r=>t(r)||e(r)}function bwe(t){let e=Object.keys(t).map(r=>{let n=t[r];return Object.prototype.hasOwnProperty.call(RP,r)?RP[r](n):y7(r,n)});return e.length===0?null:e.reduce(gIt)}function EIt(t,e){let r=bwe(t);return r?r(e):!0}function yIt(t,e,r,n=1/0){let s=bwe(t);return s?HC(s,e,r,n):[]}function CIt(t,e,r=!0){return Array.isArray(e)||(e=[e]),TP(y7("id",t),e,r)}function Qg(t,e,r=!0,n=1/0){return HC(RP.tag_name(t),e,r,n)}function IIt(t,e,r=!0,n=1/0){return HC(y7("class",t),e,r,n)}function BIt(t,e,r=!0,n=1/0){return HC(RP.tag_type(t),e,r,n)}function bIt(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 ic;(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"})(ic||(ic={}));function Qwe(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 ic.DISCONNECTED;let a=r[o-1],c=a.children,A=r[o],u=n[o];return c.indexOf(A)>c.indexOf(u)?a===e?ic.FOLLOWING|ic.CONTAINED_BY:ic.FOLLOWING:a===t?ic.PRECEDING|ic.CONTAINS:ic.PRECEDING}function Of(t){return t=t.filter((e,r,n)=>!n.includes(e,r+1)),t.sort((e,r)=>{let n=Qwe(e,r);return n&ic.PRECEDING?-1:n&ic.FOLLOWING?1:0}),t}function C7(t){let e=DP(SIt,t);return e?e.name==="feed"?QIt(e):wIt(e):null}function QIt(t){var e;let r=t.children,n={type:"atom",items:Qg("entry",r).map(o=>{var a;let{children:c}=o,A={media:wwe(c)};Qo(A,"id","id",c),Qo(A,"title","title",c);let u=(a=DP("link",c))===null||a===void 0?void 0:a.attribs.href;u&&(A.link=u);let l=Hf("summary",c)||Hf("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 cc=xe(Gf(),1);var L7={};function _7(t,e){return t===cc.default.falseFunc?cc.default.falseFunc:r=>e.isTag(r)&&t(r)}function U7(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 F7(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 M7=(t,e,r,n,s)=>{let i=s(e,F7(r),n);return i===cc.default.trueFunc?t:i===cc.default.falseFunc?cc.default.falseFunc:o=>i(o)&&t(o)},YP={is:M7,matches:M7,where:M7,not(t,e,r,n,s){let i=s(e,F7(r),n);return i===cc.default.falseFunc?t:i===cc.default.trueFunc?cc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=F7(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UN))?[L7]:void 0,c=s(e,o,a);if(c===cc.default.falseFunc)return cc.default.falseFunc;let A=_7(c,i);if(a&&c!==cc.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,...U7(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function hNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in YP))throw new Error(`Unknown pseudo-class :${o}(${a})`);return YP[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:GP[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,dNe.parse)(A);return YP.is(t,u,r,n,s)}if(typeof c=="function")return P7(c,o,a,1),u=>c(u,a)&&t(u);if(o in KC)return KC[o](t,a,r,n);if(o in HN){let u=HN[o];return P7(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Ac=xe(VC(),1);function O7(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function fNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Ac.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ac.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ac.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()),cNe[e.action](t,e,r)}case Ac.SelectorType.Pseudo:return hNe(t,e,r,n,s);case Ac.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 Ac.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=O7(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=O7(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=O7(A,i));return!1};case Ac.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Ac.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Ac.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 Ac.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 Ac.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function mNe(t,e,r){let n=zP(t,e,r);return _7(n,e.adapter)}function zP(t,e,r){let n=typeof t=="string"?(0,fA.parse)(t):t;return WP(n,e,r)}function pNe(t){return t.type===fA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(pNe)))}var yBt={type:fA.SelectorType.Descendant},CBt={type:"_flexibleDescendant"},IBt={type:fA.SelectorType.Pseudo,name:"scope",data:null};function BBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===L7||i&&e.isTag(i)});fo
Line truncated
|
||||
)`,enabled:":not(:disabled)",checked:":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",required:":is(input, select, textarea)[required]",optional:":is(input, select, textarea):not([required])",selected:"option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",checkbox:"[type=checkbox]",file:"[type=file]",password:"[type=password]",radio:"[type=radio]",reset:"[type=reset]",image:"[type=image]",submit:"[type=submit]",parent:":not(:empty)",header:":is(h1, h2, h3, h4, h5, h6)",button:":is(button, input[type=button])",input:":is(input, textarea, select, button)",text:"input:is(:not([type!='']), [type=text])"};var cc=xe(Gf(),1);var L7={};function _7(t,e){return t===cc.default.falseFunc?cc.default.falseFunc:r=>e.isTag(r)&&t(r)}function U7(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 F7(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 M7=(t,e,r,n,s)=>{let i=s(e,F7(r),n);return i===cc.default.trueFunc?t:i===cc.default.falseFunc?cc.default.falseFunc:o=>i(o)&&t(o)},YP={is:M7,matches:M7,where:M7,not(t,e,r,n,s){let i=s(e,F7(r),n);return i===cc.default.falseFunc?t:i===cc.default.trueFunc?cc.default.falseFunc:o=>!i(o)&&t(o)},has(t,e,r,n,s){let{adapter:i}=r,o=F7(r);o.relativeSelector=!0;let a=e.some(u=>u.some(UN))?[L7]:void 0,c=s(e,o,a);if(c===cc.default.falseFunc)return cc.default.falseFunc;let A=_7(c,i);if(a&&c!==cc.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,...U7(l,i)]:d;return i.existsOne(A,h)}}return u=>t(u)&&i.existsOne(A,i.getChildren(u))}};function hNe(t,e,r,n,s){var i;let{name:o,data:a}=e;if(Array.isArray(a)){if(!(o in YP))throw new Error(`Unknown pseudo-class :${o}(${a})`);return YP[o](t,a,r,n,s)}let c=(i=r.pseudos)===null||i===void 0?void 0:i[o],A=typeof c=="string"?c:GP[o];if(typeof A=="string"){if(a!=null)throw new Error(`Pseudo ${o} doesn't have any arguments`);let u=(0,dNe.parse)(A);return YP.is(t,u,r,n,s)}if(typeof c=="function")return P7(c,o,a,1),u=>c(u,a)&&t(u);if(o in KC)return KC[o](t,a,r,n);if(o in HN){let u=HN[o];return P7(u,o,a,2),l=>u(l,r,a)&&t(l)}throw new Error(`Unknown pseudo-class :${o}`)}var Ac=xe(VC(),1);function O7(t,e){let r=e.getParent(t);return r&&e.isTag(r)?r:null}function fNe(t,e,r,n,s){let{adapter:i,equals:o}=r;switch(e.type){case Ac.SelectorType.PseudoElement:throw new Error("Pseudo-elements are not supported by css-select");case Ac.SelectorType.ColumnCombinator:throw new Error("Column combinators are not yet supported by css-select");case Ac.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()),cNe[e.action](t,e,r)}case Ac.SelectorType.Pseudo:return hNe(t,e,r,n,s);case Ac.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 Ac.SelectorType.Descendant:{if(r.cacheResults===!1||typeof WeakSet>"u")return function(A){let u=A;for(;u=O7(u,i);)if(t(u))return!0;return!1};let a=new WeakSet;return function(A){let u=A;for(;u=O7(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=O7(A,i));return!1};case Ac.SelectorType.Parent:return function(c){return i.getChildren(c).some(A=>i.isTag(A)&&t(A))};case Ac.SelectorType.Child:return function(c){let A=i.getParent(c);return A!=null&&i.isTag(A)&&t(A)};case Ac.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 Ac.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 Ac.SelectorType.Universal:{if(e.namespace!=null&&e.namespace!=="*")throw new Error("Namespaced universal selectors are not yet supported by css-select");return t}}}function mNe(t,e,r){let n=zP(t,e,r);return _7(n,e.adapter)}function zP(t,e,r){let n=typeof t=="string"?(0,fA.parse)(t):t;return WP(n,e,r)}function pNe(t){return t.type===fA.SelectorType.Pseudo&&(t.name==="scope"||Array.isArray(t.data)&&t.data.some(e=>e.some(pNe)))}var yBt={type:fA.SelectorType.Descendant},CBt={type:"_flexibleDescendant"},IBt={type:fA.SelectorType.Pseudo,name:"scope",data:null};function BBt(t,{adapter:e},r){let n=!!r?.every(s=>{let i=e.isTag(s)&&e.getParent(s);return s===L7||i&&e.isTag(i)});fo
Line truncated
|
||||
`)})):{name:s,value:i.replace(kNe,`\r
|
||||
`)}}).toArray()}var rJ={};Ra(rJ,{extract:()=>Lbt});function Fbt(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 Lbt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Fbt(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 Wf=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}}};Wf.prototype.cheerio="[cheerio object]";Wf.prototype.splice=Array.prototype.splice;Wf.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Wf.prototype,T7,Z7,$7,eJ,tJ,rJ);function vNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=FC(s),a=t(n,o,i,null);class c extends Wf{_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&&oc(u))return u;let f=FC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=oc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&vN(u)?t(u,f,!1,null).children:_bt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?vN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):oc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,I7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _bt(t){return!!t.name||t.type===nc.Root||t.type===nc.Text||t.type===nc.Comment}var Ubt=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]),Fr="\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 Ui={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ZP(t){return t>=55296&&t<=57343}function PNe(t){return t>=56320&&t<=57343}function MNe(t,e){return(t-55296)*1024+9216+e}function $P(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function eM(t){return t>=64976&&t<=65007||Ubt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`)}}).toArray()}var rJ={};Ra(rJ,{extract:()=>Lbt});function Fbt(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 Lbt(t){let e={};for(let r in t){let n=t[r],s=Array.isArray(n),{selector:i,value:o}=Fbt(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 Wf=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}}};Wf.prototype.cheerio="[cheerio object]";Wf.prototype.splice=Array.prototype.splice;Wf.prototype[Symbol.iterator]=Array.prototype[Symbol.iterator];Object.assign(Wf.prototype,T7,Z7,$7,eJ,tJ,rJ);function vNe(t,e){return function r(n,s,i=!0){if(n==null)throw new Error("cheerio.load() expects a string");let o=FC(s),a=t(n,o,i,null);class c extends Wf{_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&&oc(u))return u;let f=FC(h,o),m=typeof d=="string"?[t(d,f,!1,null)]:"length"in d?d:[d],E=oc(m)?m:new c(m,null,f);if(E._root=E,!u)return new c(void 0,E,f);let g=typeof u=="string"&&vN(u)?t(u,f,!1,null).children:_bt(u)?[u]:Array.isArray(u)?u:void 0,C=new c(g,E,f);if(g)return C;if(typeof u!="string")throw new TypeError("Unexpected type of selector");let I=u,B=l?typeof l=="string"?vN(l)?new c([t(l,f,!1,null)],E,f):(I=`${l} ${I}`,E):oc(l)?l:new c(Array.isArray(l)?l:[l],E,f):E;return B?B.find(I):C}return Object.assign(A,I7,{load:r,_root:a,_options:o,fn:c.prototype,prototype:c.prototype}),A}}function _bt(t){return!!t.name||t.type===nc.Root||t.type===nc.Text||t.type===nc.Comment}var Ubt=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]),Fr="\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 Ui={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function ZP(t){return t>=55296&&t<=57343}function PNe(t){return t>=56320&&t<=57343}function MNe(t,e){return(t-55296)*1024+9216+e}function $P(t){return t!==32&&t!==10&&t!==13&&t!==9&&t!==12&&t>=1&&t<=31||t>=127&&t<=159}function eM(t){return t>=64976&&t<=65007||Ubt.has(t)}var V;(function(t){t.controlCharacterInInputStream="control-character-in-input-stream",t.noncharacterInInputStream="noncharacter-in-input-stream",t.surrogateInInputStream="surrogate-in-input-stream",t.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",t.endTagWithAttributes="end-tag-with-attributes",t.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",t.unexpectedSolidusInTag="unexpected-solidus-in-tag",t.unexpectedNullCharacter="unexpected-null-character",t.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",t.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",t.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",t.missingEndTagName="missing-end-tag-name",t.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",t.unknownNamedCharacterReference="unknown-named-character-reference",t.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",t.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",t.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",t.eofBeforeTagName="eof-before-tag-name",t.eofInTag="eof-in-tag",t.missingAttributeValue="missing-attribute-value",t.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",t.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keywo
Line truncated
|
||||
`," Line feed \\n"]]),DFe=new Map([...w$,["\\"," Backslash \\"],["/"," Forward slash /"]]);function kFe(t){if(!t)throw new Error("Provided artifact name input during validation is empty");for(let[e,r]of DFe)if(t.includes(e))throw new Error(`The artifact name is not valid: ${t}. Contains the following character: ${r}
|
||||
|
||||
Invalid characters include: ${Array.from(DFe.values()).toString()}
|
||||
@@ -399,12 +399,12 @@ If the error persists, please check whether Actions and API requests are operati
|
||||
|
||||
Errors can be temporary, so please try again and optionally run the action with debug mode enabled for more information.
|
||||
|
||||
If the error persists, please check whether Actions and API requests are operating normally at [https://githubstatus.com](https://www.githubstatus.com).`),n}})}};var VGr=new sb;import*as qO from"path";import Zoe from"fs";var yrr="dependency-graph_";async function rze(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await tze(t,!1);return;case"generate-submit-and-upload":await tze(t,!0);return;case"generate-and-upload":await Crr(t)}}catch(r){xrr(t,e,r)}}async function tze(t,e){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}let r=await nze();try{await Irr(r)}catch(n){try{await Xoe(r,t)}catch(s){ie(String(s))}throw n}e&&await Xoe(r,t)}async function Crr(t){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}await Xoe(await nze(),t)}async function nze(){let r=(await(await MQ(`${Qrr()}/**/*.json`)).glob()).filter(n=>!wrr(n));return r.forEach(Nrr),ie(`Found dependency graph files: ${r.join(", ")}`),r}async function Xoe(t,e){if(t.length===0){ie("No dependency graph files found to upload.");return}let r=NN(),n=new sb;for(let s of t){let i=$oe(s);ie(`Uploading dependency graph file: ${i}`);let o=`${yrr}${qO.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function Irr(t){if(t.length===0){ie("No dependency graph files found to submit.");return}for(let e of t)try{await brr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Brr(e,r)),r}}function Brr(t,e){let n=`Dependency submission failed for ${$oe(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 KGr=new sb;import*as qO from"path";import Zoe from"fs";var yrr="dependency-graph_";async function rze(t){let e=t.getDependencyGraphOption();try{switch(e){case"disabled":case"generate":case"download-and-submit":return;case"generate-and-submit":await tze(t,!1);return;case"generate-submit-and-upload":await tze(t,!0);return;case"generate-and-upload":await Crr(t)}}catch(r){Trr(t,e,r)}}async function tze(t,e){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}let r=await nze();try{await Irr(r)}catch(n){try{await Xoe(r,t)}catch(s){ie(String(s))}throw n}e&&await Xoe(r,t)}async function Crr(t){if(sze()){ie("Dependency graph not supported in the ACT environment.");return}await Xoe(await nze(),t)}async function nze(){let r=(await(await MQ(`${Nrr()}/**/*.json`)).glob()).filter(n=>!xrr(n));return r.forEach(Srr),ie(`Found dependency graph files: ${r.join(", ")}`),r}async function Xoe(t,e){if(t.length===0){ie("No dependency graph files found to upload.");return}let r=NN(),n=new sb;for(let s of t){let i=$oe(s);ie(`Uploading dependency graph file: ${i}`);let o=`${yrr}${qO.basename(s)}`;await n.uploadArtifact(o,[s],r,{retentionDays:e.getArtifactRetentionDays()})}}async function Irr(t){if(t.length===0){ie("No dependency graph files found to submit.");return}for(let e of t)try{await brr(e)}catch(r){throw r instanceof Error&&r.name==="HttpError"&&(r.message=Brr(e,r)),r}}function Brr(t,e){let n=`Dependency submission failed for ${$oe(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 brr(t){let e=Srr(),r=Zoe.readFileSync(t,"utf8"),n=JSON.parse(r);n.owner=hd.repo.owner,n.repo=hd.repo.repo;let s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=$oe(t);ND(`Submitted ${i}: ${s.data.message}`)}function Qrr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function wrr(t){let e=`${t}.processed`;return Zoe.existsSync(e)}function Nrr(t){let e=`${t}.processed`;Zoe.writeFileSync(e,"")}function xrr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new VI(r);at(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function Srr(){return jo(wN())}function $oe(t){let e=NN();return qO.relative(e,t)}function sze(){return process.env.ACT!==void 0}function Rrr(t=process.platform){return t==="win32"?50:0}async function ize(t=process.platform){let e=Rrr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>GZ(t));async function Drr(){try{TQe(),SQe(),await yFe(new lP,new bN,new dP)&&await rze(new MC)}catch(t){GZ(t)}await ize()}Drr();export{Drr as run};
|
||||
`:n}async function brr(t){let e=Rrr(),r=Zoe.readFileSync(t,"utf8"),n=wrr(JSON.parse(r),hd.repo.owner,hd.repo.repo),s=await e.request("POST /repos/{owner}/{repo}/dependency-graph/snapshots",n),i=$oe(t);ND(`Submitted ${i}: ${s.data.message}`)}var Qrr=["version","job","sha","ref","detector","metadata","manifests","scanned"];function wrr(t,e,r){let n={owner:e,repo:r};for(let s of Qrr)t[s]!==void 0&&(n[s]=t[s]);return n}function Nrr(){return process.env.DEPENDENCY_GRAPH_REPORT_DIR}function xrr(t){let e=`${t}.processed`;return Zoe.existsSync(e)}function Srr(t){let e=`${t}.processed`;Zoe.writeFileSync(e,"")}function Trr(t,e,r){if(!t.getDependencyGraphContinueOnFailure())throw new VI(r);at(`Failed to ${e} dependency graph. Will continue.
|
||||
${String(r)}`)}function Rrr(){return jo(wN())}function $oe(t){let e=NN();return qO.relative(e,t)}function sze(){return process.env.ACT!==void 0}function krr(t=process.platform){return t==="win32"?50:0}async function ize(t=process.platform){let e=krr(t);return e>0&&await new Promise(r=>setTimeout(r,e)),process.exit()}process.on("uncaughtException",t=>GZ(t));async function vrr(){try{TQe(),SQe(),await yFe(new lP,new bN,new dP)&&await rze(new MC)}catch(t){GZ(t)}await ize()}vrr();export{vrr as run};
|
||||
/*! Bundled license information:
|
||||
|
||||
undici/lib/web/fetch/body.js:
|
||||
|
||||
Vendored
+3
-3
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../../../node_modules/tunnel/lib/tunnel.js", "../../../node_modules/tunnel/index.js", "../../../node_modules/undici/lib/core/symbols.js", "../../../node_modules/undici/lib/core/errors.js", "../../../node_modules/undici/lib/core/constants.js", "../../../node_modules/undici/lib/core/tree.js", "../../../node_modules/undici/lib/core/util.js", "../../../node_modules/undici/lib/core/diagnostics.js", "../../../node_modules/undici/lib/core/request.js", "../../../node_modules/undici/lib/dispatcher/dispatcher.js", "../../../node_modules/undici/lib/dispatcher/dispatcher-base.js", "../../../node_modules/undici/lib/util/timers.js", "../../../node_modules/undici/lib/core/connect.js", "../../../node_modules/undici/lib/llhttp/utils.js", "../../../node_modules/undici/lib/llhttp/constants.js", "../../../node_modules/undici/lib/llhttp/llhttp-wasm.js", "../../../node_modules/undici/lib/llhttp/llhttp_simd-wasm.js", "../../../node_modules/undici/lib/web/fetch/constants.js", "../../../node_modules/undici/lib/web/fetch/global.js", "../../../node_modules/undici/lib/web/fetch/data-url.js", "../../../node_modules/undici/lib/web/fetch/webidl.js", "../../../node_modules/undici/lib/web/fetch/util.js", "../../../node_modules/undici/lib/web/fetch/symbols.js", "../../../node_modules/undici/lib/web/fetch/file.js", "../../../node_modules/undici/lib/web/fetch/formdata.js", "../../../node_modules/undici/lib/web/fetch/formdata-parser.js", "../../../node_modules/undici/lib/web/fetch/body.js", "../../../node_modules/undici/lib/dispatcher/client-h1.js", "../../../node_modules/undici/lib/dispatcher/client-h2.js", "../../../node_modules/undici/lib/handler/redirect-handler.js", "../../../node_modules/undici/lib/interceptor/redirect-interceptor.js", "../../../node_modules/undici/lib/dispatcher/client.js", "../../../node_modules/undici/lib/dispatcher/fixed-queue.js", "../../../node_modules/undici/lib/dispatcher/pool-stats.js", "../../../node_modules/undici/lib/dispatcher/pool-base.js", "../../../node_modules/undici/lib/dispatcher/pool.js", "../../../node_modules/undici/lib/dispatcher/balanced-pool.js", "../../../node_modules/undici/lib/dispatcher/agent.js", "../../../node_modules/undici/lib/dispatcher/proxy-agent.js", "../../../node_modules/undici/lib/dispatcher/env-http-proxy-agent.js", "../../../node_modules/undici/lib/handler/retry-handler.js", "../../../node_modules/undici/lib/dispatcher/retry-agent.js", "../../../node_modules/undici/lib/api/readable.js", "../../../node_modules/undici/lib/api/util.js", "../../../node_modules/undici/lib/api/api-request.js", "../../../node_modules/undici/lib/api/abort-signal.js", "../../../node_modules/undici/lib/api/api-stream.js", "../../../node_modules/undici/lib/api/api-pipeline.js", "../../../node_modules/undici/lib/api/api-upgrade.js", "../../../node_modules/undici/lib/api/api-connect.js", "../../../node_modules/undici/lib/api/index.js", "../../../node_modules/undici/lib/mock/mock-errors.js", "../../../node_modules/undici/lib/mock/mock-symbols.js", "../../../node_modules/undici/lib/mock/mock-utils.js", "../../../node_modules/undici/lib/mock/mock-interceptor.js", "../../../node_modules/undici/lib/mock/mock-client.js", "../../../node_modules/undici/lib/mock/mock-pool.js", "../../../node_modules/undici/lib/mock/pluralizer.js", "../../../node_modules/undici/lib/mock/pending-interceptors-formatter.js", "../../../node_modules/undici/lib/mock/mock-agent.js", "../../../node_modules/undici/lib/global.js", "../../../node_modules/undici/lib/handler/decorator-handler.js", "../../../node_modules/undici/lib/interceptor/redirect.js", "../../../node_modules/undici/lib/interceptor/retry.js", "../../../node_modules/undici/lib/interceptor/dump.js", "../../../node_modules/undici/lib/interceptor/dns.js", "../../../node_modules/undici/lib/web/fetch/headers.js", "../../../node_modules/undici/lib/web/fetch/response.js", "../../../node_modules/undici/lib/web/fetch/dispatcher-weakref.js", "../../../node_modules/undici/lib/web/fetch/request.js", "../../../node_modules/undici/lib/web/fetch/index.js", "../../../node_modules/undici/lib/web/fileapi/symbols.js", "../../../node_modules/undici/lib/web/fileapi/progressevent.js", "../../../node_modules/undici/lib/web/fileapi/encoding.js", "../../../node_modules/undici/lib/web/fileapi/util.js", "../../../node_modules/undici/lib/web/fileapi/filereader.js", "../../../node_modules/undici/lib/web/cache/symbols.js", "../../../node_modules/undici/lib/web/cache/util.js", "../../../node_modules/undici/lib/web/cache/cache.js", "../../../node_modules/undici/lib/web/cache/cachestorage.js", "../../../node_modules/undici/lib/web/cookies/constants.js", "../../../node_modules/undici/lib/web/cookies/util.js", "../../../node_modules/undici/lib/web/cookies/parse.js", "../../../node_modules/undici/lib/web/cookies/index.js", "../../../node_modules/undici/lib/web/websocket/events.js", "../../../node_modules/undici/lib/web/websocket/constants.js", "../../../node_modules/undici/lib/web/websocket/symbols.Line truncated
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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
|
||||
"sourcesContent": ["'use strict';\n\nvar net = require('net');\nvar tls = require('tls');\nvar http = require('http');\nvar https = require('https');\nvar events = require('events');\nvar assert = require('assert');\nvar util = require('util');\n\n\nexports.httpOverHttp = httpOverHttp;\nexports.httpsOverHttp = httpsOverHttp;\nexports.httpOverHttps = httpOverHttps;\nexports.httpsOverHttps = httpsOverHttps;\n\n\nfunction httpOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n return agent;\n}\n\nfunction httpsOverHttp(options) {\n var agent = new TunnelingAgent(options);\n agent.request = http.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\nfunction httpOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n return agent;\n}\n\nfunction httpsOverHttps(options) {\n var agent = new TunnelingAgent(options);\n agent.request = https.request;\n agent.createSocket = createSecureSocket;\n agent.defaultPort = 443;\n return agent;\n}\n\n\nfunction TunnelingAgent(options) {\n var self = this;\n self.options = options || {};\n self.proxyOptions = self.options.proxy || {};\n self.maxSockets = self.options.maxSockets || http.Agent.defaultMaxSockets;\n self.requests = [];\n self.sockets = [];\n\n self.on('free', function onFree(socket, host, port, localAddress) {\n var options = toOptions(host, port, localAddress);\n for (var i = 0, len = self.requests.length; i < len; ++i) {\n var pending = self.requests[i];\n if (pending.host === options.host && pending.port === options.port) {\n // Detect the request to connect same origin server,\n // reuse the connection.\n self.requests.splice(i, 1);\n pending.request.onSocket(socket);\n return;\n }\n }\n socket.destroy();\n self.removeSocket(socket);\n });\n}\nutil.inherits(TunnelingAgent, events.EventEmitter);\n\nTunnelingAgent.prototype.addRequest = function addRequest(req, host, port, localAddress) {\n var self = this;\n var options = mergeOptions({request: req}, self.options, toOptions(host, port, localAddress));\n\n if (self.sockets.length >= this.maxSockets) {\n // We are over limit so we'll add it to the queue.\n self.requests.push(options);\n return;\n }\n\n // If we are under maxSockets create a new one.\n self.createSocket(options, function(socket) {\n socket.on('free', onFree);\n socket.on('close', onCloseOrRemove);\n socket.on('agentRemove', onCloseOrRemove);\n req.onSocket(socket);\n\n function onFree() {\n self.emit('free', socket, options);\n }\n\n function onCloseOrRemove(err) {\n self.removeSocket(socket);\n socket.removeListener('free', onFree);\n socket.removeListener('close', onCloseOrRemove);\n socket.removeListener('agentRemove', onCloseOrRemove);\n }\n });\n};\n\nTunnelingAgent.prototype.createSocket = function createSocket(options, cb) {\n var self = this;\n var placeholder = {};\n self.sockets.push(placeholder);\n\n var connectOptions = mergeOptions({}, self.proxyOptions, {\n method: 'CONNECT',\n path: options.host + ':' + options.port,\n agent: false,\n headers: {\n host: options.host + ':' + options.port\n }\n });\n if (options.localAddress) {\n connectOptions.localAddress = options.localAddress;\n }\n if (connectOptions.proxyAuth) {\n connectOptions.headers = connectOptions.headers || {};\n connectOptions.headers['Proxy-Authorization'] = 'Basic ' +\n new Buffer(connectOptions.proxyAuth).toString('base64');\n }\n\n debug('making CONNECT request');\n var connectReq = self.request(connectOptions);\n connectReq.useChunkedEncodingByDefault = false; // for v0.6\n connectReq.once('response', onResponse); // for v0.6\n connectReq.once('upgrade', onUpgrade); // for v0.6\n connectReq.once('connect', onConnect); // for v0.7 or later\n connectReq.once('error', onError);\n connectReq.end();\n\n function onResponse(res) {\n // Very hacky. This is necessary to avoid http-parser leaks.\n res.upgrade = true;\n }\n\n function onUpgrade(res, socket, head) {\n // Hacky.\n process.nextTick(function() {\n onConnect(res, socket, head);\n });\n }\n\n function onConnect(res, socket, head) {\n connectReq.removeAllListeners();\n socket.removeAllListeners();\n\n if (res.statusCode !== 200) {\n debug('tunneling socket could not be established, statusCode=%d',\n res.statusCode);\n socket.destroy();\n var error = new Error('tunneling socket could not be established, ' +\n 'statusCode=' + res.statusCode);\n error.code = 'ECONNRESET';\n options.request.emit('error', error);\n self.removeSocket(placeholder);\n return;\n }\n if (head.length > 0) {\n debug('got illegal response body from proxy');\n socket.destroy();\n var error = new Error('Line truncated
|
||||
"mappings": ";u3BAAA,IAAAA,IAAAC,EAAAC,IAAA,cAEA,IAAIC,IAAM,EAAQ,KAAK,EACnBC,IAAM,EAAQ,KAAK,EACnBC,GAAO,EAAQ,MAAM,EACrBC,IAAQ,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,IACrBF,EAAM,YAAc,IACbA,CACT,CAEA,SAASH,IAAcE,EAAS,CAC9B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACfS,CACT,CAEA,SAASF,IAAeC,EAAS,CAC/B,IAAIC,EAAQ,IAAIC,GAAeF,CAAO,EACtC,OAAAC,EAAM,QAAUT,IAAM,QACtBS,EAAM,aAAeE,IACrBF,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,IAAmBH,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