module.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r.w={},r(r.s=112)}([function(e,t){e.exports=require("path")},function(e,t){e.exports=require("fs")},function(e,t,r){"use strict";var n=r(55),o=r(53),i="function"==typeof Symbol&&"symbol"==typeof Symbol(),s=Object.prototype.toString,a=Object.defineProperty&&function(){var e={};try{for(var t in Object.defineProperty(e,"x",{enumerable:!1,value:e}),e)return!1;return e.x===e}catch(e){return!1}}(),c=function(e,t,r,n){var o;t in e&&("function"!=typeof(o=n)||"[object Function]"!==s.call(o)||!n())||(a?Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:r,writable:!0}):e[t]=r)},u=function(e,t){var r=arguments.length>2?arguments[2]:{},s=n(t);i&&(s=s.concat(Object.getOwnPropertySymbols(t))),o(s,function(n){c(e,n,t[n],r[n])})};u.supportsDescriptors=!!a,e.exports=u},function(e,t,r){var n=r(6);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},function(e,t){e.exports=require("util")},function(e,t){e.exports=require("child_process")},function(e,t,r){"use strict";var n=r(52);e.exports=Function.prototype.bind||n},function(e,t,r){const n=r(0),o=r(1),i=r(5),s=r(37),a=r(13),c=e=>new Promise(t=>{i.exec(e,{stdio:[0,"pipe","ignore"]},(e,r)=>{t((e?"":r.toString()||"").trim())})}),u=function(e){const t=Object.values(Array.prototype.slice.call(arguments).slice(1));(process.env.ENVINFO_DEBUG||"").toLowerCase()===e&&console.log(e,JSON.stringify(t))},l=e=>new Promise(t=>{o.stat(e,r=>t(r?null:e))}),p=e=>new Promise(t=>{e||t(null),o.readFile(e,"utf8",(e,r)=>t(r||null))}),h=e=>l(e).then(p).then(e=>e?JSON.parse(e):null),f=/\d+\.[\d+|.]+/g,d=e=>{u("trace","findDarwinApplication",e);const t=`mdfind "kMDItemCFBundleIdentifier=='${e}'"`;return u("trace",t),c(t).then(e=>e.replace(/(\s)/g,"\\ "))},m=(e,t)=>{var r=(t||["CFBundleShortVersionString"]).map(function(e){return"-c Print:"+e});return["/usr/libexec/PlistBuddy"].concat(r).concat([e]).join(" ")};e.exports={run:c,log:u,fileExists:l,readFile:p,requireJson:h,versionRegex:f,findDarwinApplication:d,generatePlistBuddyCommand:m,isObject:e=>"object"==typeof e&&!Array.isArray(e),noop:e=>e,pipe:e=>t=>e.reduce((e,t)=>t(e),t),browserBundleIdentifiers:{Chrome:"com.google.Chrome","Chrome Canary":"com.google.Chrome.canary",Firefox:"org.mozilla.firefox","Firefox Developer Edition":"org.mozilla.firefoxdeveloperedition","Firefox Nightly":"org.mozilla.nightly",Safari:"com.apple.Safari","Safari Technology Preview":"com.apple.SafariTechnologyPreview"},ideBundleIdentifiers:{Atom:"com.github.atom",IntelliJ:"com.jetbrains.intellij",PhpStorm:"com.jetbrains.PhpStorm","Sublime Text":"com.sublimetext.3",WebStorm:"com.jetbrains.WebStorm"},runSync:e=>(i.execSync(e,{stdio:[0,"pipe","ignore"]}).toString()||"").trim(),which:e=>new Promise(t=>s(e,(e,r)=>t(r))),getDarwinApplicationVersion:e=>{var t;return u("trace","getDarwinApplicationVersion",e),t="darwin"!==process.platform?"N/A":d(e).then(e=>c(m(n.join(e,"Contents","Info.plist"),["CFBundleShortVersionString"]))),Promise.resolve(t)},uniq:e=>Array.from(new Set(e)),toReadableBytes:e=>{const t=Math.floor(Math.log(e)/Math.log(1024));return e?(e/Math.pow(1024,t)).toFixed(2)+" "+["B","KB","MB","GB","TB","PB"][t]:"0 Bytes"},omit:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)<0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),pick:(e,t)=>Object.keys(e).filter(e=>t.indexOf(e)>=0).reduce((t,r)=>Object.assign(t,{[r]:e[r]}),{}),getPackageJsonByName:e=>h(n.join(process.cwd(),"node_modules",e,"package.json")),getPackageJsonByPath:e=>h(n.join(process.cwd(),e)),getPackageJsonByFullPath:e=>(u("trace","getPackageJsonByFullPath",e),h(e)),getAllPackageJsonPaths:e=>(u("trace","getAllPackageJsonPaths",e),new Promise(t=>{return a(e?n.join("node_modules",e,"package.json"):n.join("node_modules","**","package.json"),(e,r)=>t(r||[]))})),sortObject:e=>Object.keys(e).sort().reduce((t,r)=>(t[r]=e[r],t),{}),findVersion:(e,t,r)=>{const n=r||0,o=t||f,i=e.match(o);return i?i[n]:e},condensePath:e=>(e||"").replace(process.env.HOME,"~"),determineFound:(e,t,r)=>(u("trace","determineFound",e,t,r),!t||"N/A"===t||"N/A"===t&&"N/A"===r?Promise.resolve([e,"N/A"]):r?Promise.resolve([e,t,r]):Promise.resolve([e,t]))}},function(e,t){e.exports=require("os")},function(e,t,r){"use strict";const n=r(5),o=r(4),i=r(109),s=r(95),a=r(94),c=r(92),u=r(91),l=r(88),p=r(87),h=r(85),f=r(84),d=1e7;function m(e,t,r){let n;return(r=Object.assign({extendEnv:!0,env:{}},r)).extendEnv&&(r.env=Object.assign({},process.env,r.env)),!0===r.__winShell?(delete r.__winShell,n={command:e,args:t,options:r,file:e,original:e}):n=i._parse(e,t,r),(r=Object.assign({maxBuffer:d,stripEof:!0,preferLocal:!0,localDir:n.options.cwd||process.cwd(),encoding:"utf8",reject:!0,cleanup:!0},n.options)).stdio=f(r),r.preferLocal&&(r.env=a.env(Object.assign({},r,{cwd:r.localDir}))),{cmd:n.command,args:n.args,opts:r,parsed:n}}function g(e,t){return t&&e.stripEof&&(t=s(t)),t}function y(e,t,r){let n="/bin/sh",o=["-c",t];return r=Object.assign({},r),"win32"===process.platform&&(r.__winShell=!0,n=process.env.comspec||"cmd.exe",o=["/s","/c",`"${t}"`],r.windowsVerbatimArguments=!0),r.shell&&(n=r.shell,delete r.shell),e(n,o,r)}function v(e,t,r,n){if(!e[t])return null;let o;return(o=r?u(e[t],{encoding:r,maxBuffer:n}):u.buffer(e[t],{maxBuffer:n})).catch(e=>{throw e.stream=t,e.message=`${t} ${e.message}`,e})}e.exports=((e,t,r)=>{let o=e;Array.isArray(t)&&t.length>0&&(o+=" "+t.join(" "));const s=m(e,t,r),a=s.opts.encoding,u=s.opts.maxBuffer;let f,d;try{f=n.spawn(s.cmd,s.args,s.opts)}catch(e){return Promise.reject(e)}s.opts.cleanup&&(d=p(()=>{f.kill()}));let y=null,b=!1;const w=()=>{y&&(clearTimeout(y),y=null)};s.opts.timeout>0&&(y=setTimeout(()=>{y=null,b=!0,f.kill(s.opts.killSignal)},s.opts.timeout));const x=new Promise(e=>{f.on("exit",(t,r)=>{w(),e({code:t,signal:r})}),f.on("error",t=>{w(),e({err:t})}),f.stdin&&f.stdin.on("error",t=>{w(),e({err:t})})});function S(){f.stdout&&f.stdout.destroy(),f.stderr&&f.stderr.destroy()}const E=()=>l(Promise.all([x,v(f,"stdout",a,u),v(f,"stderr",a,u)]).then(e=>{const t=e[0],r=e[1],n=e[2];let i=t.err;const a=t.code,c=t.signal;if(d&&d(),i||0!==a||null!==c){if(!i){let e="";Array.isArray(s.opts.stdio)?("inherit"!==s.opts.stdio[2]&&(e+=e.length>0?n:`\n${n}`),"inherit"!==s.opts.stdio[1]&&(e+=`\n${r}`)):"inherit"!==s.opts.stdio&&(e=`\n${n}${r}`),(i=new Error(`Command failed: ${o}${e}`)).code=a<0?h(a):a}if(i.killed=i.killed||f.killed,i.stdout=r,i.stderr=n,i.failed=!0,i.signal=c||null,i.cmd=o,i.timedOut=b,!s.opts.reject)return i;throw i}return{stdout:g(s.opts,r),stderr:g(s.opts,n),code:0,failed:!1,killed:!1,signal:null,cmd:o,timedOut:!1}}),S);return i._enoent.hookChildProcess(f,s.parsed),function(e,t){const r=s.opts.input;null!==r&&void 0!==r&&(c(r)?r.pipe(e.stdin):e.stdin.end(r))}(f),f.then=((e,t)=>E().then(e,t)),f.catch=(e=>E().catch(e)),f}),e.exports.stdout=function(){return e.exports.apply(null,arguments).then(e=>e.stdout)},e.exports.stderr=function(){return e.exports.apply(null,arguments).then(e=>e.stderr)},e.exports.shell=((t,r)=>y(e.exports,t,r)),e.exports.sync=((e,t,r)=>{const o=m(e,t,r);if(c(o.opts.input))throw new TypeError("The `input` option cannot be a stream in sync mode");const i=n.spawnSync(o.cmd,o.args,o.opts);if(i.error||0!==i.status)throw i.error||new Error(""===i.stderr?i.stdout:i.stderr);return i.stdout=g(o.opts,i.stdout),i.stderr=g(o.opts,i.stderr),i}),e.exports.shellSync=((t,r)=>y(e.exports.sync,t,r)),e.exports.spawn=o.deprecate(e.exports,"execa.spawn() is deprecated. Use execa() instead.")},function(e,t,r){"use strict";var n=Function.prototype.toString,o=/^\s*class /,i=function(e){try{var t=n.call(e).replace(/\/\/.*\n/g,"").replace(/\/\*[.\s\S]*\*\//g,"").replace(/\n/gm," ").replace(/ {2}/g," ");return o.test(t)}catch(e){return!1}},s=Object.prototype.toString,a="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){if(!e)return!1;if("function"!=typeof e&&"object"!=typeof e)return!1;if(a)return function(e){try{return!i(e)&&(n.call(e),!0)}catch(e){return!1}}(e);if(i(e))return!1;var t=s.call(e);return"[object Function]"===t||"[object GeneratorFunction]"===t}},function(e,t,r){"use strict";function n(e){return"/"===e.charAt(0)}function o(e){var t=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/.exec(e),r=t[1]||"",n=Boolean(r&&":"!==r.charAt(1));return Boolean(t[2]||n)}e.exports="win32"===process.platform?o:n,e.exports.posix=n,e.exports.win32=o},function(e,t,r){e.exports=h,h.Minimatch=f;var n={sep:"/"};try{n=r(0)}catch(e){}var o=h.GLOBSTAR=f.GLOBSTAR={},i=r(72),s={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},a="[^/]",c=a+"*?",u="().*{}+?[]^$\\!".split("").reduce(function(e,t){return e[t]=!0,e},{}),l=/\/+/;function p(e,t){e=e||{},t=t||{};var r={};return Object.keys(t).forEach(function(e){r[e]=t[e]}),Object.keys(e).forEach(function(t){r[t]=e[t]}),r}function h(e,t,r){if("string"!=typeof t)throw new TypeError("glob pattern string required");return r||(r={}),!(!r.nocomment&&"#"===t.charAt(0))&&(""===t.trim()?""===e:new f(t,r).match(e))}function f(e,t){if(!(this instanceof f))return new f(e,t);if("string"!=typeof e)throw new TypeError("glob pattern string required");t||(t={}),e=e.trim(),"/"!==n.sep&&(e=e.split(n.sep).join("/")),this.options=t,this.set=[],this.pattern=e,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.make()}function d(e,t){if(t||(t=this instanceof f?this.options:{}),void 0===(e=void 0===e?this.pattern:e))throw new TypeError("undefined pattern");return t.nobrace||!e.match(/\{.*\}/)?[e]:i(e)}h.filter=function(e,t){return t=t||{},function(r,n,o){return h(r,e,t)}},h.defaults=function(e){if(!e||!Object.keys(e).length)return h;var t=h,r=function(r,n,o){return t.minimatch(r,n,p(e,o))};return r.Minimatch=function(r,n){return new t.Minimatch(r,p(e,n))},r},f.defaults=function(e){return e&&Object.keys(e).length?h.defaults(e).Minimatch:f},f.prototype.debug=function(){},f.prototype.make=function(){if(!this._made){var e=this.pattern,t=this.options;if(t.nocomment||"#"!==e.charAt(0))if(e){this.parseNegate();var r=this.globSet=this.braceExpand();t.debug&&(this.debug=console.error),this.debug(this.pattern,r),r=this.globParts=r.map(function(e){return e.split(l)}),this.debug(this.pattern,r),r=r.map(function(e,t,r){return e.map(this.parse,this)},this),this.debug(this.pattern,r),r=r.filter(function(e){return-1===e.indexOf(!1)}),this.debug(this.pattern,r),this.set=r}else this.empty=!0;else this.comment=!0}},f.prototype.parseNegate=function(){var e=this.pattern,t=!1,r=0;if(!this.options.nonegate){for(var n=0,o=e.length;n65536)throw new TypeError("pattern is too long");var r=this.options;if(!r.noglobstar&&"**"===e)return o;if(""===e)return"";var n,i="",l=!!r.nocase,p=!1,h=[],f=[],d=!1,g=-1,y=-1,v="."===e.charAt(0)?"":r.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",b=this;function w(){if(n){switch(n){case"*":i+=c,l=!0;break;case"?":i+=a,l=!0;break;default:i+="\\"+n}b.debug("clearStateChar %j %j",n,i),n=!1}}for(var x,S=0,E=e.length;S-1;k--){var _=f[k],C=i.slice(0,_.reStart),N=i.slice(_.reStart,_.reEnd-8),F=i.slice(_.reEnd-8,_.reEnd),D=i.slice(_.reEnd);F+=D;var $=C.split("(").length-1,M=D;for(S=0;S<$;S++)M=M.replace(/\)[+*?]?/,"");var B="";""===(D=M)&&t!==m&&(B="$"),i=C+N+D+B+F}if(""!==i&&l&&(i="(?=.)"+i),A&&(i=v+i),t===m)return[i,l];if(!l)return e.replace(/\\(.)/g,"$1");var V=r.nocase?"i":"";try{var R=new RegExp("^"+i+"$",V)}catch(e){return new RegExp("$.")}return R._glob=e,R._src=i,R};var m={};h.makeRe=function(e,t){return new f(e,t||{}).makeRe()},f.prototype.makeRe=function(){if(this.regexp||!1===this.regexp)return this.regexp;var e=this.set;if(!e.length)return this.regexp=!1,this.regexp;var t=this.options,r=t.noglobstar?c:t.dot?"(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?":"(?:(?!(?:\\/|^)\\.).)*?",n=t.nocase?"i":"",i=e.map(function(e){return e.map(function(e){return e===o?r:"string"==typeof e?e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"):e._src}).join("\\/")}).join("|");i="^(?:"+i+")$",this.negate&&(i="^(?!"+i+").*$");try{this.regexp=new RegExp(i,n)}catch(e){this.regexp=!1}return this.regexp},h.match=function(e,t,r){var n=new f(t,r=r||{});return e=e.filter(function(e){return n.match(e)}),n.options.nonull&&!e.length&&e.push(t),e},f.prototype.match=function(e,t){if(this.debug("match",e,this.pattern),this.comment)return!1;if(this.empty)return""===e;if("/"===e&&t)return!0;var r=this.options;"/"!==n.sep&&(e=e.split(n.sep).join("/")),e=e.split(l),this.debug(this.pattern,"split",e);var o,i,s=this.set;for(this.debug(this.pattern,"set",s),i=e.length-1;i>=0&&!(o=e[i]);i--);for(i=0;i>> no match, partial?",e,h,t,f),h!==a))}if("string"==typeof l?(u=n.nocase?p.toLowerCase()===l.toLowerCase():p===l,this.debug("string match",l,p,u)):(u=p.match(l),this.debug("pattern match",l,p,u)),!u)return!1}if(i===a&&s===c)return!0;if(i===a)return r;if(s===c)return i===a-1&&""===e[i];throw new Error("wtf?")}},function(e,t,r){e.exports=b;var n=r(1),o=r(33),i=r(12),s=(i.Minimatch,r(69)),a=r(34).EventEmitter,c=r(0),u=r(14),l=r(11),p=r(67),h=r(32),f=(h.alphasort,h.alphasorti,h.setopts),d=h.ownProp,m=r(66),g=(r(4),h.childrenIgnored),y=h.isIgnored,v=r(30);function b(e,t,r){if("function"==typeof t&&(r=t,t={}),t||(t={}),t.sync){if(r)throw new TypeError("callback provided to sync glob");return p(e,t)}return new x(e,t,r)}b.sync=p;var w=b.GlobSync=p.GlobSync;function x(e,t,r){if("function"==typeof t&&(r=t,t=null),t&&t.sync){if(r)throw new TypeError("callback provided to sync glob");return new w(e,t)}if(!(this instanceof x))return new x(e,t,r);f(this,e,t),this._didRealPath=!1;var n=this.minimatch.set.length;this.matches=new Array(n),"function"==typeof r&&(r=v(r),this.on("error",r),this.on("end",function(e){r(null,e)}));var o=this;if(this._processing=0,this._emitQueue=[],this._processQueue=[],this.paused=!1,this.noprocess)return this;if(0===n)return a();for(var i=!0,s=0;s1)return!0;for(var o=0;othis.maxLength)return t();if(!this.stat&&d(this.cache,r)){var i=this.cache[r];if(Array.isArray(i)&&(i="DIR"),!o||"DIR"===i)return t(null,i);if(o&&"FILE"===i)return t()}var s=this.statCache[r];if(void 0!==s){if(!1===s)return t(null,s);var a=s.isDirectory()?"DIR":"FILE";return o&&"FILE"===a?t():t(null,a,s)}var c=this,u=m("stat\0"+r,function(o,i){if(i&&i.isSymbolicLink())return n.stat(r,function(n,o){n?c._stat2(e,r,null,i,t):c._stat2(e,r,n,o,t)});c._stat2(e,r,o,i,t)});u&&n.lstat(r,u)},x.prototype._stat2=function(e,t,r,n,o){if(r&&("ENOENT"===r.code||"ENOTDIR"===r.code))return this.statCache[t]=!1,o();var i="/"===e.slice(-1);if(this.statCache[t]=n,"/"===t.slice(-1)&&n&&!n.isDirectory())return o(null,!1,n);var s=!0;return n&&(s=n.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||s,i&&"FILE"===s?o():o(null,s,n)}},function(e,t){e.exports=require("assert")},function(e,t,r){"use strict";var n=r(16);e.exports=function(){return"function"==typeof Object.values?Object.values:n}},function(e,t,r){"use strict";var n=r(18),o=r(3),i=r(6).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=n.RequireObjectCoercible(e),r=[];for(var s in t)o(t,s)&&i(t,s)&&r.push(t[s]);return r}},function(e,t,r){"use strict";var n=r(19);e.exports=function(){return"function"==typeof Object.entries?Object.entries:n}},function(e,t,r){"use strict";e.exports=r(42)},function(e,t,r){"use strict";var n=r(18),o=r(3),i=r(6).call(Function.call,Object.prototype.propertyIsEnumerable);e.exports=function(e){var t=n.RequireObjectCoercible(e),r=[];for(var s in t)o(t,s)&&i(t,s)&&r.push([s,t[s]]);return r}},function(e,t,r){"use strict";var n=r(21);e.exports=function(){return Array.prototype.includes||n}},function(e,t,r){"use strict";var n=r(29),o=Number.isNaN||function(e){return e!=e},i=Number.isFinite||function(e){return"number"==typeof e&&global.isFinite(e)},s=Array.prototype.indexOf;e.exports=function(e){var t=arguments.length>1?n.ToInteger(arguments[1]):0;if(s&&!o(e)&&i(t)&&void 0!==e)return s.apply(this,arguments)>-1;var r=n.ToObject(this),a=n.ToLength(r.length);if(0===a)return!1;for(var c=t>=0?t:Math.max(0,a+t);c=0?r:r+t)}},function(e,t){e.exports=function(e){return e>=0?1:-1}},function(e,t){var r=Object.prototype.hasOwnProperty;e.exports=function(e,t){if(Object.assign)return Object.assign(e,t);for(var n in t)r.call(t,n)&&(e[n]=t[n]);return e}},function(e,t){var r=Number.isNaN||function(e){return e!=e};e.exports=Number.isFinite||function(e){return"number"==typeof e&&!r(e)&&e!==1/0&&e!==-1/0}},function(e,t){e.exports=Number.isNaN||function(e){return e!=e}},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,r){"use strict";var n=r(3),o=r(51),i=Object.prototype.toString,s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,a=r(26),c=r(25),u=Number.MAX_SAFE_INTEGER||Math.pow(2,53)-1,l=r(24),p=r(23),h=r(22),f=r(48),d=parseInt,m=r(6),g=m.call(Function.call,Array.prototype.slice),y=m.call(Function.call,String.prototype.slice),v=m.call(Function.call,RegExp.prototype.test,/^0b[01]+$/i),b=m.call(Function.call,RegExp.prototype.test,/^0o[0-7]+$/i),w=m.call(Function.call,RegExp.prototype.exec),x=["…","​","￾"].join(""),S=new RegExp("["+x+"]","g"),E=m.call(Function.call,RegExp.prototype.test,S),j=m.call(Function.call,RegExp.prototype.test,/^[-+]0x[0-9a-f]+$/i),O=["\t\n\v\f\r   ᠎    ","          \u2028","\u2029\ufeff"].join(""),P=new RegExp("(^["+O+"]+)|(["+O+"]+$)","g"),I=m.call(Function.call,String.prototype.replace),T=r(47),A=r(45),k=l(l({},T),{Call:function(e,t){var r=arguments.length>2?arguments[2]:[];if(!this.IsCallable(e))throw new TypeError(e+" is not a function");return e.apply(t,r)},ToPrimitive:o,ToNumber:function(e){var t=f(e)?e:o(e,Number);if("symbol"==typeof t)throw new TypeError("Cannot convert a Symbol value to a number");if("string"==typeof t){if(v(t))return this.ToNumber(d(y(t,2),2));if(b(t))return this.ToNumber(d(y(t,2),8));if(E(t)||j(t))return NaN;var r=I(t,P,"");if(r!==t)return this.ToNumber(r)}return Number(t)},ToInt16:function(e){var t=this.ToUint16(e);return t>=32768?t-65536:t},ToInt8:function(e){var t=this.ToUint8(e);return t>=128?t-256:t},ToUint8:function(e){var t=this.ToNumber(e);if(a(t)||0===t||!c(t))return 0;var r=p(t)*Math.floor(Math.abs(t));return h(r,256)},ToUint8Clamp:function(e){var t=this.ToNumber(e);if(a(t)||t<=0)return 0;if(t>=255)return 255;var r=Math.floor(e);return r+.5u?u:t},CanonicalNumericIndexString:function(e){if("[object String]"!==i.call(e))throw new TypeError("must be a string");if("-0"===e)return-0;var t=this.ToNumber(e);return this.SameValue(this.ToString(t),e)?t:void 0},RequireObjectCoercible:T.CheckObjectCoercible,IsArray:Array.isArray||function(e){return"[object Array]"===i.call(e)},IsConstructor:function(e){return"function"==typeof e&&!!e.prototype},IsExtensible:function(e){return!Object.preventExtensions||!f(e)&&Object.isExtensible(e)},IsInteger:function(e){if("number"!=typeof e||a(e)||!c(e))return!1;var t=Math.abs(e);return Math.floor(t)===t},IsPropertyKey:function(e){return"string"==typeof e||"symbol"==typeof e},IsRegExp:function(e){if(!e||"object"!=typeof e)return!1;if(s){var t=e[Symbol.match];if(void 0!==t)return T.ToBoolean(t)}return A(e)},SameValueZero:function(e,t){return e===t||a(e)&&a(t)},GetV:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return this.ToObject(e)[t]},GetMethod:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var r=this.GetV(e,t);if(null!=r){if(!this.IsCallable(r))throw new TypeError(t+"is not a function");return r}},Get:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");return e[t]},Type:function(e){return"symbol"==typeof e?"Symbol":T.Type(e)},SpeciesConstructor:function(e,t){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");var r=e.constructor;if(void 0===r)return t;if("Object"!==this.Type(r))throw new TypeError("O.constructor is not an Object");var n=s&&Symbol.species?r[Symbol.species]:void 0;if(null==n)return t;if(this.IsConstructor(n))return n;throw new TypeError("no constructor found")},CompletePropertyDescriptor:function(e){if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return this.IsGenericDescriptor(e)||this.IsDataDescriptor(e)?(n(e,"[[Value]]")||(e["[[Value]]"]=void 0),n(e,"[[Writable]]")||(e["[[Writable]]"]=!1)):(n(e,"[[Get]]")||(e["[[Get]]"]=void 0),n(e,"[[Set]]")||(e["[[Set]]"]=void 0)),n(e,"[[Enumerable]]")||(e["[[Enumerable]]"]=!1),n(e,"[[Configurable]]")||(e["[[Configurable]]"]=!1),e},Set:function(e,t,r,n){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");if("Boolean"!==this.Type(n))throw new TypeError("Throw must be a Boolean");if(n)return e[t]=r,!0;try{e[t]=r}catch(e){return!1}},HasOwnProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return n(e,t)},HasProperty:function(e,t){if("Object"!==this.Type(e))throw new TypeError("O must be an Object");if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");return t in e},IsConcatSpreadable:function(e){if("Object"!==this.Type(e))return!1;if(s&&"symbol"==typeof Symbol.isConcatSpreadable){var t=this.Get(e,Symbol.isConcatSpreadable);if(void 0!==t)return this.ToBoolean(t)}return this.IsArray(e)},Invoke:function(e,t){if(!this.IsPropertyKey(t))throw new TypeError("P must be a Property Key");var r=g(arguments,2),n=this.GetV(e,t);return this.Call(n,e,r)},CreateIterResultObject:function(e,t){if("Boolean"!==this.Type(t))throw new TypeError("Assertion failed: Type(done) is not Boolean");return{value:e,done:t}},RegExpExec:function(e,t){if("Object"!==this.Type(e))throw new TypeError("R must be an Object");if("String"!==this.Type(t))throw new TypeError("S must be a String");var r=this.Get(e,"exec");if(this.IsCallable(r)){var n=this.Call(r,e,[t]);if(null===n||"Object"===this.Type(n))return n;throw new TypeError('"exec" method must return `null` or an Object')}return w(e,t)},ArraySpeciesCreate:function(e,t){if(!this.IsInteger(t)||t<0)throw new TypeError("Assertion failed: length must be an integer >= 0");var r,n=0===t?0:t;if(this.IsArray(e)&&(r=this.Get(e,"constructor"),"Object"===this.Type(r)&&s&&Symbol.species&&null===(r=this.Get(r,Symbol.species))&&(r=void 0)),void 0===r)return Array(n);if(!this.IsConstructor(r))throw new TypeError("C must be a constructor");return new r(n)},CreateDataProperty:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=Object.getOwnPropertyDescriptor(e,t),o=n||"function"!=typeof Object.isExtensible||Object.isExtensible(e);if(n&&(!n.writable||!n.configurable)||!o)return!1;var i={configurable:!0,enumerable:!0,value:r,writable:!0};return Object.defineProperty(e,t,i),!0},CreateDataPropertyOrThrow:function(e,t,r){if("Object"!==this.Type(e))throw new TypeError("Assertion failed: Type(O) is not Object");if(!this.IsPropertyKey(t))throw new TypeError("Assertion failed: IsPropertyKey(P) is not true");var n=this.CreateDataProperty(e,t,r);if(!n)throw new TypeError("unable to create data property");return n},AdvanceStringIndex:function(e,t,r){if("String"!==this.Type(e))throw new TypeError("Assertion failed: Type(S) is not String");if(!this.IsInteger(t))throw new TypeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if(t<0||t>u)throw new RangeError("Assertion failed: length must be an integer >= 0 and <= (2**53 - 1)");if("Boolean"!==this.Type(r))throw new TypeError("Assertion failed: Type(unicode) is not Boolean");if(!r)return t+1;if(t+1>=e.length)return t+1;var n=e.charCodeAt(t);if(n<55296||n>56319)return t+1;var o=e.charCodeAt(t+1);return o<56320||o>57343?t+1:t+2}});delete k.CheckObjectCoercible,e.exports=k},function(e,t,r){"use strict";e.exports=r(28)},function(e,t,r){var n=r(31);function o(e){var t=function(){return t.called?t.value:(t.called=!0,t.value=e.apply(this,arguments))};return t.called=!1,t}function i(e){var t=function(){if(t.called)throw new Error(t.onceError);return t.called=!0,t.value=e.apply(this,arguments)},r=e.name||"Function wrapped with `once`";return t.onceError=r+" shouldn't be called more than once",t.called=!1,t}e.exports=n(o),e.exports.strict=n(i),o.proto=o(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return o(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return i(this)},configurable:!0})})},function(e,t){e.exports=function e(t,r){if(t&&r)return e(t)(r);if("function"!=typeof t)throw new TypeError("need wrapper function");return Object.keys(t).forEach(function(e){n[e]=t[e]}),n;function n(){for(var e=new Array(arguments.length),r=0;r&|;,"'\s])/g,"^$1")}},function(e,t,r){"use strict";e.exports=y;var n,o=r(104),i=r(4),s=r(102),a=(n="function"==typeof Symbol?function(e){return Symbol.for(e)}:function(e){return"_"+e})("max"),c=n("length"),u=n("lengthCalculator"),l=n("allowStale"),p=n("maxAge"),h=n("dispose"),f=n("noDisposeOnSet"),d=n("lruList"),m=n("cache");function g(){return 1}function y(e){if(!(this instanceof y))return new y(e);"number"==typeof e&&(e={max:e}),e||(e={});var t=this[a]=e.max;(!t||"number"!=typeof t||t<=0)&&(this[a]=1/0);var r=e.length||g;"function"!=typeof r&&(r=g),this[u]=r,this[l]=e.stale||!1,this[p]=e.maxAge||0,this[h]=e.dispose,this[f]=e.noDisposeOnSet||!1,this.reset()}function v(e,t,r,n){var o=r.value;w(e,o)&&(S(e,r),e[l]||(o=void 0)),o&&t.call(n,o.value,o.key,e)}function b(e,t,r){var n=e[m].get(t);if(n){var o=n.value;w(e,o)?(S(e,n),e[l]||(o=void 0)):r&&e[d].unshiftNode(n),o&&(o=o.value)}return o}function w(e,t){if(!t||!t.maxAge&&!e[p])return!1;var r=Date.now()-t.now;return t.maxAge?r>t.maxAge:e[p]&&r>e[p]}function x(e){if(e[c]>e[a])for(var t=e[d].tail;e[c]>e[a]&&null!==t;){var r=t.prev;S(e,t),t=r}}function S(e,t){if(t){var r=t.value;e[h]&&e[h](r.key,r.value),e[c]-=r.length,e[m].delete(r.key),e[d].removeNode(t)}}Object.defineProperty(y.prototype,"max",{set:function(e){(!e||"number"!=typeof e||e<=0)&&(e=1/0),this[a]=e,x(this)},get:function(){return this[a]},enumerable:!0}),Object.defineProperty(y.prototype,"allowStale",{set:function(e){this[l]=!!e},get:function(){return this[l]},enumerable:!0}),Object.defineProperty(y.prototype,"maxAge",{set:function(e){(!e||"number"!=typeof e||e<0)&&(e=0),this[p]=e,x(this)},get:function(){return this[p]},enumerable:!0}),Object.defineProperty(y.prototype,"lengthCalculator",{set:function(e){"function"!=typeof e&&(e=g),e!==this[u]&&(this[u]=e,this[c]=0,this[d].forEach(function(e){e.length=this[u](e.value,e.key),this[c]+=e.length},this)),x(this)},get:function(){return this[u]},enumerable:!0}),Object.defineProperty(y.prototype,"length",{get:function(){return this[c]},enumerable:!0}),Object.defineProperty(y.prototype,"itemCount",{get:function(){return this[d].length},enumerable:!0}),y.prototype.rforEach=function(e,t){t=t||this;for(var r=this[d].tail;null!==r;){var n=r.prev;v(this,e,r,t),r=n}},y.prototype.forEach=function(e,t){t=t||this;for(var r=this[d].head;null!==r;){var n=r.next;v(this,e,r,t),r=n}},y.prototype.keys=function(){return this[d].toArray().map(function(e){return e.key},this)},y.prototype.values=function(){return this[d].toArray().map(function(e){return e.value},this)},y.prototype.reset=function(){this[h]&&this[d]&&this[d].length&&this[d].forEach(function(e){this[h](e.key,e.value)},this),this[m]=new o,this[d]=new s,this[c]=0},y.prototype.dump=function(){return this[d].map(function(e){if(!w(this,e))return{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}},this).toArray().filter(function(e){return e})},y.prototype.dumpLru=function(){return this[d]},y.prototype.inspect=function(e,t){var r="LRUCache {",n=!1;this[l]&&(r+="\n allowStale: true",n=!0);var o=this[a];o&&o!==1/0&&(n&&(r+=","),r+="\n max: "+i.inspect(o,t),n=!0);var s=this[p];s&&(n&&(r+=","),r+="\n maxAge: "+i.inspect(s,t),n=!0);var h=this[u];h&&h!==g&&(n&&(r+=","),r+="\n length: "+i.inspect(this[c],t),n=!0);var f=!1;return this[d].forEach(function(e){f?r+=",\n ":(n&&(r+=",\n"),f=!0,r+="\n ");var o=i.inspect(e.key).split("\n").join("\n "),a={value:e.value};e.maxAge!==s&&(a.maxAge=e.maxAge),h!==g&&(a.length=e.length),w(this,e)&&(a.stale=!0),a=i.inspect(a,t).split("\n").join("\n "),r+=o+" => "+a}),(f||n)&&(r+="\n"),r+="}"},y.prototype.set=function(e,t,r){var n=(r=r||this[p])?Date.now():0,o=this[u](t,e);if(this[m].has(e)){if(o>this[a])return S(this,this[m].get(e)),!1;var i=this[m].get(e).value;return this[h]&&(this[f]||this[h](e,i.value)),i.now=n,i.maxAge=r,i.value=t,this[c]+=o-i.length,i.length=o,this.get(e),x(this),!0}var s=new function(e,t,r,n,o){this.key=e,this.value=t,this.length=r,this.now=n,this.maxAge=o||0}(e,t,o,n,r);return s.length>this[a]?(this[h]&&this[h](e,t),!1):(this[c]+=s.length,this[d].unshift(s),this[m].set(e,this[d].head),x(this),!0)},y.prototype.has=function(e){return!!this[m].has(e)&&!w(this,this[m].get(e).value)},y.prototype.get=function(e){return b(this,e,!0)},y.prototype.peek=function(e){return b(this,e,!1)},y.prototype.pop=function(){var e=this[d].tail;return e?(S(this,e),e.value):null},y.prototype.del=function(e){S(this,this[m].get(e))},y.prototype.load=function(e){this.reset();for(var t=Date.now(),r=e.length-1;r>=0;r--){var n=e[r],o=n.e||0;if(0===o)this.set(n.k,n.v);else{var i=o-t;i>0&&this.set(n.k,n.v,i)}}},y.prototype.prune=function(){var e=this;this[m].forEach(function(t,r){b(e,r,!1)})}},function(e,t,r){e.exports=u,u.sync=function(e,t){for(var r=c(e,t=t||{}),n=r.env,i=r.ext,u=r.extExe,l=[],p=0,h=n.length;p>0},ToUint32:function(e){return this.ToNumber(e)>>>0},ToUint16:function(e){var t=this.ToNumber(e);if(n(t)||0===t||!o(t))return 0;var r=i(t)*Math.floor(Math.abs(t));return s(r,65536)},ToString:function(e){return String(e)},ToObject:function(e){return this.CheckObjectCoercible(e),Object(e)},CheckObjectCoercible:function(e,t){if(null==e)throw new TypeError(t||"Cannot call method on "+e);return e},IsCallable:a,SameValue:function(e,t){return e===t?0!==e||1/e==1/t:n(e)&&n(t)},Type:function(e){return null===e?"Null":void 0===e?"Undefined":"function"==typeof e||"object"==typeof e?"Object":"number"==typeof e?"Number":"boolean"==typeof e?"Boolean":"string"==typeof e?"String":void 0},IsPropertyDescriptor:function(e){if("Object"!==this.Type(e))return!1;var t={"[[Configurable]]":!0,"[[Enumerable]]":!0,"[[Get]]":!0,"[[Set]]":!0,"[[Value]]":!0,"[[Writable]]":!0};for(var r in e)if(u(e,r)&&!t[r])return!1;var n=u(e,"[[Value]]"),o=u(e,"[[Get]]")||u(e,"[[Set]]");if(n&&o)throw new TypeError("Property Descriptors may not be both accessor and data descriptors");return!0},IsAccessorDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Get]]")&&!u(e,"[[Set]]"))},IsDataDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!(!u(e,"[[Value]]")&&!u(e,"[[Writable]]"))},IsGenericDescriptor:function(e){if(void 0===e)return!1;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");return!this.IsAccessorDescriptor(e)&&!this.IsDataDescriptor(e)},FromPropertyDescriptor:function(e){if(void 0===e)return e;if(!this.IsPropertyDescriptor(e))throw new TypeError("Desc must be a Property Descriptor");if(this.IsDataDescriptor(e))return{value:e["[[Value]]"],writable:!!e["[[Writable]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};if(this.IsAccessorDescriptor(e))return{get:e["[[Get]]"],set:e["[[Set]]"],enumerable:!!e["[[Enumerable]]"],configurable:!!e["[[Configurable]]"]};throw new TypeError("FromPropertyDescriptor must be called with a fully populated Property Descriptor")},ToPropertyDescriptor:function(e){if("Object"!==this.Type(e))throw new TypeError("ToPropertyDescriptor requires an object");var t={};if(u(e,"enumerable")&&(t["[[Enumerable]]"]=this.ToBoolean(e.enumerable)),u(e,"configurable")&&(t["[[Configurable]]"]=this.ToBoolean(e.configurable)),u(e,"value")&&(t["[[Value]]"]=e.value),u(e,"writable")&&(t["[[Writable]]"]=this.ToBoolean(e.writable)),u(e,"get")){var r=e.get;if(void 0!==r&&!this.IsCallable(r))throw new TypeError("getter must be a function");t["[[Get]]"]=r}if(u(e,"set")){var n=e.set;if(void 0!==n&&!this.IsCallable(n))throw new TypeError("setter must be a function");t["[[Set]]"]=n}if((u(t,"[[Get]]")||u(t,"[[Set]]"))&&(u(t,"[[Value]]")||u(t,"[[Writable]]")))throw new TypeError("Invalid property descriptor. Cannot both specify accessors and a value or writable attribute");return t}};e.exports=l},function(e,t){e.exports=function(e){return null===e||"function"!=typeof e&&"object"!=typeof e}},function(e,t,r){"use strict";var n=Object.prototype.toString;if("function"==typeof Symbol&&"symbol"==typeof Symbol()){var o=Symbol.prototype.toString,i=/^Symbol\(.*\)$/;e.exports=function(e){if("symbol"==typeof e)return!0;if("[object Symbol]"!==n.call(e))return!1;try{return function(e){return"symbol"==typeof e.valueOf()&&i.test(o.call(e))}(e)}catch(e){return!1}}}else e.exports=function(e){return!1}},function(e,t,r){"use strict";var n=Date.prototype.getDay,o=Object.prototype.toString,i="function"==typeof Symbol&&"symbol"==typeof Symbol.toStringTag;e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return n.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},function(e,t,r){"use strict";var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator,o=r(27),i=r(10),s=r(50),a=r(49);e.exports=function(e,t){if(o(e))return e;var r,c="default";if(arguments.length>1&&(t===String?c="string":t===Number&&(c="number")),n&&(Symbol.toPrimitive?r=function(e,t){var r=e[t];if(null!==r&&void 0!==r){if(!i(r))throw new TypeError(r+" returned for property "+t+" of object "+e+" is not a function");return r}}(e,Symbol.toPrimitive):a(e)&&(r=Symbol.prototype.valueOf)),void 0!==r){var u=r.call(e,c);if(o(u))return u;throw new TypeError("unable to convert exotic object to primitive")}return"default"===c&&(s(e)||a(e))&&(c="string"),function(e,t){if(void 0===e||null===e)throw new TypeError("Cannot call method on "+e);if("string"!=typeof t||"number"!==t&&"string"!==t)throw new TypeError('hint must be "string" or "number"');var r,n,s,a="string"===t?["toString","valueOf"]:["valueOf","toString"];for(s=0;s=0&&"[object Function]"===n.call(e.callee)),r}},function(e,t,r){"use strict";var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=Array.prototype.slice,s=r(54),a=Object.prototype.propertyIsEnumerable,c=!a.call({toString:null},"toString"),u=a.call(function(){},"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},h={$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!h["$"+e]&&n.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}(),d=function(e){var t=null!==e&&"object"==typeof e,r="[object Function]"===o.call(e),i=s(e),a=t&&"[object String]"===o.call(e),h=[];if(!t&&!r&&!i)throw new TypeError("Object.keys called on a non-object");var d=u&&r;if(a&&e.length>0&&!n.call(e,0))for(var m=0;m0)for(var g=0;g0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:" ",r="",n=0;n0&&void 0!==arguments[0]?arguments[0]:{};return{indent:s(e.indent," "),prefix:s(e.prefix,"\n"),postfix:s(e.postfix,""),errorToString:e.errorToString||n,dateToString:e.dateToString||o,colors:Object.assign({},i,e.colors)}}},function(e,t,r){"use strict";e.exports=function(e){return Array.isArray(e)?"array":e instanceof Date?"date":e instanceof Error?"error":null===e?"null":"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)?"object":typeof e}},function(e,t,r){"use strict";var n=r(63),o=r(62),i=r(58),s=["object","array"];e.exports=function(e,t){var r=o(t),a=r.colors,c=r.prefix,u=r.postfix,l=r.dateToString,p=r.errorToString,h=r.indent;function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===Object.keys(e).length)return" {}";var o="\n",a=i(t,h);return Object.keys(e).forEach(function(c){var u=e[c],l=n(u),p=i(r," "),h=-1!==s.indexOf(l)?"":" ",f=m(l,u,t+1,r);o+=`${p}${a}${c}:${h}${f}\n`}),o.substring(0,o.length-1)}function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(0===e.length)return" []";var o="\n",s=i(t,h);return e.forEach(function(e){var a=n(e),c=i(r," "),u=m(a,e,t,r+1).toString().trimLeft();o+=`${c}${s}- ${u}\n`}),o.substring(0,o.length-1)}function m(e,t,r,n){switch(e){case"array":return d(t,r,n);case"object":return f(t,r,n);case"string":return a.string(t);case"symbol":return a.symbol(t.toString());case"number":return a.number(t);case"boolean":return a.boolean(t);case"null":return a.null("null");case"undefined":return a.undefined("undefined");case"date":return a.date(l(t));case"error":return a.error(p(t));default:return t&&t.toString?t.toString():Object.prototype.toString.call(t)}}var g="";return"object"===n(e)&&Object.keys(e).length>0?g=f(e):"array"===n(e)&&e.length>0&&(g=d(e)),0===g.length?"":`${c}${g.slice(1)}${u}`}},function(e,t,r){const n=r(64),o=r(7);function i(e,t){return o.log("trace","clean",e),Object.keys(e).reduce((r,n)=>!t.showNotFound&&"Not Found"===e[n]||"N/A"===e[n]||void 0===e[n]||0===Object.keys(e[n]).length?r:o.isObject(e[n])?Object.values(e[n]).every(e=>"N/A"===e||!t.showNotFound&&"Not Found"===e)?r:Object.assign(r,{[n]:i(e[n],t)}):Object.assign(r,{[n]:e[n]}),{})}function s(e,t){o.log("trace","formatHeaders"),t||(t={type:"underline"});const r={underline:["",""]};return e.slice().split("\n").map(e=>{if(":"===e.slice("-1")){const n=e.match(/^[\s]*/g)[0];return`${n}${r[t.type][0]}${e.slice(n.length)}${r[t.type][1]}`}return e}).join("\n")}function a(e){return o.log("trace","formatPackages"),e.npmPackages?Object.assign(e,{npmPackages:Object.entries(e.npmPackages||{}).reduce((e,t)=>{const r=t[0],n=t[1];if("Not Found"===n)return Object.assign(e,{[r]:n});const o=n.wanted?`${n.wanted} =>`:"",i=Array.isArray(n.installed)?n.installed.join(", "):n.installed,s=n.duplicates?`(${n.duplicates.join(", ")})`:"";return Object.assign(e,{[r]:`${o} ${i} ${s}`})},{})}):e}function c(e,t,r){return r||(r={emptyMessage:"None"}),Array.isArray(t)&&(t=t.length>0?t.join(", "):r.emptyMessage),{[e]:t}}function u(e){return o.log("trace","serializeArrays"),function e(t,r){return Object.entries(t).reduce((t,n)=>{const i=n[0],s=n[1];return o.isObject(s)?Object.assign(t,{[i]:e(s,r)}):Object.assign(t,r(i,s))},{})}(e,c)}function l(e){return o.log("trace","serializeVersionsAndPaths"),Object.entries(e).reduce((e,t)=>Object.assign(e,{[t[0]]:Object.entries(t[1]).reduce((e,t)=>{const r=t[0],n=t[1];return n.version?Object.assign(e,{[r]:[n.version,n.path].filter(Boolean).join(" - ")}):Object.assign(e,{[r]:n})},{})},{}),{})}function p(e){return n(e,{indent:" ",prefix:"\n",postfix:"\n"})}function h(e){return e.slice().split("\n").map(e=>{if(""!==e){const t=":"===e.slice("-1"),r=e.search(/\S|$/);return t?`${"#".repeat(r/2+1)} `+e.slice(r):" - "+e.slice(r)}return""}).join("\n")}function f(e,t){return t||(t={indent:" "}),JSON.stringify(e,null,t.indent)}e.exports={json:function(e,t){return o.log("trace","formatToJson"),t||(t={}),e=o.pipe([()=>i(e,t),t.title?e=>({[t.title]:e}):o.noop,f])(e),e=t.console?`\n${e}\n`:e},markdown:function(e,t){return o.log("trace","formatToMarkdown"),o.pipe([()=>i(e,t),a,u,l,p,h,t.title?e=>`\n# ${t.title}${e}`:o.noop])(e,t)},yaml:function(e,t){return o.log("trace","formatToYaml",t),o.pipe([()=>i(e,t),a,u,l,t.title?e=>({[t.title]:e}):o.noop,p,t.console?s:o.noop])(e,t)}}},function(e,t,r){var n=r(31),o=Object.create(null),i=r(30);e.exports=n(function(e,t){return o[e]?(o[e].push(t),null):(o[e]=[t],function(e){return i(function t(){var r=o[e],n=r.length,i=function(e){for(var t=e.length,r=[],n=0;nn?(r.splice(0,n),process.nextTick(function(){t.apply(null,i)})):delete o[e]}})}(e))})},function(e,t,r){e.exports=d,d.GlobSync=m;var n=r(1),o=r(33),i=r(12),s=(i.Minimatch,r(13).Glob,r(4),r(0)),a=r(14),c=r(11),u=r(32),l=(u.alphasort,u.alphasorti,u.setopts),p=u.ownProp,h=u.childrenIgnored,f=u.isIgnored;function d(e,t){if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");return new m(e,t).found}function m(e,t){if(!e)throw new Error("must provide pattern");if("function"==typeof t||3===arguments.length)throw new TypeError("callback provided to sync glob\nSee: https://github.com/isaacs/node-glob/issues/167");if(!(this instanceof m))return new m(e,t);if(l(this,e,t),this.noprocess)return this;var r=this.minimatch.set.length;this.matches=new Array(r);for(var n=0;nthis.maxLength)return!1;if(!this.stat&&p(this.cache,t)){var o=this.cache[t];if(Array.isArray(o)&&(o="DIR"),!r||"DIR"===o)return o;if(r&&"FILE"===o)return!1}var i=this.statCache[t];if(!i){var s;try{s=n.lstatSync(t)}catch(e){if(e&&("ENOENT"===e.code||"ENOTDIR"===e.code))return this.statCache[t]=!1,!1}if(s&&s.isSymbolicLink())try{i=n.statSync(t)}catch(e){i=s}else i=s}return this.statCache[t]=i,o=!0,i&&(o=i.isDirectory()?"DIR":"FILE"),this.cache[t]=this.cache[t]||o,(!r||"FILE"!==o)&&o},m.prototype._mark=function(e){return u.mark(this,e)},m.prototype._makeAbs=function(e){return u.makeAbs(this,e)}},function(e,t){"function"==typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}},function(e,t,r){try{var n=r(4);if("function"!=typeof n.inherits)throw"";e.exports=n.inherits}catch(t){e.exports=r(68)}},function(e,t,r){"use strict";function n(e,t,r){e instanceof RegExp&&(e=o(e,r)),t instanceof RegExp&&(t=o(t,r));var n=i(e,t,r);return n&&{start:n[0],end:n[1],pre:r.slice(0,n[0]),body:r.slice(n[0]+e.length,n[1]),post:r.slice(n[1]+t.length)}}function o(e,t){var r=t.match(e);return r?r[0]:null}function i(e,t,r){var n,o,i,s,a,c=r.indexOf(e),u=r.indexOf(t,c+1),l=c;if(c>=0&&u>0){for(n=[],i=r.length;l>=0&&!a;)l==c?(n.push(l),c=r.indexOf(e,l+1)):1==n.length?a=[n.pop(),u]:((o=n.pop())=0?c:u;n.length&&(a=[i,s])}return a}e.exports=n,n.range=i},function(e,t){e.exports=function(e,t){for(var n=[],o=0;o=0;if(!g&&!y)return s.post.match(/,.*\}/)?(t=s.pre+"{"+s.body+a+s.post,e(t)):[t];if(g)c=s.body.split(/\.\./);else if(1===(c=function e(t){if(!t)return[""];var r=[],n=o("{","}",t);if(!n)return t.split(",");var i=n.pre,s=n.body,a=n.post,c=i.split(",");c[c.length-1]+="{"+s+"}";var u=e(a);return a.length&&(c[c.length-1]+=u.shift(),c.push.apply(c,u)),r.push.apply(r,c),r}(s.body)).length&&1===(c=e(c[0],!1).map(h)).length){return(w=s.post.length?e(s.post,!1):[""]).map(function(e){return s.pre+c[0]+e})}var v,b=s.pre,w=s.post.length?e(s.post,!1):[""];if(g){var x=l(c[0]),S=l(c[1]),E=Math.max(c[0].length,c[1].length),j=3==c.length?Math.abs(l(c[2])):1,O=d;S0){var k=new Array(A+1).join("0");T=I<0?"-"+k+T.slice(1):k+T}}v.push(T)}}else v=n(c,function(t){return e(t,!1)});for(var _=0;_=t}},function(e,t,r){var n=r(0),o="win32"===process.platform,i=r(1),s=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function a(e){return"function"==typeof e?e:function(){var e;if(s){var t=new Error;e=function(e){e&&(t.message=e.message,r(e=t))}}else e=r;return e;function r(e){if(e){if(process.throwDeprecation)throw e;if(!process.noDeprecation){var t="fs: missing callback "+(e.stack||e.message);process.traceDeprecation?console.trace(t):console.error(t)}}}}()}if(n.normalize,o)var c=/(.*?)(?:[\/\\]+|$)/g;else c=/(.*?)(?:[\/]+|$)/g;if(o)var u=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/;else u=/^[\/]*/;t.realpathSync=function(e,t){if(e=n.resolve(e),t&&Object.prototype.hasOwnProperty.call(t,e))return t[e];var r,s,a,l,p=e,h={},f={};function d(){var t=u.exec(e);r=t[0].length,s=t[0],a=t[0],l="",o&&!f[a]&&(i.lstatSync(a),f[a]=!0)}for(d();r=e.length)return t&&(t[f]=e),r(null,e);c.lastIndex=s;var n=c.exec(e);return h=l,l+=n[0],p=h+n[1],s=c.lastIndex,m[p]||t&&t[p]===p?process.nextTick(y):t&&Object.prototype.hasOwnProperty.call(t,p)?w(t[p]):i.lstat(p,v)}function v(e,n){if(e)return r(e);if(!n.isSymbolicLink())return m[p]=!0,t&&(t[p]=p),process.nextTick(y);if(!o){var s=n.dev.toString(32)+":"+n.ino.toString(32);if(d.hasOwnProperty(s))return b(null,d[s],p)}i.stat(p,function(e){if(e)return r(e);i.readlink(p,function(e,t){o||(d[s]=t),b(e,t)})})}function b(e,o,i){if(e)return r(e);var s=n.resolve(h,o);t&&(t[i]=s),w(s)}function w(t){e=n.resolve(t,e.slice(s)),g()}g()}},function(e,t,r){const n=r(13),o=r(0),i=r(7);e.exports={getnpmPackages:function(e,t){i.log("trace","getnpmPackages"),t||(t={});let r=null,n=null;return"string"==typeof e&&(e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(",")),Promise.all(["npmPackages",i.getPackageJsonByPath("package.json").then(e=>Object.assign({},(e||{}).devDependencies||{},(e||{}).dependencies||{})).then(e=>(n=e,t.fullTree||t.duplicates||r?i.getAllPackageJsonPaths(r):Promise.resolve(Object.keys(e||[]).map(e=>o.join("node_modules",e,"package.json"))))).then(o=>!r&&"boolean"!=typeof e||t.fullTree?Array.isArray(e)?Promise.resolve((o||[]).filter(t=>e.includes(t.split("/").slice(-2)[0]))):Promise.resolve(o):Promise.resolve((o||[]).filter(e=>Object.keys(n||[]).includes(e.split("/").slice(-2)[0])))).then(e=>Promise.all([e,Promise.all(e.map(e=>i.getPackageJsonByPath(e)))])).then(e=>{const r=e[0];return e[1].reduce((e,o,s)=>o&&o.name?(e[o.name]||(e[o.name]={}),t.duplicates&&e[o.name].installed&&e[o.name].installed!==o.version&&i.uniq(e[o.name].duplicates=(e[o.name].duplicates||[]).concat(o.version)),1===(r[s].match(/node_modules/g)||[]).length&&(e[o.name].installed=o.version),n[o.name]&&(e[o.name].wanted=n[o.name]),e):e,{})}).then(r=>(t.showNotFound&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r)).then(e=>i.sortObject(e))])},getnpmGlobalPackages:function(e,t){i.log("trace","getnpmGlobalPackages",e);let r=null;return"string"==typeof e?e.includes("*")||e.includes("?")||e.includes("+")||e.includes("!")?r=e:e=e.split(","):Array.isArray(e)||(e=!0),Promise.all(["npmGlobalPackages",i.run("npm get prefix --global").then(e=>new Promise((t,i)=>n(o.join(e,"lib","node_modules",r||"*","package.json"),(e,r)=>{e||t(r),i(e)}))).then(t=>Promise.all(t.filter(t=>"boolean"==typeof e||null!==r||e.includes(t.split("/").slice(-2)[0])).map(e=>i.getPackageJsonByFullPath(e)))).then(e=>e.reduce((e,t)=>t?Object.assign(e,{[t.name]:t.version}):e,{})).then(r=>(t.showNotFound&&e.forEach(e=>{r[e]||(r[e]="Not Found")}),r))])}}},function(e,t){var r;t=e.exports=J,r="object"==typeof process&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var n=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,i=t.re=[],s=t.src=[],a=0,c=a++;s[c]="0|[1-9]\\d*";var u=a++;s[u]="[0-9]+";var l=a++;s[l]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=a++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var h=a++;s[h]="("+s[u]+")\\.("+s[u]+")\\.("+s[u]+")";var f=a++;s[f]="(?:"+s[c]+"|"+s[l]+")";var d=a++;s[d]="(?:"+s[u]+"|"+s[l]+")";var m=a++;s[m]="(?:-("+s[f]+"(?:\\."+s[f]+")*))";var g=a++;s[g]="(?:-?("+s[d]+"(?:\\."+s[d]+")*))";var y=a++;s[y]="[0-9A-Za-z-]+";var v=a++;s[v]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var b=a++,w="v?"+s[p]+s[m]+"?"+s[v]+"?";s[b]="^"+w+"$";var x="[v=\\s]*"+s[h]+s[g]+"?"+s[v]+"?",S=a++;s[S]="^"+x+"$";var E=a++;s[E]="((?:<|>)?=?)";var j=a++;s[j]=s[u]+"|x|X|\\*";var O=a++;s[O]=s[c]+"|x|X|\\*";var P=a++;s[P]="[v=\\s]*("+s[O]+")(?:\\.("+s[O]+")(?:\\.("+s[O]+")(?:"+s[m]+")?"+s[v]+"?)?)?";var I=a++;s[I]="[v=\\s]*("+s[j]+")(?:\\.("+s[j]+")(?:\\.("+s[j]+")(?:"+s[g]+")?"+s[v]+"?)?)?";var T=a++;s[T]="^"+s[E]+"\\s*"+s[P]+"$";var A=a++;s[A]="^"+s[E]+"\\s*"+s[I]+"$";var k=a++;s[k]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=a++;s[_]="(?:~>?)";var C=a++;s[C]="(\\s*)"+s[_]+"\\s+",i[C]=new RegExp(s[C],"g");var N=a++;s[N]="^"+s[_]+s[P]+"$";var F=a++;s[F]="^"+s[_]+s[I]+"$";var D=a++;s[D]="(?:\\^)";var $=a++;s[$]="(\\s*)"+s[D]+"\\s+",i[$]=new RegExp(s[$],"g");var M=a++;s[M]="^"+s[D]+s[P]+"$";var B=a++;s[B]="^"+s[D]+s[I]+"$";var V=a++;s[V]="^"+s[E]+"\\s*("+x+")$|^$";var R=a++;s[R]="^"+s[E]+"\\s*("+w+")$|^$";var G=a++;s[G]="(\\s*)"+s[E]+"\\s*("+x+"|"+s[P]+")",i[G]=new RegExp(s[G],"g");var L=a++;s[L]="^\\s*("+s[P]+")\\s+-\\s+("+s[P]+")\\s*$";var U=a++;s[U]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var K=a++;s[K]="(<|>)?=?\\s*\\*";for(var q=0;qn)return null;if(!(t?i[S]:i[b]).test(e))return null;try{return new J(e,t)}catch(e){return null}}function J(e,t){if(e instanceof J){if(e.loose===t)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>n)throw new TypeError("version is longer than "+n+" characters");if(!(this instanceof J))return new J(e,t);r("SemVer",e,t),this.loose=t;var s=e.trim().match(t?i[S]:i[b]);if(!s)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+s[1],this.minor=+s[2],this.patch=+s[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");s[4]?this.prerelease=s[4].split(".").map(function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);-1===r&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,r,n){"string"==typeof r&&(n=r,r=void 0);try{return new J(e,r).inc(t,n).version}catch(e){return null}},t.diff=function(e,t){if(Z(e,t))return null;var r=W(e),n=W(t);if(r.prerelease.length||n.prerelease.length){for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return"pre"+o;return"prerelease"}for(var o in r)if(("major"===o||"minor"===o||"patch"===o)&&r[o]!==n[o])return o},t.compareIdentifiers=Y;var H=/^[0-9]+$/;function Y(e,t){var r=H.test(e),n=H.test(t);return r&&n&&(e=+e,t=+t),r&&!n?-1:n&&!r?1:et?1:0}function Q(e,t,r){return new J(e,r).compare(new J(t,r))}function X(e,t,r){return Q(e,t,r)>0}function z(e,t,r){return Q(e,t,r)<0}function Z(e,t,r){return 0===Q(e,t,r)}function ee(e,t,r){return 0!==Q(e,t,r)}function te(e,t,r){return Q(e,t,r)>=0}function re(e,t,r){return Q(e,t,r)<=0}function ne(e,t,r,n){var o;switch(t){case"===":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e===r;break;case"!==":"object"==typeof e&&(e=e.version),"object"==typeof r&&(r=r.version),o=e!==r;break;case"":case"=":case"==":o=Z(e,r,n);break;case"!=":o=ee(e,r,n);break;case">":o=X(e,r,n);break;case">=":o=te(e,r,n);break;case"<":o=z(e,r,n);break;case"<=":o=re(e,r,n);break;default:throw new TypeError("Invalid operator: "+t)}return o}function oe(e,t){if(e instanceof oe){if(e.loose===t)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.loose=t,this.parse(e),this.semver===ie?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return Y(t,e)},t.major=function(e,t){return new J(e,t).major},t.minor=function(e,t){return new J(e,t).minor},t.patch=function(e,t){return new J(e,t).patch},t.compare=Q,t.compareLoose=function(e,t){return Q(e,t,!0)},t.rcompare=function(e,t,r){return Q(t,e,r)},t.sort=function(e,r){return e.sort(function(e,n){return t.compare(e,n,r)})},t.rsort=function(e,r){return e.sort(function(e,n){return t.rcompare(e,n,r)})},t.gt=X,t.lt=z,t.eq=Z,t.neq=ee,t.gte=te,t.lte=re,t.cmp=ne,t.Comparator=oe;var ie={};function se(e,t){if(e instanceof se)return e.loose===t?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.loose=t,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map(function(e){return this.parseRange(e.trim())},this).filter(function(e){return e.length}),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ae(e){return!e||"x"===e.toLowerCase()||"*"===e}function ce(e,t,r,n,o,i,s,a,c,u,l,p,h){return((t=ae(r)?"":ae(n)?">="+r+".0.0":ae(o)?">="+r+"."+n+".0":">="+t)+" "+(a=ae(c)?"":ae(u)?"<"+(+c+1)+".0.0":ae(l)?"<"+c+"."+(+u+1)+".0":p?"<="+c+"."+u+"."+l+"-"+p:"<="+a)).trim()}function ue(e,t){for(var n=0;n0){var o=e[n].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function le(e,t,r){try{t=new se(t,r)}catch(e){return!1}return t.test(e)}function pe(e,t,r,n){var o,i,s,a,c;switch(e=new J(e,n),t=new se(t,n),r){case">":o=X,i=re,s=z,a=">",c=">=";break;case"<":o=z,i=te,s=X,a="<",c="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(le(e,t,n))return!1;for(var u=0;u=0.0.0")),l=l||e,p=p||e,o(e.semver,l.semver,n)?l=e:s(e.semver,p.semver,n)&&(p=e)}),l.operator===a||l.operator===c)return!1;if((!p.operator||p.operator===a)&&i(e,p.semver))return!1;if(p.operator===c&&s(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.loose?i[V]:i[R],r=e.match(t);if(!r)throw new TypeError("Invalid comparator: "+e);this.operator=r[1],"="===this.operator&&(this.operator=""),r[2]?this.semver=new J(r[2],this.loose):this.semver=ie},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){return r("Comparator.test",e,this.loose),this.semver===ie||("string"==typeof e&&(e=new J(e,this.loose)),ne(e,this.operator,this.semver,this.loose))},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var r;if(""===this.operator)return r=new se(e.value,t),le(this.value,r,t);if(""===e.operator)return r=new se(this.value,t),le(e.semver,r,t);var n=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),o=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),i=this.semver.version===e.semver.version,s=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),a=ne(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),c=ne(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return n||o||i&&s||a||c},t.Range=se,se.prototype.format=function(){return this.range=this.set.map(function(e){return e.join(" ").trim()}).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.loose;e=e.trim(),r("range",e,t);var n=t?i[U]:i[L];e=e.replace(n,ce),r("hyphen replace",e),e=e.replace(i[G],"$1$2$3"),r("comparator trim",e,i[G]),e=(e=(e=e.replace(i[C],"$1~")).replace(i[$],"$1^")).split(/\s+/).join(" ");var o=t?i[V]:i[R],s=e.split(" ").map(function(e){return function(e,t){return r("comp",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){r("caret",e,t);var n=t?i[B]:i[M];return e.replace(n,function(t,n,o,i,s){var a;return r("caret",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a="0"===n?">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":">="+n+"."+o+".0 <"+(+n+1)+".0.0":s?(r("replaceCaret pr",s),"-"!==s.charAt(0)&&(s="-"+s),a="0"===n?"0"===o?">="+n+"."+o+"."+i+s+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+s+" <"+(+n+1)+".0.0"):(r("no pr"),a="0"===n?"0"===o?">="+n+"."+o+"."+i+" <"+n+"."+o+"."+(+i+1):">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0":">="+n+"."+o+"."+i+" <"+(+n+1)+".0.0"),r("caret return",a),a})}(e,t)}).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map(function(e){return function(e,t){var n=t?i[F]:i[N];return e.replace(n,function(t,n,o,i,s){var a;return r("tilde",e,t,n,o,i,s),ae(n)?a="":ae(o)?a=">="+n+".0.0 <"+(+n+1)+".0.0":ae(i)?a=">="+n+"."+o+".0 <"+n+"."+(+o+1)+".0":s?(r("replaceTilde pr",s),"-"!==s.charAt(0)&&(s="-"+s),a=">="+n+"."+o+"."+i+s+" <"+n+"."+(+o+1)+".0"):a=">="+n+"."+o+"."+i+" <"+n+"."+(+o+1)+".0",r("tilde return",a),a})}(e,t)}).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map(function(e){return function(e,t){e=e.trim();var n=t?i[A]:i[T];return e.replace(n,function(t,n,o,i,s,a){r("xRange",e,t,n,o,i,s,a);var c=ae(o),u=c||ae(i),l=u||ae(s);return"="===n&&l&&(n=""),c?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(u&&(i=0),l&&(s=0),">"===n?(n=">=",u?(o=+o+1,i=0,s=0):l&&(i=+i+1,s=0)):"<="===n&&(n="<",u?o=+o+1:i=+i+1),t=n+o+"."+i+"."+s):u?t=">="+o+".0.0 <"+(+o+1)+".0.0":l&&(t=">="+o+"."+i+".0 <"+o+"."+(+i+1)+".0"),r("xRange return",t),t})}(e,t)}).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(i[K],"")}(e,t),r("stars",e),e}(e,t)}).join(" ").split(/\s+/);return this.loose&&(s=s.filter(function(e){return!!e.match(o)})),s.map(function(e){return new oe(e,t)})},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some(function(r){return r.every(function(r){return e.set.some(function(e){return e.every(function(e){return r.intersects(e,t)})})})})},t.toComparators=function(e,t){return new se(e,t).set.map(function(e){return e.map(function(e){return e.value}).join(" ").trim().split(" ")})},se.prototype.test=function(e){if(!e)return!1;"string"==typeof e&&(e=new J(e,this.loose));for(var t=0;t",r)},t.outside=pe,t.prerelease=function(e,t){var r=W(e,t);return r&&r.prerelease.length?r.prerelease:null},t.intersects=function(e,t,r){return e=new se(e,r),t=new se(t,r),e.intersects(t)},t.coerce=function(e){if(e instanceof J)return e;if("string"!=typeof e)return null;var t=e.match(i[k]);return null==t?null:W((t[1]||"0")+"."+(t[2]||"0")+"."+(t[3]||"0"))}},function(e,t,r){"use strict";var n=r(8),o=r(75),i={"10.0":"10",6.3:"8.1",6.2:"8",6.1:"7","6.0":"Vista",5.1:"XP","5.0":"2000",4.9:"ME",4.1:"98","4.0":"95"};e.exports=function(e){var t=/\d+\.\d+/,s=t.exec(e||n.release());if(!e&&"win32"===process.platform&&o.satisfies(process.version,">=0.12.0 <3.1.0"))try{s=t.exec(String(r(5).execSync("ver.exe",{timeout:2e3})))}catch(e){}if(e&&!s)throw new Error("`release` argument doesn't match `n.n`");return i[(s||[])[0]]}},function(e,t,r){"use strict";var n=r(8),o={17:"High Sierra",16:"Sierra",15:"El Capitan",14:"Yosemite",13:"Mavericks",12:"Mountain Lion",11:"Lion",10:"Snow Leopard",9:"Leopard",8:"Tiger",7:"Panther",6:"Jaguar",5:"Puma"};e.exports=function(e){return e=(e||n.release()).split(".")[0],{name:o[e],version:"10."+(Number(e)-4)}}},function(e,t,r){"use strict";var n=r(8),o=r(77),i=r(76);e.exports=function(e,t){if(!e&&t)throw new Error("You can't specify a `release` without specifying `platform`");var r;return e=e||n.platform(),t=t||n.release(),"darwin"===e?(Number(t.split(".")[0])>15?"macOS":"OS X")+((r=o(t).name)?" "+r:""):"linux"===e?"Linux"+((r=t.replace(/^(\d+\.\d+).*/,"$1"))?" "+r:""):"win32"===e?"Windows"+((r=i(t))?" "+r:""):e}},function(e,t,r){const n=r(8),o=r(78),i=r(0),s=r(74),a=r(7),c="N/A",u="darwin"===process.platform,l="linux"===process.platform,p=process.platform.startsWith("win");e.exports=Object.assign({},a,s,{getiOSSDKInfo:()=>u?a.run("xcodebuild -showsdks").then(e=>e.match(/[\w]+\s[\d|.]+/g)).then(a.uniq).then(e=>e.length?["iOS SDK",{Platforms:e}]:["iOS SDK","Not Found"]):Promise.resolve(["iOS SDK",c]),getAndroidSDKInfo:()=>{var e=[],t=[];return a.run(process.env.ANDROID_HOME?"$ANDROID_HOME/tools/bin/sdkmanager --list":"sdkmanager --list").then(r=>{const n=r.split("Available")[0],o=/build-tools;([\d|.]+)[\S\s]/g,i=/platforms;android-(\d+)[\S\s]/g;let s;for(;s=o.exec(n);)e.push(s[1]);for(;s=i.exec(n);)t.push(s[1]);return e.length||t.length?Promise.resolve(["Android SDK",{"Build Tools":e||"Not Found","API Levels":t||"Not Found"}]):Promise.resolve(["Android SDK","Not Found"])})},getAndroidStudioInfo:()=>{let e;return u?e=a.run(a.generatePlistBuddyCommand(i.join("/","Applications","Android\\ Studio.app","Contents","Info.plist"),["CFBundleShortVersionString","CFBundleVersion"])).then(e=>e.split("\n").join(" ")):l?e=Promise.all([a.run('cat /opt/android-studio/bin/studio.sh | grep "$Home/.AndroidStudio" | head -1').then(a.findVersion),a.run("cat /opt/android-studio/build.txt")]).then(e=>`${e[0]} ${e[1]}`.trim()||"Not Found"):p&&(e=Promise.all([a.run('wmic datafile where name="C:\\\\Program Files\\\\Android\\\\Android Studio\\\\bin\\\\studio.exe" get Version').then(e=>e.replace(/(\r\n|\n|\r)/gm,"")),a.run('type "C:\\\\Program Files\\\\Android\\\\Android Studio\\\\build.txt"').then(e=>e.replace(/(\r\n|\n|\r)/gm,""))]).then(e=>`${e[0]} ${e[1]}`.trim()||"Not Found")),e.then(e=>a.determineFound("Android Studio",e))},getAtomInfo:()=>(a.log("trace","getAtomInfo"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers.Atom),c]).then(e=>a.determineFound("Atom",e[0],e[1]))),getMySQLInfo:()=>(a.log("trace","getMySQLInfo"),Promise.all([a.run("mysql --version").then(e=>`${a.findVersion(e,null,1)}${e.includes("MariaDB")?" (MariaDB)":""}`),a.which("mysql")]).then(e=>a.determineFound("MySQL",e[0],e[1]))),getMongoDBInfo:()=>(a.log("trace","getMongoDBInfo"),Promise.all([a.run("mongo --version").then(a.findVersion),a.which("mongo")]).then(e=>a.determineFound("MongoDB",e[0],e[1]))),getSQLiteInfo:()=>(a.log("trace","getSQLiteInfo"),Promise.all([a.run("sqlite3 --version").then(a.findVersion),a.which("sqlite3")]).then(e=>a.determineFound("SQLite",e[0],e[1]))),getPostgreSQLInfo:()=>(a.log("trace","getPostgreSQLInfo"),Promise.all([a.run("postgres --version").then(a.findVersion),a.which("postgres")]).then(e=>a.determineFound("PostgreSQL",e[0],e[1]))),getCPUInfo:()=>{let e;a.log("trace","getCPUInfo");try{e=n.arch()+" "+n.cpus()[0].model}catch(t){e="Unknown"}return Promise.all(["CPU",e])},getBashInfo:()=>(a.log("trace","getBashInfo"),Promise.all([a.run("bash --version").then(a.findVersion),a.which("bash")]).then(e=>a.determineFound("Bash",e[0],e[1]))),getPerlInfo:()=>(a.log("trace","getPerlInfo"),Promise.all([a.run("perl -v").then(a.findVersion),a.which("perl")]).then(e=>a.determineFound("Perl",e[0],e[1]))),getPHPInfo:()=>(a.log("trace","getPHPInfo"),Promise.all([a.run("php -v").then(a.findVersion),a.which("php")]).then(e=>a.determineFound("PHP",e[0],e[1]))),getParallelsInfo:()=>(a.log("trace","getParallelsInfo"),Promise.all([a.run("prlctl --version").then(a.findVersion),a.which("prlctl")]).then(e=>a.determineFound("Parallels",e[0],e[1]))),getDockerInfo:()=>(a.log("trace","getDockerInfo"),Promise.all([a.run("docker --version").then(a.findVersion),a.which("docker")]).then(e=>a.determineFound("Docker",e[0],e[1]))),getElixirInfo:()=>(a.log("trace","getElixirInfo"),Promise.all([a.run("elixir --version").then(e=>a.findVersion(e,/[Elixir]+\s([\d+.[\d+|.]+)/,1)),a.which("elixir")]).then(e=>Promise.resolve(a.determineFound("Elixir",e[0],e[1])))),getMemoryInfo:()=>(a.log("trace","getMemoryInfo"),Promise.all(["Memory",`${a.toReadableBytes(n.freemem())} / ${a.toReadableBytes(n.totalmem())}`])),getSublimeTextInfo:()=>(a.log("trace","getSublimeTextInfo"),Promise.all([a.run("subl --version").then(e=>a.findVersion(e,/\d+/)),a.which("subl")]).then(e=>""===e[0]&&u?(a.log("trace","getSublimeTextInfo using plist"),Promise.all([a.getDarwinApplicationVersion(a.ideBundleIdentifiers["Sublime Text"]),c])):e).then(e=>a.determineFound("Sublime Text",e[0],e[1]))),getHomeBrewInfo:()=>(a.log("trace","getHomeBrewInfo"),u?Promise.all(["Homebrew",a.run("brew --version").then(a.findVersion),a.which("brew")]):Promise.all(["Homebrew",c])),getGoInfo:()=>(a.log("trace","getGoInfo"),Promise.all([a.run("go version").then(a.findVersion),a.which("go")]).then(e=>a.determineFound("Go",e[0],e[1]))),getRubyInfo:()=>(a.log("trace","getRubyInfo"),Promise.all([a.run("ruby -v").then(a.findVersion),a.which("ruby")]).then(e=>a.determineFound("Ruby",e[0],e[1]))),getNodeInfo:()=>(a.log("trace","getNodeInfo"),Promise.all([a.which("node").then(e=>e?a.run(e+" -v"):Promise.resolve("")).then(e=>e.replace("v","")),a.which("node").then(a.condensePath)]).then(e=>a.determineFound("Node",e[0],e[1]))),getnpmInfo:()=>(a.log("trace","getnpmInfo"),Promise.all([a.run("npm -v"),a.which("npm").then(a.condensePath)]).then(e=>a.determineFound("npm",e[0],e[1]))),getShellInfo:()=>{if(a.log("trace","getShellInfo",process.env),u||l){const e=process.env.SHELL||a.runSync("getent passwd $LOGNAME | cut -d: -f7 | head -1");return Promise.all([a.run(`${e} --version`).then(a.findVersion),a.which(e)]).then(e=>a.determineFound("Shell",e[0]||"Unknown",e[1]))}return Promise.resolve(["Shell",c])},getOSInfo:()=>{let e;return a.log("trace","getOSInfo"),(e=u?a.run("sw_vers -productVersion "):l?a.run("cat /etc/os-release").then(e=>{const t=(e||"").match(/NAME="(.+)"/),r=(e||"").match(/VERSION="(.+)"/);return`${t[1]} ${r[1]}`.trim()||""}):Promise.resolve()).then(e=>{let t=o(n.platform(),n.release());return e&&(t+=` ${e}`),["OS",t]})},getContainerInfo:()=>(a.log("trace","getContainerInfo"),l?Promise.all([a.fileExists("/.dockerenv"),a.readFile("/proc/self/cgroup")]).then(e=>(a.log("trace","getContainerInfoThen",e),Promise.resolve(["Container",e[0]||e[1]?"Yes":c]))).catch(e=>a.log("trace","getContainerInfoCatch",e)):Promise.resolve(["Container",c])),getWatchmanInfo:()=>(a.log("trace","getWatchmanInfo"),Promise.all([a.which("watchman").then(e=>e?a.run(e+" -v"):void 0),a.which("watchman")]).then(e=>a.determineFound("Watchman",e[0],e[1]))),getVSCodeInfo:()=>(a.log("trace","getVSCodeInfo"),Promise.all([a.run("code --version").then(a.findVersion),a.which("code")]).then(e=>a.determineFound("VSCode",e[0],e[1]))),getIntelliJInfo:()=>(a.log("trace","getIntelliJInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.IntelliJ).then(e=>a.determineFound("IntelliJ",e))),getPhpStormInfo:()=>(a.log("trace","getPhpStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.PhpStorm).then(e=>a.determineFound("PhpStorm",e))),getWebStormInfo:()=>(a.log("trace","getWebStormInfo"),a.getDarwinApplicationVersion(a.ideBundleIdentifiers.WebStorm).then(e=>a.determineFound("WebStorm",e))),getVirtualBoxInfo:()=>(a.log("trace","getVirtualBoxInfo"),Promise.all([a.run("vboxmanage --version").then(a.findVersion),a.which("vboxmanage")]).then(e=>a.determineFound("VirtualBox",e[0],e[1]))),getVMwareFusionInfo:()=>(a.log("trace","getVMwareFusionInfo"),a.getDarwinApplicationVersion("com.vmware.fusion").then(e=>a.determineFound("VMWare Fusion",e,c))),getPythonInfo:()=>(a.log("trace","getPythonInfo"),Promise.all([a.run("python -V 2>&1").then(a.findVersion),a.run("which python")]).then(e=>a.determineFound("Python",e[0],e[1]))),getXcodeInfo:()=>(a.log("trace","getXcodeInfo"),u?Promise.all([a.which("xcodebuild").then(e=>a.run(e+" -version")).then(e=>`${a.findVersion(e)}/${e.split("Build version ")[1]}`),a.which("xcodebuild")]).then(e=>a.determineFound("Xcode",e[0],e[1])):Promise.resolve(["Xcode",c])),getYarnInfo:()=>(a.log("trace","getYarnInfo"),Promise.all([a.run("yarn -v"),a.which("yarn").then(a.condensePath)]).then(e=>a.determineFound("Yarn",e[0],e[1]))),getEdgeInfo:()=>{let e;return a.log("trace","getEdgeInfo"),(e=p&&"10"===n.release().split(".")[0]?a.run("powershell get-appxpackage Microsoft.MicrosoftEdge").then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Edge",e,c))},getInternetExplorerInfo:()=>{let e;if(a.log("trace","getInternetExplorerInfo"),p){const t=[process.env.SYSTEMDRIVE||"C:","Program Files","Internet Explorer","iexplore.exe"].join("\\\\");e=a.run(`wmic datafile where "name='${t}'" get Version`).then(a.findVersion)}else e=Promise.resolve(c);return e.then(e=>a.determineFound("Internet Explorer",e,c))},getChromeInfo:()=>{let e;return a.log("trace","getChromeInfo"),(e=l?a.run("google-chrome --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Chrome).then(a.findVersion):Promise.resolve(c)).then(e=>a.determineFound("Chrome",e,c))},getChromeCanaryInfo:()=>(a.log("trace","getChromeCanaryInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Chrome Canary"]).then(e=>a.determineFound("Chrome Canary",e,c))),getFirefoxDeveloperEditionInfo:()=>(a.log("trace","getFirefoxDeveloperEditionInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Developer Edition"]).then(e=>a.determineFound("Firefox Developer Edition",e,c))),getSafariTechnologyPreviewInfo:()=>(a.log("trace","getSafariTechnologyPreviewInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Safari Technology Preview"]).then(e=>a.determineFound("Safari Technology Preview",e,c))),getSafariInfo:()=>(a.log("trace","getSafariInfo"),a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Safari).then(e=>a.determineFound("Safari",e,c))),getFirefoxInfo:()=>{let e;return a.log("trace","getFirefoxInfo"),(e=l?a.run("firefox --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers.Firefox):Promise.resolve(c)).then(e=>a.determineFound("Firefox",e,c))},getFirefoxNightlyInfo:()=>{let e;return a.log("trace","getFirefoxNightlyInfo"),(e=l?a.run("firefox-trunk --version").then(e=>e.replace(/^.* ([^ ]*)/g,"$1")):u?a.getDarwinApplicationVersion(a.browserBundleIdentifiers["Firefox Nightly"]):Promise.resolve(c)).then(e=>a.determineFound("Firefox Nightly",e,c))},getGitInfo:()=>(a.log("trace","getGitInfo"),u||l?Promise.all([a.run("git --version").then(a.findVersion),a.run("which git")]).then(e=>a.determineFound("Git",e[0],e[1])):Promise.resolve(["Git",c])),getMakeInfo:()=>(a.log("trace","getMakeInfo"),u||l?Promise.all([a.run("make --version").then(a.findVersion),a.run("which make")]).then(e=>a.determineFound("Make",e[0],e[1])):Promise.resolve(["Make",c])),getCMakeInfo:()=>(a.log("trace","getCMakeInfo"),u||l?Promise.all([a.run("cmake --version").then(a.findVersion),a.run("which cmake")]).then(e=>a.determineFound("CMake",e[0],e[1])):Promise.resolve(["CMake",c])),getGCCInfo:()=>(a.log("trace","getGCCInfo"),u||l?Promise.all([a.run("gcc -v 2>&1").then(a.findVersion),a.run("which gcc")]).then(e=>a.determineFound("GCC",e[0],e[1])):Promise.resolve(["GCC",c])),getNanoInfo:()=>(a.log("trace","getNanoInfo"),u||l?Promise.all([a.run("nano --version").then(a.findVersion),a.run("which nano")]).then(e=>a.determineFound("Nano",e[0],e[1])):Promise.resolve(["Nano",c])),getEmacsInfo:()=>(a.log("trace","getEmacsInfo"),u||l?Promise.all([a.run("emacs --version").then(a.findVersion),a.run("which emacs")]).then(e=>a.determineFound("Emacs",e[0],e[1])):Promise.resolve(["Emacs",c])),getVimInfo:()=>(a.log("trace","getVimInfo"),u||l?Promise.all([a.run("vim --version").then(a.findVersion),a.run("which vim")]).then(e=>a.determineFound("Vim",e[0],e[1])):Promise.resolve(["Vim",c])),getRustInfo:()=>(a.log("trace","getRustInfo"),u||l?Promise.all([a.run("rustup --version").then(a.findVersion),a.run("which rustup")]).then(e=>a.determineFound("Rust",e[0],e[1])):Promise.resolve(["Rust",c])),getScalaInfo:()=>(a.log("trace","getScalaInfo"),u||l?Promise.all([a.run("scalac -version").then(a.findVersion),a.run("which scalac")]).then(e=>a.determineFound("Scala",e[0],e[1])):Promise.resolve(["Scala",c])),getJavaInfo:()=>(a.log("trace","getJavaInfo"),u||l?Promise.all([a.run("javac -version 2>&1").then(a.findVersion),a.run("which javac")]).then(e=>a.determineFound("Java",e[0],e[1])):Promise.resolve(["Java",c])),getApacheInfo:()=>(a.log("trace","getApacheInfo"),u||l?Promise.all([a.run("apachectl -v").then(a.findVersion),a.run("which apachectl")]).then(e=>a.determineFound("Apache",e[0],e[1])):Promise.resolve(["Apache",c])),getNginxInfo:()=>(a.log("trace","getNginxInfo"),u||l?Promise.all([a.run("nginx -v 2>&1").then(a.findVersion),a.run("which nginx")]).then(e=>a.determineFound("Nginx",e[0],e[1])):Promise.resolve(["Nginx",c]))})},function(e,t,r){var n=r(5),o=r(1),i=r(0);e.exports=function(){if("x64"===process.arch)return"x64";if("darwin"===process.platform)return"x64";if("win32"===process.platform){var e=!1;try{e=!(!process.env.SYSTEMROOT||!o.statSync(process.env.SYSTEMROOT))}catch(e){}var t=e?process.env.SYSTEMROOT:"C:\\Windows",r=!1;try{r=!!o.statSync(i.join(t,"sysnative"))}catch(e){}return r?"x64":"x86"}return"linux"===process.platform&&"64\n"===n.execSync("getconf LONG_BIT",{encoding:"utf8"})?"x64":"x86"}},function(e,t,r){"use strict";(function(t){const n=r(0),o=r(9),i="x64"===r(80)()?n.join(t,"../fallbacks/windows/clipboard_x86_64.exe"):n.join(t,"../fallbacks/windows/clipboard_i686.exe");e.exports={copy:e=>o(i,["--copy"],e),paste:e=>o.stdout(i,["--paste"],e),copySync:e=>o.sync(i,["--copy"],e),pasteSync:e=>o.sync(i,["--paste"],e)}}).call(this,"/")},function(e,t,r){"use strict";const n=r(9),o=Object.assign({},process.env,{LC_CTYPE:"UTF-8"});e.exports={copy:e=>n("pbcopy",Object.assign({},e,{env:o})),paste:e=>n.stdout("pbpaste",Object.assign({},e,{env:o})),copySync:e=>n.sync("pbcopy",Object.assign({},e,{env:o})),pasteSync:e=>n.sync("pbpaste",Object.assign({},e,{env:o}))}},function(e,t,r){"use strict";(function(t){const n=r(0),o=r(9),i=e=>{if("ENOENT"===e.code)throw new Error("Couldn't find the required `xsel` binary. On Debian/Ubuntu you can install it with: sudo apt install xsel");throw e},s=n.join(t,"../fallbacks/linux/xsel");e.exports={copy:e=>o(s,["--clipboard","--input"],e).catch(()=>o("xsel",["--clipboard","--input"],e)).catch(i),paste:e=>o.stdout(s,["--clipboard","--output"],e).catch(()=>o.stdout("xsel",["--clipboard","--output"],e)).catch(i),copySync:e=>{try{return o.sync(s,["--clipboard","--input"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--input"],e)}catch(e){i(e)}}},pasteSync:e=>{try{return o.sync(s,["--clipboard","--output"],e)}catch(t){try{return o.sync("xsel",["--clipboard","--output"],e)}catch(e){i(e)}}}}}).call(this,"/")},function(e,t,r){"use strict";const n=["stdin","stdout","stderr"];e.exports=(e=>{if(!e)return null;if(e.stdio&&(e=>n.some(t=>Boolean(e[t])))(e))throw new Error(`It's not possible to provide \`stdio\` in combination with one of ${n.map(e=>`\`${e}\``).join(", ")}`);if("string"==typeof e.stdio)return e.stdio;const t=e.stdio||[];if(!Array.isArray(t))throw new TypeError(`Expected \`stdio\` to be of type \`string\` or \`Array\`, got \`${typeof t}\``);const r=[],o=Math.max(t.length,n.length);for(let i=0;i= 0");return`Unknown system error ${t}`}e.exports=(e=>o(n,e)),e.exports.__test__=o},function(e,t){e.exports=["SIGABRT","SIGALRM","SIGHUP","SIGINT","SIGTERM"],"win32"!==process.platform&&e.exports.push("SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT"),"linux"===process.platform&&e.exports.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT","SIGUNUSED")},function(e,t,r){var n,o=r(14),i=r(86),s=r(34);function a(){l&&(l=!1,i.forEach(function(e){try{process.removeListener(e,u[e])}catch(e){}}),process.emit=d,process.reallyExit=h,n.count-=1)}function c(e,t,r){n.emitted[e]||(n.emitted[e]=!0,n.emit(e,t,r))}"function"!=typeof s&&(s=s.EventEmitter),process.__signal_exit_emitter__?n=process.__signal_exit_emitter__:((n=process.__signal_exit_emitter__=new s).count=0,n.emitted={}),n.infinite||(n.setMaxListeners(1/0),n.infinite=!0),e.exports=function(e,t){o.equal(typeof e,"function","a callback must be provided for exit handler"),!1===l&&p();var r="exit";return t&&t.alwaysLast&&(r="afterexit"),n.on(r,e),function(){n.removeListener(r,e),0===n.listeners("exit").length&&0===n.listeners("afterexit").length&&a()}},e.exports.unload=a;var u={};i.forEach(function(e){u[e]=function(){process.listeners(e).length===n.count&&(a(),c("exit",null,e),c("afterexit",null,e),process.kill(process.pid,e))}}),e.exports.signals=function(){return i},e.exports.load=p;var l=!1;function p(){l||(l=!0,n.count+=1,i=i.filter(function(e){try{return process.on(e,u[e]),!0}catch(e){return!1}}),process.emit=m,process.reallyExit=f)}var h=process.reallyExit;function f(e){process.exitCode=e||0,c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),h.call(process,process.exitCode)}var d=process.emit;function m(e,t){if("exit"===e){void 0!==t&&(process.exitCode=t);var r=d.apply(this,arguments);return c("exit",process.exitCode,null),c("afterexit",process.exitCode,null),r}return d.apply(this,arguments)}},function(e,t,r){"use strict";e.exports=((e,t)=>(t=t||(()=>{}),e.then(e=>new Promise(e=>{e(t())}).then(()=>e),e=>new Promise(e=>{e(t())}).then(()=>{throw e}))))},function(e,t){e.exports=require("stream")},function(e,t,r){"use strict";const n=r(89).PassThrough;e.exports=(e=>{const t=(e=Object.assign({},e)).array;let r=e.encoding;const o="buffer"===r;let i=!1;t?i=!(r||o):r=r||"utf8",o&&(r=null);let s=0;const a=[],c=new n({objectMode:i});return r&&c.setEncoding(r),c.on("data",e=>{a.push(e),i?s=a.length:s+=e.length}),c.getBufferedValue=(()=>t?a:o?Buffer.concat(a,s):a.join("")),c.getBufferedLength=(()=>s),c})},function(e,t,r){"use strict";const n=r(90);function o(e,t){if(!e)return Promise.reject(new Error("Expected a stream"));const r=(t=Object.assign({maxBuffer:1/0},t)).maxBuffer;let o,i;const s=new Promise((s,a)=>{const c=e=>{e&&(e.bufferedData=o.getBufferedValue()),a(e)};o=n(t),e.once("error",c),e.pipe(o),o.on("data",()=>{o.getBufferedLength()>r&&a(new Error("maxBuffer exceeded"))}),o.once("error",c),o.on("end",s),i=(()=>{e.unpipe&&e.unpipe(o)})});return s.then(i,i),s.then(()=>o.getBufferedValue())}e.exports=o,e.exports.buffer=((e,t)=>o(e,Object.assign({},t,{encoding:"buffer"}))),e.exports.array=((e,t)=>o(e,Object.assign({},t,{array:!0})))},function(e,t,r){"use strict";var n=e.exports=function(e){return null!==e&&"object"==typeof e&&"function"==typeof e.pipe};n.writable=function(e){return n(e)&&!1!==e.writable&&"function"==typeof e._write&&"object"==typeof e._writableState},n.readable=function(e){return n(e)&&!1!==e.readable&&"function"==typeof e._read&&"object"==typeof e._readableState},n.duplex=function(e){return n.writable(e)&&n.readable(e)},n.transform=function(e){return n.duplex(e)&&"function"==typeof e._transform&&"object"==typeof e._transformState}},function(e,t,r){"use strict";e.exports=(e=>{const t=(e=e||{}).env||process.env;return"win32"!==(e.platform||process.platform)?"PATH":Object.keys(t).find(e=>"PATH"===e.toUpperCase())||"Path"})},function(e,t,r){"use strict";const n=r(0),o=r(93);e.exports=(e=>{let t;e=Object.assign({cwd:process.cwd(),path:process.env[o()]},e);let r=n.resolve(e.cwd);const i=[];for(;t!==r;)i.push(n.join(r,"node_modules/.bin")),t=r,r=n.resolve(r,"..");return i.push(n.dirname(process.execPath)),i.concat(e.path).join(n.delimiter)}),e.exports.env=(t=>{t=Object.assign({env:process.env},t);const r=Object.assign({},t.env),n=o({env:r});return t.path=r[n],r[n]=e.exports(t),r})},function(e,t,r){"use strict";e.exports=function(e){var t="string"==typeof e?"\n":"\n".charCodeAt(),r="string"==typeof e?"\r":"\r".charCodeAt();return e[e.length-1]===t&&(e=e.slice(0,e.length-1)),e[e.length-1]===r&&(e=e.slice(0,e.length-1)),e}},function(e,t,r){"use strict";var n="win32"===process.platform,o=r(38),i=0===process.version.indexOf("v0.10.");function s(e,t){var r;return(r=new Error(t+" "+e+" ENOENT")).code=r.errno="ENOENT",r.syscall=t+" "+e,r}function a(e,t){return n&&1===e&&!t.file?s(t.original,"spawn"):null}e.exports.hookChildProcess=function(e,t){var r;n&&(r=e.emit,e.emit=function(n,o){var i;return"exit"===n&&(i=a(o,t))?r.call(e,"error",i):r.apply(e,arguments)})},e.exports.verifyENOENT=a,e.exports.verifyENOENTSync=function(e,t){return n&&1===e&&!t.file?s(t.original,"spawnSync"):i&&-1===e&&(t.file=n?t.file:o(t.original),!t.file)?s(t.original,"spawnSync"):null},e.exports.notFoundError=s},function(e,t,r){"use strict";e.exports=/^#!.*/},function(e,t,r){"use strict";var n=r(97);e.exports=function(e){var t=e.match(n);if(!t)return null;var r=t[0].replace(/#! ?/,"").split(" "),o=r[0].split("/").pop(),i=r[1];return"env"===o?i:o+(i?" "+i:"")}},function(e,t,r){"use strict";var n=r(1),o=r(36),i=r(98),s=new o({max:50,maxAge:3e4});e.exports=function(e){var t,r,o;if(s.has(e))return s.get(e);t=new Buffer(150);try{r=n.openSync(e,"r"),n.readSync(r,t,0,150,0),n.closeSync(r)}catch(e){}return o=i(t.toString()),s.set(e,o),o}},function(e,t,r){"use strict";var n=r(35);e.exports=function(e){return/^[a-z0-9_-]+$/i.test(e)?e:n(e,!0)}},function(e,t,r){"use strict";var n;e.exports="win32"===process.platform&&0===(n=process.version.substr(1).split(".").map(function(e){return parseInt(e,10)}))[0]&&n[1]<12},function(e,t){function r(e){var t=this;if(t instanceof r||(t=new r),t.tail=null,t.head=null,t.length=0,e&&"function"==typeof e.forEach)e.forEach(function(e){t.push(e)});else if(arguments.length>0)for(var n=0,o=arguments.length;n1)r=t;else{if(!this.head)throw new TypeError("Reduce of empty list with no initial value");n=this.head.next,r=this.head.value}for(var o=0;null!==n;o++)r=e(r,n.value,o),n=n.next;return r},r.prototype.reduceReverse=function(e,t){var r,n=this.tail;if(arguments.length>1)r=t;else{if(!this.tail)throw new TypeError("Reduce of empty list with no initial value");n=this.tail.prev,r=this.tail.value}for(var o=this.length-1;null!==n;o--)r=e(r,n.value,o),n=n.prev;return r},r.prototype.toArray=function(){for(var e=new Array(this.length),t=0,r=this.head;null!==r;t++)e[t]=r.value,r=r.next;return e},r.prototype.toArrayReverse=function(){for(var e=new Array(this.length),t=0,r=this.tail;null!==r;t++)e[t]=r.value,r=r.prev;return e},r.prototype.slice=function(e,t){(t=t||this.length)<0&&(t+=this.length),(e=e||0)<0&&(e+=this.length);var n=new r;if(tthis.length&&(t=this.length);for(var o=0,i=this.head;null!==i&&othis.length&&(t=this.length);for(var o=this.length,i=this.tail;null!==i&&o>t;o--)i=i.prev;for(;null!==i&&o>e;o--,i=i.prev)n.push(i.value);return n},r.prototype.reverse=function(){for(var e=this.head,t=this.tail,r=e;null!==r;r=r.prev){var n=r.prev;r.prev=r.next,r.next=n}return this.head=t,this.tail=e,this}},function(e,t){var r=Object.prototype.hasOwnProperty;function n(e){if(!(this instanceof n))throw new TypeError("Constructor PseudoMap requires 'new'");if(this.clear(),e)if(e instanceof n||"function"==typeof Map&&e instanceof Map)e.forEach(function(e,t){this.set(t,e)},this);else{if(!Array.isArray(e))throw new TypeError("invalid argument");e.forEach(function(e){this.set(e[0],e[1])},this)}}function o(e,t){return e===t||e!=e&&t!=t}function i(e,t){for(var n=0,i="_"+t,s=i;r.call(e,s);s=i+n++)if(o(e[s].key,t))return e[s]}e.exports=n,n.prototype.forEach=function(e,t){t=t||this,Object.keys(this._data).forEach(function(r){"size"!==r&&e.call(t,this._data[r].value,this._data[r].key)},this)},n.prototype.has=function(e){return!!i(this._data,e)},n.prototype.get=function(e){var t=i(this._data,e);return t&&t.value},n.prototype.set=function(e,t){!function(e,t,n){for(var i=0,s="_"+t,a=s;r.call(e,a);a=s+i++)if(o(e[a].key,t))return void(e[a].value=n);e.size++,e[a]=new function(e,t,r){this.key=e,this.value=t,this._index=r}(t,n,a)}(this._data,e,t)},n.prototype.delete=function(e){var t=i(this._data,e);t&&(delete this._data[t._index],this._data.size--)},n.prototype.clear=function(){var e=Object.create(null);e.size=0,Object.defineProperty(this,"_data",{value:e,enumerable:!1,configurable:!0,writable:!1})},Object.defineProperty(n.prototype,"size",{get:function(){return this._data.size},set:function(e){},enumerable:!0,configurable:!0}),n.prototype.values=n.prototype.keys=n.prototype.entries=function(){throw new Error("iterators are not implemented in this version")}},function(e,t,r){"pseudomap"===process.env.npm_package_name&&"test"===process.env.npm_lifecycle_script&&(process.env.TEST_PSEUDOMAP="true"),"function"!=typeof Map||process.env.TEST_PSEUDOMAP?e.exports=r(103):e.exports=Map},function(e,t,r){e.exports=o,o.sync=function(e,t){return i(n.statSync(e),t)};var n=r(1);function o(e,t,r){n.stat(e,function(e,n){r(e,!e&&i(n,t))})}function i(e,t){return e.isFile()&&function(e,t){var r=e.mode,n=e.uid,o=e.gid,i=void 0!==t.uid?t.uid:process.getuid&&process.getuid(),s=void 0!==t.gid?t.gid:process.getgid&&process.getgid(),a=parseInt("100",8),c=parseInt("010",8);return r&parseInt("001",8)||r&c&&o===s||r&a&&n===i||r&(a|c)&&0===i}(e,t)}},function(e,t,r){e.exports=i,i.sync=function(e,t){return o(n.statSync(e),e,t)};var n=r(1);function o(e,t,r){return!(!e.isSymbolicLink()&&!e.isFile())&&function(e,t){var r=void 0!==t.pathExt?t.pathExt:process.env.PATHEXT;if(!r)return!0;if(-1!==(r=r.split(";")).indexOf(""))return!0;for(var n=0;n=6||4===parseInt(process.version.substr(1).split(".")[0],10)&&parseInt(process.version.substr(1).split(".")[1],10)>=8;e.exports=function(e,t,r){var p;return t&&!Array.isArray(t)&&(r=t,t=null),p={command:e,args:t=t?t.slice(0):[],options:r=r||{},file:void 0,original:e},r.shell?function(e){var t;return l?e:(t=[e.command].concat(e.args).join(" "),c?(e.command="string"==typeof e.options.shell?e.options.shell:process.env.comspec||"cmd.exe",e.args=["/d","/s","/c",'"'+t+'"'],e.options.windowsVerbatimArguments=!0):("string"==typeof e.options.shell?e.command=e.options.shell:"android"===process.platform?e.command="/system/bin/sh":e.command="/bin/sh",e.args=["-c",t]),e)}(p):function(e){var t,r,l;return c?(e.file=n(e.command),e.file=e.file||n(e.command,!0),(t=e.file&&a(e.file))?(e.args.unshift(e.file),e.command=t,r=o||!u.test(n(t)||n(t,!0))):r=o||!u.test(e.file),r&&(l="echo"!==e.command,e.command=s(e.command),e.args=e.args.map(function(e){return i(e,l)}),e.args=["/d","/s","/c",'"'+e.command+(e.args.length?" "+e.args.join(" "):"")+'"'],e.command=process.env.comspec||"cmd.exe",e.options.windowsVerbatimArguments=!0),e):e}(p)}},function(e,t,r){"use strict";var n=r(5),o=r(108),i=r(96),s=n.spawnSync;function a(e,t,r){var s,a;return s=o(e,t,r),a=n.spawn(s.command,s.args,s.options),i.hookChildProcess(a,s),a}e.exports=a,e.exports.spawn=a,e.exports.sync=function(e,t,n){var a,c;if(!s)try{s=r(!function(){var e=new Error('Cannot find module "spawn-sync"');throw e.code="MODULE_NOT_FOUND",e}())}catch(e){throw new Error("In order to use spawnSync on node 0.10 or older, you must install spawn-sync:\n\n npm install spawn-sync --save")}return a=o(e,t,n),(c=s(a.command,a.args,a.options)).error=c.error||i.verifyENOENTSync(c.status,a),c},e.exports._parse=o,e.exports._enoent=i},function(e,t,r){"use strict";const n=r(9),o=e=>{if("ENOENT"===e.code)throw new Error("Couldn't find the termux-api scripts. You can install them with: apt install termux-api");throw e};e.exports={copy:e=>n("termux-clipboard-set",e).catch(o),paste:e=>n.stdout("termux-clipboard-get",e).catch(o),copySync:e=>{try{return n.sync("termux-clipboard-set",e)}catch(e){o(e)}},pasteSync:e=>{try{return n.sync("termux-clipboard-get",e)}catch(e){o(e)}}}},function(e,t,r){"use strict";const n=r(110),o=r(83),i=r(82),s=r(81);function a(){switch(process.platform){case"darwin":return i;case"win32":return s;case"android":if("/data/data/com.termux/files/usr"!==process.env.PREFIX)throw new Error("You need to install Termux for this module to work on Android: https://termux.com");return n;default:return o}}t.write=(e=>"string"!=typeof e?Promise.reject(new TypeError(`Expected a string, got ${typeof e}`)):a().copy({input:e}).then(()=>{})),t.read=(()=>a().paste({stripEof:!1})),t.writeSync=(e=>{if("string"!=typeof e)throw new TypeError(`Expected a string, got ${typeof e}`);a().copySync({input:e})}),t.readSync=(()=>a().pasteSync({stripEof:!1}).stdout)},function(e,t,r){"use strict";const n=r(111),o=r(79),i=r(65),s=r(57),a=r(7),c=r(56),u=r(43),l=r(40);function p(e,t){t=t||{};const r=Object.keys(e).length>0?e:s.defaults,a=Object.entries(r).reduce((e,r)=>{const n=r[0],i=r[1],s=o[`get${n}`];return s?(i&&e.push(s(i,t)),e):e=e.concat((i||[]).map(e=>{const t=o[`get${e.replace(/\s/g,"")}Info`];return t?t():Promise.resolve(["Unknown"])}))},[]);return Promise.all(a).then(e=>{const r=e.reduce((e,t)=>(t&&t[0]&&Object.assign(e,{[t[0]]:t}),e),{});return function(e,t){const r=(()=>t.json?i.json:t.markdown?i.markdown:i.yaml)();t.console&&console.log(r(e,Object.assign({},t,{console:!0})));const o=r(e,Object.assign({},t,{console:!1}));return t.clipboard&&n.writeSync(o),o}(Object.entries(s.defaults).reduce((e,t)=>{const n=t[0],o=t[1];return r[n]?Object.assign(e,{[n]:r[n][1]}):Object.assign(e,{[n]:(o||[]).reduce((e,t)=>r[t]?(r[t].shift(),1===r[t].length?Object.assign(e,{[t]:r[t][0]}):Object.assign(e,{[t]:{version:r[t][0],path:r[t][1]}})):e,{})})},{}),t)})}Array.prototype.includes||c.shim(),Object.entries||u.shim(),Object.values||l.shim(),e.exports={cli:function(e){if(e.all)return p(Object.assign({},s.defaults,{npmPackages:!0,npmGlobalPackages:!0}),e);if(e.raw)return p(JSON.parse(e.raw),e);if(e.helper){const t=o[`get${e.helper}`]||o[`get${e.helper}Info`]||o[e.helper];return t?t().then(console.log):console.error("Not Found")}const t=(e,t)=>e.toLowerCase().includes(t.toLowerCase()),r=Object.keys(e).filter(e=>Object.keys(s.defaults).some(r=>t(r,e))),n=Object.entries(s.defaults).reduce((n,o)=>r.some(e=>t(e,o[0]))?Object.assign(n,{[o[0]]:o[1]||e[o[0]]}):n,{});return e.preset?(s[e.preset]||console.error(`\nNo "${e.preset}" preset found.`),p(Object.assign({},a.omit(s[e.preset],["options"]),n),Object.assign({},s[e.preset].options,a.pick(e,["duplicates","fullTree","json","markdown","console","clipboard"])))):p(n,e)},helpers:o,main:p,run:function(e,t){return p(e,t)}}}]);