Comparing version 3.1.1 to 3.1.2
{ | ||
"name": "bob-ts", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"peerDependencies": { | ||
@@ -9,4 +9,12 @@ "@types/node": "*", | ||
}, | ||
"peerDependenciesMeta": { | ||
"@types/node": { | ||
"optional": true | ||
}, | ||
"typescript": { | ||
"optional": true | ||
} | ||
}, | ||
"dependencies": { | ||
"bob-esbuild-plugin": "^3.1.4", | ||
"bob-esbuild-plugin": "^3.1.5", | ||
"rollup": "^2.70.1" | ||
@@ -13,0 +21,0 @@ }, |
@@ -1,6 +0,6 @@ | ||
var mn=Object.create;var R=Object.defineProperty,pn=Object.defineProperties,hn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols,yn=Object.getPrototypeOf,W=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var ve=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))W.call(t,n)&&ve(e,n,t[n]);if(F)for(var n of F(t))Ie.call(t,n)&&ve(e,n,t[n]);return e},w=(e,t)=>pn(e,xn(t));var Pe=(e,t)=>{var n={};for(var r in e)W.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&F)for(var r of F(e))t.indexOf(r)<0&&Ie.call(e,r)&&(n[r]=e[r]);return n};var l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gn=(e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})},Te=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sn(t))!W.call(e,o)&&o!==n&&R(e,o,{get:()=>t[o],enumerable:!(r=hn(t,o))||r.enumerable});return e};var g=(e,t,n)=>(n=e!=null?mn(yn(e)):{},Te(t||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n,e)),bn=e=>Te(R({},"__esModule",{value:!0}),e);var Ne=l((Lr,Re)=>{"use strict";var Ae=require("child_process"),Ce=Ae.spawn,wn=Ae.exec;Re.exports=function(e,t,n){if(typeof t=="function"&&n===void 0&&(n=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(n)return n(new Error("pid must be a number"));throw new Error("pid must be a number")}var r={},o={};switch(r[e]=[],o[e]=1,process.platform){case"win32":wn("taskkill /pid "+e+" /T /F",n);break;case"darwin":z(e,r,o,function(i){return Ce("pgrep",["-P",i])},function(){Ge(r,t,n)});break;default:z(e,r,o,function(i){return Ce("ps",["-o","pid","--no-headers","--ppid",i])},function(){Ge(r,t,n)});break}};function Ge(e,t,n){var r={};try{Object.keys(e).forEach(function(o){e[o].forEach(function(i){r[i]||(Oe(i,t),r[i]=1)}),r[o]||(Oe(o,t),r[o]=1)})}catch(o){if(n)return n(o);throw o}if(n)return n()}function Oe(e,t){try{process.kill(parseInt(e,10),t)}catch(n){if(n.code!=="ESRCH")throw n}}function z(e,t,n,r,o){var i=r(e),s="";i.stdout.on("data",function(c){var c=c.toString("ascii");s+=c});var a=function(u){if(delete n[e],u!=0){Object.keys(n).length==0&&o();return}s.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],n[c]=1,z(c,t,n,r,o)})};i.on("close",a)}});var Be=l((Br,Le)=>{Le.exports=je;je.sync=vn;var ke=require("fs");function En(e,t){var n=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function $e(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:En(t,n)}function je(e,t,n){ke.stat(e,function(r,o){n(r,r?!1:$e(o,e,t))})}function vn(e,t){return $e(ke.statSync(e),e,t)}});var qe=l((Fr,_e)=>{_e.exports=Me;Me.sync=In;var Fe=require("fs");function Me(e,t,n){Fe.stat(e,function(r,o){n(r,r?!1:Ue(o,t))})}function In(e,t){return Ue(Fe.statSync(e),t)}function Ue(e,t){return e.isFile()&&Pn(e,t)}function Pn(e,t){var n=e.mode,r=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),d=a|u,x=n&c||n&u&&o===s||n&a&&r===i||n&d&&i===0;return x}});var He=l((Ur,De)=>{var Mr=require("fs"),M;process.platform==="win32"||global.TESTING_WINDOWS?M=Be():M=qe();De.exports=V;V.sync=Tn;function V(e,t,n){if(typeof t=="function"&&(n=t,t={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,o){V(e,t||{},function(i,s){i?o(i):r(s)})})}M(e,t||{},function(r,o){r&&(r.code==="EACCES"||t&&t.ignoreErrors)&&(r=null,o=!1),n(r,o)})}function Tn(e,t){try{return M.sync(e,t||{})}catch(n){if(t&&t.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var Qe=l((_r,Ye)=>{var P=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ke=require("path"),Cn=P?";":":",Xe=He(),We=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),ze=(e,t)=>{let n=t.colon||Cn,r=e.match(/\//)||P&&e.match(/\\/)?[""]:[...P?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=P?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=P?o.split(n):[""];return P&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Ve=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=ze(e,t),s=[],a=c=>new Promise((d,x)=>{if(c===r.length)return t.all&&s.length?d(s):x(We(e));let h=r[c],S=/^".*"$/.test(h)?h.slice(1,-1):h,y=Ke.join(S,e),b=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;d(u(b,c,0))}),u=(c,d,x)=>new Promise((h,S)=>{if(x===o.length)return h(a(d+1));let y=o[x];Xe(c+y,{pathExt:i},(b,I)=>{if(!b&&I)if(t.all)s.push(c+y);else return h(c+y);return h(u(c,d,x+1))})});return n?a(0).then(c=>n(null,c),n):a(0)},Gn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=ze(e,t),i=[];for(let s=0;s<n.length;s++){let a=n[s],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=Ke.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let x=0;x<r.length;x++){let h=d+r[x];try{if(Xe.sync(h,{pathExt:o}))if(t.all)i.push(h);else return h}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw We(e)};Ye.exports=Ve;Ve.sync=Gn});var Je=l((qr,Y)=>{"use strict";var Ze=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};Y.exports=Ze;Y.exports.default=Ze});var rt=l((Dr,nt)=>{"use strict";var et=require("path"),On=Qe(),An=Je();function tt(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=On.sync(e.command,{path:n[An({env:n})],pathExt:t?et.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return s&&(s=et.resolve(o?e.options.cwd:"",s)),s}function Rn(e){return tt(e)||tt(e,!0)}nt.exports=Rn});var ot=l((Hr,Z)=>{"use strict";var Q=/([()\][%!^"`<>&|;, *?])/g;function Nn(e){return e=e.replace(Q,"^$1"),e}function kn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Q,"^$1"),t&&(e=e.replace(Q,"^$1")),e}Z.exports.command=Nn;Z.exports.argument=kn});var st=l((Kr,it)=>{"use strict";it.exports=/^#!(.*)/});var ct=l((Xr,at)=>{"use strict";var $n=st();at.exports=(e="")=>{let t=e.match($n);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var ft=l((Wr,ut)=>{"use strict";var J=require("fs"),jn=ct();function Ln(e){let n=Buffer.alloc(150),r;try{r=J.openSync(e,"r"),J.readSync(r,n,0,150,0),J.closeSync(r)}catch{}return jn(n.toString())}ut.exports=Ln});var pt=l((zr,mt)=>{"use strict";var Bn=require("path"),lt=rt(),dt=ot(),Fn=ft(),Mn=process.platform==="win32",Un=/\.(?:com|exe)$/i,_n=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function qn(e){e.file=lt(e);let t=e.file&&Fn(e.file);return t?(e.args.unshift(e.file),e.command=t,lt(e)):e.file}function Dn(e){if(!Mn)return e;let t=qn(e),n=!Un.test(t);if(e.options.forceShell||n){let r=_n.test(t);e.command=Bn.normalize(e.command),e.command=dt.command(e.command),e.args=e.args.map(i=>dt.argument(i,r));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Hn(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:Dn(r)}mt.exports=Hn});var St=l((Vr,xt)=>{"use strict";var ee=process.platform==="win32";function te(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Kn(e,t){if(!ee)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=ht(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function ht(e,t){return ee&&e===1&&!t.file?te(t.original,"spawn"):null}function Xn(e,t){return ee&&e===1&&!t.file?te(t.original,"spawnSync"):null}xt.exports={hookChildProcess:Kn,verifyENOENT:ht,verifyENOENTSync:Xn,notFoundError:te}});var bt=l((Yr,T)=>{"use strict";var yt=require("child_process"),ne=pt(),re=St();function gt(e,t,n){let r=ne(e,t,n),o=yt.spawn(r.command,r.args,r.options);return re.hookChildProcess(o,r),o}function Wn(e,t,n){let r=ne(e,t,n),o=yt.spawnSync(r.command,r.args,r.options);return o.error=o.error||re.verifyENOENTSync(o.status,r),o}T.exports=gt;T.exports.spawn=gt;T.exports.sync=Wn;T.exports._parse=ne;T.exports._enoent=re});var Nt=l((So,D)=>{D.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&D.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&D.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Bt=l((yo,A)=>{var f=global.process,E=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};E(f)?(kt=require("assert"),G=Nt(),$t=/^win/i.test(f.platform),k=require("events"),typeof k!="function"&&(k=k.EventEmitter),f.__signal_exit_emitter__?p=f.__signal_exit_emitter__:(p=f.__signal_exit_emitter__=new k,p.count=0,p.emitted={}),p.infinite||(p.setMaxListeners(1/0),p.infinite=!0),A.exports=function(e,t){if(!E(global.process))return function(){};kt.equal(typeof e,"function","a callback must be provided for exit handler"),O===!1&&ue();var n="exit";t&&t.alwaysLast&&(n="afterexit");var r=function(){p.removeListener(n,e),p.listeners("exit").length===0&&p.listeners("afterexit").length===0&&H()};return p.on(n,e),r},H=function(){!O||!E(global.process)||(O=!1,G.forEach(function(t){try{f.removeListener(t,K[t])}catch{}}),f.emit=X,f.reallyExit=fe,p.count-=1)},A.exports.unload=H,v=function(t,n,r){p.emitted[t]||(p.emitted[t]=!0,p.emit(t,n,r))},K={},G.forEach(function(e){K[e]=function(){if(!!E(global.process)){var n=f.listeners(e);n.length===p.count&&(H(),v("exit",null,e),v("afterexit",null,e),$t&&e==="SIGHUP"&&(e="SIGINT"),f.kill(f.pid,e))}}}),A.exports.signals=function(){return G},O=!1,ue=function(){O||!E(global.process)||(O=!0,p.count+=1,G=G.filter(function(t){try{return f.on(t,K[t]),!0}catch{return!1}}),f.emit=Lt,f.reallyExit=jt)},A.exports.load=ue,fe=f.reallyExit,jt=function(t){!E(global.process)||(f.exitCode=t||0,v("exit",f.exitCode,null),v("afterexit",f.exitCode,null),fe.call(f,f.exitCode))},X=f.emit,Lt=function(t,n){if(t==="exit"&&E(global.process)){n!==void 0&&(f.exitCode=n);var r=X.apply(this,arguments);return v("exit",f.exitCode,null),v("afterexit",f.exitCode,null),r}else return X.apply(this,arguments)}):A.exports=function(){return function(){}};var kt,G,$t,k,p,H,v,K,O,ue,fe,jt,X,Lt});var Wt=l((wo,Xt)=>{"use strict";var{PassThrough:Sr}=require("stream");Xt.exports=e=>{e=m({},e);let{array:t}=e,{encoding:n}=e,r=n==="buffer",o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);let i=new Sr({objectMode:o});n&&i.setEncoding(n);let s=0,a=[];return i.on("data",u=>{a.push(u),o?s=a.length:s+=u.length}),i.getBufferedValue=()=>t?a:r?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i}});var zt=l((Eo,$)=>{"use strict";var{constants:yr}=require("buffer"),gr=require("stream"),{promisify:br}=require("util"),wr=Wt(),Er=br(gr.pipeline),le=class extends Error{constructor(){super("maxBuffer exceeded");this.name="MaxBufferError"}};async function de(e,t){if(!e)throw new Error("Expected a stream");t=m({maxBuffer:1/0},t);let{maxBuffer:n}=t,r=wr(t);return await new Promise((o,i)=>{let s=a=>{a&&r.getBufferedLength()<=yr.MAX_LENGTH&&(a.bufferedData=r.getBufferedValue()),i(a)};(async()=>{try{await Er(e,r),o()}catch(a){s(a)}})(),r.on("data",()=>{r.getBufferedLength()>n&&s(new le)})}),r.getBufferedValue()}$.exports=de;$.exports.buffer=(e,t)=>de(e,w(m({},t),{encoding:"buffer"}));$.exports.array=(e,t)=>de(e,w(m({},t),{array:!0}));$.exports.MaxBufferError=le});var Yt=l((vo,Vt)=>{"use strict";var{PassThrough:vr}=require("stream");Vt.exports=function(){var e=[],t=new vr({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var $r={};gn($r,{command:()=>fn,treeKill:()=>ln.default});module.exports=bn($r);var ln=g(Ne());var an=require("buffer"),cn=g(require("path"),1),ye=g(require("child_process"),1),j=g(require("process"),1),un=g(bt(),1);function oe(e){let t=typeof e=="string"?` | ||
var mn=Object.create;var R=Object.defineProperty,pn=Object.defineProperties,hn=Object.getOwnPropertyDescriptor,xn=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertyNames,F=Object.getOwnPropertySymbols,yn=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty,Ie=Object.prototype.propertyIsEnumerable;var ve=(e,t,n)=>t in e?R(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,m=(e,t)=>{for(var n in t||(t={}))z.call(t,n)&&ve(e,n,t[n]);if(F)for(var n of F(t))Ie.call(t,n)&&ve(e,n,t[n]);return e},w=(e,t)=>pn(e,xn(t));var Pe=(e,t)=>{var n={};for(var r in e)z.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&F)for(var r of F(e))t.indexOf(r)<0&&Ie.call(e,r)&&(n[r]=e[r]);return n};var l=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),gn=(e,t)=>{for(var n in t)R(e,n,{get:t[n],enumerable:!0})},Te=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Sn(t))!z.call(e,o)&&o!==n&&R(e,o,{get:()=>t[o],enumerable:!(r=hn(t,o))||r.enumerable});return e};var g=(e,t,n)=>(n=e!=null?mn(yn(e)):{},Te(t||!e||!e.__esModule?R(n,"default",{value:e,enumerable:!0}):n,e)),bn=e=>Te(R({},"__esModule",{value:!0}),e);var Ne=l((Lr,Re)=>{"use strict";var Ae=require("child_process"),Ce=Ae.spawn,wn=Ae.exec;Re.exports=function(e,t,n){if(typeof t=="function"&&n===void 0&&(n=t,t=void 0),e=parseInt(e),Number.isNaN(e)){if(n)return n(new Error("pid must be a number"));throw new Error("pid must be a number")}var r={},o={};switch(r[e]=[],o[e]=1,process.platform){case"win32":wn("taskkill /pid "+e+" /T /F",n);break;case"darwin":V(e,r,o,function(i){return Ce("pgrep",["-P",i])},function(){Ge(r,t,n)});break;default:V(e,r,o,function(i){return Ce("ps",["-o","pid","--no-headers","--ppid",i])},function(){Ge(r,t,n)});break}};function Ge(e,t,n){var r={};try{Object.keys(e).forEach(function(o){e[o].forEach(function(i){r[i]||(Oe(i,t),r[i]=1)}),r[o]||(Oe(o,t),r[o]=1)})}catch(o){if(n)return n(o);throw o}if(n)return n()}function Oe(e,t){try{process.kill(parseInt(e,10),t)}catch(n){if(n.code!=="ESRCH")throw n}}function V(e,t,n,r,o){var i=r(e),s="";i.stdout.on("data",function(c){var c=c.toString("ascii");s+=c});var a=function(u){if(delete n[e],u!=0){Object.keys(n).length==0&&o();return}s.match(/\d+/g).forEach(function(c){c=parseInt(c,10),t[e].push(c),t[c]=[],n[c]=1,V(c,t,n,r,o)})};i.on("close",a)}});var Be=l((Br,Le)=>{Le.exports=je;je.sync=vn;var ke=require("fs");function En(e,t){var n=t.pathExt!==void 0?t.pathExt:process.env.PATHEXT;if(!n||(n=n.split(";"),n.indexOf("")!==-1))return!0;for(var r=0;r<n.length;r++){var o=n[r].toLowerCase();if(o&&e.substr(-o.length).toLowerCase()===o)return!0}return!1}function $e(e,t,n){return!e.isSymbolicLink()&&!e.isFile()?!1:En(t,n)}function je(e,t,n){ke.stat(e,function(r,o){n(r,r?!1:$e(o,e,t))})}function vn(e,t){return $e(ke.statSync(e),e,t)}});var Me=l((Fr,qe)=>{qe.exports=Ue;Ue.sync=In;var Fe=require("fs");function Ue(e,t,n){Fe.stat(e,function(r,o){n(r,r?!1:_e(o,t))})}function In(e,t){return _e(Fe.statSync(e),t)}function _e(e,t){return e.isFile()&&Pn(e,t)}function Pn(e,t){var n=e.mode,r=e.uid,o=e.gid,i=t.uid!==void 0?t.uid:process.getuid&&process.getuid(),s=t.gid!==void 0?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),u=parseInt("010",8),c=parseInt("001",8),d=a|u,x=n&c||n&u&&o===s||n&a&&r===i||n&d&&i===0;return x}});var He=l((_r,De)=>{var Ur=require("fs"),U;process.platform==="win32"||global.TESTING_WINDOWS?U=Be():U=Me();De.exports=Y;Y.sync=Tn;function Y(e,t,n){if(typeof t=="function"&&(n=t,t={}),!n){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,o){Y(e,t||{},function(i,s){i?o(i):r(s)})})}U(e,t||{},function(r,o){r&&(r.code==="EACCES"||t&&t.ignoreErrors)&&(r=null,o=!1),n(r,o)})}function Tn(e,t){try{return U.sync(e,t||{})}catch(n){if(t&&t.ignoreErrors||n.code==="EACCES")return!1;throw n}}});var Qe=l((qr,Ye)=>{var P=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",Ke=require("path"),Cn=P?";":":",Xe=He(),We=e=>Object.assign(new Error(`not found: ${e}`),{code:"ENOENT"}),ze=(e,t)=>{let n=t.colon||Cn,r=e.match(/\//)||P&&e.match(/\\/)?[""]:[...P?[process.cwd()]:[],...(t.path||process.env.PATH||"").split(n)],o=P?t.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=P?o.split(n):[""];return P&&e.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:o}},Ve=(e,t,n)=>{typeof t=="function"&&(n=t,t={}),t||(t={});let{pathEnv:r,pathExt:o,pathExtExe:i}=ze(e,t),s=[],a=c=>new Promise((d,x)=>{if(c===r.length)return t.all&&s.length?d(s):x(We(e));let h=r[c],S=/^".*"$/.test(h)?h.slice(1,-1):h,y=Ke.join(S,e),b=!S&&/^\.[\\\/]/.test(e)?e.slice(0,2)+y:y;d(u(b,c,0))}),u=(c,d,x)=>new Promise((h,S)=>{if(x===o.length)return h(a(d+1));let y=o[x];Xe(c+y,{pathExt:i},(b,I)=>{if(!b&&I)if(t.all)s.push(c+y);else return h(c+y);return h(u(c,d,x+1))})});return n?a(0).then(c=>n(null,c),n):a(0)},Gn=(e,t)=>{t=t||{};let{pathEnv:n,pathExt:r,pathExtExe:o}=ze(e,t),i=[];for(let s=0;s<n.length;s++){let a=n[s],u=/^".*"$/.test(a)?a.slice(1,-1):a,c=Ke.join(u,e),d=!u&&/^\.[\\\/]/.test(e)?e.slice(0,2)+c:c;for(let x=0;x<r.length;x++){let h=d+r[x];try{if(Xe.sync(h,{pathExt:o}))if(t.all)i.push(h);else return h}catch{}}}if(t.all&&i.length)return i;if(t.nothrow)return null;throw We(e)};Ye.exports=Ve;Ve.sync=Gn});var Je=l((Mr,Q)=>{"use strict";var Ze=(e={})=>{let t=e.env||process.env;return(e.platform||process.platform)!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};Q.exports=Ze;Q.exports.default=Ze});var rt=l((Dr,nt)=>{"use strict";var et=require("path"),On=Qe(),An=Je();function tt(e,t){let n=e.options.env||process.env,r=process.cwd(),o=e.options.cwd!=null,i=o&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(e.options.cwd)}catch{}let s;try{s=On.sync(e.command,{path:n[An({env:n})],pathExt:t?et.delimiter:void 0})}catch{}finally{i&&process.chdir(r)}return s&&(s=et.resolve(o?e.options.cwd:"",s)),s}function Rn(e){return tt(e)||tt(e,!0)}nt.exports=Rn});var ot=l((Hr,J)=>{"use strict";var Z=/([()\][%!^"`<>&|;, *?])/g;function Nn(e){return e=e.replace(Z,"^$1"),e}function kn(e,t){return e=`${e}`,e=e.replace(/(\\*)"/g,'$1$1\\"'),e=e.replace(/(\\*)$/,"$1$1"),e=`"${e}"`,e=e.replace(Z,"^$1"),t&&(e=e.replace(Z,"^$1")),e}J.exports.command=Nn;J.exports.argument=kn});var st=l((Kr,it)=>{"use strict";it.exports=/^#!(.*)/});var ct=l((Xr,at)=>{"use strict";var $n=st();at.exports=(e="")=>{let t=e.match($n);if(!t)return null;let[n,r]=t[0].replace(/#! ?/,"").split(" "),o=n.split("/").pop();return o==="env"?r:r?`${o} ${r}`:o}});var ft=l((Wr,ut)=>{"use strict";var ee=require("fs"),jn=ct();function Ln(e){let n=Buffer.alloc(150),r;try{r=ee.openSync(e,"r"),ee.readSync(r,n,0,150,0),ee.closeSync(r)}catch{}return jn(n.toString())}ut.exports=Ln});var pt=l((zr,mt)=>{"use strict";var Bn=require("path"),lt=rt(),dt=ot(),Fn=ft(),Un=process.platform==="win32",_n=/\.(?:com|exe)$/i,qn=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;function Mn(e){e.file=lt(e);let t=e.file&&Fn(e.file);return t?(e.args.unshift(e.file),e.command=t,lt(e)):e.file}function Dn(e){if(!Un)return e;let t=Mn(e),n=!_n.test(t);if(e.options.forceShell||n){let r=qn.test(t);e.command=Bn.normalize(e.command),e.command=dt.command(e.command),e.args=e.args.map(i=>dt.argument(i,r));let o=[e.command].concat(e.args).join(" ");e.args=["/d","/s","/c",`"${o}"`],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0}return e}function Hn(e,t,n){t&&!Array.isArray(t)&&(n=t,t=null),t=t?t.slice(0):[],n=Object.assign({},n);let r={command:e,args:t,options:n,file:void 0,original:{command:e,args:t}};return n.shell?r:Dn(r)}mt.exports=Hn});var St=l((Vr,xt)=>{"use strict";var te=process.platform==="win32";function ne(e,t){return Object.assign(new Error(`${t} ${e.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${t} ${e.command}`,path:e.command,spawnargs:e.args})}function Kn(e,t){if(!te)return;let n=e.emit;e.emit=function(r,o){if(r==="exit"){let i=ht(o,t,"spawn");if(i)return n.call(e,"error",i)}return n.apply(e,arguments)}}function ht(e,t){return te&&e===1&&!t.file?ne(t.original,"spawn"):null}function Xn(e,t){return te&&e===1&&!t.file?ne(t.original,"spawnSync"):null}xt.exports={hookChildProcess:Kn,verifyENOENT:ht,verifyENOENTSync:Xn,notFoundError:ne}});var bt=l((Yr,T)=>{"use strict";var yt=require("child_process"),re=pt(),oe=St();function gt(e,t,n){let r=re(e,t,n),o=yt.spawn(r.command,r.args,r.options);return oe.hookChildProcess(o,r),o}function Wn(e,t,n){let r=re(e,t,n),o=yt.spawnSync(r.command,r.args,r.options);return o.error=o.error||oe.verifyENOENTSync(o.status,r),o}T.exports=gt;T.exports.spawn=gt;T.exports.sync=Wn;T.exports._parse=re;T.exports._enoent=oe});var Nt=l((So,D)=>{D.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"];process.platform!=="win32"&&D.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&D.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")});var Bt=l((yo,A)=>{var f=global.process,E=function(e){return e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function"};E(f)?(kt=require("assert"),G=Nt(),$t=/^win/i.test(f.platform),k=require("events"),typeof k!="function"&&(k=k.EventEmitter),f.__signal_exit_emitter__?p=f.__signal_exit_emitter__:(p=f.__signal_exit_emitter__=new k,p.count=0,p.emitted={}),p.infinite||(p.setMaxListeners(1/0),p.infinite=!0),A.exports=function(e,t){if(!E(global.process))return function(){};kt.equal(typeof e,"function","a callback must be provided for exit handler"),O===!1&&fe();var n="exit";t&&t.alwaysLast&&(n="afterexit");var r=function(){p.removeListener(n,e),p.listeners("exit").length===0&&p.listeners("afterexit").length===0&&H()};return p.on(n,e),r},H=function(){!O||!E(global.process)||(O=!1,G.forEach(function(t){try{f.removeListener(t,K[t])}catch{}}),f.emit=X,f.reallyExit=le,p.count-=1)},A.exports.unload=H,v=function(t,n,r){p.emitted[t]||(p.emitted[t]=!0,p.emit(t,n,r))},K={},G.forEach(function(e){K[e]=function(){if(!!E(global.process)){var n=f.listeners(e);n.length===p.count&&(H(),v("exit",null,e),v("afterexit",null,e),$t&&e==="SIGHUP"&&(e="SIGINT"),f.kill(f.pid,e))}}}),A.exports.signals=function(){return G},O=!1,fe=function(){O||!E(global.process)||(O=!0,p.count+=1,G=G.filter(function(t){try{return f.on(t,K[t]),!0}catch{return!1}}),f.emit=Lt,f.reallyExit=jt)},A.exports.load=fe,le=f.reallyExit,jt=function(t){!E(global.process)||(f.exitCode=t||0,v("exit",f.exitCode,null),v("afterexit",f.exitCode,null),le.call(f,f.exitCode))},X=f.emit,Lt=function(t,n){if(t==="exit"&&E(global.process)){n!==void 0&&(f.exitCode=n);var r=X.apply(this,arguments);return v("exit",f.exitCode,null),v("afterexit",f.exitCode,null),r}else return X.apply(this,arguments)}):A.exports=function(){return function(){}};var kt,G,$t,k,p,H,v,K,O,fe,le,jt,X,Lt});var Wt=l((wo,Xt)=>{"use strict";var{PassThrough:Sr}=require("stream");Xt.exports=e=>{e=m({},e);let{array:t}=e,{encoding:n}=e,r=n==="buffer",o=!1;t?o=!(n||r):n=n||"utf8",r&&(n=null);let i=new Sr({objectMode:o});n&&i.setEncoding(n);let s=0,a=[];return i.on("data",u=>{a.push(u),o?s=a.length:s+=u.length}),i.getBufferedValue=()=>t?a:r?Buffer.concat(a,s):a.join(""),i.getBufferedLength=()=>s,i}});var zt=l((Eo,$)=>{"use strict";var{constants:yr}=require("buffer"),gr=require("stream"),{promisify:br}=require("util"),wr=Wt(),Er=br(gr.pipeline),W=class extends Error{constructor(){super("maxBuffer exceeded"),this.name="MaxBufferError"}};async function de(e,t){if(!e)throw new Error("Expected a stream");t=m({maxBuffer:1/0},t);let{maxBuffer:n}=t,r=wr(t);return await new Promise((o,i)=>{let s=a=>{a&&r.getBufferedLength()<=yr.MAX_LENGTH&&(a.bufferedData=r.getBufferedValue()),i(a)};(async()=>{try{await Er(e,r),o()}catch(a){s(a)}})(),r.on("data",()=>{r.getBufferedLength()>n&&s(new W)})}),r.getBufferedValue()}$.exports=de;$.exports.buffer=(e,t)=>de(e,w(m({},t),{encoding:"buffer"}));$.exports.array=(e,t)=>de(e,w(m({},t),{array:!0}));$.exports.MaxBufferError=W});var Yt=l((vo,Vt)=>{"use strict";var{PassThrough:vr}=require("stream");Vt.exports=function(){var e=[],t=new vr({objectMode:!0});return t.setMaxListeners(0),t.add=n,t.isEmpty=r,t.on("unpipe",o),Array.prototype.slice.call(arguments).forEach(n),t;function n(i){return Array.isArray(i)?(i.forEach(n),this):(e.push(i),i.once("end",o.bind(null,i)),i.once("error",t.emit.bind(t,"error")),i.pipe(t,{end:!1}),this)}function r(){return e.length==0}function o(i){e=e.filter(function(s){return s!==i}),!e.length&&t.readable&&t.end()}}});var $r={};gn($r,{command:()=>fn,treeKill:()=>ln.default});module.exports=bn($r);var ln=g(Ne());var an=require("buffer"),cn=g(require("path"),1),ye=g(require("child_process"),1),j=g(require("process"),1),un=g(bt(),1);function ie(e){let t=typeof e=="string"?` | ||
`:` | ||
`.charCodeAt(),n=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}var N=g(require("process"),1),C=g(require("path"),1),wt=g(require("url"),1);function U(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}function zn(e={}){let{cwd:t=N.default.cwd(),path:n=N.default.env[U()],execPath:r=N.default.execPath}=e,o,i=t instanceof URL?wt.default.fileURLToPath(t):t,s=C.default.resolve(i),a=[];for(;o!==s;)a.push(C.default.join(s,"node_modules/.bin")),o=s,s=C.default.resolve(s,"..");return a.push(C.default.resolve(i,r,"..")),[...a,n].join(C.default.delimiter)}function Et(n={}){var r=n,{env:e=N.default.env}=r,t=Pe(r,["env"]);e=m({},e);let o=U({env:e});return t.path=e[o],e[o]=zn(t),e}var Vn=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Yn(o,i)&&r||Object.defineProperty(e,n,i)},Yn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Qn=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Zn=(e,t)=>`/* Wrapped ${e}*/ | ||
${t}`,Jn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),er=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),tr=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=Zn.bind(null,r,t.toString());Object.defineProperty(o,"name",er),Object.defineProperty(e,"toString",w(m({},Jn),{value:o}))};function ie(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Vn(e,t,o,n);return Qn(e,t),tr(e,t,r),e}var _=new WeakMap,vt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(_.set(i,++r),r===1)n=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return ie(i,e),_.set(i,r),i};vt.callCount=e=>{if(!_.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return _.get(e)};var It=vt;var Ot=require("os");var Pt=function(){let e=se-Tt+1;return Array.from({length:e},nr)},nr=function(e,t){return{name:`SIGRT${t+1}`,number:Tt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Tt=34,se=64;var Gt=require("os");var Ct=[{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:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var ae=function(){let e=Pt();return[...Ct,...e].map(rr)},rr=function({name:e,number:t,description:n,action:r,forced:o=!1,standard:i}){let{signals:{[e]:s}}=Gt.constants,a=s!==void 0;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}};var or=function(){return ae().reduce(ir,{})},ir=function(e,{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}){return w(m({},e),{[t]:{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}})},At=or(),sr=function(){let e=ae(),t=64+1,n=Array.from({length:t},(r,o)=>ar(o,e));return Object.assign({},...n)},ar=function(e,t){let n=cr(e,t);if(n===void 0)return{};let{name:r,description:o,supported:i,action:s,forced:a,standard:u}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:u}}},cr=function(e,t){let n=t.find(({name:r})=>Ot.constants.signals[r]===e);return n!==void 0?n:t.find(r=>r.number===e)},lo=sr();var ur=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ce=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:u,isCanceled:c,killed:d,parsed:{options:{timeout:x}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let h=o===void 0?void 0:At[o].description,S=r&&r.code,b=`Command ${ur({timedOut:u,timeout:x,errorCode:S,signal:o,signalDescription:h,exitCode:i,isCanceled:c})}: ${s}`,I=Object.prototype.toString.call(r)==="[object Error]",L=I?`${b} | ||
`.charCodeAt(),n=typeof e=="string"?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,-1)),e[e.length-1]===n&&(e=e.slice(0,-1)),e}var N=g(require("process"),1),C=g(require("path"),1),wt=g(require("url"),1);function _(e={}){let{env:t=process.env,platform:n=process.platform}=e;return n!=="win32"?"PATH":Object.keys(t).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"}function zn(e={}){let{cwd:t=N.default.cwd(),path:n=N.default.env[_()],execPath:r=N.default.execPath}=e,o,i=t instanceof URL?wt.default.fileURLToPath(t):t,s=C.default.resolve(i),a=[];for(;o!==s;)a.push(C.default.join(s,"node_modules/.bin")),o=s,s=C.default.resolve(s,"..");return a.push(C.default.resolve(i,r,"..")),[...a,n].join(C.default.delimiter)}function Et(n={}){var r=n,{env:e=N.default.env}=r,t=Pe(r,["env"]);e=m({},e);let o=_({env:e});return t.path=e[o],e[o]=zn(t),e}var Vn=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Yn(o,i)&&r||Object.defineProperty(e,n,i)},Yn=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Qn=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Zn=(e,t)=>`/* Wrapped ${e}*/ | ||
${t}`,Jn=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),er=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),tr=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=Zn.bind(null,r,t.toString());Object.defineProperty(o,"name",er),Object.defineProperty(e,"toString",w(m({},Jn),{value:o}))};function se(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Vn(e,t,o,n);return Qn(e,t),tr(e,t,r),e}var q=new WeakMap,vt=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(q.set(i,++r),r===1)n=e.apply(this,s),e=null;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return se(i,e),q.set(i,r),i};vt.callCount=e=>{if(!q.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return q.get(e)};var It=vt;var Ot=require("os");var Pt=function(){let e=ae-Tt+1;return Array.from({length:e},nr)},nr=function(e,t){return{name:`SIGRT${t+1}`,number:Tt+t,action:"terminate",description:"Application-specific signal (realtime)",standard:"posix"}},Tt=34,ae=64;var Gt=require("os");var Ct=[{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:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGPROF",number:27,action:"terminate",description:"Timeout or timer",standard:"bsd"},{name:"SIGWINCH",number:28,action:"ignore",description:"Terminal window size changed",standard:"bsd"},{name:"SIGIO",number:29,action:"terminate",description:"I/O is available",standard:"other"},{name:"SIGPOLL",number:29,action:"terminate",description:"Watched event",standard:"other"},{name:"SIGINFO",number:29,action:"ignore",description:"Request for process information",standard:"other"},{name:"SIGPWR",number:30,action:"terminate",description:"Device running out of power",standard:"systemv"},{name:"SIGSYS",number:31,action:"core",description:"Invalid system call",standard:"other"},{name:"SIGUNUSED",number:31,action:"terminate",description:"Invalid system call",standard:"other"}];var ce=function(){let e=Pt();return[...Ct,...e].map(rr)},rr=function({name:e,number:t,description:n,action:r,forced:o=!1,standard:i}){let{signals:{[e]:s}}=Gt.constants,a=s!==void 0;return{name:e,number:a?s:t,description:n,supported:a,action:r,forced:o,standard:i}};var or=function(){return ce().reduce(ir,{})},ir=function(e,{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}){return w(m({},e),{[t]:{name:t,number:n,description:r,supported:o,action:i,forced:s,standard:a}})},At=or(),sr=function(){let e=ce(),t=64+1,n=Array.from({length:t},(r,o)=>ar(o,e));return Object.assign({},...n)},ar=function(e,t){let n=cr(e,t);if(n===void 0)return{};let{name:r,description:o,supported:i,action:s,forced:a,standard:u}=n;return{[e]:{name:r,number:e,description:o,supported:i,action:s,forced:a,standard:u}}},cr=function(e,t){let n=t.find(({name:r})=>Ot.constants.signals[r]===e);return n!==void 0?n:t.find(r=>r.number===e)},lo=sr();var ur=({timedOut:e,timeout:t,errorCode:n,signal:r,signalDescription:o,exitCode:i,isCanceled:s})=>e?`timed out after ${t} milliseconds`:s?"was canceled":n!==void 0?`failed with ${n}`:r!==void 0?`was killed with ${r} (${o})`:i!==void 0?`failed with exit code ${i}`:"failed",ue=({stdout:e,stderr:t,all:n,error:r,signal:o,exitCode:i,command:s,escapedCommand:a,timedOut:u,isCanceled:c,killed:d,parsed:{options:{timeout:x}}})=>{i=i===null?void 0:i,o=o===null?void 0:o;let h=o===void 0?void 0:At[o].description,S=r&&r.code,b=`Command ${ur({timedOut:u,timeout:x,errorCode:S,signal:o,signalDescription:h,exitCode:i,isCanceled:c})}: ${s}`,I=Object.prototype.toString.call(r)==="[object Error]",L=I?`${b} | ||
${r.message}`:b,B=[L,t,e].filter(Boolean).join(` | ||
`);return I?(r.originalMessage=r.message,r.message=B):r=new Error(B),r.shortMessage=L,r.command=s,r.escapedCommand=a,r.exitCode=i,r.signal=o,r.signalDescription=h,r.stdout=e,r.stderr=t,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=Boolean(u),r.isCanceled=c,r.killed=d&&!u,r};var q=["stdin","stdout","stderr"],fr=e=>q.some(t=>e[t]!==void 0),Rt=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return q.map(r=>e[r]);if(fr(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${q.map(r=>`\`${r}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,q.length);return Array.from({length:n},(r,o)=>t[o])};var Ft=g(require("os"),1),Mt=g(Bt(),1),lr=1e3*5,Ut=(e,t="SIGTERM",n={})=>{let r=e(t);return dr(e,t,n,r),r},dr=(e,t,n,r)=>{if(!mr(t,n,r))return;let o=hr(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},mr=(e,{forceKillAfterTimeout:t},n)=>pr(e)&&t!==!1&&n,pr=e=>e===Ft.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",hr=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return lr;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},_t=(e,t)=>{e.kill()&&(t.isCanceled=!0)},xr=(e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},qt=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===void 0)return r;let o,i=new Promise((a,u)=>{o=setTimeout(()=>{xr(e,n,u)},t)}),s=r.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Dt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ht=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let o=(0,Mt.default)(()=>{e.kill()});return r.finally(()=>{o()})};function Kt(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}var he=g(zt(),1),Qt=g(Yt(),1),Zt=(e,t)=>{t===void 0||e.stdin===void 0||(Kt(t)?t.pipe(e.stdin):e.stdin.end(t))},Jt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,Qt.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},me=async(e,t)=>{if(!!e){e.destroy();try{return await t}catch(n){return n.bufferedData}}},pe=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t?(0,he.default)(e,{encoding:t,maxBuffer:r}):he.default.buffer(e,{maxBuffer:r})},en=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},s)=>{let a=pe(e,{encoding:r,buffer:o,maxBuffer:i}),u=pe(t,{encoding:r,buffer:o,maxBuffer:i}),c=pe(n,{encoding:r,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,a,u,c])}catch(d){return Promise.all([{error:d,signal:d.signal,timedOut:d.timedOut},me(e,a),me(t,u),me(n,c)])}};var Ir=(async()=>{})().constructor.prototype,Pr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Ir,e)]),xe=(e,t)=>{for(let[n,r]of Pr){let o=typeof t=="function"?(...i)=>Reflect.apply(r.value,t(),i):r.value.bind(t);Reflect.defineProperty(e,n,w(m({},r),{value:o}))}return e},tn=e=>new Promise((t,n)=>{e.on("exit",(r,o)=>{t({exitCode:r,signal:o})}),e.on("error",r=>{n(r)}),e.stdin&&e.stdin.on("error",r=>{n(r)})});var nn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Tr=/^[\w.-]+$/,Cr=/"/g,Gr=e=>typeof e!="string"||Tr.test(e)?e:`"${e.replace(Cr,'\\"')}"`,rn=(e,t)=>nn(e,t).join(" "),on=(e,t)=>nn(e,t).map(n=>Gr(n)).join(" "),Or=/ +/g,sn=e=>{let t=[];for(let n of e.trim().split(Or)){let r=t[t.length-1];r&&r.endsWith("\\")?t[t.length-1]=`${r.slice(0,-1)} ${n}`:t.push(n)}return t};var Ar=1e3*1e3*100,Rr=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{let i=t?m(m({},j.default.env),e):e;return n?Et({env:i,cwd:r,execPath:o}):i},Nr=(e,t,n={})=>{let r=un.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n=m({maxBuffer:Ar,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||j.default.cwd(),execPath:j.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},n),n.env=Rr(n),n.stdio=Rt(n),j.default.platform==="win32"&&cn.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Se=(e,t,n)=>typeof t!="string"&&!an.Buffer.isBuffer(t)?n===void 0?void 0:"":e.stripFinalNewline?oe(t):t;function kr(e,t,n){let r=Nr(e,t,n),o=rn(e,t),i=on(e,t);Dt(r.options);let s;try{s=ye.default.spawn(r.file,r.args,r.options)}catch(S){let y=new ye.default.ChildProcess,b=Promise.reject(ce({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return xe(y,b)}let a=tn(s),u=qt(s,r.options,a),c=Ht(s,r.options,u),d={isCanceled:!1};s.kill=Ut.bind(null,s.kill.bind(s)),s.cancel=_t.bind(null,s,d);let h=It(async()=>{let[{error:S,exitCode:y,signal:b,timedOut:I},L,B,dn]=await en(s,r.options,c),ge=Se(r.options,L),be=Se(r.options,B),we=Se(r.options,dn);if(S||y!==0||b!==null){let Ee=ce({error:S,exitCode:y,signal:b,stdout:ge,stderr:be,all:we,command:o,escapedCommand:i,parsed:r,timedOut:I,isCanceled:d.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:s.killed});if(!r.options.reject)return Ee;throw Ee}return{command:o,escapedCommand:i,exitCode:0,stdout:ge,stderr:be,all:we,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Zt(s,r.options.input),s.all=Jt(s,r.options),xe(s,h)}function fn(e,t){let[n,...r]=sn(e);return kr(n,r,t)}0&&(module.exports={command,treeKill}); | ||
`);return I?(r.originalMessage=r.message,r.message=B):r=new Error(B),r.shortMessage=L,r.command=s,r.escapedCommand=a,r.exitCode=i,r.signal=o,r.signalDescription=h,r.stdout=e,r.stderr=t,n!==void 0&&(r.all=n),"bufferedData"in r&&delete r.bufferedData,r.failed=!0,r.timedOut=Boolean(u),r.isCanceled=c,r.killed=d&&!u,r};var M=["stdin","stdout","stderr"],fr=e=>M.some(t=>e[t]!==void 0),Rt=e=>{if(!e)return;let{stdio:t}=e;if(t===void 0)return M.map(r=>e[r]);if(fr(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${M.map(r=>`\`${r}\``).join(", ")}`);if(typeof t=="string")return t;if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);let n=Math.max(t.length,M.length);return Array.from({length:n},(r,o)=>t[o])};var Ft=g(require("os"),1),Ut=g(Bt(),1),lr=1e3*5,_t=(e,t="SIGTERM",n={})=>{let r=e(t);return dr(e,t,n,r),r},dr=(e,t,n,r)=>{if(!mr(t,n,r))return;let o=hr(n),i=setTimeout(()=>{e("SIGKILL")},o);i.unref&&i.unref()},mr=(e,{forceKillAfterTimeout:t},n)=>pr(e)&&t!==!1&&n,pr=e=>e===Ft.default.constants.signals.SIGTERM||typeof e=="string"&&e.toUpperCase()==="SIGTERM",hr=({forceKillAfterTimeout:e=!0})=>{if(e===!0)return lr;if(!Number.isFinite(e)||e<0)throw new TypeError(`Expected the \`forceKillAfterTimeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`);return e},qt=(e,t)=>{e.kill()&&(t.isCanceled=!0)},xr=(e,t,n)=>{e.kill(t),n(Object.assign(new Error("Timed out"),{timedOut:!0,signal:t}))},Mt=(e,{timeout:t,killSignal:n="SIGTERM"},r)=>{if(t===0||t===void 0)return r;let o,i=new Promise((a,u)=>{o=setTimeout(()=>{xr(e,n,u)},t)}),s=r.finally(()=>{clearTimeout(o)});return Promise.race([i,s])},Dt=({timeout:e})=>{if(e!==void 0&&(!Number.isFinite(e)||e<0))throw new TypeError(`Expected the \`timeout\` option to be a non-negative integer, got \`${e}\` (${typeof e})`)},Ht=async(e,{cleanup:t,detached:n},r)=>{if(!t||n)return r;let o=(0,Ut.default)(()=>{e.kill()});return r.finally(()=>{o()})};function Kt(e){return e!==null&&typeof e=="object"&&typeof e.pipe=="function"}var he=g(zt(),1),Qt=g(Yt(),1),Zt=(e,t)=>{t===void 0||e.stdin===void 0||(Kt(t)?t.pipe(e.stdin):e.stdin.end(t))},Jt=(e,{all:t})=>{if(!t||!e.stdout&&!e.stderr)return;let n=(0,Qt.default)();return e.stdout&&n.add(e.stdout),e.stderr&&n.add(e.stderr),n},me=async(e,t)=>{if(!!e){e.destroy();try{return await t}catch(n){return n.bufferedData}}},pe=(e,{encoding:t,buffer:n,maxBuffer:r})=>{if(!(!e||!n))return t?(0,he.default)(e,{encoding:t,maxBuffer:r}):he.default.buffer(e,{maxBuffer:r})},en=async({stdout:e,stderr:t,all:n},{encoding:r,buffer:o,maxBuffer:i},s)=>{let a=pe(e,{encoding:r,buffer:o,maxBuffer:i}),u=pe(t,{encoding:r,buffer:o,maxBuffer:i}),c=pe(n,{encoding:r,buffer:o,maxBuffer:i*2});try{return await Promise.all([s,a,u,c])}catch(d){return Promise.all([{error:d,signal:d.signal,timedOut:d.timedOut},me(e,a),me(t,u),me(n,c)])}};var Ir=(async()=>{})().constructor.prototype,Pr=["then","catch","finally"].map(e=>[e,Reflect.getOwnPropertyDescriptor(Ir,e)]),xe=(e,t)=>{for(let[n,r]of Pr){let o=typeof t=="function"?(...i)=>Reflect.apply(r.value,t(),i):r.value.bind(t);Reflect.defineProperty(e,n,w(m({},r),{value:o}))}return e},tn=e=>new Promise((t,n)=>{e.on("exit",(r,o)=>{t({exitCode:r,signal:o})}),e.on("error",r=>{n(r)}),e.stdin&&e.stdin.on("error",r=>{n(r)})});var nn=(e,t=[])=>Array.isArray(t)?[e,...t]:[e],Tr=/^[\w.-]+$/,Cr=/"/g,Gr=e=>typeof e!="string"||Tr.test(e)?e:`"${e.replace(Cr,'\\"')}"`,rn=(e,t)=>nn(e,t).join(" "),on=(e,t)=>nn(e,t).map(n=>Gr(n)).join(" "),Or=/ +/g,sn=e=>{let t=[];for(let n of e.trim().split(Or)){let r=t[t.length-1];r&&r.endsWith("\\")?t[t.length-1]=`${r.slice(0,-1)} ${n}`:t.push(n)}return t};var Ar=1e3*1e3*100,Rr=({env:e,extendEnv:t,preferLocal:n,localDir:r,execPath:o})=>{let i=t?m(m({},j.default.env),e):e;return n?Et({env:i,cwd:r,execPath:o}):i},Nr=(e,t,n={})=>{let r=un.default._parse(e,t,n);return e=r.command,t=r.args,n=r.options,n=m({maxBuffer:Ar,buffer:!0,stripFinalNewline:!0,extendEnv:!0,preferLocal:!1,localDir:n.cwd||j.default.cwd(),execPath:j.default.execPath,encoding:"utf8",reject:!0,cleanup:!0,all:!1,windowsHide:!0},n),n.env=Rr(n),n.stdio=Rt(n),j.default.platform==="win32"&&cn.default.basename(e,".exe")==="cmd"&&t.unshift("/q"),{file:e,args:t,options:n,parsed:r}},Se=(e,t,n)=>typeof t!="string"&&!an.Buffer.isBuffer(t)?n===void 0?void 0:"":e.stripFinalNewline?ie(t):t;function kr(e,t,n){let r=Nr(e,t,n),o=rn(e,t),i=on(e,t);Dt(r.options);let s;try{s=ye.default.spawn(r.file,r.args,r.options)}catch(S){let y=new ye.default.ChildProcess,b=Promise.reject(ue({error:S,stdout:"",stderr:"",all:"",command:o,escapedCommand:i,parsed:r,timedOut:!1,isCanceled:!1,killed:!1}));return xe(y,b)}let a=tn(s),u=Mt(s,r.options,a),c=Ht(s,r.options,u),d={isCanceled:!1};s.kill=_t.bind(null,s.kill.bind(s)),s.cancel=qt.bind(null,s,d);let h=It(async()=>{let[{error:S,exitCode:y,signal:b,timedOut:I},L,B,dn]=await en(s,r.options,c),ge=Se(r.options,L),be=Se(r.options,B),we=Se(r.options,dn);if(S||y!==0||b!==null){let Ee=ue({error:S,exitCode:y,signal:b,stdout:ge,stderr:be,all:we,command:o,escapedCommand:i,parsed:r,timedOut:I,isCanceled:d.isCanceled||(r.options.signal?r.options.signal.aborted:!1),killed:s.killed});if(!r.options.reject)return Ee;throw Ee}return{command:o,escapedCommand:i,exitCode:0,stdout:ge,stderr:be,all:we,failed:!1,timedOut:!1,isCanceled:!1,killed:!1}});return Zt(s,r.options.input),s.all=Jt(s,r.options),xe(s,h)}function fn(e,t){let[n,...r]=sn(e);return kr(n,r,t)}0&&(module.exports={command,treeKill}); |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
262463
1724
51
Updatedbob-esbuild-plugin@^3.1.5