diff --git a/.gitignore b/.gitignore index fd4f2b0..6525bb0 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ node_modules .DS_Store +lib \ No newline at end of file diff --git a/lib/files/.editorconfig b/lib/files/.editorconfig deleted file mode 100644 index e2b6f1c..0000000 --- a/lib/files/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -root = true - -[*] -indent_style = space -indent_size = 2 -end_of_line = lf -charset = utf-8 -trim_trailing_whitespace = true -insert_final_newline = true - -[*.md] -trim_trailing_whitespace = false - - - diff --git a/lib/files/.eslintrc.js b/lib/files/.eslintrc.js deleted file mode 100644 index 8ef60c2..0000000 --- a/lib/files/.eslintrc.js +++ /dev/null @@ -1,84 +0,0 @@ -module.exports = { - parser: 'babel-eslint', - extends: [ - 'prettier', - 'airbnb', - 'plugin:import/errors', - 'plugin:import/warnings', - ], - plugins: ['unused-imports', 'react-hooks'], - env: { - browser: true, - node: true, - es6: true, - jest: true, - }, - rules: { - semi: ['error', 'never'], - 'padding-line-between-statements': [ - 'error', - { blankLine: 'always', prev: '*', next: 'return' }, - ], - 'import/first': 0, - 'import/no-extraneous-dependencies': 0, - 'no-unused-vars': [ - 'error', - { vars: 'all', args: 'after-used', ignoreRestSiblings: false }, - ], - 'no-undef': 2, - 'no-use-before-define': [2, 'nofunc'], - 'import/no-named-as-default': 0, - 'unused-imports/no-unused-imports': 2, - 'unused-imports/no-unused-vars': 1, - 'import/prefer-default-export': 0, - 'no-confusing-arrow': 0, - 'no-restricted-globals': 0, - 'import/namespace': [2, { allowComputed: true }], - 'no-return-assign': 0, - 'object-curly-newline': 0, - 'max-len': [2, 140, 4, { ignoreUrls: true }], - 'class-methods-use-this': 0, - 'jsx-a11y/click-events-have-key-events': 'off', - 'import/no-named-as-default-member': 'off', - 'jsx-a11y/no-noninteractive-element-interactions': 'off', - 'no-underscore-dangle': 'off', - 'no-unused-expressions': ['error', { allowShortCircuit: true }], - 'react/jsx-one-expression-per-line': 'off', - 'import/no-useless-path-segments': 'off', - 'import/order': 'off', - 'react/react-in-jsx-scope': 'off', - 'implicit-arrow-linebreak': 'off', - 'linebreak-style': 0, - 'react/prop-types': 'off', - 'arrow-parens': ['error', 'as-needed'], - 'react/static-property-placement': 0, - 'comma-dangle': 2, - 'react/jsx-props-no-spreading': [ - { custom: 'ignore', explicitSpread: 'ignore' }, - ], - 'react/jsx-filename-extension': [ - 1, - { - extensions: ['.js', '.jsx'], - }, - ], - 'react/prefer-stateless-function': 'off', - 'jsx-a11y/anchor-is-valid': [ - 'error', - { - components: ['Link'], - specialLink: ['to'], - aspects: ['noHref', 'invalidHref', 'preferButton'], - }, - ], - 'react-hooks/rules-of-hooks': 'error', - 'react-hooks/exhaustive-deps': 'warn', - }, - settings: { - 'import/resolver': { - node: { - extensions: ['.js', '.jsx', '.vue'], - }, - }, - }, -} diff --git a/lib/files/.prettierrc.js b/lib/files/.prettierrc.js deleted file mode 100644 index 51d2ee6..0000000 --- a/lib/files/.prettierrc.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - trailingComma: 'all', - tabWidth: 2, - semi: false, - singleQuote: true, -} diff --git a/lib/files/.vscode/settings.json b/lib/files/.vscode/settings.json deleted file mode 100644 index 63cadf2..0000000 --- a/lib/files/.vscode/settings.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "breadcrumbs.enabled": true, - "window.zoomLevel": 0, - "javascript.validate.enable": false, - "terminal.integrated.windowsEnableConpty": false, - "terminal.integrated.shellArgs.windows": ["-NoLogo"], - "javascript.updateImportsOnFileMove.enabled": "always", - "editor.formatOnSave": true, - "editor.codeActionsOnSave": { - "source.fixAll.eslint": true - }, - "[javascript]": { - "editor.defaultFormatter": "esbenp.prettier-vscode" - } -} diff --git a/lib/files/package.json b/lib/files/package.json deleted file mode 100644 index c9e607a..0000000 --- a/lib/files/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "bring-my-beer", - "version": "1.0.0", - "description": "Bring My Beer was made using my Boilerplate for ReactProjects (https://gitlab.com/venturalp/reactboilerplate)", - "main": "webpack.config.js", - "scripts": { - "test": "jest", - "build:dev": "export NODE_ENV=development && webpack --mode development --progress --inline --color", - "start:prd": "export NODE_ENV=production && webpack --mode production --progress --inline --color && webpack-dev-server --mode production --open", - "build": "export NODE_ENV=production && webpack --mode production --progress --inline --color", - "start": "export NODE_ENV=development && webpack --mode development --progress --inline --color && webpack-dev-server --mode development --open" - }, - "repository": { - "type": "git", - "url": "git+https://github.com/venturalp/bring-my-beer" - }, - "author": "Guilherme Ventura de Souza", - "license": "MIT", - "bugs": { - "url": "https://github.com/venturalp/bring-my-beer/issues" - }, - "homepage": "https://github.com/venturalp/bring-my-beer#readme", - "devDependencies": { - "@babel/core": "^7.8.7", - "@babel/plugin-transform-runtime": "^7.8.3", - "@babel/preset-env": "^7.8.7", - "@babel/preset-react": "^7.8.3", - "@babel/register": "^7.8.6", - "babel-loader": "^8.0.6", - "babel-plugin-styled-components": "^1.10.7", - "babel-plugin-transform-class-properties": "^6.24.1", - "babel-register": "^6.26.0", - "eslint": "^6.8.0", - "eslint-config-airbnb": "^18.0.1", - "eslint-config-prettier": "^6.10.0", - "eslint-plugin-import": "^2.20.1", - "eslint-plugin-jsx-a11y": "^6.2.3", - "eslint-plugin-prettier": "^3.1.2", - "eslint-plugin-react": "^7.18.3", - "eslint-plugin-react-hooks": "^2.5.0", - "eslint-plugin-unused-imports": "^0.1.2", - "file-loader": "^5.1.0", - "intl": "^1.2.5", - "jest-styled-components": "^7.0.0", - "path": "^0.12.7", - "prettier": "^1.19.1", - "prettier-eslint-cli": "^5.0.0" - }, - "dependencies": { - "@babel/runtime": "^7.7.6", - "react": "^16.12.0", - "react-router-dom": "^5.1.2", - "styled-components": "^4.4.1", - "svg-loaders-react": "^2.2.1" - } -} diff --git a/lib/index.js b/lib/index.js deleted file mode 100644 index 43c4f6e..0000000 --- a/lib/index.js +++ /dev/null @@ -1 +0,0 @@ -!function(e){var n={};function t(r){if(n[r])return n[r].exports;var u=n[r]={i:r,l:!1,exports:{}};return e[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:r})},t.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},t.t=function(e,n){if(1&n&&(e=t(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(t.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var u in e)t.d(r,u,function(n){return e[n]}.bind(null,u));return r},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},t.p="/",t(t.s=17)}([function(e,n){e.exports=require("path")},function(e,n){e.exports=require("fs")},function(e,n){e.exports=require("util")},function(e,n,t){"use strict";function r(e){this.name="YError",this.message=e||"yargs error",Error.captureStackTrace(this,r)}r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,e.exports=r},function(e,n,t){"use strict";e.exports=function(e,n,t){try{let o=0,a={demanded:[],optional:[]};"object"==typeof e?(t=n,n=e):a=r.parseCommand(`cmd ${e}`);const c=[].slice.call(n);for(;c.length&&void 0===c[c.length-1];)c.pop();if((t=t||c.length)D)throw new u(`Too many arguments provided. Expected max ${D} but received ${t}.`);a.demanded.forEach(e=>{const n=i(c.shift());0===e.cmd.filter(e=>e===n||"*"===e).length&&s(n,e.cmd,o,!1),o+=1}),a.optional.forEach(e=>{if(0===c.length)return;const n=i(c.shift());0===e.cmd.filter(e=>e===n||"*"===e).length&&s(n,e.cmd,o,!0),o+=1})}catch(e){console.warn(e.stack)}};const r=t(9)(),u=t(3),o=["first","second","third","fourth","fifth","sixth"];function i(e){return Array.isArray(e)?"array":null===e?"null":typeof e}function s(e,n,t,r){throw new u(`Invalid ${o[t]||"manyith"} argument. Expected ${n.join(" or ")} but received ${e}.`)}},function(e,n,t){"use strict";const r=t(6),u=t(34),o=t(35),i=e=>{if("string"!=typeof(e=e.replace(o()," "))||0===e.length)return 0;e=r(e);let n=0;for(let t=0;t=127&&r<=159||(r>=768&&r<=879||(r>65535&&t++,n+=u(r)?2:1))}return n};e.exports=i,e.exports.default=i},function(e,n,t){"use strict";const r=t(33);e.exports=e=>"string"==typeof e?e.replace(r(),""):e},function(e,n,t){"use strict";e.exports=function(e,n){const t={};return n=n||((e,n)=>!0),Object.keys(e||{}).forEach(r=>{n(r,e[r])&&(t[r]=e[r])}),t}},function(e,n){function t(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id=8},function(e,n,t){"use strict";const r=t(2).inspect,u=t(10),{applyMiddleware:o,commandMiddlewareFactory:i}=t(11),s=t(0),a=t(12),c=/(^\*)|(^\$0)/;e.exports=function(e,n,D,l){const f={};let p,d={},g={};function h(e){return!e.getUsageInstance().getUsageDisabled()&&0===e.getUsageInstance().getUsage().length}function m(e,n){const t=c.test(n.original)?n.original.replace(c,"").trim():n.original,r=e.filter(e=>!c.test(e));return r.push(t),`$0 ${r.join(" ")}`}function y(e,n,t,r){const u=e.cmd[0];e.variadic?t[u]=n._.splice(0).map(String):n._.length&&(t[u]=[String(n._.shift())])}function F(n,t,r){const u=Object.assign({},e.getOptions());u.default=Object.assign(r.default,u.default),u.alias=Object.assign(r.alias,u.alias),u.array=u.array.concat(r.array),delete u.config;const o=[];if(Object.keys(t).forEach(e=>{t[e].map(n=>{u.configuration["unknown-options-as-args"]&&(u.key[e]=!0),o.push(`--${e}`),o.push(n)})}),!o.length)return;const i=Object.assign({},u.configuration,{"populate--":!0}),s=a.detailed(o,Object.assign({},u,{configuration:i}));if(s.error)e.getUsageInstance().fail(s.error.message,s.error);else{const e=Object.keys(t);Object.keys(t).forEach(n=>{[].push.apply(e,s.aliases[n])}),Object.keys(s.argv).forEach(r=>{-1!==e.indexOf(r)&&(t[r]||(t[r]=s.argv[r]),n[r]=s.argv[r])})}}l=l||[],f.addHandler=function(e,u,o,a,D){let l=[];const h=i(D);if(a=a||(()=>{}),Array.isArray(e))l=e.slice(1),e=e[0];else if("object"==typeof e){let n=Array.isArray(e.command)||"string"==typeof e.command?e.command:function(e){const n=t(29)(e);if(!n)throw new Error(`No command name given for module: ${r(e)}`);return u=n.filename,s.basename(u,s.extname(u));var u}(e);return e.aliases&&(n=[].concat(n).concat(e.aliases)),void f.addHandler(n,function(e){for(let n,t=["describe","description","desc"],r=0,u=t.length;rf.parseCommand(e).cmd);let y=!1;const F=[m.cmd].concat(l).filter(e=>!c.test(e)||(y=!0,!1));0===F.length&&y&&F.push("$0"),y&&(m.cmd=F[0],l=F.slice(1),e=e.replace(c,m.cmd)),l.forEach(e=>{g[e]=m.cmd}),!1!==u&&n.command(e,u,y,l),d[m.cmd]={original:e,description:u,handler:a,builder:o||{},middlewares:h,demanded:m.demanded,optional:m.optional},y&&(p=d[m.cmd])},f.addDirectory=function(e,n,r,u,o){"boolean"!=typeof(o=o||{}).recurse&&(o.recurse=!1),Array.isArray(o.extensions)||(o.extensions=["js"]);const i="function"==typeof o.visit?o.visit:e=>e;o.visit=function(e,t,r){const u=i(e,t,r);if(u){if(~n.files.indexOf(t))return u;n.files.push(t),f.addHandler(u)}return u},t(28)({require:r,filename:u},e,o)},f.parseCommand=function(e){const n=e.replace(/\s{2,}/g," ").split(/\s+(?![^[]*]|[^<]*>)/),t=/\.*[\][<>]/g,r={cmd:n.shift().replace(t,""),demanded:[],optional:[]};return n.forEach((e,u)=>{let o=!1;e=e.replace(/\s/g,""),/\.+[\]>]/.test(e)&&u===n.length-1&&(o=!0),/^\[/.test(e)?r.optional.push({cmd:e.replace(t,"").split("|"),variadic:o}):r.demanded.push({cmd:e.replace(t,"").split("|"),variadic:o})}),r},f.getCommands=()=>Object.keys(d).concat(Object.keys(g)),f.getCommandHandlers=()=>d,f.hasDefaultCommand=()=>!!p,f.runCommand=function(e,n,t,r){let i=t.aliases;const s=d[e]||d[g[e]]||p,a=n.getContext();let c=a.files.length;const C=a.commands.slice();let E=t.argv,b=null,v={};e&&(a.commands.push(e),a.fullCommands.push(s.original)),"function"==typeof s.builder?(b=s.builder(n.reset(t.aliases)),b&&"function"==typeof b._parseArgs||(b=n),h(b)&&b.getUsageInstance().usage(m(C,s),s.description),E=b._parseArgs(null,null,!0,r),i=b.parsed.aliases):"object"==typeof s.builder&&(b=n.reset(t.aliases),h(b)&&b.getUsageInstance().usage(m(C,s),s.description),Object.keys(s.builder).forEach(e=>{b.option(e,s.builder[e])}),E=b._parseArgs(null,null,!0,r),i=b.parsed.aliases),n._hasOutput()||(v=function(e,n,t,r){n._=n._.slice(t.commands.length);const u=e.demanded.slice(0),o=e.optional.slice(0),i={};D.positionalCount(u.length,n._.length);for(;u.length;){y(u.shift(),n,i)}for(;o.length;){y(o.shift(),n,i)}return n._=t.commands.concat(n._),F(n,i,f.cmdToParseOptions(e.original)),i}(s,E,a));const O=l.slice(0).concat(s.middlewares);if(o(E,n,O,!0),n._hasOutput()||n._runValidation(E,i,v,n.parsed.error),s.handler&&!n._hasOutput()){let e;n._setHasOutput(),!!n.getOptions().configuration["populate--"]||n._copyDoubleDash(E),E=o(E,n,O,!1),e=u(E)?E.then(e=>s.handler(e)):s.handler(E);const t=n.getHandlerFinishCommand();u(e)?(n.getUsageInstance().cacheHelpMessage(),e.then(e=>{t&&t(e)}).catch(e=>{try{n.getUsageInstance().fail(null,e)}catch(e){}})):t&&t(e)}return e&&(a.commands.pop(),a.fullCommands.pop()),c=a.files.length-c,c>0&&a.files.splice(-1*c,c),E},f.runDefaultBuilderOn=function(e){if(h(e)){const n=c.test(p.original)?p.original:p.original.replace(/^[^[\]<>]*/,"$0 ");e.getUsageInstance().usage(n,p.description)}const n=p.builder;"function"==typeof n?n(e):Object.keys(n).forEach(t=>{e.option(t,n[t])})},f.cmdToParseOptions=function(e){const n={array:[],default:{},alias:{},demand:{}},t=f.parseCommand(e);return t.demanded.forEach(e=>{const t=e.cmd.slice(0),r=t.shift();e.variadic&&(n.array.push(r),n.default[r]=[]),t.forEach(e=>{n.alias[r]=e}),n.demand[r]=!0}),t.optional.forEach(e=>{const t=e.cmd.slice(0),r=t.shift();e.variadic&&(n.array.push(r),n.default[r]=[]),t.forEach(e=>{n.alias[r]=e})}),n},f.reset=()=>(d={},g={},p=void 0,f);let C=[];return f.freeze=()=>{let e={};C.push(e),e.handlers=d,e.aliasMap=g,e.defaultCommand=p},f.unfreeze=()=>{let e=C.pop();d=e.handlers,g=e.aliasMap,p=e.defaultCommand},f}},function(e,n){e.exports=function(e){return!!e&&!!e.then&&"function"==typeof e.then}},function(e,n,t){"use strict";e.exports={applyMiddleware:function(e,n,t,u){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return t.reduce((t,i)=>{if(i.applyBeforeValidation!==u)return t;if(r(t))return t.then(e=>Promise.all([e,i(e,n)])).then(([e,n])=>Object.assign(e,n));{const s=i(e,n);if(u&&r(s))throw o;return r(s)?s.then(e=>Object.assign(t,e)):Object.assign(t,s)}},e)},commandMiddlewareFactory:function(e){return e?e.map(e=>(e.applyBeforeValidation=!1,e)):[]},globalMiddlewareFactory:function(e,n){return function(t,r=!1){if(u(" [boolean]",[t,r],arguments.length),Array.isArray(t)){for(let e=0;e1&&/[A-Z]/.test(n)&&D["camel-case-expansion"]){var t=u(n,"-");t!==e&&-1===C.aliases[e].indexOf(t)&&(C.aliases[e].push(t),h[t]=!0)}})),C.aliases[e].forEach((function(n){C.aliases[n]=[e].concat(C.aliases[e].filter((function(e){return n!==e})))})))}))}))}(n.key,a,n.default,C.arrays),Object.keys(l).forEach((function(e){(C.aliases[e]||[]).forEach((function(n){l[n]=l[e]}))})),Object.keys(C.counts).find(e=>R(e,C.arrays)?(F=Error(y("Invalid configuration: %s, opts.count excludes opts.array.",e)),!0):R(e,C.nargs)?(F=Error(y("Invalid configuration: %s, opts.count excludes opts.narg.",e)),!0):void 0);for(var v={_:[]},O=[],w=0;w1&&D["dot-notation"]&&(C.aliases[i[0]]||[]).forEach((function(e){e=e.split(".");var n=[].concat(i);n.shift(),e=e.concat(n),H(v,e,u)})),R(e,C.normalize)&&!R(e,C.arrays))&&[e].concat(C.aliases[e]||[]).forEach((function(e){v.__defineSetter__(e,(function(e){n=o.normalize(e)})),v.__defineGetter__(e,(function(){return"string"==typeof n?o.normalize(n):n}))}))}function N(e,n){"string"!=typeof n||"'"!==n[0]&&'"'!==n[0]||n[n.length-1]!==n[0]||(n=n.substring(1,n.length-1)),(R(e,C.bools)||R(e,C.counts))&&"string"==typeof n&&(n="true"===n);var t=Array.isArray(n)?n.map((function(n){return z(e,n)})):z(e,n);return R(e,C.counts)&&(Z(t)||"boolean"==typeof t)&&(t=c),R(e,C.normalize)&&R(e,C.arrays)&&(t=Array.isArray(n)?n.map(o.normalize):o.normalize(n)),t}function z(e,n){if(!R(e,C.strings)&&!R(e,C.bools)&&!Array.isArray(n)){(null!=(t=n)&&("number"==typeof t||!!/^0x[0-9a-f]+$/i.test(t)||!(t.length>1&&"0"===t[0])&&/^[-]?(?:\d+(?:\.\d*)?|\.\d+)(e[-+]?\d+)?$/.test(t))&&D["parse-numbers"]&&Number.isSafeInteger(Math.floor(n))||!Z(n)&&R(e,C.numbers))&&(n=Number(n))}var t;return n}function U(e,n){Object.keys(e).forEach((function(t){var r=e[t],u=n?n+"."+t:t;"object"==typeof r&&null!==r&&!Array.isArray(r)&&D["dot-notation"]?U(r,u):(!q(v,u.split("."))||R(u,C.arrays)&&D["combine-arrays"])&&L(u,r)}))}function I(e,n){if(void 0!==p){var t="string"==typeof p?p:"";Object.keys(process.env).forEach((function(u){if(""===t||0===u.lastIndexOf(t,0)){var o=u.split("__").map((function(e,n){return 0===n&&(e=e.substring(t.length)),r(e)}));(n&&C.configs[o.join(".")]||!n)&&!q(e,o)&&L(o.join("."),process.env[u])}}))}}function T(e,n,t,r=!1){Object.keys(t).forEach((function(u){q(e,u.split("."))||(H(e,u.split("."),t[u]),r&&(m[u]=!0),(n[u]||[]).forEach((function(n){q(e,n.split("."))||H(e,n.split("."),t[u])})))}))}function q(e,n){var t=e;D["dot-notation"]||(n=[n.join(".")]),n.slice(0,-1).forEach((function(e){t=t[e]||{}}));var r=n[n.length-1];return"object"==typeof t&&r in t}function H(e,n,t){var r=e;D["dot-notation"]||(n=[n.join(".")]),n.slice(0,-1).forEach((function(e,n){"object"==typeof r&&void 0===r[e]&&(r[e]={}),"object"!=typeof r[e]||Array.isArray(r[e])?(Array.isArray(r[e])?r[e].push({}):r[e]=[r[e],{}],r=r[e][r[e].length-1]):r=r[e]}));var u=n[n.length-1],o=R(n.join("."),C.arrays),i=Array.isArray(t),s=D["duplicate-arguments-array"];!s&&R(u,C.nargs)&&(s=!0,(!Z(r[u])&&1===C.nargs[u]||Array.isArray(r[u])&&r[u].length===C.nargs[u])&&(r[u]=void 0)),t===c?r[u]=c(r[u]):Array.isArray(r[u])?s&&o&&i?r[u]=D["flatten-duplicate-arrays"]?r[u].concat(t):(Array.isArray(r[u][0])?r[u]:[r[u]]).concat([t]):s||Boolean(o)!==Boolean(i)?r[u]=r[u].concat([t]):r[u]=t:void 0===r[u]&&o?r[u]=i?t:[t]:s&&void 0!==r[u]&&!R(u,C.counts)?r[u]=[r[u],t]:r[u]=t}function R(e,n){let t=[].concat(C.aliases[e]||[],e).find(e=>n.hasOwnProperty(e));return!!t&&n[t]}function V(e){return[].concat(...Object.keys(C).map(e=>C[e])).some((function(n){return n[e]}))}function W(e){return D["unknown-options-as-args"]&&function(e){if(e.match(E))return!1;if(function(e){if(e.match(E)||!e.match(/^-[^-]+/))return!1;for(var n,t=!0,r=e.slice(1).split(""),u=0;u{t[n]=e[n]=u})}catch(e){F=e}}))}(v),D["set-placeholder-key"]&&function(e){C.keys.forEach(n=>{~n.indexOf(".")||void 0===e[n]&&(e[n]=void 0)})}(v),Object.keys(C.counts).forEach((function(e){q(v,e.split("."))||L(e,0)})),d&&O.length&&(v[g]=[]),O.forEach((function(e){v[g].push(e)})),D["camel-case-expansion"]&&D["strip-dashed"]&&Object.keys(v).filter(e=>"--"!==e&&e.includes("-")).forEach(e=>{delete v[e]}),D["strip-aliased"]&&[].concat(...Object.keys(a).map(e=>a[e])).forEach(e=>{D["camel-case-expansion"]&&delete v[e.split(".").map(e=>r(e)).join(".")],delete v[e]}),{argv:v,error:F,aliases:C.aliases,newAliases:h,defaulted:m,configuration:D}}function c(e){return void 0!==e?e+1:1}function D(e,n){return a(e.slice(),n).argv}D.detailed=function(e,n){return a(e.slice(),n)},e.exports=D},function(e,n,t){"use strict";e.exports=function(e,n){if("string"!=typeof e)throw new TypeError("Expected a string");return n=void 0===n?"_":n,e.replace(/([a-z\d])([A-Z])/g,"$1"+n+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+n+"$2").toLowerCase()}},function(e,n){e.exports=function(e){[process.stdout,process.stderr].forEach((function(n){n._handle&&n.isTTY&&"function"==typeof n._handle.setBlocking&&n._handle.setBlocking(e)}))}},function(e,n,t){const r=t(41),u={};for(const e of Object.keys(r))u[r[e]]=e;const o={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};e.exports=o;for(const e of Object.keys(o)){if(!("channels"in o[e]))throw new Error("missing channels property: "+e);if(!("labels"in o[e]))throw new Error("missing channel labels property: "+e);if(o[e].labels.length!==o[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:n,labels:t}=o[e];delete o[e].channels,delete o[e].labels,Object.defineProperty(o[e],"channels",{value:n}),Object.defineProperty(o[e],"labels",{value:t})}o.rgb.hsl=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,u=Math.min(n,t,r),o=Math.max(n,t,r),i=o-u;let s,a;o===u?s=0:n===o?s=(t-r)/i:t===o?s=2+(r-n)/i:r===o&&(s=4+(n-t)/i),s=Math.min(60*s,360),s<0&&(s+=360);const c=(u+o)/2;return a=o===u?0:c<=.5?i/(o+u):i/(2-o-u),[s,100*a,100*c]},o.rgb.hsv=function(e){let n,t,r,u,o;const i=e[0]/255,s=e[1]/255,a=e[2]/255,c=Math.max(i,s,a),D=c-Math.min(i,s,a),l=function(e){return(c-e)/6/D+.5};return 0===D?(u=0,o=0):(o=D/c,n=l(i),t=l(s),r=l(a),i===c?u=r-t:s===c?u=1/3+n-r:a===c&&(u=2/3+t-n),u<0?u+=1:u>1&&(u-=1)),[360*u,100*o,100*c]},o.rgb.hwb=function(e){const n=e[0],t=e[1];let r=e[2];const u=o.rgb.hsl(e)[0],i=1/255*Math.min(n,Math.min(t,r));return r=1-1/255*Math.max(n,Math.max(t,r)),[u,100*i,100*r]},o.rgb.cmyk=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,u=Math.min(1-n,1-t,1-r);return[100*((1-n-u)/(1-u)||0),100*((1-t-u)/(1-u)||0),100*((1-r-u)/(1-u)||0),100*u]},o.rgb.keyword=function(e){const n=u[e];if(n)return n;let t,o=1/0;for(const n of Object.keys(r)){const u=r[n],a=(s=u,((i=e)[0]-s[0])**2+(i[1]-s[1])**2+(i[2]-s[2])**2);a.04045?((n+.055)/1.055)**2.4:n/12.92,t=t>.04045?((t+.055)/1.055)**2.4:t/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92,[100*(.4124*n+.3576*t+.1805*r),100*(.2126*n+.7152*t+.0722*r),100*(.0193*n+.1192*t+.9505*r)]},o.rgb.lab=function(e){const n=o.rgb.xyz(e);let t=n[0],r=n[1],u=n[2];return t/=95.047,r/=100,u/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,u=u>.008856?u**(1/3):7.787*u+16/116,[116*r-16,500*(t-r),200*(r-u)]},o.hsl.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;let u,o,i;if(0===t)return i=255*r,[i,i,i];u=r<.5?r*(1+t):r+t-r*t;const s=2*r-u,a=[0,0,0];for(let e=0;e<3;e++)o=n+1/3*-(e-1),o<0&&o++,o>1&&o--,i=6*o<1?s+6*(u-s)*o:2*o<1?u:3*o<2?s+(u-s)*(2/3-o)*6:s,a[e]=255*i;return a},o.hsl.hsv=function(e){const n=e[0];let t=e[1]/100,r=e[2]/100,u=t;const o=Math.max(r,.01);return r*=2,t*=r<=1?r:2-r,u*=o<=1?o:2-o,[n,100*(0===r?2*u/(o+u):2*t/(r+t)),100*((r+t)/2)]},o.hsv.rgb=function(e){const n=e[0]/60,t=e[1]/100;let r=e[2]/100;const u=Math.floor(n)%6,o=n-Math.floor(n),i=255*r*(1-t),s=255*r*(1-t*o),a=255*r*(1-t*(1-o));switch(r*=255,u){case 0:return[r,a,i];case 1:return[s,r,i];case 2:return[i,r,a];case 3:return[i,s,r];case 4:return[a,i,r];case 5:return[r,i,s]}},o.hsv.hsl=function(e){const n=e[0],t=e[1]/100,r=e[2]/100,u=Math.max(r,.01);let o,i;i=(2-t)*r;const s=(2-t)*u;return o=t*u,o/=s<=1?s:2-s,o=o||0,i/=2,[n,100*o,100*i]},o.hwb.rgb=function(e){const n=e[0]/360;let t=e[1]/100,r=e[2]/100;const u=t+r;let o;u>1&&(t/=u,r/=u);const i=Math.floor(6*n),s=1-r;o=6*n-i,0!=(1&i)&&(o=1-o);const a=t+o*(s-t);let c,D,l;switch(i){default:case 6:case 0:c=s,D=a,l=t;break;case 1:c=a,D=s,l=t;break;case 2:c=t,D=s,l=a;break;case 3:c=t,D=a,l=s;break;case 4:c=a,D=t,l=s;break;case 5:c=s,D=t,l=a}return[255*c,255*D,255*l]},o.cmyk.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100,u=e[3]/100;return[255*(1-Math.min(1,n*(1-u)+u)),255*(1-Math.min(1,t*(1-u)+u)),255*(1-Math.min(1,r*(1-u)+u))]},o.xyz.rgb=function(e){const n=e[0]/100,t=e[1]/100,r=e[2]/100;let u,o,i;return u=3.2406*n+-1.5372*t+-.4986*r,o=-.9689*n+1.8758*t+.0415*r,i=.0557*n+-.204*t+1.057*r,u=u>.0031308?1.055*u**(1/2.4)-.055:12.92*u,o=o>.0031308?1.055*o**(1/2.4)-.055:12.92*o,i=i>.0031308?1.055*i**(1/2.4)-.055:12.92*i,u=Math.min(Math.max(0,u),1),o=Math.min(Math.max(0,o),1),i=Math.min(Math.max(0,i),1),[255*u,255*o,255*i]},o.xyz.lab=function(e){let n=e[0],t=e[1],r=e[2];return n/=95.047,t/=100,r/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,t=t>.008856?t**(1/3):7.787*t+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,[116*t-16,500*(n-t),200*(t-r)]},o.lab.xyz=function(e){let n,t,r;t=(e[0]+16)/116,n=e[1]/500+t,r=t-e[2]/200;const u=t**3,o=n**3,i=r**3;return t=u>.008856?u:(t-16/116)/7.787,n=o>.008856?o:(n-16/116)/7.787,r=i>.008856?i:(r-16/116)/7.787,n*=95.047,t*=100,r*=108.883,[n,t,r]},o.lab.lch=function(e){const n=e[0],t=e[1],r=e[2];let u;return u=360*Math.atan2(r,t)/2/Math.PI,u<0&&(u+=360),[n,Math.sqrt(t*t+r*r),u]},o.lch.lab=function(e){const n=e[0],t=e[1],r=e[2]/360*2*Math.PI;return[n,t*Math.cos(r),t*Math.sin(r)]},o.rgb.ansi16=function(e,n=null){const[t,r,u]=e;let i=null===n?o.rgb.hsv(e)[2]:n;if(i=Math.round(i/50),0===i)return 30;let s=30+(Math.round(u/255)<<2|Math.round(r/255)<<1|Math.round(t/255));return 2===i&&(s+=60),s},o.hsv.ansi16=function(e){return o.rgb.ansi16(o.hsv.rgb(e),e[2])},o.rgb.ansi256=function(e){const n=e[0],t=e[1],r=e[2];return n===t&&t===r?n<8?16:n>248?231:Math.round((n-8)/247*24)+232:16+36*Math.round(n/255*5)+6*Math.round(t/255*5)+Math.round(r/255*5)},o.ansi16.rgb=function(e){let n=e%10;if(0===n||7===n)return e>50&&(n+=3.5),n=n/10.5*255,[n,n,n];const t=.5*(1+~~(e>50));return[(1&n)*t*255,(n>>1&1)*t*255,(n>>2&1)*t*255]},o.ansi256.rgb=function(e){if(e>=232){const n=10*(e-232)+8;return[n,n,n]}let n;return e-=16,[Math.floor(e/36)/5*255,Math.floor((n=e%36)/6)/5*255,n%6/5*255]},o.rgb.hex=function(e){const n=(((255&Math.round(e[0]))<<16)+((255&Math.round(e[1]))<<8)+(255&Math.round(e[2]))).toString(16).toUpperCase();return"000000".substring(n.length)+n},o.hex.rgb=function(e){const n=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!n)return[0,0,0];let t=n[0];3===n[0].length&&(t=t.split("").map(e=>e+e).join(""));const r=parseInt(t,16);return[r>>16&255,r>>8&255,255&r]},o.rgb.hcg=function(e){const n=e[0]/255,t=e[1]/255,r=e[2]/255,u=Math.max(Math.max(n,t),r),o=Math.min(Math.min(n,t),r),i=u-o;let s,a;return s=i<1?o/(1-i):0,a=i<=0?0:u===n?(t-r)/i%6:u===t?2+(r-n)/i:4+(n-t)/i,a/=6,a%=1,[360*a,100*i,100*s]},o.hsl.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=t<.5?2*n*t:2*n*(1-t);let u=0;return r<1&&(u=(t-.5*r)/(1-r)),[e[0],100*r,100*u]},o.hsv.hcg=function(e){const n=e[1]/100,t=e[2]/100,r=n*t;let u=0;return r<1&&(u=(t-r)/(1-r)),[e[0],100*r,100*u]},o.hcg.rgb=function(e){const n=e[0]/360,t=e[1]/100,r=e[2]/100;if(0===t)return[255*r,255*r,255*r];const u=[0,0,0],o=n%1*6,i=o%1,s=1-i;let a=0;switch(Math.floor(o)){case 0:u[0]=1,u[1]=i,u[2]=0;break;case 1:u[0]=s,u[1]=1,u[2]=0;break;case 2:u[0]=0,u[1]=1,u[2]=i;break;case 3:u[0]=0,u[1]=s,u[2]=1;break;case 4:u[0]=i,u[1]=0,u[2]=1;break;default:u[0]=1,u[1]=0,u[2]=s}return a=(1-t)*r,[255*(t*u[0]+a),255*(t*u[1]+a),255*(t*u[2]+a)]},o.hcg.hsv=function(e){const n=e[1]/100,t=n+e[2]/100*(1-n);let r=0;return t>0&&(r=n/t),[e[0],100*r,100*t]},o.hcg.hsl=function(e){const n=e[1]/100,t=e[2]/100*(1-n)+.5*n;let r=0;return t>0&&t<.5?r=n/(2*t):t>=.5&&t<1&&(r=n/(2*(1-t))),[e[0],100*r,100*t]},o.hcg.hwb=function(e){const n=e[1]/100,t=n+e[2]/100*(1-n);return[e[0],100*(t-n),100*(1-t)]},o.hwb.hcg=function(e){const n=e[1]/100,t=1-e[2]/100,r=t-n;let u=0;return r<1&&(u=(t-r)/(1-r)),[e[0],100*r,100*u]},o.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]},o.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]},o.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]},o.gray.hsl=function(e){return[0,0,e[0]]},o.gray.hsv=o.gray.hsl,o.gray.hwb=function(e){return[0,100,e[0]]},o.gray.cmyk=function(e){return[0,0,0,e[0]]},o.gray.lab=function(e){return[e[0],0,0]},o.gray.hex=function(e){const n=255&Math.round(e[0]/100*255),t=((n<<16)+(n<<8)+n).toString(16).toUpperCase();return"000000".substring(t.length)+t},o.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]}},function(e,n){function t(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id=16},function(e,n,t){const r=t(1),u=process.argv,o=process.env.PWD,i=u[1],{execAsync:s,updateJSFile:a,copyConfig:c}=t(18),D=t(22),l={mainPath:i,targetPath:o};D.debug&&console.log(D),async function(){console.log("šŸš€ Start updating..."),c(D.vscode,".vscode",".vscode",l),c(D.editor,".editorconfig",".editorconfig",l),await new Promise((e,n)=>{const t=`${i}/files/package.json`,u=`${o}/package.json`,s=JSON.parse(r.readFileSync(t)),a=JSON.parse(r.readFileSync(u));console.log("šŸ•› Updating dependencies..."),a&&(a.devDependencies?a.devDependencies={...a.devDependencies,...s.devDependencies}:a.devDependencies=s.devDependencies),r.writeFile(u,new Buffer.from(`${JSON.stringify(a,null,2)}\n`),t=>{if(t){const e=`āŒ ${t}`;console.log(e),n(e)}const r="āœ… Update dependecies finished successfully";console.log(r),e(r)})}),await a(D.eslint,".eslintrc.js","Eslint",l),await a(D.prettier,".prettierrc.js","Prettier",l),await s("rm -rf node_modules","šŸ•› Removing node_modules...","Remove node_modules"),await s("yarn","šŸ•› Installing dependencies...","Install dependencies"),await s(`yarn prettier-eslint --write ${o}/.*.js`,"šŸ•› Formating files","Format files")}()},function(e,n,t){const{exec:r}=t(19),u=t(1),o=t(20).ncp;function i(e){return"object"==typeof e&&e.constructor===Object}function s(e,n){return Object.keys(e).map(t=>i(n[t])&&i(e[t])?(n[t]={...n[t],...e[t]},n[t]):Array.isArray(n[t])&&Array.isArray(e[t])?(n[t]=[...new Set([...n[t],...e[t]])],n[t]):void(!Array.isArray(n[t])||Array.isArray(e[t])?Array.isArray(n[t])||!Array.isArray(e[t])||(n[t]=[...new Set(e[t].concat(n[t]))]):n[t]=[...new Set(n[t].concat(e[t]))])),n}function a(e){return new Promise(n=>{try{n(t(21)(e))}catch(e){n(e)}})}e.exports={execCommand:function(e,n,t){console.log(n),r(e,(e,n,r)=>{e?console.log(`āŒ error: ${e.message}`):(r&&console.log(`āš ļø stderr: ${r}`),n?console.log(`${n}\nāœ… ${t} finished`):console.log(`āœ… ${t} finished`))})},execAsync:function(e,n,t){return new Promise((u,o)=>{console.log(n),r(e,(e,n,r)=>{if(e)return console.log(`āŒ error: ${e.message}`),void o({error:e,stdout:n,stderr:r});r&&console.log(`āš ļø stderr: ${r}`),n?(console.log(`${n}\nāœ… ${t} finished`),u({error:e,stdout:n,stderr:r})):(console.log(`āœ… ${t} finished`),u({error:e,stdout:n,stderr:r}))})})},mergeObject:s,updateJSFile:async function(e,n,t,r){if(e)return new Promise(async(e,o)=>{const i=`${r.mainPath}/files/${n}`,c=`${r.targetPath}/${n}`,D=await a(i),l=await a(c);let f={};D.code&&"MODULE_NOT_FOUND"===D.code?console.log(`āŒ ${t} source file not found`):(console.log(`šŸ•› Updating ${t} settings...`),f=l.code&&"MODULE_NOT_FOUND"===l.code?D:s(D,l),u.writeFile(c,new Buffer.from(`module.exports = ${JSON.stringify(f,null,2)}\n`),n=>{if(n){const e=`āŒ Error on update ${t} settings\n${n}`;console.log(e),o(e)}const r=`āœ… Update ${t} settings finished successfully`;console.log(r),e(r)}))})},copyConfig:function(e,n,t,{mainPath:r,targetPath:u}){e&&(console.log(`šŸ•› Copying ${t} settings...`),new Promise((e,i)=>{o(`${r}/files/${n}`,`${u}/${n}`,n=>{n?i(`āŒ Failed to copy ${t} settings\n${n}`):e(`āœ… ${t} settings copied successfully`)})}).then(e=>console.log(`${e}`)).catch(e=>console.log(`${e}`)))}}},function(e,n){e.exports=require("child_process")},function(e,n,t){var r=t(1),u=t(0);function o(e,n,t,i){var s=i;i||(s=t,t={});var a=process.cwd(),c=u.resolve(a,e),D=u.resolve(a,n),l=t.filter,f=t.rename,p=t.transform,d=!1!==t.clobber,g=t.modified,h=t.dereference,m=null,y=0,F=0,C=0,E=t.limit||o.limit||16;function b(e){if(y++,l)if(l instanceof RegExp){if(!l.test(e))return B(!0)}else if("function"==typeof l&&!l(e))return B(!0);return function e(n){var t=h?r.stat:r.lstat;if(C>=E)return setImmediate((function(){e(n)}));C++,t(n,(function(e,t){var o,i,s={};return e?_(e):(s.name=n,s.mode=t.mode,s.mtime=t.mtime,s.atime=t.atime,t.isDirectory()?void A(i=(o=s).name.replace(c,D),(function(e){if(e)return function(e,n){r.mkdir(n,e.mode,(function(n){if(n)return _(n);w(e.name)}))}(o,i);w(o.name)})):t.isFile()?function(e){var n=e.name.replace(c,D);f&&(n=f(n));A(n,(function(t){return t?v(e,n):(d&&O(n,(function(){v(e,n)})),g?void(h?r.stat:r.lstat)(n,(function(t,r){if(!(e.mtime.getTime()>r.mtime.getTime()))return B();v(e,n)})):B())}))}(s):t.isSymbolicLink()?function(e){var n=e.replace(c,D);r.readlink(e,(function(e,t){if(e)return _(e);!function(e,n){h&&(e=u.resolve(a,e));A(n,(function(t){if(t)return x(e,n);r.readlink(n,(function(t,r){return t?_(t):(h&&(r=u.resolve(a,r)),r===e?B():O(n,(function(){x(e,n)})))}))}))}(t,n)}))}(n):void 0)}))}(e)}function v(e,n){var t=r.createReadStream(e.name),u=r.createWriteStream(n,{mode:e.mode});t.on("error",_),u.on("error",_),p?p(t,u,e):u.on("open",(function(){t.pipe(u)})),u.once("finish",(function(){g?(r.utimesSync(n,e.atime,e.mtime),B()):B()}))}function O(e,n){r.unlink(e,(function(e){return e?_(e):n()}))}function w(e){r.readdir(e,(function(n,t){return n?_(n):(t.forEach((function(n){b(u.join(e,n))})),B())}))}function x(e,n){r.symlink(e,n,(function(e){return e?_(e):B()}))}function A(e,n){r.lstat(e,(function(e){return e&&"ENOENT"===e.code?n(!0):n(!1)}))}function _(e){return t.stopOnError?s(e):(!m&&t.errs?m=r.createWriteStream(t.errs):m||(m=[]),void 0===m.write?m.push(e):m.write(e.stack+"\n\n"),B())}function B(e){if(e||C--,F++,y===F&&0===C&&void 0!==s)return s(m||null)}E=E<1?1:E>512?512:E,b(c)}e.exports=o,o.ncp=o},function(e,n){function t(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id=21},function(e,n,t){const r=t(23).option("VSCODE",{alias:"vsc",description:"Update .vscode settings",default:!1,type:"boolean"}).option("DEBUG",{alias:"dbg",description:"Debug mode",default:!1,type:"boolean"}).option("ESLINT",{alias:"esl",description:"Update .eslintrc.js settings",default:!0,type:"boolean"}).option("PRETTIER",{alias:"ptr",description:"Update .prettier.js settings",default:!0,type:"boolean"}).option("EDITOR",{alias:"edt",description:"Update .editorconfig settings",default:!1,type:"boolean"}).help().alias("help","h").showHelpOnFail(!1,"Specify --help for available options").argv;e.exports=r},function(e,n,t){"use strict";const r=t(24);function u(e,n){const o=r(e,n,t(8));var i;return i=o,Object.keys(i).forEach(e=>{"argv"===e?u.__defineGetter__(e,i.__lookupGetter__(e)):"function"==typeof i[e]?u[e]=i[e].bind(i):(u.__defineGetter__("$0",()=>i.$0),u.__defineGetter__("parsed",()=>i.parsed))}),o}u(process.argv.slice(2)),e.exports=u},function(e,n,t){"use strict";(function(r){!async function(){}();const u=t(4),o=t(1),i=t(9),s=t(30),a=t(12),c=t(0),D=t(32),l=t(43),f=t(45),p=t(7),d=t(14),g=t(46),{globalMiddlewareFactory:h}=t(11),m=t(3);function y(e,n){return c.relative(e,n)}(n=e.exports=function(e,n,F){e=e||[];const C={};let E=null,b=null,v={},O=[],w="",x={},A=null,_=null,B=null;const k=f({directory:c.resolve(r,"./locales"),updateFiles:!1});C.middleware=h(O,C),n||(n=process.cwd());C.scriptName=function(e){return C.customScriptName=!0,C.$0=e,C},/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])?C.$0=process.argv.slice(1,2):C.$0=process.argv.slice(0,1);C.$0=C.$0.map((e,t)=>{const r=y(n,e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&r.lengthj,C.resetOptions=C.reset=function(e){j.resets++,e=e||{},$=$||{};const n={};n.local=$.local?$.local:[],n.configObjects=$.configObjects?$.configObjects:[];const t={};n.local.forEach(n=>{t[n]=!0,(e[n]||[]).forEach(e=>{t[e]=!0})}),Object.assign(x,Object.keys(v).reduce((e,n)=>{const r=v[n].filter(e=>!(e in t));return r.length>0&&(e[n]=r),e},{})),v={};return["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"].forEach(e=>{n[e]=($[e]||[]).filter(e=>!t[e])}),["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce"].forEach(e=>{n[e]=p($[e],(e,n)=>!t[e])}),n.envPrefix=$.envPrefix,$=n,A=A?A.reset(t):D(C,k),_=_?_.reset(t):l(C,A,k),E=E?E.reset():i(C,A,_,O),b||(b=s(C,A,E)),J=null,w="",K=null,Q=!1,C.parsed=!1,C},C.resetOptions();let S=[];function M(){let e={};S.push(e),e.options=$,e.configObjects=$.configObjects.slice(0),e.exitProcess=Z,e.groups=v,A.freeze(),_.freeze(),E.freeze(),e.strict=H,e.completionCommand=J,e.output=w,e.exitError=K,e.hasOutput=Q,e.parsed=C.parsed,e.parseFn=T,e.parseContext=q,e.handlerFinishCommand=B}function P(){let e=S.pop();$=e.options,$.configObjects=e.configObjects,Z=e.exitProcess,v=e.groups,w=e.output,K=e.exitError,Q=e.hasOutput,C.parsed=e.parsed,A.unfreeze(),_.unfreeze(),E.unfreeze(),H=e.strict,J=e.completionCommand,T=e.parseFn,q=e.parseContext,B=e.handlerFinishCommand}function L(e,n,t){(n=[].concat(n)).forEach(n=>{$[e].push(n)})}function N(e,n,t,r,u){if(Array.isArray(r)){const n={};r.forEach(e=>{n[e]=u}),e(n)}else"object"==typeof r?Object.keys(r).forEach(n=>{e(n,r[n])}):$[t][r]=n?($[t][r]||[]).concat(u):u}function z(e){Object.keys($).forEach(n=>{const t=$[n];Array.isArray(t)?~t.indexOf(e)&&t.splice(t.indexOf(e),1):"object"==typeof t&&delete t[e]}),delete A.getDescriptions()[e]}C.boolean=function(e){return u("",[e],arguments.length),L("boolean",e),C},C.array=function(e){return u("",[e],arguments.length),L("array",e),C},C.number=function(e){return u("",[e],arguments.length),L("number",e),C},C.normalize=function(e){return u("",[e],arguments.length),L("normalize",e),C},C.count=function(e){return u("",[e],arguments.length),L("count",e),C},C.string=function(e){return u("",[e],arguments.length),L("string",e),C},C.requiresArg=function(e){return u("",[e],arguments.length),N(C.nargs,!1,"narg",e,1),C},C.skipValidation=function(e){return u("",[e],arguments.length),L("skipValidation",e),C},C.nargs=function(e,n){return u(" [number]",[e,n],arguments.length),N(C.nargs,!1,"narg",e,n),C},C.choices=function(e,n){return u(" [string|array]",[e,n],arguments.length),N(C.choices,!0,"choices",e,n),C},C.alias=function(e,n){return u(" [string|array]",[e,n],arguments.length),N(C.alias,!0,"alias",e,n),C},C.default=C.defaults=function(e,n,t){return u(" [*] [string]",[e,n,t],arguments.length),t&&($.defaultDescription[e]=t),"function"==typeof n&&($.defaultDescription[e]||($.defaultDescription[e]=A.functionDescription(n)),n=n.call()),N(C.default,!1,"default",e,n),C},C.describe=function(e,n){return u(" [string]",[e,n],arguments.length),N(C.describe,!1,"key",e,!0),A.describe(e,n),C},C.demandOption=function(e,n){return u(" [string]",[e,n],arguments.length),N(C.demandOption,!1,"demandedOptions",e,n),C},C.coerce=function(e,n){return u(" [function]",[e,n],arguments.length),N(C.coerce,!1,"coerce",e,n),C},C.config=function(e,t,r){return u("[object|string] [string|function] [function]",[e,t,r],arguments.length),"object"==typeof e?(e=g(e,n,C.getParserConfiguration()["deep-merge-config"]),$.configObjects=($.configObjects||[]).concat(e),C):("function"==typeof t&&(r=t,t=null),e=e||"config",C.describe(e,t||A.deferY18nLookup("Path to JSON config file")),(Array.isArray(e)?e:[e]).forEach(e=>{$.config[e]=r||!0}),C)},C.example=function(e,n){return u(" [string]",[e,n],arguments.length),A.example(e,n),C},C.command=function(e,n,t,r,o){return u(" [string|boolean] [function|object] [function] [array]",[e,n,t,r,o],arguments.length),E.addHandler(e,n,t,r,o),C},C.commandDir=function(e,n){u(" [object]",[e,n],arguments.length);const r=F||t(8);return E.addDirectory(e,C.getContext(),r,t(47)(),n),C},C.demand=C.required=C.require=function(e,n,t){return Array.isArray(n)?(n.forEach(e=>{C.demandOption(e,t)}),n=1/0):"number"!=typeof n&&(t=n,n=1/0),"number"==typeof e?C.demandCommand(e,n,t,t):Array.isArray(e)?e.forEach(e=>{C.demandOption(e,t)}):"string"==typeof t?C.demandOption(e,t):!0!==t&&void 0!==t||C.demandOption(e),C},C.demandCommand=function(e,n,t,r){return u("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,n,t,r],arguments.length),void 0===e&&(e=1),"number"!=typeof n&&(t=n,n=1/0),C.global("_",!1),$.demandedCommands._={min:e,max:n,minMsg:t,maxMsg:r},C},C.getDemandedOptions=()=>(u([],0),$.demandedOptions),C.getDemandedCommands=()=>(u([],0),$.demandedCommands),C.implies=function(e,n){return u(" [number|string|array]",[e,n],arguments.length),_.implies(e,n),C},C.conflicts=function(e,n){return u(" [string|array]",[e,n],arguments.length),_.conflicts(e,n),C},C.usage=function(e,n,t,r){if(u(" [string|boolean] [function|object] [function]",[e,n,t,r],arguments.length),void 0!==n){if((e||"").match(/^\$0( |$)/))return C.command(e,n,t,r);throw new m(".usage() description must start with $0 if being used as alias for .command()")}return A.usage(e),C},C.epilogue=C.epilog=function(e){return u("",[e],arguments.length),A.epilog(e),C},C.fail=function(e){return u("",[e],arguments.length),A.failFn(e),C},C.onFinishCommand=function(e){return u("",[e],arguments.length),B=e,C},C.getHandlerFinishCommand=()=>B,C.check=function(e,n){return u(" [boolean]",[e,n],arguments.length),_.check(e,!1!==n),C},C.global=function(e,n){return u(" [boolean]",[e,n],arguments.length),e=[].concat(e),!1!==n?$.local=$.local.filter(n=>-1===e.indexOf(n)):e.forEach(e=>{-1===$.local.indexOf(e)&&$.local.push(e)}),C},C.pkgConf=function(e,t){u(" [string]",[e,t],arguments.length);let r=null;const o=I(t||n);return o[e]&&"object"==typeof o[e]&&(r=g(o[e],t||n,C.getParserConfiguration()["deep-merge-config"]),$.configObjects=($.configObjects||[]).concat(r)),C};const U={};function I(e){const n=e||"*";if(U[n])return U[n];const r=t(48);let u={};try{let n=e||t(54)(F||t(8));!e&&c.extname(n)&&(n=c.dirname(n));const i=r.sync("package.json",{cwd:n});u=JSON.parse(o.readFileSync(i))}catch(e){}return U[n]=u||{},U[n]}let T=null,q=null;C.parse=function(n,t,r){if(u("[string|array] [function|boolean|object] [function]",[n,t,r],arguments.length),M(),void 0===n){const n=C._parseArgs(e),t=C.parsed;return P(),C.parsed=t,n}"object"==typeof t&&(q=t,t=r),"function"==typeof t&&(T=t,t=null),t||(e=n),T&&(Z=!1);const o=C._parseArgs(n,t);return b.setParsed(C.parsed),T&&T(K,o,w),P(),o},C._getParseContext=()=>q||{},C._hasParseCallback=()=>!!T,C.option=C.options=function(e,n){if(u(" [object]",[e,n],arguments.length),"object"==typeof e)Object.keys(e).forEach(n=>{C.options(n,e[n])});else{"object"!=typeof n&&(n={}),$.key[e]=!0,n.alias&&C.alias(e,n.alias);const t=n.demand||n.required||n.require;t&&C.demand(e,t),n.demandOption&&C.demandOption(e,"string"==typeof n.demandOption?n.demandOption:void 0),"conflicts"in n&&C.conflicts(e,n.conflicts),"default"in n&&C.default(e,n.default),"implies"in n&&C.implies(e,n.implies),"nargs"in n&&C.nargs(e,n.nargs),n.config&&C.config(e,n.configParser),n.normalize&&C.normalize(e),"choices"in n&&C.choices(e,n.choices),"coerce"in n&&C.coerce(e,n.coerce),"group"in n&&C.group(e,n.group),(n.boolean||"boolean"===n.type)&&(C.boolean(e),n.alias&&C.boolean(n.alias)),(n.array||"array"===n.type)&&(C.array(e),n.alias&&C.array(n.alias)),(n.number||"number"===n.type)&&(C.number(e),n.alias&&C.number(n.alias)),(n.string||"string"===n.type)&&(C.string(e),n.alias&&C.string(n.alias)),(n.count||"count"===n.type)&&C.count(e),"boolean"==typeof n.global&&C.global(e,n.global),n.defaultDescription&&($.defaultDescription[e]=n.defaultDescription),n.skipValidation&&C.skipValidation(e);const r=n.describe||n.description||n.desc;C.describe(e,r),n.hidden&&C.hide(e),n.requiresArg&&C.requiresArg(e)}return C},C.getOptions=()=>$,C.positional=function(e,n){if(u(" ",[e,n],arguments.length),0===j.resets)throw new m(".positional() can only be called in a command's builder function");const t=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];n=p(n,(e,n)=>{let r=-1!==t.indexOf(e);return"type"===e&&-1===["string","number","boolean"].indexOf(n)&&(r=!1),r});const r=j.fullCommands[j.fullCommands.length-1],o=r?E.cmdToParseOptions(r):{array:[],alias:{},default:{},demand:{}};return Object.keys(o).forEach(t=>{Array.isArray(o[t])?-1!==o[t].indexOf(e)&&(n[t]=!0):!o[t][e]||t in n||(n[t]=o[t][e])}),C.group(e,A.getPositionalGroupName()),C.option(e,n)},C.group=function(e,n){u(" ",[e,n],arguments.length);const t=x[n]||v[n];x[n]&&delete x[n];const r={};return v[n]=(t||[]).concat(e).filter(e=>!r[e]&&(r[e]=!0)),C},C.getGroups=()=>Object.assign({},v,x),C.env=function(e){return u("[string|boolean]",[e],arguments.length),$.envPrefix=!1===e?void 0:e||"",C},C.wrap=function(e){return u("",[e],arguments.length),A.wrap(e),C};let H=!1;C.strict=function(e){return u("[boolean]",[e],arguments.length),H=!1!==e,C},C.getStrict=()=>H;let R={};C.parserConfiguration=function(e){return u("",[e],arguments.length),R=e,C},C.getParserConfiguration=()=>R,C.showHelp=function(n){return u("[string|function]",[n],arguments.length),C.parsed||C._parseArgs(e),E.hasDefaultCommand()&&(j.resets++,E.runDefaultBuilderOn(C,!0)),A.showHelp(n),C};let V=null;function W(){return I().version||"unknown"}C.version=function(e,n,t){const r="version";if(u("[boolean|string] [string] [string]",[e,n,t],arguments.length),V&&(z(V),A.version(void 0),V=null),0===arguments.length)t=W(),e=r;else if(1===arguments.length){if(!1===e)return C;t=e,e=r}else 2===arguments.length&&(t=n,n=null);return V="string"==typeof e?e:r,n=n||A.deferY18nLookup("Show version number"),A.version(t||void 0),C.boolean(V),C.describe(V,n),C};let G=null;C.addHelpOpt=C.help=function(e,n){const t="help";return u("[string|boolean] [string]",[e,n],arguments.length),G&&(z(G),G=null),1===arguments.length&&!1===e||(G="string"==typeof e?e:t,C.boolean(G),C.describe(G,n||A.deferY18nLookup("Show help"))),C};$.showHiddenOpt="show-hidden",C.addShowHiddenOpt=C.showHidden=function(e,n){if(u("[string|boolean] [string]",[e,n],arguments.length),1===arguments.length&&!1===e)return C;const t="string"==typeof e?e:"show-hidden";return C.boolean(t),C.describe(t,n||A.deferY18nLookup("Show hidden options")),$.showHiddenOpt=t,C},C.hide=function(e){return u("",[e],arguments.length),$.hiddenOptions.push(e),C},C.showHelpOnFail=function(e,n){return u("[boolean|string] [string]",[e,n],arguments.length),A.showHelpOnFail(e,n),C};var Z=!0;C.exitProcess=function(e){return u("[boolean]",[e],arguments.length),"boolean"!=typeof e&&(e=!0),Z=e,C},C.getExitProcess=()=>Z;var J=null;C.completion=function(e,n,t){return u("[string] [string|boolean|function] [function]",[e,n,t],arguments.length),"function"==typeof n&&(t=n,n=null),J=e||J||"completion",n||!1===n||(n="generate completion script"),C.command(J,n),t&&b.registerFunction(t),C},C.showCompletionScript=function(e,n){return u("[string] [string]",[e,n],arguments.length),e=e||C.$0,X.log(b.generateCompletionScript(e,n||J||"completion")),C},C.getCompletion=function(e,n){u(" ",[e,n],arguments.length),b.getCompletion(e,n)},C.locale=function(e){return u("[string]",[e],arguments.length),0===arguments.length?(ne(),k.getLocale()):(Y=!1,k.setLocale(e),C)},C.updateStrings=C.updateLocale=function(e){return u("",[e],arguments.length),Y=!1,k.updateLocale(e),C};let Y=!0;C.detectLocale=function(e){return u("",[e],arguments.length),Y=e,C},C.getDetectLocale=()=>Y;var Q=!1,K=null;C.exit=(e,n)=>{Q=!0,K=n,Z&&process.exit(e)};const X={log(){const e=[];for(let n=0;nX,C._hasOutput=()=>Q,C._setHasOutput=()=>{Q=!0},C.recommendCommands=function(e){return u("[boolean]",[e],arguments.length),ee="boolean"!=typeof e||e,C},C.getUsageInstance=()=>A,C.getValidationInstance=()=>_,C.getCommandInstance=()=>E,C.terminalWidth=()=>(u([],0),void 0!==process.stdout.columns?process.stdout.columns:null),Object.defineProperty(C,"argv",{get:()=>C._parseArgs(e),enumerable:!0}),C._parseArgs=function(n,t,r,u){let o=!!r;n=n||e,$.__=k.__,$.configuration=C.getParserConfiguration();const i=!!$.configuration["populate--"],s=Object.assign({},$.configuration,{"populate--":!0}),c=a.detailed(n,Object.assign({},$,{configuration:s}));let D=c.argv;q&&(D=Object.assign({},D,q));const l=c.aliases;D.$0=C.$0,C.parsed=c;try{if(ne(),t)return i||r?D:C._copyDoubleDash(D);if(G){~[G].concat(l[G]||[]).filter(e=>e.length>1).indexOf(D._[D._.length-1])&&(D._.pop(),D[G]=!0)}const e=E.getCommands(),s=b.completionKey in D,a=D[G]||s,f=a&&(e.length>1||"$0"!==e[0]);if(D._.length){if(e.length){let n;for(let t,r=u||0;void 0!==D._[r];r++){if(t=String(D._[r]),~e.indexOf(t)&&t!==J){const e=E.runCommand(t,C,c,r+1);return i?e:C._copyDoubleDash(e)}if(!n&&t!==J){n=t;break}}if(E.hasDefaultCommand()&&!f){const e=E.runCommand(null,C,c);return i?e:C._copyDoubleDash(e)}ee&&n&&!a&&_.recommendCommands(n,e)}J&&~D._.indexOf(J)&&!s&&(Z&&d(!0),C.showCompletionScript(),C.exit(0))}else if(E.hasDefaultCommand()&&!f){const e=E.runCommand(null,C,c);return i?e:C._copyDoubleDash(e)}if(s){Z&&d(!0);const e=n.slice(n.indexOf(`--${b.completionKey}`)+1);return b.getCompletion(e,e=>{(e||[]).forEach(e=>{X.log(e)}),C.exit(0)}),i||r?D:C._copyDoubleDash(D)}if(Q||Object.keys(D).forEach(e=>{e===G&&D[e]?(Z&&d(!0),o=!0,C.showHelp("log"),C.exit(0)):e===V&&D[e]&&(Z&&d(!0),o=!0,A.showVersion(),C.exit(0))}),!o&&$.skipValidation.length>0&&(o=Object.keys(D).some(e=>$.skipValidation.indexOf(e)>=0&&!0===D[e])),!o){if(c.error)throw new m(c.error.message);s||C._runValidation(D,l,{},c.error)}}catch(e){if(!(e instanceof m))throw e;A.fail(e.message,e)}return i||r?D:C._copyDoubleDash(D)},C._copyDoubleDash=function(e){if(!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e},C._runValidation=function(e,n,t,r){if(r)throw new m(r.message);_.nonOptionCount(e),_.requiredArguments(e),H&&_.unknownArguments(e,n,t),_.customChecks(e,n),_.limitedChoices(e),_.implications(e),_.conflicting(e)},C.help(),C.version(),C}).Parser=a,n.rebase=y}).call(this,"/")},function(e,n,t){"use strict";const r=(e,n)=>{if("string"!=typeof e&&!Array.isArray(e))throw new TypeError("Expected the input to be `string | string[]`");n=Object.assign({pascalCase:!1},n);return 0===(e=Array.isArray(e)?e.map(e=>e.trim()).filter(e=>e.length).join("-"):e.trim()).length?"":1===e.length?n.pascalCase?e.toUpperCase():e.toLowerCase():(e!==e.toLowerCase()&&(e=(e=>{let n=!1,t=!1,r=!1;for(let u=0;un.toUpperCase()).replace(/\d+(\w|$)/g,e=>e.toUpperCase()),t=e,n.pascalCase?t.charAt(0).toUpperCase()+t.slice(1):t);var t};e.exports=r,e.exports.default=r},function(e,n){e.exports=function(e){if(Array.isArray(e))return e.map(e=>"string"!=typeof e?e+"":e);e=e.trim();for(var n=0,t=null,r=null,u=null,o=[],i=0;i{process.nextTick(()=>{r(e)})}).catch(e=>{process.nextTick(()=>{throw e})}):r(e)}return a(c,D,e=>{r(e)})}const f=u.getCommandHandlers();for(let n=0,r=t.length;n{const n=u.parseCommand(e[0]).cmd;if(-1===t.indexOf(n))if(s){const t=e[1]||"";o.push(n.replace(/:/g,"\\:")+":"+t)}else o.push(n)}),c.match(/^-/)||""===c&&0===o.length){const r=n.getDescriptions();Object.keys(e.getOptions().key).forEach(e=>{if([e].concat(i[e]||[]).every(e=>-1===t.indexOf(`--${e}`))){const n=e=>/^[^0-9]$/.test(e),t=!(e=>/^--/.test(e))(c)&&n(e)?"-":"--";if(s){const n=r[e]||"";o.push(t+`${e.replace(/:/g,"\\:")}:${n.replace("__yargsString__:","")}`)}else o.push(t+e)}})}r(o)},o.generateCompletionScript=function(e,n){const u=t(31);let o=s?u.completionZshTemplate:u.completionShTemplate;const i=r.basename(e);return e.match(/\.js$/)&&(e=`./${e}`),o=o.replace(/{{app_name}}/g,i),o=o.replace(/{{completion_command}}/g,n),o.replace(/{{app_path}}/g,e)};let a=null;return o.registerFunction=e=>{a=e},o}},function(e,n){n.completionShTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.bashrc\n# or {{app_path}} {{completion_command}} >> ~/.bash_profile on OSX.\n#\n_yargs_completions()\n{\n local cur_word args type_list\n\n cur_word="${COMP_WORDS[COMP_CWORD]}"\n args=("${COMP_WORDS[@]}")\n\n # ask yargs to generate completions.\n type_list=$({{app_path}} --get-yargs-completions "${args[@]}")\n\n COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) )\n\n # if no match was found, fall back to filename completion\n if [ ${#COMPREPLY[@]} -eq 0 ]; then\n COMPREPLY=()\n fi\n\n return 0\n}\ncomplete -o default -F _yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n',n.completionZshTemplate='###-begin-{{app_name}}-completions-###\n#\n# yargs command completion script\n#\n# Installation: {{app_path}} {{completion_command}} >> ~/.zshrc\n# or {{app_path}} {{completion_command}} >> ~/.zsh_profile on OSX.\n#\n_{{app_name}}_yargs_completions()\n{\n local reply\n local si=$IFS\n IFS=$\'\n\' reply=($(COMP_CWORD="$((CURRENT-1))" COMP_LINE="$BUFFER" COMP_POINT="$CURSOR" {{app_path}} --get-yargs-completions "${words[@]}"))\n IFS=$si\n _describe \'values\' reply\n}\ncompdef _{{app_name}}_yargs_completions {{app_name}}\n###-end-{{app_name}}-completions-###\n'},function(e,n,t){"use strict";const r=t(13),u=t(5),o=t(7),i=t(0),s=t(14),a=t(3);e.exports=function(e,n){const c=n.__,D={},l=[];D.failFn=function(e){l.push(e)};let f=null,p=!0;D.showHelpOnFail=function(e,n){return"string"==typeof e?(n=e,e=!0):void 0===e&&(e=!0),f=n,p=e,D};let d=!1;D.fail=function(n,t){const r=e._getLoggerInstance();if(!l.length){if(e.getExitProcess()&&s(!0),d||(d=!0,p&&(e.showHelp("error"),r.error()),(n||t)&&r.error(n||t),f&&((n||t)&&r.error(""),r.error(f))),t=t||new a(n),e.getExitProcess())return e.exit(1);if(e._hasParseCallback())return e.exit(1,t);throw t}for(let e=l.length-1;e>=0;--e)l[e](n,t,D)};let g=[],h=!1;D.usage=(e,n)=>null===e?(h=!0,void(g=[])):(h=!1,g.push([e,n||""]),D),D.getUsage=()=>g,D.getUsageDisabled=()=>h,D.getPositionalGroupName=()=>c("Positionals:");let m=[];D.example=(e,n)=>{m.push([e,n||""])};let y=[];D.command=function(e,n,t,r){t&&(y=y.map(e=>(e[2]=!1,e))),y.push([e,n||"",t,r])},D.getCommands=()=>y;let F={};D.describe=function(e,n){"object"==typeof e?Object.keys(e).forEach(n=>{D.describe(n,e[n])}):F[e]=n},D.getDescriptions=()=>F;let C=[];D.epilog=e=>{C.push(e)};let E,b=!1;function v(){return b||(E="object"==typeof process&&process.stdout&&process.stdout.columns?Math.min(80,process.stdout.columns):80,b=!0),E}D.wrap=e=>{b=!0,E=e};D.deferY18nLookup=e=>"__yargsString__:"+e;function O(e,n,t){let r=0;return Array.isArray(e)||(e=Object.keys(e).map(n=>[e[n]])),e.forEach(e=>{r=Math.max(u(t?`${t} ${e[0]}`:e[0]),r)}),n&&(r=Math.min(r,parseInt(.5*n,10))),r}let w;function x(n){return e.getOptions().hiddenOptions.indexOf(n)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}function A(e,n){let t=`[${c("default:")} `;if(void 0===e&&!n)return null;if(n)t+=n;else switch(typeof e){case"string":t+=`"${e}"`;break;case"object":t+=JSON.stringify(e);break;default:t+=e}return`${t}]`}D.help=function(){if(w)return w;!function(){const n=e.getDemandedOptions(),t=e.getOptions();(Object.keys(t.alias)||[]).forEach(r=>{t.alias[r].forEach(u=>{F[u]&&D.describe(r,F[u]),u in n&&e.demandOption(r,n[u]),~t.boolean.indexOf(u)&&e.boolean(r),~t.count.indexOf(u)&&e.count(r),~t.string.indexOf(u)&&e.string(r),~t.normalize.indexOf(u)&&e.normalize(r),~t.array.indexOf(u)&&e.array(r),~t.number.indexOf(u)&&e.number(r)})})}();const n=e.customScriptName?e.$0:i.basename(e.$0),r=e.getDemandedOptions(),u=e.getDemandedCommands(),o=e.getGroups(),s=e.getOptions();let a=[];a=a.concat(Object.keys(F)),a=a.concat(Object.keys(r)),a=a.concat(Object.keys(u)),a=a.concat(Object.keys(s.default)),a=a.filter(x),a=Object.keys(a.reduce((e,n)=>("_"!==n&&(e[n]=!0),e),{}));const l=v(),f=t(36)({width:l,wrap:!!l});if(!h)if(g.length)g.forEach(e=>{f.div(`${e[0].replace(/\$0/g,n)}`),e[1]&&f.div({text:`${e[1]}`,padding:[1,0,0,0]})}),f.div();else if(y.length){let e=null;e=u._?`${n} <${c("command")}>\n`:`${n} [${c("command")}]\n`,f.div(`${e}`)}if(y.length){f.div(c("Commands:"));const t=e.getContext(),r=t.commands.length?`${t.commands.join(" ")} `:"";!0===e.getParserConfiguration()["sort-commands"]&&(y=y.sort((e,n)=>e[0].localeCompare(n[0]))),y.forEach(e=>{const t=`${n} ${r}${e[0].replace(/^\$0 ?/,"")}`;f.span({text:t,padding:[0,2,0,2],width:O(y,l,`${n}${r}`)+4},{text:e[1]});const u=[];e[2]&&u.push(`[${c("default:").slice(0,-1)}]`),e[3]&&e[3].length&&u.push(`[${c("aliases:")} ${e[3].join(", ")}]`),u.length?f.div({text:u.join(" "),padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}const p=(Object.keys(s.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);if(a=a.filter(n=>!e.parsed.newAliases[n]&&p.every(e=>-1===(s.alias[e]||[]).indexOf(n))),o["Options:"]||(o["Options:"]=[]),function(e,n,t){let r=[],u=null;Object.keys(t).forEach(e=>{r=r.concat(t[e])}),e.forEach(e=>{u=[e].concat(n[e]),u.some(e=>-1!==r.indexOf(e))||t["Options:"].push(e)})}(a,s.alias,o),Object.keys(o).forEach(e=>{if(!o[e].length)return;const n=o[e].filter(x).map(e=>{if(~p.indexOf(e))return e;for(let n,t=0;void 0!==(n=p[t]);t++)if(~(s.alias[n]||[]).indexOf(e))return n;return e});if(n.length<1)return;f.div(c(e));const t=n.reduce((n,t)=>(n[t]=[t].concat(s.alias[t]||[]).map(n=>e===D.getPositionalGroupName()?n:(/^[^0-9]$/.test(n)?"-":"--")+n).join(", "),n),{});n.forEach(e=>{const n=t[e];let u=F[e]||"",o=null;~u.lastIndexOf("__yargsString__:")&&(u=c(u.substring("__yargsString__:".length))),~s.boolean.indexOf(e)&&(o=`[${c("boolean")}]`),~s.count.indexOf(e)&&(o=`[${c("count")}]`),~s.string.indexOf(e)&&(o=`[${c("string")}]`),~s.normalize.indexOf(e)&&(o=`[${c("string")}]`),~s.array.indexOf(e)&&(o=`[${c("array")}]`),~s.number.indexOf(e)&&(o=`[${c("number")}]`);const i=[o,e in r?`[${c("required")}]`:null,s.choices&&s.choices[e]?`[${c("choices:")} ${D.stringifiedValues(s.choices[e])}]`:null,A(s.default[e],s.defaultDescription[e])].filter(Boolean).join(" ");f.span({text:n,padding:[0,2,0,2],width:O(t,l)+4},u),i?f.div({text:i,padding:[0,0,0,2],align:"right"}):f.div()}),f.div()}),m.length&&(f.div(c("Examples:")),m.forEach(e=>{e[0]=e[0].replace(/\$0/g,n)}),m.forEach(e=>{""===e[1]?f.div({text:e[0],padding:[0,2,0,2]}):f.div({text:e[0],padding:[0,2,0,2],width:O(m,l)+4},{text:e[1]})}),f.div()),C.length>0){const e=C.map(e=>e.replace(/\$0/g,n)).join("\n");f.div(`${e}\n`)}return f.toString().replace(/\s*$/,"")},D.cacheHelpMessage=function(){w=this.help()},D.showHelp=n=>{const t=e._getLoggerInstance();n||(n="error"),("function"==typeof n?n:t[n])(D.help())},D.functionDescription=e=>["(",e.name?r(e.name,"-"):c("generated-value"),")"].join(""),D.stringifiedValues=function(e,n){let t="";const r=n||", ",u=[].concat(e);return e&&u.length?(u.forEach(e=>{t.length&&(t+=r),t+=JSON.stringify(e)}),t):t};let _=null;D.version=e=>{_=e},D.showVersion=()=>{e._getLoggerInstance().log(_)},D.reset=function(e){return f=null,d=!1,g=[],h=!1,C=[],m=[],y=[],F=o(F,(n,t)=>!e[n]),D};let B=[];return D.freeze=function(){let e={};B.push(e),e.failMessage=f,e.failureOutput=d,e.usages=g,e.usageDisabled=h,e.epilogs=C,e.examples=m,e.commands=y,e.descriptions=F},D.unfreeze=function(){let e=B.pop();f=e.failMessage,d=e.failureOutput,g=e.usages,h=e.usageDisabled,C=e.epilogs,m=e.examples,y=e.commands,F=e.descriptions},D}},function(e,n,t){"use strict";e.exports=({onlyFirst:e=!1}={})=>{const n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:[a-zA-Z\\d]*(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,e?void 0:"g")}},function(e,n,t){"use strict";const r=e=>!Number.isNaN(e)&&(e>=4352&&(e<=4447||9001===e||9002===e||11904<=e&&e<=12871&&12351!==e||12880<=e&&e<=19903||19968<=e&&e<=42182||43360<=e&&e<=43388||44032<=e&&e<=55203||63744<=e&&e<=64255||65040<=e&&e<=65049||65072<=e&&e<=65131||65281<=e&&e<=65376||65504<=e&&e<=65510||110592<=e&&e<=110593||127488<=e&&e<=127569||131072<=e&&e<=262141));e.exports=r,e.exports.default=r},function(e,n,t){"use strict";e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}},function(e,n,t){"use strict";const r=t(5),u=t(6),o=t(37),i={right:function(e,n){e=e.trim();const t=r(e);if(t=n)return e;return" ".repeat(n-t>>1)+e}};class s{constructor(e){this.width=e.width,this.wrap=e.wrap,this.rows=[]}span(...e){this.div(...e).span=!0}resetOutput(){this.rows=[]}div(...e){if(0===e.length&&this.div(""),this.wrap&&this._shouldApplyLayoutDSL(...e))return this._applyLayoutDSL(e[0]);const n=e.map(e=>"string"==typeof e?this._colFromString(e):e);return this.rows.push(n),n}_shouldApplyLayoutDSL(...e){return 1===e.length&&"string"==typeof e[0]&&/[\t\n]/.test(e[0])}_applyLayoutDSL(e){const n=e.split("\n").map(e=>e.split("\t"));let t=0;return n.forEach(e=>{e.length>1&&r(e[0])>t&&(t=Math.min(Math.floor(.5*this.width),r(e[0])))}),n.forEach(e=>{this.div(...e.map((n,r)=>({text:n.trim(),padding:this._measurePadding(n),width:0===r&&e.length>1?t:void 0})))}),this.rows[this.rows.length-1]}_colFromString(e){return{text:e,padding:this._measurePadding(e)}}_measurePadding(e){const n=u(e);return[0,n.match(/\s*$/)[0].length,0,n.match(/^\s*/)[0].length]}toString(){const e=[];return this.rows.forEach(n=>{this.rowToString(n,e)}),e.filter(e=>!e.hidden).map(e=>e.text).join("\n")}rowToString(e,n){return this._rasterize(e).forEach((t,u)=>{let o="";t.forEach((t,s)=>{const{width:c}=e[s],D=this._negatePadding(e[s]);let l=t;D>r(t)&&(l+=" ".repeat(D-r(t))),e[s].align&&"left"!==e[s].align&&this.wrap&&(l=i[e[s].align](l,D),r(l)0&&(o=this._renderInline(o,n[n.length-1]))}),n.push({text:o.replace(/ +$/,""),span:e.span})}),n}_renderInline(e,n){const t=e.match(/^ */)[0].length,u=n.text,o=r(u.trimRight());return n.span?this.wrap?t{e.width=t[u],r=this.wrap?o(e.text,this._negatePadding(e),{hard:!0}).split("\n"):e.text.split("\n"),e.border&&(r.unshift("."+"-".repeat(this._negatePadding(e)+2)+"."),r.push("'"+"-".repeat(this._negatePadding(e)+2)+"'")),e.padding&&(r.unshift(...new Array(e.padding[0]||0).fill("")),r.push(...new Array(e.padding[2]||0).fill(""))),r.forEach((e,t)=>{n[t]||n.push([]);const r=n[t];for(let e=0;ee.width||r(e.text));let n=e.length,t=this.width;const u=e.map(e=>{if(e.width)return n--,t-=e.width,e.width}),o=n?Math.floor(t/n):0;return u.map((n,t)=>void 0===n?Math.max(o,function(e){const n=e.padding||[],t=1+(n[3]||0)+(n[1]||0);if(e.border)return t+4;return t}(e[t])):n)}}function a(e,n,t){return e.border?/[.']-+[.']/.test(n)?"":0!==n.trim().length?t:" ":""}function c(){if("object"==typeof process&&process.stdout&&process.stdout.columns)return process.stdout.columns}e.exports=function(e={}){return new s({width:e.width||c()||80,wrap:!1!==e.wrap})}},function(e,n,t){"use strict";const r=t(5),u=t(6),o=t(38),i=new Set(["","Ā›"]),s=e=>`${i.values().next().value}[${e}m`,a=(e,n,t)=>{const o=[...n];let s=!1,a=r(u(e[e.length-1]));for(const[n,u]of o.entries()){const c=r(u);if(a+c<=t?e[e.length-1]+=u:(e.push(u),a=0),i.has(u))s=!0;else if(s&&"m"===u){s=!1;continue}s||(a+=c,a===t&&n0&&e.length>1&&(e[e.length-2]+=e.pop())},c=e=>{const n=e.split(" ");let t=n.length;for(;t>0&&!(r(n[t-1])>0);)t--;return t===n.length?e:n.slice(0,t).join(" ")+n.slice(t).join("")},D=(e,n,t={})=>{if(!1!==t.trim&&""===e.trim())return"";let u,D="",l="";const f=(e=>e.split(" ").map(e=>r(e)))(e);let p=[""];for(const[u,o]of e.split(" ").entries()){!1!==t.trim&&(p[p.length-1]=p[p.length-1].trimLeft());let e=r(p[p.length-1]);if(0!==u&&(e>=n&&(!1===t.wordWrap||!1===t.trim)&&(p.push(""),e=0),(e>0||!1===t.trim)&&(p[p.length-1]+=" ",e++)),t.hard&&f[u]>n){const t=n-e,r=1+Math.floor((f[u]-t-1)/n);Math.floor((f[u]-1)/n)n&&e>0&&f[u]>0){if(!1===t.wordWrap&&en&&!1===t.wordWrap?a(p,o,n):p[p.length-1]+=o}}!1!==t.trim&&(p=p.map(c)),D=p.join("\n");for(const[e,n]of[...D].entries()){if(l+=n,i.has(n)){const n=parseFloat(/\d[^m]*/.exec(D.slice(e,e+4)));u=39===n?null:n}const t=o.codes.get(Number(u));u&&t&&("\n"===D[e+1]?l+=s(t):"\n"===n&&(l+=s(u)))}return l};e.exports=(e,n,t)=>String(e).normalize().replace(/\r\n/g,"\n").split("\n").map(e=>D(e,n,t)).join("\n")},function(e,n,t){"use strict";(function(e){const n=(e,n)=>(...t)=>`[${e(...t)+n}m`,r=(e,n)=>(...t)=>{const r=e(...t);return`[${38+n};5;${r}m`},u=(e,n)=>(...t)=>{const r=e(...t);return`[${38+n};2;${r[0]};${r[1]};${r[2]}m`},o=e=>e,i=(e,n,t)=>[e,n,t],s=(e,n,t)=>{Object.defineProperty(e,n,{get:()=>{const r=t();return Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0}),r},enumerable:!0,configurable:!0})};let a;const c=(e,n,r,u)=>{void 0===a&&(a=t(40));const o=u?10:0,i={};for(const[t,u]of Object.entries(a)){const s="ansi16"===t?"ansi":t;t===n?i[s]=e(r,o):"object"==typeof u&&(i[s]=e(u[n],o))}return i};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.gray=t.color.blackBright,t.bgColor.bgGray=t.bgColor.bgBlackBright,t.color.grey=t.color.blackBright,t.bgColor.bgGrey=t.bgColor.bgBlackBright;for(const[n,r]of Object.entries(t)){for(const[n,u]of Object.entries(r))t[n]={open:`[${u[0]}m`,close:`[${u[1]}m`},r[n]=t[n],e.set(u[0],u[1]);Object.defineProperty(t,n,{value:r,enumerable:!1})}return Object.defineProperty(t,"codes",{value:e,enumerable:!1}),t.color.close="",t.bgColor.close="",s(t.color,"ansi",()=>c(n,"ansi16",o,!1)),s(t.color,"ansi256",()=>c(r,"ansi256",o,!1)),s(t.color,"ansi16m",()=>c(u,"rgb",i,!1)),s(t.bgColor,"ansi",()=>c(n,"ansi16",o,!0)),s(t.bgColor,"ansi256",()=>c(r,"ansi256",o,!0)),s(t.bgColor,"ansi16m",()=>c(u,"rgb",i,!0)),t}})}).call(this,t(39)(e))},function(e,n){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,n,t){const r=t(15),u=t(42),o={};Object.keys(r).forEach(e=>{o[e]={},Object.defineProperty(o[e],"channels",{value:r[e].channels}),Object.defineProperty(o[e],"labels",{value:r[e].labels});const n=u(e);Object.keys(n).forEach(t=>{const r=n[t];o[e][t]=function(e){const n=function(...n){const t=n[0];if(null==t)return t;t.length>1&&(n=t);const r=e(n);if("object"==typeof r)for(let e=r.length,n=0;n1&&(n=t),e(n))};return"conversion"in e&&(n.conversion=e.conversion),n}(r)})}),e.exports=o},function(e,n,t){"use strict";e.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},function(e,n,t){const r=t(15);function u(e){const n=function(){const e={},n=Object.keys(r);for(let t=n.length,r=0;rr._.max)&&(ur._.max&&(void 0!==r._.maxMsg?n.fail(r._.maxMsg?r._.maxMsg.replace(/\$0/g,u).replace(/\$1/,r._.max):null):n.fail(s("Too many non-option arguments: got %s, maximum of %s",u,r._.max))))},positionalCount:function(e,t){t{t.hasOwnProperty(e)&&void 0!==t[e]||(u=u||{},u[e]=r[e])}),u){const e=[];Object.keys(u).forEach(n=>{const t=u[n];t&&e.indexOf(t)<0&&e.push(t)});const t=e.length?`\n${e.join("\n")}`:"";n.fail(a("Missing required argument: %s","Missing required arguments: %s",Object.keys(u).length,Object.keys(u).join(", ")+t))}},unknownArguments:function(t,r,u){const i=e.getCommandInstance().getCommands(),s=[],D=e.getContext();Object.keys(t).forEach(n=>{-1!==o.indexOf(n)||u.hasOwnProperty(n)||e._getParseContext().hasOwnProperty(n)||c.isValidAndSomeAliasIsNotNew(n,r)||s.push(n)}),(D.commands.length>0||i.length>0)&&t._.slice(D.commands.length).forEach(e=>{-1===i.indexOf(e)&&s.push(e)}),s.length>0&&n.fail(a("Unknown argument: %s","Unknown arguments: %s",s.length,s.join(", ")))},isValidAndSomeAliasIsNotNew:function(n,t){if(!t.hasOwnProperty(n))return!1;const r=e.parsed.newAliases;for(let e of[n,...t[n]])if(!r.hasOwnProperty(e)||!r[n])return!0;return!1},limitedChoices:function(t){const r=e.getOptions(),u={};if(!Object.keys(r.choices).length)return;Object.keys(t).forEach(e=>{-1===o.indexOf(e)&&r.choices.hasOwnProperty(e)&&[].concat(t[e]).forEach(n=>{-1===r.choices[e].indexOf(n)&&void 0!==n&&(u[e]=(u[e]||[]).concat(n))})});const i=Object.keys(u);if(!i.length)return;let a=s("Invalid values:");i.forEach(e=>{a+=`\n ${s("Argument: %s, Given: %s, Choices: %s",e,n.stringifiedValues(u[e]),n.stringifiedValues(r.choices[e]))}`}),n.fail(a)}};let D=[];c.check=function(e,n){D.push({func:e,global:n})},c.customChecks=function(e,t){for(let r,u=0;void 0!==(r=D[u]);u++){const u=r.func;let o=null;try{o=u(e,t)}catch(e){n.fail(e.message?e.message:e,e);continue}o?("string"==typeof o||o instanceof Error)&&n.fail(o.toString(),o):n.fail(s("Argument check failed: %s",u.toString()))}};let l={};function f(e,n){let t=Number(n);return n="number"==typeof(n=isNaN(t)?n:t)?e._.length>=n:n.match(/^--no-.+/)?!e[n=n.match(/^--no-(.+)/)[1]]:e[n]}c.implies=function(n,t){r(" [array|number|string]",[n,t],arguments.length),"object"==typeof n?Object.keys(n).forEach(e=>{c.implies(e,n[e])}):(e.global(n),l[n]||(l[n]=[]),Array.isArray(t)?t.forEach(e=>c.implies(n,e)):l[n].push(t))},c.getImplied=function(){return l},c.implications=function(e){const t=[];if(Object.keys(l).forEach(n=>{const r=n;(l[n]||[]).forEach(n=>{let u=r;const o=n;u=f(e,u),n=f(e,n),u&&!n&&t.push(` ${r} -> ${o}`)})}),t.length){let e=`${s("Implications failed:")}\n`;t.forEach(n=>{e+=n}),n.fail(e)}};let p={};c.conflicts=function(n,t){r(" [array|string]",[n,t],arguments.length),"object"==typeof n?Object.keys(n).forEach(e=>{c.conflicts(e,n[e])}):(e.global(n),p[n]||(p[n]=[]),Array.isArray(t)?t.forEach(e=>c.conflicts(n,e)):p[n].push(t))},c.getConflicting=()=>p,c.conflicting=function(e){Object.keys(e).forEach(t=>{p[t]&&p[t].forEach(r=>{r&&void 0!==e[t]&&void 0!==e[r]&&n.fail(s("Arguments %s and %s are mutually exclusive",t,r))})})},c.recommendCommands=function(e,r){const u=t(44);r=r.sort((e,n)=>n.length-e.length);let o=null,i=1/0;for(let n,t=0;void 0!==(n=r[t]);t++){const t=u(e,n);t<=3&&t!e[n]),p=u(p,(n,t)=>!e[n]),D=D.filter(e=>e.global),c};let d=[];return c.freeze=function(){let e={};d.push(e),e.implied=l,e.checks=D,e.conflicting=p},c.unfreeze=function(){let e=d.pop();l=e.implied,D=e.checks,p=e.conflicting},c}},function(e,n,t){"use strict";e.exports=function(e,n){if(0===e.length)return n.length;if(0===n.length)return e.length;const t=[];let r,u;for(r=0;r<=n.length;r++)t[r]=[r];for(u=0;u<=e.length;u++)t[0][u]=u;for(r=1;r<=n.length;r++)for(u=1;u<=e.length;u++)n.charAt(r-1)===e.charAt(u-1)?t[r][u]=t[r-1][u-1]:t[r][u]=Math.min(t[r-1][u-1]+1,Math.min(t[r][u-1]+1,t[r-1][u]+1));return t[n.length][e.length]}},function(e,n,t){var r=t(1),u=t(0),o=t(2);function i(e){e=e||{},this.directory=e.directory||"./locales",this.updateFiles="boolean"!=typeof e.updateFiles||e.updateFiles,this.locale=e.locale||"en",this.fallbackToLanguage="boolean"!=typeof e.fallbackToLanguage||e.fallbackToLanguage,this.cache={},this.writeQueue=[]}i.prototype.__=function(){if("string"!=typeof arguments[0])return this._taggedLiteral.apply(this,arguments);var e=Array.prototype.slice.call(arguments),n=e.shift(),t=function(){};return"function"==typeof e[e.length-1]&&(t=e.pop()),t=t||function(){},this.cache[this.locale]||this._readLocaleFile(),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]=n,this._enqueueWrite([this.directory,this.locale,t])):t(),o.format.apply(o,[this.cache[this.locale][n]||n].concat(e))},i.prototype._taggedLiteral=function(e){var n=arguments,t="";return e.forEach((function(e,r){var u=n[r+1];t+=e,void 0!==u&&(t+="%s")})),this.__.apply(null,[t].concat([].slice.call(arguments,1)))},i.prototype._enqueueWrite=function(e){this.writeQueue.push(e),1===this.writeQueue.length&&this._processWriteQueue()},i.prototype._processWriteQueue=function(){var e=this,n=this.writeQueue[0],t=n[0],u=n[1],o=n[2],i=this._resolveLocaleFile(t,u),s=JSON.stringify(this.cache[u],null,2);r.writeFile(i,s,"utf-8",(function(n){e.writeQueue.shift(),e.writeQueue.length>0&&e._processWriteQueue(),o(n)}))},i.prototype._readLocaleFile=function(){var e={},n=this._resolveLocaleFile(this.directory,this.locale);try{e=JSON.parse(r.readFileSync(n,"utf-8"))}catch(t){if(t instanceof SyntaxError&&(t.message="syntax error in "+n),"ENOENT"!==t.code)throw t;e={}}this.cache[this.locale]=e},i.prototype._resolveLocaleFile=function(e,n){var t=u.resolve(e,"./",n+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(t)&&~n.lastIndexOf("_")){var r=u.resolve(e,"./",n.split("_")[0]+".json");this._fileExistsSync(r)&&(t=r)}return t},i.prototype._fileExistsSync=function(e){try{return r.statSync(e).isFile()}catch(e){return!1}},i.prototype.__n=function(){var e=Array.prototype.slice.call(arguments),n=e.shift(),t=e.shift(),r=e.shift(),u=function(){};"function"==typeof e[e.length-1]&&(u=e.pop()),this.cache[this.locale]||this._readLocaleFile();var i=1===r?n:t;this.cache[this.locale][n]&&(i=this.cache[this.locale][n][1===r?"one":"other"]),!this.cache[this.locale][n]&&this.updateFiles?(this.cache[this.locale][n]={one:n,other:t},this._enqueueWrite([this.directory,this.locale,u])):u();var s=[i];return~i.indexOf("%d")&&s.push(r),o.format.apply(o,s.concat(e))},i.prototype.setLocale=function(e){this.locale=e},i.prototype.getLocale=function(){return this.locale},i.prototype.updateLocale=function(e){for(var n in this.cache[this.locale]||this._readLocaleFile(),e)this.cache[this.locale][n]=e[n]},e.exports=function(e){var n=new i(e);for(var t in n)"function"==typeof n[t]&&(n[t]=n[t].bind(n));return n}},function(e,n,t){"use strict";const r=t(1),u=t(0),o=t(3);let i=[];e.exports=function e(n,s,a){let c={};if(Object.prototype.hasOwnProperty.call(n,"extends")){if("string"!=typeof n.extends)return c;const D=/\.json|\..*rc$/.test(n.extends);let l=null;if(D)l=function(e,n){return u.resolve(e,n)}(s,n.extends);else try{l=t(16).resolve(n.extends)}catch(e){}if(!l&&!D)return n;!function(e){if(i.indexOf(e)>-1)throw new o(`Circular extended configurations: '${e}'.`)}(l),i.push(l),c=D?JSON.parse(r.readFileSync(l,"utf8")):t(16)(n.extends),delete n.extends,c=e(c,u.dirname(l),a)}return i=[],a?function e(n,t){const r={},u=e=>e&&"object"==typeof e&&!Array.isArray(e);Object.assign(r,n);for(let o of Object.keys(t))u(t[o])&&u(r[o])?r[o]=e(n[o],t[o]):r[o]=t[o];return r}(c,n):Object.assign({},c,n)}},function(e,n,t){"use strict";e.exports=function(e){if(void 0===e&&(e=2),e>=Error.stackTraceLimit)throw new TypeError("getCallerFile(position) requires position be less then Error.stackTraceLimit but position was: `"+e+"` and Error.stackTraceLimit was: `"+Error.stackTraceLimit+"`");var n=Error.prepareStackTrace;Error.prepareStackTrace=function(e,n){return n};var t=(new Error).stack;if(Error.prepareStackTrace=n,null!==t&&"object"==typeof t)return t[e]?t[e].getFileName():void 0}},function(e,n,t){"use strict";const r=t(0),u=t(49),o=t(53),i=Symbol("findUp.stop");e.exports=async(e,n={})=>{let t=r.resolve(n.cwd||"");const{root:o}=r.parse(t),s=[].concat(e),a=async n=>{if("function"!=typeof e)return u(s,n);const t=await e(n.cwd);return"string"==typeof t?u([t],n):t};for(;;){const e=await a({...n,cwd:t});if(e===i)return;if(e)return r.resolve(t,e);if(t===o)return;t=r.dirname(t)}},e.exports.sync=(e,n={})=>{let t=r.resolve(n.cwd||"");const{root:o}=r.parse(t),s=[].concat(e),a=n=>{if("function"!=typeof e)return u.sync(s,n);const t=e(n.cwd);return"string"==typeof t?u.sync([t],n):t};for(;;){const e=a({...n,cwd:t});if(e===i)return;if(e)return r.resolve(t,e);if(t===o)return;t=r.dirname(t)}},e.exports.exists=o,e.exports.sync.exists=o.sync,e.exports.stop=i},function(e,n,t){"use strict";const r=t(0),u=t(1),{promisify:o}=t(2),i=t(50),s=o(u.stat),a=o(u.lstat),c={directory:"isDirectory",file:"isFile"};function D({type:e}){if(!(e in c))throw new Error(`Invalid type specified: ${e}`)}const l=(e,n)=>void 0===e||n[c[e]]();e.exports=async(e,n)=>{D(n={cwd:process.cwd(),type:"file",allowSymlinks:!0,...n});const t=n.allowSymlinks?s:a;return i(e,async e=>{try{const u=await t(r.resolve(n.cwd,e));return l(n.type,u)}catch(e){return!1}},n)},e.exports.sync=(e,n)=>{D(n={cwd:process.cwd(),allowSymlinks:!0,type:"file",...n});const t=n.allowSymlinks?u.statSync:u.lstatSync;for(const u of e)try{const e=t(r.resolve(n.cwd,u));if(l(n.type,e))return u}catch(e){}}},function(e,n,t){"use strict";const r=t(51);class u extends Error{constructor(e){super(),this.value=e}}const o=async(e,n)=>n(await e),i=async e=>{const n=await Promise.all(e);if(!0===n[1])throw new u(n[0]);return!1},s=async(e,n,t)=>{t={concurrency:1/0,preserveOrder:!0,...t};const s=r(t.concurrency),a=[...e].map(e=>[e,s(o,e,n)]),c=r(t.preserveOrder?1:1/0);try{await Promise.all(a.map(e=>c(i,e)))}catch(e){if(e instanceof u)return e.value;throw e}};e.exports=s,e.exports.default=s},function(e,n,t){"use strict";const r=t(52),u=e=>{if(!Number.isInteger(e)&&e!==1/0||!(e>0))return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"));const n=[];let t=0;const u=()=>{t--,n.length>0&&n.shift()()},o=(e,n,...o)=>{t++;const i=r(e,...o);n(i),i.then(u,u)},i=(r,...u)=>new Promise(i=>((r,u,...i)=>{tt},pendingCount:{get:()=>n.length}}),i};e.exports=u,e.exports.default=u},function(e,n,t){"use strict";const r=(e,...n)=>new Promise(t=>{t(e(...n))});e.exports=r,e.exports.default=r},function(e,n,t){"use strict";const r=t(1),{promisify:u}=t(2),o=u(r.access);e.exports=async e=>{try{return await o(e),!0}catch(e){return!1}},e.exports.sync=e=>{try{return r.accessSync(e),!0}catch(e){return!1}}},function(e,n,t){e.exports=function(e){var n=(e=e||t(55)).main;return n&&function(e){return/\\iisnode\\/.test(e.filename)}(n)?function(e){return e.children.length?e.children[0].filename:e.filename}(n):n?n.filename:process.cwd()}},function(e,n){function t(e){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id=55}]); \ No newline at end of file diff --git a/package.json b/package.json index 8dc5faf..a85d75e 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,12 @@ "author": "Guilherme Ventura de Souza", "license": "MIT", "bin": { - "update-linters": "./lib/index.js" + "update-linters": "lib/index.js" }, "scripts": { - "clean": "rimraf lib && rimraf dist", - "build": "rimraf lib && webpack --mode production && rimraf dist", - "prepublish": "yarn clean && yarn build && rimraf dist", + "clean": "rimraf lib", + "build": "rimraf lib && webpack --mode production", + "prepublish": "yarn clean && yarn build", "version": "conventional-changelog -p angular -i CHANGELOG.md -s && git add CHANGELOG.md", "test": "echo \"Error: no tests specified yet\"", "release": "np --any-branch" @@ -51,9 +51,7 @@ "fs": false }, "files": [ - "lib/index.js", - "lib/files/*", - "lib/files/.vscode/*" + "lib" ], "engines": { "node": ">=10" diff --git a/src/helpers/cli-args.js b/src/helpers/cli-args.js index f6d4ecf..06b5c2a 100644 --- a/src/helpers/cli-args.js +++ b/src/helpers/cli-args.js @@ -1,6 +1,6 @@ const yargs = require('yargs') -const argv = yargs +module.exports = yargs .option('VSCODE', { alias: 'vsc', description: 'Update .vscode settings', @@ -34,5 +34,3 @@ const argv = yargs .help() .alias('help', 'h') .showHelpOnFail(false, 'Specify --help for available options').argv - -module.exports = argv diff --git a/src/helpers/index.js b/src/helpers/index.js index d821e94..913deac 100644 --- a/src/helpers/index.js +++ b/src/helpers/index.js @@ -76,9 +76,11 @@ function mergeObject(source, target) { function readJS(path) { return new Promise(resolve => { try { - const file = require(path) + // eslint-disable-next-line no-undef + const file = __non_webpack_require__(path) resolve(file) } catch (err) { + console.log('erro ', path) resolve(err) } }) diff --git a/webpack.config.js b/webpack.config.js index eb0ddc9..b0a922f 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -1,4 +1,3 @@ -const webpack = require('webpack') const CopyFiles = require('copy-webpack-plugin') const distPath = 'lib' const path = require('path')