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){returnnull==e?[]:Array.isArray(e)?e:[e];}functionn(e,t,r,n){varo,i=e[t],s=~n.string.indexOf(t)?null==r||!0===r?"":r+"":"boolean"==typeofr?r:~n.boolean.indexOf(t)?"false"!==r&&("true"===r||(e._.push(0*(o=+r)==0?o:r),!!r)):0*(o=+r)==0?o:r;e[t]=null==i?s:Array.isArray(i)?i.concat(s):[i,s];}functiono(e){returne&&e.__esModule?e.default:e;}functioni(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,enumerable:!0,configurable:!0});}functions(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise((r,n)=>{s(e,t||{},(e,t)=>{e?n(e):r(t);});});}fr(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}functiona(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}lets;try{s=ur.sync(e.command,{path:r[br({env:r})],pathExt:t?wt.delimiter:void0});}catch(e){}finally{i&&process.chdir(n);}returns&&(s=(0,wt.resolve)(o?e.options.cwd:"",s)),s;}functionc(e,t){returnObject.assign(Error(`${t}${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t}${e.command}`,path:e.command,spawnargs:e.args});}functionl(e,t){return$r&&1===e&&!t.file?c(t.original,"spawn"):null;}functionu(e,t,r){constn=xr(e,t,r),o=(0,Pt.spawn)(n.command,n.args,n.options);returnLr.hookChildProcess(o,n),o;}asyncfunctiond(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=An(t);returnawaitnewPromise((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=Ln.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{awaitkn(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(newDn());});}),n.getBufferedValue();}functionp(){returnnull!==o(ur).sync("sudo",{nothrow:!0});}functionf(){vare;return0===(null===(e=process.getuid)||void0===e?void0:e.call(process))||!!process.env.CI;}functionm(){returnf()&&p();}functionh(e){returnm()?"sudo "+e:e;}functiong(e,t=[],r={stdio:"inherit",shell:!0}){returnm()?o(yr).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(yr).sync(e,t,r);}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returnm()?o(yr).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(yr)(e,t,r);}functionE(){return"win32"===process.platform?co():f();}functiony(e){returnm()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,wt.join)("/Users/",process.env.SUDO_USER,e):(0,wt.join)("/home/",process.env.SUDO_USER,e):t(nr)("~/"+e);}functionw(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise((r,n)=>{w(e,t||{},(e,t)=>{e?n(e):r(t);});});}mo(e,t||{},(e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n);});}functionx(e,t){constr=e.options.env||process.env,n=process.cwd(),o=null!=e.options.cwd,i=o&&void0!==process.chdir&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd);}catch(e){}lets;try{s=uo.sync(e.command,{path:r[So({env:r})],pathExt:t?wt.delimiter:void0});}catch(e){}finally{i&&process.chdir(n);}returns&&(s=wt.resolve(o?e.options.cwd:"",s)),s;}functionb(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){returnko&&1===e&&!t.file?b(t.original,"spawn"):null;}functionI(e,t,r){constn=bo(e,t,r),o=Pt.spawn(n.command,n.args,n.options);return$o.hookChildProcess(o,n),o;}asyncfunctionO(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Ni(t);returnawaitnewPromise((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=$i.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{awaitDi(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(newji());});}),n