functione(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functiont(e){returne&&e.__esModule?e.default:e}functionr(e,t,n){if("function"==typeoft&&(n=t,t={}),!n){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((n,i)=>{r(e,t||{},((e,t)=>{e?i(e):n(t)}))}))}gt(e,t||{},((e,r)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,r=!1),n(e,r)}))}functionn(e,r,n){if(!["darwin","linux"].includes(process.platform))return;if("string"==typeofEt)return{binDir:Et};consti=t(ft).sync("brew",{nothrow:!0});returnnull!==i?(Et=(0,ht.dirname)(i),{binDir:Et}):((0,tt.execFileSync)('/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"',{stdio:"inherit"}),Et="/usr/local/bin/",{binDir:Et})}functioni(e,t){constr=e.options.env||process.env,n=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){}lets;try{s=ft.sync(e.command,{path:r[Tt({env:r})],pathExt:t?Ve.delimiter:void0})}catch(e){}finally{o&&process.chdir(n)}returns&&(s=Ve.resolve(i?e.options.cwd:"",s)),s}functiono(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args})}functions(e,t){returnMt&&1===e&&!t.file?o(t.original,"spawn"):null}functiona(e,t,r){constn=$t(e,t,r),i=tt.spawn(n.command,n.args,n.options);returnUt.hookChildProcess(i,n),i}asyncfunctionc(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=jr(t);returnawaitnewPromise(((t,i)=>{consto=e=>{e&&n.getBufferedLength()<=Ur.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),i(e)};(async()=>{try{awaitFr(e,n),t()}catch(e){o(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&o(newGr)}))})),n.getBufferedValue()}functionl(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0})}functionu(){returnnull!==t(ft).sync("sudo",{nothrow:!0})}functiond(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI}functionp(){returnd()&&u()}functionh(e){returnp()?"sudo "+e:e}functionf(e,r=[],n={stdio:"inherit",shell:!0}){returnp()?t(Ot).commandSync("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Ot).sync(e,r,n)}functionm(e,r=[],n={stdio:"inherit",shell:!0}){returnp()?t(Ot).command("sudo "+[e,...r].map((e=>`'${e}'`)).join(" "),n):t(Ot)(e,r,n)}functionv(){return"win32"===process.platform?mn():d()}functiong(e){returnp()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,Ve.join)("/Users/",process.env.SUDO_USER,e):(0,Ve.join)("/home/",process.env.SUDO_USER,e):t(gn)("~/"+e)}functiony(e,r=["-NoProfile","-NoLogo","-NonInteractive"],n={stdio:"inherit"}){returnt(Ot)((()=>{if(void0===bn){conste=t(ft).sync("pwsh",{nothrow:!0});null!==e&&(bn=e);constr=t(ft).sync("powershell",{nothrow:!0});null!==r&&(bn=r)}if(void0===bn)throwError("Could not find powershell");returnbn})(),[...r,"-c",e],n)}asyncfunctionw(e,r,n=!1){consti=n?t(En)(null!=r?r:""):r;try{if("github-actions"===t(yn)())try{(0,pt.exportVariable)(e,i)}catch(t){(0,xn.error)(t),awaitb(e,i)}elseawaitb(e,i)}catch(t){(0,xn.error)(t),(0,pt.setFailed)(`Failed to export environment variable ${e}=${i}. You should add it manually.`)}}asyncfunctionx(e){process.env.PATH=`${e}${Ve.delimiter}${process.env.PATH}`;try{if("github-actions"===t(yn)())try{(0,pt.addPath)(e)}catch(t){(0,xn.error)(t),awaitE(e)}elseawaitE(e)}catch(t){(0,xn.error)(t),(0,pt.setFailed)(`Failed to add ${e} to the percistent PATH. You should add it manually.`)}}asyncfunctionb(e,t){constr=null!=t?t:"";switch(process.platform){case"win32":returnawaity(`[Environment]::SetEnvironmentVariable('${e}', '${r}', "User")`),void(0,pt.info)(`${e}='${r}' was set in the environment.`);case"linux":case"darwin":returnS(),(0,Xe.appendFileSync)($n,`\nexport ${e}="${r}"\n`),void(0,pt.info)(`${e}="${r}" was added to "${$n}`)}process.env[e]=r}asyncfunctionE(e){switch(process.platform){case"wi