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);});}functionp(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=rT.sync(e.command,{path:n[rL({env:n})],pathExt:t?iR.delimiter:void0});}catch(e){}finally{s&&process.chdir(i);}returnr&&(r=iR.resolve(o?e.options.cwd:"",r)),r;}functiond(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?d(t.original,"spawn"):null;}functionh(e,t,r){letn=rP(e,t,r),i=rt.spawn(n.command,n.args,n.options);returnrj.hookChildProcess(i,n),i;}asyncfunctionm(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r7(t);returnawaitnewPromise((t,i)=>{leto=e=>{e&&n.getBufferedLength()<=r8.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(){return(process.getuid?.()===0||!!process.env.CI)&&null!==c(rT).sync("sudo",{nothrow:!0});}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returng()?c(rA).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rA).sync(e,t,r);}functionE(e,t=[],r={stdio:"inherit",shell:!0}){returng()?c(rA).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):c(rA)(e,t,r);}functiony(e){returng()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,iR.join)("/Users/",process.env.SUDO_USER,e):(0,iR.join)("/home/",process.env.SUDO_USER,e):c(rO)("~/"+e);}functionw(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());});}functionx(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(nh)({pkg:c(nA)});}catch(e){(0,rx.warning)("Failed to check for updates: "+(einstanceofError?e.message+e.stack:e));}}functionS(e){returnnull==e?[]:Array.isArray(e)?e:[e];}functionI(e){lett="string"==typeofe?"\n":"\n".charCodeAt(),r="string"==typeofe?"\r":"\r".charCodeAt();returne[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===r&&(e=e.slice(0,-1)),e;}functionR(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";}functionO({env:e=c(ru).env,
`),(0,n_.info)(`${e}="${n}"wasaddedto"${sk}`));return;}process.env[e]=n;}async function D(e){switch(process.platform){case"win32":await A(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,n_.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitk(),(0,iO.appendFileSync)(sk,`
`),(0,n_.info)(`"${e}"wasaddedto"${sk}"`);return;default:return;}}async function k(){if(sU)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await(0,nD.pathExists)(sk)){let t=(0,iO.readFileSync)(sk,"utf8");if(t.includes(e))return;}(0,iO.appendFileSync)(sk,`
`),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=i.architecture??process.arch,s=process.env.SETUP_CPP_DIR??y(""),a=[],l=[],u=rI.create({autoloadLocales:!0});rI.addLocale(c(rR)),rb.addLocale(c(rS));let p=await a5();if(!function(e,t){let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eZ(e[t])),i=n.length>=1?e[n[0]]:"true";return!n.some(t=>e[t]!==i)&&(r.forEach(t=>{e[t]=i;}),!0);}(i,["llvm","clangtidy","clangformat"]))return(0,rx.error)("The same version must be used for llvm, clangformat and clangtidy"),1;er()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rx.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await el("python-pygments"));let d=!1,f=!1;for(let e of lA){if(rw.isCI&&0!==l.length){f=!0;break;}let n=i[e];void 0!==n&&(t=Date.now(),d=await tC(e,n,p,o,s,a,l,6e4*parseFloat(i.timeout??"20")),r=Date.now(),(0,rx.info)("took "+(u.format(t,r)||"0 seconds")));}if(!f){let e=i.compiler;if(void 0!==e){let t=Date.now();await t2(e,p,s,o,a,d,l);let r=Date.now();(0,rx.info)("took "+(u.format(t,r)||"0 seconds"));}}if(await U(),0===a.length&&0===l.length)return(0,rx.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rx.success)(e)),l.forEach(e=>(0,rx.error)(e)),(0,rx.info)("setup-cpp finished"),!rw.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rx.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rx.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.");}returnawaitn,0===l.length?0:1;}vart4,t6,t5,t8,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rp,rd,rf,rh,rm,rg,rv,rE,ry,rw,rx,rb,rS,rI,rR,rO,rT,rC,r$,rA,r_,rP,rN,rL,rD,rk,rU,rj,rM,rF,rG,rB,rH,rV,rq,rX,rK,rz,rW,rY,rJ,rQ,rZ,r0,r1,r2,r3,r4,r6,r5,r8,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,np,nd,nf,nh,nm,ng,nv,nE,ny,nw,nx,nb,nS,nI,nR,nO,nT,nC,n$,nA,n_,nP,nN,nL,nD,nk,nU,nj,nM,nF,nG,nB,nH,nV,nq,nX,nK,nz,nW,nY,nJ,nQ,nZ,n0,n1,n2,n3,n4,n6,n5,n8,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,ip,id,ih,im,ig,iv,iE,iy,iw,ix,ib,iS,iI=require("os"),iR=require("path"),iO=require("fs"),iT=require("crypto"),iC=require("http"),i$=require("https");require("net"),t5=require("tls"),t8=require("events"),t9=require("assert"),t7=require("util"),re=require("fs"),rt=require("child_process"),rr=require("string_decoder"),rn=require("timers"),ri=require("buffer"),ro=require("stream"),rs=require("process"),ra=require("buffer"),rl=require("path"),rc=require("child_process"),ru=require("process"),rp=require("url"),rd=require("os"),rf=require("util"),rh=require("url"),rm=require("console"),rg="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},rv={},rE={},null==(ry=rg.parcelRequire810d)&&((ry=function(e){if(einrv)returnrv[e].exports;if(einrE){vart=rE[e];deleterE[e];varr={id:e,exports:{}};returnrv[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){rE[e]=t;},rg.parcelRequire810d=ry),ry.register("dTX7a",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=ry("gjIAX");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=r.every(function(e){returnn(e);});if(e.exports[t.constant]=o,o)switch(e.exports.n
${n.message}`:m,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,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;},rW={};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]);};(rW=i1).node=e=>{lett=i1(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"];},rY={},rJ={},rQ=rg.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(rQ)){vari3,i4=t9,i6=ry("1YMV0"),i5=/^win/i.test(rQ.platform),i8=t8;"function"!=typeofi8&&(i8=i8.EventEmitter),rQ.__signal_exit_emitter__?i3=rQ.__signal_exit_emitter__:((i3=rQ.__signal_exit_emitter__=newi8()).count=0,i3.emitted={}),i3.infinite||(i3.setMaxListeners(1/0),i3.infinite=!0);vari9=function(){ot&&i2(rg.process)&&(ot=!1,i6.forEach(function(e){try{rQ.removeListener(e,oe[e]);}catch(e){}}),rQ.emit=oo,rQ.reallyExit=on,i3.count-=1);};(rJ=function(e,t){if(!i2(rg.process))returnfunction(){};i4.equal(typeofe,"function","a callback must be provided for exit handler"),!1===ot&&or();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),i3.on(r,e),function(){i3.removeListener(r,e),0===i3.listeners("exit").length&&0===i3.listeners("afterexit").length&&i9();};}).unload=i9;vari7=function(e,t,r){i3.emitted[e]||(i3.emitted[e]=!0,i3.emit(e,t,r));},oe={};i6.forEach(function(e){oe[e]=function(){i2(rg.process)&&rQ.listeners(e).length===i3.count&&(i9(),i7("exit",null,e),i7("afterexit",null,e),i5&&"SIGHUP"===e&&(e="SIGINT"),rQ.kill(rQ.pid,e));};}),rJ.signals=function(){returni6;};varot=!1,or=function(){!ot&&i2(rg.process)&&(ot=!0,i3.count+=1,i6=i6.filter(function(e){try{returnrQ.on(e,oe[e]),!0;}catch(e){return!1;}}),rQ.emit=os,rQ.reallyExit=oi);};rJ.load=or;varon=rQ.reallyExit,oi=function(e){i2(rg.process)&&(rQ.exitCode=e||0,i7("exit",rQ.exitCode,null),i7("afterexit",rQ.exitCode,null),on.call(rQ,rQ.exitCode));},oo=rQ.emit,os=function(e,t){if(!("exit"===e&&i2(rg.process)))returnoo.apply(this,arguments);void0!==t&&(rQ.exitCode=t);varr=oo.apply(this,arguments);returni7("exit",rQ.exitCode,null),i7("afterexit",rQ.exitCode,null),r;};}elserJ=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===iI.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;},op=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},od=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=rJ(()=>{e.kill();});returnn.finally(()=>{i();});};rZ=(rY={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(()=>{op(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}`,o_=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),oP=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),oN=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=oA.bind(null,n,t.toString());Object.defineProperty(i,"name",oP),Object.defineProperty(e,"toString",{...o_,value:i});},oL=new WeakMap(),oD=(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))oT(e,t,n,r);o$(e,t),oN(e,t,n);}(o,e),oL.set(o,n),o;};oD.callCount=e=>{if(!oL.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnoL.get(e);},nP=oD;constok=()=>Array.from({length:oM-oj+1},oU),oU=(e,t)=>({name:"SIGRT"+(t+1),number:oj+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),oj=34,oM=64,oF=[{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}`:m,E=[v,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=v,n.command=s,n.escapedCommand=a,n.exitCode=o,n.signal=i,n.signalDescription=d,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;},oW=["stdin","stdout","stderr"],oY=e=>oW.some(t=>void 0!==e[t]),oJ=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oW.map(t=>e[t]);if(oY(e))throw Error("It's not possible to provide `stdio` in combination with one of "+oW.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,oW.length);returnArray.from({length:r},(e,r)=>t[r]);},oQ=(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(rd).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;},o3=(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0);},o4=(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(()=>{o4(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},o5=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},o8=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=c(rJ)(()=>{e.kill();});returnn.finally(()=>{i();});},o9=e=>einstanceofrc.ChildProcess&&"function"==typeofe.then,o7=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,re.createWriteStream)(r)),e;if(C(r))returne[t].pipe(r),e;if(!o9(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!C(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=o7.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=o7.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=o7.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,re.readFileSync)(t)),sn=e=>{lett=sr(e);if(T(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt;},si=({input:e,inputFile:t})=>"string"!=typeoft?e:(st(e),(0,re.createReadStream)(t)),so=(e,t)=>{letr=si(t);void0!==r&&(T(r)?r.pipe(e.stdin):e.stdin.end(r));},ss=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=c(nt)();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(r5)(e,{encoding:t,maxBuffer:n}):c(r5).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,sp=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(su,e)]),sd=(e,t)=>{for(let[r,n]ofsp){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",e=>{r(
${n.message}`:v,w=[y,t,e].filter(Boolean).join("\n");return E?(n.originalMessage=n.message,n.message=w):n=Error(w),n.shortMessage=y,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=p&&!l,n;},sF=["stdin","stdout","stderr"],sG=e=>sF.some(t=>void 0!==e[t]),sB=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return sF.map(t=>e[t]);if(sG(e))throw Error("It's not possible to provide `stdio` in combination with one of "+sF.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,sF.length);returnArray.from({length:r},(e,r)=>t[r]);},sH=(e,t="SIGTERM",r={})=>{letn=e(t);returnsV(e,t,r,n),n;},sV=(e,t,r,n)=>{if(!sq(t,r,n))return;leti=sK(r),o=setTimeout(()=>{e("SIGKILL");},i);o.unref&&o.unref();},sq=(e,{forceKillAfterTimeout:t},r)=>sX(e)&&!1!==t&&r,sX=e=>e===c(rd).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),sK=({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;},sz=(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0);},sW=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}));},sY=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{sW(e,r,o);},t);}),s=n.finally(()=>{clearTimeout(i);});returnPromise.race([o,s]);},sJ=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);},sQ=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=c(rJ)(()=>{e.kill();});returnn.finally(()=>{i();});},sZ=e=>einstanceofrc.ChildProcess&&"function"==typeofe.then,s0=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,re.createWriteStream)(r)),e;if(C(r))returne[t].pipe(r),e;if(!sZ(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!C(r.stdin))throwTypeError("The target child process's stdin must be available.");returne[t].pipe(r.stdin),r;},s1=e=>{null!==e.stdout&&(e.pipeStdout=s0.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=s0.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=s0.bind(void0,e,"all"));},s2=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.");},s3=({input:e,inputFile:t})=>"string"!=typeoft?e:(s2(e),(0,re.readFileSync)(t)),s4=e=>{lett=s3(e);if(T(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt;},s6=({input:e,inputFile:t})=>"string"!=typeoft?e:(s2(e),(0,re.createReadStream)(t)),s5=(e,t)=>{letr=s6(t);void0!==r&&(T(r)?r.pipe(e.stdin):e.stdin.end(r));},s8=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=c(nt)();returne.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r;},s9=async(e,t)=>{if(e&&void0!==t){e.destroy();try{returnawaitt;}catch(e){returne.bufferedData;}}},s7=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)returnt?c(r5)(e,{encoding:t,maxBuffer:n}):c(r5).buffer(e,{maxBuffer:n});},ae=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{leta=s7(e,{encoding:n,buffer:i,maxBuffer:o}),l=s7(t,{encoding:n,buffer:i,maxBuffer:o}),c=s7(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},s9(e,a),s9(t,l),s9(r,c)]);}},at=(async()=>{})().constructor.prototype,ar=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(at,e)]),an=(e,t)=>{for(let[r,n]ofar){leti="function"==typeoft?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i});}},ai=e=>newPromise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r});}),e.on("error
`);},av=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...c(ru).env,...e}:e;return r?O({env:o,cwd:n,execPath:i}):o;},aE=(e,t,r={})=>{let n=c(r_)._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(ru).cwd(),execPath:c(ru).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:af,...r}).env=av(r),r.stdio=sB(r),"win32"===c(ru).platform&&"cmd"===c(rl).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n};},ay=(e,t,r)=>"string"==typeof t||(0,ra.Buffer).isBuffer(t)?e.stripFinalNewline?I(t):t:void 0===r?void 0:"",aw=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ax=(e={})=>({preferLocal:!0,...aw(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=ad(n,i);return j(o,s,ax(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]=ad(e,r);return M(n,i,ax(t));},r;}(),nk=ry("9ag04"),rx=ry("ER74K"),nU={},nj=iR.join,nM=iR.delimiter,nF=iR.sep,nG=iR.posix;const ab="win32"===process.platform,aS=new RegExp(`[${nG.sep}${nF===nG.sep?"":nF}]`.replace(/(\\)/g,"\\$1")),aI=RegExp("^\\."+aS.source),aR=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),aO=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=nM})=>{let i=e.match(aS)?[""]:[...(ab?[process.cwd()]:[]),...(t||"").split(n)];if(ab){let t=r||[".EXE",".CMD",".BAT",".COM"].join(n),o=t.split(n).reduce((e,t)=>(e.push(t),e.push(t.toLowerCase()),e),[]);return e.includes(".")&&""!==o[0]&&o.unshift(""),{pathEnv:i,pathExt:o,pathExtExe:t};}return{pathEnv:i,pathExt:[""]};},aT=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&aI.test(t)?t.slice(0,2):"";return n+nj(r,t);},aC=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=aO(e,t),o=[];for(let s of r){let r=aT(s,e);for(let e of n){let n=r+e,s=await rC(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 aR(e);};nU=aC,aC.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=aO(e,t),o=[];for(let s of r){let r=aT(s,e);for(let e of n){let n=r+e,s=rC.sync(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 aR(e);};const{appendFile:a$}=iO.promises;let aA=!1,a_=!1;const aP=["E: Could not get lock","dpkg: error processing archive","dpkg: error: dpkg status database is locked by another process"];(t4=nB||(nB={}))[t4.NameDashVersion=0]="NameDashVersion",t4[t4.NameEqualsVersion=1]="NameEqualsVersion",t4[t4.Name=2]="Name",t4[t4.None=3]="None",n_=ry("lcRzN"),nH=ry("ceI0e"),nH=ry("ceI0e"),nV=ry("fcBgE");let aN=!1;nD=ry("dOmbL"),nH=ry("ceI0e"),rx=ry("ER74K");let aL=!1;rx=ry("ER74K"),rx=ry("ER74K");let aD=!1,ak=!1;const aU=/Version\s*:\s*(.*)/g;nq={},nX=iR.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),nK=nq&&nq.__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];}),nz=nq&&nq.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t});}:function(e,t){e.default=t;}),nW=nq&&nq.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.hasOwnProperty.call(e,r)&&nK(t,e,r);return nz(t,e),t;},nY=nq&&nq.__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());});},nJ=nq&&nq.__importDefault||function(e){return e&&e.__esModule?e:{default:e};},Object.defineProperty(nq,"__esModule",{value:!0}),nq.evaluateVersions=nq.isExplicitVer