functione(e,t,r,s){Object.defineProperty(e,t,{get:r,set:s,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e,t,s){if("function"==typeoft&&(s=t,t={}),!s){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((s,i)=>{r(e,t||{},((e,t)=>{e?i(e):s(t)}))}))}Fe(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),s(e,r)}))}functions(e,r,s){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofqe)return{binDir:qe};consti=t(De).sync("brew",{nothrow:!0});returnnull!==i?(qe=me.dirname(i),{binDir:qe}):(Oe.execFileSync('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),qe="/usr/local/bin/",{binDir:qe})}functioni(e,t){constr=e.options.env||process.env,s=process.cwd(),i=null!=e.options.cwd,o=i&&void0!==process.chdir&&!process.chdir.disabled;if(o)try{process.chdir(e.options.cwd)}catch(e){}letn;try{n=De.sync(e.command,{path:r[Ye({env:r})],pathExt:t?me.delimiter:void0})}catch(e){}finally{o&&process.chdir(s)}returnn&&(n=me.resolve(i?e.options.cwd:"",n)),n}functiono(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functionn(e,t){returnot&&1===e&&!t.file?o(t.original,"spawn"):null}functiona(e,t,r){consts=We(e,t,r),i=Oe.spawn(s.command,s.args,s.options);returnit.hookChildProcess(i,s),i}asyncfunctionc(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,s=rr(t);returnawaitnewPromise(((t,i)=>{consto=e=>{e&&s.getBufferedLength()<=ir.MAX_LENGTH&&(e.bufferedData=s.getBufferedValue()),i(e)};(async()=>{try{awaitnr(e,s),t()}catch(e){o(e)}})(),s.on("data",(()=>{s.getBufferedLength()>r&&o(newar)}))})),s.getBufferedValue()}functionl(){vare;returnvoid0!==Ar||(Ar=(!!process.env.CI||0===(null===(e=process.getuid)||void0===e?void0:e.call(process)))&&null!==t(De).sync("sudo",{nothrow:!0})),Ar}functionu(e,r,s){returnl()?t(Ve).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),{shell:!0,cwd:s,stdio:"inherit"}):t(Ve).sync(e,r,{stdio:"inherit"})}functionp(e){returnl()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?me.join("/Users/",process.env.SUDO_USER,e):me.join("/home/",process.env.SUDO_USER,e):t(Rr)("~/"+e)}functiond(e){if(void0===Lr){conste=t(De).sync("pwsh",{nothrow:!0});null!==e&&(Lr=e);constr=t(De).sync("powershell",{nothrow:!0});null!==r&&(Lr=r)}if(void0===Lr)throwError("Could not find powershell");t(Ve).sync(Lr,["-c",e],{stdio:"inherit"})}functionh(e,t){try{Nr.isGitHubCI()?Le.exportVariable(e,t):m(e,t)}catch(r){try{returnPr.error(r),m(e,t)}catch(e){Pr.error(e)}Le.setFailed(`Failed to export environment variable ${e}=${t}. You should add it manually.`)}}functionf(e){process.env.PATH=`${e}${me.delimiter}${process.env.PATH}`;try{Nr.isGitHubCI()?Le.addPath(e):g(e)}catch(t){try{returnPr.error(t),g(e)}catch(e){Pr.error(e)}Le.setFailed(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}functionm(e,t){constr=null!=t?t:"";switch(process.platform){case"win32":returnd(`[Environment]::SetEnvironmentVariable("${e}", "${r}", "User")`),voidLe.info(`${e}="${r} was set in the environment."`);case"linux":case"darwin":returnv(),ge.appendFileSync(Dr,`\nexport ${e}="${r}"\n`),voidLe.info(`${e}="${r} was added to "${Dr}"`)}process.env[e]=r}functiong(e){switch(process.platform){case"win32":returnd(`$USER_PATH=([Environment]::GetEnvironmentVariable("PATH", "User")); [Environment]::SetEnvironmentVariable("PATH", "${e};$USER_PATH", "User")`),voidLe.info(e+" was added to the PATH.");case"linux":case"darwin":returnv(),ge.appendFileSync(Dr,`\nexport PATH=${e}:$PATH\n`),voidLe.info(`${e} was added to "${Dr}"`);default:return}}functionv(){if(jr)return;conste="export SOURCE_CPPRC=0";if(ge.existsSync(Dr)&&ge.readFileSync(Dr,"utf8").includes(e))return;ge.appendFileSync(Dr,`\n${e}\n`),Le.info(`Added ${e} to ${Dr}`);constt=`\n# source .cpprc if SOURCE_