lete,t,r,n,i,o,s,a,l,c;functionu(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functiond(e){returne&&e.__esModule?e.default:e}functionp(e){returne&&e.__esModule?e.default:e}functionf(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionm(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise((r,n)=>{m(e,t||{},(e,t)=>{e?n(e):r(t)})})}rw(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)})}functionh(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=rx.sync(e.command,{path:n[rT({env:n})],pathExt:t?of.delimiter:void0})}catch(e){}finally{s&&process.chdir(i)}returnr&&(r=(0,of.resolve)(o?e.options.cwd:"",r)),r}functiong(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionE(e,t){returnoR&&1===e&&!t.file?g(t.original,"spawn"):null}functionv(e,t,r){letn=rR(e,t,r),i=(0,t0.spawn)(n.command,n.args,n.options);returnrL.hookChildProcess(i,n),i}asyncfunctiony(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};let{maxBuffer:r}=t,n=r0(t);returnawaitnewPromise((t,i)=>{leto=e=>{e&&n.getBufferedLength()<=r2.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{awaito2(e,n),t()}catch(e){o(e)}})(),n.on("data",()=>{n.getBufferedLength()>r&&o(newo4)})}),n.getBufferedValue()}functionx(){returnnull!==p(rx).sync("sudo",{nothrow:!0})}functionw(){return0===process.getuid?.()||!!process.env.CI}functionb(){returnw()&&x()}functionS(e){returnb()?"sudo "+e:e}functionI(e,t=[],r={stdio:"inherit",shell:!0}){returnb()?p(rI).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI).sync(e,t,r)}functionO(e,t=[],r={stdio:"inherit",shell:!0}){returnb()?p(rI).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):p(rI)(e,t,r)}functionR(){return"win32"===process.platform?sr():w()}functionT(e){returnb()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,of.join)("/Users/",process.env.SUDO_USER,e):(0,of.join)("/home/",process.env.SUDO_USER,e):d(rm)("~/"+e)}functionC(e){returne&&"object"==typeofe&&"default"ine?e:{default:e}}function_(e,t,r,n){returnnew(r||(r=Promise))((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(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())})}functionP(e,t){functionr(r){returns=>(r=>{if(n)throwTypeError("Generator is already executing.");for(;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,s])}varn,i,o,s,a={label:0,sent(){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}asyncfunctionA(){try{awaitd(nl)({pkg:d(nA)})}catch(e){(0,rc.warning)("Failed to check for updates: "+(einstanceofError?e.message+e.stack:e))}}functionL(e){returnnull==e?[]:Array.isArray(e)?e:[e]}functionN(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)throwTypeError("callback not provided");returnnewPromise((r,n)=
export${e}="${r}"
`),(0,nL.info)(`${e}="${r}"wasaddedto"${lp}`);return}process.env[e]=r}async function en(e){switch(process.platform){case"win32":await J(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),(0,nL.info)(`"${e}" was added to the PATH.`);return;case"linux":case"darwin":awaitei(),(0,om.appendFileSync)(lp,`
exportPATH="${e}:$PATH"
`),(0,nL.info)(`"${e}"wasaddedto"${lp}"`);return;default:return}}async function ei(){if(lf)return;let e="# Automatically Generated by setup-cpp\nexport SOURCE_CPPRC=0";if(await (0,iP.pathExists)(lp)){let t=(0,om.readFileSync)(lp,"utf8");if(t.includes(e))return}(0,om.appendFileSync)(lp,`
`),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??T(""),a=[],l=[],c=rp.create({autoloadLocales:!0});rp.addLocale(d(rf)),ru.addLocale(d(rd));let u=await tb();if(!((e,t)=>{let r=t.filter(t=>void 0!==e[t]),n=r.filter(t=>!eJ(e[t],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,rc.error)("The same version must be used for llvm, clangformat and clangtidy"),1;ey()&&"string"==typeof i.cppcheck&&"string"==typeof i.gcovr&&((0,rc.info)("installing python-pygments to avoid conflicts with cppcheck and gcovr on Arch linux"),await eI("python-pygments"));let p=!1;for(let e of cl){let n=i[e];void 0!==n&&(t=Date.now(),p=await tV(e,n,u,o,s,a,l),r=Date.now(),(0,rc.info)("took "+(c.format(t,r)||"0 seconds")))}let f=i.compiler;if(void 0!==f){let e=Date.now();await tW(f,u,s,o,a,p,l);let t=Date.now();(0,rc.info)("took "+(c.format(e,t)||"0 seconds"))}if(await eo(),0===a.length&&0===l.length)return(0,rc.warning)("setup-cpp was called without any arguments. Nothing to do."),0;if(a.forEach(e=>(0,rc.success)(e)),l.forEach(e=>(0,rc.error)(e)),(0,rc.info)("setup-cpp finished"),!rl.GITHUB_ACTIONS)switch(process.platform){case"win32":(0,rc.warning)("Run `RefreshEnv.cmd` or restart your shell to update the environment.");break;case"linux":case"darwin":(0,rc.warning)("Run `source~/.cpprc`orrestartyourshelltoupdatetheenvironment.")}returnawaitn,0===l.length?0:1}"usestrict";vartK,tY,tQ,tJ,tZ,t0,t1,t2,t4,t3,t6,t5,t8,t9,t7,re,rt,rr,rn,ri,ro,rs,ra,rl,rc,ru,rd,rp,rf,rm,rh,rg,rE,rv,ry,rx,rw,rb,rS,rI,rO,rR,rT,rC,r_,rP,rA,rL,rN,r$,rD,rk,rj,rU,rM,rG,rF,rB,rH,rq,rV,rX,rW,rz,rK,rY,rQ,rJ,rZ,r0,r1,r2,r4,r3,r6,r5,r8,r9,r7,ne,nt,nr,nn,ni,no,ns,na,nl,nc,nu,nd,np,nf,nm,nh,ng,nE,nv,ny,nx,nw,nb,nS,nI,nO,nR,nT,nC,n_,nP,nA,nL,nN,n$,nD,nk,nj,nU,nM,nG,nF,nB,nH,nq,nV,nX,nW,nz,nK,nY,nQ,nJ,nZ,n0,n1,n2,n4,n3,n6,n5,n8,n9,n7,ie,it,ir,ii,io,is,ia,il,ic,iu,id,ip,im,ih,ig,iE,iv,iy,ix,iw,ib,iS,iI,iO,iR,iT,iC,i_,iP,iA,iL,iN,i$,iD,ik,ij,iU,iM,iG,iF,iB,iH,iq,iV,iX,iW,iz,iK,iY,iQ,iJ,iZ,i0,i1,i2,i4,i3,i6,i5,i8,i9,i7,oe,ot,or,on,oi,oo,os,oa,ol,oc,ou,od,op=require("os"),of=require("path"),om=require("fs"),oh=require("crypto"),og=require("http"),oE=require("https");require("net"),tK=require("tls"),tY=require("events"),tQ=require("assert"),tJ=require("util"),tZ=require("node:fs"),t0=require("child_process"),t1=require("string_decoder"),t2=require("timers"),t4=require("buffer"),t3=require("stream"),t6=require("process"),t5=require("node:buffer"),t8=require("node:path"),t9=require("node:child_process"),t7=require("node:process"),re=require("node:url"),rt=require("node:os"),rr=require("node:util"),rn=require("url"),ri="undefined"!=typeofglobalThis?globalThis:"undefined"!=typeofself?self:"undefined"!=typeofwindow?window:"undefined"!=typeofglobal?global:{},ro={},rs={},null==(ra=ri.parcelRequire810d)&&((ra=e=>{if(einro)returnro[e].exports;if(einrs){vart=rs[e];deleters[e];varr={id:e,exports:{}};returnro[e]=r,t.call(r.exports,r,r.exports),r.exports}varn=Error("Cannotfindmodule'"+e+"'");thrown.code="MODULE_NOT_FOUND",n}).register=(e,t)=>{rs[e]=t},ri.parcelRequire810d=ra),ra.register("2W4C2",(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(e=>!!i[e]):Object.keys(e).every(t=>i[t]===e[t])}"usestrict";r=ra("bIoxD");leti=process.env;Object.defineProperty(e.exports,"_vendors",{value:r.map(e=>e.constant)}),e.exports.name=null,e.exports.isPR=null,r.forEach(t=>{letr=Array.isArray(t.env)?t.env:[t.env],o=r.every(e=>n(e));if(e.exports[
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,*()=>{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}),ra.register("aYzS9",(e,t)=>{"use strict";var r=e.exports&&e.exports.__awaiter||((e,t,r,n)=>new(r||(r=Promise))((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(e=>{e(t)})).then(s,a)}l((n=n.apply(e,t||[])).next())}));Object.defineProperty(e.exports,"__esModule",{value:!0}),e.exports.summary=e.exports.markdownSummary=e.exports.SUMMARY_DOCS_URL=e.exports.SUMMARY_ENV_VAR=void 0;let{access:n,appendFile:i,writeFile:o}=om.promises;e.exports.SUMMARY_ENV_VAR="GITHUB_STEP_SUMMARY",e.exports.SUMMARY_DOCS_URL="https://docs.github.com/actions/using-workflows/workflow-commands-for-github-actions#adding-a-job-summary";let s=new class{constructor(){this._buffer=""}filePath(){return r(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[e.exports.SUMMARY_ENV_VAR];if(!t)throw Error(`Unabletofindenvironmentvariablefor$${e.exports.SUMMARY_ENV_VAR}.Checkifyourruntimeenvironmentsupportsjobsummaries.`);try{yield n(t,om.constants.R_OK|om.constants.W_OK)}catch(e){throw Error(`Unabletoaccesssummaryfile:'${t}'.Checkifthefilehascorrectread/writepermissions.`)}return this._filePath=t,this._filePath})}wrap(e,t,r={}){let n=Object.entries(r).map(([e,t])=>`${e}="${t}"`).join("");return t?`<${e}${n}>${t}</${e}>`:`<${e}${n}>`}write(e){returnr(this,void0,void0,function*(){lett=!!(null==e?void0:e.overwrite),r=yieldthis.filePath();returnyield(t?o:i)(r,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){returnr(this,void0,void0,function*(){returnthis.emptyBuffer().write({overwrite:!0})})}stringify(){returnthis._buffer}isEmptyBuffer(){return0===this._buffer.length}emptyBuffer(){returnthis._buffer="",this}addRaw(e,t=!1){returnthis._buffer+=e,t?this.addEOL():this}addEOL(){returnthis.addRaw(op.EOL)}addCodeBlock(e,t){letr=Object.assign({},t&&{lang:t}),n=this.wrap("pre",this.wrap("code",e),r);returnthis.addRaw(n).addEOL()}addList(e,t=!1){letr=e.map(e=>this.wrap("li",e)).join(""),n=this.wrap(t?"ol":"ul",r);returnthis.addRaw(n).addEOL()}addTable(e){lett=e.map(e=>{lett=e.map(e=>{if("string"==typeofe)returnthis.wrap("td",e);let{header:t,data:r,colspan:n,rowspan:i}=e,o=Object.assign(Object.assign({},n&&{colspan:n}),i&&{rowspan:i});returnthis.wrap(t?"th":"td",r,o)}).join("");returnthis.wrap("tr",t)}).join(""),r=this.wrap("table",t);returnthis.addRaw(r).addEOL()}addDetails(e,t){letr=this.wrap("details",this.wrap("summary",e)+t);returnthis.addRaw(r).addEOL()}addImage(e,t,r){let{width:n,height:i}=r||{},o=Object.assign(Object.assign({},n&&{width:n}),i&&{height:i}),s=this.wrap("img",null,Object.assign({src:e,alt:t},o));returnthis.addRaw(s).addEOL()}addHeading(e,t){letr="h"+t,n=["h1","h2","h3","h4","h5","h6"].includes(r)?r:"h1",i=this.wrap(n,e);returnthis.addRaw(i).addEOL()}addSeparator(){lete=this.wrap("hr",null);returnthis.addRaw(e).addEOL()}addBreak(){lete=this.wrap("br",null);returnthis.addRaw(e).addEOL()}addQuote(e,t){letr=Object.assign({},t&&{cite:t}),n=this.wrap("blockquote",e,r);returnthis.addRaw(n).addEOL()}addLink(e,t){letr=this.wrap("a",e,{href:t});returnthis.addRaw(r).addEOL()}};e.exports.markdownSummary=s,e.exports.summary=s}),ra.register("iGRwD",(e,t)=>{varr,n,i;"usestrict";r=e.exports&&e.exports.__createBinding||(Object.create?(e,t,r,n)=>{void0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void0===n&&(n=r),e[n]=t[r]}),n=e.exports&&e.exports.__setModuleDefault||(Object.create?(e,t)=>{Object.defineProperty(e,"default",{enumerable:!
${n.message}`:m,E=[g,t,e].filter(Boolean).join("\n");return h?(n.originalMessage=n.message,n.message=E):n=Error(E),n.shortMessage=g,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},rH={};const oj=["stdin","stdout","stderr"],oU=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return oj.map(t=>e[t]);if(oj.some(t=>void 0!==e[t]))throw Error("It's not possible to provide `stdio` in combination with one of "+oj.map(e=>`\`${e}\``).join(", "));if("string"==typeoft)returnt;if(!Array.isArray(t))throwTypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeoft}\``);returnArray.from({length:Math.max(t.length,oj.length)},(e,r)=>t[r])};(rH=oU).node=e=>{lett=oU(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},rV={},rX=rh.process;constoM=e=>e&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;if(oM(rX)){varoG,oF=tQ,oB=rv("4c98W"),oH=/^win/i.test(rX.platform),oq=tY;"function"!=typeofoq&&(oq=oq.EventEmitter),rX.__signal_exit_emitter__?oG=rX.__signal_exit_emitter__:((oG=rX.__signal_exit_emitter__=newoq).count=0,oG.emitted={}),oG.infinite||(oG.setMaxListeners(1/0),oG.infinite=!0);varoV=()=>{oz&&oM(rh.process)&&(oz=!1,oB.forEach(e=>{try{rX.removeListener(e,oW[e])}catch(e){}}),rX.emit=oJ,rX.reallyExit=oY,oG.count-=1)};(rV=(e,t)=>{if(!oM(rh.process))return()=>{};oF.equal(typeofe,"function","a callback must be provided for exit handler"),!1===oz&&oK();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),oG.on(r,e),()=>{oG.removeListener(r,e),0===oG.listeners("exit").length&&0===oG.listeners("afterexit").length&&oV()}}).unload=oV;varoX=(e,t,r)=>{oG.emitted[e]||(oG.emitted[e]=!0,oG.emit(e,t,r))},oW={};oB.forEach(e=>{oW[e]=()=>{oM(rh.process)&&rX.listeners(e).length===oG.count&&(oV(),oX("exit",null,e),oX("afterexit",null,e),oH&&"SIGHUP"===e&&(e="SIGINT"),rX.kill(rX.pid,e))}}),rV.signals=()=>oB;varoz=!1,oK=()=>{!oz&&oM(rh.process)&&(oz=!0,oG.count+=1,oB=oB.filter(e=>{try{returnrX.on(e,oW[e]),!0}catch(e){return!1}}),rX.emit=oZ,rX.reallyExit=oQ)};rV.load=oK;varoY=rX.reallyExit,oQ=e=>{oM(rh.process)&&(rX.exitCode=e||0,oX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),oY.call(rX,rX.exitCode))},oJ=rX.emit,oZ=function(e,t){if("exit"===e&&oM(rh.process)){void0!==t&&(rX.exitCode=t);varr=oJ.apply(this,arguments);returnoX("exit",rX.exitCode,null),oX("afterexit",rX.exitCode,null),r}returnoJ.apply(this,arguments)}}elserV=()=>()=>{};consto0=e=>e===op.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase();rz=(rq={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);return((e,t,r,n)=>{if(!((e,{forceKillAfterTimeout:t},r)=>o0(e)&&!1!==t&&r)(t,r,n))return;leti=(({forceKillAfterTimeout:e=!0})=>{if(!0===e)return5e3;if(!Number.isFinite(e)||0>e)throwTypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`);returne})(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()})(e,t,r,n),n},spawnedCancel(e,t){e.kill()&&(t.isCanceled=!0)},setupTimeout(e,{timeout:t,killSignal:r="SIGTERM"},n){leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{e.kill(r),o(Object.assign(Error("Timed out"),{timedOut:!0,signal:r}))},t)}),s=n.finally(()=>{clearTimeout(i)});returnPromise.race([o,s])},validateTimeout({timeout:e}){if(void0!==e&&(!Number.isFinite(e)||0>e))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},asyncsetExitHandler(e,{cleanup:t,detached:r},n){if(!t||r)returnn;leti=rV(()=>{e.kill()});returnn.finally(()=>{i()})}}).spawnedKill,rK=rq.spawnedCancel,rY=rq.setupTimeout,rQ=rq.validateTimeout,rJ=rq.setExitHandler,rZ={};consto1=e=>null!==e&&"object"==typeofe&&"function"==
${n.message}`:h,v=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=E,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},n3={};const s_=["stdin","stdout","stderr"],sP=e=>s_.some(t=>void 0!==e[t]),sA=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return s_.map(t=>e[t]);if(sP(e))throw Error("It's not possible to provide `stdio` in combination with one of "+s_.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,s_.length);returnArray.from({length:r},(e,r)=>t[r])};(n3=sA).node=e=>{lett=sA(e);return"ipc"===t?"ipc":void0===t||"string"==typeoft?[t,t,t,"ipc"]:t.includes("ipc")?t:[...t,"ipc"]},n6={},n5={},n8=ri.process;constsL=e=>e&&"object"==typeofe&&"function"==typeofe.removeListener&&"function"==typeofe.emit&&"function"==typeofe.reallyExit&&"function"==typeofe.listeners&&"function"==typeofe.kill&&"number"==typeofe.pid&&"function"==typeofe.on;if(sL(n8)){varsN,s$=tQ,sD=ra("5AOH8"),sk=/^win/i.test(n8.platform),sj=tY;"function"!=typeofsj&&(sj=sj.EventEmitter),n8.__signal_exit_emitter__?sN=n8.__signal_exit_emitter__:((sN=n8.__signal_exit_emitter__=newsj).count=0,sN.emitted={}),sN.infinite||(sN.setMaxListeners(1/0),sN.infinite=!0);varsU=()=>{sF&&sL(ri.process)&&(sF=!1,sD.forEach(e=>{try{n8.removeListener(e,sG[e])}catch(e){}}),n8.emit=sV,n8.reallyExit=sH,sN.count-=1)};(n5=(e,t)=>{if(!sL(ri.process))return()=>{};s$.equal(typeofe,"function","a callback must be provided for exit handler"),!1===sF&&sB();varr="exit";returnt&&t.alwaysLast&&(r="afterexit"),sN.on(r,e),()=>{sN.removeListener(r,e),0===sN.listeners("exit").length&&0===sN.listeners("afterexit").length&&sU()}}).unload=sU;varsM=(e,t,r)=>{sN.emitted[e]||(sN.emitted[e]=!0,sN.emit(e,t,r))},sG={};sD.forEach(e=>{sG[e]=()=>{sL(ri.process)&&n8.listeners(e).length===sN.count&&(sU(),sM("exit",null,e),sM("afterexit",null,e),sk&&"SIGHUP"===e&&(e="SIGINT"),n8.kill(n8.pid,e))}}),n5.signals=()=>sD;varsF=!1,sB=()=>{!sF&&sL(ri.process)&&(sF=!0,sN.count+=1,sD=sD.filter(e=>{try{returnn8.on(e,sG[e]),!0}catch(e){return!1}}),n8.emit=sX,n8.reallyExit=sq)};n5.load=sB;varsH=n8.reallyExit,sq=e=>{sL(ri.process)&&(n8.exitCode=e||0,sM("exit",n8.exitCode,null),sM("afterexit",n8.exitCode,null),sH.call(n8,n8.exitCode))},sV=n8.emit,sX=function(e,t){if(!("exit"===e&&sL(ri.process)))returnsV.apply(this,arguments);void0!==t&&(n8.exitCode=t);varr=sV.apply(this,arguments);returnsM("exit",n8.exitCode,null),sM("afterexit",n8.exitCode,null),r}}elsen5=()=>()=>{};"use strict";"use strict";constsW=(e,t,r,n)=>{if(!sz(t,r,n))return;leti=sY(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},sz=(e,{forceKillAfterTimeout:t},r)=>sK(e)&&!1!==t&&r,sK=e=>e===op.constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),sY=({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},sQ=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},sJ=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=n5(()=>{e.kill()});returnn.finally(()=>{i()})};"use strict";"use strict";n9=(n6={spawnedKill(e,t="SIGTERM",r={}){letn=e(t);returnsW(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(()=>{sQ(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\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},setExitHandler:sJ}).spawnedKill,n7=n6.spa
${t}`,ac=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),au=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),ad=(e,t,r)=>{let n=""===r?"":`with${r.trim()}()`,i=al.bind(null,n,t.toString());Object.defineProperty(i,"name",au),Object.defineProperty(e,"toString",{...ac,value:i})},ap=new WeakMap,af=(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(ap.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((e,t,{ignoreNonConfigurable:r=!1}={})=>{let{name:n}=e;for(letnofReflect.ownKeys(t))ao(e,t,n,r);returnaa(e,t),ad(e,t,n)})(o,e),ap.set(o,n),o};af.callCount=e=>{if(!ap.has(e))throwError(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);returnap.get(e)},iT=af;constam=()=>Array.from({length:aE-ag+1},ah),ah=(e,t)=>({name:"SIGRT"+(t+1),number:ag+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}),ag=34,aE=64,av=[{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:"termin
${n.message}`:h,v=[E,t,e].filter(Boolean).join("\n");return g?(n.originalMessage=n.message,n.message=v):n=Error(v),n.shortMessage=E,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},aT=["stdin","stdout","stderr"],aC=e=>aT.some(t=>void 0!==e[t]),a_=e=>{if(!e)return;let{stdio:t}=e;if(void 0===t)return aT.map(t=>e[t]);if(aC(e))throw Error("It's not possible to provide `stdio` in combination with one of "+aT.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,aT.length);returnArray.from({length:r},(e,r)=>t[r])},aP=(e,t="SIGTERM",r={})=>{letn=e(t);returnaA(e,t,r,n),n},aA=(e,t,r,n)=>{if(!aL(t,r,n))return;leti=a$(r),o=setTimeout(()=>{e("SIGKILL")},i);o.unref&&o.unref()},aL=(e,{forceKillAfterTimeout:t},r)=>aN(e)&&!1!==t&&r,aN=e=>e===d(rt).constants.signals.SIGTERM||"string"==typeofe&&"SIGTERM"===e.toUpperCase(),a$=({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},aD=(e,t)=>{letr=e.kill();r&&(t.isCanceled=!0)},ak=(e,t,r)=>{e.kill(t),r(Object.assign(Error("Timed out"),{timedOut:!0,signal:t}))},aj=(e,{timeout:t,killSignal:r="SIGTERM"},n)=>{leti;if(0===t||void0===t)returnn;leto=newPromise((n,o)=>{i=setTimeout(()=>{ak(e,r,o)},t)}),s=n.finally(()=>{clearTimeout(i)});returnPromise.race([o,s])},aU=({timeout:e})=>{if(void0!==e&&(!Number.isFinite(e)||e<0))throwTypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeofe})`)},aM=async(e,{cleanup:t,detached:r},n)=>{if(!t||r)returnn;leti=d(n5)(()=>{e.kill()});returnn.finally(()=>{i()})},aG=e=>einstanceoft9.ChildProcess&&"function"==typeofe.then,aF=(e,t,r)=>{if("string"==typeofr)returne[t].pipe((0,tZ.createWriteStream)(r)),e;if(K(r))returne[t].pipe(r),e;if(!aG(r))throwTypeError("The second argument must be a string, a stream or an Execa child process.");if(!K(r.stdin))throwTypeError("The target child process's stdin must be available.");returne[t].pipe(r.stdin),r},aB=e=>{null!==e.stdout&&(e.pipeStdout=aF.bind(void0,e,"stdout")),null!==e.stderr&&(e.pipeStderr=aF.bind(void0,e,"stderr")),void0!==e.all&&(e.pipeAll=aF.bind(void0,e,"all"))},aH=e=>{if(void0!==e)throwTypeError("The `input` and `inputFile` options cannot be both set.")},aq=({input:e,inputFile:t})=>"string"!=typeoft?e:(aH(e),(0,tZ.readFileSync)(t)),aV=e=>{lett=aq(e);if(z(t))throwTypeError("The `input` option cannot be a stream in sync mode");returnt},aX=({input:e,inputFile:t})=>"string"!=typeoft?e:(aH(e),(0,tZ.createReadStream)(t)),aW=(e,t)=>{letr=aX(t);void0!==r&&(z(r)?r.pipe(e.stdin):e.stdin.end(r))},az=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;letr=d(id)();returne.stdout&&r.add(e.stdout),e.stderr&&r.add(e.stderr),r},aK=async(e,t)=>{if(e&&void0!==t){e.destroy();try{returnawaitt}catch(e){returne.bufferedData}}},aY=(e,{encoding:t,buffer:r,maxBuffer:n})=>{if(e&&r)returnt?d(is)(e,{encoding:t,maxBuffer:n}):d(is).buffer(e,{maxBuffer:n})},aQ=async({stdout:e,stderr:t,all:r},{encoding:n,buffer:i,maxBuffer:o},s)=>{leta=aY(e,{encoding:n,buffer:i,maxBuffer:o}),l=aY(t,{encoding:n,buffer:i,maxBuffer:o}),c=aY(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},aK(e,a),aK(t,l),aK(r,c)])}},aJ=(async()=>{})().constructor.prototype,aZ=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(aJ,e)]),a0=(e,t)=>{for(let[r,n]ofaZ){leti="function"==typeoft?(...e)=>Reflect.apply(n.value,t(),e):n.value.bind(t);Reflect.defineProperty(e,r,{...n,value:i})}},a1=e=>newPromise((t,r)=>{e.on("exit",(e,r)=>{t({exitCode:e,signal:r})}),e.on("error",e=>{r(e)}),e.stdin&&e.stdin.on("err
`)},li=({env:e,extendEnv:t,preferLocal:r,localDir:n,execPath:i})=>{let o=t?{...d(t7).env,...e}:e;return r?(({env:e=d(t7).env,...t}={})=>{e={...e};let r=W({env:e});return t.path=e[r],e[r]=((e={})=>{let t;let{cwd:r=d(t7).cwd(),path:n=d(t7).env[W()],execPath:i=d(t7).execPath}=e,o=r instanceof URL?d(re).fileURLToPath(r):r,s=d(t8).resolve(o),a=[];for(;t!==s;)a.push(d(t8).join(s,"node_modules/.bin")),t=s,s=d(t8).resolve(s,"..");return a.push(d(t8).resolve(o,i,"..")),[...a,n].join(d(t8).delimiter)})(t),e})({env:o,cwd:n,execPath:i}):o},lo=(e,t,r={})=>{let n=d(nU)._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||d(t7).cwd(),execPath:d(t7).execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0,verbose:le,...r}).env=li(r),r.stdio=a_(r),"win32"===d(t7).platform&&"cmd"===d(t8).basename(e,".exe")&&t.unshift("/q"),{file:e,args:t,options:r,parsed:n}},ls=(e,t,r)=>"string"==typeof t||(0,t5.Buffer).isBuffer(t)?e.stripFinalNewline?(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:"",la=({input:e,inputFile:t,stdio:r})=>void 0===e&&void 0===t&&void 0===r?{stdin:"inherit"}:{},ll=(e={})=>({preferLocal:!0,...la(e),...e});!function e(t){function r(n,...i){if(!Array.isArray(n))return e({...t,...n});let[o,...s]=a7(n,i);return Y(o,s,ll(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]=a7(e,r);return Q(n,i,ll(t))},r}(),iC={};const lc="win32"!==op.platform(),lu=op.release(),ld=(e="",t="")=>/1\d+\.\d+/.test(e)&&+t>=17134.1184;iC=e=>lc?e.replace(/(\s+)/g,"\\$1"):ld(.../(\d+\.\d+)\.(\d+)/.exec(lu).splice(1))?e:e.replace(/(\s+)/g,"%20"),(()=>{var e,t;e=ra("bmInQ"),t=e=>e.split("").reverse().join(""),i_=(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(i_={}),iP=ra("bOuKS");const lp=T(".cpprc");let lf=!1;iA={},iL=of.join,iN=of.delimiter,i$=of.sep,iD=of.posix;const lm="win32"===process.platform,lh=new RegExp(`[${iD.sep}${i$===iD.sep?"":i$}]`.replace(/(\\)/g,"\\$1")),lg=RegExp("^\\."+lh.source),lE=e=>Object.assign(Error("not found: "+e),{code:"ENOENT"}),lv=(e,{path:t=process.env.PATH,pathExt:r=process.env.PATHEXT,delimiter:n=iN})=>{let i=e.match(lh)?[""]:[...lm?[process.cwd()]:[],...(t||"").split(n)];if(lm){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:[""]}},ly=(e,t)=>{let r=/^".*"$/.test(e)?e.slice(1,-1):e,n=!r&&lg.test(t)?t.slice(0,2):"";return n+iL(r,t)},lx=async(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lv(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=await 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 lE(e)};iA=lx,lx.sync=(e,t={})=>{let{pathEnv:r,pathExt:n,pathExtExe:i}=lv(e,t),o=[];for(let s of r){let r=ly(s,e);for(let e of n){let n=r+e,s=nD.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 lE(e)},iP=ra("bOuKS"),ik=ra("3cGqJ"),rc=ra("7Lz0k");const{appendFile:lw}=om.promises;let lb=!1,lS=!1;nL=ra("i5trn"),nN=ra("eq4yW"),nN=ra("eq4yW"),ij=ra("jtqY0");let lI=!1;iP=ra("bOuKS"),nN=ra("eq4yW"),nL=ra("i5trn"),rc=ra("7Lz0k");let lO=!1;rc=ra("7Lz0k"),rc=ra("7Lz0k");let lR=!1,lT=!1;"use strict";const lC=/Version\s*:\s*(.*)/g;"use strict";iU={},iM=of.resolve(__dirname,"../../node_modules/.pnpm/@actions+tool-cache@2.0.1/node_modules/@actions/tool-cache/lib"),iG=iU&&iU.__createBinding||(Object.create?(e,t,r,n)=>{void 0===n&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:()=>t[r]})}:(e,t,r,n)=>{void 0===n&&(n=r),e[n]=t[r]}),iF