next
Version:
The React Framework
1 lines • 526 kB
JavaScript
(()=>{var __webpack_modules__={462:e=>{e.exports='"use strict";var c=Object.defineProperty,f=Object.getOwnPropertyDescriptor,y=Object.getOwnPropertyNames,S=Object.prototype.hasOwnProperty,a=(r,t)=>c(r,"name",{value:t,configurable:!0}),m=(r,t)=>{for(var e in t)c(r,e,{get:t[e],enumerable:!0})},w=(r,t,e,p)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of y(t))!S.call(r,n)&&n!==e&&c(r,n,{get:()=>t[n],enumerable:!(p=f(t,n))||p.enumerable});return r},E=r=>w(c({},"__esModule",{value:!0}),r),_={};m(_,{AbortController:()=>x,AbortSignal:()=>O,DOMException:()=>u});module.exports=E(_);var v=Symbol("kSignal"),i=Symbol("kAborted"),s=Symbol("kReason"),g=Symbol("kName"),o=Symbol("kOnabort"),h=class extends Error{constructor(t,e){super(t),this[g]=e}get name(){return this[g]}};a(h,"DOMException");var u=h;function b(){let r=new EventTarget;return Object.setPrototypeOf(r,O.prototype),r[i]=!1,r[s]=void 0,r[o]=void 0,r}a(b,"createAbortSignal");function l(r,t){typeof t>"u"&&(t=new u("This operation was aborted","AbortError")),!r.aborted&&(r[s]=t,r[i]=!0,r.dispatchEvent(new Event("abort")))}a(l,"abortSignalAbort");var d=class{constructor(){this[v]=b()}get signal(){return this[v]}abort(t){l(this.signal,t)}};a(d,"AbortController");var x=d,A=class extends EventTarget{constructor(){throw new TypeError("Illegal constructor")}get aborted(){return this[i]}get reason(){return this[s]}get onabort(){return this[o]}set onabort(t){this[o]&&this.removeEventListener("abort",this[o]),t&&(this[o]=t,this.addEventListener("abort",this[o]))}throwIfAborted(){if(this[i])throw this[s]}static abort(t){let e=b();return l(e,t),e}static timeout(t){let e=b();return setTimeout(()=>{l(e,new u("The operation was aborted due to timeout","TimeoutError"))},t),e}};a(A,"AbortSignal");var O=A;\n'},435:e=>{e.exports='"use strict";var Gr=Object.create,E=Object.defineProperty,Rr=Object.getOwnPropertyDescriptor,T=Object.getOwnPropertyNames,kr=Object.getPrototypeOf,Mr=Object.prototype.hasOwnProperty,a=(f,y)=>E(f,"name",{value:y,configurable:!0}),xr=(f,y)=>function(){return f&&(y=(0,f[T(f)[0]])(f=0)),y},Cr=(f,y)=>function(){return y||(0,f[T(f)[0]])((y={exports:{}}).exports,y),y.exports},Lr=(f,y)=>{for(var d in y)E(f,d,{get:y[d],enumerable:!0})},ir=(f,y,d,I)=>{if(y&&typeof y=="object"||typeof y=="function")for(let j of T(y))!Mr.call(f,j)&&j!==d&&E(f,j,{get:()=>y[j],enumerable:!(I=Rr(y,j))||I.enumerable});return f},vr=(f,y,d)=>(d=f!=null?Gr(kr(f)):{},ir(y||!f||!f.__esModule?E(d,"default",{value:f,enumerable:!0}):d,f)),Tr=f=>ir(E({},"__esModule",{value:!0}),f),cr=xr({"<define:process>"(){}}),Br=Cr({"../format/dist/index.js"(f,y){"use strict";cr();var d=Object.defineProperty,I=Object.getOwnPropertyDescriptor,j=Object.getOwnPropertyNames,ar=Object.prototype.hasOwnProperty,fr=a((r,s)=>{for(var i in s)d(r,i,{get:s[i],enumerable:!0})},"__export"),pr=a((r,s,i,l)=>{if(s&&typeof s=="object"||typeof s=="function")for(let u of j(s))!ar.call(r,u)&&u!==i&&d(r,u,{get:()=>s[u],enumerable:!(l=I(s,u))||l.enumerable});return r},"__copyProps"),lr=a(r=>pr(d({},"__esModule",{value:!0}),r),"__toCommonJS"),B={};fr(B,{createFormat:()=>J}),y.exports=lr(B);var yr=Reflect.getOwnPropertyDescriptor;function N(r,s){let i=yr(r,s);return i?i.get:void 0}a(N,"GetOwnGetter");var gr=Reflect.getPrototypeOf,ur=gr(Uint8Array),br=Array.prototype.filter,D=Array.prototype.push,mr=Date.prototype.getTime,dr=Date.prototype.toISOString,Sr=Object.getOwnPropertyDescriptors,F=Object.getOwnPropertyNames,Or=Object.getOwnPropertySymbols,_r=Object.keys,hr=Object.prototype.propertyIsEnumerable,jr=Object.prototype.toString,Pr=N(Map.prototype,"size"),wr=N(Set.prototype,"size"),Ar=String.prototype.includes,$r=Symbol.iterator,Er=Symbol.prototype.toString,Ir=N(ur.prototype,"length"),Nr=new Set(["[object BigInt64Array]","[object BigUint64Array]","[object Float32Array]","[object Float64Array]","[object Int8Array]","[object Int16Array]","[object Int32Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Uint16Array]","[object Uint32Array]"]);function R(r,s){let i=Array.isArray(r)||z(r)?new Set([...r.keys()].map(l=>l.toString())):void 0;return Object.entries(Sr(r)).filter(([l,u])=>!(i&&i.has(l)||s===1&&!u.enumerable)).map(([l])=>l)}a(R,"getOwnNonIndexProperties");var z=a(r=>g(r,"object")&&Nr.has(jr.call(r)),"isTypedArray");function g(r,s){return typeof r===s}a(g,"kind");var Dr=a(r=>{var s;return(s=r.constructor)==null?void 0:s.name},"getConstructorName"),P=a((r="",s="")=>`${r}${s} `,"getPrefix");function J(r={}){r.customInspectSymbol===void 0&&(r.customInspectSymbol=Symbol.for("edge-runtime.inspect.custom")),r.formatError===void 0&&(r.formatError=n=>{var t;let p=(t=n.stack)!=null?t:Error.prototype.toString.call(n);return String(p)});let{formatError:s,customInspectSymbol:i}=r;function l(...n){let[t]=n;if(!g(t,"string"))return w(t,i)?l(t[i]({format:l})):n.map(o=>A(o,{customInspectSymbol:i})).join(" ");let p=1,c=String(t).replace(/%[sjdOoif%]/g,o=>{if(o==="%%")return"%";if(p>=n.length)return o;switch(o){case"%s":{let e=n[p++];return w(e,i)?l(e[i]({format:l})):M(e)||x(e)||g(e,"bigint")?l(e):String(e)}case"%j":return Y(n[p++]);case"%d":{let e=n[p++];return g(e,"bigint")?l(e):String(Number(e))}case"%O":return A(n[p++],{customInspectSymbol:i});case"%o":return A(n[p++],{customInspectSymbol:i,showHidden:!0,depth:4});case"%i":{let e=n[p++];return g(e,"bigint")?l(e):String(parseInt(e,10))}case"%f":return String(parseFloat(n[p++]));default:return o}});for(let o=n[p];p<n.length;o=n[++p])o===null||!g(o,"object")?c+=" "+o:c+=" "+A(o);return c}a(l,"format");function u(n,t,p){if(w(t,i))return l(t[i]({format:l}));let c=U(t);if(c!==void 0)return c;if(n.seen.includes(t)){let o=1;return n.circular===void 0?(n.circular=new Map,n.circular.set(t,o)):(o=n.circular.get(t),o===void 0&&(o=n.circular.size+1,n.circular.set(t,o))),`[Circular *${o}]`}return h(n,t,p)}a(u,"formatValue");function h(n,t,p){let c=[],o=Dr(t),e="",S=a(()=>[],"formatter"),m=["",""],O=!0,tr=n.showHidden?0:1;if($r in t)if(O=!1,Array.isArray(t)){let b=o!=="Array"?P(o,`(${t.length})`):"";if(c=R(t,tr),m=[`${b}[`,"]"],t.length===0&&c.length===0)return`${m[0]}]`;S=Q}else if(q(t)){let b=wr.call(t),_=P(o,`(${b})`);if(c=G(t,n.showHidden),S=Z,b===0&&c.length===0)return`${_}{}`;m=[`${_}{`,"}"]}else if(K(t)){let b=Pr.call(t),_=P(o,`(${b})`);if(c=G(t,n.showHidden),S=rr,b===0&&c.length===0)return`${_}{}`;m=[`${_}{`,"}"]}else if(z(t)){c=R(t,tr);let b=Ir.call(t);if(m=[`${P(o,`(${b})`)}[`,"]"],t.length===0&&c.length===0)return`${m[0]}]`;S=X.bind(null,b)}else O=!0;if(O)if(c=G(t,n.showHidden),m=["{","}"],o===void 0){if(c.length===0)return"[Object: null prototype] {}"}else if(o==="Object"){if(c.length===0)return"{}"}else if(g(t,"function")){if(e=`[Function${t.name?": "+t.name:""}]`,c.length===0)return e}else if(k(t)){if(e=RegExp.prototype.toString.call(t),c.length===0)return e;e=" "+e}else if(M(t)){if(e=Number.isNaN(mr.call(t))?Date.prototype.toString.call(t):dr.call(t),c.length===0)return e;e=" "+e}else if(x(t))e=s(t),c=c.filter(b=>b!=="name");else if(w(t,n.customInspectSymbol)){if(e=l(t[n.customInspectSymbol]({format:l})),c.length===0)return e;e=" "+e}else m[0]=`${P(o)}{`;if(p&&p<0)return k(t)?RegExp.prototype.toString.call(t):"[Object]";n.seen.push(t);let er=new Set(c),nr=S(n,t,p,er,c);for(let b=0;b<c.length;b++)nr.push(L(n,t,p,er,c[b],!1));if(n.circular!==void 0){let b=n.circular.get(t);if(b!==void 0){let _=`<ref *${b}>`;e=e===""?_:`${_} ${e}`}}return n.seen.pop(),W(nr,e,m)}a(h,"formatRaw");function A(n,t){return t=Object.assign({seen:[],depth:2},t),u(t,n,t.depth)}a(A,"inspect");function L(n,t,p,c,o,e){let S,m,O=Object.getOwnPropertyDescriptor(t,o)||{value:t[o]};return O.value!==void 0?m=u(n,O.value,p):O.get?m=O.set?"[Getter/Setter]":"[Getter]":O.set?m="[Setter]":m="undefined",e?m:(g(o,"symbol")?S=`[${Er.call(o)}]`:c.has(o)?S=o:S="["+o+"]",`${S}: ${m}`)}a(L,"formatProperty");function Q(n,t,p,c){let o=[];for(let e=0;e<t.length;++e)Object.prototype.hasOwnProperty.call(t,String(e))?o.push(L(n,t,p,c,String(e),!0)):o.push("");return o}a(Q,"formatArray");function X(n,t,p,c){let o=new Array(n);for(let e=0;e<n;++e)o[e]=p.length>0&&g(p[0],"number")?String(p[e]):H(p[e]);if(t.showHidden)for(let e of["BYTES_PER_ELEMENT","length","byteLength","byteOffset","buffer"]){let S=u(t,p[e],c);D.call(o,`[${String(e)}]: ${S}`)}return o}a(X,"formatTypedArray");function Z(n,t,p){let c=[];for(let o of t)D.call(c,u(n,o,p));return c}a(Z,"formatSet");function rr(n,t,p){let c=[];for(let{0:o,1:e}of t)c.push(`${u(n,o,p)} => ${u(n,e,p)}`);return c}return a(rr,"formatMap"),l}a(J,"createFormat");var H=a(r=>`${r}n`,"formatBigInt");function U(r){if(r===null)return"null";if(r===void 0)return"undefined";if(g(r,"string"))return`\'${JSON.stringify(r).replace(/^"|"$/g,"").replace(/\'/g,"\\\\\'").replace(/\\\\"/g,\'"\')}\'`;if(g(r,"boolean")||g(r,"number"))return""+r;if(g(r,"bigint"))return H(r);if(g(r,"symbol"))return r.toString()}a(U,"formatPrimitive");function w(r,s){return r!==null&&g(r,"object")&&s in r&&g(r[s],"function")}a(w,"hasCustomSymbol");function k(r){return g(r,"object")&&Object.prototype.toString.call(r)==="[object RegExp]"}a(k,"isRegExp");function M(r){return g(r,"object")&&Object.prototype.toString.call(r)==="[object Date]"}a(M,"isDate");function x(r){return g(r,"object")&&(Object.prototype.toString.call(r)==="[object Error]"||r instanceof Error)}a(x,"isError");function K(r){return g(r,"object")&&Object.prototype.toString.call(r)==="[object Map]"}a(K,"isMap");function q(r){return g(r,"object")&&Object.prototype.toString.call(r)==="[object Set]"}a(q,"isSet");function V(r,s,i){let u=r.length+s;if(u+r.length>80)return!1;for(let h=0;h<r.length;h++)if(u+=r[h].length,u>80)return!1;return i===""||!Ar.call(i,`\n`)}a(V,"isBelowBreakLength");function W(r,s,i){let l=r.length+i[0].length+s.length+10;return V(r,l,s)?((s?s+" ":"")+i[0]+" "+r.join(", ")+" "+i[1]).trim():(s?s+" ":"")+i[0]+`\n `+r.join(`,\n `)+`\n`+i[1]}a(W,"reduceToSingleString");function Y(r){return Array.isArray(r)&&(r=r.map(s=>JSON.parse(JSON.stringify(s,C())))),JSON.stringify(r,C())}a(Y,"safeStringify");function C(){let r=new WeakSet;return(s,i)=>{if(i!==null&&g(i,"object")){if(r.has(i))return"[Circular]";r.add(i)}return i}}a(C,"makeCircularReplacer");function G(r,s=!1){let i,l=Or(r);if(s)i=F(r),l.length!==0&&D.apply(i,l);else{try{i=_r(r)}catch{i=F(r)}if(l.length!==0){let u=a(h=>hr.call(r,h),"filter");D.apply(i,br.call(l,u))}}return i}a(G,"getKeys")}}),sr={};Lr(sr,{console:()=>Wr});module.exports=Tr(sr);cr();var Fr=vr(Br()),$=(0,Fr.createFormat)(),zr=console.error.bind(console),Jr=console.log.bind(console),Hr=console.assert.bind(console),Ur=console.time.bind(console),Kr=console.timeEnd.bind(console),qr=console.timeLog.bind(console),Vr=console.trace.bind(console),or=a((...f)=>zr($(...f)),"error"),v=a((...f)=>Jr($(...f)),"log"),Wr={assert:(f,...y)=>Hr(f,$(...y)),count:console.count.bind(console),debug:v,dir:console.dir.bind(console),error:or,info:v,log:v,time:(...f)=>Ur($(...f)),timeEnd:(...f)=>Kr($(...f)),timeLog:qr,trace:Vr,warn:or};\n'},402:e=>{e.exports='"use strict";var s=Object.defineProperty,p=Object.getOwnPropertyDescriptor,_=Object.getOwnPropertyNames,u=Object.prototype.hasOwnProperty,a=(t,e)=>s(t,"name",{value:e,configurable:!0}),h=(t,e)=>{for(var r in e)s(t,r,{get:e[r],enumerable:!0})},l=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of _(e))!u.call(t,n)&&n!==r&&s(t,n,{get:()=>e[n],enumerable:!(o=p(e,n))||o.enumerable});return t},P=t=>l(s({},"__esModule",{value:!0}),t),i={};h(i,{FetchEvent:()=>E,PromiseRejectionEvent:()=>j});module.exports=P(i);var c=class extends Event{constructor(e){super("fetch"),this.request=e,this.response=null,this.awaiting=new Set}respondWith=e=>{this.response=e};waitUntil=e=>{this.awaiting.add(e),e.finally(()=>this.awaiting.delete(e))}};a(c,"FetchEvent");var E=c,v=class extends Event{constructor(e,r){super(e,{cancelable:!0}),this.promise=r.promise,this.reason=r.reason}};a(v,"PromiseRejectionEvent");var j=v;\n'},963:(module,__unused_webpack_exports,__nccwpck_require__)=>{"use strict";var __create=Object.create;var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __getProtoOf=Object.getPrototypeOf;var __hasOwnProp=Object.prototype.hasOwnProperty;var __name=(e,A)=>__defProp(e,"name",{value:A,configurable:true});var __esm=(e,A)=>function __init(){return e&&(A=(0,e[__getOwnPropNames(e)[0]])(e=0)),A};var __commonJS=(e,A)=>function __require(){return A||(0,e[__getOwnPropNames(e)[0]])((A={exports:{}}).exports,A),A.exports};var __export=(e,A)=>{for(var t in A)__defProp(e,t,{get:A[t],enumerable:true})};var __copyProps=(e,A,t,r)=>{if(A&&typeof A==="object"||typeof A==="function"){for(let i of __getOwnPropNames(A))if(!__hasOwnProp.call(e,i)&&i!==t)__defProp(e,i,{get:()=>A[i],enumerable:!(r=__getOwnPropDesc(A,i))||r.enumerable})}return e};var __toESM=(e,A,t)=>(t=e!=null?__create(__getProtoOf(e)):{},__copyProps(A||!e||!e.__esModule?__defProp(t,"default",{value:e,enumerable:true}):t,e));var __toCommonJS=e=>__copyProps(__defProp({},"__esModule",{value:true}),e);var __accessCheck=(e,A,t)=>{if(!A.has(e))throw TypeError("Cannot "+t)};var __privateIn=(e,A)=>{if(Object(A)!==A)throw TypeError('Cannot use the "in" operator on this value');return e.has(A)};var __privateGet=(e,A,t)=>{__accessCheck(e,A,"read from private field");return t?t.call(e):A.get(e)};var __privateAdd=(e,A,t)=>{if(A.has(e))throw TypeError("Cannot add the same private member more than once");A instanceof WeakSet?A.add(e):A.set(e,t)};var __privateSet=(e,A,t,r)=>{__accessCheck(e,A,"write to private field");r?r.call(e,t):A.set(e,t);return t};var __privateMethod=(e,A,t)=>{__accessCheck(e,A,"access private method");return t};var define_process_default;var init_define_process=__esm({"<define:process>"(){define_process_default={version:"v18.20.5",env:{},versions:{node:" 18.20.5"}}}});var require_symbols=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/symbols.js"(e,A){"use strict";init_define_process();A.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 require_errors=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/errors.js"(e,A){"use strict";init_define_process();var t=class _UndiciError extends Error{constructor(e){super(e);this.name="UndiciError";this.code="UND_ERR"}};__name(t,"UndiciError");var r=t;var i=class _ConnectTimeoutError extends r{constructor(e){super(e);this.name="ConnectTimeoutError";this.message=e||"Connect Timeout Error";this.code="UND_ERR_CONNECT_TIMEOUT"}};__name(i,"ConnectTimeoutError");var s=i;var n=class _HeadersTimeoutError extends r{constructor(e){super(e);this.name="HeadersTimeoutError";this.message=e||"Headers Timeout Error";this.code="UND_ERR_HEADERS_TIMEOUT"}};__name(n,"HeadersTimeoutError");var o=n;var a=class _HeadersOverflowError extends r{constructor(e){super(e);this.name="HeadersOverflowError";this.message=e||"Headers Overflow Error";this.code="UND_ERR_HEADERS_OVERFLOW"}};__name(a,"HeadersOverflowError");var c=a;var l=class _BodyTimeoutError extends r{constructor(e){super(e);this.name="BodyTimeoutError";this.message=e||"Body Timeout Error";this.code="UND_ERR_BODY_TIMEOUT"}};__name(l,"BodyTimeoutError");var g=l;var Q=class _ResponseStatusCodeError extends r{constructor(e,A,t,r){super(e);this.name="ResponseStatusCodeError";this.message=e||"Response Status Code Error";this.code="UND_ERR_RESPONSE_STATUS_CODE";this.body=r;this.status=A;this.statusCode=A;this.headers=t}};__name(Q,"ResponseStatusCodeError");var u=Q;var E=class _InvalidArgumentError extends r{constructor(e){super(e);this.name="InvalidArgumentError";this.message=e||"Invalid Argument Error";this.code="UND_ERR_INVALID_ARG"}};__name(E,"InvalidArgumentError");var B=E;var h=class _InvalidReturnValueError extends r{constructor(e){super(e);this.name="InvalidReturnValueError";this.message=e||"Invalid Return Value Error";this.code="UND_ERR_INVALID_RETURN_VALUE"}};__name(h,"InvalidReturnValueError");var C=h;var I=class _AbortError extends r{constructor(e){super(e);this.name="AbortError";this.message=e||"The operation was aborted"}};__name(I,"AbortError");var d=I;var f=class _RequestAbortedError extends d{constructor(e){super(e);this.name="AbortError";this.message=e||"Request aborted";this.code="UND_ERR_ABORTED"}};__name(f,"RequestAbortedError");var p=f;var m=class _InformationalError extends r{constructor(e){super(e);this.name="InformationalError";this.message=e||"Request information";this.code="UND_ERR_INFO"}};__name(m,"InformationalError");var _=m;var w=class _RequestContentLengthMismatchError extends r{constructor(e){super(e);this.name="RequestContentLengthMismatchError";this.message=e||"Request body length does not match content-length header";this.code="UND_ERR_REQ_CONTENT_LENGTH_MISMATCH"}};__name(w,"RequestContentLengthMismatchError");var y=w;var b=class _ResponseContentLengthMismatchError extends r{constructor(e){super(e);this.name="ResponseContentLengthMismatchError";this.message=e||"Response body length does not match content-length header";this.code="UND_ERR_RES_CONTENT_LENGTH_MISMATCH"}};__name(b,"ResponseContentLengthMismatchError");var k=b;var D=class _ClientDestroyedError extends r{constructor(e){super(e);this.name="ClientDestroyedError";this.message=e||"The client is destroyed";this.code="UND_ERR_DESTROYED"}};__name(D,"ClientDestroyedError");var R=D;var v=class _ClientClosedError extends r{constructor(e){super(e);this.name="ClientClosedError";this.message=e||"The client is closed";this.code="UND_ERR_CLOSED"}};__name(v,"ClientClosedError");var S=v;var F=class _SocketError extends r{constructor(e,A){super(e);this.name="SocketError";this.message=e||"Socket error";this.code="UND_ERR_SOCKET";this.socket=A}};__name(F,"SocketError");var M=F;var N=class _NotSupportedError extends r{constructor(e){super(e);this.name="NotSupportedError";this.message=e||"Not supported error";this.code="UND_ERR_NOT_SUPPORTED"}};__name(N,"NotSupportedError");var U=N;var L=class _BalancedPoolMissingUpstreamError extends r{constructor(e){super(e);this.name="MissingUpstreamError";this.message=e||"No upstream has been added to the BalancedPool";this.code="UND_ERR_BPL_MISSING_UPSTREAM"}};__name(L,"BalancedPoolMissingUpstreamError");var T=L;var G=class _HTTPParserError extends Error{constructor(e,A,t){super(e);this.name="HTTPParserError";this.code=A?`HPE_${A}`:void 0;this.data=t?t.toString():void 0}};__name(G,"HTTPParserError");var H=G;var Y=class _ResponseExceededMaxSizeError extends r{constructor(e){super(e);this.name="ResponseExceededMaxSizeError";this.message=e||"Response content exceeded max size";this.code="UND_ERR_RES_EXCEEDED_MAX_SIZE"}};__name(Y,"ResponseExceededMaxSizeError");var J=Y;var q=class _RequestRetryError extends r{constructor(e,A,{headers:t,data:r}){super(e);this.name="RequestRetryError";this.message=e||"Request retry error";this.code="UND_ERR_REQ_RETRY";this.statusCode=A;this.data=r;this.headers=t}};__name(q,"RequestRetryError");var x=q;var V=class _ResponseError extends r{constructor(e,A,{headers:t,data:r}){super(e);this.name="ResponseError";this.message=e||"Response error";this.code="UND_ERR_RESPONSE";this.statusCode=A;this.data=r;this.headers=t}};__name(V,"ResponseError");var W=V;var O=class _SecureProxyConnectionError extends r{constructor(e,A,t){super(A,{cause:e,...t??{}});this.name="SecureProxyConnectionError";this.message=A||"Secure Proxy Connection failed";this.code="UND_ERR_PRX_TLS";this.cause=e}};__name(O,"SecureProxyConnectionError");var P=O;A.exports={AbortError:d,HTTPParserError:H,UndiciError:r,HeadersTimeoutError:o,HeadersOverflowError:c,BodyTimeoutError:g,RequestContentLengthMismatchError:y,ConnectTimeoutError:s,ResponseStatusCodeError:u,InvalidArgumentError:B,InvalidReturnValueError:C,RequestAbortedError:p,ClientDestroyedError:R,ClientClosedError:S,InformationalError:_,SocketError:M,NotSupportedError:U,ResponseContentLengthMismatchError:k,BalancedPoolMissingUpstreamError:T,ResponseExceededMaxSizeError:J,RequestRetryError:x,ResponseError:W,SecureProxyConnectionError:P}}});var require_constants=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/constants.js"(e,A){"use strict";init_define_process();var t={};var r=["Accept","Accept-Encoding","Accept-Language","Accept-Ranges","Access-Control-Allow-Credentials","Access-Control-Allow-Headers","Access-Control-Allow-Methods","Access-Control-Allow-Origin","Access-Control-Expose-Headers","Access-Control-Max-Age","Access-Control-Request-Headers","Access-Control-Request-Method","Age","Allow","Alt-Svc","Alt-Used","Authorization","Cache-Control","Clear-Site-Data","Connection","Content-Disposition","Content-Encoding","Content-Language","Content-Length","Content-Location","Content-Range","Content-Security-Policy","Content-Security-Policy-Report-Only","Content-Type","Cookie","Cross-Origin-Embedder-Policy","Cross-Origin-Opener-Policy","Cross-Origin-Resource-Policy","Date","Device-Memory","Downlink","ECT","ETag","Expect","Expect-CT","Expires","Forwarded","From","Host","If-Match","If-Modified-Since","If-None-Match","If-Range","If-Unmodified-Since","Keep-Alive","Last-Modified","Link","Location","Max-Forwards","Origin","Permissions-Policy","Pragma","Proxy-Authenticate","Proxy-Authorization","RTT","Range","Referer","Referrer-Policy","Refresh","Retry-After","Sec-WebSocket-Accept","Sec-WebSocket-Extensions","Sec-WebSocket-Key","Sec-WebSocket-Protocol","Sec-WebSocket-Version","Server","Server-Timing","Service-Worker-Allowed","Service-Worker-Navigation-Preload","Set-Cookie","SourceMap","Strict-Transport-Security","Supports-Loading-Mode","TE","Timing-Allow-Origin","Trailer","Transfer-Encoding","Upgrade","Upgrade-Insecure-Requests","User-Agent","Vary","Via","WWW-Authenticate","X-Content-Type-Options","X-DNS-Prefetch-Control","X-Frame-Options","X-Permitted-Cross-Domain-Policies","X-Powered-By","X-Requested-With","X-XSS-Protection"];for(let e=0;e<r.length;++e){const A=r[e];const i=A.toLowerCase();t[A]=t[i]=i}Object.setPrototypeOf(t,null);A.exports={wellknownHeaderNames:r,headerNameLowerCasedRecord:t}}});var require_tree=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/tree.js"(e,A){"use strict";init_define_process();var{wellknownHeaderNames:t,headerNameLowerCasedRecord:r}=require_constants();var i=class _TstNode{value=null;left=null;middle=null;right=null;code;constructor(e,A,t){if(t===void 0||t>=e.length){throw new TypeError("Unreachable")}const r=this.code=e.charCodeAt(t);if(r>127){throw new TypeError("key must be ascii string")}if(e.length!==++t){this.middle=new _TstNode(e,A,t)}else{this.value=A}}add(e,A){const t=e.length;if(t===0){throw new TypeError("Unreachable")}let r=0;let i=this;while(true){const s=e.charCodeAt(r);if(s>127){throw new TypeError("key must be ascii string")}if(i.code===s){if(t===++r){i.value=A;break}else if(i.middle!==null){i=i.middle}else{i.middle=new _TstNode(e,A,r);break}}else if(i.code<s){if(i.left!==null){i=i.left}else{i.left=new _TstNode(e,A,r);break}}else if(i.right!==null){i=i.right}else{i.right=new _TstNode(e,A,r);break}}}search(e){const A=e.length;let t=0;let r=this;while(r!==null&&t<A){let i=e[t];if(i<=90&&i>=65){i|=32}while(r!==null){if(i===r.code){if(A===++t){return r}r=r.middle;break}r=r.code<i?r.left:r.right}}return null}};__name(i,"TstNode");var s=i;var n=class _TernarySearchTree{node=null;insert(e,A){if(this.node===null){this.node=new s(e,A,0)}else{this.node.add(e,A)}}lookup(e){return this.node?.search(e)?.value??null}};__name(n,"TernarySearchTree");var o=n;var a=new o;for(let e=0;e<t.length;++e){const A=r[t[e]];a.insert(A,A)}A.exports={TernarySearchTree:o,tree:a}}});var require_util=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/util.js"(e,A){"use strict";init_define_process();var t=__nccwpck_require__(491);var{kDestroyed:r,kBodyUsed:i,kListeners:s,kBody:n}=require_symbols();var{IncomingMessage:o}=__nccwpck_require__(685);var a=__nccwpck_require__(781);var c=__nccwpck_require__(808);var{Blob:l}=__nccwpck_require__(300);var g=__nccwpck_require__(837);var{stringify:Q}=__nccwpck_require__(477);var{EventEmitter:u}=__nccwpck_require__(361);var{InvalidArgumentError:E}=require_errors();var{headerNameLowerCasedRecord:B}=require_constants();var{tree:h}=require_tree();var[C,I]=define_process_default.versions.node.split(".").map((e=>Number(e)));var d=class _BodyAsyncIterable{constructor(e){this[n]=e;this[i]=false}async*[Symbol.asyncIterator](){t(!this[i],"disturbed");this[i]=true;yield*this[n]}};__name(d,"BodyAsyncIterable");var f=d;function wrapRequestBody(e){if(isStream(e)){if(bodyLength(e)===0){e.on("data",(function(){t(false)}))}if(typeof e.readableDidRead!=="boolean"){e[i]=false;u.prototype.on.call(e,"data",(function(){this[i]=true}))}return e}else if(e&&typeof e.pipeTo==="function"){return new f(e)}else if(e&&typeof e!=="string"&&!ArrayBuffer.isView(e)&&isIterable(e)){return new f(e)}else{return e}}__name(wrapRequestBody,"wrapRequestBody");function nop(){}__name(nop,"nop");function isStream(e){return e&&typeof e==="object"&&typeof e.pipe==="function"&&typeof e.on==="function"}__name(isStream,"isStream");function isBlobLike(e){if(e===null){return false}else if(e instanceof l){return true}else if(typeof e!=="object"){return false}else{const A=e[Symbol.toStringTag];return(A==="Blob"||A==="File")&&("stream"in e&&typeof e.stream==="function"||"arrayBuffer"in e&&typeof e.arrayBuffer==="function")}}__name(isBlobLike,"isBlobLike");function buildURL(e,A){if(e.includes("?")||e.includes("#")){throw new Error('Query params cannot be passed when url already contains "?" or "#".')}const t=Q(A);if(t){e+="?"+t}return e}__name(buildURL,"buildURL");function isValidPort(e){const A=parseInt(e,10);return A===Number(e)&&A>=0&&A<=65535}__name(isValidPort,"isValidPort");function isHttpOrHttpsPrefixed(e){return e!=null&&e[0]==="h"&&e[1]==="t"&&e[2]==="t"&&e[3]==="p"&&(e[4]===":"||e[4]==="s"&&e[5]===":")}__name(isHttpOrHttpsPrefixed,"isHttpOrHttpsPrefixed");function parseURL(e){if(typeof e==="string"){e=new URL(e);if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new E("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}if(!e||typeof e!=="object"){throw new E("Invalid URL: The URL argument must be a non-null object.")}if(!(e instanceof URL)){if(e.port!=null&&e.port!==""&&isValidPort(e.port)===false){throw new E("Invalid URL: port must be a valid integer or a string representation of an integer.")}if(e.path!=null&&typeof e.path!=="string"){throw new E("Invalid URL path: the path must be a string or null/undefined.")}if(e.pathname!=null&&typeof e.pathname!=="string"){throw new E("Invalid URL pathname: the pathname must be a string or null/undefined.")}if(e.hostname!=null&&typeof e.hostname!=="string"){throw new E("Invalid URL hostname: the hostname must be a string or null/undefined.")}if(e.origin!=null&&typeof e.origin!=="string"){throw new E("Invalid URL origin: the origin must be a string or null/undefined.")}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new E("Invalid URL protocol: the URL must start with `http:` or `https:`.")}const A=e.port!=null?e.port:e.protocol==="https:"?443:80;let t=e.origin!=null?e.origin:`${e.protocol||""}//${e.hostname||""}:${A}`;let r=e.path!=null?e.path:`${e.pathname||""}${e.search||""}`;if(t[t.length-1]==="/"){t=t.slice(0,t.length-1)}if(r&&r[0]!=="/"){r=`/${r}`}return new URL(`${t}${r}`)}if(!isHttpOrHttpsPrefixed(e.origin||e.protocol)){throw new E("Invalid URL protocol: the URL must start with `http:` or `https:`.")}return e}__name(parseURL,"parseURL");function parseOrigin(e){e=parseURL(e);if(e.pathname!=="/"||e.search||e.hash){throw new E("invalid url")}return e}__name(parseOrigin,"parseOrigin");function getHostname(e){if(e[0]==="["){const A=e.indexOf("]");t(A!==-1);return e.substring(1,A)}const A=e.indexOf(":");if(A===-1)return e;return e.substring(0,A)}__name(getHostname,"getHostname");function getServerName(e){if(!e){return null}t(typeof e==="string");const A=getHostname(e);if(c.isIP(A)){return""}return A}__name(getServerName,"getServerName");function deepClone(e){return JSON.parse(JSON.stringify(e))}__name(deepClone,"deepClone");function isAsyncIterable(e){return!!(e!=null&&typeof e[Symbol.asyncIterator]==="function")}__name(isAsyncIterable,"isAsyncIterable");function isIterable(e){return!!(e!=null&&(typeof e[Symbol.iterator]==="function"||typeof e[Symbol.asyncIterator]==="function"))}__name(isIterable,"isIterable");function bodyLength(e){if(e==null){return 0}else if(isStream(e)){const A=e._readableState;return A&&A.objectMode===false&&A.ended===true&&Number.isFinite(A.length)?A.length:null}else if(isBlobLike(e)){return e.size!=null?e.size:null}else if(isBuffer(e)){return e.byteLength}return null}__name(bodyLength,"bodyLength");function isDestroyed(e){return e&&!!(e.destroyed||e[r]||a.isDestroyed?.(e))}__name(isDestroyed,"isDestroyed");function destroy(e,A){if(e==null||!isStream(e)||isDestroyed(e)){return}if(typeof e.destroy==="function"){if(Object.getPrototypeOf(e).constructor===o){e.socket=null}e.destroy(A)}else if(A){queueMicrotask((()=>{e.emit("error",A)}))}if(e.destroyed!==true){e[r]=true}}__name(destroy,"destroy");var p=/timeout=(\d+)/;function parseKeepAliveTimeout(e){const A=e.toString().match(p);return A?parseInt(A[1],10)*1e3:null}__name(parseKeepAliveTimeout,"parseKeepAliveTimeout");function headerNameToString(e){return typeof e==="string"?B[e]??e.toLowerCase():h.lookup(e)??e.toString("latin1").toLowerCase()}__name(headerNameToString,"headerNameToString");function bufferToLowerCasedHeaderName(e){return h.lookup(e)??e.toString("latin1").toLowerCase()}__name(bufferToLowerCasedHeaderName,"bufferToLowerCasedHeaderName");function parseHeaders(e,A){if(A===void 0)A={};for(let t=0;t<e.length;t+=2){const r=headerNameToString(e[t]);let i=A[r];if(i){if(typeof i==="string"){i=[i];A[r]=i}i.push(e[t+1].toString("utf8"))}else{const i=e[t+1];if(typeof i==="string"){A[r]=i}else{A[r]=Array.isArray(i)?i.map((e=>e.toString("utf8"))):i.toString("utf8")}}}if("content-length"in A&&"content-disposition"in A){A["content-disposition"]=Buffer.from(A["content-disposition"]).toString("latin1")}return A}__name(parseHeaders,"parseHeaders");function parseRawHeaders(e){const A=e.length;const t=new Array(A);let r=false;let i=-1;let s;let n;let o=0;for(let A=0;A<e.length;A+=2){s=e[A];n=e[A+1];typeof s!=="string"&&(s=s.toString());typeof n!=="string"&&(n=n.toString("utf8"));o=s.length;if(o===14&&s[7]==="-"&&(s==="content-length"||s.toLowerCase()==="content-length")){r=true}else if(o===19&&s[7]==="-"&&(s==="content-disposition"||s.toLowerCase()==="content-disposition")){i=A+1}t[A]=s;t[A+1]=n}if(r&&i!==-1){t[i]=Buffer.from(t[i]).toString("latin1")}return t}__name(parseRawHeaders,"parseRawHeaders");function isBuffer(e){return e instanceof Uint8Array||Buffer.isBuffer(e)}__name(isBuffer,"isBuffer");function validateHandler(e,A,t){if(!e||typeof e!=="object"){throw new E("handler must be an object")}if(typeof e.onConnect!=="function"){throw new E("invalid onConnect method")}if(typeof e.onError!=="function"){throw new E("invalid onError method")}if(typeof e.onBodySent!=="function"&&e.onBodySent!==void 0){throw new E("invalid onBodySent method")}if(t||A==="CONNECT"){if(typeof e.onUpgrade!=="function"){throw new E("invalid onUpgrade method")}}else{if(typeof e.onHeaders!=="function"){throw new E("invalid onHeaders method")}if(typeof e.onData!=="function"){throw new E("invalid onData method")}if(typeof e.onComplete!=="function"){throw new E("invalid onComplete method")}}}__name(validateHandler,"validateHandler");function isDisturbed(e){return!!(e&&(a.isDisturbed(e)||e[i]))}__name(isDisturbed,"isDisturbed");function isErrored(e){return!!(e&&a.isErrored(e))}__name(isErrored,"isErrored");function isReadable(e){return!!(e&&a.isReadable(e))}__name(isReadable,"isReadable");function getSocketInfo(e){return{localAddress:e.localAddress,localPort:e.localPort,remoteAddress:e.remoteAddress,remotePort:e.remotePort,remoteFamily:e.remoteFamily,timeout:e.timeout,bytesWritten:e.bytesWritten,bytesRead:e.bytesRead}}__name(getSocketInfo,"getSocketInfo");function ReadableStreamFrom(e){let A;return new ReadableStream({async start(){A=e[Symbol.asyncIterator]()},async pull(e){const{done:t,value:r}=await A.next();if(t){queueMicrotask((()=>{e.close();e.byobRequest?.respond(0)}))}else{const A=Buffer.isBuffer(r)?r:Buffer.from(r);if(A.byteLength){e.enqueue(new Uint8Array(A))}}return e.desiredSize>0},async cancel(e){await A.return()},type:"bytes"})}__name(ReadableStreamFrom,"ReadableStreamFrom");function isFormDataLike(e){return e&&typeof e==="object"&&typeof e.append==="function"&&typeof e.delete==="function"&&typeof e.get==="function"&&typeof e.getAll==="function"&&typeof e.has==="function"&&typeof e.set==="function"&&e[Symbol.toStringTag]==="FormData"}__name(isFormDataLike,"isFormDataLike");function addAbortListener(e,A){if("addEventListener"in e){e.addEventListener("abort",A,{once:true});return()=>e.removeEventListener("abort",A)}e.addListener("abort",A);return()=>e.removeListener("abort",A)}__name(addAbortListener,"addAbortListener");var m=typeof String.prototype.toWellFormed==="function";var _=typeof String.prototype.isWellFormed==="function";function toUSVString(e){return m?`${e}`.toWellFormed():g.toUSVString(e)}__name(toUSVString,"toUSVString");function isUSVString(e){return _?`${e}`.isWellFormed():toUSVString(e)===`${e}`}__name(isUSVString,"isUSVString");function isTokenCharCode(e){switch(e){case 34:case 40:case 41:case 44:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 123:case 125:return false;default:return e>=33&&e<=126}}__name(isTokenCharCode,"isTokenCharCode");function isValidHTTPToken(e){if(e.length===0){return false}for(let A=0;A<e.length;++A){if(!isTokenCharCode(e.charCodeAt(A))){return false}}return true}__name(isValidHTTPToken,"isValidHTTPToken");var w=/[^\t\x20-\x7e\x80-\xff]/;function isValidHeaderValue(e){return!w.test(e)}__name(isValidHeaderValue,"isValidHeaderValue");function parseRangeHeader(e){if(e==null||e==="")return{start:0,end:null,size:null};const A=e?e.match(/^bytes (\d+)-(\d+)\/(\d+)?$/):null;return A?{start:parseInt(A[1]),end:A[2]?parseInt(A[2]):null,size:A[3]?parseInt(A[3]):null}:null}__name(parseRangeHeader,"parseRangeHeader");function addListener(e,A,t){const r=e[s]??=[];r.push([A,t]);e.on(A,t);return e}__name(addListener,"addListener");function removeAllListeners(e){for(const[A,t]of e[s]??[]){e.removeListener(A,t)}e[s]=null}__name(removeAllListeners,"removeAllListeners");function errorRequest(e,A,r){try{A.onError(r);t(A.aborted)}catch(A){e.emit("error",A)}}__name(errorRequest,"errorRequest");var y=Object.create(null);y.enumerable=true;var b={delete:"DELETE",DELETE:"DELETE",get:"GET",GET:"GET",head:"HEAD",HEAD:"HEAD",options:"OPTIONS",OPTIONS:"OPTIONS",post:"POST",POST:"POST",put:"PUT",PUT:"PUT"};var k={...b,patch:"patch",PATCH:"PATCH"};Object.setPrototypeOf(b,null);Object.setPrototypeOf(k,null);A.exports={kEnumerableProperty:y,nop:nop,isDisturbed:isDisturbed,isErrored:isErrored,isReadable:isReadable,toUSVString:toUSVString,isUSVString:isUSVString,isBlobLike:isBlobLike,parseOrigin:parseOrigin,parseURL:parseURL,getServerName:getServerName,isStream:isStream,isIterable:isIterable,isAsyncIterable:isAsyncIterable,isDestroyed:isDestroyed,headerNameToString:headerNameToString,bufferToLowerCasedHeaderName:bufferToLowerCasedHeaderName,addListener:addListener,removeAllListeners:removeAllListeners,errorRequest:errorRequest,parseRawHeaders:parseRawHeaders,parseHeaders:parseHeaders,parseKeepAliveTimeout:parseKeepAliveTimeout,destroy:destroy,bodyLength:bodyLength,deepClone:deepClone,ReadableStreamFrom:ReadableStreamFrom,isBuffer:isBuffer,validateHandler:validateHandler,getSocketInfo:getSocketInfo,isFormDataLike:isFormDataLike,buildURL:buildURL,addAbortListener:addAbortListener,isValidHTTPToken:isValidHTTPToken,isValidHeaderValue:isValidHeaderValue,isTokenCharCode:isTokenCharCode,parseRangeHeader:parseRangeHeader,normalizedMethodRecordsBase:b,normalizedMethodRecords:k,isValidPort:isValidPort,isHttpOrHttpsPrefixed:isHttpOrHttpsPrefixed,nodeMajor:C,nodeMinor:I,safeHTTPMethods:["GET","HEAD","OPTIONS","TRACE"],wrapRequestBody:wrapRequestBody}}});var require_diagnostics=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/core/diagnostics.js"(e,A){"use strict";init_define_process();var t=__nccwpck_require__(643);var r=__nccwpck_require__(837);var i=r.debuglog("undici");var s=r.debuglog("fetch");var n=r.debuglog("websocket");var o=false;var a={beforeConnect:t.channel("undici:client:beforeConnect"),connected:t.channel("undici:client:connected"),connectError:t.channel("undici:client:connectError"),sendHeaders:t.channel("undici:client:sendHeaders"),create:t.channel("undici:request:create"),bodySent:t.channel("undici:request:bodySent"),headers:t.channel("undici:request:headers"),trailers:t.channel("undici:request:trailers"),error:t.channel("undici:request:error"),open:t.channel("undici:websocket:open"),close:t.channel("undici:websocket:close"),socketError:t.channel("undici:websocket:socket_error"),ping:t.channel("undici:websocket:ping"),pong:t.channel("undici:websocket:pong")};if(i.enabled||s.enabled){const e=s.enabled?s:i;t.channel("undici:client:beforeConnect").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s}}=A;e("connecting to %s using %s%s",`${s}${i?`:${i}`:""}`,r,t)}));t.channel("undici:client:connected").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s}}=A;e("connected to %s using %s%s",`${s}${i?`:${i}`:""}`,r,t)}));t.channel("undici:client:connectError").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s},error:n}=A;e("connection to %s using %s%s errored - %s",`${s}${i?`:${i}`:""}`,r,t,n.message)}));t.channel("undici:client:sendHeaders").subscribe((A=>{const{request:{method:t,path:r,origin:i}}=A;e("sending request to %s %s/%s",t,i,r)}));t.channel("undici:request:headers").subscribe((A=>{const{request:{method:t,path:r,origin:i},response:{statusCode:s}}=A;e("received response to %s %s/%s - HTTP %d",t,i,r,s)}));t.channel("undici:request:trailers").subscribe((A=>{const{request:{method:t,path:r,origin:i}}=A;e("trailers received from %s %s/%s",t,i,r)}));t.channel("undici:request:error").subscribe((A=>{const{request:{method:t,path:r,origin:i},error:s}=A;e("request to %s %s/%s errored - %s",t,i,r,s.message)}));o=true}if(n.enabled){if(!o){const e=i.enabled?i:n;t.channel("undici:client:beforeConnect").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s}}=A;e("connecting to %s%s using %s%s",s,i?`:${i}`:"",r,t)}));t.channel("undici:client:connected").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s}}=A;e("connected to %s%s using %s%s",s,i?`:${i}`:"",r,t)}));t.channel("undici:client:connectError").subscribe((A=>{const{connectParams:{version:t,protocol:r,port:i,host:s},error:n}=A;e("connection to %s%s using %s%s errored - %s",s,i?`:${i}`:"",r,t,n.message)}));t.channel("undici:client:sendHeaders").subscribe((A=>{const{request:{method:t,path:r,origin:i}}=A;e("sending request to %s %s/%s",t,i,r)}))}t.channel("undici:websocket:open").subscribe((e=>{const{address:{address:A,port:t}}=e;n("connection opened %s%s",A,t?`:${t}`:"")}));t.channel("undici:websocket:close").subscribe((e=>{const{websocket:A,code:t,reason:r}=e;n("closed connection to %s - %s %s",A.url,t,r)}));t.channel("undici:websocket:socket_error").subscribe((e=>{n("connection errored - %s",e.message)}));t.channel("undici:websocket:ping").subscribe((e=>{n("ping received")}));t.channel("undici:websocket:pong").subscribe((e=>{n("pong received")}))}A.exports={channels:a}}});var require_undici_core_request=__commonJS({"src/patches/undici-core-request.js"(e,A){"use strict";init_define_process();var{InvalidArgumentError:t,NotSupportedError:r}=require_errors();var i=__nccwpck_require__(491);var{isValidHTTPToken:s,isValidHeaderValue:n,isStream:o,destroy:a,isBuffer:c,isFormDataLike:l,isIterable:g,isBlobLike:Q,buildURL:u,validateHandler:E,getServerName:B,normalizedMethodRecords:h}=require_util();var{channels:C}=require_diagnostics();var{headerNameLowerCasedRecord:I}=require_constants();var d=/[^\u0021-\u00ff]/;var f=Symbol("handler");var p=class _Request2{constructor(e,{path:A,method:r,body:i,headers:n,query:I,idempotent:p,blocking:m,upgrade:_,headersTimeout:w,bodyTimeout:y,reset:b,throwOnError:k,expectContinue:D,servername:R},v){if(typeof A!=="string"){throw new t("path must be a string")}else if(A[0]!=="/"&&!(A.startsWith("http://")||A.startsWith("https://"))&&r!=="CONNECT"){throw new t("path must be an absolute URL or start with a slash")}else if(d.test(A)){throw new t("invalid request path")}if(typeof r!=="string"){throw new t("method must be a string")}else if(h[r]===void 0&&!s(r)){throw new t("invalid request method")}if(_&&typeof _!=="string"){throw new t("upgrade must be a string")}if(w!=null&&(!Number.isFinite(w)||w<0)){throw new t("invalid headersTimeout")}if(y!=null&&(!Number.isFinite(y)||y<0)){throw new t("invalid bodyTimeout")}if(b!=null&&typeof b!=="boolean"){throw new t("invalid reset")}if(D!=null&&typeof D!=="boolean"){throw new t("invalid expectContinue")}this.headersTimeout=w;this.bodyTimeout=y;this.throwOnError=k===true;this.method=r;this.abort=null;if(i==null){this.body=null}else if(o(i)){this.body=i;const e=this.body._readableState;if(!e||!e.autoDestroy){this.endHandler=__name((function autoDestroy(){a(this)}),"autoDestroy");this.body.on("end",this.endHandler)}this.errorHandler=e=>{if(this.abort){this.abort(e)}else{this.error=e}};this.body.on("error",this.errorHandler)}else if(c(i)){this.body=i.byteLength?i:null}else if(ArrayBuffer.isView(i)){this.body=i.buffer.byteLength?Buffer.from(i.buffer,i.byteOffset,i.byteLength):null}else if(i instanceof ArrayBuffer){this.body=i.byteLength?Buffer.from(i):null}else if(typeof i==="string"){this.body=i.length?Buffer.from(i):null}else if(l(i)||g(i)||Q(i)){this.body=i}else{throw new t("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable")}this.completed=false;this.aborted=false;this.upgrade=_||null;this.path=I?u(A,I):A;this.origin=e;this.idempotent=p==null?r==="HEAD"||r==="GET":p;this.blocking=m==null?false:m;this.reset=b==null?null:b;this.host=null;this.contentLength=null;this.contentType=null;this.headers=[];this.expectContinue=D!=null?D:false;if(Array.isArray(n)){if(n.length%2!==0){throw new t("headers array must be even")}for(let e=0;e<n.length;e+=2){processHeader(this,n[e],n[e+1])}}else if(n&&typeof n==="object"){if(n[Symbol.iterator]){for(const e of n){if(!Array.isArray(e)||e.length!==2){throw new t("headers must be in key-value pair format")}processHeader(this,e[0],e[1])}}else{const e=Object.keys(n);for(let A=0;A<e.length;++A){processHeader(this,e[A],n[e[A]])}}}else if(n!=null){throw new t("headers must be an object or an array")}E(v,r,_);this.servername=R||B(this.host);this[f]=v;if(C.create.hasSubscribers){C.create.publish({request:this})}}onBodySent(e){if(this[f].onBodySent){try{return this[f].onBodySent(e)}catch(e){this.abort(e)}}}onRequestSent(){if(C.bodySent.hasSubscribers){C.bodySent.publish({request:this})}if(this[f].onRequestSent){try{return this[f].onRequestSent()}catch(e){this.abort(e)}}}onConnect(e){i(!this.aborted);i(!this.completed);if(this.error){e(this.error)}else{this.abort=e;return this[f].onConnect(e)}}onResponseStarted(){return this[f].onResponseStarted?.()}onHeaders(e,A,t,r){i(!this.aborted);i(!this.completed);if(C.headers.hasSubscribers){C.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:r}})}try{return this[f].onHeaders(e,A,t,r)}catch(e){this.abort(e)}}onData(e){i(!this.aborted);i(!this.completed);try{return this[f].onData(e)}catch(e){this.abort(e);return false}}onUpgrade(e,A,t){i(!this.aborted);i(!this.completed);return this[f].onUpgrade(e,A,t)}onComplete(e){this.onFinally();i(!this.aborted);this.completed=true;if(C.trailers.hasSubscribers){C.trailers.publish({request:this,trailers:e})}try{return this[f].onComplete(e)}catch(e){this.onError(e)}}onError(e){this.onFinally();if(C.error.hasSubscribers){C.error.publish({request:this,error:e})}if(this.aborted){return}this.aborted=true;return this[f].onError(e)}onFinally(){if(this.errorHandler){this.body.off("error",this.errorHandler);this.errorHandler=null}if(this.endHandler){this.body.off("end",this.endHandler);this.endHandler=null}}addHeader(e,A){processHeader(this,e,A);return this}};__name(p,"Request");var m=p;function processHeader(e,A,i){if(i&&typeof i==="object"&&!Array.isArray(i)){throw new t(`invalid ${A} header`)}else if(i===void 0){return}let o=I[A];if(o===void 0){o=A.toLowerCase();if(I[o]===void 0&&!s(o)){throw new t("invalid header key")}}if(Array.isArray(i)){const e=[];for(let r=0;r<i.length;r++){if(typeof i[r]==="string"){if(!n(i[r])){throw new t(`invalid ${A} header`)}e.push(i[r])}else if(i[r]===null){e.push("")}else if(typeof i[r]==="object"){throw new t(`invalid ${A} header`)}else{e.push(`${i[r]}`)}}i=e}else if(typeof i==="string"){if(!n(i)){throw new t(`invalid ${A} header`)}}else if(i===null){i=""}else{i=`${i}`}if(e.host===null&&o==="host"){if(typeof i!=="string"){throw new t("invalid host header")}e.host=i}else if(e.contentLength===null&&o==="content-length"){e.contentLength=parseInt(i,10);if(!Number.isFinite(e.contentLength)){throw new t("invalid content-length header")}}else if(e.contentType===null&&o==="content-type"){e.contentType=i;e.headers.push(A,i)}else if(o==="connection"){const A=typeof i==="string"?i.toLowerCase():null;if(A!=="close"&&A!=="keep-alive"){throw new t("invalid connection header")}if(A==="close"){e.reset=true}}else if(o==="expect"){throw new r("expect header not supported")}else{e.headers.push(A,i)}}__name(processHeader,"processHeader");A.exports=m}});var require_dispatcher=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/dispatcher/dispatcher.js"(e,A){"use strict";init_define_process();var t=__nccwpck_require__(361);var r=class _Dispatcher extends t{dispatch(){throw new Error("not implemented")}close(){throw new Error("not implemented")}destroy(){throw new Error("not implemented")}compose(...e){const A=Array.isArray(e[0])?e[0]:e;let t=this.dispatch.bind(this);for(const e of A){if(e==null){continue}if(typeof e!=="function"){throw new TypeError(`invalid interceptor, expected function received ${typeof e}`)}t=e(t);if(t==null||typeof t!=="function"||t.length!==2){throw new TypeError("invalid interceptor")}}return new a(this,t)}};__name(r,"Dispatcher");var i=r;var s,n;var o=class _ComposedDispatcher extends i{constructor(e,A){super();__privateAdd(this,s,null);__privateAdd(this,n,null);__privateSet(this,s,e);__privateSet(this,n,A)}dispatch(...e){__privateGet(this,n).call(this,...e)}close(...e){return __privateGet(this,s).close(...e)}destroy(...e){return __privateGet(this,s).destroy(...e)}};s=new WeakMap;n=new WeakMap;__name(o,"ComposedDispatcher");var a=o;A.exports=i}});var require_dispatcher_base=__commonJS({"../../node_modules/.pnpm/undici@6.21.0/node_modules/undici/lib/dispatcher/dispatcher-base.js"(e,A){"use strict";init_define_process();var t=require_dispatcher();var{ClientDestroyedError:r,ClientClosedError:i,InvalidArgumentError:s}=require_errors();var{kDestroy:n,kClose:o,kClosed:a,kDestroyed:c,kDispatch:l,kInterceptors:g}=require_symbols();var Q=Symbol("onDestroyed");var u=Symbol("onClosed");var E=Symbol("Intercepted Dispatch");var B=class _DispatcherBase extends t{constructor(){super();this[c]=false;this[Q]=null;this[a]=false;this[u]=[]}get destroyed(){return this[c]}get closed(){return this[a]}get interceptors(){return this[g]}set interceptors(e){if(e){for(let A=e.length-1;A>=0;A--){const e=this[g][A];if(typeof e!=="funct