lete,t,r,n,i,o,s,a;functionl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}functionc(e){returne&&e.__esModule?e.default:e;}functionu(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise(function(r,n){u(e,t||{},function(e,t){e?n(e):r(t);});});}r_(e,t||{},function(e,n){e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}functiond(e,t){letr;letn=e.options.env||process.env,i=process.cwd(),o=null!=e.options.cwd,s=o&&void0!==process.chdir&&!process.chdir.disabled;if(s)try{process.chdir(e.options.cwd);}catch(e){}try{r=rO.sync(e.command,{path:n[rA({env:n})],pathExt:t?i$.delimiter:void0});}catch(e){}finally{s&&process.chdir(i);}returnr&&(r=i$.resolve(o?e.options.cwd:"",r)),r;}functionp(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args});}functionf(e,t){returnij&&1===e&&!t.file?p(t.original,"spawn"):null;}functionh(e,t,r){letn=rT(e,t,r),i=t7.spawn(n.command,n.args,n.options);returnrk.hookChildProcess(i,n),i;}asyncfunctionm(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r8(t);returnawaitnewPromise((t,i)=>{leto=e=>{e&&n.getBufferedLength()<=r3.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e);};(async()=>{try{awaitoh(e,n),t();}catch(e){o(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(newom());});}),n.getBufferedValue();}functiong(){vare;return((null===(e=process.getuid)||void0===e?void0:e.call(process))===0||!!process.env.CI)&&null!==c(rO).sync("sudo",{nothrow:!0});}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returng()?c(rC).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rC).sync(e,t,r);}functiony(e,t=[],r={stdio:"inherit",shell:!0}){returng()?c(rC).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rC)(e,t,r);}functionw(e){returng()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,i$.join)("/Users/",process.env.SUDO_USER,e):(0,i$.join)("/home/",process.env.SUDO_USER,e):c(rS)("~/"+e);}functionx(e,t,r,n){returnnew(r||(r=Promise))(function(i,o){functions(e){try{l(n.next(e));}catch(e){o(e);}}functiona(e){try{l(n.throw(e));}catch(e){o(e);}}functionl(e){vart;e.done?i(e.value):((t=e.value)instanceofr?t:newr(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});}functionE(e,t){functionr(r){returnfunction(l){returnfunction(r){if(n)throwTypeError("Generator is already executing.");for(;s&&(s=0,r[0]&&(a=0)),a;)try{if(n=1,i&&(o=2&r[0]?i.return:r[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,r[1])).done)returno;switch(i=0,o&&(r=[2&r[0],o.value]),r[0]){case0:case1:o=r;break;case4:returna.label++,{value:r[1],done:!1};case5:a.label++,i=r[1],r=[0];continue;case7:r=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===r[0]||2===r[0])){a=0;continue;}if(3===r[0]&&(!o||r[1]>o[0]&&r[1]<o[3])){a.label=r[1];break;}if(6===r[0]&&a.label<o[1]){a.label=o[1],o=r;break;}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(r);break;}o[2]&&a.ops.pop(),a.trys.pop();continue;}r=t.call(e,a);}catch(e){r=[6,e],i=0;}finally{n=o=0;}if(5&r[0])throwr[1];return{value:r[0]?r[1]:void0,done:!0};}([r,l]);};}varn,i,o,s,a={label:0,sent:function(){if(1&o[0])throwo[1];returno[1];},trys:[],ops:[]};returns={next:r(0),throw:r(1),return:r(2)},"function"==typeofSymbol&&(s[Symbol.iterator]=function(){returnthis;}),s;}asyncfunctionb(){try{awaitc(nd)({pkg:c(nC)});}catch(e){(0,ry.warning)("Failed to check for updates: "+(einstanceofError?e.message+e.stack:e));}}functionS(e){returnnull==e?[]:Array.isArray(e)?e:[e];}functionO(e={}){let{env:t=process.env,platform:r=process.platform}=e;return"win32"!==r?"PATH":Object.keys(t).reverse().find(e=>"PATH"===e.toUpperCase())||"Path";}function$(e){returnnull!==e&&"object"==typeofe&&"function"==typeofe.pipe;}function_(e){return$(e)&&!1!==e.writable&&"function"==typeofe._write&&"object"==typeof
`),(0,nI.info)(`${e}="${n}"wasaddedto"${sD}`));return;}process.env[e]=n;}async function L(e){switch(process.platform){case"win32":await T(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nI.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitk(),(0,i_.appendFileSync)(sD,`
`),(0,nI.info)(`"${e}"wasaddedto"${sD}"`);return;default:return;}}async function k(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,nP.pathExists)(sD)){let t=(0,i_.readFileSync)(sD,"utf8");if(t.includes(e))return;}(0,i_.appendFileSync)(sD,`
`),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 l=null!==(t=a.architecture)&&void 0!==t?t:process.arch,u=null!==(r=process.env.SETUP_CPP_DIR)&&void 0!==r?r:w(""),d=[],p=[],f=rE.create({autoloadLocales:!0});rE.addLocale(c(rb)),rw.addLocale(c(rx));let h=await ap();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eY(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(a,["llvm","clangtidy","clangformat"]))return(0,ry.error)("The same version must be used for llvm, clangformat and clangtidy"),1;Z()&&"string"==typeof a.cppcheck&&"string"==typeof a.gcovr&&((0,ry.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eo("python-pygments"));let m=!1,g=!1;for(let e of az){if(rv.isCI&&0!==p.length){g=!0;break;}let t=a[e];void 0!==t&&(i=Date.now(),m=await t$(e,t,h,l,u,d,p,6e4*parseFloat(null!==(n=a.timeout)&&void 0!==n?n:"20")),o=Date.now(),(0,ry.info)("took "+(f.format(i,o)||"0 seconds")));}if(!g){let e=a.compiler;if(void 0!==e){let t=Date.now();await tJ(e,h,u,l,d,m,p);let r=Date.now();(0,ry.info)("took "+(f.format(t,r)||"0 seconds"));}}if(await D(),0===d.length&&0===p.length)return(0,ry.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(d.forEach(e=>(0,ry.success)(e)),p.forEach(e=>(0,ry.error)(e)),(0,ry.info)("setup-cpp finished"),!rv.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,ry.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,ry.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaits,0===p.length?0:1;}vart0,t1,t2,t4,t3,t6,t8,t5,t7,t9,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rh,rm,rg,rv,ry,rw,rx,rE,rb,rS,rO,r$,r_,rC,rI,rT,rR,rA,rP,rN,rL,rk,rD,rU,rj,rF,rM,rG,rB,rH,rq,rV,rz,rW,rX,rK,rY,rQ,rJ,rZ,r0,r1,r2,r4,r3,r6,r8,r5,r7,r9,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nh,nm,ng,nv,ny,nw,nx,nE,nb,nS,nO,n$,n_,nC,nI,nT,nR,nA,nP,nN,nL,nk,nD,nU,nj,nF,nM,nG,nB,nH,nq,nV,nz,nW,nX,nK,nY,nQ,nJ,nZ,n0,n1,n2,n4,n3,n6,n8,n5,n7,n9,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,ih,im,ig,iv,iy,iw,ix,iE,ib,iS,iO=require("os"),i$=require("path"),i_=require("fs"),iC=require("crypto"),iI=require("http"),iT=require("https");require("net"),t4=require("tls"),t3=require("events"),t6=require("assert"),t8=require("util"),t5=require("fs"),t7=require("child_process"),t9=require("string_decoder"),re=require("timers"),rt=require("buffer"),rr=require("stream"),rn=require("process"),ri=require("buffer"),ro=require("path"),rs=require("child_process"),ra=require("process"),rl=require("url"),rc=require("os"),ru=require("util"),rd=require("url"),rp=require("console"),rf="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},rh={},rm={},null==(rg=rf.parcelRequire810d)&&((rg=function(e){if(einrh)returnrh[e].exports;if(einrm){vart=rm[e];deleterm[e];varr={id:e,exports:{}};returnrh[e]=r,t.call(r.exports,r,r.exports),r.exports;}varn=Error("Cannotfindmodule'"+e+"'");thrown.code="MODULE_NOT_FOUND",n;}).register=function(e,t){rm[e]=t;},rf.parcelRequire810d=rg),rg.register("cLprm",function(e,t){varr;functionn(e){return"string"==typeofe?!!i[e]:"env"ine?i[e.env]&&i[e.env].includes(e.includes):"any"ine?e.any.some(function(e){return!!i[e];}):Object.keys(e).every(function(t){returni[t]===e[t];});}r=rg("iQYeD");leti=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(function(e){returne.constant;})}),e.exports.name=null,e.exports.isPR=null,r.forEach(function(t){letr=Array.isArray(t.env)?t.env:[t.env],o
ErrorMessage:${e.result.message}`);}),i=null===(t=n.result)||void 0===t?void 0:t.value;if(!i)throw Error("Response json body do not have ID Token field");return i;});}static getIDToken(e){return r(this,void 0,void 0,function*(){try{let t=s.getIDTokenUrl();if(e){let r=encodeURIComponent(e);t=`${t}&audience=${r}`;}o.debug("ID token url is "+t);let r=yield s.getCall(t);return o.setSecret(r),r;}catch(e){throw Error("Error message: "+e.message);}});}}e.exports.OidcClient=s;}),rg.register("kZ2GT",function(e,t){var r,n,i,o,s,a,l,c,u;r=e.exports&&e.exports.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r];}});}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r];}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),i=e.exports&&e.exports.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)"default"!==i&&Object.hasOwnProperty.call(e,i)&&r(t,e,i);return n(t,e),t;},o=e.exports&&e.exports.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(i,o){function s(e){try{l(n.next(e));}catch(e){o(e);}}function a(e){try{l(n.throw(e));}catch(e){o(e);}}function l(e){var t;e.done?i(e.value):((t=e.value)instanceof r?t:new r(function(e){e(t);})).then(s,a);}l((n=n.apply(e,t||[])).next());});},Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.HttpClient=e.exports.isHttps=e.exports.HttpClientResponse=e.exports.HttpClientError=e.exports.getProxyUrl=e.exports.MediaTypes=e.exports.Headers=e.exports.HttpCodes=void 0;let d=i(iI),p=i(iT),f=i(rg("1kBrV")),h=i(rg("j6C2A"));(c=s=e.exports.HttpCodes||(e.exports.HttpCodes={}))[c.OK=200]="OK",c[c.MultipleChoices=300]="MultipleChoices",c[c.MovedPermanently=301]="MovedPermanently",c[c.ResourceMoved=302]="ResourceMoved",c[c.SeeOther=303]="SeeOther",c[c.NotModified=304]="NotModified",c[c.UseProxy=305]="UseProxy",c[c.SwitchProxy=306]="SwitchProxy",c[c.TemporaryRedirect=307]="TemporaryRedirect",c[c.PermanentRedirect=308]="PermanentRedirect",c[c.BadRequest=400]="BadRequest",c[c.Unauthorized=401]="Unauthorized",c[c.PaymentRequired=402]="PaymentRequired",c[c.Forbidden=403]="Forbidden",c[c.NotFound=404]="NotFound",c[c.MethodNotAllowed=405]="MethodNotAllowed",c[c.NotAcceptable=406]="NotAcceptable",c[c.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",c[c.RequestTimeout=408]="RequestTimeout",c[c.Conflict=409]="Conflict",c[c.Gone=410]="Gone",c[c.TooManyRequests=429]="TooManyRequests",c[c.InternalServerError=500]="InternalServerError",c[c.NotImplemented=501]="NotImplemented",c[c.BadGateway=502]="BadGateway",c[c.ServiceUnavailable=503]="ServiceUnavailable",c[c.GatewayTimeout=504]="GatewayTimeout",(u=a=e.exports.Headers||(e.exports.Headers={})).Accept="accept",u.ContentType="content-type",(l=e.exports.MediaTypes||(e.exports.MediaTypes={})).ApplicationJson="application/json",e.exports.getProxyUrl=function(e){let t=f.getProxyUrl(new URL(e));return t?t.href:"";};let m=[s.MovedPermanently,s.ResourceMoved,s.SeeOther,s.TemporaryRedirect,s.PermanentRedirect],g=[s.BadGateway,s.ServiceUnavailable,s.GatewayTimeout],v=["OPTIONS","GET","DELETE","HEAD"];class y extends Error{constructor(e,t){super(e),this.name="HttpClientError",this.statusCode=t,Object.setPrototypeOf(this,y.prototype);}}e.exports.HttpClientError=y;class w{constructor(e){this.message=e;}readBody(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=Buffer.alloc(0);this.message.on("data",e=>{t=Buffer.concat([t,e]);}),this.message.on("end",()=>{e(t.toString());});}));});}readBodyBuffer(){return o(this,void 0,void 0,function*(){return new Promise(e=>o(this,void 0,void 0,function*(){let t=[];this.message.on("data",e=>{t.push(e);}),this.message.on("end",()=>{e(Buffer.concat(t));});}));});}}e.exports.HttpClientResponse=w,e.exports.isHttps=function(e){let t=new URL(e);return"https:"===t.protocol;},e.exports.HttpClient=class{constructor(e,t,r){this._ignoreSsl
${n.message}`:m,y=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=y):n=Error(y),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=p,n.stdout=e,n.stderr=t,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=c,n.killed=u&&!l,n;},rz={};const iZ=["stdin","stdout","stderr"],i0=e=>iZ.some(t=>void 0!==e[t]),i1=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return iZ.map(t=>e[t]);if(i0(e))throw Error("It's not possible to provide `stdio` in combination with one of "+iZ.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);letr=Math.max(t.length,iZ.length);returnArray.from({length:r},(e,r)=>t[r]);};(rz=i1).node=e=>{lett=i1(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];},rW={},rX={},rK=rf.process;consti2=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(i2(rK)){vari4,i3=t6,i6=rg("2dWxz"),i8=/^win/i.test(rK.platform),i5=t3;"function"!=typeofi5&&(i5=i5.EventEmitter),rK.__signal_exit_emitter__?i4=rK.__signal_exit_emitter__:((i4=rK.__signal_exit_emitter__=newi5()).count=0,i4.emitted={}),i4.infinite||(i4.setMaxListeners(1/0),i4.infinite=!0);vari7=function(){ot&&i2(rf.process)&&(ot=!1,i6.forEach(function(e){try{rK.removeListener(e,oe[e]);}catch(e){}}),rK.emit=oo,rK.reallyExit=on,i4.count-=1);};(rX=function(e,t){if(!i2(rf.process))returnfunction(){};i3.equal(typeofe,"function","a callback must be provided for exit handler"),!1===ot&&or();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),i4.on(r,e),function(){i4.removeListener(r,e),0===i4.listeners("exit").length&&0===i4.listeners("afterexit").length&&i7();};}).unload=i7;vari9=function(e,t,r){i4.emitted[e]||(i4.emitted[e]=!0,i4.emit(e,t,r));},oe={};i6.forEach(function(e){oe[e]=function(){i2(rf.process)&&rK.listeners(e).length===i4.count&&(i7(),i9("exit",null,e),i9("afterexit",null,e),i8&&"SIGHUP"===e&&(e="SIGINT"),rK.kill(rK.pid,e));};}),rX.signals=function(){returni6;};varot=!1,or=function(){!ot&&i2(rf.process)&&(ot=!0,i4.count+=1,i6=i6.filter(function(e){try{returnrK.on(e,oe[e]),!0;}catch(e){return!1;}}),rK.emit=os,rK.reallyExit=oi);};rX.load=or;varon=rK.reallyExit,oi=function(e){i2(rf.process)&&(rK.exitCode=e||0,i9("exit",rK.exitCode,null),i9("afterexit",rK.exitCode,null),on.call(rK,rK.exitCode));},oo=rK.emit,os=function(e,t){if(!("exit"===e&&i2(rf.process)))returnoo.apply(this,arguments);void0!==t&&(rK.exitCode=t);varr=oo.apply(this,arguments);returni9("exit",rK.exitCode,null),i9("afterexit",rK.exitCode,null),r;};}elserX=function(){returnfunction(){};};constoa=(e,t,r,n)=>{if(!ol(t,r,n))return;leti=ou(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},ol=(e,{forceKillAfterTimeout:t},r)=>oc(e)&&!1!==t&&r,oc=e=>e===iO.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),ou=({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;},od=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},op=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=rX(()=>{e.kill();});returnn.finally(()=>{i();});};rY=(rW={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);returnoa(e,t,r,n),n;},spawnedCancel(e,t){letr=e.kill();r&&(t.isCanceled=!0);},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{od(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},validateTimeout({timeout:e}){if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\
${t}`,oA=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oP=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oN=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=oR.bind(null,n,t.toString());Object.defineProperty(i,"name",oP),Object.defineProperty(e,"toString",{...oA,value:i});},oL=new WeakMap(),ok=(e,t={})=>{let r;if("function"!=typeof e)throw TypeError("Expected a function");let n=0,i=e.displayName||e.name||"<anonymous>",o=function(...s){if(oL.set(o,++n),1===n)r=e.apply(this,s),e=null;else if(!0===t.throw)throw Error(`Function\`${i}\` can only be called once`);returnr;};return!function(e,t,{ignoreNonConfigurable:r=!1}={}){let{name:n}=e;for(letnofReflect.ownKeys(t))oC(e,t,n,r);oT(e,t),oN(e,t,n);}(o,e),oL.set(o,n),o;};ok.callCount=e=>{if(!oL.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnoL.get(e);},nT=ok;constoD=()=>Array.from({length:oF-oj+1},oU),oU=(e,t)=>({name:"SIGRT"+(t+1),number:oj+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oj=34,oF=64,oM=[{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
${n.message}`:v,x=[w,t,e].filter(Boolean).join("\n");return y?(n.originalMessage=n.message,n.message=x):n=Error(x),n.shortMessage=w,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=h,n.stdout=e,n.stderr=t,n.cwd=f,void 0!==r&&(n.all=r),"bufferedData"in n&&delete n.bufferedData,n.failed=!0,n.timedOut=!!l,n.isCanceled=u,n.killed=d&&!l,n;},oK=["stdin","stdout","stderr"],oY=e=>oK.some(t=>void 0!==e[t]),oQ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oK.map(t=>e[t]);if(oY(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oK.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);letr=Math.max(t.length,oK.length);returnArray.from({length:r},(e,r)=>t[r]);},oJ=(e,t="SIGTERM",r={})=>{letn=e(t);returnoZ(e,t,r,n),n;},oZ=(e,t,r,n)=>{if(!o0(t,r,n))return;leti=o2(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},o0=(e,{forceKillAfterTimeout:t},r)=>o1(e)&&!1!==t&&r,o1=e=>e===c(rc).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),o2=({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;},o4=(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0);},o3=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},o6=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{o3(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},o8=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},o5=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=c(rX)(()=>{e.kill();});returnn.finally(()=>{i();});},o7=e=>einstanceofrs.ChildProcess&&"function"==typeofe.then,o9=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,t5.createWriteStream)(r)),e;if(_(r))returne[t].pipe(r),e;if(!o7(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!_(r.stdin))throwTypeError("The target child process's stdin must be available.");returne[t].pipe(r.stdin),r;},se=e=>{null!==e.stdout&&(e.pipeStdout=o9.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=o9.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=o9.bind(void0,e,"all"));},st=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.");},sr=({input:e,inputFile:t})=>"string"!=typeoft?e:(st(e),(0,t5.readFileSync)(t)),sn=e=>{lett=sr(e);if($(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt;},si=({input:e,inputFile:t})=>"string"!=typeoft?e:(st(e),(0,t5.createReadStream)(t)),so=(e,t)=>{letr=si(t);void0!==r&&($(r)?r.pipe(e.stdin):e.stdin.end(r));},ss=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=c(r7)();returne.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},sa=async(e,t)=>{if(e&&void0!==t){e.destroy();try{returnawaitt;}catch(e){returne.bufferedData;}}},sl=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)returnt?c(r4)(e,{encoding:t,maxBuffer:n}):c(r4).buffer(e,{maxBuffer:n});},sc=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{leta=sl(e,{encoding:n,buffer:i,maxBuffer:o}),l=sl(t,{encoding:n,buffer:i,maxBuffer:o}),c=sl(r,{encoding:n,buffer:i,maxBuffer:2*o});try{returnawaitPromise.all([s,a,l,c]);}catch(n){returnPromise.all([{error:n,signal:n.signal,timedOut:n.timedOut},sa(e,a),sa(t,l),sa(r,c)]);}},su=(async()=>{})().constructor.prototype,sd=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(su,e)]),sp=(e,t)=>{for(let[r,n]ofsd){leti="function"==typeoft?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},sf=e=>newPromise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error
`);},s_=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ra).env,...e}:e;return r?function({env:e=c(ra).env,...t}={}){e={...e};let r=O({env:e});return t.path=e[r],e[r]=function(e={}){let t;let{cwd:r=c(ra).cwd(),path:n=c(ra).env[O()],execPath:i=c(ra).execPath}=e,o=r instanceof URL?c(rl).fileURLToPath(r):r,s=c(ro).resolve(o),a=[];for(;t!==s;)a.push(c(ro).join(s,"node_modules/.bin")),t=s,s=c(ro).resolve(s,"..");return a.push(c(ro).resolve(o,i,"..")),[...a,n].join(c(ro).delimiter);}(t),e;}({env:o,cwd:n,execPath:i}):o;},sC=(e,t,r={})=>{let n=c(rI)._parse(e,t,r);return e=n.command,t=n.args,(r={maxBuffer:1e8,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:(r=n.options).cwd||c(ra).cwd(),execPath:c(ra).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:sb,...r}).env=s_(r),r.stdio=oQ(r),"win32"===c(ra).platform&&"cmd"===c(ro).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},sI=(e,t,r)=>"string"==typeof t||(0,ri.Buffer).isBuffer(t)?e.stripFinalNewline?function(e){let t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}(t):t:void 0===r?void 0:"",sT=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},sR=(e={})=>({preferLocal:!0,...sT(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=sE(n,i);return C(o,s,sR(t));}return r.sync=(e,...r)=>{if(!Array.isArray(e))throw TypeError("Please use $(options).sync`command` instead of $.sync(options)`command`.");let[n,...i]=sE(e,r);return I(n,i,sR(t));},r;}(),nR={};const sA="win32"!==iO.platform(),sP=iO.release(),sN=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;nR=function(e){return sA?e.replace(/(\s+)/g,"\\$1"):sN(.../(\d+\.\d+)\.(\d+)/.exec(sP).splice(1))?e:e.replace(/(\s+)/g,"%20");},function(){var e,t;e=rg("eaZtc"),t=function(e){return e.split("").reverse().join("");},nA=function(r,n,i){var o;return(null==n&&(n="'"),null==i&&(i="\\"),"string"!=typeof r)?r:(o=RegExp("(["+e(n)+"])(?!"+e(i)+")","g"),t(t(r).replace(o,"$1"+i)));};}.call(nA={}),nP=rg("3WkGD");const sL={shouldEscapeSpace:!1,shouldAddOnlyIfNotDefined:!1},sk=[/\/usr\/bin\/?/,/\/usr\/local\/bin\/?/],sD=w(".cpprc");let sU=!1;nP=rg("3WkGD"),nN=rg("9O4vc"),ry=rg("hHq4F"),nL={},nk=r$.isexe,nD=r$.sync,nU=i$.join,nj=i$.delimiter,nF=i$.sep,nM=i$.posix;const sj="win32"===process.platform,sF=new RegExp(`[${nM.sep}${nF===nM.sep?"":nF}]`.replace(/(\\)/g,"\\$1")),sM=RegExp("^\\."+sF.source),sG=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),sB=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=nj})=>{let i=e.match(sF)?[""]:[...(sj?[process.cwd()]:[]),...(t||"").split(n)];if(sj){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).flatMap(e=>[e,e.toLowerCase()]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},sH=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&sM.test(t)?t.slice(0,2):"";return n+nU(r,t);},sq=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sB(e,t),o=[];for(let s of r){let r=sH(s,e);for(let e of n){let n=r+e,s=await nk(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sG(e);};nL=sq,sq.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=sB(e,t),o=[];for(let s of r){let r=sH(s,e);for(let e of n){let n=r+e,s=nD(n,{pathExt:i,ignoreErrors:!0});if(s){if(!t.all)return n;o.push(n);}}}if(t.all&&o.length)return o;if(t.nothrow)return null;throw sG(e);};const{appendFile:sV}=i_.promises;let sz=!1,sW=!1;const sX=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t0=nG||(nG={}))[t0.NameDashVersion=0]="NameDashVersion",t0[t0.NameEqualsVersion=1]="NameEqualsVersion",t0[t0.Name=2]="Name",t0[t0.None=3]="None",nI=rg("2heqc"),nB=rg("A8hFE"),nB=rg("A8hFE"),nH=rg("kSdX3");let sK=!1;nP=rg("3WkGD"),