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)}))}))}Jt(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=Wt.sync(e.command,{path:r[sr({env:r})],pathExt:t?pt.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=(0,pt.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){returnyr&&1===e&&!t.file?c(t.original,"spawn"):null}functionu(e,t,r){constn=ir(e,t,r),o=(0,bt.spawn)(n.command,n.args,n.options);returnvr.hookChildProcess(o,n),o}asyncfunctiond(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=mn(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=vn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitwn(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newxn)}))})),n.getBufferedValue()}functionp(){returnnull!==o(Wt).sync("sudo",{nothrow:!0})}functionh(){return0===process.getuid?.()||!!process.env.CI}functionf(){returnh()&&p()}functionm(e){returnf()?"sudo "+e:e}functiong(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(nr).commandSync("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(nr).sync(e,t,r)}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returnf()?o(nr).command("sudo "+[e,...t].map((e=>`'${e}'`)).join(" "),r):o(nr)(e,t,r)}functiony(){return"win32"===process.platform?Vn():h()}functionw(e){returnf()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,pt.join)("/Users/",process.env.SUDO_USER,e):(0,pt.join)("/home/",process.env.SUDO_USER,e):t(Gt)("~/"+e)}functionx(e,t,r){if("function"==typeoft&&(r=t,t={}),!r){if("function"!=typeofPromise)thrownewTypeError("callback not provided");returnnewPromise(((r,n)=>{x(e,t||{},((e,t)=>{e?n(e):r(t)}))}))}Jn(e,t||{},((e,n)=>{e&&("EACCES"===e.code||t&&t.ignoreErrors)&&(e=null,n=!1),r(e,n)}))}functionb(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=Wn.sync(e.command,{path:r[so({env:r})],pathExt:t?pt.delimiter:void0})}catch(e){}finally{i&&process.chdir(n)}returns&&(s=pt.resolve(o?e.options.cwd:"",s)),s}functionE(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){returnwo&&1===e&&!t.file?E(t.original,"spawn"):null}functionT(e,t,r){constn=io(e,t,r),o=bt.spawn(n.command,n.args,n.options);returnyo.hookChildProcess(o,n),o}asyncfunctionO(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=gi(t);returnawaitnewPromise(((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=yi.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e)};(async()=>{try{awaitxi(e,n),t()}catch(e){i(e)}})(),n.on("data",(()=>{n.getBufferedLength()>r&&i(newbi)}))})),n.getBufferedValue()}function_(e,t,r,n){Object.defineProperty(e,t,{get:r,set:n,
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);});});}ar(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=or.sync(e.command,{path:r[gr({env:r})],pathExt:t?mt.delimiter:void0});}catch(e){}finally{i&&process.chdir(n);}returns&&(s=(0,mt.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){returnCr&&1===e&&!t.file?c(t.original,"spawn"):null;}functionu(e,t,r){constn=hr(e,t,r),o=(0,It.spawn)(n.command,n.args,n.options);returnRr.hookChildProcess(o,n),o;}asyncfunctiond(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=On(t);returnawaitnewPromise((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=Rn.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{await_n(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(newPn());});}),n.getBufferedValue();}functionp(){returnnull!==o(or).sync("sudo",{nothrow:!0});}functionf(){return0===process.getuid?.()||!!process.env.CI;}functionm(){returnf()&&p();}functionh(e){returnm()?"sudo "+e:e;}functiong(e,t=[],r={stdio:"inherit",shell:!0}){returnm()?o(fr).commandSync("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(fr).sync(e,t,r);}functionv(e,t=[],r={stdio:"inherit",shell:!0}){returnm()?o(fr).command("sudo "+[e,...t].map(e=>`'${e}'`).join(" "),r):o(fr)(e,t,r);}functionE(){return"win32"===process.platform?ro():f();}functiony(e){returnm()&&"string"==typeofprocess.env.SUDO_USER?"darwin"===process.platform?(0,mt.join)("/Users/",process.env.SUDO_USER,e):(0,mt.join)("/home/",process.env.SUDO_USER,e):t(Zt)("~/"+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);});});}ao(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=oo.sync(e.command,{path:r[vo({env:r})],pathExt:t?mt.delimiter:void0});}catch(e){}finally{i&&process.chdir(n);}returns&&(s=mt.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){return_o&&1===e&&!t.file?b(t.original,"spawn"):null;}functionI(e,t,r){constn=go(e,t,r),o=It.spawn(n.command,n.args,n.options);returnCo.hookChildProcess(o,n),o;}asyncfunctionO(e,t){if(!e)throwError("Expected a stream");t={maxBuffer:1/0,...t};const{maxBuffer:r}=t,n=Ti(t);returnawaitnewPromise((t,o)=>{consti=e=>{e&&n.getBufferedLength()<=Ci.MAX_LENGTH&&(e.bufferedData=n.getBufferedValue()),o(e);};(async()=>{try{awaitPi(e,n),t();}catch(e){i(e);}})(),n.on("data",()=>{n.getBufferedLength()>r&&i(newAi());});}),n.getBufferedValue();}functionT(e,t,r,n){Object.de