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,o,n,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);});});}tI(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,o=process.cwd(),n=null!=e.options.cwd,i=n&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}try{t=tQ.sync(e.command,{path:r[td({env:r})],pathExt:A?rz.delimiter:void0});}catch(e){}finally{i&&process.chdir(o);}returnt&&(t=rz.resolve(n?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){returnoN&&1===e&&!A.file?g(A.original,"spawn"):null;}functionh(e,A,t){letr=tu(e,A,t),o=oE.spawn(r.command,r.args,r.options);returntw.hookChildProcess(o,r),o;}functionQ(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";}functionC(e){returnnull!==e&&"object"==typeofe&&"function"==typeofe.pipe;}functionI(e){returnC(e)&&!1!==e.writable&&"function"==typeofe._write&&"object"==typeofe._writableState;}asyncfunctiond(e,A){if(!e)throwError("Expected a stream");let{maxBuffer:t}=A={maxBuffer:1/0,...A},r=tN(A);returnawaitnewPromise((A,o)=>{letn=e=>{e&&r.getBufferedLength()<=tv.MAX_LENGTH&&(e.bufferedData=r.getBufferedValue()),o(e);};(async()=>{try{awaitnm(e,r),A();}catch(e){n(e);}})(),r.on("data",()=>{r.getBufferedLength()>t&&n(newnw());});}),r.getBufferedValue();}functionB(e,A,t){letr;leto=nZ(e,A,t),n=nG(e,A),i=nY(e,A);n$(i,o.options),nd(o.options);try{r=l(oQ).spawn(o.file,o.args,o.options);}catch(A){lete=new(l(oQ).ChildProcess)();returnnT(e,Promise.reject(o2({error:A,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:o,timedOut:!1,isCanceled:!1,killed:!1}))),e;}lets=nx(r),a=nI(r,o.options,s),c=nB(r,o.options,a),E={isCanceled:!1};r.kill=nc.bind(null,r.kill.bind(r)),r.cancel=nQ.bind(null,r,E);letg=tb(async()=>{let[{error:e,exitCode:A,signal:t,timedOut:s},a,l,g]=awaitnL(r,o.options,c),u=nK(o.options,a),h=nK(o.options,l),Q=nK(o.options,g);if(e||0!==A||null!==t){leta=o2({error:e,exitCode:A,signal:t,stdout:u,stderr:h,all:Q,command:n,escapedCommand:i,parsed:o,timedOut:s,isCanceled:E.isCanceled||!!o.options.signal&&o.options.signal.aborted,killed:r.killed});if(!o.options.reject)returna;throwa;}return{command:n,escapedCommand:i,exitCode:0,stdout:u,stderr:h,all:Q,failed:!1,timedOut:!1,isCanceled:!1,killed:!1};});returnnv(r,o.options),r.all=nk(r,o.options),ny(r),nT(r,g),r;}functionf(e,A,t){letr;leto=nZ(e,A,t),n=nG(e,A),i=nY(e,A);n$(i,o.options);lets=nD(o.options);try{r=l(oQ).spawnSync(o.file,o.args,{...o.options,input:s});}catch(e){throwo2({error:e,stdout:"",stderr:"",all:"",command:n,escapedCommand:i,parsed:o,timedOut:!1,isCanceled:!1,killed:!1});}leta=nK(o.options,r.stdout,r.error),c=nK(o.options,r.stderr,r.error);if(r.error||0!==r.status||null!==r.signal){lete=o2({stdout:a,stderr:c,error:r.error,signal:r.signal,exitCode:r.status,command:n,escapedCommand:i,parsed:o,timedOut:r.error&
`;try{await Promise.all([U(e),_(A,F("~/.bashrc")),_(A,F("~/.profile"))]);}catch(e){(0,tc.warning)(`Failedtoadd${A}to.profileor.bashrc.Youshouldadditmanually:${e}`);}}async function U(e){let A=void 0===e.guard?"\n# Automatically Generated by envosman\n":`
`));}function W(e){if(e&&e.__esModule)return e;var A={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(A[t]=e[t]);return A.default=e,A;}function j(e,A){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return A&&("object"==typeof A||"function"==typeof A)?A:e;}async function X(e){try{let{stdout:A}=await B("dpkg",["-s",e],{env:eA("apt-get"),stdio:"pipe"});if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("Status: install ok installed"));}catch{return!1;}}async function $(e){try{let{stdout:A}=await B("dpkg",["-l",e],{env:eA("apt-get"),stdio:"pipe"});if("string"!=typeof A)return!1;return A.split("\n").some(e=>e.startsWith("ii"));}catch{return!1;}}function z(e=ee()){m(e,"nala"!==e?["update","-y","-o",iS]:["update","-o",iS],{...iE,env:eA(e)});}async function Z(e,A=!1){let t=ee();for(let{name:A,version:r}of e)(0,tc.info)(`Installing${A}${null!=r?r:""}via${t}`);A&&(z(t),iR=!0),await eo(t,e);let r=await et(t,e);if(0===r.length)return(0,tc.info)("All packages are already installed"),{binDir:"/usr/bin/"};iD||(await ea(t),iD=!0);try{m(t,["install","--fix-broken","-y",...r],{...iE,env:eA(t)});}catch(e){if("string"==typeof e.stderr)iv.some(A=>e.stderr.includes(A))&&((0,tc.warning)(`Failedtoinstallpackages${r}.Retrying...`),m(t,["install","--fix-broken","-y","-o",iS,...r],{...iE,env:eA(t)}));else throw e;}return{binDir:"/usr/bin/"};}function K(){return null!==l(t_).sync("nala",{nothrow:!0});}function ee(){let e;return K()?"nala":"apt-get";}function eA(e){let A={...process.env,DEBIAN_FRONTEND:"noninteractive"};return"nala"===e&&(void 0===A.LANG&&(A.LANG="C.UTF-8"),void 0===A.LC_ALL&&(A.LC_ALL="C.UTF-8")),A;}async function et(e,A){return(await Promise.all(A.map(A=>er(e,A)))).filter(e=>void 0!==e);}async function er(e,A){let t=await ei(e,A.name,A.version);return(await X(t))?void 0:t;}async function eo(e,A){let t=[...new Set(A.flatMap(e=>{var A;return null!==(A=e.repositories)&&void 0!==A?A:[];}))];if(0!==t.length){for(let A of(iD||(await ea(e),iD=!0),await es(e),t))m("add-apt-repository",["-y","--no-update",A],{...iE,env:eA(e)});z(e),iR=!0;}}async function en(e,A,t){if(void 0!==t&&""!==t){let{stdout:r}=await B("apt-cache",["search","--names-only",`^${(0,rC.default)(A)}-${(0,rC.default)(t)}$`],{env:eA(e),stdio:"pipe"});if(""!==r.trim())return 0;try{let{stdout:r}=await B("apt-cache",["show",`${A}=${t}`],{env:eA(e)});if(""===r.trim())return 1;}catch{}}try{let{stdout:t}=await B("apt-cache",["show",A],{env:eA(e),stdio:"pipe"});if(""!==t.trim())return 2;}catch{}return iR?3:(z(ee()),iR=!0,en(e,A,t));}async function ei(e,A,t){switch(await en(e,A,t)){case 0:return`${A}-${t}`;case 1:return`${A}=${t}`;case 2:return void 0!==t&&""!==t&&(0,tc.warning)(`Couldnotfindpackage${A}withversion${t}.Installingthelatestversion.`),A;default:throw Error(`Couldnotfindpackage${A}${null!=t?t:""}`);}}async function es(e){(await X("software-properties-common"))||m(e,["install","-y","--fix-broken","-o",iS,"software-properties-common"],{...iE,env:eA(e)});}async function ea(e){iR||(z(e),iR=!0);let A=await et(e,[{name:"ca-certificates"},{name:"gnupg"},{name:"apt-utils"}]);0!==A.length&&m(e,["install","-y","--fix-broken","-o",iS,...A],{...iE,env:eA(e)}),await Promise.all([ec(["3B4FE6ACC0B21F32","40976EAF437D05B5"],"setup-cpp-ubuntu-archive.gpg"),ec(["1E9377A2BA9EF27F"],"launchpad-toolchain.gpg")]);}function el(){m("gpg",["-k"]);}async function ec(e,A,t="keyserver.ubuntu.com"){try{let r="/etc/apt/trusted.gpg.d/"+A;return(await(0,tq.pathExists)(r))||(el(),await Promise.all(e.map(async e=>{await w("gpg",["--no-default-keyring","--keyring","gnupg-ring:"+r,"--keyserver",t,"--recv-keys",e]),await w("chmod",["644",r]);}))),r;}catch(e){(0,tc.warning)(`Failedtoaddaptkeyviaserver${t}:${e}`);return;}}async function eE(e,A){let t="/etc/apt/trusted.gpg.d/"+e;if(!(await(0,tq.pathExists)(t))){el(),await Z([{name:"ca-certificates"}]);let r=new ra.DownloaderHelper(A,(0,r$.tmpdir)(),{fileName:e});r.on("error",e=>{throw Error(`Failedtodownload${A}:${e}`);}),await r.start(
apt-getupdate-o${iS}-y`),s=t,l=1===n?i.replace(/ -y \$PKG/g," -y clang-format-"+s):i,a=l=await AJ(l),l=K()?a.replace(/apt-get/g,"nala"):a,await(0,tx.writeFile)(A,l),[{name:"lsb-release"},{name:"wget"},{name:"software-properties-common"},{name:"gnupg"}];}async function AJ(e){let A=e.replace(/apt-get install -y/g,`apt-getinstall-oDpkg::Options::="--force-overwrite"-o${iS}-y--fix-broken`);return await Promise.all(["libc++-$LLVM_VERSION-dev","libc++abi-$LLVM_VERSION-dev","libunwind-$LLVM_VERSION-dev"].map(async e=>{let t=e.replace("$LLVM_VERSION","*");(await $(t))&&((0,oi.info)("Removing conflicting package "+t),A=A.replace(e,""));})),A;}function AP(e,A,t){let r=`${A}${e}${t}`;return`https://github.com/llvm/llvm-project/releases/download/llvmorg-${e}/${r}`;}function AH(e,A,t){let r=`${A}${e}${t}`;return`https://releases.llvm.org/${e}/${r}`;}async function AV(e){let A;if(sD.has(e))return null;let t="LLVM-",r=l(rf)(e,"3.7.0")?"-win32.exe":"-win64.exe",o=l(rf)(e,"9.0.1"),n=!1;return o&&(A=AH(e,t,r),(await rx(A))||(n=!0)),(n||!o)&&(A=AP(e,t,r)),A;}function Aq(e,A){switch(e){case"darwin":return function(e){if(sS.has(e))return null;let A="9.0.0"===e?"-darwin-apple":"-apple-darwin",t="clang+llvm-",r=`-x86_64${A}.tar.xz`;return l(rf)(e,"9.0.1")?AH(e,t,r):AP(e,t,r);}(A);case"linux":return function(e){let A,t,r=e,o=sv.get(r);if(void 0!==o&&(r=o),r.includes("ubuntu")){let e=r.replace(/-ubuntu-.*/,"");if(!sR.has(e))throw Error("Unsupported Ubuntu version: "+e);A=r.replace(e,""),r=eV(sR,e)[0];}else""!==r&&r in sk?A=sk[r]:(A=sk[sN],(0,tc.warning)(`Falling back to LLVM version ${sN} ${A} for the Ubuntu.`));let n="clang+llvm-";return(t="5.0.0"===r?`-linux-x86_64${A}.tar.xz`:A.includes("-rhel86")?`-x86_64-unknown-linux-gnu${A}.tar.xz`:`-x86_64-linux-gnu${A}.tar.xz`,l(rf)(r,"9.0.1"))?AH(r,n,t):AP(r,n,t);}(A);case"win32":return AV(A);default:return null;}}async function AW(e,A,t){let[r,o]=await eq(sR,A,e,Aq);return(0,tc.info)("specific llvm version: "+r),{url:o,extractedFolderName:"",binRelativeDir:"bin",binFileName:(0,rd.addExeExt)("clang"),extractFunction:"win32"===A?ex:(e,A)=>eO(e,A,1)};}async function Aj(e,A,t){var r;let o=await sF(e,A,t);return await AK(null!==(r=o.installDir)&&void 0!==r?r:A),o;}async function AX(e,A,t){let[r,o]=await Promise.all([A$(e,A,t),A0()]);return await sU(t),r;}async function A$(e,A,t,r=rW.All){let o=Number.parseInt(function(e){if(null===l(rO)(e))try{let A=l(rB)(e);if(null!==A)return(0,tc.info)(`Coerced version '${e}' to '${A}'`),A.version;}catch(e){}return e;}(e).split(".")[0],10);try{if(eh())return await AG(o,r);}catch(e){(0,tc.info)("Failed to install llvm via system package manager "+e);}let n=await eY("llvm",e,AW,A,t);return await sL(o),n;}async function Az(e){eh()&&(e<=10?await Z([{name:"libtinfo5"}]):await Z([{name:"libtinfo-dev"}]));}async function AZ(e){"linux"===process.platform&&(await Am(e7("gcc",void 0,await sa()),"",e,40));}async function AK(e){var A,t;let r=null!==(A=process.env.LD_LIBRARY_PATH)&&void 0!==A?A:"",o=null!==(t=process.env.DYLD_LIBRARY_PATH)&&void 0!==t?t:"",n=[x("LLVM_PATH",e,sO),x("LD_LIBRARY_PATH",`${e}/lib${rz.delimiter}${r}`,sO),x("DYLD_LIBRARY_PATH",`${e}/lib${rz.delimiter}${o}`,sO),x("LDFLAGS",`-L"${e}/lib"`,sO),x("CPPFLAGS",`-I"${e}/include"`,sO),x("CC",(0,rd.addExeExt)(`${e}/bin/clang`),sO),x("CXX",(0,rd.addExeExt)(`${e}/bin/clang++`),sO),x("LIBRARY_PATH",`${e}/lib`,sO),Ap()];eh()&&n.push(q("cc",`${e}/bin/clang`,sO,60),q("cxx",`${e}/bin/clang++`,sO,60),q("clang",`${e}/bin/clang`,sO),q("clang++",`${e}/bin/clang++`,sO),q("lld",`${e}/bin/lld`,sO),q("ld.lld",`${e}/bin/ld.lld`,sO),q("llvm-ar",`${e}/bin/llvm-ar`,sO)),await Promise.all(n);}async function A0(){if(tl.GITHUB_ACTIONS){let e=(0,rd.join)(rj,"llvm_matcher.json");if(!(await(0,tq.pathExists)(e)))return(0,tc.warning)("the llvm_matcher.json file does not exist in the same folder as setup-cpp.js");(0,tc.info)("::add-matcher::"+e);}}async function A1(e,A,t){switch(process.platform){case"win32":return eB("make",e);case"darwin":return await eI("make",e),await O("/usr/local/opt/make/libexec/gnubin",sO),{binDir:"/usr/loc
`),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:"--ccache, --sccache"},documentation:{tools:"--doxygen, --graphviz"},coverage:{tools:"--gcovr, --opencppcoverage, --kcov"},other:{tools:"--python, --powershell, --sevenzip"}},["tools"]));let a=null!==(A=s.architecture)&&void 0!==A?A:process.arch,c=null!==(t=process.env.SETUP_CPP_DIR)&&void 0!==t?t:F("~"),E=[],g=[],u=tz.create({autoloadLocales:!0});tz.addLocale(l(tZ)),tX.addLocale(l(t$));let h=await sa();if(!function(e,A){let t=A.filter(A=>void 0!==e[A]),r=t.filter(A=>!Ae(e[A])),o=r.length>=1?e[r[0]]:"true";if(r.some(A=>e[A]!==o))return!1;for(let A of t)e[A]=o;return!0;}(s,["llvm","clangtidy","clangformat"]))return(0,tc.error)("The same version must be used for llvm, clangformat and clangtidy"),1;eu()&&"string"==typeof s.cppcheck&&"string"==typeof s.gcovr&&((0,tc.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await em("python-pygments"));let Q=!1,C=!1;for(let e of sx){if(tl.isCI&&0!==g.length){C=!0;break;}let A=s[e];void 0!==A&&(o=Date.now(),Q=await AM(e,A,h,a,c,E,g,6e4*Number.parseFloat(null!==(r=s.timeout)&&void 0!==r?r:"20")),n=Date.now(),(0,tc.info)("took "+(u.format(o,n)||"0 seconds")));}if(!C){let e=s.compiler;if(void 0!==e){let A=Date.now();await to(e,h,c,a,E,Q,g);let t=Date.now();(0,tc.info)("took "+(u.format(A,t)||"0 seconds"));}}if(await T(sO),0===E.length&&0===g.length)return(0,tc.warning)("setup-cpp was called without any arguments. Nothing to do."),0;for(let e of E)(0,tc.success)(e);for(let e of g)(0,tc.error)(e);if((0,tc.info)("setup-cpp finished"),!tl.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,tc.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,tc.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaiti,0===g.length?0:1;}varti,ts,ta,tl,tc,tE,tg,tu,th,tQ,tC,tI,td,tB,tf,tp,ty,tm,tw,tb,tR,tD,tS,tv,tk,tN,tF,tL,tU,t_,tT,tx,tM,tO,tG,tY,tJ,tP,tH,tV,tq,tW,tj,tX,t$,tz,tZ,tK,t0,t1,t2,t4,t9,t8,t3,t5,t6,t7,re,rA,rt,rr,ro,rn,ri,rs,ra,rl,rc,rE,rg,ru,rh,rQ,rC,rI,rd,rB,rf,rp,ry,rm,rw,rb,rR,rD,rS,rv,rk,rN,rF,rL,rU,r_,rT,rx,rM,rO,rG,rY,rJ,rP,rH,rV,rq,rW,rj,rX,r$=require("os"),rz=require("path"),rZ=require("fs"),rK=require("crypto"),r0=require("http"),r1=require("https"),r2=require("net"),r4=require("tls"),r9=require("events"),r8=require("assert"),r3=require("util"),r5=require("stream"),r6=require("buffer"),r7=require("querystring"),oe=require("stream"),oA=require("util"),ot=require("events"),or=require("perf_hooks"),oo=require("worker_threads"),on=require("async_hooks"),oi=require("console"),os=require("url"),oa=require("zlib"),ol=require("string_decoder"),oc=require("fs"),oE=require("child_process"),og=require("timers"),ou=require("buffer"),oh=require("path"),oQ=require("child_process"),oC=require("process"),oI=require("url"),od=require("os"),oB=require("process"),of=globalThis,op={},oy={},om=of.parcelRequire94c2;null==om&&((om=function(e){if(einop)returnop[e].exports;if(einoy){varA=oy[e];deleteoy[e];vart={id:e,exports:{}};returnop[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){oy[e]=A;},of.parcelRequire94c2=om),(ta=om.register)("dKklS",function(e,A){vart;functionr(e){return"string"==typeofe?!!o[e]:"env"ine?o[e.env]&&o[e.env].includes(e.includes):"any"ine?e.any.some(function(e){return!!o[e];}):Object.keys(e).every(function(A){returno[A]===e[A];});}t=om("ksAXT");leto=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,typ
`: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)?(r8(I===t.byteLength,"buffer body must have content length"),d.cork(),d.write(`${B}content-length:${I}\r
`,"latin1"):(r8(null===I,"no body must not have content length"),d.write(`${B}\r
`,"latin1")),A.onRequestSent()),!0;}(e,o)?e[J]++:e[_].splice(e[J],1);}}(e,A),e[k]=0,e[P]>256&&(e[_].splice(0,e[P]),e[J]-=e[P],e[P]=0));}function eU(e){return"GET"!==e&&"HEAD"!==e&&"OPTIONS"!==e&&"TRACE"!==e&&"CONNECT"!==e;}function e_({h2stream:e,body:A,client:o,request:n,socket:i,contentLength:s,header:a,expectsPayload:l}){if(r8(0!==s||0===o[N],"stream body cannot be pipelined"),"h2"===o[ec]){function c(e){n.onBodySent(e);}let o=t(A,e,t=>{t?(r.destroy(A,t),r.destroy(e,t)):n.onRequestSent();});o.on("data",c),o.once("end",()=>{o.removeListener("data",c),r.destroy(o);});return;}let g=!1,u=new e5({socket:i,request:n,contentLength:s,client:o,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,r8(i.destroyed||i[U]&&o[N]<=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 eT({h2stream:e,body:A,client:t,request:o,socket:n,contentLength:i,header:s,expectsPayload:l}){r8(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()):(n.cork(),n.write(`${s}content-length:${i}\r
`,"latin1"),n.write(r),n.uncork()),o.onBodySent(r),o.onRequestSent(),l||(n[m]=!0),eL(t);}catch(A){r.destroy(c?e:n,A);}}async function ex({h2stream:e,body:A,client:t,request:r,socket:o,contentLength:n,header:i,expectsPayload:s}){function a(){if(l){let e=l;l=null,e();}}r8(0!==n||0===t[N],"iterator body cannot be pipelined");let l=null,c=()=>new Promise((e,A)=>{r8(null===l),o[H]?A(o[H]):l=e;});if("h2"===t[ec]){e.on("close",a).on("drain",a);try{for await(let t of A){if(o[H])throw o[H];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;}o.on("close",a).on("drain",a);let E=new e5({socket:o,request:r,contentLength:n,client:t,expectsPayload:s,header:i});try{for await(let e of A){if(o[H])throw o[H];E.write(e)||(await c());}E.end();}catch(e){E.destroy(e);}finally{o.off("close",a).off("drain",a);}}function eM(e,A,t){try{A.onError(t),r8(A.aborted);}catch(A){e.emit("error",A);}}t=r5.pipeline,r=om("jksEw"),o=om("bLoP1"),n=om("9ihOp"),i=om("8Tdy2"),a=(s=om("ayJiG")).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=om("ertK5"),y=(p=om("eoU9M")).kUrl,m=p.kReset,w=p.kServerName,b=p.kClient,R=p.kBusy,D=p.kParser,S=p.kConnect,v=p.kBlocking,k=p.kResuming,N=p.kRunning,F=p.kPending,L=p.kSize,U=p.kWriting,_=p.kQueue,T=p.kConnected,x=p.kConnecting,M=p.kNeedDrain,O=p.kNoRef,G=p.kKeepAliveDefaultTimeout,Y=p.kHostHeader,J=p.kPendingIdx,P=p.kRunningIdx,H=p.kError,V=p.kPipelining,q=p.kSocket,W=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,eo=p.kClose,en=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=$63bd9792098e499e$import$44c8f355160d282b;}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:eP,HTTP2_HEADER_EXPECT:eH,HTTP2_HEADER_STATUS:eV}}=eB,eq=!1,eW=Buffer[Symbol.species],ej=Symbol(),eX={};try{let e=om("5tMx2");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=om("fTLvG"),ed=om("9sz7P");let e$=Buffer.alloc(0),ez=null,eZ=ew();eZ.catch();let eK=null,e0=null,e1=0,e2=null,e4=1,e9=2,e8=3;class e3{constructor(e,A,{exports:t}){r8(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?(o.clearTimeout(this.timeout),e?(this.timeout=o.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&&(r8(null!=this.ptr),r8(null==eK),this.llhttp.llhttp_resume(this.ptr),r8(this.timeoutType===e9),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&&(r8(t[N]<=1,"pipeline should only contain this request"),r.destroy(A,e));}}e.exports=class extends i{constructor(e,{interceptors:A,maxHeaderSize:t,headersTimeout:o,socketTimeout:n,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:v,autoSelectFamilyAttemptTimeout:N,allowH2:F,maxConcurrentStreams:L}={}){if(super(),void 0!==E)throw new c("unsupported keepAlive, use pipelining=0 instead");if(void 0!==n)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!=o&&(!Number.isInteger(o)||o<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===r2.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!=N&&(!Number.isInteger(N)||N<-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&&v?{autoSelectFamily:v,autoSelectFamilyAttemptTimeout:N}: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[q]=null,this[V]=null!=I?I:1,this[j]=t||r0.maxHeaderSize,this[G]=null==g?4e3:g,this[X]=null==h?6e5:h,this[$]=null==Q?1e3:Q,this[W]=this[G],this[w]=null,this[ea]=null!=D?D:null,this[k]=0,this[M]=0,this[Y]=`host:${this[y].hostname}${this[y].port?":"+this[y].port:""}\r
`,this[Z]=null!=a?a:3e5,this[z]=null!=o?o: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[_]=[],this[P]=0,this[J]=0;}get pipelining(){return this[V];}set pipelining(e){this[V]=e,eL(this,!0);}get[F](){return this[_].length-this[J];}get[N](){return this[J]-this[P];}get[L](){return this[_].length-this[P];}get[T](){return!!this[q]&&!this[x]&&!this[q].destroyed;}get[R](){let e=this[q];return e&&(e[m]||e[U]||e[v])||this[L]>=(this[V]||1)||this[F]>0;}[S](e){eN(this),this.once("connect",e);}[ei](e,A){let t=e.origin||this[y].origin,o="h2"===this[ec]?n[eh](t,e,A):n[eC](t,e,A);return this[_].push(o),this[k]||(null==r.bodyLength(o.body)&&r.isIterable(o.body)?(this[k]=1,process.nextTick(eL,this)):eL(this,!0)),this[k]&&2!==this[M]&&this[R]&&(this[M]=2),this[M]<2;}async[eo](){return new Promise(e=>{this[L]?this[ej]=e:e(null);});}async[en](e){return new Promise(A=>{let t=this[_].splice(this[J]);for(let A=0;A<t.length;A++)eM(this,t[A],e);let o=()=>{this[ej]&&(this[ej](),this[ej]=null),A();};null!=this[eg]&&(r.destroy(this[eg],e),this[eg]=null,this[eu]=null),this[q]?r.destroy(this[q].on("close",o),e):queueMicrotask(o),eL(this);});}};}),ta("jksEw",function(e,A){var t,r,o,n,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=om("eoU9M")).kDestroyed,o=t.kBodyUsed,n=r0.IncomingMessage,i=om("ayJiG").InvalidArgumentError,s=r6.Blob,a=r7.stringify,l=om("kQDvw").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&&(r5.isDisturbed?r5.isDisturbed(e)||e[o]:e[o]||e.readableDidRead||e._readableState&&e._readableState.dataEmitted||Q(e)));},isErrored:function(e){return!!(e&&(r5.isErrored?r5.isErrored(e):/state: 'errored'/.test(r3.inspect(e))));},isReadable:function(e){return!!(e&&(r5.isReadable?r5.isReadable(e):/state: 'readable'/.test(r3.inspect(e))));},toUSVString:function(e){return f?(""+e).toWellFormed():r3.toUSVString?
`;}function g(e,A,t,n=!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,n?e.headers[A]=E(A,t,n):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 o("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++)n?e.headers[A]?e.headers[A]+=","+E(A,t[r],n):e.headers[A]=E(A,t[r],n):e.headers+=E(A,t[r]);else n?e.headers[A]=E(A,t,n):e.headers+=E(A,t);}}r=(t=om("ayJiG")).InvalidArgumentError,o=t.NotSupportedError,i=(n=om("eoU9M")).kHTTP2BuildRequest,s=n.kHTTP2CopyHeaders,a=n.kHTTP1BuildRequest,l=om("jksEw");let u=/^[\^_`a-zA-Z\-0-9!#$%&'*+.|~]+$/,h=/[^\t\x20-\x7e\x80-\xff]/,Q=Symbol(),C={};try{lete=om("5tMx2");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:o,headers:n,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==o)this.body=null;elseif(l.isStream(o)){this.body=o;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(o))this.body=o.byteLength?o:null;elseif(ArrayBuffer.isView(o))this.body=o.buffer.byteLength?Buffer.from(o.buffer,o.byteOffset,o.byteLength):null;elseif(oinstanceofArrayBuffer)this.body=o.byteLength?Buffer.from(o):null;elseif("string"==typeofo)this.body=o.length?Buffer.from(o):null;elseif(l.isFormDataLike(o)||l.isIterable(o)||l.isBlobLike(o))this.body=o;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(r8(!this.aborted),r8(!this.completed),!this.error)return this.abort=e,this[Q].onConnect(e);e(this.error);}onHeaders(e,A,t,r){r8(!this.aborted),r8(!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){r8(!this.aborted),r8(!this.completed);try{return this[Q].onData(e);}catch(e){return this.abort(e),!1;}}onUpgrade(e,A,t){return r8(!this.aborted),r8(!this.completed),this[Q].onUpgrade(e,A,t);}onComplete(e){this.onFinally(),r8(!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 o=A.headers,n=new I(e,A={...A,headers:null},t);if(n.headers={},Array.isArray(o)){if(o.length%2!=0)throw new r("headers array must be even");for(let e=0;e<o.length;e+=2)g(n,o[e],o[e+1],!0);}else if(o&&"object"==typeof o){let e=Object.keys(o);for(let A=0;A<e.length;A++){let t=e[A];g(n,t,o[t],!0);}}else if(null!=o)throw new r("headers must be an object or an array");return n;}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;}),ta("5tMx2",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 "+r3.inspect(A,{depth:-1});else{let t=r3.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,o.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 o{constructor(e){this._subscribers=void 0,this.name=e;}static[Symbol.hasInstance](e){let A=Object.getPrototypeOf(e);return A===o.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 n={};e.exports={channel:function(e){let A=n[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 n[e]=new o(e);},hasSubscribers:function(e){let A=n[e];return!!A&&A.hasSubscribers;},Channel:o,deleteChannel:function(e){return!!n[e]&&(n[e]=null,!0);}};}),ta("fOogJ",function(e,A){var t,r,o,n,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=om("kJ4DQ").ReadableStream);let t=null;t=e
`.trim());}};}),ta("lqUE6",function(e,A){var t=r3.promisify,r=om("kOCfr"),o=om("23wg0").buildMockDispatch,n=om("5cl5M"),i=n.kDispatches,s=n.kMockAgent,a=n.kClose,l=n.kOriginalClose,c=n.kOrigin,E=n.kOriginalDispatch,g=n.kConnected,u=om("7SSeF").MockInterceptor,h=om("eoU9M"),Q=om("ayJiG").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=o.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;}),ta("9U5KG",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,o=A?this.singular:this.plural;return{...(A?t:r),count:e,noun:o};}};}),ta("9GRph",function(e,A){var t=r5.Transform,r=oi.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:o,timesInvoked:n,origin:i})=>({Method:e,Origin:i,Path:A,"Status code":t,Persistent:r?"✅":"❌",Invocations:n,Remaining:r?1/0:o-n}));return this.logger.table(A),this.transform.read().toString();}};}),ta("5IibL",function(e,A){var t,r,o,n,i,s,a,l,c,E,g,u,h;function Q(e,A){return new l(e,A);}r=(t=om("eoU9M")).kProxy,o=t.kClose,n=t.kDestroy,i=t.kInterceptors,s=os.URL,a=om("c0vcY"),l=om("kOCfr"),c=om("8Tdy2"),g=(E=om("ayJiG")).InvalidArgumentError,u=E.RequestAbortedError,h=om("ertK5");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:o,port:n,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:o,port:n,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[o](){await this[C].close(),await this[I].close();}async[n](){await this[C].destroy(),await this[I].destroy();}};}),ta("dBMXf",function(e,A){var t=om("eoU9M").kRetryHandlerDefaultRetry,r=om("ayJiG").
${A}`,oG=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oY=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oJ=(e,A,t)=>{let r=""===t?"":`with${t.trim()}()`,o=oO.bind(null,r,A.toString());Object.defineProperty(o,"name",oY),Object.defineProperty(e,"toString",{...oG,value:o});},oP=new WeakMap(),oH=(e,A={})=>{let t;if("function"!=typeof e)throw TypeError("Expected a function");let r=0,o=e.displayName||e.name||"<anonymous>",n=function(...i){if(oP.set(n,++r),1===r)t=e.apply(this,i),e=null;else if(!0===A.throw)throw Error(`Function\`${o}\` can only be called once`);returnt;};return!function(e,A,{ignoreNonConfigurable:t=!1}={}){let{name:r}=e;for(letrofReflect.ownKeys(A))oT(e,A,r,t);oM(e,A),oJ(e,A,r);}(n,e),oP.set(n,r),n;};oH.callCount=e=>{if(!oP.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnoP.get(e);},tb=oH;constoV=()=>Array.from({length:oj-oW+1},oq),oq=(e,A)=>({name:"SIGRT"+(A+1),number:oW+A,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oW=34,oj=64,oX=[{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=n,r.signal=o,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;},o4=["stdin","stdout","stderr"],o9=e=>o4.some(A=>void 0!==e[A]),o8=e=>{if(!e)return;let{stdio:A}=e;if(void 0===A)return o4.map(A=>e[A]);if(o9(e))throw Error("It's not possible to provide `stdio` in combination with one of "+o4.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,o4.length)},(e,t)=>A[t]);};tR={};consto3=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(o3(tD=of.process)){varo5,o6=om("bJALw"),o7=/^win/i.test(tD.platform),ne=r9;"function"!=typeofne&&(ne=ne.EventEmitter),tD.__signal_exit_emitter__?o5=tD.__signal_exit_emitter__:((o5=tD.__signal_exit_emitter__=newne()).count=0,o5.emitted={}),o5.infinite||(o5.setMaxListeners(1/0),o5.infinite=!0);varnA=function(){no&&o3(of.process)&&(no=!1,o6.forEach(function(e){try{tD.removeListener(e,nr[e]);}catch(e){}}),tD.emit=na,tD.reallyExit=ni,o5.count-=1);};(tR=function(e,A){if(!o3(of.process))returnfunction(){};r8.equal(typeofe,"function","a callback must be provided for exit handler"),!1===no&&nn();vart="exit";returnA&&A.alwaysLast&&(t="afterexit"),o5.on(t,e),function(){o5.removeListener(t,e),0===o5.listeners("exit").length&&0===o5.listeners("afterexit").length&&nA();};}).unload=nA;varnt=function(e,A,t){o5.emitted[e]||(o5.emitted[e]=!0,o5.emit(e,A,t));},nr={};o6.forEach(function(e){nr[e]=function(){o3(of.process)&&tD.listeners(e).length===o5.count&&(nA(),nt("exit",null,e),nt("afterexit",null,e),o7&&"SIGHUP"===e&&(e="SIGINT"),tD.kill(tD.pid,e));};}),tR.signals=function(){returno6;};varno=!1,nn=function(){!no&&o3(of.process)&&(no=!0,o5.count+=1,o6=o6.filter(function(e){try{returntD.on(e,nr[e]),!0;}catch(e){return!1;}}),tD.emit=nl,tD.reallyExit=ns);};tR.load=nn;varni=tD.reallyExit,ns=function(e){o3(of.process)&&(tD.exitCode=e||0,nt("exit",tD.exitCode,null),nt("afterexit",tD.exitCode,null),ni.call(tD,tD.exitCode));},na=tD.emit,nl=function(e,A){if(!("exit"===e&&o3(of.process)))returnna.apply(this,arguments);void0!==A&&(tD.exitCode=A);vart=na.apply(this,arguments);returnnt("exit",tD.exitCode,null),nt("afterexit",tD.exitCode,null),t;};}elsetR=function(){returnfunction(){};};constnc=(e,A="SIGTERM",t={})=>{letr=e(A);returnnE(e,A,t,r),r;},nE=(e,A,t,r)=>{if(!ng(A,t,r))return;leto=setTimeout(()=>{e("SIGKILL");},nh(t));o.unref&&o.unref();},ng=(e,{forceKillAfterTimeout:A},t)=>nu(e)&&!1!==A&&t,nu=e=>e===l(od).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),nh=({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;},nQ=(e,A)=>{e.kill()&&(A.isCanceled=!0);},nC=(e,A,t)=>{e.kill(A),t(Object.assign(Error("Timed out"),{timedOut:!0,signal:A}));},nI=(e,{timeout:A,killSignal:t="SIGTERM"},r)=>{leto;return0===A||void0===A?r:Promise.race([newPromise((r,n)=>{o=setTimeout(()=>{nC(e,t,n);},A);}),r.finally(()=>{clearTimeout(o);})]);},nd=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},nB=async(e,{cleanup:A,detached:t},r)=>{if(!A||t)returnr;leto=l(tR)(()=>{e.kill();});returnr.finally(()=>{o();});},nf=e=>einstanceofoQ.ChildProcess&&"function"==typeofe.then,np=(e,A,t)=>{if("string"==typeoft)returne[A].pipe((0,oc.createWriteStream)(t)),e;if(I(t))re
`);},nz=({env:e,extendEnv:A,preferLocal:t,localDir:r,execPath:o})=>{let n=A?{...l(oC).env,...e}:e;return t?o_({env:n,cwd:r,execPath:o}):n;},nZ=(e,A,t={})=>{let r=l(tg)._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(oC).cwd(),execPath:l(oC).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:nW,...t}).env=nz(t),t.stdio=o8(t),"win32"===l(oC).platform&&"cmd"===l(oh).basename(e,".exe")&&A.unshift("/q"),{file:e,args:A,options:t,parsed:r};},nK=(e,A,t)=>"string"==typeof A||(0,ou.Buffer).isBuffer(A)?e.stripFinalNewline?function(e){let A="string"==typeof e?"\n":"\n".charCodeAt(),t="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===A&&(e=e.slice(0,-1)),e[e.length-1]===t&&(e=e.slice(0,-1)),e;}(A):A:void 0===t?void 0:"",n0=({input:e,inputFile:A,stdio:t})=>void 0===e&&void 0===A&&void 0===t?{stdin:"inherit"}:{},n1=(e={})=>({preferLocal:!0,...n0(e),...e});!function e(A){function t(r,...o){if(!Array.isArray(r))return e({...A,...r});let[n,...i]=nq(r,o);return B(n,i,n1(A));}return t.sync=(e,...t)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[r,...o]=nq(e,t);return f(r,o,n1(A));},t;}(),t_={},a(tT={},"isexe",()=>n2),a(tT,"sync",()=>n4),tx=om("6vN83");const n2=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return n9(await(0,tx.stat)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},n4=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return n9((0,rZ.statSync)(e),A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},n9=(e,A)=>e.isFile()&&n8(e,A),n8=(e,A)=>{var t,r,o,n,i,s,a,l,c,E,g;let u=null!==(a=A.uid)&&void 0!==a?a:null===(t=(r=process).getuid)||void 0===t?void 0:t.call(r),h=null!==(c=null!==(l=A.groups)&&void 0!==l?l:null===(o=(n=process).getgroups)||void 0===o?void 0:o.call(n))&&void 0!==c?c:[],Q=null!==(g=null!==(E=A.gid)&&void 0!==E?E:null===(i=(s=process).getgid)||void 0===i?void 0:i.call(s))&&void 0!==g?g:h[0];if(void 0===u||void 0===Q)throw Error("cannot get uid or gid");let C=new Set([Q,...h]),I=e.mode,d=e.uid,B=e.gid,f=parseInt("100",8),p=parseInt("010",8);return!!(I&parseInt("001",8)||I&p&&C.has(B)||I&f&&d===u||I&(f|p)&&0===u);};a(tM={},"isexe",()=>n3),a(tM,"sync",()=>n5),tx=om("6vN83");const n3=async(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return n7(await(0,tx.stat)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},n5=(e,A={})=>{let{ignoreErrors:t=!1}=A;try{return n7((0,rZ.statSync)(e),e,A);}catch(e){if(t||"EACCES"===e.code)return!1;throw e;}},n6=(e,A)=>{let{pathExt:t=process.env.PATHEXT||""}=A,r=t.split(";");if(-1!==r.indexOf(""))return!0;for(let A=0;A<r.length;A++){let t=r[A].toLowerCase(),o=e.substring(e.length-t.length).toLowerCase();if(t&&o===t)return!0;}return!1;},n7=(e,A,t)=>e.isFile()&&n6(A,t),ie="win32"===(process.env._ISEXE_TEST_PLATFORM_||process.platform)?tM:tT,iA=ie.isexe,it=ie.sync;tO=rz.join,tG=rz.delimiter,tY=rz.sep,tJ=rz.posix;const ir="win32"===process.platform,io=new RegExp(`[${tJ.sep}${tY===tJ.sep?"":tY}]`.replace(/(\\)/g,"\\$1")),ii=RegExp("^\\."+io.source),is=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),ia=(e,{path:A=process.env.PATH,pathExt:t=process.env.PATHEXT,delimiter:r=tG})=>{let o=e.match(io)?[""]:[...(ir?[process.cwd()]:[]),...(A||"").split(r)];if(ir){let A=t||[".EXE",".CMD",".BAT",".COM"].join(r),n=A.split(r).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==n[0]&&n.unshift(""),{pathEnv:o,pathExt:n,pathExtExe:A};}return{pathEnv:o,pathExt:[""]};},il=(e,A)=>{let t=/^".*"$/.test(e)?e.slice(1,-1):e;return(!t&&ii.test(A)?A.slice(0,2):"")+tO(t,A);},ic=async(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:o}=ia(e,A),n=[];for(let i of t){let t=il(i,e);for(let e of r){let r=t+e;if(await iA(r,{pathExt:o,ignoreErrors:!0})){if(!A.all)return r;n.push(r);}}}if(A.all&&n.length)return n;if(A.nothrow)return null;throw is(e);};t_=ic,ic.sync=(e,A={})=>{let{pathEnv:t,pathExt:r,pathExtExe:o}=ia(e,A),n=[];for(let i of t){let t=il(i,e);for(let e of r){let r=t+e;if(it(r,{pathExt: