function_classPrivateMethodInitSpec(e,a){_checkPrivateRedeclaration(e,a),a.add(e);}function_classPrivateFieldInitSpec(e,t,a){_checkPrivateRedeclaration(e,t),t.set(e,a);}function_checkPrivateRedeclaration(e,t){if(t.has(e))thrownewTypeError("Cannot initialize the same private elements twice on an object");}function_classPrivateFieldGet(s,a){returns.get(_assertClassBrand(s,a));}function_classPrivateFieldSet(s,a,r){returns.set(_assertClassBrand(s,a),r),r;}function_assertClassBrand(e,t,n){if("function"==typeofe?e===t:e.has(t))returnarguments.length<3?t:n;thrownewTypeError("Private element is not present on this object");}lete,A,t,r,n,o,i,s;functiona(e,A,t,r){Object.defineProperty(e,A,{get:t,set:r,enumerable:!0,configurable:!0});}functionl(e){returne&&e.__esModule?e.default:e;}functionc(e,A,t){if("function"==typeofA&&(t=A,A={}),!t){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise(function(t,r){c(e,A||{},function(e,A){e?r(e):t(A);});});}tf(e,A||{},function(e,r){e&&("EACCES"===e.code||A&&A.ignoreErrors)&&(e=null,r=!1),t(e,r);});}functionE(e,A){lett;letr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=td.sync(e.command,{path:r[tp({env:r})],pathExt:A?rT.delimiter:void0});}catch(e){}finally{i&&process.chdir(n);}returnt&&(t=rT.resolve(o?e.options.cwd:"",t)),t;}functiong(e,A){returnObject.assign(Error(`${A}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${A}${e.command}`,path:e.command,spawnargs:e.args});}functionu(e,A){returnnL&&1===e&&!A.file?g(A.original,"spawn"):null;}functionh(e,A,t){letr=tC(e,A,t),n=r9.spawn(r.command,r.args,r.options);returntD.hookChildProcess(n,r),n;}functionQ(e){letA="string"==typeofe?"\n":"\n".charCodeAt(),t="string"==typeofe?"\r":"\r".charCodeAt();returne[e.length-1]===A&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e;}functionC(e={}){let{env:A=process.env,platform:t=process.platform}=e;return"win32"!==t?"PATH":Object.keys(A).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}functionI(e){returnnull!==e&&"object"==typeofe&&"function"==typeofe.pipe;}functiond(e){returnI(e)&&!1!==e.writable&&"function"==typeofe._write&&"object"==typeofe._writableState;}asyncfunctionB(e,A){if(!e)throwError("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tU(A);returnawaitnewPromise((A,n)=>{leto=e=>{e&&r.getBufferedLength()<=tF.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),n(e);};(async()=>{try{awaitob(e,r),A();}catch(e){o(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&o(newoR());});}),r.getBufferedValue();}functionf(e,A,t){letr;letn=o0(e,A,t),o=oJ(e,A),i=oH(e,A);oZ(i,n.options),of(n.options);try{r=l(r7).spawn(n.file,n.args,n.options);}catch(A){lete=new(l(r7).ChildProcess)();returno_(e,Promise.reject(n8({error:A,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1}))),e;}lets=oO(r),a=oB(r,n.options,s),c=op(r,n.options,a),E={isCanceled:!1};r.kill=og.bind(null,r.kill.bind(r)),r.cancel=oI.bind(null,r,E);letg=tS(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,g]=awaitoT(r,n.options,c),u=o1(n.options,a),h=o1(n.options,l),Q=o1(n.options,g);if(e||0!==A||null!==t){leta=n8({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:o,escapedCommand:i,parsed:n,timedOut:s,isCanceled:E.isCanceled||!!n.options.signal&&n.options.signal.aborted,killed:r.killed});if(!n.options.reject)returna;throwa;}return{command:o,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});returnov(r,n.options),r.all=oF(r,n.options),ow(r),o_(r,g),r;}functionp(e,A,t){letr;letn=o0(e,A,t),o=oJ(e,A),i=oH(e,A);oZ(i,n.options);lets=ok(n.options);try{r=l(r7).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){thrown8({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}leta=o1(n.options,r.stdout,r.error),c=o1(n.options,
`),(0,t4.info)(`${e}="${r}"wasaddedto"${iz}`));return;}process.env[e]=r;}async function J(e){switch(process.platform){case"win32":await _(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,t4.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitH(),await(0,tl.appendFile)(iz,`
`;try{await Promise.all([P(),W(e),V(e)]);}catch(A){(0,tt.warning)(`Failedtoadd${e}to.profileor.bashrc.Youshouldadditmanually:${A}`);}iZ=!0;}async function P(){let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";(await(0,t9.pathExists)(iz))&&!(await(0,tl.readFile)(iz,"utf8")).includes(e)&&(await(0,tl.appendFile)(iz,`
`),console.table({"compiler and analyzer":{tools:"--llvm, --gcc, --msvc, --vcvarsall, --cppcheck, --clangtidy, --clangformat"},"build system":{tools:"--cmake, --ninja, --meson, --make, --task, --bazel"},"package manager":{tools:"--vcpkg, --conan, --choco, --brew, --nala"},cache:{tools:"--cppcache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let o=n.architecture??process.arch,i=process.env.SETUP_CPP_DIR??S("~"),s=[],a=[],c=to.create({autoloadLocales:!0});to.addLocale(l(ti)),tr.addLocale(l(tn));let E=await sU();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!e8(e[A])),n=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==n))return!1;for(let A of t)e[A]=n;return!0;}(n,["llvm","clangtidy","clangformat"]))return(0,tt.error)("The same version must be used for llvm, clangformat and clangtidy"),1;U()&&"string"==typeof n.cppcheck&&"string"==typeof n.gcovr&&((0,tt.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eu("python-pygments"));let g=!1,u=!1;for(let e of s7){if(tA.isCI&&0!==a.length){u=!0;break;}let r=n[e];void 0!==r&&(A=Date.now(),g=await AF(e,r,E,o,i,s,a,6e4*Number.parseFloat(n.timeout??"20")),t=Date.now(),(0,tt.info)("took "+(c.format(A,t)||"0 seconds")));}if(!u){let e=n.compiler;if(void 0!==e){let A=Date.now();await A3(e,E,i,o,s,g,a);let t=Date.now();(0,tt.info)("took "+(c.format(A,t)||"0 seconds"));}}if(await q(),0===s.length&&0===a.length)return(0,tt.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of s)(0,tt.success)(e);for(let e of a)(0,tt.error)(e);if((0,tt.info)("setup-cpp finished"),!tA.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,tt.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,tt.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaitr,0===a.length?0:1;}varA6,A7,te,tA,tt,tr,tn,to,ti,ts,ta,tl,tc,tE,tg,tu,th,tQ,tC,tI,td,tB,tf,tp,ty,tm,tw,tb,tR,tD,tS,tk,tN,tv,tF,tL,tU,tT,tx,tM,t_,tO,tG,tY,tJ,tH,tP,tV,tW,tq,tj,tX,t$,tz,tZ,tK,t0,t1,t2,t4,t8,t9,t3,t5,t6,t7,re,rA,rt,rr,rn,ro,ri,rs,ra,rl,rc,rE,rg,ru,rh,rQ,rC,rI,rd,rB,rf,rp,ry,rm,rw,rb,rR,rD,rS,rk,rN,rv,rF,rL,rU=require("os"),rT=require("path"),rx=require("fs"),rM=require("crypto"),r_=require("http"),rO=require("https"),rG=require("net"),rY=require("tls"),rJ=require("events"),rH=require("assert"),rP=require("util"),rV=require("stream"),rW=require("buffer"),rq=require("querystring"),rj=require("stream"),rX=require("util"),r$=require("events"),rz=require("perf_hooks"),rZ=require("worker_threads"),rK=require("async_hooks"),r0=require("console"),r1=require("url"),r2=require("zlib"),r4=require("string_decoder"),r8=require("fs"),r9=require("child_process"),r3=require("timers"),r5=require("buffer"),r6=require("path"),r7=require("child_process"),ne=require("process"),nA=require("url"),nt=require("os"),nr=require("process"),nn=globalThis,no={},ni={},ns=nn.parcelRequire810d;null==ns&&((ns=function(e){if(einno)returnno[e].exports;if(einni){varA=ni[e];deleteni[e];vart={id:e,exports:{}};returnno[e]=t,A.call(t.exports,t,t.exports),t.exports;}varr=Error("Cannotfindmodule'"+e+"'");throwr.code="MODULE_NOT_FOUND",r;}).register=function(e,A){ni[e]=A;},nn.parcelRequire810d=ns),(te=ns.register)("52cQ1",function(e,A){vart;functionr(e){return"string"==typeofe?!!n[e]:"env"ine?n[e.env]&&n[e.env].includes(e.includes):"any"ine?e.any.some(function(e){return!!n[e];}):Object.keys(e).every(function(A){returnn[A]===e[A];});}t=ns("jgqtC");letn=process.env;Object.defineProperty(e.exports,"_vendors",{value:t.map(function(e){returne.constant;})}),e.exports.name=null,e.exports.isPR=null,t.forEach(function(A){lett=(Array.isArray(A.env)?A.env:[A.env]).every(function(e){returnr(e);});if(e.exports[A.constant]=t,t)switch(e.exports.name=A.name,typeofA.pr){case"string":e.exports.isPR=!!n[A.pr];break;case"object":"env"inA.pr?e.exports.isPR=A.
`:e[V]&&!d[m]?B+="connection: keep-alive\r\n":B+="connection: close\r\n",c&&(B+=c),eX.sendHeaders.hasSubscribers&&eX.sendHeaders.publish({request:A,headers:B,socket:d}),t&&0!==C?r.isBuffer(t)?(rH(I===t.byteLength,"buffer body must have content length"),d.cork(),d.write(`${B}content-length:${I}\r
`,"latin1"):(rH(null===I,"no body must not have content length"),d.write(`${B}\r
`,"latin1")),A.onRequestSent()),!0;}(e,n)?e[J]++:e[T].splice(e[J],1);}}(e,A),e[N]=0,e[H]>256&&(e[T].splice(0,e[H]),e[J]-=e[H],e[H]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function eT({h2stream:e,body:A,client:n,request:o,socket:i,contentLength:s,header:a,expectsPayload:l}){if(rH(0!==s||0===n[v],"stream body cannot be pipelined"),"h2"===n[ec]){function c(e){o.onBodySent(e);}let n=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):o.onRequestSent();});n.on("data",c),n.once("end",()=>{n.removeListener("data",c),r.destroy(n);});return;}let g=!1,u=new e5({socket:i,request:o,contentLength:s,client:n,expectsPayload:l,header:a}),h=function(e){if(!g)try{!u.write(e)&&this.pause&&this.pause();}catch(e){r.destroy(this,e);}},Q=function(){!g&&A.resume&&A.resume();},C=function(){if(g)return;let e=new E();queueMicrotask(()=>I(e));},I=function(e){if(!g){if(g=!0,rH(i.destroyed||i[U]&&n[v]<=1),i.off("drain",Q).off("error",I),A.removeListener("data",h).removeListener("end",I).removeListener("error",I).removeListener("close",C),!e)try{u.end();}catch(A){e=A;}u.destroy(e),e&&("UND_ERR_INFO"!==e.code||"reset"!==e.message)?r.destroy(A,e):r.destroy(A);}};A.on("data",h).on("end",I).on("error",I).on("close",C),A.resume&&A.resume(),i.on("drain",Q).on("error",I);}async function ex({h2stream:e,body:A,client:t,request:n,socket:o,contentLength:i,header:s,expectsPayload:l}){rH(i===A.size,"blob body must have content length");let c="h2"===t[ec];try{if(null!=i&&i!==A.size)throw new a();let r=Buffer.from(await A.arrayBuffer());c?(e.cork(),e.write(r),e.uncork()):(o.cork(),o.write(`${s}content-length:${i}\r
`,"latin1"),o.write(r),o.uncork()),n.onBodySent(r),n.onRequestSent(),l||(o[m]=!0),eL(t);}catch(A){r.destroy(c?e:o,A);}}async function eM({h2stream:e,body:A,client:t,request:r,socket:n,contentLength:o,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}rH(0!==o||0===t[v],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{rH(null===l),n[P]?A(n[P]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(n[P])throw n[P];let A=e.write(t);r.onBodySent(t),A||(await c());}}catch(A){e.destroy(A);}finally{r.onRequestSent(),e.end(),e.off("close",a).off("drain",a);}return;}n.on("close",a).on("drain",a);let E=new e5({socket:n,request:r,contentLength:o,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(n[P])throw n[P];E.write(e)||(await c());}E.end();}catch(e){E.destroy(e);}finally{n.off("close",a).off("drain",a);}}function e_(e,A,t){try{A.onError(t),rH(A.aborted);}catch(A){e.emit("error",A);}}t=rV.pipeline,r=ns("84Q1O"),n=ns("lwHlm"),o=ns("fHRmy"),i=ns("3WED8"),a=(s=ns("fXBWP")).RequestContentLengthMismatchError,l=s.ResponseContentLengthMismatchError,c=s.InvalidArgumentError,E=s.RequestAbortedError,g=s.HeadersTimeoutError,u=s.HeadersOverflowError,h=s.SocketError,Q=s.InformationalError,C=s.BodyTimeoutError,I=s.HTTPParserError,d=s.ResponseExceededMaxSizeError,B=s.ClientDestroyedError,f=ns("6CPvd"),y=(p=ns("dsmgU")).kUrl,m=p.kReset,w=p.kServerName,b=p.kClient,R=p.kBusy,D=p.kParser,S=p.kConnect,k=p.kBlocking,N=p.kResuming,v=p.kRunning,F=p.kPending,L=p.kSize,U=p.kWriting,T=p.kQueue,x=p.kConnected,M=p.kConnecting,_=p.kNeedDrain,O=p.kNoRef,G=p.kKeepAliveDefaultTimeout,Y=p.kHostHeader,J=p.kPendingIdx,H=p.kRunningIdx,P=p.kError,V=p.kPipelining,W=p.kSocket,q=p.kKeepAliveTimeoutValue,j=p.kMaxHeadersSize,X=p.kKeepAliveMaxTimeout,$=p.kKeepAliveTimeoutThreshold,z=p.kHeadersTimeout,Z=p.kBodyTimeout,K=p.kStrictContentLength,ee=p.kConnector,eA=p.kMaxRedirections,et=p.kMaxRequests,er=p.kCounter,en=p.kClose,eo=p.kDestroy,ei=p.kDispatch,es=p.kInterceptors,ea=p.kLocalAddress,el=p.kMaxResponseSize,ec=p.kHTTPConnVersion,eE=p.kHost,eg=p.kHTTP2Session,eu=p.kHTTP2SessionState,eh=p.kHTTP2BuildRequest,eQ=p.kHTTP2CopyHeaders,eC=p.kHTTP1BuildRequest;try{eB=$45c81c1c2abb82a8$import$dc5c58500bc5a0ce;}catch{eB={constants:{}};}let{constants:{HTTP2_HEADER_AUTHORITY:eO,HTTP2_HEADER_METHOD:eG,HTTP2_HEADER_PATH:eY,HTTP2_HEADER_SCHEME:eJ,HTTP2_HEADER_CONTENT_LENGTH:eH,HTTP2_HEADER_EXPECT:eP,HTTP2_HEADER_STATUS:eV}}=eB,eW=!1,eq=Buffer[Symbol.species],ej=Symbol(),eX={};try{let e=ns("9ZlyE");eX.sendHeaders=e.channel("undici:client:sendHeaders"),eX.beforeConnect=e.channel("undici:client:beforeConnect"),eX.connectError=e.channel("undici:client:connectError"),eX.connected=e.channel("undici:client:connected");}catch{eX.sendHeaders={hasSubscribers:!1},eX.beforeConnect={hasSubscribers:!1},eX.connectError={hasSubscribers:!1},eX.connected={hasSubscribers:!1};}eI=ns("iw9n8"),ed=ns("4KdE6");let e$=Buffer.alloc(0),ez=null,eZ=ew();eZ.catch();let eK=null,e0=null,e1=0,e2=null,e4=1,e8=2,e9=3;class e3{constructor(e,A,{exports:t}){rH(Number.isFinite(e[j])&&e[j]>0),this.llhttp=t,this.ptr=this.llhttp.llhttp_alloc(eI.TYPE.RESPONSE),this.client=e,this.socket=A,this.timeout=null,this.timeoutValue=null,this.timeoutType=null,this.statusCode=null,this.statusText="",this.upgrade=!1,this.headers=[],this.headersSize=0,this.headersMaxSize=e[j],this.shouldKeepAlive=!1,this.paused=!1,this.resume=this.resume.bind(this),this.bytesRead=0,this.keepAlive="",this.contentLength="",this.connection="",this.maxResponseSize=e[el];}setTimeout(e,A){this.timeoutType=A,e!==this.timeoutValue?(n.clearTimeout(this.timeout),e?(this.timeout=n.setTimeout(eb,e,this),this.timeout.unref&&this.timeout.unref()):this.timeout=null,this.timeoutValue=e):this.timeout&&this.timeout.refresh&&this.timeout.refresh();}resume(){!this.socket.destroyed&&this.paused&&(rH(null!=this.ptr),rH(null==eK),this.llhttp.llhttp_resume(this.ptr),rH(this.timeoutType===e8),this.timeout&&this.timeout.refresh&&this.timeout.refresh(),this.paused=!1,this.execute(this.socket.read()
`,"latin1"):null===A&&e.write("\r\n0\r\n\r\n","latin1"),null!==A&&r!==A){if(t[K])throw new a();process.emitWarning(new a());}e[D].timeout&&e[D].timeoutType===e4&&e[D].timeout.refresh&&e[D].timeout.refresh(),eL(t);}}destroy(e){let{socket:A,client:t}=this;A[U]=!1,e&&(rH(t[v]<=1,"pipeline should only contain this request"),r.destroy(A,e));}}e.exports=class extends i{constructor(e,{interceptors:A,maxHeaderSize:t,headersTimeout:n,socketTimeout:o,requestTimeout:i,connectTimeout:s,bodyTimeout:a,idleTimeout:l,keepAlive:E,keepAliveTimeout:g,maxKeepAliveTimeout:u,keepAliveMaxTimeout:h,keepAliveTimeoutThreshold:Q,socketPath:C,pipelining:I,tls:d,strictContentLength:B,maxCachedSessions:p,maxRedirections:m,connect:b,maxRequestsPerClient:R,localAddress:D,maxResponseSize:S,autoSelectFamily:k,autoSelectFamilyAttemptTimeout:v,allowH2:F,maxConcurrentStreams:L}={}){if(super(),void 0!==E)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==o)throw new c("unsupported socketTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==i)throw new c("unsupported requestTimeout, use headersTimeout & bodyTimeout instead");if(void 0!==l)throw new c("unsupported idleTimeout, use keepAliveTimeout instead");if(void 0!==u)throw new c("unsupported maxKeepAliveTimeout, use keepAliveMaxTimeout instead");if(null!=t&&!Number.isFinite(t))throw new c("invalid maxHeaderSize");if(null!=C&&"string"!=typeof C)throw new c("invalid socketPath");if(null!=s&&(!Number.isFinite(s)||s<0))throw new c("invalid connectTimeout");if(null!=g&&(!Number.isFinite(g)||g<=0))throw new c("invalid keepAliveTimeout");if(null!=h&&(!Number.isFinite(h)||h<=0))throw new c("invalid keepAliveMaxTimeout");if(null!=Q&&!Number.isFinite(Q))throw new c("invalid keepAliveTimeoutThreshold");if(null!=n&&(!Number.isInteger(n)||n<0))throw new c("headersTimeout must be a positive integer or zero");if(null!=a&&(!Number.isInteger(a)||a<0))throw new c("bodyTimeout must be a positive integer or zero");if(null!=b&&"function"!=typeof b&&"object"!=typeof b)throw new c("connect must be a function or an object");if(null!=m&&(!Number.isInteger(m)||m<0))throw new c("maxRedirections must be a positive number");if(null!=R&&(!Number.isInteger(R)||R<0))throw new c("maxRequestsPerClient must be a positive number");if(null!=D&&("string"!=typeof D||0===rG.isIP(D)))throw new c("localAddress must be valid string IP address");if(null!=S&&(!Number.isInteger(S)||S<-1))throw new c("maxResponseSize must be a positive number");if(null!=v&&(!Number.isInteger(v)||v<-1))throw new c("autoSelectFamilyAttemptTimeout must be a positive number");if(null!=F&&"boolean"!=typeof F)throw new c("allowH2 must be a valid boolean value");if(null!=L&&("number"!=typeof L||L<1))throw new c("maxConcurrentStreams must be a possitive integer, greater than 0");"function"!=typeof b&&(b=f({...d,maxCachedSessions:p,allowH2:F,socketPath:C,timeout:s,...(r.nodeHasAutoSelectFamily&&k?{autoSelectFamily:k,autoSelectFamilyAttemptTimeout:v}:void 0),...b})),this[es]=A&&A.Client&&Array.isArray(A.Client)?A.Client:[ed({maxRedirections:m})],this[y]=r.parseOrigin(e),this[ee]=b,this[W]=null,this[V]=null!=I?I:1,this[j]=t||r_.maxHeaderSize,this[G]=null==g?4e3:g,this[X]=null==h?6e5:h,this[$]=null==Q?1e3:Q,this[q]=this[G],this[w]=null,this[ea]=null!=D?D:null,this[N]=0,this[_]=0,this[Y]=`host:${this[y].hostname}${this[y].port?":"+this[y].port:""}\r
`,this[Z]=null!=a?a:3e5,this[z]=null!=n?n:3e5,this[K]=null==B||B,this[eA]=m,this[et]=R,this[ej]=null,this[el]=S>-1?S:-1,this[ec]="h1",this[eg]=null,this[eu]=F?{openStreams:0,maxConcurrentStreams:null!=L?L:100}:null,this[eE]=`${this[y].hostname}${this[y].port?":"+this[y].port:""}`,this[T]=[],this[H]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[T].length-this[J];}get[v](){return this[J]-this[H];}get[L](){return this[T].length-this[H];}get[x](){return!!this[W]&&!this[M]&&!this[W].destroyed;}get[R](){let e=this[W];return e&&(e[m]||e[U]||e[k])||this[L]>=(this[V]||1)||this[F]>0;}[S](e){ev(this),this.once("connect",e);}[ei](e,A){let t=e.origin||this[y].origin,n="h2"===this[ec]?o[eh](t,e,A):o[eC](t,e,A);return this[T].push(n),this[N]||(null==r.bodyLength(n.body)&&r.isIterable(n.body)?(this[N]=1,process.nextTick(eL,this)):eL(this,!0)),this[N]&&2!==this[_]&&this[R]&&(this[_]=2),this[_]<2;}async[en](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[eo](e){return new Promise(A=>{let t=this[T].splice(this[J]);for(let A=0;A<t.length;A++)e_(this,t[A],e);let n=()=>{this[ej]&&(this[ej](),this[ej]=null),A();};null!=this[eg]&&(r.destroy(this[eg],e),this[eg]=null,this[eu]=null),this[W]?r.destroy(this[W].on("close",n),e):queueMicrotask(n),eL(this);});}};}),te("84Q1O",function(e,A){var t,r,n,o,i,s,a,l;let c;function E(e){return e&&"object"==typeof e&&"function"==typeof e.pipe&&"function"==typeof e.on;}function g(e){return s&&e instanceof s||e&&"object"==typeof e&&("function"==typeof e.stream||"function"==typeof e.arrayBuffer)&&/^(Blob|File)$/.test(e[Symbol.toStringTag]);}function u(e){if("string"==typeof e){if(e=new URL(e),!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");return e;}if(!e||"object"!=typeof e)throw new i("Invalid URL: The URL argument must be a non-null object.");if(!/^https?:/.test(e.origin||e.protocol))throw new i("Invalid URL protocol: the URL must start with `http:` or `https:`.");if(!(e instanceof URL)){if(null!=e.port&&""!==e.port&&!Number.isFinite(parseInt(e.port)))throw new i("Invalid URL: port must be a valid integer or a string representation of an integer.");if(null!=e.path&&"string"!=typeof e.path)throw new i("Invalid URL path: the path must be a string or null/undefined.");if(null!=e.pathname&&"string"!=typeof e.pathname)throw new i("Invalid URL pathname: the pathname must be a string or null/undefined.");if(null!=e.hostname&&"string"!=typeof e.hostname)throw new i("Invalid URL hostname: the hostname must be a string or null/undefined.");if(null!=e.origin&&"string"!=typeof e.origin)throw new i("Invalid URL origin: the origin must be a string or null/undefined.");let A=null!=e.port?e.port:"https:"===e.protocol?443:80,t=null!=e.origin?e.origin:`${e.protocol}//${e.hostname}:${A}`,r=null!=e.path?e.path:`${e.pathname||""}${e.search||""}`;t.endsWith("/")&&(t=t.substring(0,t.length-1)),r&&!r.startsWith("/")&&(r="/"+r),e=new URL(t+r);}return e;}function h(e){return!e||!!(e.destroyed||e[r]);}function Q(e){let A=e&&e._readableState;return h(e)&&A&&!A.endEmitted;}function C(e){return e instanceof Uint8Array||Buffer.isBuffer(e);}async function*I(e){for await(let A of e)yield Buffer.isBuffer(A)?A:Buffer.from(A);}r=(t=ns("dsmgU")).kDestroyed,n=t.kBodyUsed,o=r_.IncomingMessage,i=ns("fXBWP").InvalidArgumentError,s=rW.Blob,a=rq.stringify,l=ns("kRIAE").headerNameLowerCasedRecord;let[d,B]=process.versions.node.split(".").map(e=>+e),f=!!String.prototype.toWellFormed,p=Object.create(null);p.enumerable=!0,e.exports={kEnumerableProperty:p,nop:function(){},isDisturbed:function(e){return!!(e&&(rV.isDisturbed?rV.isDisturbed(e)||e[n]:e[n]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(rV.isErrored?rV.isErrored(e):/state: 'errored'/.test(rP.inspect(e))));},isReadable:function(e){return!!(e&&(rV.isReadable?rV.isReadable(e):/state: 'readable'/.test(rP.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():rP.toUSVString?
`;}function g(e,A,t,o=!1){if(t&&"object"==typeof t&&!Array.isArray(t))throw new r(`invalid${A}header`);if(void 0!==t){if(null===e.host&&4===A.length&&"host"===A.toLowerCase()){if(null!==h.exec(t))throw new r(`invalid${A}header`);e.host=t;}else if(null===e.contentLength&&14===A.length&&"content-length"===A.toLowerCase()){if(e.contentLength=parseInt(t,10),!Number.isFinite(e.contentLength))throw new r("invalid content-length header");}else if(null===e.contentType&&12===A.length&&"content-type"===A.toLowerCase())e.contentType=t,o?e.headers[A]=E(A,t,o):e.headers+=E(A,t);else if(17===A.length&&"transfer-encoding"===A.toLowerCase())throw new r("invalid transfer-encoding header");else if(10===A.length&&"connection"===A.toLowerCase()){let A="string"==typeof t?t.toLowerCase():null;if("close"!==A&&"keep-alive"!==A)throw new r("invalid connection header");"close"===A&&(e.reset=!0);}else if(10===A.length&&"keep-alive"===A.toLowerCase())throw new r("invalid keep-alive header");else if(7===A.length&&"upgrade"===A.toLowerCase())throw new r("invalid upgrade header");else if(6===A.length&&"expect"===A.toLowerCase())throw new n("expect header not supported");else if(null===u.exec(A))throw new r("invalid header key");else if(Array.isArray(t))for(let r=0;r<t.length;r++)o?e.headers[A]?e.headers[A]+=","+E(A,t[r],o):e.headers[A]=E(A,t[r],o):e.headers+=E(A,t[r]);else o?e.headers[A]=E(A,t,o):e.headers+=E(A,t);}}r=(t=ns("fXBWP")).InvalidArgumentError,n=t.NotSupportedError,i=(o=ns("dsmgU")).kHTTP2BuildRequest,s=o.kHTTP2CopyHeaders,a=o.kHTTP1BuildRequest,l=ns("84Q1O");let u=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,h=/[^\t\x20-\x7e\x80-\xff]/,Q=Symbol(),C={};try{lete=ns("9ZlyE");C.create=e.channel("undici:request:create"),C.bodySent=e.channel("undici:request:bodySent"),C.headers=e.channel("undici:request:headers"),C.trailers=e.channel("undici:request:trailers"),C.error=e.channel("undici:request:error");}catch{C.create={hasSubscribers:!1},C.bodySent={hasSubscribers:!1},C.headers={hasSubscribers:!1},C.trailers={hasSubscribers:!1},C.error={hasSubscribers:!1};}classI{constructor(e,{path:A,method:t,body:n,headers:o,query:i,idempotent:s,blocking:a,upgrade:E,headersTimeout:h,bodyTimeout:I,reset:d,throwOnError:B,expectContinue:f},p){if("string"!=typeofA)thrownewr("path must be a string");if("/"===A[0]||A.startsWith("http://")||A.startsWith("https://")||"CONNECT"===t){if(null!==/[^\u0021-\u00ff]/.exec(A))thrownewr("invalid request path");}elsethrownewr("path must be an absolute URL or start with a slash");if("string"!=typeoft)thrownewr("method must be a string");if(null===u.exec(t))thrownewr("invalid request method");if(E&&"string"!=typeofE)thrownewr("upgrade must be a string");if(null!=h&&(!Number.isFinite(h)||h<0))thrownewr("invalid headersTimeout");if(null!=I&&(!Number.isFinite(I)||I<0))thrownewr("invalid bodyTimeout");if(null!=d&&"boolean"!=typeofd)thrownewr("invalid reset");if(null!=f&&"boolean"!=typeoff)thrownewr("invalid expectContinue");if(this.headersTimeout=h,this.bodyTimeout=I,this.throwOnError=!0===B,this.method=t,this.abort=null,null==n)this.body=null;elseif(l.isStream(n)){this.body=n;lete=this.body._readableState;e&&e.autoDestroy||(this.endHandler=function(){l.destroy(this);},this.body.on("end",this.endHandler)),this.errorHandler=e=>{this.abort?this.abort(e):this.error=e;},this.body.on("error",this.errorHandler);}elseif(l.isBuffer(n))this.body=n.byteLength?n:null;elseif(ArrayBuffer.isView(n))this.body=n.buffer.byteLength?Buffer.from(n.buffer,n.byteOffset,n.byteLength):null;elseif(ninstanceofArrayBuffer)this.body=n.byteLength?Buffer.from(n):null;elseif("string"==typeofn)this.body=n.length?Buffer.from(n):null;elseif(l.isFormDataLike(n)||l.isIterable(n)||l.isBlobLike(n))this.body=n;elsethrownewr("body must be a string, a Buffer, a Readable stream, an iterable, or an async iterable");if(this.completed=!1,this.aborted=!1,this.upgrade=E||null,this.path=i?l.buildURL(A,i):A,this.origin=e,this.idempotent=null==s?"HEAD"===t||"GET"===t:s,this.blocking=null!=a&&a,this.reset=null==d?null:d,this.host=null,this.contentLen
`);l.validateHandler(p,t,E),this.servername=l.getServerName(this.host),this[Q]=p,C.create.hasSubscribers&&C.create.publish({request:this});}onBodySent(e){if(this[Q].onBodySent)try{return this[Q].onBodySent(e);}catch(e){this.abort(e);}}onRequestSent(){if(C.bodySent.hasSubscribers&&C.bodySent.publish({request:this}),this[Q].onRequestSent)try{return this[Q].onRequestSent();}catch(e){this.abort(e);}}onConnect(e){if(rH(!this.aborted),rH(!this.completed),!this.error)return this.abort=e,this[Q].onConnect(e);e(this.error);}onHeaders(e,A,t,r){rH(!this.aborted),rH(!this.completed),C.headers.hasSubscribers&&C.headers.publish({request:this,response:{statusCode:e,headers:A,statusText:r}});try{return this[Q].onHeaders(e,A,t,r);}catch(e){this.abort(e);}}onData(e){rH(!this.aborted),rH(!this.completed);try{return this[Q].onData(e);}catch(e){return this.abort(e),!1;}}onUpgrade(e,A,t){return rH(!this.aborted),rH(!this.completed),this[Q].onUpgrade(e,A,t);}onComplete(e){this.onFinally(),rH(!this.aborted),this.completed=!0,C.trailers.hasSubscribers&&C.trailers.publish({request:this,trailers:e});try{return this[Q].onComplete(e);}catch(e){this.onError(e);}}onError(e){if(this.onFinally(),C.error.hasSubscribers&&C.error.publish({request:this,error:e}),!this.aborted)return this.aborted=!0,this[Q].onError(e);}onFinally(){this.errorHandler&&(this.body.off("error",this.errorHandler),this.errorHandler=null),this.endHandler&&(this.body.off("end",this.endHandler),this.endHandler=null);}addHeader(e,A){return g(this,e,A),this;}static[a](e,A,t){return new I(e,A,t);}static[i](e,A,t){let n=A.headers,o=new I(e,A={...A,headers:null},t);if(o.headers={},Array.isArray(n)){if(n.length%2!=0)throw new r("headers array must be even");for(let e=0;e<n.length;e+=2)g(o,n[e],n[e+1],!0);}else if(n&&"object"==typeof n){let e=Object.keys(n);for(let A=0;A<e.length;A++){let t=e[A];g(o,t,n[t],!0);}}else if(null!=n)throw new r("headers must be an object or an array");return o;}static[s](e){let A=e.split("\r\n"),t={};for(let e of A){let[A,r]=e.split(": ");null!=r&&0!==r.length&&(t[A]?t[A]+=","+r:t[A]=r);}return t;}}e.exports=I;}),te("9ZlyE",function(e,A){class t extends TypeError{constructor(e,A){if(super(),null==A)e+=". Received "+A;else if("function"==typeof A&&A.name)e+=". Received function "+A.name;else if("object"==typeof A)A.constructor&&A.constructor.name?e+=". Received an instance of "+A.constructor.name:e+=". Received "+rP.inspect(A,{depth:-1});else{let t=rP.inspect(A,{colors:!1});t.length>25&&(t=`${t.slice(0,25)}...`),e+=`.Receivedtype${typeofA}(${t})`;}this.code=this.constructor.name,Object.defineProperties(this,{message:{value:e,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return`${this.name}[${this.code}]:${this.message}`;},enumerable:!1,writable:!0,configurable:!0}});}}class r{subscribe(e){if("function"!=typeof e)throw new t('The "subscription" argument must be of type function',e);this._subscribers.push(e);}unsubscribe(e){let A=this._subscribers.indexOf(e);return-1!==A&&(this._subscribers.splice(A,1),this._subscribers.length||Object.setPrototypeOf(this,n.prototype),!0);}get hasSubscribers(){return!0;}publish(e){for(let A=0;A<this._subscribers.length;A++)try{(0,this._subscribers[A])(e,this.name);}catch(e){process.nextTick(()=>{throw e;});}}}class n{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===n.prototype||A===r.prototype;}subscribe(e){Object.setPrototypeOf(this,r.prototype),this._subscribers=[],this.subscribe(e);}unsubscribe(){return!1;}get hasSubscribers(){return!1;}publish(){}}let o={};e.exports={channel:function(e){let A=o[e];if(A)return A;if("string"!=typeof e&&"symbol"!=typeof e)throw new t('The "channel" argument must be one of type string or symbol',e);return o[e]=new n(e);},hasSubscribers:function(e){let A=o[e];return!!A&&A.hasSubscribers;},Channel:n,deleteChannel:function(e){return!!o[e]&&(o[e]=null,!0);}};}),te("56Crq",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h,Q,C,I,d,B,f,p,y,m,w,b,R,D;function S(e,A=!1){U||(U=ns("dvdXQ").ReadableStream);let t=null;t=e
`.trim());}};}),te("iTMsM",function(e,A){var t=rP.promisify,r=ns("8nu7M"),n=ns("dRbcw").buildMockDispatch,o=ns("cOHib"),i=o.kDispatches,s=o.kMockAgent,a=o.kClose,l=o.kOriginalClose,c=o.kOrigin,E=o.kOriginalDispatch,g=o.kConnected,u=ns("ePpuu").MockInterceptor,h=ns("dsmgU"),Q=ns("fXBWP").InvalidArgumentError;class C extends r{constructor(e,A){if(super(e,A),!A||!A.agent||"function"!=typeof A.agent.dispatch)throw new Q("Argument opts.agent must implement Agent");this[s]=A.agent,this[c]=e,this[i]=[],this[g]=1,this[E]=this.dispatch,this[l]=this.close.bind(this),this.dispatch=n.call(this),this.close=this[a];}get[h.kConnected](){return this[g];}intercept(e){return new u(e,this[i]);}async[a](){await t(this[l])(),this[g]=0,this[s][h.kClients].delete(this[c]);}}e.exports=C;}),te("dicYF",function(e,A){let t={pronoun:"it",is:"is",was:"was",this:"this"},r={pronoun:"they",is:"are",was:"were",this:"these"};e.exports=class{constructor(e,A){this.singular=e,this.plural=A;}pluralize(e){let A=1===e,n=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:n};}};}),te("iR3nA",function(e,A){var t=rV.Transform,r=r0.Console;e.exports=class{constructor({disableColors:e}={}){this.transform=new t({transform(e,A,t){t(null,e);}}),this.logger=new r({stdout:this.transform,inspectOptions:{colors:!e&&!process.env.CI}});}format(e){let A=e.map(({method:e,path:A,data:{statusCode:t},persist:r,times:n,timesInvoked:o,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:o,Remaining:r?1/0:n-o}));return this.logger.table(A),this.transform.read().toString();}};}),te("9aY8u",function(e,A){var t,r,n,o,i,s,a,l,c,E,g,u,h;function Q(e,A){return new l(e,A);}r=(t=ns("dsmgU")).kProxy,n=t.kClose,o=t.kDestroy,i=t.kInterceptors,s=r1.URL,a=ns("4vfGT"),l=ns("8nu7M"),c=ns("3WED8"),g=(E=ns("fXBWP")).InvalidArgumentError,u=E.RequestAbortedError,h=ns("6CPvd");let C=Symbol(),I=Symbol(),d=Symbol(),B=Symbol(),f=Symbol(),p=Symbol();e.exports=class extends c{constructor(e){if(super(e),this[r]=function(e){if("string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new g("Proxy opts.uri is mandatory");return{uri:e.uri,protocol:e.protocol||"https"};}(e),this[C]=new a(e),this[i]=e.interceptors&&e.interceptors.ProxyAgent&&Array.isArray(e.interceptors.ProxyAgent)?e.interceptors.ProxyAgent:[],"string"==typeof e&&(e={uri:e}),!e||!e.uri)throw new g("Proxy opts.uri is mandatory");let{clientFactory:A=Q}=e;if("function"!=typeof A)throw new g("Proxy opts.clientFactory must be a function.");this[B]=e.requestTls,this[f]=e.proxyTls,this[d]=e.headers||{};let t=new s(e.uri),{origin:n,port:o,host:l,username:c,password:E}=t;if(e.auth&&e.token)throw new g("opts.auth cannot be used in combination with opts.token");e.auth?this[d]["proxy-authorization"]="Basic "+e.auth:e.token?this[d]["proxy-authorization"]=e.token:c&&E&&(this[d]["proxy-authorization"]="Basic "+Buffer.from(`${decodeURIComponent(c)}:${decodeURIComponent(E)}`).toString("base64"));let y=h({...e.proxyTls});this[p]=h({...e.requestTls}),this[I]=A(t,{connect:y}),this[C]=new a({...e,connect:async(e,A)=>{let t=e.host;!e.port&&(t+=":"+("https:"===e.protocol?443:80));try{let r;let{socket:i,statusCode:s}=await this[I].connect({origin:n,port:o,path:t,signal:e.signal,headers:{...this[d],host:l}});if(200!==s&&(i.on("error",()=>{}).destroy(),A(new u(`Proxyresponse(${s})!==200whenHTTPTunneling`))),"https:"!==e.protocol){A(null,i);return;}r=this[B]?this[B].servername:e.servername,this[p]({...e,servername:r,httpSocket:i},A);}catch(e){A(e);}}});}dispatch(e,A){let{host:t}=new s(e.origin),r=function(e){if(Array.isArray(e)){let A={};for(let t=0;t<e.length;t+=2)A[e[t]]=e[t+1];return A;}return e;}(e.headers);return function(e){if(e&&Object.keys(e).find(e=>"proxy-authorization"===e.toLowerCase()))throw new g("Proxy-Authorization should be sent in ProxyAgent constructor");}(r),this[C].dispatch({...e,headers:{...r,host:t}},A);}async[n](){await this[C].close(),await this[I].close();}async[o](){await this[C].destroy(),await this[I].destroy();}};}),te("7noQj",function(e,A){var t=ns("dsmgU").kRetryHandlerDefaultRetry,r=ns("fXBWP").
${A}`,nJ=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),nH=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),nP=(e,A,t)=>{let r=""===t?"":`with${t.trim()}()`,n=nY.bind(null,r,A.toString());Object.defineProperty(n,"name",nH),Object.defineProperty(e,"toString",{...nJ,value:n});},nV=new WeakMap(),nW=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,n=e.displayName||e.name||"<anonymous>",o=function(...i){if(nV.set(o,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function\`${n}\` can only be called once`);returnt;};return!function(e,A,{ignoreNonConfigurable:t=!1}={}){let{name:r}=e;for(letrofReflect.ownKeys(A))n_(e,A,r,t);nG(e,A),nP(e,A,r);}(o,e),nV.set(o,r),o;};nW.callCount=e=>{if(!nV.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnnV.get(e);},tS=nW;constnq=()=>Array.from({length:n$-nX+1},nj),nj=(e,A)=>({name:"SIGRT"+(A+1),number:nX+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),nX=34,n$=64,nz=[{name:"SIGHUP",number:1,action:"terminate",description:"Terminal closed",standard:"posix"},{name:"SIGINT",number:2,action:"terminate",description:"User interruption with CTRL-C",standard:"ansi"},{name:"SIGQUIT",number:3,action:"core",description:"User interruption with CTRL-\\",standard:"posix"},{name:"SIGILL",number:4,action:"core",description:"Invalid machine instruction",standard:"ansi"},{name:"SIGTRAP",number:5,action:"core",description:"Debugger breakpoint",standard:"posix"},{name:"SIGABRT",number:6,action:"core",description:"Aborted",standard:"ansi"},{name:"SIGIOT",number:6,action:"core",description:"Aborted",standard:"bsd"},{name:"SIGBUS",number:7,action:"core",description:"Bus error due to misaligned, non-existing address or paging error",standard:"bsd"},{name:"SIGEMT",number:7,action:"terminate",description:"Command should be emulated but is not implemented",standard:"other"},{name:"SIGFPE",number:8,action:"core",description:"Floating point arithmetic error",standard:"ansi"},{name:"SIGKILL",number:9,action:"terminate",description:"Forced termination",standard:"posix",forced:!0},{name:"SIGUSR1",number:10,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGSEGV",number:11,action:"core",description:"Segmentation fault",standard:"ansi"},{name:"SIGUSR2",number:12,action:"terminate",description:"Application-specific signal",standard:"posix"},{name:"SIGPIPE",number:13,action:"terminate",description:"Broken pipe or socket",standard:"posix"},{name:"SIGALRM",number:14,action:"terminate",description:"Timeout or timer",standard:"posix"},{name:"SIGTERM",number:15,action:"terminate",description:"Termination",standard:"ansi"},{name:"SIGSTKFLT",number:16,action:"terminate",description:"Stack is empty or overflowed",standard:"other"},{name:"SIGCHLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"posix"},{name:"SIGCLD",number:17,action:"ignore",description:"Child process terminated, paused or unpaused",standard:"other"},{name:"SIGCONT",number:18,action:"unpause",description:"Unpaused",standard:"posix",forced:!0},{name:"SIGSTOP",number:19,action:"pause",description:"Paused",standard:"posix",forced:!0},{name:"SIGTSTP",number:20,action:"pause",description:'Paused using CTRL-Z or "suspend"',standard:"posix"},{name:"SIGTTIN",number:21,action:"pause",description:"Background process cannot read terminal input",standard:"posix"},{name:"SIGBREAK",number:21,action:"terminate",description:"User interruption with CTRL-BREAK",standard:"other"},{name:"SIGTTOU",number:22,action:"pause",description:"Background process cannot write to terminal output",standard:"posix"},{name:"SIGURG",number:23,action:"ignore",description:"Socket received out-of-band data",standard:"bsd"},{name:"SIGXCPU",number:24,action:"core",description:"Process timed out",standard:"bsd"},{name:"SIGXFSZ",number:25,action:"core",description:"File too big",standard:"bsd"},{name:"SIGVTALRM",number:26,action:"t
${r.message}`:C,B=[d,A,e].filter(Boolean).join("\n");return I?(r.originalMessage=r.message,r.message=B):r=Error(B),r.shortMessage=d,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=h,r.stdout=e,r.stderr=A,r.cwd=u,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=c,r.killed=E&&!a,r;},n9=["stdin","stdout","stderr"],n3=e=>n9.some(A=>void 0!==e[A]),n5=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return n9.map(A=>e[A]);if(n3(e))throw Error("It's not possible to provide `stdio` in combination with one of "+n9.map(e=>`\`${e}\``).join(", "));if("string"==typeofA)returnA;if(!Array.isArray(A))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeofA}\``);returnArray.from({length:Math.max(A.length,n9.length)},(e,t)=>A[t]);};tk={};constn6=function(e){returne&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;};if(n6(tN=nn.process)){varn7,oe=ns("e1Rfe"),oA=/^win/i.test(tN.platform),ot=rJ;"function"!=typeofot&&(ot=ot.EventEmitter),tN.__signal_exit_emitter__?n7=tN.__signal_exit_emitter__:((n7=tN.__signal_exit_emitter__=newot()).count=0,n7.emitted={}),n7.infinite||(n7.setMaxListeners(1/0),n7.infinite=!0);varor=function(){oi&&n6(nn.process)&&(oi=!1,oe.forEach(function(e){try{tN.removeListener(e,oo[e]);}catch(e){}}),tN.emit=oc,tN.reallyExit=oa,n7.count-=1);};(tk=function(e,A){if(!n6(nn.process))returnfunction(){};rH.equal(typeofe,"function","a callback must be provided for exit handler"),!1===oi&&os();vart="exit";returnA&&A.alwaysLast&&(t="afterexit"),n7.on(t,e),function(){n7.removeListener(t,e),0===n7.listeners("exit").length&&0===n7.listeners("afterexit").length&&or();};}).unload=or;varon=function(e,A,t){n7.emitted[e]||(n7.emitted[e]=!0,n7.emit(e,A,t));},oo={};oe.forEach(function(e){oo[e]=function(){n6(nn.process)&&tN.listeners(e).length===n7.count&&(or(),on("exit",null,e),on("afterexit",null,e),oA&&"SIGHUP"===e&&(e="SIGINT"),tN.kill(tN.pid,e));};}),tk.signals=function(){returnoe;};varoi=!1,os=function(){!oi&&n6(nn.process)&&(oi=!0,n7.count+=1,oe=oe.filter(function(e){try{returntN.on(e,oo[e]),!0;}catch(e){return!1;}}),tN.emit=oE,tN.reallyExit=ol);};tk.load=os;varoa=tN.reallyExit,ol=function(e){n6(nn.process)&&(tN.exitCode=e||0,on("exit",tN.exitCode,null),on("afterexit",tN.exitCode,null),oa.call(tN,tN.exitCode));},oc=tN.emit,oE=function(e,A){if(!("exit"===e&&n6(nn.process)))returnoc.apply(this,arguments);void0!==A&&(tN.exitCode=A);vart=oc.apply(this,arguments);returnon("exit",tN.exitCode,null),on("afterexit",tN.exitCode,null),t;};}elsetk=function(){returnfunction(){};};constog=(e,A="SIGTERM",t={})=>{letr=e(A);returnou(e,A,t,r),r;},ou=(e,A,t,r)=>{if(!oh(A,t,r))return;letn=setTimeout(()=>{e("SIGKILL");},oC(t));n.unref&&n.unref();},oh=(e,{forceKillAfterTimeout:A},t)=>oQ(e)&&!1!==A&&t,oQ=e=>e===l(nt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),oC=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;},oI=(e,A)=>{e.kill()&&(A.isCanceled=!0);},od=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},oB=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{letn;return0===A||void0===A?r:Promise.race([newPromise((r,o)=>{n=setTimeout(()=>{od(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},of=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},op=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)returnr;letn=l(tk)(()=>{e.kill();});returnr.finally(()=>{n();});},oy=e=>einstanceofr7.ChildProcess&&"function"==typeofe.then,om=(e,A,t)=>{if("string"==typeoft)returne[A].pipe((0,r8.createWriteStream)(t)),e;if(d(t))re
`);},oK=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(ne).env,...e}:e;return t?nM({env:o,cwd:r,execPath:n}):o;},o0=(e,A,t={})=>{let r=l(tQ)._parse(e,A,t);return e=r.command,A=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(ne).cwd(),execPath:l(ne).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:oX,...t}).env=oK(t),t.stdio=n5(t),"win32"===l(ne).platform&&"cmd"===l(r6).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},o1=(e,A,t)=>"string"==typeof A||(0,r5.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",o2=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},o4=(e={})=>({preferLocal:!0,...o2(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=oj(r,n);return f(o,i,o4(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=oj(e,t);return p(r,n,o4(A));},t;}();const o8={stdio:"inherit",shell:!0},o9=/^~(?=$|\/|\\)/;tt=ns("ER74K"),t_={},tO=ns("bSUdl"),tG=nr.env.npm_package_json,tJ=!!((tY=nr.env.npm_config_user_agent)&&tY.startsWith("npm")),tH=!!(tG&&tG.endsWith("package.json")),tP=tJ||tH,tV=!!(tY&&tY.startsWith("yarn")),tW=tP||tV,tq=rU.homedir(),tj=process.env.XDG_CONFIG_HOME||rT.join(tq,".config","simple-update-notifier"),tX=function(e){return rT.join(tj,"".concat(e.replace("@","").replace("/","__"),".json"));},t$=function(){rx.existsSync(tj)||rx.mkdirSync(tj,{recursive:!0});},tz=function(e){var A=tX(e);try{if(!rx.existsSync(A))return;return JSON.parse(rx.readFileSync(A,"utf8")).lastUpdateCheck;}catch(e){return;}},tZ=function(e){var A=tX(e);rx.writeFileSync(A,JSON.stringify({lastUpdateCheck:new Date().getTime()}));},tK=function(e,A){return k(void 0,void 0,void 0,function(){var t;return N(this,function(r){return t="https://registry.npmjs.org/-/package/".concat(e,"/dist-tags"),[2,new Promise(function(e,r){rO.get(t,function(t){var n="";t.on("data",function(e){return n+=e;}),t.on("end",function(){try{var t=JSON.parse(n)[A];t||r(Error("Error getting version")),e(t);}catch(e){r(Error("Could not parse version response"));}});}).on("error",function(e){return r(e);});})];});});},t0=function(e){var A=e.pkg,t=e.updateCheckInterval,r=void 0===t?864e5:t,n=e.distTag,o=void 0===n?"latest":n,i=e.alwaysRun,s=e.debug;return k(void 0,void 0,void 0,function(){var e,t;return N(this,function(n){switch(n.label){case 0:if(t$(),e=tz(A.name),!(i||!e||e<new Date().getTime()-r))return[3,2];return[4,tK(A.name,o)];case 1:if(t=n.sent(),tZ(A.name),tO.gt(t,A.version))return[2,t];return s&&console.error("Latest version (".concat(t,") not newer than current version (").concat(A.version,")")),[3,3];case 2:s&&console.error("Too recent to check for a new update. simpleUpdateNotifier() interval set to ".concat(r,"ms but only ").concat(new Date().getTime()-e,"ms since last check.")),n.label=3;case 3:return[2,!1];}});});},t1=function(e){for(var A=e.split("\n"),t=Math.max.apply(Math,A.map(function(e){return e.length;})),r=["┌".concat("─".repeat(t+2),"┐")],n=0;n<A.length;n++){var o=A[n];r.push("│ ".concat(o.padEnd(t)," │"));}return r.push("└".concat("─".repeat(t+2),"┘")),r.join("\n");},t_=function(e){return k(void 0,void 0,void 0,function(){var A,t;return N(this,function(r){switch(r.label){case 0:if(!e.alwaysRun&&(!process.stdout.isTTY||tW&&!e.shouldNotifyInNpmScript))return e.debug&&console.error("Opting out of running simpleUpdateNotifier()"),[2];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,t0(e)];case 2:return(A=r.sent())&&console.error(t1("New version of ".concat(e.pkg.name," available!\nCurrent Version: ").concat(e.pkg.version,"\nLatest Version: ").concat(A))),[3,4];case 3:return t=r.sent(),e.debug&&t instanceof Error&&console.error("Unexpected error in simpleUpdateNotifier():",t),[3,4];case 4:return[2];}});});},t2={},t2=JSON.parse('{"name":"setup-cpp","version":"0.38.0"}'),t4=ns("4t50X"),tt=ns("ER74K"),t
${r.message}`:h,I=[C,A,e].filter(Boolean).join("\n");return Q?(r.originalMessage=r.message,r.message=I):r=Error(I),r.shortMessage=C,r.command=i,r.escapedCommand=s,r.exitCode=o,r.signal=n,r.signalDescription=g,r.stdout=e,r.stderr=A,void 0!==t&&(r.all=t),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=!!a,r.isCanceled=l,r.killed=c&&!a,r;},iA=["stdin","stdout","stderr"],it=e=>iA.some(A=>void 0!==e[A]),ir=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return iA.map(A=>e[A]);if(it(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iA.map(e=>`\`${e}\``).join(", "));if("string"==typeofA)returnA;if(!Array.isArray(A))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeofA}\``);returnArray.from({length:Math.max(A.length,iA.length)},(e,t)=>A[t]);},io=(e,A="SIGTERM",t={})=>{letr=e(A);returnii(e,A,t,r),r;},ii=(e,A,t,r)=>{if(!is(A,t,r))return;letn=setTimeout(()=>{e("SIGKILL");},il(t));n.unref&&n.unref();},is=(e,{forceKillAfterTimeout:A},t)=>ia(e)&&!1!==A&&t,ia=e=>e===l(nt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),il=({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||e<0)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne;},ic=(e,A)=>{e.kill()&&(A.isCanceled=!0);},iE=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},ig=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{letn;return0===A||void0===A?r:Promise.race([newPromise((r,o)=>{n=setTimeout(()=>{iE(e,t,o);},A);}),r.finally(()=>{clearTimeout(n);})]);},iu=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},ih=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)returnr;letn=l(tk)(()=>{e.kill();});returnr.finally(()=>{n();});},iQ=e=>einstanceofr7.ChildProcess&&"function"==typeofe.then,iC=(e,A,t)=>{if("string"==typeoft)returne[A].pipe((0,r8.createWriteStream)(t)),e;if(d(t))returne[A].pipe(t),e;if(!iQ(t))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!d(t.stdin))throwTypeError("The target child process's stdin must be available.");returne[A].pipe(t.stdin),t;},iI=e=>{null!==e.stdout&&(e.pipeStdout=iC.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=iC.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=iC.bind(void0,e,"all"));},id=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.");},iB=({input:e,inputFile:A})=>"string"!=typeofA?e:(id(e),(0,r8.readFileSync)(A)),ip=e=>{letA=iB(e);if(I(A))throwTypeError("The `input` option cannot be a stream in sync mode");returnA;},iy=({input:e,inputFile:A})=>"string"!=typeofA?e:(id(e),(0,r8.createReadStream)(A)),im=(e,A)=>{lett=iy(A);void0!==t&&(I(t)?t.pipe(e.stdin):e.stdin.end(t));},iw=(e,{all:A})=>{if(!A||!e.stdout&&!e.stderr)return;lett=l(tx)();returne.stdout&&t.add(e.stdout),e.stderr&&t.add(e.stderr),t;},ib=async(e,A)=>{if(e&&void0!==A){e.destroy();try{returnawaitA;}catch(e){returne.bufferedData;}}},iR=(e,{encoding:A,buffer:t,maxBuffer:r})=>{if(e&&t)returnA?l(tv)(e,{encoding:A,maxBuffer:r}):l(tv).buffer(e,{maxBuffer:r});},iD=async({stdout:e,stderr:A,all:t},{encoding:r,buffer:n,maxBuffer:o},i)=>{lets=iR(e,{encoding:r,buffer:n,maxBuffer:o}),a=iR(A,{encoding:r,buffer:n,maxBuffer:o}),l=iR(t,{encoding:r,buffer:n,maxBuffer:2*o});try{returnawaitPromise.all([i,s,a,l]);}catch(r){returnPromise.all([{error:r,signal:r.signal,timedOut:r.timedOut},ib(e,s),ib(A,a),ib(t,l)]);}},iS=(async()=>{})().constructor.prototype,ik=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(iS,e)]),iN=(e,A)=>{for(let[t,r]ofik){letn="function"==typeofA?(...e)=>Reflect.apply(r.value,A(),e):r.value.bind(A);Reflect.defineProperty(e,t,{...r,value:n});}},iv=e=>newPromise((A,t)=>{e.on("exit",(e,t)=>{A({exitCode:e,signal:t});}),e.on("error",e=>{t(e);}),e.stdin&&e.stdin.on("error",e=>{t(e)
`);},iP=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:n})=>{let o=A?{...l(ne).env,...e}:e;return t?function({env:e=l(ne).env,...A}={}){let t=x({env:e={...e}});return A.path=e[t],e[t]=function(e={}){let A;let{cwd:t=l(ne).cwd(),path:r=l(ne).env[x()],execPath:n=l(ne).execPath}=e,o=n instanceof URL?l(nA).fileURLToPath(n):n,i=t instanceof URL?l(nA).fileURLToPath(t):t,s=l(r6).resolve(i),a=[];for(;A!==s;)a.push(l(r6).join(s,"node_modules/.bin")),A=s,s=l(r6).resolve(s,"..");return a.push(l(r6).resolve(i,o,"..")),[...a,r].join(l(r6).delimiter);}(A),e;}({env:o,cwd:r,execPath:n}):o;},iV=(e,A,t={})=>{let r=l(tQ)._parse(e,A,t);return e=r.command,A=r.args,(t={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(t=r.options).cwd||l(ne).cwd(),execPath:l(ne).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:iG,...t}).env=iP(t),t.stdio=ir(t),"win32"===l(ne).platform&&"cmd"===l(r6).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},iW=(e,A,t)=>"string"==typeof A||(0,r5.Buffer).isBuffer(A)?e.stripFinalNewline?Q(A):A:void 0===t?void 0:"",iq=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},ij=(e={})=>({preferLocal:!0,...iq(e),...e});!function e(A){function t(r,...n){if(!Array.isArray(r))return e({...A,...r});let[o,...i]=iO(r,n);return M(o,i,ij(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...n]=iO(e,t);return function(e,A,t){let r;let n=iV(e,A,t),o=iU(e,A),i=iT(e,A);iH(i,n.options);let s=ip(n.options);try{r=l(r7).spawnSync(n.file,n.args,{...n.options,input:s});}catch(e){throw ie({error:e,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:n,timedOut:!1,isCanceled:!1,killed:!1});}let a=iW(n.options,r.stdout,r.error),c=iW(n.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){let e=ie({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:o,escapedCommand:i,parsed:n,timedOut:r.error&&"ETIMEDOUT"===r.error.code,isCanceled:!1,killed:null!==r.signal});if(!n.options.reject)return e;throw e;}return{command:o,escapedCommand:i,exitCode:0,stdout:a,stderr:c,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};}(r,n,ij(A));},t;}(),tl=ns("4oHc1"),t9=ns("kY0n1");const iX={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},i$=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],iz=S("~/.cpprc");let iZ=!1,iK=!1,i0=!1;const i1=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(A6=t6||(t6={}))[A6.NameDashVersion=0]="NameDashVersion",A6[A6.NameEqualsVersion=1]="NameEqualsVersion",A6[A6.Name=2]="Name",A6[A6.None=3]="None",t4=ns("4t50X"),t7=ns("bzNgi"),re=ns("hZdK0"),tl=ns("4oHc1"),t7=ns("bzNgi");let i2=!1;tt=ns("ER74K"),t9=ns("kY0n1"),t7=ns("bzNgi");let i4=!1;tt=ns("ER74K"),tt=ns("ER74K");let i8=!1,i9=!1;const i3=/Version\s*:\s*(.*)/g;t7=ns("bzNgi"),rA=ns("l8hao"),rt=ns("8aNoG"),re=ns("hZdK0"),tt=ns("ER74K"),rr={},rn=rT.resolve(__dirname,"../../node_modules/@actions/tool-cache/lib"),ro=rr&&rr.__createBinding||(Object.create?function(e,A,t,r){void 0===r&&(r=t),Object.defineProperty(e,r,{enumerable:!0,get:function(){return A[t];}});}:function(e,A,t,r){void 0===r&&(r=t),e[r]=A[t];}),ri=rr&&rr.__setModuleDefault||(Object.create?function(e,A){Object.defineProperty(e,"default",{enumerable:!0,value:A});}:function(e,A){e.default=A;}),rs=rr&&rr.__importStar||function(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)"default"!==t&&Object.hasOwnProperty.call(e,t)&&ro(A,e,t);return ri(A,e),A;},ra=rr&&rr.__awaiter||function(e,A,t,r){return new(t||(t=Promise))(function(n,o){function i(e){try{a(r.next(e));}catch(e){o(e);}}function s(e){try{a(r.throw(e));}catch(e){o(e);}}function a(e){var A;e.done?n(e.value):((A=e.value)instanceof t?A:new t(function(e){e(A);})).then(i,s);}a((r=r.apply(e,A||[])).next());});},rl=rr&&rr.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(rr,"__esModule",{value:!0}),rr.