index.js
70 KB
module.exports=(()=>{var e={159:e=>{"use strict";e.exports=function(e,t){if(typeof e!=="string"){throw new TypeError("Expected a string")}t=typeof t==="undefined"?"_":t;return e.replace(/([a-z\d])([A-Z])/g,"$1"+t+"$2").replace(/([A-Z]+)([A-Z][a-z\d]+)/g,"$1"+t+"$2").toLowerCase()}},212:e=>{"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}},351:e=>{"use strict";e.exports=function getCallerFile(e){if(e===void 0){e=2}if(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 t=Error.prepareStackTrace;Error.prepareStackTrace=function(e,t){return t};var u=(new Error).stack;Error.prepareStackTrace=t;if(u!==null&&typeof u==="object"){return u[e]?u[e].getFileName():undefined}}},882:e=>{"use strict";const t=e=>{if(Number.isNaN(e)){return false}if(e>=4352&&(e<=4447||e===9001||e===9002||11904<=e&&e<=12871&&e!==12351||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)){return true}return false};e.exports=t;e.exports.default=t},684:(e,t,u)=>{"use strict";const n=u(746);const r=e=>{if(!((Number.isInteger(e)||e===Infinity)&&e>0)){return Promise.reject(new TypeError("Expected `concurrency` to be a number from 1 and up"))}const t=[];let u=0;const r=()=>{u--;if(t.length>0){t.shift()()}};const o=(e,t,...o)=>{u++;const i=n(e,...o);t(i);i.then(r,r)};const i=(n,r,...i)=>{if(u<e){o(n,r,...i)}else{t.push(o.bind(null,n,r,...i))}};const D=(e,...t)=>new Promise(u=>i(e,u,...t));Object.defineProperties(D,{activeCount:{get:()=>u},pendingCount:{get:()=>t.length},clearQueue:{value:()=>{t.length=0}}});return D};e.exports=r;e.exports.default=r},746:e=>{"use strict";const t=(e,...t)=>new Promise(u=>{u(e(...t))});e.exports=t;e.exports.default=t},200:(e,t,u)=>{"use strict";var n=u(747),r=u(622).join,o=u(622).resolve,i=u(622).dirname,D={extensions:["js","json","coffee"],recurse:true,rename:function(e){return e},visit:function(e){return e}};function checkFileInclusion(e,t,u){return new RegExp("\\.("+u.extensions.join("|")+")$","i").test(t)&&!(u.include&&u.include instanceof RegExp&&!u.include.test(e))&&!(u.include&&typeof u.include==="function"&&!u.include(e,t))&&!(u.exclude&&u.exclude instanceof RegExp&&u.exclude.test(e))&&!(u.exclude&&typeof u.exclude==="function"&&u.exclude(e,t))}function requireDirectory(e,t,u){var s={};if(t&&!u&&typeof t!=="string"){u=t;t=null}u=u||{};for(var c in D){if(typeof u[c]==="undefined"){u[c]=D[c]}}t=!t?i(e.filename):o(i(e.filename),t);n.readdirSync(t).forEach(function(o){var i=r(t,o),D,c,a;if(n.statSync(i).isDirectory()&&u.recurse){D=requireDirectory(e,i,u);if(Object.keys(D).length){s[u.rename(o,i,o)]=D}}else{if(i!==e.filename&&checkFileInclusion(i,o,u)){c=o.substring(0,o.lastIndexOf("."));a=e.require(i);s[u.rename(c,i,o)]=u.visit(a,i,o)||a}}});return s}e.exports=requireDirectory;e.exports.defaults=D},829:e=>{e.exports=function(e){e=e||require;var t=e.main;if(t&&isIISNode(t))return handleIISNode(t);else return t?t.filename:process.cwd()};function isIISNode(e){return/\\iisnode\\/.test(e.filename)}function handleIISNode(e){if(!e.children.length){return e.filename}else{return e.children[0].filename}}},344:e=>{e.exports=function(e){[process.stdout,process.stderr].forEach(function(t){if(t._handle&&t.isTTY&&typeof t._handle.setBlocking==="function"){t._handle.setBlocking(e)}})}},577:(e,t,u)=>{"use strict";const n=u(591);const r=u(882);const o=u(212);const i=e=>{e=e.replace(o()," ");if(typeof e!=="string"||e.length===0){return 0}e=n(e);let t=0;for(let u=0;u<e.length;u++){const n=e.codePointAt(u);if(n<=31||n>=127&&n<=159){continue}if(n>=768&&n<=879){continue}if(n>65535){u++}t+=r(n)?2:1}return t};e.exports=i;e.exports.default=i},591:(e,t,u)=>{"use strict";const n=u(465);e.exports=(e=>typeof e==="string"?e.replace(n(),""):e)},465:e=>{"use strict";e.exports=(({onlyFirst:e=false}={})=>{const t=["[\\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(t,e?undefined:"g")})},664:e=>{"use strict";e.exports=function whichModule(e){for(var t=0,u=Object.keys(require.cache),n;t<u.length;t++){n=require.cache[u[t]];if(n.exports===e)return n}return null}},138:(e,t,u)=>{var n=u(747);var r=u(622);var o=u(669);function Y18N(e){e=e||{};this.directory=e.directory||"./locales";this.updateFiles=typeof e.updateFiles==="boolean"?e.updateFiles:true;this.locale=e.locale||"en";this.fallbackToLanguage=typeof e.fallbackToLanguage==="boolean"?e.fallbackToLanguage:true;this.cache=Object.create(null);this.writeQueue=[]}Y18N.prototype.__=function(){if(typeof arguments[0]!=="string"){return this._taggedLiteral.apply(this,arguments)}var e=Array.prototype.slice.call(arguments);var t=e.shift();var u=function(){};if(typeof e[e.length-1]==="function")u=e.pop();u=u||function(){};if(!this.cache[this.locale])this._readLocaleFile();if(!this.cache[this.locale][t]&&this.updateFiles){this.cache[this.locale][t]=t;this._enqueueWrite([this.directory,this.locale,u])}else{u()}return o.format.apply(o,[this.cache[this.locale][t]||t].concat(e))};Y18N.prototype._taggedLiteral=function(e){var t=arguments;var u="";e.forEach(function(e,n){var r=t[n+1];u+=e;if(typeof r!=="undefined"){u+="%s"}});return this.__.apply(null,[u].concat([].slice.call(arguments,1)))};Y18N.prototype._enqueueWrite=function(e){this.writeQueue.push(e);if(this.writeQueue.length===1)this._processWriteQueue()};Y18N.prototype._processWriteQueue=function(){var e=this;var t=this.writeQueue[0];var u=t[0];var r=t[1];var o=t[2];var i=this._resolveLocaleFile(u,r);var D=JSON.stringify(this.cache[r],null,2);n.writeFile(i,D,"utf-8",function(t){e.writeQueue.shift();if(e.writeQueue.length>0)e._processWriteQueue();o(t)})};Y18N.prototype._readLocaleFile=function(){var e={};var t=this._resolveLocaleFile(this.directory,this.locale);try{e=JSON.parse(n.readFileSync(t,"utf-8"))}catch(u){if(u instanceof SyntaxError){u.message="syntax error in "+t}if(u.code==="ENOENT")e={};else throw u}this.cache[this.locale]=e};Y18N.prototype._resolveLocaleFile=function(e,t){var u=r.resolve(e,"./",t+".json");if(this.fallbackToLanguage&&!this._fileExistsSync(u)&&~t.lastIndexOf("_")){var n=r.resolve(e,"./",t.split("_")[0]+".json");if(this._fileExistsSync(n))u=n}return u};Y18N.prototype._fileExistsSync=function(e){try{return n.statSync(e).isFile()}catch(e){return false}};Y18N.prototype.__n=function(){var e=Array.prototype.slice.call(arguments);var t=e.shift();var u=e.shift();var n=e.shift();var r=function(){};if(typeof e[e.length-1]==="function")r=e.pop();if(!this.cache[this.locale])this._readLocaleFile();var i=n===1?t:u;if(this.cache[this.locale][t]){i=this.cache[this.locale][t][n===1?"one":"other"]}if(!this.cache[this.locale][t]&&this.updateFiles){this.cache[this.locale][t]={one:t,other:u};this._enqueueWrite([this.directory,this.locale,r])}else{r()}var D=[i];if(~i.indexOf("%d"))D.push(n);return o.format.apply(o,D.concat(e))};Y18N.prototype.setLocale=function(e){this.locale=e};Y18N.prototype.getLocale=function(){return this.locale};Y18N.prototype.updateLocale=function(e){if(!this.cache[this.locale])this._readLocaleFile();for(var t in e){this.cache[this.locale][t]=e[t]}};e.exports=function(e){var t=new Y18N(e);for(var u in t){if(typeof t[u]==="function"){t[u]=t[u].bind(t)}}return t}},278:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyExtends=void 0;const n=u(747);const r=u(622);const o=u(607);let i=[];function checkForCircularExtends(e){if(i.indexOf(e)>-1){throw new o.YError(`Circular extended configurations: '${e}'.`)}}function getPathToDefaultConfig(e,t){return r.resolve(e,t)}function mergeDeep(e,t){const u={};function isObject(e){return e&&typeof e==="object"&&!Array.isArray(e)}Object.assign(u,e);for(const n of Object.keys(t)){if(isObject(t[n])&&isObject(u[n])){u[n]=mergeDeep(e[n],t[n])}else{u[n]=t[n]}}return u}function applyExtends(e,t,u=false){let D={};if(Object.prototype.hasOwnProperty.call(e,"extends")){if(typeof e.extends!=="string")return D;const s=/\.json|\..*rc$/.test(e.extends);let c=null;if(!s){try{c=require.resolve(e.extends)}catch(e){}}else{c=getPathToDefaultConfig(t,e.extends)}if(!c&&!s)return e;if(!c)throw new o.YError(`Unable to find extended config '${e.extends}' in '${t}'.`);checkForCircularExtends(c);i.push(c);D=s?JSON.parse(n.readFileSync(c,"utf8")):require(e.extends);delete e.extends;D=applyExtends(D,r.dirname(c),u)}i=[];return u?mergeDeep(D,e):Object.assign({},D,e)}t.applyExtends=applyExtends},862:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.argsert=void 0;const n=u(607);const r=u(181);const o=["first","second","third","fourth","fifth","sixth"];function argsert(e,t,u){function parseArgs(){return typeof e==="object"?[{demanded:[],optional:[]},e,t]:[r.parseCommand(`cmd ${e}`),t,u]}try{let e=0;let[t,u,r]=parseArgs();const o=[].slice.call(u);while(o.length&&o[o.length-1]===undefined)o.pop();r=r||o.length;if(r<t.demanded.length){throw new n.YError(`Not enough arguments provided. Expected ${t.demanded.length} but received ${o.length}.`)}const i=t.demanded.length+t.optional.length;if(r>i){throw new n.YError(`Too many arguments provided. Expected max ${i} but received ${r}.`)}t.demanded.forEach(t=>{const u=o.shift();const n=guessType(u);const r=t.cmd.filter(e=>e===n||e==="*");if(r.length===0)argumentTypeError(n,t.cmd,e);e+=1});t.optional.forEach(t=>{if(o.length===0)return;const u=o.shift();const n=guessType(u);const r=t.cmd.filter(e=>e===n||e==="*");if(r.length===0)argumentTypeError(n,t.cmd,e);e+=1})}catch(e){console.warn(e.stack)}}t.argsert=argsert;function guessType(e){if(Array.isArray(e)){return"array"}else if(e===null){return"null"}return typeof e}function argumentTypeError(e,t,u){throw new n.YError(`Invalid ${o[u]||"manyith"} argument. Expected ${t.join(" or ")} but received ${e}.`)}},910:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isCommandBuilderCallback=t.isCommandBuilderDefinition=t.isCommandHandlerDefinition=t.command=void 0;const n=u(81);const r=u(552);const o=u(340);const i=u(181);const D=u(622);const s=u(669);const c=u(801);const a=u(200);const l=u(664);const f=u(175);const p=/(^\*)|(^\$0)/;function command(e,t,u,d=[]){const g={};let F={};let h={};let C;g.addHandler=function addHandler(e,u,n,r,D,s){let c=[];const a=o.commandMiddlewareFactory(D);r=r||(()=>{});if(Array.isArray(e)){c=e.slice(1);e=e[0]}else if(isCommandHandlerDefinition(e)){let t=Array.isArray(e.command)||typeof e.command==="string"?e.command:moduleName(e);if(e.aliases)t=[].concat(t).concat(e.aliases);g.addHandler(t,extractDesc(e),e.builder,e.handler,e.middlewares,e.deprecated);return}if(isCommandBuilderDefinition(n)){g.addHandler([e].concat(c),u,n.builder,n.handler,n.middlewares,n.deprecated);return}const l=i.parseCommand(e);c=c.map(e=>i.parseCommand(e).cmd);let f=false;const d=[l.cmd].concat(c).filter(e=>{if(p.test(e)){f=true;return false}return true});if(d.length===0&&f)d.push("$0");if(f){l.cmd=d[0];c=d.slice(1);e=e.replace(p,l.cmd)}c.forEach(e=>{h[e]=l.cmd});if(u!==false){t.command(e,u,f,c,s)}F[l.cmd]={original:e,description:u,handler:r,builder:n||{},middlewares:a,deprecated:s,demanded:l.demanded,optional:l.optional};if(f)C=F[l.cmd]};g.addDirectory=function addDirectory(e,t,u,n,r){r=r||{};if(typeof r.recurse!=="boolean")r.recurse=false;if(!Array.isArray(r.extensions))r.extensions=["js"];const o=typeof r.visit==="function"?r.visit:e=>e;r.visit=function visit(e,u,n){const r=o(e,u,n);if(r){if(~t.files.indexOf(u))return r;t.files.push(u);g.addHandler(r)}return r};a({require:u,filename:n},e,r)};function moduleName(e){const t=l(e);if(!t)throw new Error(`No command name given for module: ${s.inspect(e)}`);return commandFromFilename(t.filename)}function commandFromFilename(e){return D.basename(e,D.extname(e))}function extractDesc({describe:e,description:t,desc:u}){for(const r of[e,t,u]){if(typeof r==="string"||r===false)return r;n.assertNotStrictEqual(r,true)}return false}g.getCommands=(()=>Object.keys(F).concat(Object.keys(h)));g.getCommandHandlers=(()=>F);g.hasDefaultCommand=(()=>!!C);g.runCommand=function runCommand(e,t,u,n){let i=u.aliases;const D=F[e]||F[h[e]]||C;const s=t.getContext();let a=s.files.length;const l=s.commands.slice();let f=u.argv;let p={};if(e){s.commands.push(e);s.fullCommands.push(D.original)}const g=D.builder;if(isCommandBuilderCallback(g)){const e=g(t.reset(u.aliases));const r=c.isYargsInstance(e)?e:t;if(shouldUpdateUsage(r)){r.getUsageInstance().usage(usageFromParentCommandsCommandHandler(l,D),D.description)}f=r._parseArgs(null,null,true,n);i=r.parsed.aliases}else if(isCommandBuilderOptionDefinitions(g)){const e=t.reset(u.aliases);if(shouldUpdateUsage(e)){e.getUsageInstance().usage(usageFromParentCommandsCommandHandler(l,D),D.description)}Object.keys(D.builder).forEach(t=>{e.option(t,g[t])});f=e._parseArgs(null,null,true,n);i=e.parsed.aliases}if(!t._hasOutput()){p=populatePositionals(D,f,s)}const E=d.slice(0).concat(D.middlewares);o.applyMiddleware(f,t,E,true);if(!t._hasOutput()){t._runValidation(f,i,p,t.parsed.error,!e)}if(D.handler&&!t._hasOutput()){t._setHasOutput();const e=!!t.getOptions().configuration["populate--"];if(!e)t._copyDoubleDash(f);f=o.applyMiddleware(f,t,E,false);let u;if(r.isPromise(f)){u=f.then(e=>D.handler(e))}else{u=D.handler(f)}const n=t.getHandlerFinishCommand();if(r.isPromise(u)){t.getUsageInstance().cacheHelpMessage();u.then(e=>{if(n){n(e)}}).catch(e=>{try{t.getUsageInstance().fail(null,e)}catch(e){}}).then(()=>{t.getUsageInstance().clearCachedHelpMessage()})}else{if(n){n(u)}}}if(e){s.commands.pop();s.fullCommands.pop()}a=s.files.length-a;if(a>0)s.files.splice(a*-1,a);return f};function shouldUpdateUsage(e){return!e.getUsageInstance().getUsageDisabled()&&e.getUsageInstance().getUsage().length===0}function usageFromParentCommandsCommandHandler(e,t){const u=p.test(t.original)?t.original.replace(p,"").trim():t.original;const n=e.filter(e=>{return!p.test(e)});n.push(u);return`$0 ${n.join(" ")}`}g.runDefaultBuilderOn=function(e){n.assertNotStrictEqual(C,undefined);if(shouldUpdateUsage(e)){const t=p.test(C.original)?C.original:C.original.replace(/^[^[\]<>]*/,"$0 ");e.getUsageInstance().usage(t,C.description)}const t=C.builder;if(isCommandBuilderCallback(t)){t(e)}else{Object.keys(t).forEach(u=>{e.option(u,t[u])})}};function populatePositionals(e,t,n){t._=t._.slice(n.commands.length);const r=e.demanded.slice(0);const o=e.optional.slice(0);const i={};u.positionalCount(r.length,t._.length);while(r.length){const e=r.shift();populatePositional(e,t,i)}while(o.length){const e=o.shift();populatePositional(e,t,i)}t._=n.commands.concat(t._);postProcessPositionals(t,i,g.cmdToParseOptions(e.original));return i}function populatePositional(e,t,u){const n=e.cmd[0];if(e.variadic){u[n]=t._.splice(0).map(String)}else{if(t._.length)u[n]=[String(t._.shift())]}}function postProcessPositionals(t,u,n){const r=Object.assign({},e.getOptions());r.default=Object.assign(n.default,r.default);for(const e of Object.keys(n.alias)){r.alias[e]=(r.alias[e]||[]).concat(n.alias[e])}r.array=r.array.concat(n.array);delete r.config;const o=[];Object.keys(u).forEach(e=>{u[e].map(t=>{if(r.configuration["unknown-options-as-args"])r.key[e]=true;o.push(`--${e}`);o.push(t)})});if(!o.length)return;const i=Object.assign({},r.configuration,{"populate--":true});const D=f.detailed(o,Object.assign({},r,{configuration:i}));if(D.error){e.getUsageInstance().fail(D.error.message,D.error)}else{const e=Object.keys(u);Object.keys(u).forEach(t=>{e.push(...D.aliases[t])});Object.keys(D.argv).forEach(n=>{if(e.indexOf(n)!==-1){if(!u[n])u[n]=D.argv[n];t[n]=D.argv[n]}})}}g.cmdToParseOptions=function(e){const t={array:[],default:{},alias:{},demand:{}};const u=i.parseCommand(e);u.demanded.forEach(e=>{const[u,...n]=e.cmd;if(e.variadic){t.array.push(u);t.default[u]=[]}t.alias[u]=n;t.demand[u]=true});u.optional.forEach(e=>{const[u,...n]=e.cmd;if(e.variadic){t.array.push(u);t.default[u]=[]}t.alias[u]=n});return t};g.reset=(()=>{F={};h={};C=undefined;return g});const E=[];g.freeze=(()=>{E.push({handlers:F,aliasMap:h,defaultCommand:C})});g.unfreeze=(()=>{const e=E.pop();n.assertNotStrictEqual(e,undefined);({handlers:F,aliasMap:h,defaultCommand:C}=e)});return g}t.command=command;function isCommandHandlerDefinition(e){return typeof e==="object"}t.isCommandHandlerDefinition=isCommandHandlerDefinition;function isCommandBuilderDefinition(e){return typeof e==="object"&&!!e.builder&&typeof e.handler==="function"}t.isCommandBuilderDefinition=isCommandBuilderDefinition;function isCommandBuilderCallback(e){return typeof e==="function"}t.isCommandBuilderCallback=isCommandBuilderCallback;function isCommandBuilderOptionDefinitions(e){return typeof e==="object"}},81:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.objectKeys=t.assertSingleKey=t.assertNotStrictEqual=void 0;const n=u(357);function assertNotStrictEqual(e,t,u){n.notStrictEqual(e,t,u)}t.assertNotStrictEqual=assertNotStrictEqual;function assertSingleKey(e){n.strictEqual(typeof e,"string")}t.assertSingleKey=assertSingleKey;function objectKeys(e){return Object.keys(e)}t.objectKeys=objectKeys},392:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.completionZshTemplate=t.completionShTemplate=void 0;t.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`;t.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`},264:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.completion=void 0;const n=u(910);const r=u(392);const o=u(552);const i=u(181);const D=u(622);const s=u(81);function completion(e,t,u){const c={completionKey:"get-yargs-completions"};let a;c.setParsed=function setParsed(e){a=e.aliases};const l=process.env.SHELL&&process.env.SHELL.indexOf("zsh")!==-1||process.env.ZSH_NAME&&process.env.ZSH_NAME.indexOf("zsh")!==-1;c.getCompletion=function getCompletion(r,D){const c=[];const p=r.length?r[r.length-1]:"";const d=e.parse(r,true);const g=e.getContext().commands;function runCompletionFunction(e){s.assertNotStrictEqual(f,null);if(isSyncCompletionFunction(f)){const t=f(p,e);if(o.isPromise(t)){return t.then(e=>{process.nextTick(()=>{D(e)})}).catch(e=>{process.nextTick(()=>{throw e})})}return D(t)}else{return f(p,e,e=>{D(e)})}}if(f){return o.isPromise(d)?d.then(runCompletionFunction):runCompletionFunction(d)}const F=u.getCommandHandlers();for(let t=0,u=r.length;t<u;++t){if(F[r[t]]&&F[r[t]].builder){const u=F[r[t]].builder;if(n.isCommandBuilderCallback(u)){const t=e.reset();u(t);return t.argv}}}if(!p.match(/^-/)&&g[g.length-1]!==p){t.getCommands().forEach(e=>{const t=i.parseCommand(e[0]).cmd;if(r.indexOf(t)===-1){if(!l){c.push(t)}else{const u=e[1]||"";c.push(t.replace(/:/g,"\\:")+":"+u)}}})}if(p.match(/^-/)||p===""&&c.length===0){const u=t.getDescriptions();const n=e.getOptions();Object.keys(n.key).forEach(e=>{const t=!!n.configuration["boolean-negation"]&&n.boolean.includes(e);let o=[e].concat(a[e]||[]);if(t)o=o.concat(o.map(e=>`no-${e}`));function completeOptionKey(e){const t=o.every(e=>r.indexOf(`--${e}`)===-1);if(t){const t=e=>/^--/.test(e);const n=e=>/^[^0-9]$/.test(e);const r=!t(p)&&n(e)?"-":"--";if(!l){c.push(r+e)}else{const t=u[e]||"";c.push(r+`${e.replace(/:/g,"\\:")}:${t.replace("__yargsString__:","")}`)}}}completeOptionKey(e);if(t&&!!n.default[e])completeOptionKey(`no-${e}`)})}D(c)};c.generateCompletionScript=function generateCompletionScript(e,t){let u=l?r.completionZshTemplate:r.completionShTemplate;const n=D.basename(e);if(e.match(/\.js$/))e=`./${e}`;u=u.replace(/{{app_name}}/g,n);u=u.replace(/{{completion_command}}/g,t);return u.replace(/{{app_path}}/g,e)};let f=null;c.registerFunction=(e=>{f=e});return c}t.completion=completion;function isSyncCompletionFunction(e){return e.length<3}},552:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isPromise=void 0;function isPromise(e){return!!e&&!!e.then&&typeof e.then==="function"}t.isPromise=isPromise},268:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.levenshtein=void 0;function levenshtein(e,t){if(e.length===0)return t.length;if(t.length===0)return e.length;const u=[];let n;for(n=0;n<=t.length;n++){u[n]=[n]}let r;for(r=0;r<=e.length;r++){u[0][r]=r}for(n=1;n<=t.length;n++){for(r=1;r<=e.length;r++){if(t.charAt(n-1)===e.charAt(r-1)){u[n][r]=u[n-1][r-1]}else{u[n][r]=Math.min(u[n-1][r-1]+1,Math.min(u[n][r-1]+1,u[n-1][r]+1))}}}return u[t.length][e.length]}t.levenshtein=levenshtein},340:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.applyMiddleware=t.commandMiddlewareFactory=t.globalMiddlewareFactory=void 0;const n=u(862);const r=u(552);function globalMiddlewareFactory(e,t){return function(u,r=false){n.argsert("<array|function> [boolean]",[u,r],arguments.length);if(Array.isArray(u)){for(let e=0;e<u.length;e++){if(typeof u[e]!=="function"){throw Error("middleware must be a function")}u[e].applyBeforeValidation=r}Array.prototype.push.apply(e,u)}else if(typeof u==="function"){u.applyBeforeValidation=r;e.push(u)}return t}}t.globalMiddlewareFactory=globalMiddlewareFactory;function commandMiddlewareFactory(e){if(!e)return[];return e.map(e=>{e.applyBeforeValidation=false;return e})}t.commandMiddlewareFactory=commandMiddlewareFactory;function applyMiddleware(e,t,u,n){const o=new Error("middleware cannot return a promise when applyBeforeValidation is true");return u.reduce((e,u)=>{if(u.applyBeforeValidation!==n){return e}if(r.isPromise(e)){return e.then(e=>Promise.all([e,u(e,t)])).then(([e,t])=>Object.assign(e,t))}else{const i=u(e,t);if(n&&r.isPromise(i))throw o;return r.isPromise(i)?i.then(t=>Object.assign(e,t)):Object.assign(e,i)}},e)}t.applyMiddleware=applyMiddleware},592:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.objFilter=void 0;const n=u(81);function objFilter(e={},t=(()=>true)){const u={};n.objectKeys(e).forEach(n=>{if(t(n,e[n])){u[n]=e[n]}});return u}t.objFilter=objFilter},181:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.parseCommand=void 0;function parseCommand(e){const t=e.replace(/\s{2,}/g," ");const u=t.split(/\s+(?![^[]*]|[^<]*>)/);const n=/\.*[\][<>]/g;const r=u.shift();if(!r)throw new Error(`No command found in: ${e}`);const o={cmd:r.replace(n,""),demanded:[],optional:[]};u.forEach((e,t)=>{let r=false;e=e.replace(/\s/g,"");if(/\.+[\]>]/.test(e)&&t===u.length-1)r=true;if(/^\[/.test(e)){o.optional.push({cmd:e.replace(n,"").split("|"),variadic:r})}else{o.demanded.push({cmd:e.replace(n,"").split("|"),variadic:r})}});return o}t.parseCommand=parseCommand},414:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.getProcessArgvBin=t.getProcessArgvWithoutBin=void 0;function getProcessArgvBinIndex(){if(isBundledElectronApp())return 0;return 1}function isBundledElectronApp(){return isElectronApp()&&!process.defaultApp}function isElectronApp(){return!!process.versions.electron}function getProcessArgvWithoutBin(){return process.argv.slice(getProcessArgvBinIndex()+1)}t.getProcessArgvWithoutBin=getProcessArgvWithoutBin;function getProcessArgvBin(){return process.argv[getProcessArgvBinIndex()]}t.getProcessArgvBin=getProcessArgvBin},728:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.usage=void 0;const n=u(81);const r=u(592);const o=u(622);const i=u(607);const D=u(159);const s=u(344);const c=u(577);function usage(e,t){const a=t.__;const l={};const f=[];l.failFn=function failFn(e){f.push(e)};let p=null;let d=true;l.showHelpOnFail=function showHelpOnFailFn(e=true,t){function parseFunctionArgs(){return typeof e==="string"?[true,e]:[e,t]}const[u,n]=parseFunctionArgs();p=n;d=u;return l};let g=false;l.fail=function fail(t,u){const n=e._getLoggerInstance();if(f.length){for(let e=f.length-1;e>=0;--e){f[e](t,u,l)}}else{if(e.getExitProcess())s(true);if(!g){g=true;if(d){e.showHelp("error");n.error()}if(t||u)n.error(t||u);if(p){if(t||u)n.error("");n.error(p)}}u=u||new i.YError(t);if(e.getExitProcess()){return e.exit(1)}else if(e._hasParseCallback()){return e.exit(1,u)}else{throw u}}};let F=[];let h=false;l.usage=((e,t)=>{if(e===null){h=true;F=[];return l}h=false;F.push([e,t||""]);return l});l.getUsage=(()=>{return F});l.getUsageDisabled=(()=>{return h});l.getPositionalGroupName=(()=>{return a("Positionals:")});let C=[];l.example=((e,t)=>{C.push([e,t||""])});let E=[];l.command=function command(e,t,u,n,r=false){if(u){E=E.map(e=>{e[2]=false;return e})}E.push([e,t||"",u,n,r])};l.getCommands=(()=>E);let y={};l.describe=function describe(e,t){if(Array.isArray(e)){e.forEach(e=>{l.describe(e,t)})}else if(typeof e==="object"){Object.keys(e).forEach(t=>{l.describe(t,e[t])})}else{y[e]=t}};l.getDescriptions=(()=>y);let m=[];l.epilog=(e=>{m.push(e)});let b=false;let B;l.wrap=(e=>{b=true;B=e});function getWrap(){if(!b){B=windowWidth();b=true}return B}const O="__yargsString__:";l.deferY18nLookup=(e=>O+e);l.help=function help(){if(A)return A;normalizeAliases();const t=e.customScriptName?e.$0:o.basename(e.$0);const n=e.getDemandedOptions();const r=e.getDemandedCommands();const i=e.getDeprecatedOptions();const D=e.getGroups();const s=e.getOptions();let c=[];c=c.concat(Object.keys(y));c=c.concat(Object.keys(n));c=c.concat(Object.keys(r));c=c.concat(Object.keys(s.default));c=c.filter(filterHiddenOptions);c=Object.keys(c.reduce((e,t)=>{if(t!=="_")e[t]=true;return e},{}));const f=getWrap();const p=u(565)({width:f,wrap:!!f});if(!h){if(F.length){F.forEach(e=>{p.div(`${e[0].replace(/\$0/g,t)}`);if(e[1]){p.div({text:`${e[1]}`,padding:[1,0,0,0]})}});p.div()}else if(E.length){let e=null;if(r._){e=`${t} <${a("command")}>\n`}else{e=`${t} [${a("command")}]\n`}p.div(`${e}`)}}if(E.length){p.div(a("Commands:"));const u=e.getContext();const n=u.commands.length?`${u.commands.join(" ")} `:"";if(e.getParserConfiguration()["sort-commands"]===true){E=E.sort((e,t)=>e[0].localeCompare(t[0]))}E.forEach(e=>{const u=`${t} ${n}${e[0].replace(/^\$0 ?/,"")}`;p.span({text:u,padding:[0,2,0,2],width:maxWidth(E,f,`${t}${n}`)+4},{text:e[1]});const r=[];if(e[2])r.push(`[${a("default")}]`);if(e[3]&&e[3].length){r.push(`[${a("aliases:")} ${e[3].join(", ")}]`)}if(e[4]){if(typeof e[4]==="string"){r.push(`[${a("deprecated: %s",e[4])}]`)}else{r.push(`[${a("deprecated")}]`)}}if(r.length){p.div({text:r.join(" "),padding:[0,0,0,2],align:"right"})}else{p.div()}});p.div()}const d=(Object.keys(s.alias)||[]).concat(Object.keys(e.parsed.newAliases)||[]);c=c.filter(t=>!e.parsed.newAliases[t]&&d.every(e=>(s.alias[e]||[]).indexOf(t)===-1));const g=a("Options:");if(!D[g])D[g]=[];addUngroupedKeys(c,s.alias,D,g);Object.keys(D).forEach(e=>{if(!D[e].length)return;const t=D[e].filter(filterHiddenOptions).map(e=>{if(~d.indexOf(e))return e;for(let t=0,u;(u=d[t])!==undefined;t++){if(~(s.alias[u]||[]).indexOf(e))return u}return e});if(t.length<1)return;p.div(e);const u=t.reduce((t,u)=>{t[u]=[u].concat(s.alias[u]||[]).map(t=>{if(e===l.getPositionalGroupName())return t;else{return(/^[0-9]$/.test(t)?~s.boolean.indexOf(u)?"-":"--":t.length>1?"--":"-")+t}}).join(", ");return t},{});t.forEach(e=>{const t=u[e];let r=y[e]||"";let o=null;if(~r.lastIndexOf(O))r=a(r.substring(O.length));if(~s.boolean.indexOf(e))o=`[${a("boolean")}]`;if(~s.count.indexOf(e))o=`[${a("count")}]`;if(~s.string.indexOf(e))o=`[${a("string")}]`;if(~s.normalize.indexOf(e))o=`[${a("string")}]`;if(~s.array.indexOf(e))o=`[${a("array")}]`;if(~s.number.indexOf(e))o=`[${a("number")}]`;const D=e=>typeof e==="string"?`[${a("deprecated: %s",e)}]`:`[${a("deprecated")}]`;const c=[e in i?D(i[e]):null,o,e in n?`[${a("required")}]`:null,s.choices&&s.choices[e]?`[${a("choices:")} ${l.stringifiedValues(s.choices[e])}]`:null,defaultString(s.default[e],s.defaultDescription[e])].filter(Boolean).join(" ");p.span({text:t,padding:[0,2,0,2],width:maxWidth(u,f)+4},r);if(c)p.div({text:c,padding:[0,0,0,2],align:"right"});else p.div()});p.div()});if(C.length){p.div(a("Examples:"));C.forEach(e=>{e[0]=e[0].replace(/\$0/g,t)});C.forEach(e=>{if(e[1]===""){p.div({text:e[0],padding:[0,2,0,2]})}else{p.div({text:e[0],padding:[0,2,0,2],width:maxWidth(C,f)+4},{text:e[1]})}});p.div()}if(m.length>0){const e=m.map(e=>e.replace(/\$0/g,t)).join("\n");p.div(`${e}\n`)}return p.toString().replace(/\s*$/,"")};function maxWidth(e,t,u){let n=0;if(!Array.isArray(e)){e=Object.values(e).map(e=>[e])}e.forEach(e=>{n=Math.max(c(u?`${u} ${e[0]}`:e[0]),n)});if(t)n=Math.min(n,parseInt((t*.5).toString(),10));return n}function normalizeAliases(){const t=e.getDemandedOptions();const u=e.getOptions();(Object.keys(u.alias)||[]).forEach(n=>{u.alias[n].forEach(r=>{if(y[r])l.describe(n,y[r]);if(r in t)e.demandOption(n,t[r]);if(~u.boolean.indexOf(r))e.boolean(n);if(~u.count.indexOf(r))e.count(n);if(~u.string.indexOf(r))e.string(n);if(~u.normalize.indexOf(r))e.normalize(n);if(~u.array.indexOf(r))e.array(n);if(~u.number.indexOf(r))e.number(n)})})}let A;l.cacheHelpMessage=function(){A=this.help()};l.clearCachedHelpMessage=function(){A=undefined};function addUngroupedKeys(e,t,u,n){let r=[];let o=null;Object.keys(u).forEach(e=>{r=r.concat(u[e])});e.forEach(e=>{o=[e].concat(t[e]);if(!o.some(e=>r.indexOf(e)!==-1)){u[n].push(e)}});return r}function filterHiddenOptions(t){return e.getOptions().hiddenOptions.indexOf(t)<0||e.parsed.argv[e.getOptions().showHiddenOpt]}l.showHelp=(t=>{const u=e._getLoggerInstance();if(!t)t="error";const n=typeof t==="function"?t:u[t];n(l.help())});l.functionDescription=(e=>{const t=e.name?D(e.name,"-"):a("generated-value");return["(",t,")"].join("")});l.stringifiedValues=function stringifiedValues(e,t){let u="";const n=t||", ";const r=[].concat(e);if(!e||!r.length)return u;r.forEach(e=>{if(u.length)u+=n;u+=JSON.stringify(e)});return u};function defaultString(e,t){let u=`[${a("default:")} `;if(e===undefined&&!t)return null;if(t){u+=t}else{switch(typeof e){case"string":u+=`"${e}"`;break;case"object":u+=JSON.stringify(e);break;default:u+=e}}return`${u}]`}function windowWidth(){const e=80;if(typeof process==="object"&&process.stdout&&process.stdout.columns){return Math.min(e,process.stdout.columns)}else{return e}}let _=null;l.version=(e=>{_=e});l.showVersion=(()=>{const t=e._getLoggerInstance();t.log(_)});l.reset=function reset(e){p=null;g=false;F=[];h=false;m=[];C=[];E=[];y=r.objFilter(y,t=>!e[t]);return l};const x=[];l.freeze=function freeze(){x.push({failMessage:p,failureOutput:g,usages:F,usageDisabled:h,epilogs:m,examples:C,commands:E,descriptions:y})};l.unfreeze=function unfreeze(){const e=x.pop();n.assertNotStrictEqual(e,undefined);({failMessage:p,failureOutput:g,usages:F,usageDisabled:h,epilogs:m,examples:C,commands:E,descriptions:y}=e)};return l}t.usage=usage},536:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.validation=void 0;const n=u(862);const r=u(81);const o=u(268);const i=u(592);const D=["$0","--","_"];function validation(e,t,u){const s=u.__;const c=u.__n;const a={};a.nonOptionCount=function nonOptionCount(u){const n=e.getDemandedCommands();const r=u._.length-e.getContext().commands.length;if(n._&&(r<n._.min||r>n._.max)){if(r<n._.min){if(n._.minMsg!==undefined){t.fail(n._.minMsg?n._.minMsg.replace(/\$0/g,r.toString()).replace(/\$1/,n._.min.toString()):null)}else{t.fail(c("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",r,r,n._.min))}}else if(r>n._.max){if(n._.maxMsg!==undefined){t.fail(n._.maxMsg?n._.maxMsg.replace(/\$0/g,r.toString()).replace(/\$1/,n._.max.toString()):null)}else{t.fail(c("Too many non-option arguments: got %s, maximum of %s","Too many non-option arguments: got %s, maximum of %s",r,r,n._.max))}}}};a.positionalCount=function positionalCount(e,u){if(u<e){t.fail(c("Not enough non-option arguments: got %s, need at least %s","Not enough non-option arguments: got %s, need at least %s",u,u,e))}};a.requiredArguments=function requiredArguments(u){const n=e.getDemandedOptions();let r=null;for(const e of Object.keys(n)){if(!Object.prototype.hasOwnProperty.call(u,e)||typeof u[e]==="undefined"){r=r||{};r[e]=n[e]}}if(r){const e=[];for(const t of Object.keys(r)){const u=r[t];if(u&&e.indexOf(u)<0){e.push(u)}}const u=e.length?`\n${e.join("\n")}`:"";t.fail(c("Missing required argument: %s","Missing required arguments: %s",Object.keys(r).length,Object.keys(r).join(", ")+u))}};a.unknownArguments=function unknownArguments(u,n,r,o){const i=e.getCommandInstance().getCommands();const s=[];const l=e.getContext();Object.keys(u).forEach(t=>{if(D.indexOf(t)===-1&&!Object.prototype.hasOwnProperty.call(r,t)&&!Object.prototype.hasOwnProperty.call(e._getParseContext(),t)&&!a.isValidAndSomeAliasIsNotNew(t,n)){s.push(t)}});if(l.commands.length>0||i.length>0||o){u._.slice(l.commands.length).forEach(e=>{if(i.indexOf(e)===-1){s.push(e)}})}if(s.length>0){t.fail(c("Unknown argument: %s","Unknown arguments: %s",s.length,s.join(", ")))}};a.unknownCommands=function unknownCommands(u){const n=e.getCommandInstance().getCommands();const r=[];const o=e.getContext();if(o.commands.length>0||n.length>0){u._.slice(o.commands.length).forEach(e=>{if(n.indexOf(e)===-1){r.push(e)}})}if(r.length>0){t.fail(c("Unknown command: %s","Unknown commands: %s",r.length,r.join(", ")));return true}else{return false}};a.isValidAndSomeAliasIsNotNew=function isValidAndSomeAliasIsNotNew(t,u){if(!Object.prototype.hasOwnProperty.call(u,t)){return false}const n=e.parsed.newAliases;for(const e of[t,...u[t]]){if(!Object.prototype.hasOwnProperty.call(n,e)||!n[t]){return true}}return false};a.limitedChoices=function limitedChoices(u){const n=e.getOptions();const r={};if(!Object.keys(n.choices).length)return;Object.keys(u).forEach(e=>{if(D.indexOf(e)===-1&&Object.prototype.hasOwnProperty.call(n.choices,e)){[].concat(u[e]).forEach(t=>{if(n.choices[e].indexOf(t)===-1&&t!==undefined){r[e]=(r[e]||[]).concat(t)}})}});const o=Object.keys(r);if(!o.length)return;let i=s("Invalid values:");o.forEach(e=>{i+=`\n ${s("Argument: %s, Given: %s, Choices: %s",e,t.stringifiedValues(r[e]),t.stringifiedValues(n.choices[e]))}`});t.fail(i)};let l=[];a.check=function check(e,t){l.push({func:e,global:t})};a.customChecks=function customChecks(e,u){for(let n=0,r;(r=l[n])!==undefined;n++){const n=r.func;let o=null;try{o=n(e,u)}catch(e){t.fail(e.message?e.message:e,e);continue}if(!o){t.fail(s("Argument check failed: %s",n.toString()))}else if(typeof o==="string"||o instanceof Error){t.fail(o.toString(),o)}}};let f={};a.implies=function implies(t,u){n.argsert("<string|object> [array|number|string]",[t,u],arguments.length);if(typeof t==="object"){Object.keys(t).forEach(e=>{a.implies(e,t[e])})}else{e.global(t);if(!f[t]){f[t]=[]}if(Array.isArray(u)){u.forEach(e=>a.implies(t,e))}else{r.assertNotStrictEqual(u,undefined);f[t].push(u)}}};a.getImplied=function getImplied(){return f};function keyExists(e,t){const u=Number(t);t=isNaN(u)?t:u;if(typeof t==="number"){t=e._.length>=t}else if(t.match(/^--no-.+/)){t=t.match(/^--no-(.+)/)[1];t=!e[t]}else{t=e[t]}return t}a.implications=function implications(e){const u=[];Object.keys(f).forEach(t=>{const n=t;(f[t]||[]).forEach(t=>{let r=n;const o=t;r=keyExists(e,r);t=keyExists(e,t);if(r&&!t){u.push(` ${n} -> ${o}`)}})});if(u.length){let e=`${s("Implications failed:")}\n`;u.forEach(t=>{e+=t});t.fail(e)}};let p={};a.conflicts=function conflicts(t,u){n.argsert("<string|object> [array|string]",[t,u],arguments.length);if(typeof t==="object"){Object.keys(t).forEach(e=>{a.conflicts(e,t[e])})}else{e.global(t);if(!p[t]){p[t]=[]}if(Array.isArray(u)){u.forEach(e=>a.conflicts(t,e))}else{p[t].push(u)}}};a.getConflicting=(()=>p);a.conflicting=function conflictingFn(e){Object.keys(e).forEach(u=>{if(p[u]){p[u].forEach(n=>{if(n&&e[u]!==undefined&&e[n]!==undefined){t.fail(s("Arguments %s and %s are mutually exclusive",u,n))}})}})};a.recommendCommands=function recommendCommands(e,u){const n=3;u=u.sort((e,t)=>t.length-e.length);let r=null;let i=Infinity;for(let t=0,D;(D=u[t])!==undefined;t++){const t=o.levenshtein(e,D);if(t<=n&&t<i){i=t;r=D}}if(r)t.fail(s("Did you mean %s?",r))};a.reset=function reset(e){f=i.objFilter(f,t=>!e[t]);p=i.objFilter(p,t=>!e[t]);l=l.filter(e=>e.global);return a};const d=[];a.freeze=function freeze(){d.push({implied:f,checks:l,conflicting:p})};a.unfreeze=function unfreeze(){const e=d.pop();r.assertNotStrictEqual(e,undefined);({implied:f,checks:l,conflicting:p}=e)};return a}t.validation=validation},801:(e,t,u)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.isYargsInstance=t.rebase=t.Yargs=void 0;const n=u(910);const r=u(81);const o=u(607);const i=u(728);const D=u(862);const s=u(747);const c=u(264);const a=u(622);const l=u(536);const f=u(592);const p=u(278);const d=u(340);const g=u(414);const F=u(552);const h=u(175);const C=u(138);const E=u(344);const y=u(506);const m=u(829);function Yargs(e=[],t=process.cwd(),b=require){const B={};let O;let A=null;let _={};const x=[];let j="";const w={};let P;let v;let S=null;const $=C({directory:u.ab+"locales",updateFiles:false});B.middleware=d.globalMiddlewareFactory(x,B);B.scriptName=function(e){B.customScriptName=true;B.$0=e;return B};let N;if(/\b(node|iojs|electron)(\.exe)?$/.test(process.argv[0])){N=process.argv.slice(1,2)}else{N=process.argv.slice(0,1)}B.$0=N.map(e=>{const u=rebase(t,e);return e.match(/^(\/|([a-zA-Z]:)?\\)/)&&u.length<e.length?u:e}).join(" ").trim();if(process.env._!==undefined&&g.getProcessArgvBin()===process.env._){B.$0=process.env._.replace(`${a.dirname(process.execPath)}/`,"")}const H={resets:-1,commands:[],fullCommands:[],files:[]};B.getContext=(()=>H);let M;B.resetOptions=B.reset=function resetOptions(e={}){H.resets++;M=M||{};const t={};t.local=M.local?M.local:[];t.configObjects=M.configObjects?M.configObjects:[];const u={};t.local.forEach(t=>{u[t]=true;(e[t]||[]).forEach(e=>{u[e]=true})});Object.assign(w,Object.keys(_).reduce((e,t)=>{const n=_[t].filter(e=>!(e in u));if(n.length>0){e[t]=n}return e},{}));_={};const r=["array","boolean","string","skipValidation","count","normalize","number","hiddenOptions"];const o=["narg","key","alias","default","defaultDescription","config","choices","demandedOptions","demandedCommands","coerce","deprecatedOptions"];r.forEach(e=>{t[e]=(M[e]||[]).filter(e=>!u[e])});o.forEach(e=>{t[e]=f.objFilter(M[e],e=>!u[e])});t.envPrefix=M.envPrefix;M=t;P=P?P.reset(u):i.usage(B,$);v=v?v.reset(u):l.validation(B,P,$);O=O?O.reset():n.command(B,P,v,x);if(!A)A=c.completion(B,P,O);Z=null;j="";J=null;Q=false;B.parsed=false;return B};B.resetOptions();const q=[];function freeze(){q.push({options:M,configObjects:M.configObjects.slice(0),exitProcess:K,groups:_,strict:T,strictCommands:Y,completionCommand:Z,output:j,exitError:J,hasOutput:Q,parsed:B.parsed,parseFn:L,parseContext:z,handlerFinishCommand:S});P.freeze();v.freeze();O.freeze()}function unfreeze(){const e=q.pop();r.assertNotStrictEqual(e,undefined);let t;({options:M,configObjects:t,exitProcess:K,groups:_,output:j,exitError:J,hasOutput:Q,parsed:B.parsed,strict:T,strictCommands:Y,completionCommand:Z,parseFn:L,parseContext:z,handlerFinishCommand:S}=e);M.configObjects=t;P.unfreeze();v.unfreeze();O.unfreeze()}B.boolean=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("boolean",e);return B};B.array=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("array",e);return B};B.number=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("number",e);return B};B.normalize=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("normalize",e);return B};B.count=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("count",e);return B};B.string=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("string",e);return B};B.requiresArg=function(e){D.argsert("<array|string|object> [number]",[e],arguments.length);if(typeof e==="string"&&M.narg[e]){return B}else{populateParserHintSingleValueDictionary(B.requiresArg,"narg",e,NaN)}return B};B.skipValidation=function(e){D.argsert("<array|string>",[e],arguments.length);populateParserHintArray("skipValidation",e);return B};function populateParserHintArray(e,t){t=[].concat(t);t.forEach(t=>{t=sanitizeKey(t);M[e].push(t)})}B.nargs=function(e,t){D.argsert("<string|object|array> [number]",[e,t],arguments.length);populateParserHintSingleValueDictionary(B.nargs,"narg",e,t);return B};B.choices=function(e,t){D.argsert("<object|string|array> [string|array]",[e,t],arguments.length);populateParserHintArrayDictionary(B.choices,"choices",e,t);return B};B.alias=function(e,t){D.argsert("<object|string|array> [string|array]",[e,t],arguments.length);populateParserHintArrayDictionary(B.alias,"alias",e,t);return B};B.default=B.defaults=function(e,t,u){D.argsert("<object|string|array> [*] [string]",[e,t,u],arguments.length);if(u){r.assertSingleKey(e);M.defaultDescription[e]=u}if(typeof t==="function"){r.assertSingleKey(e);if(!M.defaultDescription[e])M.defaultDescription[e]=P.functionDescription(t);t=t.call()}populateParserHintSingleValueDictionary(B.default,"default",e,t);return B};B.describe=function(e,t){D.argsert("<object|string|array> [string]",[e,t],arguments.length);setKey(e,true);P.describe(e,t);return B};function setKey(e,t){populateParserHintSingleValueDictionary(setKey,"key",e,t);return B}function demandOption(e,t){D.argsert("<object|string|array> [string]",[e,t],arguments.length);populateParserHintSingleValueDictionary(B.demandOption,"demandedOptions",e,t);return B}B.demandOption=demandOption;B.coerce=function(e,t){D.argsert("<object|string|array> [function]",[e,t],arguments.length);populateParserHintSingleValueDictionary(B.coerce,"coerce",e,t);return B};function populateParserHintSingleValueDictionary(e,t,u,n){populateParserHintDictionary(e,t,u,n,(e,t,u)=>{M[e][t]=u})}function populateParserHintArrayDictionary(e,t,u,n){populateParserHintDictionary(e,t,u,n,(e,t,u)=>{M[e][t]=(M[e][t]||[]).concat(u)})}function populateParserHintDictionary(e,t,u,n,o){if(Array.isArray(u)){u.forEach(t=>{e(t,n)})}else if((e=>typeof e==="object")(u)){for(const t of r.objectKeys(u)){e(t,u[t])}}else{o(t,sanitizeKey(u),n)}}function sanitizeKey(e){if(e==="__proto__")return"___proto___";return e}function deleteFromParserHintObject(e){r.objectKeys(M).forEach(t=>{if((e=>e==="configObjects")(t))return;const u=M[t];if(Array.isArray(u)){if(~u.indexOf(e))u.splice(u.indexOf(e),1)}else if(typeof u==="object"){delete u[e]}});delete P.getDescriptions()[e]}B.config=function config(e="config",u,n){D.argsert("[object|string] [string|function] [function]",[e,u,n],arguments.length);if(typeof e==="object"&&!Array.isArray(e)){e=p.applyExtends(e,t,B.getParserConfiguration()["deep-merge-config"]);M.configObjects=(M.configObjects||[]).concat(e);return B}if(typeof u==="function"){n=u;u=undefined}B.describe(e,u||P.deferY18nLookup("Path to JSON config file"));(Array.isArray(e)?e:[e]).forEach(e=>{M.config[e]=n||true});return B};B.example=function(e,t){D.argsert("<string|array> [string]",[e,t],arguments.length);if(Array.isArray(e)){e.forEach(e=>B.example(...e))}else{P.example(e,t)}return B};B.command=function(e,t,u,n,r,o){D.argsert("<string|array|object> [string|boolean] [function|object] [function] [array] [boolean|string]",[e,t,u,n,r,o],arguments.length);O.addHandler(e,t,u,n,r,o);return B};B.commandDir=function(e,t){D.argsert("<string> [object]",[e,t],arguments.length);const n=b||require;O.addDirectory(e,B.getContext(),n,u(351)(),t);return B};B.demand=B.required=B.require=function demand(e,t,u){if(Array.isArray(t)){t.forEach(e=>{r.assertNotStrictEqual(u,true);demandOption(e,u)});t=Infinity}else if(typeof t!=="number"){u=t;t=Infinity}if(typeof e==="number"){r.assertNotStrictEqual(u,true);B.demandCommand(e,t,u,u)}else if(Array.isArray(e)){e.forEach(e=>{r.assertNotStrictEqual(u,true);demandOption(e,u)})}else{if(typeof u==="string"){demandOption(e,u)}else if(u===true||typeof u==="undefined"){demandOption(e)}}return B};B.demandCommand=function demandCommand(e=1,t,u,n){D.argsert("[number] [number|string] [string|null|undefined] [string|null|undefined]",[e,t,u,n],arguments.length);if(typeof t!=="number"){u=t;t=Infinity}B.global("_",false);M.demandedCommands._={min:e,max:t,minMsg:u,maxMsg:n};return B};B.getDemandedOptions=(()=>{D.argsert([],0);return M.demandedOptions});B.getDemandedCommands=(()=>{D.argsert([],0);return M.demandedCommands});B.deprecateOption=function deprecateOption(e,t){D.argsert("<string> [string|boolean]",[e,t],arguments.length);M.deprecatedOptions[e]=t;return B};B.getDeprecatedOptions=(()=>{D.argsert([],0);return M.deprecatedOptions});B.implies=function(e,t){D.argsert("<string|object> [number|string|array]",[e,t],arguments.length);v.implies(e,t);return B};B.conflicts=function(e,t){D.argsert("<string|object> [string|array]",[e,t],arguments.length);v.conflicts(e,t);return B};B.usage=function(e,t,u,n){D.argsert("<string|null|undefined> [string|boolean] [function|object] [function]",[e,t,u,n],arguments.length);if(t!==undefined){r.assertNotStrictEqual(e,null);if((e||"").match(/^\$0( |$)/)){return B.command(e,t,u,n)}else{throw new o.YError(".usage() description must start with $0 if being used as alias for .command()")}}else{P.usage(e);return B}};B.epilogue=B.epilog=function(e){D.argsert("<string>",[e],arguments.length);P.epilog(e);return B};B.fail=function(e){D.argsert("<function>",[e],arguments.length);P.failFn(e);return B};B.onFinishCommand=function(e){D.argsert("<function>",[e],arguments.length);S=e;return B};B.getHandlerFinishCommand=(()=>S);B.check=function(e,t){D.argsert("<function> [boolean]",[e,t],arguments.length);v.check(e,t!==false);return B};B.global=function global(e,global){D.argsert("<string|array> [boolean]",[e,global],arguments.length);e=[].concat(e);if(global!==false){M.local=M.local.filter(t=>e.indexOf(t)===-1)}else{e.forEach(e=>{if(M.local.indexOf(e)===-1)M.local.push(e)})}return B};B.pkgConf=function pkgConf(e,u){D.argsert("<string> [string]",[e,u],arguments.length);let n=null;const r=pkgUp(u||t);if(r[e]&&typeof r[e]==="object"){n=p.applyExtends(r[e],u||t,B.getParserConfiguration()["deep-merge-config"]);M.configObjects=(M.configObjects||[]).concat(n)}return B};const I={};function pkgUp(e){const t=e||"*";if(I[t])return I[t];let u={};try{let t=e||m(b);if(!e&&a.extname(t)){t=a.dirname(t)}const n=y.sync("package.json",{cwd:t});r.assertNotStrictEqual(n,undefined);u=JSON.parse(s.readFileSync(n).toString())}catch(e){}I[t]=u||{};return I[t]}let L=null;let z=null;B.parse=function parse(t,u,n){D.argsert("[string|array] [function|boolean|object] [function]",[t,u,n],arguments.length);freeze();if(typeof t==="undefined"){const t=B._parseArgs(e);const u=B.parsed;unfreeze();B.parsed=u;return t}if(typeof u==="object"){z=u;u=n}if(typeof u==="function"){L=u;u=false}if(!u)e=t;if(L)K=false;const r=B._parseArgs(t,!!u);A.setParsed(B.parsed);if(L)L(J,r,j);unfreeze();return r};B._getParseContext=(()=>z||{});B._hasParseCallback=(()=>!!L);B.option=B.options=function option(e,t){D.argsert("<string|object> [object]",[e,t],arguments.length);if(typeof e==="object"){Object.keys(e).forEach(t=>{B.options(t,e[t])})}else{if(typeof t!=="object"){t={}}M.key[e]=true;if(t.alias)B.alias(e,t.alias);const u=t.deprecate||t.deprecated;if(u){B.deprecateOption(e,u)}const n=t.demand||t.required||t.require;if(n){B.demand(e,n)}if(t.demandOption){B.demandOption(e,typeof t.demandOption==="string"?t.demandOption:undefined)}if(t.conflicts){B.conflicts(e,t.conflicts)}if("default"in t){B.default(e,t.default)}if(t.implies!==undefined){B.implies(e,t.implies)}if(t.nargs!==undefined){B.nargs(e,t.nargs)}if(t.config){B.config(e,t.configParser)}if(t.normalize){B.normalize(e)}if(t.choices){B.choices(e,t.choices)}if(t.coerce){B.coerce(e,t.coerce)}if(t.group){B.group(e,t.group)}if(t.boolean||t.type==="boolean"){B.boolean(e);if(t.alias)B.boolean(t.alias)}if(t.array||t.type==="array"){B.array(e);if(t.alias)B.array(t.alias)}if(t.number||t.type==="number"){B.number(e);if(t.alias)B.number(t.alias)}if(t.string||t.type==="string"){B.string(e);if(t.alias)B.string(t.alias)}if(t.count||t.type==="count"){B.count(e)}if(typeof t.global==="boolean"){B.global(e,t.global)}if(t.defaultDescription){M.defaultDescription[e]=t.defaultDescription}if(t.skipValidation){B.skipValidation(e)}const r=t.describe||t.description||t.desc;B.describe(e,r);if(t.hidden){B.hide(e)}if(t.requiresArg){B.requiresArg(e)}}return B};B.getOptions=(()=>M);B.positional=function(e,t){D.argsert("<string> <object>",[e,t],arguments.length);if(H.resets===0){throw new o.YError(".positional() can only be called in a command's builder function")}const u=["default","defaultDescription","implies","normalize","choices","conflicts","coerce","type","describe","desc","description","alias"];t=f.objFilter(t,(e,t)=>{let n=u.indexOf(e)!==-1;if(e==="type"&&["string","number","boolean"].indexOf(t)===-1)n=false;return n});const n=H.fullCommands[H.fullCommands.length-1];const i=n?O.cmdToParseOptions(n):{array:[],alias:{},default:{},demand:{}};r.objectKeys(i).forEach(u=>{const n=i[u];if(Array.isArray(n)){if(n.indexOf(e)!==-1)t[u]=true}else{if(n[e]&&!(u in t))t[u]=n[e]}});B.group(e,P.getPositionalGroupName());return B.option(e,t)};B.group=function group(e,t){D.argsert("<string|array> <string>",[e,t],arguments.length);const u=w[t]||_[t];if(w[t]){delete w[t]}const n={};_[t]=(u||[]).concat(e).filter(e=>{if(n[e])return false;return n[e]=true});return B};B.getGroups=(()=>Object.assign({},_,w));B.env=function(e){D.argsert("[string|boolean]",[e],arguments.length);if(e===false)delete M.envPrefix;else M.envPrefix=e||"";return B};B.wrap=function(e){D.argsert("<number|null|undefined>",[e],arguments.length);P.wrap(e);return B};let T=false;B.strict=function(e){D.argsert("[boolean]",[e],arguments.length);T=e!==false;return B};B.getStrict=(()=>T);let Y=false;B.strictCommands=function(e){D.argsert("[boolean]",[e],arguments.length);Y=e!==false;return B};B.getStrictCommands=(()=>Y);let U={};B.parserConfiguration=function parserConfiguration(e){D.argsert("<object>",[e],arguments.length);U=e;return B};B.getParserConfiguration=(()=>U);B.showHelp=function(t){D.argsert("[string|function]",[t],arguments.length);if(!B.parsed)B._parseArgs(e);if(O.hasDefaultCommand()){H.resets++;O.runDefaultBuilderOn(B)}P.showHelp(t);return B};let V=null;B.version=function version(e,t,u){const n="version";D.argsert("[boolean|string] [string] [string]",[e,t,u],arguments.length);if(V){deleteFromParserHintObject(V);P.version(undefined);V=null}if(arguments.length===0){u=guessVersion();e=n}else if(arguments.length===1){if(e===false){return B}u=e;e=n}else if(arguments.length===2){u=t;t=undefined}V=typeof e==="string"?e:n;t=t||P.deferY18nLookup("Show version number");P.version(u||undefined);B.boolean(V);B.describe(V,t);return B};function guessVersion(){const e=pkgUp();return e.version||"unknown"}let W=null;B.addHelpOpt=B.help=function addHelpOpt(e,t){const u="help";D.argsert("[string|boolean] [string]",[e,t],arguments.length);if(W){deleteFromParserHintObject(W);W=null}if(arguments.length===1){if(e===false)return B}W=typeof e==="string"?e:u;B.boolean(W);B.describe(W,t||P.deferY18nLookup("Show help"));return B};const G="show-hidden";M.showHiddenOpt=G;B.addShowHiddenOpt=B.showHidden=function addShowHiddenOpt(e,t){D.argsert("[string|boolean] [string]",[e,t],arguments.length);if(arguments.length===1){if(e===false)return B}const u=typeof e==="string"?e:G;B.boolean(u);B.describe(u,t||P.deferY18nLookup("Show hidden options"));M.showHiddenOpt=u;return B};B.hide=function hide(e){D.argsert("<string>",[e],arguments.length);M.hiddenOptions.push(e);return B};B.showHelpOnFail=function showHelpOnFail(e,t){D.argsert("[boolean|string] [string]",[e,t],arguments.length);P.showHelpOnFail(e,t);return B};var K=true;B.exitProcess=function(e=true){D.argsert("[boolean]",[e],arguments.length);K=e;return B};B.getExitProcess=(()=>K);var Z=null;B.completion=function(e,t,u){D.argsert("[string] [string|boolean|function] [function]",[e,t,u],arguments.length);if(typeof t==="function"){u=t;t=undefined}Z=e||Z||"completion";if(!t&&t!==false){t="generate completion script"}B.command(Z,t);if(u)A.registerFunction(u);return B};B.showCompletionScript=function(e,t){D.argsert("[string] [string]",[e,t],arguments.length);e=e||B.$0;k.log(A.generateCompletionScript(e,t||Z||"completion"));return B};B.getCompletion=function(e,t){D.argsert("<array> <function>",[e,t],arguments.length);A.getCompletion(e,t)};B.locale=function(e){D.argsert("[string]",[e],arguments.length);if(!e){guessLocale();return $.getLocale()}R=false;$.setLocale(e);return B};B.updateStrings=B.updateLocale=function(e){D.argsert("<object>",[e],arguments.length);R=false;$.updateLocale(e);return B};let R=true;B.detectLocale=function(e){D.argsert("<boolean>",[e],arguments.length);R=e;return B};B.getDetectLocale=(()=>R);var Q=false;var J=null;B.exit=((e,t)=>{Q=true;J=t;if(K)process.exit(e)});const k={log(...e){if(!B._hasParseCallback())console.log(...e);Q=true;if(j.length)j+="\n";j+=e.join(" ")},error(...e){if(!B._hasParseCallback())console.error(...e);Q=true;if(j.length)j+="\n";j+=e.join(" ")}};B._getLoggerInstance=(()=>k);B._hasOutput=(()=>Q);B._setHasOutput=(()=>{Q=true});let X;B.recommendCommands=function(e=true){D.argsert("[boolean]",[e],arguments.length);X=e;return B};B.getUsageInstance=(()=>P);B.getValidationInstance=(()=>v);B.getCommandInstance=(()=>O);B.terminalWidth=(()=>{D.argsert([],0);return typeof process.stdout.columns!=="undefined"?process.stdout.columns:null});Object.defineProperty(B,"argv",{get:()=>B._parseArgs(e),enumerable:true});B._parseArgs=function parseArgs(t,u,n,r){let i=!!n;t=t||e;M.__=$.__;M.configuration=B.getParserConfiguration();const D=!!M.configuration["populate--"];const s=Object.assign({},M.configuration,{"populate--":true});const c=h.detailed(t,Object.assign({},M,{configuration:s}));let a=c.argv;if(z)a=Object.assign({},a,z);const l=c.aliases;a.$0=B.$0;B.parsed=c;try{guessLocale();if(u){return D||n?a:B._copyDoubleDash(a)}if(W){const e=[W].concat(l[W]||[]).filter(e=>e.length>1);if(~e.indexOf(a._[a._.length-1])){a._.pop();a[W]=true}}const e=O.getCommands();const s=A.completionKey in a;const f=a[W]||s;const p=f&&(e.length>1||e[0]!=="$0");if(a._.length){if(e.length){let t;for(let u=r||0,n;a._[u]!==undefined;u++){n=String(a._[u]);if(~e.indexOf(n)&&n!==Z){const e=O.runCommand(n,B,c,u+1);return D?e:B._copyDoubleDash(e)}else if(!t&&n!==Z){t=n;break}}if(O.hasDefaultCommand()&&!p){const e=O.runCommand(null,B,c);return D?e:B._copyDoubleDash(e)}if(X&&t&&!f){v.recommendCommands(t,e)}}if(Z&&~a._.indexOf(Z)&&!s){if(K)E(true);B.showCompletionScript();B.exit(0)}}else if(O.hasDefaultCommand()&&!p){const e=O.runCommand(null,B,c);return D?e:B._copyDoubleDash(e)}if(s){if(K)E(true);t=[].concat(t);const e=t.slice(t.indexOf(`--${A.completionKey}`)+1);A.getCompletion(e,e=>{(e||[]).forEach(e=>{k.log(e)});B.exit(0)});return D||n?a:B._copyDoubleDash(a)}if(!Q){Object.keys(a).forEach(e=>{if(e===W&&a[e]){if(K)E(true);i=true;B.showHelp("log");B.exit(0)}else if(e===V&&a[e]){if(K)E(true);i=true;P.showVersion();B.exit(0)}})}if(!i&&M.skipValidation.length>0){i=Object.keys(a).some(e=>M.skipValidation.indexOf(e)>=0&&a[e]===true)}if(!i){if(c.error)throw new o.YError(c.error.message);if(!s){B._runValidation(a,l,{},c.error)}}}catch(e){if(e instanceof o.YError)P.fail(e.message,e);else throw e}return D||n?a:B._copyDoubleDash(a)};B._copyDoubleDash=function(e){if(F.isPromise(e)||!e._||!e["--"])return e;e._.push.apply(e._,e["--"]);try{delete e["--"]}catch(e){}return e};B._runValidation=function runValidation(e,t,u,n,r=false){if(n)throw new o.YError(n.message);v.nonOptionCount(e);v.requiredArguments(e);let i=false;if(Y){i=v.unknownCommands(e)}if(T&&!i){v.unknownArguments(e,t,u,r)}v.customChecks(e,t);v.limitedChoices(e);v.implications(e);v.conflicting(e)};function guessLocale(){if(!R)return;const e=process.env.LC_ALL||process.env.LC_MESSAGES||process.env.LANG||process.env.LANGUAGE||"en_US";B.locale(e.replace(/[.:].*/,""))}B.help();B.version();return B}t.Yargs=Yargs;function rebase(e,t){return a.relative(e,t)}t.rebase=rebase;function isYargsInstance(e){return!!e&&typeof e._parseArgs==="function"}t.isYargsInstance=isYargsInstance},607:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:true});t.YError=void 0;class YError extends Error{constructor(e){super(e||"yargs error");this.name="YError";Error.captureStackTrace(this,YError)}}t.YError=YError},287:(e,t,u)=>{"use strict";const n=u(976);const r=u(414);Argv(r.getProcessArgvWithoutBin());e.exports=Argv;function Argv(e,t){const u=n(e,t,require);singletonify(u);return u}function singletonify(e){Object.keys(e).forEach(t=>{if(t==="argv"){Argv.__defineGetter__(t,e.__lookupGetter__(t))}else if(typeof e[t]==="function"){Argv[t]=e[t].bind(e)}else{Argv.__defineGetter__("$0",()=>{return e.$0});Argv.__defineGetter__("parsed",()=>{return e.parsed})}})}},506:(e,t,u)=>{"use strict";const n=u(622);const r=u(696);const o=u(808);const i=Symbol("findUp.stop");e.exports=(async(e,t={})=>{let u=n.resolve(t.cwd||"");const{root:o}=n.parse(u);const D=[].concat(e);const s=async t=>{if(typeof e!=="function"){return r(D,t)}const u=await e(t.cwd);if(typeof u==="string"){return r([u],t)}return u};while(true){const e=await s({...t,cwd:u});if(e===i){return}if(e){return n.resolve(u,e)}if(u===o){return}u=n.dirname(u)}});e.exports.sync=((e,t={})=>{let u=n.resolve(t.cwd||"");const{root:o}=n.parse(u);const D=[].concat(e);const s=t=>{if(typeof e!=="function"){return r.sync(D,t)}const u=e(t.cwd);if(typeof u==="string"){return r.sync([u],t)}return u};while(true){const e=s({...t,cwd:u});if(e===i){return}if(e){return n.resolve(u,e)}if(u===o){return}u=n.dirname(u)}});e.exports.exists=o;e.exports.sync.exists=o.sync;e.exports.stop=i},696:(e,t,u)=>{"use strict";const n=u(622);const r=u(747);const{promisify:o}=u(669);const i=u(580);const D=o(r.stat);const s=o(r.lstat);const c={directory:"isDirectory",file:"isFile"};function checkType({type:e}){if(e in c){return}throw new Error(`Invalid type specified: ${e}`)}const a=(e,t)=>e===undefined||t[c[e]]();e.exports=(async(e,t)=>{t={cwd:process.cwd(),type:"file",allowSymlinks:true,...t};checkType(t);const u=t.allowSymlinks?D:s;return i(e,async e=>{try{const r=await u(n.resolve(t.cwd,e));return a(t.type,r)}catch(e){return false}},t)});e.exports.sync=((e,t)=>{t={cwd:process.cwd(),allowSymlinks:true,type:"file",...t};checkType(t);const u=t.allowSymlinks?r.statSync:r.lstatSync;for(const r of e){try{const e=u(n.resolve(t.cwd,r));if(a(t.type,e)){return r}}catch(e){}}})},580:(e,t,u)=>{"use strict";const n=u(684);class EndError extends Error{constructor(e){super();this.value=e}}const r=async(e,t)=>t(await e);const o=async e=>{const t=await Promise.all(e);if(t[1]===true){throw new EndError(t[0])}return false};const i=async(e,t,u)=>{u={concurrency:Infinity,preserveOrder:true,...u};const i=n(u.concurrency);const D=[...e].map(e=>[e,i(r,e,t)]);const s=n(u.preserveOrder?1:Infinity);try{await Promise.all(D.map(e=>s(o,e)))}catch(e){if(e instanceof EndError){return e.value}throw e}};e.exports=i;e.exports.default=i},808:(e,t,u)=>{"use strict";const n=u(747);const{promisify:r}=u(669);const o=r(n.access);e.exports=(async e=>{try{await o(e);return true}catch(e){return false}});e.exports.sync=(e=>{try{n.accessSync(e);return true}catch(e){return false}})},976:(e,t,u)=>{"use strict";async function requiresNode8OrGreater(){}requiresNode8OrGreater();const{Yargs:n,rebase:r}=u(801);const o=u(175);t=e.exports=n;t.rebase=r;t.Parser=o},565:e=>{"use strict";e.exports=require("@umijs/deps/compiled/cliui")},175:e=>{"use strict";e.exports=require("@umijs/deps/compiled/yargs-parser")},357:e=>{"use strict";e.exports=require("assert")},747:e=>{"use strict";e.exports=require("fs")},622:e=>{"use strict";e.exports=require("path")},669:e=>{"use strict";e.exports=require("util")}};var t={};function __nccwpck_require__(u){if(t[u]){return t[u].exports}var n=t[u]={exports:{}};var r=true;try{e[u](n,n.exports,__nccwpck_require__);r=false}finally{if(r)delete t[u]}return n.exports}__nccwpck_require__.ab=__dirname+"/";return __nccwpck_require__(287)})();