@stacksjs/strings 0.65.0 → 0.68.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/case.d.ts +34 -10
- package/dist/detect-indent.d.ts +9 -0
- package/dist/detect-newline.d.ts +2 -0
- package/dist/helpers.d.ts +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +963 -161
- package/dist/is.d.ts +3 -2
- package/dist/macro.d.ts +33 -35
- package/dist/pluralize.d.ts +31 -22
- package/dist/slug.d.ts +13 -0
- package/dist/sponge-case.d.ts +1 -0
- package/dist/string.d.ts +6 -6
- package/dist/swap-case.d.ts +1 -0
- package/dist/title-case.d.ts +14 -0
- package/dist/utils.d.ts +12 -64
- package/package.json +5 -15
- package/dist/index.js.map +0 -179
- package/dist/types.d.ts +0 -1
- package/src/case.ts +0 -31
- package/src/helpers.ts +0 -3
- package/src/index.ts +0 -2
- package/src/is.ts +0 -170
- package/src/macro.ts +0 -135
- package/src/pluralize.ts +0 -35
- package/src/string.ts +0 -7
- package/src/types.ts +0 -4
- package/src/utils.ts +0 -116
package/dist/index.js.map
DELETED
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../../node_modules/pluralize/pluralize.js", "../../../../../node_modules/slugify/slugify.js", "../../../../../node_modules/validator/lib/util/assertString.js", "../../../../../node_modules/validator/lib/isIP.js", "../../../../../node_modules/validator/lib/util/merge.js", "../../../../../node_modules/validator/lib/isBase64.js", "../../../../../node_modules/validator/lib/isJWT.js", "../../../../../node_modules/validator/lib/isFQDN.js", "../../../../../node_modules/validator/lib/isURL.js", "../../../../../node_modules/validator/lib/isSlug.js", "../../../../../node_modules/validator/lib/isIBAN.js", "../../../../../node_modules/validator/lib/isUUID.js", "../../../../../node_modules/validator/lib/isAscii.js", "../../../../../node_modules/validator/lib/isByteLength.js", "../../../../../node_modules/validator/lib/isEmail.js", "../../../../../node_modules/validator/lib/alpha.js", "../../../../../node_modules/validator/lib/isAlpha.js", "../../../../../node_modules/validator/lib/isLatLong.js", "../../../../../node_modules/validator/lib/util/includes.js", "../../../../../node_modules/validator/lib/isDecimal.js", "../../../../../node_modules/validator/lib/isHexColor.js", "../../../../../node_modules/validator/lib/isLuhnNumber.js", "../../../../../node_modules/validator/lib/isCreditCard.js", "../../../../../node_modules/validator/lib/isAlphanumeric.js", "../../../../../node_modules/validator/lib/isPassportNumber.js", "../../../../../node_modules/validator/lib/isPostalCode.js", "../../../../../node_modules/validator/lib/isMobilePhone.js", "../../../../../node_modules/dayjs/dayjs.min.js", "../../../../../node_modules/dayjs/plugin/isSameOrAfter.js", "../../../../../node_modules/dayjs/plugin/isSameOrBefore.js", "../../../../../node_modules/dayjs/plugin/customParseFormat.js", "../../../../../node_modules/validator/lib/escape.js", "../../../../../node_modules/validator/lib/normalizeEmail.js", "../../../../../node_modules/consola/dist/core.mjs", "../../../../../node_modules/consola/dist/shared/consola.06ad8a64.mjs", "../../../../../node_modules/consola/dist/utils.mjs", "../../../../../node_modules/consola/dist/chunks/prompt.mjs", "../../../../../node_modules/consola/dist/shared/consola.36c0034f.mjs", "../../../../../node_modules/kleur/index.js", "../../../../../node_modules/prompts/dist/util/action.js", "../../../../../node_modules/prompts/dist/util/strip.js", "../../../../../node_modules/sisteransi/src/index.js", "../../../../../node_modules/prompts/dist/util/clear.js", "../../../../../node_modules/prompts/dist/util/figures.js", "../../../../../node_modules/prompts/dist/util/style.js", "../../../../../node_modules/prompts/dist/util/lines.js", "../../../../../node_modules/prompts/dist/util/wrap.js", "../../../../../node_modules/prompts/dist/util/entriesToDisplay.js", "../../../../../node_modules/prompts/dist/util/index.js", "../../../../../node_modules/prompts/dist/elements/prompt.js", "../../../../../node_modules/prompts/dist/elements/text.js", "../../../../../node_modules/prompts/dist/elements/select.js", "../../../../../node_modules/prompts/dist/elements/toggle.js", "../../../../../node_modules/prompts/dist/dateparts/datepart.js", "../../../../../node_modules/prompts/dist/dateparts/meridiem.js", "../../../../../node_modules/prompts/dist/dateparts/day.js", "../../../../../node_modules/prompts/dist/dateparts/hours.js", "../../../../../node_modules/prompts/dist/dateparts/milliseconds.js", "../../../../../node_modules/prompts/dist/dateparts/minutes.js", "../../../../../node_modules/prompts/dist/dateparts/month.js", "../../../../../node_modules/prompts/dist/dateparts/seconds.js", "../../../../../node_modules/prompts/dist/dateparts/year.js", "../../../../../node_modules/prompts/dist/dateparts/index.js", "../../../../../node_modules/prompts/dist/elements/date.js", "../../../../../node_modules/prompts/dist/elements/number.js", "../../../../../node_modules/prompts/dist/elements/multiselect.js", "../../../../../node_modules/prompts/dist/elements/autocomplete.js", "../../../../../node_modules/prompts/dist/elements/autocompleteMultiselect.js", "../../../../../node_modules/prompts/dist/elements/confirm.js", "../../../../../node_modules/prompts/dist/elements/index.js", "../../../../../node_modules/prompts/dist/prompts.js", "../../../../../node_modules/prompts/dist/index.js", "../../../../../node_modules/prompts/lib/util/action.js", "../../../../../node_modules/prompts/lib/util/strip.js", "../../../../../node_modules/prompts/lib/util/clear.js", "../../../../../node_modules/prompts/lib/util/figures.js", "../../../../../node_modules/prompts/lib/util/style.js", "../../../../../node_modules/prompts/lib/util/lines.js", "../../../../../node_modules/prompts/lib/util/wrap.js", "../../../../../node_modules/prompts/lib/util/entriesToDisplay.js", "../../../../../node_modules/prompts/lib/util/index.js", "../../../../../node_modules/prompts/lib/elements/prompt.js", "../../../../../node_modules/prompts/lib/elements/text.js", "../../../../../node_modules/prompts/lib/elements/select.js", "../../../../../node_modules/prompts/lib/elements/toggle.js", "../../../../../node_modules/prompts/lib/dateparts/datepart.js", "../../../../../node_modules/prompts/lib/dateparts/meridiem.js", "../../../../../node_modules/prompts/lib/dateparts/day.js", "../../../../../node_modules/prompts/lib/dateparts/hours.js", "../../../../../node_modules/prompts/lib/dateparts/milliseconds.js", "../../../../../node_modules/prompts/lib/dateparts/minutes.js", "../../../../../node_modules/prompts/lib/dateparts/month.js", "../../../../../node_modules/prompts/lib/dateparts/seconds.js", "../../../../../node_modules/prompts/lib/dateparts/year.js", "../../../../../node_modules/prompts/lib/dateparts/index.js", "../../../../../node_modules/prompts/lib/elements/date.js", "../../../../../node_modules/prompts/lib/elements/number.js", "../../../../../node_modules/prompts/lib/elements/multiselect.js", "../../../../../node_modules/prompts/lib/elements/autocomplete.js", "../../../../../node_modules/prompts/lib/elements/autocompleteMultiselect.js", "../../../../../node_modules/prompts/lib/elements/confirm.js", "../../../../../node_modules/prompts/lib/elements/index.js", "../../../../../node_modules/prompts/lib/prompts.js", "../../../../../node_modules/prompts/lib/index.js", "../../../../../node_modules/prompts/index.js", "../src/case.ts", "../../../../../node_modules/change-case/dist/index.js", "../../../../../node_modules/title-case/dist/index.js", "../src/helpers.ts", "../src/pluralize.ts", "../src/utils.ts", "../../../../../node_modules/detect-indent/index.js", "../../../../../node_modules/detect-newline/index.js", "../src/macro.ts", "../../validation/src/is.ts", "../../../../../node_modules/@vinejs/vine/build/chunk-577THMJC.js", "../../../../../node_modules/@vinejs/vine/build/chunk-CSAU5B4Q.js", "../../../../../node_modules/dlv/dist/dlv.es.js", "../../../../../node_modules/@vinejs/vine/build/chunk-2W32DW3L.js", "../../../../../node_modules/@vinejs/vine/build/chunk-46WINKKP.js", "../../../../../node_modules/@poppinss/macroable/build/index.js", "../../../../../node_modules/camelcase/index.js", "../../../../../node_modules/normalize-url/index.js", "../../../../../node_modules/@vinejs/compiler/build/index.js", "../../path/src/index.ts", "../../../../../node_modules/cac/dist/index.mjs", "../../logging/src/index.ts", "../../config/src/defaults.ts", "../../../../../config/ai.ts", "../../../../../config/analytics.ts", "../../env/src/index.ts", "../../../../../config/env.ts", "../../env/src/types.ts", "../../../../../config/app.ts", "../../../../../config/cache.ts", "../../../../../config/cli.ts", "../../../../../config/security.ts", "../../../../../config/cloud.ts", "../../../../../config/database.ts", "../../../../../config/dns.ts", "../../../../../config/email.ts", "../../../../../config/errors.ts", "../../../../../config/git.ts", "../../../../../config/hashing.ts", "../../../../../config/library.ts", "../../../../../config/logging.ts", "../../../../../config/notification.ts", "../../../../../config/payment.ts", "../../../../../config/ports.ts", "../../../../../config/queue.ts", "../../../../../config/search-engine.ts", "../../../../../config/services.ts", "../../../../../config/storage.ts", "../../../../../config/team.ts", "../../../../../config/ui.ts", "../../config/src/overrides.ts", "../../config/src/config.ts", "../../../../../node_modules/neverthrow/dist/index.es.js", "../../../../../node_modules/consola/dist/index.mjs", "../../cli/src/console.ts", "../../collections/src/index.ts", "../../collections/src/helpers/clone.ts", "../../collections/src/helpers/variadic.ts", "../../collections/src/helpers/delete-keys.ts", "../../collections/src/helpers/is.ts", "../../collections/src/helpers/nested-value.ts", "../../collections/src/helpers/values.ts", "../../cli/src/utils.ts", "../../../../../node_modules/kolorist/dist/esm/index.mjs", "../../cli/src/parse.ts"],
|
|
4
|
-
"sourcesContent": [
|
|
5
|
-
"/* global define */\n\n(function (root, pluralize) {\n /* istanbul ignore else */\n if (typeof require === 'function' && typeof exports === 'object' && typeof module === 'object') {\n // Node.\n module.exports = pluralize();\n } else if (typeof define === 'function' && define.amd) {\n // AMD, registers as an anonymous module.\n define(function () {\n return pluralize();\n });\n } else {\n // Browser global.\n root.pluralize = pluralize();\n }\n})(this, function () {\n // Rule storage - pluralize and singularize need to be run sequentially,\n // while other rules can be optimized using an object for instant lookups.\n var pluralRules = [];\n var singularRules = [];\n var uncountables = {};\n var irregularPlurals = {};\n var irregularSingles = {};\n\n /**\n * Sanitize a pluralization rule to a usable regular expression.\n *\n * @param {(RegExp|string)} rule\n * @return {RegExp}\n */\n function sanitizeRule (rule) {\n if (typeof rule === 'string') {\n return new RegExp('^' + rule + '$', 'i');\n }\n\n return rule;\n }\n\n /**\n * Pass in a word token to produce a function that can replicate the case on\n * another word.\n *\n * @param {string} word\n * @param {string} token\n * @return {Function}\n */\n function restoreCase (word, token) {\n // Tokens are an exact match.\n if (word === token) return token;\n\n // Lower cased words. E.g. \"hello\".\n if (word === word.toLowerCase()) return token.toLowerCase();\n\n // Upper cased words. E.g. \"WHISKY\".\n if (word === word.toUpperCase()) return token.toUpperCase();\n\n // Title cased words. E.g. \"Title\".\n if (word[0] === word[0].toUpperCase()) {\n return token.charAt(0).toUpperCase() + token.substr(1).toLowerCase();\n }\n\n // Lower cased words. E.g. \"test\".\n return token.toLowerCase();\n }\n\n /**\n * Interpolate a regexp string.\n *\n * @param {string} str\n * @param {Array} args\n * @return {string}\n */\n function interpolate (str, args) {\n return str.replace(/\\$(\\d{1,2})/g, function (match, index) {\n return args[index] || '';\n });\n }\n\n /**\n * Replace a word using a rule.\n *\n * @param {string} word\n * @param {Array} rule\n * @return {string}\n */\n function replace (word, rule) {\n return word.replace(rule[0], function (match, index) {\n var result = interpolate(rule[1], arguments);\n\n if (match === '') {\n return restoreCase(word[index - 1], result);\n }\n\n return restoreCase(match, result);\n });\n }\n\n /**\n * Sanitize a word by passing in the word and sanitization rules.\n *\n * @param {string} token\n * @param {string} word\n * @param {Array} rules\n * @return {string}\n */\n function sanitizeWord (token, word, rules) {\n // Empty string or doesn't need fixing.\n if (!token.length || uncountables.hasOwnProperty(token)) {\n return word;\n }\n\n var len = rules.length;\n\n // Iterate over the sanitization rules and use the first one to match.\n while (len--) {\n var rule = rules[len];\n\n if (rule[0].test(word)) return replace(word, rule);\n }\n\n return word;\n }\n\n /**\n * Replace a word with the updated word.\n *\n * @param {Object} replaceMap\n * @param {Object} keepMap\n * @param {Array} rules\n * @return {Function}\n */\n function replaceWord (replaceMap, keepMap, rules) {\n return function (word) {\n // Get the correct token and case restoration functions.\n var token = word.toLowerCase();\n\n // Check against the keep object map.\n if (keepMap.hasOwnProperty(token)) {\n return restoreCase(word, token);\n }\n\n // Check against the replacement map for a direct word replacement.\n if (replaceMap.hasOwnProperty(token)) {\n return restoreCase(word, replaceMap[token]);\n }\n\n // Run all the rules against the word.\n return sanitizeWord(token, word, rules);\n };\n }\n\n /**\n * Check if a word is part of the map.\n */\n function checkWord (replaceMap, keepMap, rules, bool) {\n return function (word) {\n var token = word.toLowerCase();\n\n if (keepMap.hasOwnProperty(token)) return true;\n if (replaceMap.hasOwnProperty(token)) return false;\n\n return sanitizeWord(token, token, rules) === token;\n };\n }\n\n /**\n * Pluralize or singularize a word based on the passed in count.\n *\n * @param {string} word The word to pluralize\n * @param {number} count How many of the word exist\n * @param {boolean} inclusive Whether to prefix with the number (e.g. 3 ducks)\n * @return {string}\n */\n function pluralize (word, count, inclusive) {\n var pluralized = count === 1\n ? pluralize.singular(word) : pluralize.plural(word);\n\n return (inclusive ? count + ' ' : '') + pluralized;\n }\n\n /**\n * Pluralize a word.\n *\n * @type {Function}\n */\n pluralize.plural = replaceWord(\n irregularSingles, irregularPlurals, pluralRules\n );\n\n /**\n * Check if a word is plural.\n *\n * @type {Function}\n */\n pluralize.isPlural = checkWord(\n irregularSingles, irregularPlurals, pluralRules\n );\n\n /**\n * Singularize a word.\n *\n * @type {Function}\n */\n pluralize.singular = replaceWord(\n irregularPlurals, irregularSingles, singularRules\n );\n\n /**\n * Check if a word is singular.\n *\n * @type {Function}\n */\n pluralize.isSingular = checkWord(\n irregularPlurals, irregularSingles, singularRules\n );\n\n /**\n * Add a pluralization rule to the collection.\n *\n * @param {(string|RegExp)} rule\n * @param {string} replacement\n */\n pluralize.addPluralRule = function (rule, replacement) {\n pluralRules.push([sanitizeRule(rule), replacement]);\n };\n\n /**\n * Add a singularization rule to the collection.\n *\n * @param {(string|RegExp)} rule\n * @param {string} replacement\n */\n pluralize.addSingularRule = function (rule, replacement) {\n singularRules.push([sanitizeRule(rule), replacement]);\n };\n\n /**\n * Add an uncountable word rule.\n *\n * @param {(string|RegExp)} word\n */\n pluralize.addUncountableRule = function (word) {\n if (typeof word === 'string') {\n uncountables[word.toLowerCase()] = true;\n return;\n }\n\n // Set singular and plural references for the word.\n pluralize.addPluralRule(word, '$0');\n pluralize.addSingularRule(word, '$0');\n };\n\n /**\n * Add an irregular word definition.\n *\n * @param {string} single\n * @param {string} plural\n */\n pluralize.addIrregularRule = function (single, plural) {\n plural = plural.toLowerCase();\n single = single.toLowerCase();\n\n irregularSingles[single] = plural;\n irregularPlurals[plural] = single;\n };\n\n /**\n * Irregular rules.\n */\n [\n // Pronouns.\n ['I', 'we'],\n ['me', 'us'],\n ['he', 'they'],\n ['she', 'they'],\n ['them', 'them'],\n ['myself', 'ourselves'],\n ['yourself', 'yourselves'],\n ['itself', 'themselves'],\n ['herself', 'themselves'],\n ['himself', 'themselves'],\n ['themself', 'themselves'],\n ['is', 'are'],\n ['was', 'were'],\n ['has', 'have'],\n ['this', 'these'],\n ['that', 'those'],\n // Words ending in with a consonant and `o`.\n ['echo', 'echoes'],\n ['dingo', 'dingoes'],\n ['volcano', 'volcanoes'],\n ['tornado', 'tornadoes'],\n ['torpedo', 'torpedoes'],\n // Ends with `us`.\n ['genus', 'genera'],\n ['viscus', 'viscera'],\n // Ends with `ma`.\n ['stigma', 'stigmata'],\n ['stoma', 'stomata'],\n ['dogma', 'dogmata'],\n ['lemma', 'lemmata'],\n ['schema', 'schemata'],\n ['anathema', 'anathemata'],\n // Other irregular rules.\n ['ox', 'oxen'],\n ['axe', 'axes'],\n ['die', 'dice'],\n ['yes', 'yeses'],\n ['foot', 'feet'],\n ['eave', 'eaves'],\n ['goose', 'geese'],\n ['tooth', 'teeth'],\n ['quiz', 'quizzes'],\n ['human', 'humans'],\n ['proof', 'proofs'],\n ['carve', 'carves'],\n ['valve', 'valves'],\n ['looey', 'looies'],\n ['thief', 'thieves'],\n ['groove', 'grooves'],\n ['pickaxe', 'pickaxes'],\n ['passerby', 'passersby']\n ].forEach(function (rule) {\n return pluralize.addIrregularRule(rule[0], rule[1]);\n });\n\n /**\n * Pluralization rules.\n */\n [\n [/s?$/i, 's'],\n [/[^\\u0000-\\u007F]$/i, '$0'],\n [/([^aeiou]ese)$/i, '$1'],\n [/(ax|test)is$/i, '$1es'],\n [/(alias|[^aou]us|t[lm]as|gas|ris)$/i, '$1es'],\n [/(e[mn]u)s?$/i, '$1s'],\n [/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i, '$1'],\n [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1i'],\n [/(alumn|alg|vertebr)(?:a|ae)$/i, '$1ae'],\n [/(seraph|cherub)(?:im)?$/i, '$1im'],\n [/(her|at|gr)o$/i, '$1oes'],\n [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i, '$1a'],\n [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i, '$1a'],\n [/sis$/i, 'ses'],\n [/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i, '$1$2ves'],\n [/([^aeiouy]|qu)y$/i, '$1ies'],\n [/([^ch][ieo][ln])ey$/i, '$1ies'],\n [/(x|ch|ss|sh|zz)$/i, '$1es'],\n [/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i, '$1ices'],\n [/\\b((?:tit)?m|l)(?:ice|ouse)$/i, '$1ice'],\n [/(pe)(?:rson|ople)$/i, '$1ople'],\n [/(child)(?:ren)?$/i, '$1ren'],\n [/eaux$/i, '$0'],\n [/m[ae]n$/i, 'men'],\n ['thou', 'you']\n ].forEach(function (rule) {\n return pluralize.addPluralRule(rule[0], rule[1]);\n });\n\n /**\n * Singularization rules.\n */\n [\n [/s$/i, ''],\n [/(ss)$/i, '$1'],\n [/(wi|kni|(?:after|half|high|low|mid|non|night|[^\\w]|^)li)ves$/i, '$1fe'],\n [/(ar|(?:wo|[ae])l|[eo][ao])ves$/i, '$1f'],\n [/ies$/i, 'y'],\n [/\\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i, '$1ie'],\n [/\\b(mon|smil)ies$/i, '$1ey'],\n [/\\b((?:tit)?m|l)ice$/i, '$1ouse'],\n [/(seraph|cherub)im$/i, '$1'],\n [/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i, '$1'],\n [/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i, '$1sis'],\n [/(movie|twelve|abuse|e[mn]u)s$/i, '$1'],\n [/(test)(?:is|es)$/i, '$1is'],\n [/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i, '$1us'],\n [/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i, '$1um'],\n [/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i, '$1on'],\n [/(alumn|alg|vertebr)ae$/i, '$1a'],\n [/(cod|mur|sil|vert|ind)ices$/i, '$1ex'],\n [/(matr|append)ices$/i, '$1ix'],\n [/(pe)(rson|ople)$/i, '$1rson'],\n [/(child)ren$/i, '$1'],\n [/(eau)x?$/i, '$1'],\n [/men$/i, 'man']\n ].forEach(function (rule) {\n return pluralize.addSingularRule(rule[0], rule[1]);\n });\n\n /**\n * Uncountable rules.\n */\n [\n // Singular words with no plurals.\n 'adulthood',\n 'advice',\n 'agenda',\n 'aid',\n 'aircraft',\n 'alcohol',\n 'ammo',\n 'analytics',\n 'anime',\n 'athletics',\n 'audio',\n 'bison',\n 'blood',\n 'bream',\n 'buffalo',\n 'butter',\n 'carp',\n 'cash',\n 'chassis',\n 'chess',\n 'clothing',\n 'cod',\n 'commerce',\n 'cooperation',\n 'corps',\n 'debris',\n 'diabetes',\n 'digestion',\n 'elk',\n 'energy',\n 'equipment',\n 'excretion',\n 'expertise',\n 'firmware',\n 'flounder',\n 'fun',\n 'gallows',\n 'garbage',\n 'graffiti',\n 'hardware',\n 'headquarters',\n 'health',\n 'herpes',\n 'highjinks',\n 'homework',\n 'housework',\n 'information',\n 'jeans',\n 'justice',\n 'kudos',\n 'labour',\n 'literature',\n 'machinery',\n 'mackerel',\n 'mail',\n 'media',\n 'mews',\n 'moose',\n 'music',\n 'mud',\n 'manga',\n 'news',\n 'only',\n 'personnel',\n 'pike',\n 'plankton',\n 'pliers',\n 'police',\n 'pollution',\n 'premises',\n 'rain',\n 'research',\n 'rice',\n 'salmon',\n 'scissors',\n 'series',\n 'sewage',\n 'shambles',\n 'shrimp',\n 'software',\n 'species',\n 'staff',\n 'swine',\n 'tennis',\n 'traffic',\n 'transportation',\n 'trout',\n 'tuna',\n 'wealth',\n 'welfare',\n 'whiting',\n 'wildebeest',\n 'wildlife',\n 'you',\n /pok[eé]mon$/i,\n // Regexes.\n /[^aeiou]ese$/i, // \"chinese\", \"japanese\"\n /deer$/i, // \"deer\", \"reindeer\"\n /fish$/i, // \"fish\", \"blowfish\", \"angelfish\"\n /measles$/i,\n /o[iu]s$/i, // \"carnivorous\"\n /pox$/i, // \"chickpox\", \"smallpox\"\n /sheep$/i\n ].forEach(pluralize.addUncountableRule);\n\n return pluralize;\n});\n",
|
|
6
|
-
"\n;(function (name, root, factory) {\n if (typeof exports === 'object') {\n module.exports = factory()\n module.exports['default'] = factory()\n }\n /* istanbul ignore next */\n else if (typeof define === 'function' && define.amd) {\n define(factory)\n }\n else {\n root[name] = factory()\n }\n}('slugify', this, function () {\n var charMap = JSON.parse('{\"$\":\"dollar\",\"%\":\"percent\",\"&\":\"and\",\"<\":\"less\",\">\":\"greater\",\"|\":\"or\",\"¢\":\"cent\",\"£\":\"pound\",\"¤\":\"currency\",\"¥\":\"yen\",\"©\":\"(c)\",\"ª\":\"a\",\"®\":\"(r)\",\"º\":\"o\",\"À\":\"A\",\"Á\":\"A\",\"Â\":\"A\",\"Ã\":\"A\",\"Ä\":\"A\",\"Å\":\"A\",\"Æ\":\"AE\",\"Ç\":\"C\",\"È\":\"E\",\"É\":\"E\",\"Ê\":\"E\",\"Ë\":\"E\",\"Ì\":\"I\",\"Í\":\"I\",\"Î\":\"I\",\"Ï\":\"I\",\"Ð\":\"D\",\"Ñ\":\"N\",\"Ò\":\"O\",\"Ó\":\"O\",\"Ô\":\"O\",\"Õ\":\"O\",\"Ö\":\"O\",\"Ø\":\"O\",\"Ù\":\"U\",\"Ú\":\"U\",\"Û\":\"U\",\"Ü\":\"U\",\"Ý\":\"Y\",\"Þ\":\"TH\",\"ß\":\"ss\",\"à\":\"a\",\"á\":\"a\",\"â\":\"a\",\"ã\":\"a\",\"ä\":\"a\",\"å\":\"a\",\"æ\":\"ae\",\"ç\":\"c\",\"è\":\"e\",\"é\":\"e\",\"ê\":\"e\",\"ë\":\"e\",\"ì\":\"i\",\"í\":\"i\",\"î\":\"i\",\"ï\":\"i\",\"ð\":\"d\",\"ñ\":\"n\",\"ò\":\"o\",\"ó\":\"o\",\"ô\":\"o\",\"õ\":\"o\",\"ö\":\"o\",\"ø\":\"o\",\"ù\":\"u\",\"ú\":\"u\",\"û\":\"u\",\"ü\":\"u\",\"ý\":\"y\",\"þ\":\"th\",\"ÿ\":\"y\",\"Ā\":\"A\",\"ā\":\"a\",\"Ă\":\"A\",\"ă\":\"a\",\"Ą\":\"A\",\"ą\":\"a\",\"Ć\":\"C\",\"ć\":\"c\",\"Č\":\"C\",\"č\":\"c\",\"Ď\":\"D\",\"ď\":\"d\",\"Đ\":\"DJ\",\"đ\":\"dj\",\"Ē\":\"E\",\"ē\":\"e\",\"Ė\":\"E\",\"ė\":\"e\",\"Ę\":\"e\",\"ę\":\"e\",\"Ě\":\"E\",\"ě\":\"e\",\"Ğ\":\"G\",\"ğ\":\"g\",\"Ģ\":\"G\",\"ģ\":\"g\",\"Ĩ\":\"I\",\"ĩ\":\"i\",\"Ī\":\"i\",\"ī\":\"i\",\"Į\":\"I\",\"į\":\"i\",\"İ\":\"I\",\"ı\":\"i\",\"Ķ\":\"k\",\"ķ\":\"k\",\"Ļ\":\"L\",\"ļ\":\"l\",\"Ľ\":\"L\",\"ľ\":\"l\",\"Ł\":\"L\",\"ł\":\"l\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"3\",\"Ο\":\"O\",\"Π\":\"P\",\"Ρ\":\"R\",\"Σ\":\"S\",\"Τ\":\"T\",\"Υ\":\"Y\",\"Φ\":\"F\",\"Χ\":\"X\",\"Ψ\":\"PS\",\"Ω\":\"W\",\"Ϊ\":\"I\",\"Ϋ\":\"Y\",\"ά\":\"a\",\"έ\":\"e\",\"ή\":\"h\",\"ί\":\"i\",\"ΰ\":\"y\",\"α\":\"a\",\"β\":\"b\",\"γ\":\"g\",\"δ\":\"d\",\"ε\":\"e\",\"ζ\":\"z\",\"η\":\"h\",\"θ\":\"8\",\"ι\":\"i\",\"κ\":\"k\",\"λ\":\"l\",\"μ\":\"m\",\"ν\":\"n\",\"ξ\":\"3\",\"ο\":\"o\",\"π\":\"p\",\"ρ\":\"r\",\"ς\":\"s\",\"σ\":\"s\",\"τ\":\"t\",\"υ\":\"y\",\"φ\":\"f\",\"χ\":\"x\",\"ψ\":\"ps\",\"ω\":\"w\",\"ϊ\":\"i\",\"ϋ\":\"y\",\"ό\":\"o\",\"ύ\":\"y\",\"ώ\":\"w\",\"Ё\":\"Yo\",\"Ђ\":\"DJ\",\"Є\":\"Ye\",\"І\":\"I\",\"Ї\":\"Yi\",\"Ј\":\"J\",\"Љ\":\"LJ\",\"Њ\":\"NJ\",\"Ћ\":\"C\",\"Џ\":\"DZ\",\"А\":\"A\",\"Б\":\"B\",\"В\":\"V\",\"Г\":\"G\",\"Д\":\"D\",\"Е\":\"E\",\"Ж\":\"Zh\",\"З\":\"Z\",\"И\":\"I\",\"Й\":\"J\",\"К\":\"K\",\"Л\":\"L\",\"М\":\"M\",\"Н\":\"N\",\"О\":\"O\",\"П\":\"P\",\"Р\":\"R\",\"С\":\"S\",\"Т\":\"T\",\"У\":\"U\",\"Ф\":\"F\",\"Х\":\"H\",\"Ц\":\"C\",\"Ч\":\"Ch\",\"Ш\":\"Sh\",\"Щ\":\"Sh\",\"Ъ\":\"U\",\"Ы\":\"Y\",\"Ь\":\"\",\"Э\":\"E\",\"Ю\":\"Yu\",\"Я\":\"Ya\",\"а\":\"a\",\"б\":\"b\",\"в\":\"v\",\"г\":\"g\",\"д\":\"d\",\"е\":\"e\",\"ж\":\"zh\",\"з\":\"z\",\"и\":\"i\",\"й\":\"j\",\"к\":\"k\",\"л\":\"l\",\"м\":\"m\",\"н\":\"n\",\"о\":\"o\",\"п\":\"p\",\"р\":\"r\",\"с\":\"s\",\"т\":\"t\",\"у\":\"u\",\"ф\":\"f\",\"х\":\"h\",\"ц\":\"c\",\"ч\":\"ch\",\"ш\":\"sh\",\"щ\":\"sh\",\"ъ\":\"u\",\"ы\":\"y\",\"ь\":\"\",\"э\":\"e\",\"ю\":\"yu\",\"я\":\"ya\",\"ё\":\"yo\",\"ђ\":\"dj\",\"є\":\"ye\",\"і\":\"i\",\"ї\":\"yi\",\"ј\":\"j\",\"љ\":\"lj\",\"њ\":\"nj\",\"ћ\":\"c\",\"ѝ\":\"u\",\"џ\":\"dz\",\"Ґ\":\"G\",\"ґ\":\"g\",\"Ғ\":\"GH\",\"ғ\":\"gh\",\"Қ\":\"KH\",\"қ\":\"kh\",\"Ң\":\"NG\",\"ң\":\"ng\",\"Ү\":\"UE\",\"ү\":\"ue\",\"Ұ\":\"U\",\"ұ\":\"u\",\"Һ\":\"H\",\"һ\":\"h\",\"Ә\":\"AE\",\"ә\":\"ae\",\"Ө\":\"OE\",\"ө\":\"oe\",\"Ա\":\"A\",\"Բ\":\"B\",\"Գ\":\"G\",\"Դ\":\"D\",\"Ե\":\"E\",\"Զ\":\"Z\",\"Է\":\"E\\'\",\"Ը\":\"Y\\'\",\"Թ\":\"T\\'\",\"Ժ\":\"JH\",\"Ի\":\"I\",\"Լ\":\"L\",\"Խ\":\"X\",\"Ծ\":\"C\\'\",\"Կ\":\"K\",\"Հ\":\"H\",\"Ձ\":\"D\\'\",\"Ղ\":\"GH\",\"Ճ\":\"TW\",\"Մ\":\"M\",\"Յ\":\"Y\",\"Ն\":\"N\",\"Շ\":\"SH\",\"Չ\":\"CH\",\"Պ\":\"P\",\"Ջ\":\"J\",\"Ռ\":\"R\\'\",\"Ս\":\"S\",\"Վ\":\"V\",\"Տ\":\"T\",\"Ր\":\"R\",\"Ց\":\"C\",\"Փ\":\"P\\'\",\"Ք\":\"Q\\'\",\"Օ\":\"O\\'\\'\",\"Ֆ\":\"F\",\"և\":\"EV\",\"ء\":\"a\",\"آ\":\"aa\",\"أ\":\"a\",\"ؤ\":\"u\",\"إ\":\"i\",\"ئ\":\"e\",\"ا\":\"a\",\"ب\":\"b\",\"ة\":\"h\",\"ت\":\"t\",\"ث\":\"th\",\"ج\":\"j\",\"ح\":\"h\",\"خ\":\"kh\",\"د\":\"d\",\"ذ\":\"th\",\"ر\":\"r\",\"ز\":\"z\",\"س\":\"s\",\"ش\":\"sh\",\"ص\":\"s\",\"ض\":\"dh\",\"ط\":\"t\",\"ظ\":\"z\",\"ع\":\"a\",\"غ\":\"gh\",\"ف\":\"f\",\"ق\":\"q\",\"ك\":\"k\",\"ل\":\"l\",\"م\":\"m\",\"ن\":\"n\",\"ه\":\"h\",\"و\":\"w\",\"ى\":\"a\",\"ي\":\"y\",\"ً\":\"an\",\"ٌ\":\"on\",\"ٍ\":\"en\",\"َ\":\"a\",\"ُ\":\"u\",\"ِ\":\"e\",\"ْ\":\"\",\"٠\":\"0\",\"١\":\"1\",\"٢\":\"2\",\"٣\":\"3\",\"٤\":\"4\",\"٥\":\"5\",\"٦\":\"6\",\"٧\":\"7\",\"٨\":\"8\",\"٩\":\"9\",\"پ\":\"p\",\"چ\":\"ch\",\"ژ\":\"zh\",\"ک\":\"k\",\"گ\":\"g\",\"ی\":\"y\",\"۰\":\"0\",\"۱\":\"1\",\"۲\":\"2\",\"۳\":\"3\",\"۴\":\"4\",\"۵\":\"5\",\"۶\":\"6\",\"۷\":\"7\",\"۸\":\"8\",\"۹\":\"9\",\"฿\":\"baht\",\"ა\":\"a\",\"ბ\":\"b\",\"გ\":\"g\",\"დ\":\"d\",\"ე\":\"e\",\"ვ\":\"v\",\"ზ\":\"z\",\"თ\":\"t\",\"ი\":\"i\",\"კ\":\"k\",\"ლ\":\"l\",\"მ\":\"m\",\"ნ\":\"n\",\"ო\":\"o\",\"პ\":\"p\",\"ჟ\":\"zh\",\"რ\":\"r\",\"ს\":\"s\",\"ტ\":\"t\",\"უ\":\"u\",\"ფ\":\"f\",\"ქ\":\"k\",\"ღ\":\"gh\",\"ყ\":\"q\",\"შ\":\"sh\",\"ჩ\":\"ch\",\"ც\":\"ts\",\"ძ\":\"dz\",\"წ\":\"ts\",\"ჭ\":\"ch\",\"ხ\":\"kh\",\"ჯ\":\"j\",\"ჰ\":\"h\",\"Ṣ\":\"S\",\"ṣ\":\"s\",\"Ẁ\":\"W\",\"ẁ\":\"w\",\"Ẃ\":\"W\",\"ẃ\":\"w\",\"Ẅ\":\"W\",\"ẅ\":\"w\",\"ẞ\":\"SS\",\"Ạ\":\"A\",\"ạ\":\"a\",\"Ả\":\"A\",\"ả\":\"a\",\"Ấ\":\"A\",\"ấ\":\"a\",\"Ầ\":\"A\",\"ầ\":\"a\",\"Ẩ\":\"A\",\"ẩ\":\"a\",\"Ẫ\":\"A\",\"ẫ\":\"a\",\"Ậ\":\"A\",\"ậ\":\"a\",\"Ắ\":\"A\",\"ắ\":\"a\",\"Ằ\":\"A\",\"ằ\":\"a\",\"Ẳ\":\"A\",\"ẳ\":\"a\",\"Ẵ\":\"A\",\"ẵ\":\"a\",\"Ặ\":\"A\",\"ặ\":\"a\",\"Ẹ\":\"E\",\"ẹ\":\"e\",\"Ẻ\":\"E\",\"ẻ\":\"e\",\"Ẽ\":\"E\",\"ẽ\":\"e\",\"Ế\":\"E\",\"ế\":\"e\",\"Ề\":\"E\",\"ề\":\"e\",\"Ể\":\"E\",\"ể\":\"e\",\"Ễ\":\"E\",\"ễ\":\"e\",\"Ệ\":\"E\",\"ệ\":\"e\",\"Ỉ\":\"I\",\"ỉ\":\"i\",\"Ị\":\"I\",\"ị\":\"i\",\"Ọ\":\"O\",\"ọ\":\"o\",\"Ỏ\":\"O\",\"ỏ\":\"o\",\"Ố\":\"O\",\"ố\":\"o\",\"Ồ\":\"O\",\"ồ\":\"o\",\"Ổ\":\"O\",\"ổ\":\"o\",\"Ỗ\":\"O\",\"ỗ\":\"o\",\"Ộ\":\"O\",\"ộ\":\"o\",\"Ớ\":\"O\",\"ớ\":\"o\",\"Ờ\":\"O\",\"ờ\":\"o\",\"Ở\":\"O\",\"ở\":\"o\",\"Ỡ\":\"O\",\"ỡ\":\"o\",\"Ợ\":\"O\",\"ợ\":\"o\",\"Ụ\":\"U\",\"ụ\":\"u\",\"Ủ\":\"U\",\"ủ\":\"u\",\"Ứ\":\"U\",\"ứ\":\"u\",\"Ừ\":\"U\",\"ừ\":\"u\",\"Ử\":\"U\",\"ử\":\"u\",\"Ữ\":\"U\",\"ữ\":\"u\",\"Ự\":\"U\",\"ự\":\"u\",\"Ỳ\":\"Y\",\"ỳ\":\"y\",\"Ỵ\":\"Y\",\"ỵ\":\"y\",\"Ỷ\":\"Y\",\"ỷ\":\"y\",\"Ỹ\":\"Y\",\"ỹ\":\"y\",\"–\":\"-\",\"‘\":\"\\'\",\"’\":\"\\'\",\"“\":\"\\\\\\\"\",\"”\":\"\\\\\\\"\",\"„\":\"\\\\\\\"\",\"†\":\"+\",\"•\":\"*\",\"…\":\"...\",\"₠\":\"ecu\",\"₢\":\"cruzeiro\",\"₣\":\"french franc\",\"₤\":\"lira\",\"₥\":\"mill\",\"₦\":\"naira\",\"₧\":\"peseta\",\"₨\":\"rupee\",\"₩\":\"won\",\"₪\":\"new shequel\",\"₫\":\"dong\",\"€\":\"euro\",\"₭\":\"kip\",\"₮\":\"tugrik\",\"₯\":\"drachma\",\"₰\":\"penny\",\"₱\":\"peso\",\"₲\":\"guarani\",\"₳\":\"austral\",\"₴\":\"hryvnia\",\"₵\":\"cedi\",\"₸\":\"kazakhstani tenge\",\"₹\":\"indian rupee\",\"₺\":\"turkish lira\",\"₽\":\"russian ruble\",\"₿\":\"bitcoin\",\"℠\":\"sm\",\"™\":\"tm\",\"∂\":\"d\",\"∆\":\"delta\",\"∑\":\"sum\",\"∞\":\"infinity\",\"♥\":\"love\",\"元\":\"yuan\",\"円\":\"yen\",\"﷼\":\"rial\",\"ﻵ\":\"laa\",\"ﻷ\":\"laa\",\"ﻹ\":\"lai\",\"ﻻ\":\"la\"}')\n var locales = JSON.parse('{\"bg\":{\"Й\":\"Y\",\"Ц\":\"Ts\",\"Щ\":\"Sht\",\"Ъ\":\"A\",\"Ь\":\"Y\",\"й\":\"y\",\"ц\":\"ts\",\"щ\":\"sht\",\"ъ\":\"a\",\"ь\":\"y\"},\"de\":{\"Ä\":\"AE\",\"ä\":\"ae\",\"Ö\":\"OE\",\"ö\":\"oe\",\"Ü\":\"UE\",\"ü\":\"ue\",\"ß\":\"ss\",\"%\":\"prozent\",\"&\":\"und\",\"|\":\"oder\",\"∑\":\"summe\",\"∞\":\"unendlich\",\"♥\":\"liebe\"},\"es\":{\"%\":\"por ciento\",\"&\":\"y\",\"<\":\"menor que\",\">\":\"mayor que\",\"|\":\"o\",\"¢\":\"centavos\",\"£\":\"libras\",\"¤\":\"moneda\",\"₣\":\"francos\",\"∑\":\"suma\",\"∞\":\"infinito\",\"♥\":\"amor\"},\"fr\":{\"%\":\"pourcent\",\"&\":\"et\",\"<\":\"plus petit\",\">\":\"plus grand\",\"|\":\"ou\",\"¢\":\"centime\",\"£\":\"livre\",\"¤\":\"devise\",\"₣\":\"franc\",\"∑\":\"somme\",\"∞\":\"infini\",\"♥\":\"amour\"},\"pt\":{\"%\":\"porcento\",\"&\":\"e\",\"<\":\"menor\",\">\":\"maior\",\"|\":\"ou\",\"¢\":\"centavo\",\"∑\":\"soma\",\"£\":\"libra\",\"∞\":\"infinito\",\"♥\":\"amor\"},\"uk\":{\"И\":\"Y\",\"и\":\"y\",\"Й\":\"Y\",\"й\":\"y\",\"Ц\":\"Ts\",\"ц\":\"ts\",\"Х\":\"Kh\",\"х\":\"kh\",\"Щ\":\"Shch\",\"щ\":\"shch\",\"Г\":\"H\",\"г\":\"h\"},\"vi\":{\"Đ\":\"D\",\"đ\":\"d\"},\"da\":{\"Ø\":\"OE\",\"ø\":\"oe\",\"Å\":\"AA\",\"å\":\"aa\",\"%\":\"procent\",\"&\":\"og\",\"|\":\"eller\",\"$\":\"dollar\",\"<\":\"mindre end\",\">\":\"større end\"},\"nb\":{\"&\":\"og\",\"Å\":\"AA\",\"Æ\":\"AE\",\"Ø\":\"OE\",\"å\":\"aa\",\"æ\":\"ae\",\"ø\":\"oe\"},\"it\":{\"&\":\"e\"},\"nl\":{\"&\":\"en\"},\"sv\":{\"&\":\"och\",\"Å\":\"AA\",\"Ä\":\"AE\",\"Ö\":\"OE\",\"å\":\"aa\",\"ä\":\"ae\",\"ö\":\"oe\"}}')\n\n function replace (string, options) {\n if (typeof string !== 'string') {\n throw new Error('slugify: string argument expected')\n }\n\n options = (typeof options === 'string')\n ? {replacement: options}\n : options || {}\n\n var locale = locales[options.locale] || {}\n\n var replacement = options.replacement === undefined ? '-' : options.replacement\n\n var trim = options.trim === undefined ? true : options.trim\n\n var slug = string.normalize().split('')\n // replace characters based on charMap\n .reduce(function (result, ch) {\n var appendChar = locale[ch];\n if (appendChar === undefined) appendChar = charMap[ch];\n if (appendChar === undefined) appendChar = ch;\n if (appendChar === replacement) appendChar = ' ';\n return result + appendChar\n // remove not allowed characters\n .replace(options.remove || /[^\\w\\s$*_+~.()'\"!\\-:@]+/g, '')\n }, '');\n\n if (options.strict) {\n slug = slug.replace(/[^A-Za-z0-9\\s]/g, '');\n }\n\n if (trim) {\n slug = slug.trim()\n }\n\n // Replace spaces with replacement character, treating multiple consecutive\n // spaces as a single space.\n slug = slug.replace(/\\s+/g, replacement);\n\n if (options.lower) {\n slug = slug.toLowerCase()\n }\n\n return slug\n }\n\n replace.extend = function (customMap) {\n Object.assign(charMap, customMap)\n }\n\n return replace\n}))\n",
|
|
7
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = assertString;\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\nfunction assertString(input) {\n var isString = typeof input === 'string' || input instanceof String;\n if (!isString) {\n var invalidType = _typeof(input);\n if (input === null) invalidType = 'null';else if (invalidType === 'object') invalidType = input.constructor.name;\n throw new TypeError(\"Expected a string but received a \".concat(invalidType));\n }\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
8
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIP;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n/**\n11.3. Examples\n\n The following addresses\n\n fe80::1234 (on the 1st link of the node)\n ff02::5678 (on the 5th link of the node)\n ff08::9abc (on the 10th organization of the node)\n\n would be represented as follows:\n\n fe80::1234%1\n ff02::5678%5\n ff08::9abc%10\n\n (Here we assume a natural translation from a zone index to the\n <zone_id> part, where the Nth zone of any scope is translated into\n \"N\".)\n\n If we use interface names as <zone_id>, those addresses could also be\n represented as follows:\n\n fe80::1234%ne0\n ff02::5678%pvc1.3\n ff08::9abc%interface10\n\n where the interface \"ne0\" belongs to the 1st link, \"pvc1.3\" belongs\n to the 5th link, and \"interface10\" belongs to the 10th organization.\n * * */\nvar IPv4SegmentFormat = '(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])';\nvar IPv4AddressFormat = \"(\".concat(IPv4SegmentFormat, \"[.]){3}\").concat(IPv4SegmentFormat);\nvar IPv4AddressRegExp = new RegExp(\"^\".concat(IPv4AddressFormat, \"$\"));\nvar IPv6SegmentFormat = '(?:[0-9a-fA-F]{1,4})';\nvar IPv6AddressRegExp = new RegExp('^(' + \"(?:\".concat(IPv6SegmentFormat, \":){7}(?:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){6}(?:\").concat(IPv4AddressFormat, \"|:\").concat(IPv6SegmentFormat, \"|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){5}(?::\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,2}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){4}(?:(:\").concat(IPv6SegmentFormat, \"){0,1}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,3}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){3}(?:(:\").concat(IPv6SegmentFormat, \"){0,2}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,4}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){2}(?:(:\").concat(IPv6SegmentFormat, \"){0,3}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,5}|:)|\") + \"(?:\".concat(IPv6SegmentFormat, \":){1}(?:(:\").concat(IPv6SegmentFormat, \"){0,4}:\").concat(IPv4AddressFormat, \"|(:\").concat(IPv6SegmentFormat, \"){1,6}|:)|\") + \"(?::((?::\".concat(IPv6SegmentFormat, \"){0,5}:\").concat(IPv4AddressFormat, \"|(?::\").concat(IPv6SegmentFormat, \"){1,7}|:))\") + ')(%[0-9a-zA-Z-.:]{1,})?$');\nfunction isIP(str) {\n var version = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';\n (0, _assertString.default)(str);\n version = String(version);\n if (!version) {\n return isIP(str, 4) || isIP(str, 6);\n }\n if (version === '4') {\n return IPv4AddressRegExp.test(str);\n }\n if (version === '6') {\n return IPv6AddressRegExp.test(str);\n }\n return false;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
9
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = merge;\nfunction merge() {\n var obj = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};\n var defaults = arguments.length > 1 ? arguments[1] : undefined;\n for (var key in defaults) {\n if (typeof obj[key] === 'undefined') {\n obj[key] = defaults[key];\n }\n }\n return obj;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
10
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isBase64;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar notBase64 = /[^A-Z0-9+\\/=]/i;\nvar urlSafeBase64 = /^[A-Z0-9_\\-]*$/i;\nvar defaultBase64Options = {\n urlSafe: false\n};\nfunction isBase64(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaultBase64Options);\n var len = str.length;\n if (options.urlSafe) {\n return urlSafeBase64.test(str);\n }\n if (len % 4 !== 0 || notBase64.test(str)) {\n return false;\n }\n var firstPaddingChar = str.indexOf('=');\n return firstPaddingChar === -1 || firstPaddingChar === len - 1 || firstPaddingChar === len - 2 && str[len - 1] === '=';\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
11
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isJWT;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isBase = _interopRequireDefault(require(\"./isBase64\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction isJWT(str) {\n (0, _assertString.default)(str);\n var dotSplit = str.split('.');\n var len = dotSplit.length;\n if (len !== 3) {\n return false;\n }\n return dotSplit.reduce(function (acc, currElem) {\n return acc && (0, _isBase.default)(currElem, {\n urlSafe: true\n });\n }, true);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
12
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isFQDN;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar default_fqdn_options = {\n require_tld: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_numeric_tld: false,\n allow_wildcard: false,\n ignore_max_length: false\n};\nfunction isFQDN(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_fqdn_options);\n\n /* Remove the optional trailing dot before checking validity */\n if (options.allow_trailing_dot && str[str.length - 1] === '.') {\n str = str.substring(0, str.length - 1);\n }\n\n /* Remove the optional wildcard before checking validity */\n if (options.allow_wildcard === true && str.indexOf('*.') === 0) {\n str = str.substring(2);\n }\n var parts = str.split('.');\n var tld = parts[parts.length - 1];\n if (options.require_tld) {\n // disallow fqdns without tld\n if (parts.length < 2) {\n return false;\n }\n if (!options.allow_numeric_tld && !/^([a-z\\u00A1-\\u00A8\\u00AA-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(tld)) {\n return false;\n }\n\n // disallow spaces\n if (/\\s/.test(tld)) {\n return false;\n }\n }\n\n // reject numeric TLDs\n if (!options.allow_numeric_tld && /^\\d+$/.test(tld)) {\n return false;\n }\n return parts.every(function (part) {\n if (part.length > 63 && !options.ignore_max_length) {\n return false;\n }\n if (!/^[a-z_\\u00a1-\\uffff0-9-]+$/i.test(part)) {\n return false;\n }\n\n // disallow full-width chars\n if (/[\\uff01-\\uff5e]/.test(part)) {\n return false;\n }\n\n // disallow parts starting or ending with hyphen\n if (/^-|-$/.test(part)) {\n return false;\n }\n if (!options.allow_underscores && /_/.test(part)) {\n return false;\n }\n return true;\n });\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
13
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isURL;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }\nfunction _nonIterableRest() { throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); }\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\nfunction _iterableToArrayLimit(r, l) { var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }\nfunction _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }\n/*\noptions for isURL method\n\nrequire_protocol - if set as true isURL will return false if protocol is not present in the URL\nrequire_valid_protocol - isURL will check if the URL's protocol is present in the protocols option\nprotocols - valid protocols can be modified with this option\nrequire_host - if set as false isURL will not check if host is present in the URL\nrequire_port - if set as true isURL will check if port is present in the URL\nallow_protocol_relative_urls - if set as true protocol relative URLs will be allowed\nvalidate_length - if set as false isURL will skip string length validation (IE maximum is 2083)\n\n*/\n\nvar default_url_options = {\n protocols: ['http', 'https', 'ftp'],\n require_tld: true,\n require_protocol: false,\n require_host: true,\n require_port: false,\n require_valid_protocol: true,\n allow_underscores: false,\n allow_trailing_dot: false,\n allow_protocol_relative_urls: false,\n allow_fragments: true,\n allow_query_components: true,\n validate_length: true\n};\nvar wrapped_ipv6 = /^\\[([^\\]]+)\\](?::([0-9]+))?$/;\nfunction isRegExp(obj) {\n return Object.prototype.toString.call(obj) === '[object RegExp]';\n}\nfunction checkHost(host, matches) {\n for (var i = 0; i < matches.length; i++) {\n var match = matches[i];\n if (host === match || isRegExp(match) && match.test(host)) {\n return true;\n }\n }\n return false;\n}\nfunction isURL(url, options) {\n (0, _assertString.default)(url);\n if (!url || /[\\s<>]/.test(url)) {\n return false;\n }\n if (url.indexOf('mailto:') === 0) {\n return false;\n }\n options = (0, _merge.default)(options, default_url_options);\n if (options.validate_length && url.length >= 2083) {\n return false;\n }\n if (!options.allow_fragments && url.includes('#')) {\n return false;\n }\n if (!options.allow_query_components && (url.includes('?') || url.includes('&'))) {\n return false;\n }\n var protocol, auth, host, hostname, port, port_str, split, ipv6;\n split = url.split('#');\n url = split.shift();\n split = url.split('?');\n url = split.shift();\n split = url.split('://');\n if (split.length > 1) {\n protocol = split.shift().toLowerCase();\n if (options.require_valid_protocol && options.protocols.indexOf(protocol) === -1) {\n return false;\n }\n } else if (options.require_protocol) {\n return false;\n } else if (url.slice(0, 2) === '//') {\n if (!options.allow_protocol_relative_urls) {\n return false;\n }\n split[0] = url.slice(2);\n }\n url = split.join('://');\n if (url === '') {\n return false;\n }\n split = url.split('/');\n url = split.shift();\n if (url === '' && !options.require_host) {\n return true;\n }\n split = url.split('@');\n if (split.length > 1) {\n if (options.disallow_auth) {\n return false;\n }\n if (split[0] === '') {\n return false;\n }\n auth = split.shift();\n if (auth.indexOf(':') >= 0 && auth.split(':').length > 2) {\n return false;\n }\n var _auth$split = auth.split(':'),\n _auth$split2 = _slicedToArray(_auth$split, 2),\n user = _auth$split2[0],\n password = _auth$split2[1];\n if (user === '' && password === '') {\n return false;\n }\n }\n hostname = split.join('@');\n port_str = null;\n ipv6 = null;\n var ipv6_match = hostname.match(wrapped_ipv6);\n if (ipv6_match) {\n host = '';\n ipv6 = ipv6_match[1];\n port_str = ipv6_match[2] || null;\n } else {\n split = hostname.split(':');\n host = split.shift();\n if (split.length) {\n port_str = split.join(':');\n }\n }\n if (port_str !== null && port_str.length > 0) {\n port = parseInt(port_str, 10);\n if (!/^[0-9]+$/.test(port_str) || port <= 0 || port > 65535) {\n return false;\n }\n } else if (options.require_port) {\n return false;\n }\n if (options.host_whitelist) {\n return checkHost(host, options.host_whitelist);\n }\n if (host === '' && !options.require_host) {\n return true;\n }\n if (!(0, _isIP.default)(host) && !(0, _isFQDN.default)(host, options) && (!ipv6 || !(0, _isIP.default)(ipv6, 6))) {\n return false;\n }\n host = host || ipv6;\n if (options.host_blacklist && checkHost(host, options.host_blacklist)) {\n return false;\n }\n return true;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
14
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isSlug;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar charsetRegex = /^[^\\s-_](?!.*?[-_]{2,})[a-z0-9-\\\\][^\\s]*[^-_\\s]$/;\nfunction isSlug(str) {\n (0, _assertString.default)(str);\n return charsetRegex.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
15
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isIBAN;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n/**\n * List of country codes with\n * corresponding IBAN regular expression\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n */\nvar ibanRegexThroughCountryCode = {\n AD: /^(AD[0-9]{2})\\d{8}[A-Z0-9]{12}$/,\n AE: /^(AE[0-9]{2})\\d{3}\\d{16}$/,\n AL: /^(AL[0-9]{2})\\d{8}[A-Z0-9]{16}$/,\n AT: /^(AT[0-9]{2})\\d{16}$/,\n AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n BA: /^(BA[0-9]{2})\\d{16}$/,\n BE: /^(BE[0-9]{2})\\d{12}$/,\n BG: /^(BG[0-9]{2})[A-Z]{4}\\d{6}[A-Z0-9]{8}$/,\n BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/,\n BR: /^(BR[0-9]{2})\\d{23}[A-Z]{1}[A-Z0-9]{1}$/,\n BY: /^(BY[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n CH: /^(CH[0-9]{2})\\d{5}[A-Z0-9]{12}$/,\n CR: /^(CR[0-9]{2})\\d{18}$/,\n CY: /^(CY[0-9]{2})\\d{8}[A-Z0-9]{16}$/,\n CZ: /^(CZ[0-9]{2})\\d{20}$/,\n DE: /^(DE[0-9]{2})\\d{18}$/,\n DK: /^(DK[0-9]{2})\\d{14}$/,\n DO: /^(DO[0-9]{2})[A-Z]{4}\\d{20}$/,\n DZ: /^(DZ\\d{24})$/,\n EE: /^(EE[0-9]{2})\\d{16}$/,\n EG: /^(EG[0-9]{2})\\d{25}$/,\n ES: /^(ES[0-9]{2})\\d{20}$/,\n FI: /^(FI[0-9]{2})\\d{14}$/,\n FO: /^(FO[0-9]{2})\\d{14}$/,\n FR: /^(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\\d{3}[A-Z0-9]{10}\\d{2}$/,\n MR: /^(MR[0-9]{2})\\d{23}$/,\n MT: /^(MT[0-9]{2})[A-Z]{4}\\d{5}[A-Z0-9]{18}$/,\n MU: /^(MU[0-9]{2})[A-Z]{4}\\d{19}[A-Z]{3}$/,\n MZ: /^(MZ[0-9]{2})\\d{21}$/,\n NL: /^(NL[0-9]{2})[A-Z]{4}\\d{10}$/,\n NO: /^(NO[0-9]{2})\\d{11}$/,\n PK: /^(PK[0-9]{2})[A-Z0-9]{4}\\d{16}$/,\n PL: /^(PL[0-9]{2})\\d{24}$/,\n PS: /^(PS[0-9]{2})[A-Z0-9]{4}\\d{21}$/,\n PT: /^(PT[0-9]{2})\\d{21}$/,\n QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/,\n RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/,\n RS: /^(RS[0-9]{2})\\d{18}$/,\n SA: /^(SA[0-9]{2})\\d{2}[A-Z0-9]{18}$/,\n SC: /^(SC[0-9]{2})[A-Z]{4}\\d{20}[A-Z]{3}$/,\n SE: /^(SE[0-9]{2})\\d{20}$/,\n SI: /^(SI[0-9]{2})\\d{15}$/,\n SK: /^(SK[0-9]{2})\\d{20}$/,\n SM: /^(SM[0-9]{2})[A-Z]{1}\\d{10}[A-Z0-9]{12}$/,\n SV: /^(SV[0-9]{2})[A-Z0-9]{4}\\d{20}$/,\n TL: /^(TL[0-9]{2})\\d{19}$/,\n TN: /^(TN[0-9]{2})\\d{20}$/,\n TR: /^(TR[0-9]{2})\\d{5}[A-Z0-9]{17}$/,\n UA: /^(UA[0-9]{2})\\d{6}[A-Z0-9]{19}$/,\n VA: /^(VA[0-9]{2})\\d{18}$/,\n VG: /^(VG[0-9]{2})[A-Z0-9]{4}\\d{16}$/,\n XK: /^(XK[0-9]{2})\\d{16}$/\n};\n\n/**\n * Check if the country codes passed are valid using the\n * ibanRegexThroughCountryCode as a reference\n *\n * @param {array} countryCodeArray\n * @return {boolean}\n */\n\nfunction hasOnlyValidCountryCodes(countryCodeArray) {\n var countryCodeArrayFilteredWithObjectIbanCode = countryCodeArray.filter(function (countryCode) {\n return !(countryCode in ibanRegexThroughCountryCode);\n });\n if (countryCodeArrayFilteredWithObjectIbanCode.length > 0) {\n return false;\n }\n return true;\n}\n\n/**\n * Check whether string has correct universal IBAN format\n * The IBAN consists of up to 34 alphanumeric characters, as follows:\n * Country Code using ISO 3166-1 alpha-2, two letters\n * check digits, two digits and\n * Basic Bank Account Number (BBAN), up to 30 alphanumeric characters.\n * NOTE: Permitted IBAN characters are: digits [0-9] and the 26 latin alphabetic [A-Z]\n *\n * @param {string} str - string under validation\n * @param {object} options - object to pass the countries to be either whitelisted or blacklisted\n * @return {boolean}\n */\nfunction hasValidIbanFormat(str, options) {\n // Strip white spaces and hyphens\n var strippedStr = str.replace(/[\\s\\-]+/gi, '').toUpperCase();\n var isoCountryCode = strippedStr.slice(0, 2).toUpperCase();\n var isoCountryCodeInIbanRegexCodeObject = (isoCountryCode in ibanRegexThroughCountryCode);\n if (options.whitelist) {\n if (!hasOnlyValidCountryCodes(options.whitelist)) {\n return false;\n }\n var isoCountryCodeInWhiteList = options.whitelist.includes(isoCountryCode);\n if (!isoCountryCodeInWhiteList) {\n return false;\n }\n }\n if (options.blacklist) {\n var isoCountryCodeInBlackList = options.blacklist.includes(isoCountryCode);\n if (isoCountryCodeInBlackList) {\n return false;\n }\n }\n return isoCountryCodeInIbanRegexCodeObject && ibanRegexThroughCountryCode[isoCountryCode].test(strippedStr);\n}\n\n/**\n * Check whether string has valid IBAN Checksum\n * by performing basic mod-97 operation and\n * the remainder should equal 1\n * -- Start by rearranging the IBAN by moving the four initial characters to the end of the string\n * -- Replace each letter in the string with two digits, A -> 10, B = 11, Z = 35\n * -- Interpret the string as a decimal integer and\n * -- compute the remainder on division by 97 (mod 97)\n * Reference: https://en.wikipedia.org/wiki/International_Bank_Account_Number\n *\n * @param {string} str\n * @return {boolean}\n */\nfunction hasValidIbanChecksum(str) {\n var strippedStr = str.replace(/[^A-Z0-9]+/gi, '').toUpperCase(); // Keep only digits and A-Z latin alphabetic\n var rearranged = strippedStr.slice(4) + strippedStr.slice(0, 4);\n var alphaCapsReplacedWithDigits = rearranged.replace(/[A-Z]/g, function (char) {\n return char.charCodeAt(0) - 55;\n });\n var remainder = alphaCapsReplacedWithDigits.match(/\\d{1,7}/g).reduce(function (acc, value) {\n return Number(acc + value) % 97;\n }, '');\n return remainder === 1;\n}\nfunction isIBAN(str) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(str);\n return hasValidIbanFormat(str, options) && hasValidIbanChecksum(str);\n}\nvar locales = exports.locales = Object.keys(ibanRegexThroughCountryCode);",
|
|
16
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isUUID;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar uuid = {\n 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i,\n 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n 7: /^[0-9A-F]{8}-[0-9A-F]{4}-7[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i,\n all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i\n};\nfunction isUUID(str, version) {\n (0, _assertString.default)(str);\n var pattern = uuid[![undefined, null].includes(version) ? version : 'all'];\n return !!pattern && pattern.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
17
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAscii;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n/* eslint-disable no-control-regex */\nvar ascii = /^[\\x00-\\x7F]+$/;\n/* eslint-enable no-control-regex */\n\nfunction isAscii(str) {\n (0, _assertString.default)(str);\n return ascii.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
18
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isByteLength;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction _typeof(o) { \"@babel/helpers - typeof\"; return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o; }, _typeof(o); }\n/* eslint-disable prefer-rest-params */\nfunction isByteLength(str, options) {\n (0, _assertString.default)(str);\n var min;\n var max;\n if (_typeof(options) === 'object') {\n min = options.min || 0;\n max = options.max;\n } else {\n // backwards compatibility: isByteLength(str, min [, max])\n min = arguments[1];\n max = arguments[2];\n }\n var len = encodeURI(str).split(/%..|./).length - 1;\n return len >= min && (typeof max === 'undefined' || len <= max);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
19
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isEmail;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isByteLength = _interopRequireDefault(require(\"./isByteLength\"));\nvar _isFQDN = _interopRequireDefault(require(\"./isFQDN\"));\nvar _isIP = _interopRequireDefault(require(\"./isIP\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar default_email_options = {\n allow_display_name: false,\n allow_underscores: false,\n require_display_name: false,\n allow_utf8_local_part: true,\n require_tld: true,\n blacklisted_chars: '',\n ignore_max_length: false,\n host_blacklist: [],\n host_whitelist: []\n};\n\n/* eslint-disable max-len */\n/* eslint-disable no-control-regex */\nvar splitNameAddress = /^([^\\x00-\\x1F\\x7F-\\x9F\\cX]+)</i;\nvar emailUserPart = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~]+$/i;\nvar gmailUserPart = /^[a-z\\d]+$/;\nvar quotedEmailUser = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f]))*$/i;\nvar emailUserUtf8Part = /^[a-z\\d!#\\$%&'\\*\\+\\-\\/=\\?\\^_`{\\|}~\\u00A1-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]+$/i;\nvar quotedEmailUserUtf8 = /^([\\s\\x01-\\x08\\x0b\\x0c\\x0e-\\x1f\\x7f\\x21\\x23-\\x5b\\x5d-\\x7e\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]|(\\\\[\\x01-\\x09\\x0b\\x0c\\x0d-\\x7f\\u00A0-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]))*$/i;\nvar defaultMaxEmailLength = 254;\n/* eslint-enable max-len */\n/* eslint-enable no-control-regex */\n\n/**\n * Validate display name according to the RFC2822: https://tools.ietf.org/html/rfc2822#appendix-A.1.2\n * @param {String} display_name\n */\nfunction validateDisplayName(display_name) {\n var display_name_without_quotes = display_name.replace(/^\"(.+)\"$/, '$1');\n // display name with only spaces is not valid\n if (!display_name_without_quotes.trim()) {\n return false;\n }\n\n // check whether display name contains illegal character\n var contains_illegal = /[\\.\";<>]/.test(display_name_without_quotes);\n if (contains_illegal) {\n // if contains illegal characters,\n // must to be enclosed in double-quotes, otherwise it's not a valid display name\n if (display_name_without_quotes === display_name) {\n return false;\n }\n\n // the quotes in display name must start with character symbol \\\n var all_start_with_back_slash = display_name_without_quotes.split('\"').length === display_name_without_quotes.split('\\\\\"').length;\n if (!all_start_with_back_slash) {\n return false;\n }\n }\n return true;\n}\nfunction isEmail(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_email_options);\n if (options.require_display_name || options.allow_display_name) {\n var display_email = str.match(splitNameAddress);\n if (display_email) {\n var display_name = display_email[1];\n\n // Remove display name and angle brackets to get email address\n // Can be done in the regex but will introduce a ReDOS (See #1597 for more info)\n str = str.replace(display_name, '').replace(/(^<|>$)/g, '');\n\n // sometimes need to trim the last space to get the display name\n // because there may be a space between display name and email address\n // eg. myname <address@gmail.com>\n // the display name is `myname` instead of `myname `, so need to trim the last space\n if (display_name.endsWith(' ')) {\n display_name = display_name.slice(0, -1);\n }\n if (!validateDisplayName(display_name)) {\n return false;\n }\n } else if (options.require_display_name) {\n return false;\n }\n }\n if (!options.ignore_max_length && str.length > defaultMaxEmailLength) {\n return false;\n }\n var parts = str.split('@');\n var domain = parts.pop();\n var lower_domain = domain.toLowerCase();\n if (options.host_blacklist.includes(lower_domain)) {\n return false;\n }\n if (options.host_whitelist.length > 0 && !options.host_whitelist.includes(lower_domain)) {\n return false;\n }\n var user = parts.join('@');\n if (options.domain_specific_validation && (lower_domain === 'gmail.com' || lower_domain === 'googlemail.com')) {\n /*\n Previously we removed dots for gmail addresses before validating.\n This was removed because it allows `multiple..dots@gmail.com`\n to be reported as valid, but it is not.\n Gmail only normalizes single dots, removing them from here is pointless,\n should be done in normalizeEmail\n */\n user = user.toLowerCase();\n\n // Removing sub-address from username before gmail validation\n var username = user.split('+')[0];\n\n // Dots are not included in gmail length restriction\n if (!(0, _isByteLength.default)(username.replace(/\\./g, ''), {\n min: 6,\n max: 30\n })) {\n return false;\n }\n var _user_parts = username.split('.');\n for (var i = 0; i < _user_parts.length; i++) {\n if (!gmailUserPart.test(_user_parts[i])) {\n return false;\n }\n }\n }\n if (options.ignore_max_length === false && (!(0, _isByteLength.default)(user, {\n max: 64\n }) || !(0, _isByteLength.default)(domain, {\n max: 254\n }))) {\n return false;\n }\n if (!(0, _isFQDN.default)(domain, {\n require_tld: options.require_tld,\n ignore_max_length: options.ignore_max_length,\n allow_underscores: options.allow_underscores\n })) {\n if (!options.allow_ip_domain) {\n return false;\n }\n if (!(0, _isIP.default)(domain)) {\n if (!domain.startsWith('[') || !domain.endsWith(']')) {\n return false;\n }\n var noBracketdomain = domain.slice(1, -1);\n if (noBracketdomain.length === 0 || !(0, _isIP.default)(noBracketdomain)) {\n return false;\n }\n }\n }\n if (user[0] === '\"') {\n user = user.slice(1, user.length - 1);\n return options.allow_utf8_local_part ? quotedEmailUserUtf8.test(user) : quotedEmailUser.test(user);\n }\n var pattern = options.allow_utf8_local_part ? emailUserUtf8Part : emailUserPart;\n var user_parts = user.split('.');\n for (var _i = 0; _i < user_parts.length; _i++) {\n if (!pattern.test(user_parts[_i])) {\n return false;\n }\n }\n if (options.blacklisted_chars) {\n if (user.search(new RegExp(\"[\".concat(options.blacklisted_chars, \"]+\"), 'g')) !== -1) return false;\n }\n return true;\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
20
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.farsiLocales = exports.englishLocales = exports.dotDecimal = exports.decimal = exports.commaDecimal = exports.bengaliLocales = exports.arabicLocales = exports.alphanumeric = exports.alpha = void 0;\nvar alpha = exports.alpha = {\n 'en-US': /^[A-Z]+$/i,\n 'az-AZ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A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[А-ЩЬЮЯЄIЇҐі]+$/i,\n 'vi-VN': /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n 'ko-KR': /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/,\n 'ku-IQ': /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[א-ת]+$/,\n fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i,\n bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,\n eo: /^[ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,\n 'hi-IN': /^[\\u0900-\\u0961]+[\\u0972-\\u097F]*$/i,\n 'si-LK': /^[\\u0D80-\\u0DFF]+$/\n};\nvar alphanumeric = exports.alphanumeric = {\n 'en-US': /^[0-9A-Z]+$/i,\n 'az-AZ': /^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i,\n 'bg-BG': /^[0-9А-Я]+$/i,\n 'cs-CZ': /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i,\n 'da-DK': /^[0-9A-ZÆØÅ]+$/i,\n 'de-DE': /^[0-9A-ZÄÖÜß]+$/i,\n 'el-GR': /^[0-9Α-ω]+$/i,\n 'es-ES': /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i,\n 'fi-FI': /^[0-9A-ZÅÄÖ]+$/i,\n 'fr-FR': /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i,\n 'it-IT': /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i,\n 'ja-JP': /^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i,\n 'hu-HU': /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i,\n 'nb-NO': /^[0-9A-ZÆØÅ]+$/i,\n 'nl-NL': /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i,\n 'nn-NO': /^[0-9A-ZÆØÅ]+$/i,\n 'pl-PL': /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i,\n 'pt-PT': /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i,\n 'ru-RU': /^[0-9А-ЯЁ]+$/i,\n 'kk-KZ': /^[0-9А-ЯЁ\\u04D8\\u04B0\\u0406\\u04A2\\u0492\\u04AE\\u049A\\u04E8\\u04BA]+$/i,\n 'sl-SI': /^[0-9A-ZČĆĐŠŽ]+$/i,\n 'sk-SK': /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i,\n 'sr-RS@latin': /^[0-9A-ZČĆŽŠĐ]+$/i,\n 'sr-RS': /^[0-9А-ЯЂЈЉЊЋЏ]+$/i,\n 'sv-SE': /^[0-9A-ZÅÄÖ]+$/i,\n 'th-TH': /^[ก-๙\\s]+$/i,\n 'tr-TR': /^[0-9A-ZÇĞİıÖŞÜ]+$/i,\n 'uk-UA': /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i,\n 'ko-KR': /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/,\n 'ku-IQ': /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i,\n 'vi-VN': /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i,\n ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/,\n he: /^[0-9א-ת]+$/,\n fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i,\n bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/,\n eo: /^[0-9ABCĈD-GĜHĤIJĴK-PRSŜTUŬVZ]+$/i,\n 'hi-IN': /^[\\u0900-\\u0963]+[\\u0966-\\u097F]*$/i,\n 'si-LK': /^[0-9\\u0D80-\\u0DFF]+$/\n};\nvar decimal = exports.decimal = {\n 'en-US': '.',\n ar: '٫'\n};\nvar englishLocales = exports.englishLocales = ['AU', 'GB', 'HK', 'IN', 'NZ', 'ZA', 'ZM'];\nfor (var locale, i = 0; i < englishLocales.length; i++) {\n locale = \"en-\".concat(englishLocales[i]);\n alpha[locale] = alpha['en-US'];\n alphanumeric[locale] = alphanumeric['en-US'];\n decimal[locale] = decimal['en-US'];\n}\n\n// Source: http://www.localeplanet.com/java/\nvar arabicLocales = exports.arabicLocales = ['AE', 'BH', 'DZ', 'EG', 'IQ', 'JO', 'KW', 'LB', 'LY', 'MA', 'QM', 'QA', 'SA', 'SD', 'SY', 'TN', 'YE'];\nfor (var _locale, _i = 0; _i < arabicLocales.length; _i++) {\n _locale = \"ar-\".concat(arabicLocales[_i]);\n alpha[_locale] = alpha.ar;\n alphanumeric[_locale] = alphanumeric.ar;\n decimal[_locale] = decimal.ar;\n}\nvar farsiLocales = exports.farsiLocales = ['IR', 'AF'];\nfor (var _locale2, _i2 = 0; _i2 < farsiLocales.length; _i2++) {\n _locale2 = \"fa-\".concat(farsiLocales[_i2]);\n alphanumeric[_locale2] = alphanumeric.fa;\n decimal[_locale2] = decimal.ar;\n}\nvar bengaliLocales = exports.bengaliLocales = ['BD', 'IN'];\nfor (var _locale3, _i3 = 0; _i3 < bengaliLocales.length; _i3++) {\n _locale3 = \"bn-\".concat(bengaliLocales[_i3]);\n alpha[_locale3] = alpha.bn;\n alphanumeric[_locale3] = alphanumeric.bn;\n decimal[_locale3] = decimal['en-US'];\n}\n\n// Source: https://en.wikipedia.org/wiki/Decimal_mark\nvar dotDecimal = exports.dotDecimal = ['ar-EG', 'ar-LB', 'ar-LY'];\nvar commaDecimal = exports.commaDecimal = ['bg-BG', 'cs-CZ', 'da-DK', 'de-DE', 'el-GR', 'en-ZM', 'eo', 'es-ES', 'fr-CA', 'fr-FR', 'id-ID', 'it-IT', 'ku-IQ', 'hi-IN', 'hu-HU', 'nb-NO', 'nn-NO', 'nl-NL', 'pl-PL', 'pt-PT', 'ru-RU', 'kk-KZ', 'si-LK', 'sl-SI', 'sr-RS@latin', 'sr-RS', 'sv-SE', 'tr-TR', 'uk-UA', 'vi-VN'];\nfor (var _i4 = 0; _i4 < dotDecimal.length; _i4++) {\n decimal[dotDecimal[_i4]] = decimal['en-US'];\n}\nfor (var _i5 = 0; _i5 < commaDecimal.length; _i5++) {\n decimal[commaDecimal[_i5]] = ',';\n}\nalpha['fr-CA'] = alpha['fr-FR'];\nalphanumeric['fr-CA'] = alphanumeric['fr-FR'];\nalpha['pt-BR'] = alpha['pt-PT'];\nalphanumeric['pt-BR'] = alphanumeric['pt-PT'];\ndecimal['pt-BR'] = decimal['pt-PT'];\n\n// see #862\nalpha['pl-Pl'] = alpha['pl-PL'];\nalphanumeric['pl-Pl'] = alphanumeric['pl-PL'];\ndecimal['pl-Pl'] = decimal['pl-PL'];\n\n// see #1455\nalpha['fa-AF'] = alpha.fa;",
|
|
21
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlpha;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction isAlpha(_str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _assertString.default)(_str);\n var str = _str;\n var ignore = options.ignore;\n if (ignore) {\n if (ignore instanceof RegExp) {\n str = str.replace(ignore, '');\n } else if (typeof ignore === 'string') {\n str = str.replace(new RegExp(\"[\".concat(ignore.replace(/[-[\\]{}()*+?.,\\\\^$|#\\\\s]/g, '\\\\$&'), \"]\"), 'g'), ''); // escape regex for ignore\n } else {\n throw new Error('ignore should be instance of a String or RegExp');\n }\n }\n if (locale in _alpha.alpha) {\n return _alpha.alpha[locale].test(str);\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(_alpha.alpha);",
|
|
22
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLatLong;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar lat = /^\\(?[+-]?(90(\\.0+)?|[1-8]?\\d(\\.\\d+)?)$/;\nvar long = /^\\s?[+-]?(180(\\.0+)?|1[0-7]\\d(\\.\\d+)?|\\d{1,2}(\\.\\d+)?)\\)?$/;\nvar latDMS = /^(([1-8]?\\d)\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|90\\D+0\\D+0)\\D+[NSns]?$/i;\nvar longDMS = /^\\s*([1-7]?\\d{1,2}\\D+([1-5]?\\d|60)\\D+([1-5]?\\d|60)(\\.\\d+)?|180\\D+0\\D+0)\\D+[EWew]?$/i;\nvar defaultLatLongOptions = {\n checkDMS: false\n};\nfunction isLatLong(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, defaultLatLongOptions);\n if (!str.includes(',')) return false;\n var pair = str.split(',');\n if (pair[0].startsWith('(') && !pair[1].endsWith(')') || pair[1].endsWith(')') && !pair[0].startsWith('(')) return false;\n if (options.checkDMS) {\n return latDMS.test(pair[0]) && longDMS.test(pair[1]);\n }\n return lat.test(pair[0]) && long.test(pair[1]);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
23
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar includes = function includes(arr, val) {\n return arr.some(function (arrVal) {\n return val === arrVal;\n });\n};\nvar _default = exports.default = includes;\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
24
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isDecimal;\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _includes = _interopRequireDefault(require(\"./util/includes\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction decimalRegExp(options) {\n var regExp = new RegExp(\"^[-+]?([0-9]+)?(\\\\\".concat(_alpha.decimal[options.locale], \"[0-9]{\").concat(options.decimal_digits, \"})\").concat(options.force_decimal ? '' : '?', \"$\"));\n return regExp;\n}\nvar default_decimal_options = {\n force_decimal: false,\n decimal_digits: '1,',\n locale: 'en-US'\n};\nvar blacklist = ['', '-', '+'];\nfunction isDecimal(str, options) {\n (0, _assertString.default)(str);\n options = (0, _merge.default)(options, default_decimal_options);\n if (options.locale in _alpha.decimal) {\n return !(0, _includes.default)(blacklist, str.replace(/ /g, '')) && decimalRegExp(options).test(str);\n }\n throw new Error(\"Invalid locale '\".concat(options.locale, \"'\"));\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
25
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isHexColor;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar hexcolor = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i;\nfunction isHexColor(str) {\n (0, _assertString.default)(str);\n return hexcolor.test(str);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
26
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isLuhnNumber;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction isLuhnNumber(str) {\n (0, _assertString.default)(str);\n var sanitized = str.replace(/[- ]+/g, '');\n var sum = 0;\n var digit;\n var tmpNum;\n var shouldDouble;\n for (var i = sanitized.length - 1; i >= 0; i--) {\n digit = sanitized.substring(i, i + 1);\n tmpNum = parseInt(digit, 10);\n if (shouldDouble) {\n tmpNum *= 2;\n if (tmpNum >= 10) {\n sum += tmpNum % 10 + 1;\n } else {\n sum += tmpNum;\n }\n } else {\n sum += tmpNum;\n }\n shouldDouble = !shouldDouble;\n }\n return !!(sum % 10 === 0 ? sanitized : false);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
27
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isCreditCard;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _isLuhnNumber = _interopRequireDefault(require(\"./isLuhnNumber\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar cards = {\n amex: /^3[47][0-9]{13}$/,\n dinersclub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/,\n discover: /^6(?:011|5[0-9][0-9])[0-9]{12,15}$/,\n jcb: /^(?:2131|1800|35\\d{3})\\d{11}$/,\n mastercard: /^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/,\n // /^[25][1-7][0-9]{14}$/;\n unionpay: /^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/,\n visa: /^(?:4[0-9]{12})(?:[0-9]{3,6})?$/\n};\nvar allCards = function () {\n var tmpCardsArray = [];\n for (var cardProvider in cards) {\n // istanbul ignore else\n if (cards.hasOwnProperty(cardProvider)) {\n tmpCardsArray.push(cards[cardProvider]);\n }\n }\n return tmpCardsArray;\n}();\nfunction isCreditCard(card) {\n var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};\n (0, _assertString.default)(card);\n var provider = options.provider;\n var sanitized = card.replace(/[- ]+/g, '');\n if (provider && provider.toLowerCase() in cards) {\n // specific provider in the list\n if (!cards[provider.toLowerCase()].test(sanitized)) {\n return false;\n }\n } else if (provider && !(provider.toLowerCase() in cards)) {\n /* specific provider not in the list */\n throw new Error(\"\".concat(provider, \" is not a valid credit card provider.\"));\n } else if (!allCards.some(function (cardProvider) {\n return cardProvider.test(sanitized);\n })) {\n // no specific provider\n return false;\n }\n return (0, _isLuhnNumber.default)(card);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
28
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isAlphanumeric;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nvar _alpha = require(\"./alpha\");\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction isAlphanumeric(_str) {\n var locale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'en-US';\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n (0, _assertString.default)(_str);\n var str = _str;\n var ignore = options.ignore;\n if (ignore) {\n if (ignore instanceof RegExp) {\n str = str.replace(ignore, '');\n } else if (typeof ignore === 'string') {\n str = str.replace(new RegExp(\"[\".concat(ignore.replace(/[-[\\]{}()*+?.,\\\\^$|#\\\\s]/g, '\\\\$&'), \"]\"), 'g'), ''); // escape regex for ignore\n } else {\n throw new Error('ignore should be instance of a String or RegExp');\n }\n }\n if (locale in _alpha.alphanumeric) {\n return _alpha.alphanumeric[locale].test(str);\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(_alpha.alphanumeric);",
|
|
29
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPassportNumber;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n/**\n * Reference:\n * https://en.wikipedia.org/ -- Wikipedia\n * https://docs.microsoft.com/en-us/microsoft-365/compliance/eu-passport-number -- EU Passport Number\n * https://countrycode.org/ -- Country Codes\n */\nvar passportRegexByCountryCode = {\n AM: /^[A-Z]{2}\\d{7}$/,\n // ARMENIA\n AR: /^[A-Z]{3}\\d{6}$/,\n // ARGENTINA\n AT: /^[A-Z]\\d{7}$/,\n // AUSTRIA\n AU: /^[A-Z]\\d{7}$/,\n // AUSTRALIA\n AZ: /^[A-Z]{1}\\d{8}$/,\n // AZERBAIJAN\n BE: /^[A-Z]{2}\\d{6}$/,\n // BELGIUM\n BG: /^\\d{9}$/,\n // BULGARIA\n BR: /^[A-Z]{2}\\d{6}$/,\n // BRAZIL\n BY: /^[A-Z]{2}\\d{7}$/,\n // BELARUS\n CA: /^[A-Z]{2}\\d{6}$/,\n // CANADA\n CH: /^[A-Z]\\d{7}$/,\n // SWITZERLAND\n CN: /^G\\d{8}$|^E(?![IO])[A-Z0-9]\\d{7}$/,\n // CHINA [G=Ordinary, E=Electronic] followed by 8-digits, or E followed by any UPPERCASE letter (except I and O) followed by 7 digits\n CY: /^[A-Z](\\d{6}|\\d{8})$/,\n // CYPRUS\n CZ: /^\\d{8}$/,\n // CZECH REPUBLIC\n DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/,\n // GERMANY\n DK: /^\\d{9}$/,\n // DENMARK\n DZ: /^\\d{9}$/,\n // ALGERIA\n EE: /^([A-Z]\\d{7}|[A-Z]{2}\\d{7})$/,\n // ESTONIA (K followed by 7-digits), e-passports have 2 UPPERCASE followed by 7 digits\n ES: /^[A-Z0-9]{2}([A-Z0-9]?)\\d{6}$/,\n // SPAIN\n FI: /^[A-Z]{2}\\d{7}$/,\n // FINLAND\n FR: /^\\d{2}[A-Z]{2}\\d{5}$/,\n // FRANCE\n GB: /^\\d{9}$/,\n // UNITED KINGDOM\n GR: /^[A-Z]{2}\\d{7}$/,\n // GREECE\n HR: /^\\d{9}$/,\n // CROATIA\n HU: /^[A-Z]{2}(\\d{6}|\\d{7})$/,\n // HUNGARY\n IE: /^[A-Z0-9]{2}\\d{7}$/,\n // IRELAND\n IN: /^[A-Z]{1}-?\\d{7}$/,\n // INDIA\n ID: /^[A-C]\\d{7}$/,\n // INDONESIA\n IR: /^[A-Z]\\d{8}$/,\n // IRAN\n IS: /^(A)\\d{7}$/,\n // ICELAND\n IT: /^[A-Z0-9]{2}\\d{7}$/,\n // ITALY\n JM: /^[Aa]\\d{7}$/,\n // JAMAICA\n JP: /^[A-Z]{2}\\d{7}$/,\n // JAPAN\n KR: /^[MS]\\d{8}$/,\n // SOUTH KOREA, REPUBLIC OF KOREA, [S=PS Passports, M=PM Passports]\n KZ: /^[a-zA-Z]\\d{7}$/,\n // KAZAKHSTAN\n LI: /^[a-zA-Z]\\d{5}$/,\n // LIECHTENSTEIN\n LT: /^[A-Z0-9]{8}$/,\n // LITHUANIA\n LU: /^[A-Z0-9]{8}$/,\n // LUXEMBURG\n LV: /^[A-Z0-9]{2}\\d{7}$/,\n // LATVIA\n LY: /^[A-Z0-9]{8}$/,\n // LIBYA\n MT: /^\\d{7}$/,\n // MALTA\n MZ: /^([A-Z]{2}\\d{7})|(\\d{2}[A-Z]{2}\\d{5})$/,\n // MOZAMBIQUE\n MY: /^[AHK]\\d{8}$/,\n // MALAYSIA\n MX: /^\\d{10,11}$/,\n // MEXICO\n NL: /^[A-Z]{2}[A-Z0-9]{6}\\d$/,\n // NETHERLANDS\n NZ: /^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\\d{6}$/,\n // NEW ZEALAND\n PH: /^([A-Z](\\d{6}|\\d{7}[A-Z]))|([A-Z]{2}(\\d{6}|\\d{7}))$/,\n // PHILIPPINES\n PK: /^[A-Z]{2}\\d{7}$/,\n // PAKISTAN\n PL: /^[A-Z]{2}\\d{7}$/,\n // POLAND\n PT: /^[A-Z]\\d{6}$/,\n // PORTUGAL\n RO: /^\\d{8,9}$/,\n // ROMANIA\n RU: /^\\d{9}$/,\n // RUSSIAN FEDERATION\n SE: /^\\d{8}$/,\n // SWEDEN\n SL: /^(P)[A-Z]\\d{7}$/,\n // SLOVENIA\n SK: /^[0-9A-Z]\\d{7}$/,\n // SLOVAKIA\n TH: /^[A-Z]{1,2}\\d{6,7}$/,\n // THAILAND\n TR: /^[A-Z]\\d{8}$/,\n // TURKEY\n UA: /^[A-Z]{2}\\d{6}$/,\n // UKRAINE\n US: /^\\d{9}$/,\n // UNITED STATES\n ZA: /^[TAMD]\\d{8}$/ // SOUTH AFRICA\n};\n\n/**\n * Check if str is a valid passport number\n * relative to provided ISO Country Code.\n *\n * @param {string} str\n * @param {string} countryCode\n * @return {boolean}\n */\nfunction isPassportNumber(str, countryCode) {\n (0, _assertString.default)(str);\n /** Remove All Whitespaces, Convert to UPPERCASE */\n var normalizedStr = str.replace(/\\s/g, '').toUpperCase();\n return countryCode.toUpperCase() in passportRegexByCountryCode && passportRegexByCountryCode[countryCode].test(normalizedStr);\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
30
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isPostalCode;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n// common patterns\nvar threeDigit = /^\\d{3}$/;\nvar fourDigit = /^\\d{4}$/;\nvar fiveDigit = /^\\d{5}$/;\nvar sixDigit = /^\\d{6}$/;\nvar patterns = {\n AD: /^AD\\d{3}$/,\n AT: fourDigit,\n AU: fourDigit,\n AZ: /^AZ\\d{4}$/,\n BA: /^([7-8]\\d{4}$)/,\n BE: fourDigit,\n BG: fourDigit,\n BR: /^\\d{5}-\\d{3}$/,\n BY: /^2[1-4]\\d{4}$/,\n CA: /^[ABCEGHJKLMNPRSTVXY]\\d[ABCEGHJ-NPRSTV-Z][\\s\\-]?\\d[ABCEGHJ-NPRSTV-Z]\\d$/i,\n CH: fourDigit,\n CN: /^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\\d{4}$/,\n CZ: /^\\d{3}\\s?\\d{2}$/,\n DE: fiveDigit,\n DK: fourDigit,\n DO: fiveDigit,\n DZ: fiveDigit,\n EE: fiveDigit,\n ES: /^(5[0-2]{1}|[0-4]{1}\\d{1})\\d{3}$/,\n FI: fiveDigit,\n FR: /^\\d{2}\\s?\\d{3}$/,\n GB: /^(gir\\s?0aa|[a-z]{1,2}\\d[\\da-z]?\\s?(\\d[a-z]{2})?)$/i,\n GR: /^\\d{3}\\s?\\d{2}$/,\n HR: /^([1-5]\\d{4}$)/,\n HT: /^HT\\d{4}$/,\n HU: fourDigit,\n ID: fiveDigit,\n IE: /^(?!.*(?:o))[A-Za-z]\\d[\\dw]\\s\\w{4}$/i,\n IL: /^(\\d{5}|\\d{7})$/,\n IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/,\n IR: /^(?!(\\d)\\1{3})[13-9]{4}[1346-9][013-9]{5}$/,\n IS: threeDigit,\n IT: fiveDigit,\n JP: /^\\d{3}\\-\\d{4}$/,\n KE: fiveDigit,\n KR: /^(\\d{5}|\\d{6})$/,\n LI: /^(948[5-9]|949[0-7])$/,\n LT: /^LT\\-\\d{5}$/,\n LU: fourDigit,\n LV: /^LV\\-\\d{4}$/,\n LK: fiveDigit,\n MG: threeDigit,\n MX: fiveDigit,\n MT: /^[A-Za-z]{3}\\s{0,1}\\d{4}$/,\n MY: fiveDigit,\n NL: /^[1-9]\\d{3}\\s?(?!sa|sd|ss)[a-z]{2}$/i,\n NO: fourDigit,\n NP: /^(10|21|22|32|33|34|44|45|56|57)\\d{3}$|^(977)$/i,\n NZ: fourDigit,\n PL: /^\\d{2}\\-\\d{3}$/,\n PR: /^00[679]\\d{2}([ -]\\d{4})?$/,\n PT: /^\\d{4}\\-\\d{3}?$/,\n RO: sixDigit,\n RU: sixDigit,\n SA: fiveDigit,\n SE: /^[1-9]\\d{2}\\s?\\d{2}$/,\n SG: sixDigit,\n SI: fourDigit,\n SK: /^\\d{3}\\s?\\d{2}$/,\n TH: fiveDigit,\n TN: fourDigit,\n TW: /^\\d{3}(\\d{2})?$/,\n UA: fiveDigit,\n US: /^\\d{5}(-\\d{4})?$/,\n ZA: fourDigit,\n ZM: fiveDigit\n};\nvar locales = exports.locales = Object.keys(patterns);\nfunction isPostalCode(str, locale) {\n (0, _assertString.default)(str);\n if (locale in patterns) {\n return patterns[locale].test(str);\n } else if (locale === 'any') {\n for (var key in patterns) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (patterns.hasOwnProperty(key)) {\n var pattern = patterns[key];\n if (pattern.test(str)) {\n return true;\n }\n }\n }\n return false;\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}",
|
|
31
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = isMobilePhone;\nexports.locales = void 0;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\n/* eslint-disable max-len */\nvar phones = {\n 'am-AM': /^(\\+?374|0)(33|4[134]|55|77|88|9[13-689])\\d{6}$/,\n 'ar-AE': /^((\\+?971)|0)?5[024568]\\d{7}$/,\n 'ar-BH': /^(\\+?973)?(3|6)\\d{7}$/,\n 'ar-DZ': /^(\\+?213|0)(5|6|7)\\d{8}$/,\n 'ar-LB': /^(\\+?961)?((3|81)\\d{6}|7\\d{7})$/,\n 'ar-EG': /^((\\+?20)|0)?1[0125]\\d{8}$/,\n 'ar-IQ': /^(\\+?964|0)?7[0-9]\\d{8}$/,\n 'ar-JO': /^(\\+?962|0)?7[789]\\d{7}$/,\n 'ar-KW': /^(\\+?965)([569]\\d{7}|41\\d{6})$/,\n 'ar-LY': /^((\\+?218)|0)?(9[1-6]\\d{7}|[1-8]\\d{7,9})$/,\n 'ar-MA': /^(?:(?:\\+|00)212|0)[5-7]\\d{8}$/,\n 'ar-OM': /^((\\+|00)968)?(9[1-9])\\d{6}$/,\n 'ar-PS': /^(\\+?970|0)5[6|9](\\d{7})$/,\n 'ar-SA': /^(!?(\\+?966)|0)?5\\d{8}$/,\n 'ar-SD': /^((\\+?249)|0)?(9[012369]|1[012])\\d{7}$/,\n 'ar-SY': /^(!?(\\+?963)|0)?9\\d{8}$/,\n 'ar-TN': /^(\\+?216)?[2459]\\d{7}$/,\n 'az-AZ': /^(\\+994|0)(10|5[015]|7[07]|99)\\d{7}$/,\n 'bs-BA': /^((((\\+|00)3876)|06))((([0-3]|[5-6])\\d{6})|(4\\d{7}))$/,\n 'be-BY': /^(\\+?375)?(24|25|29|33|44)\\d{7}$/,\n 'bg-BG': /^(\\+?359|0)?8[789]\\d{7}$/,\n 'bn-BD': /^(\\+?880|0)1[13456789][0-9]{8}$/,\n 'ca-AD': /^(\\+376)?[346]\\d{5}$/,\n 'cs-CZ': /^(\\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'da-DK': /^(\\+?45)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'de-DE': /^((\\+49|0)1)(5[0-25-9]\\d|6([23]|0\\d?)|7([0-57-9]|6\\d))\\d{7,9}$/,\n 'de-AT': /^(\\+43|0)\\d{1,4}\\d{3,12}$/,\n 'de-CH': /^(\\+41|0)([1-9])\\d{1,9}$/,\n 'de-LU': /^(\\+352)?((6\\d1)\\d{6})$/,\n 'dv-MV': /^(\\+?960)?(7[2-9]|9[1-9])\\d{5}$/,\n 'el-GR': /^(\\+?30|0)?6(8[5-9]|9(?![26])[0-9])\\d{7}$/,\n 'el-CY': /^(\\+?357?)?(9(9|6)\\d{6})$/,\n 'en-AI': /^(\\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\\d{4}$/,\n 'en-AU': /^(\\+?61|0)4\\d{8}$/,\n 'en-AG': /^(?:\\+1|1)268(?:464|7(?:1[3-9]|[28]\\d|3[0246]|64|7[0-689]))\\d{4}$/,\n 'en-BM': /^(\\+?1)?441(((3|7)\\d{6}$)|(5[0-3][0-9]\\d{4}$)|(59\\d{5}$))/,\n 'en-BS': /^(\\+?1[-\\s]?|0)?\\(?242\\)?[-\\s]?\\d{3}[-\\s]?\\d{4}$/,\n 'en-GB': /^(\\+?44|0)7\\d{9}$/,\n 'en-GG': /^(\\+?44|0)1481\\d{6}$/,\n 'en-GH': /^(\\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\\d{7}$/,\n 'en-GY': /^(\\+592|0)6\\d{6}$/,\n 'en-HK': /^(\\+?852[-\\s]?)?[456789]\\d{3}[-\\s]?\\d{4}$/,\n 'en-MO': /^(\\+?853[-\\s]?)?[6]\\d{3}[-\\s]?\\d{4}$/,\n 'en-IE': /^(\\+?353|0)8[356789]\\d{7}$/,\n 'en-IN': /^(\\+?91|0)?[6789]\\d{9}$/,\n 'en-JM': /^(\\+?876)?\\d{7}$/,\n 'en-KE': /^(\\+?254|0)(7|1)\\d{8}$/,\n 'fr-CF': /^(\\+?236| ?)(70|75|77|72|21|22)\\d{6}$/,\n 'en-SS': /^(\\+?211|0)(9[1257])\\d{7}$/,\n 'en-KI': /^((\\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/,\n 'en-KN': /^(?:\\+1|1)869(?:46\\d|48[89]|55[6-8]|66\\d|76[02-7])\\d{4}$/,\n 'en-LS': /^(\\+?266)(22|28|57|58|59|27|52)\\d{6}$/,\n 'en-MT': /^(\\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/,\n 'en-MU': /^(\\+?230|0)?\\d{8}$/,\n 'en-MW': /^(\\+?265|0)(((77|88|31|99|98|21)\\d{7})|(((111)|1)\\d{6})|(32000\\d{4}))$/,\n 'en-NA': /^(\\+?264|0)(6|8)\\d{7}$/,\n 'en-NG': /^(\\+?234|0)?[789]\\d{9}$/,\n 'en-NZ': /^(\\+?64|0)[28]\\d{7,9}$/,\n 'en-PG': /^(\\+?675|0)?(7\\d|8[18])\\d{6}$/,\n 'en-PK': /^((00|\\+)?92|0)3[0-6]\\d{8}$/,\n 'en-PH': /^(09|\\+639)\\d{9}$/,\n 'en-RW': /^(\\+?250|0)?[7]\\d{8}$/,\n 'en-SG': /^(\\+65)?[3689]\\d{7}$/,\n 'en-SL': /^(\\+?232|0)\\d{8}$/,\n 'en-TZ': /^(\\+?255|0)?[67]\\d{8}$/,\n 'en-UG': /^(\\+?256|0)?[7]\\d{8}$/,\n 'en-US': /^((\\+1|1)?( |-)?)?(\\([2-9][0-9]{2}\\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/,\n 'en-ZA': /^(\\+?27|0)\\d{9}$/,\n 'en-ZM': /^(\\+?26)?09[567]\\d{7}$/,\n 'en-ZW': /^(\\+263)[0-9]{9}$/,\n 'en-BW': /^(\\+?267)?(7[1-8]{1})\\d{6}$/,\n 'es-AR': /^\\+?549(11|[2368]\\d)\\d{8}$/,\n 'es-BO': /^(\\+?591)?(6|7)\\d{7}$/,\n 'es-CO': /^(\\+?57)?3(0(0|1|2|4|5)|1\\d|2[0-4]|5(0|1))\\d{7}$/,\n 'es-CL': /^(\\+?56|0)[2-9]\\d{1}\\d{7}$/,\n 'es-CR': /^(\\+506)?[2-8]\\d{7}$/,\n 'es-CU': /^(\\+53|0053)?5\\d{7}$/,\n 'es-DO': /^(\\+?1)?8[024]9\\d{7}$/,\n 'es-HN': /^(\\+?504)?[9|8|3|2]\\d{7}$/,\n 'es-EC': /^(\\+?593|0)([2-7]|9[2-9])\\d{7}$/,\n 'es-ES': /^(\\+?34)?[6|7]\\d{8}$/,\n 'es-PE': /^(\\+?51)?9\\d{8}$/,\n 'es-MX': /^(\\+?52)?(1|01)?\\d{10,11}$/,\n 'es-NI': /^(\\+?505)\\d{7,8}$/,\n 'es-PA': /^(\\+?507)\\d{7,8}$/,\n 'es-PY': /^(\\+?595|0)9[9876]\\d{7}$/,\n 'es-SV': /^(\\+?503)?[67]\\d{7}$/,\n 'es-UY': /^(\\+598|0)9[1-9][\\d]{6}$/,\n 'es-VE': /^(\\+?58)?(2|4)\\d{9}$/,\n 'et-EE': /^(\\+?372)?\\s?(5|8[1-4])\\s?([0-9]\\s?){6,7}$/,\n 'fa-IR': /^(\\+?98[\\-\\s]?|0)9[0-39]\\d[\\-\\s]?\\d{3}[\\-\\s]?\\d{4}$/,\n 'fi-FI': /^(\\+?358|0)\\s?(4[0-6]|50)\\s?(\\d\\s?){4,8}$/,\n 'fj-FJ': /^(\\+?679)?\\s?\\d{3}\\s?\\d{4}$/,\n 'fo-FO': /^(\\+?298)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'fr-BF': /^(\\+226|0)[67]\\d{7}$/,\n 'fr-BJ': /^(\\+229)\\d{8}$/,\n 'fr-CD': /^(\\+?243|0)?(8|9)\\d{8}$/,\n 'fr-CM': /^(\\+?237)6[0-9]{8}$/,\n 'fr-FR': /^(\\+?33|0)[67]\\d{8}$/,\n 'fr-GF': /^(\\+?594|0|00594)[67]\\d{8}$/,\n 'fr-GP': /^(\\+?590|0|00590)[67]\\d{8}$/,\n 'fr-MQ': /^(\\+?596|0|00596)[67]\\d{8}$/,\n 'fr-PF': /^(\\+?689)?8[789]\\d{6}$/,\n 'fr-RE': /^(\\+?262|0|00262)[67]\\d{8}$/,\n 'fr-WF': /^(\\+681)?\\d{6}$/,\n 'he-IL': /^(\\+972|0)([23489]|5[012345689]|77)[1-9]\\d{6}$/,\n 'hu-HU': /^(\\+?36|06)(20|30|31|50|70)\\d{7}$/,\n 'id-ID': /^(\\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\\s?|\\d]{5,11})$/,\n 'ir-IR': /^(\\+98|0)?9\\d{9}$/,\n 'it-IT': /^(\\+?39)?\\s?3\\d{2} ?\\d{6,7}$/,\n 'it-SM': /^((\\+378)|(0549)|(\\+390549)|(\\+3780549))?6\\d{5,9}$/,\n 'ja-JP': /^(\\+81[ \\-]?(\\(0\\))?|0)[6789]0[ \\-]?\\d{4}[ \\-]?\\d{4}$/,\n 'ka-GE': /^(\\+?995)?(79\\d{7}|5\\d{8})$/,\n 'kk-KZ': /^(\\+?7|8)?7\\d{9}$/,\n 'kl-GL': /^(\\+?299)?\\s?\\d{2}\\s?\\d{2}\\s?\\d{2}$/,\n 'ko-KR': /^((\\+?82)[ \\-]?)?0?1([0|1|6|7|8|9]{1})[ \\-]?\\d{3,4}[ \\-]?\\d{4}$/,\n 'ky-KG': /^(\\+?7\\s?\\+?7|0)\\s?\\d{2}\\s?\\d{3}\\s?\\d{4}$/,\n 'lt-LT': /^(\\+370|8)\\d{8}$/,\n 'lv-LV': /^(\\+?371)2\\d{7}$/,\n 'mg-MG': /^((\\+?261|0)(2|3)\\d)?\\d{7}$/,\n 'mn-MN': /^(\\+|00|011)?976(77|81|88|91|94|95|96|99)\\d{6}$/,\n 'my-MM': /^(\\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/,\n 'ms-MY': /^(\\+?60|0)1(([0145](-|\\s)?\\d{7,8})|([236-9](-|\\s)?\\d{7}))$/,\n 'mz-MZ': /^(\\+?258)?8[234567]\\d{7}$/,\n 'nb-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'ne-NP': /^(\\+?977)?9[78]\\d{8}$/,\n 'nl-BE': /^(\\+?32|0)4\\d{8}$/,\n 'nl-NL': /^(((\\+|00)?31\\(0\\))|((\\+|00)?31)|0)6{1}\\d{8}$/,\n 'nl-AW': /^(\\+)?297(56|59|64|73|74|99)\\d{5}$/,\n 'nn-NO': /^(\\+?47)?[49]\\d{7}$/,\n 'pl-PL': /^(\\+?48)? ?([5-8]\\d|45) ?\\d{3} ?\\d{2} ?\\d{2}$/,\n 'pt-BR': /^((\\+?55\\ ?[1-9]{2}\\ ?)|(\\+?55\\ ?\\([1-9]{2}\\)\\ ?)|(0[1-9]{2}\\ ?)|(\\([1-9]{2}\\)\\ ?)|([1-9]{2}\\ ?))((\\d{4}\\-?\\d{4})|(9[1-9]{1}\\d{3}\\-?\\d{4}))$/,\n 'pt-PT': /^(\\+?351)?9[1236]\\d{7}$/,\n 'pt-AO': /^(\\+244)\\d{9}$/,\n 'ro-MD': /^(\\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\\d{6}$/,\n 'ro-RO': /^(\\+?40|0)\\s?7\\d{2}(\\/|\\s|\\.|-)?\\d{3}(\\s|\\.|-)?\\d{3}$/,\n 'ru-RU': /^(\\+?7|8)?9\\d{9}$/,\n 'si-LK': /^(?:0|94|\\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\\d{7}$/,\n 'sl-SI': /^(\\+386\\s?|0)(\\d{1}\\s?\\d{3}\\s?\\d{2}\\s?\\d{2}|\\d{2}\\s?\\d{3}\\s?\\d{3})$/,\n 'sk-SK': /^(\\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/,\n 'so-SO': /^(\\+?252|0)((6[0-9])\\d{7}|(7[1-9])\\d{7})$/,\n 'sq-AL': /^(\\+355|0)6[789]\\d{6}$/,\n 'sr-RS': /^(\\+3816|06)[- \\d]{5,9}$/,\n 'sv-SE': /^(\\+?46|0)[\\s\\-]?7[\\s\\-]?[02369]([\\s\\-]?\\d){7}$/,\n 'tg-TJ': /^(\\+?992)?[5][5]\\d{7}$/,\n 'th-TH': /^(\\+66|66|0)\\d{9}$/,\n 'tr-TR': /^(\\+?90|0)?5\\d{9}$/,\n 'tk-TM': /^(\\+993|993|8)\\d{8}$/,\n 'uk-UA': /^(\\+?38|8)?0\\d{9}$/,\n 'uz-UZ': /^(\\+?998)?(6[125-79]|7[1-69]|88|9\\d)\\d{7}$/,\n 'vi-VN': /^((\\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/,\n 'zh-CN': /^((\\+|00)86)?(1[3-9]|9[28])\\d{9}$/,\n 'zh-TW': /^(\\+?886\\-?|0)?9\\d{8}$/,\n 'dz-BT': /^(\\+?975|0)?(17|16|77|02)\\d{6}$/,\n 'ar-YE': /^(((\\+|00)9677|0?7)[0137]\\d{7}|((\\+|00)967|0)[1-7]\\d{6})$/,\n 'ar-EH': /^(\\+?212|0)[\\s\\-]?(5288|5289)[\\s\\-]?\\d{5}$/,\n 'fa-AF': /^(\\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\\d{7})$/\n};\n/* eslint-enable max-len */\n\n// aliases\nphones['en-CA'] = phones['en-US'];\nphones['fr-CA'] = phones['en-CA'];\nphones['fr-BE'] = phones['nl-BE'];\nphones['zh-HK'] = phones['en-HK'];\nphones['zh-MO'] = phones['en-MO'];\nphones['ga-IE'] = phones['en-IE'];\nphones['fr-CH'] = phones['de-CH'];\nphones['it-CH'] = phones['fr-CH'];\nfunction isMobilePhone(str, locale, options) {\n (0, _assertString.default)(str);\n if (options && options.strictMode && !str.startsWith('+')) {\n return false;\n }\n if (Array.isArray(locale)) {\n return locale.some(function (key) {\n // https://github.com/gotwarlost/istanbul/blob/master/ignoring-code-for-coverage.md#ignoring-code-for-coverage-purposes\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n if (phone.test(str)) {\n return true;\n }\n }\n return false;\n });\n } else if (locale in phones) {\n return phones[locale].test(str);\n // alias falsey locale as 'any'\n } else if (!locale || locale === 'any') {\n for (var key in phones) {\n // istanbul ignore else\n if (phones.hasOwnProperty(key)) {\n var phone = phones[key];\n if (phone.test(str)) {\n return true;\n }\n }\n }\n return false;\n }\n throw new Error(\"Invalid locale '\".concat(locale, \"'\"));\n}\nvar locales = exports.locales = Object.keys(phones);",
|
|
32
|
-
"!function(t,e){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=e():\"function\"==typeof define&&define.amd?define(e):(t=\"undefined\"!=typeof globalThis?globalThis:t||self).dayjs=e()}(this,(function(){\"use strict\";var t=1e3,e=6e4,n=36e5,r=\"millisecond\",i=\"second\",s=\"minute\",u=\"hour\",a=\"day\",o=\"week\",c=\"month\",f=\"quarter\",h=\"year\",d=\"date\",l=\"Invalid Date\",$=/^(\\d{4})[-/]?(\\d{1,2})?[-/]?(\\d{0,2})[Tt\\s]*(\\d{1,2})?:?(\\d{1,2})?:?(\\d{1,2})?[.:]?(\\d+)?$/,y=/\\[([^\\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:\"en\",weekdays:\"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday\".split(\"_\"),months:\"January_February_March_April_May_June_July_August_September_October_November_December\".split(\"_\"),ordinal:function(t){var e=[\"th\",\"st\",\"nd\",\"rd\"],n=t%100;return\"[\"+t+(e[(n-20)%10]||e[n]||e[0])+\"]\"}},m=function(t,e,n){var r=String(t);return!r||r.length>=e?t:\"\"+Array(e+1-r.length).join(n)+t},v={s:m,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),r=Math.floor(n/60),i=n%60;return(e<=0?\"+\":\"-\")+m(r,2,\"0\")+\":\"+m(i,2,\"0\")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var r=12*(n.year()-e.year())+(n.month()-e.month()),i=e.clone().add(r,c),s=n-i<0,u=e.clone().add(r+(s?-1:1),c);return+(-(r+(n-i)/(s?i-u:u-i))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:c,y:h,w:o,d:a,D:d,h:u,m:s,s:i,ms:r,Q:f}[t]||String(t||\"\").toLowerCase().replace(/s$/,\"\")},u:function(t){return void 0===t}},g=\"en\",D={};D[g]=M;var p=\"$isDayjsObject\",S=function(t){return t instanceof _||!(!t||!t[p])},w=function t(e,n,r){var i;if(!e)return g;if(\"string\"==typeof e){var s=e.toLowerCase();D[s]&&(i=s),n&&(D[s]=n,i=s);var u=e.split(\"-\");if(!i&&u.length>1)return t(u[0])}else{var a=e.name;D[a]=e,i=a}return!r&&i&&(g=i),i||!r&&g},O=function(t,e){if(S(t))return t.clone();var n=\"object\"==typeof e?e:{};return n.date=t,n.args=arguments,new _(n)},b=v;b.l=w,b.i=S,b.w=function(t,e){return O(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var _=function(){function M(t){this.$L=w(t.locale,null,!0),this.parse(t),this.$x=this.$x||t.x||{},this[p]=!0}var m=M.prototype;return m.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(b.u(e))return new Date;if(e instanceof Date)return new Date(e);if(\"string\"==typeof e&&!/Z$/i.test(e)){var r=e.match($);if(r){var i=r[2]-1||0,s=(r[7]||\"0\").substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,s)}}return new Date(e)}(t),this.init()},m.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},m.$utils=function(){return b},m.isValid=function(){return!(this.$d.toString()===l)},m.isSame=function(t,e){var n=O(t);return this.startOf(e)<=n&&n<=this.endOf(e)},m.isAfter=function(t,e){return O(t)<this.startOf(e)},m.isBefore=function(t,e){return this.endOf(e)<O(t)},m.$g=function(t,e,n){return b.u(t)?this[e]:this.set(n,t)},m.unix=function(){return Math.floor(this.valueOf()/1e3)},m.valueOf=function(){return this.$d.getTime()},m.startOf=function(t,e){var n=this,r=!!b.u(e)||e,f=b.p(t),l=function(t,e){var i=b.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return r?i:i.endOf(a)},$=function(t,e){return b.w(n.toDate()[t].apply(n.toDate(\"s\"),(r?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},y=this.$W,M=this.$M,m=this.$D,v=\"set\"+(this.$u?\"UTC\":\"\");switch(f){case h:return r?l(1,0):l(31,11);case c:return r?l(1,M):l(0,M+1);case o:var g=this.$locale().weekStart||0,D=(y<g?y+7:y)-g;return l(r?m-D:m+(6-D),M);case a:case d:return $(v+\"Hours\",0);case u:return $(v+\"Minutes\",1);case s:return $(v+\"Seconds\",2);case i:return $(v+\"Milliseconds\",3);default:return this.clone()}},m.endOf=function(t){return this.startOf(t,!1)},m.$set=function(t,e){var n,o=b.p(t),f=\"set\"+(this.$u?\"UTC\":\"\"),l=(n={},n[a]=f+\"Date\",n[d]=f+\"Date\",n[c]=f+\"Month\",n[h]=f+\"FullYear\",n[u]=f+\"Hours\",n[s]=f+\"Minutes\",n[i]=f+\"Seconds\",n[r]=f+\"Milliseconds\",n)[o],$=o===a?this.$D+(e-this.$W):e;if(o===c||o===h){var y=this.clone().set(d,1);y.$d[l]($),y.init(),this.$d=y.set(d,Math.min(this.$D,y.daysInMonth())).$d}else l&&this.$d[l]($);return this.init(),this},m.set=function(t,e){return this.clone().$set(t,e)},m.get=function(t){return this[b.p(t)]()},m.add=function(r,f){var d,l=this;r=Number(r);var $=b.p(f),y=function(t){var e=O(l);return b.w(e.date(e.date()+Math.round(t*r)),l)};if($===c)return this.set(c,this.$M+r);if($===h)return this.set(h,this.$y+r);if($===a)return y(1);if($===o)return y(7);var M=(d={},d[s]=e,d[u]=n,d[i]=t,d)[$]||1,m=this.$d.getTime()+r*M;return b.w(m,this)},m.subtract=function(t,e){return this.add(-1*t,e)},m.format=function(t){var e=this,n=this.$locale();if(!this.isValid())return n.invalidDate||l;var r=t||\"YYYY-MM-DDTHH:mm:ssZ\",i=b.z(this),s=this.$H,u=this.$m,a=this.$M,o=n.weekdays,c=n.months,f=n.meridiem,h=function(t,n,i,s){return t&&(t[n]||t(e,r))||i[n].slice(0,s)},d=function(t){return b.s(s%12||12,t,\"0\")},$=f||function(t,e,n){var r=t<12?\"AM\":\"PM\";return n?r.toLowerCase():r};return r.replace(y,(function(t,r){return r||function(t){switch(t){case\"YY\":return String(e.$y).slice(-2);case\"YYYY\":return b.s(e.$y,4,\"0\");case\"M\":return a+1;case\"MM\":return b.s(a+1,2,\"0\");case\"MMM\":return h(n.monthsShort,a,c,3);case\"MMMM\":return h(c,a);case\"D\":return e.$D;case\"DD\":return b.s(e.$D,2,\"0\");case\"d\":return String(e.$W);case\"dd\":return h(n.weekdaysMin,e.$W,o,2);case\"ddd\":return h(n.weekdaysShort,e.$W,o,3);case\"dddd\":return o[e.$W];case\"H\":return String(s);case\"HH\":return b.s(s,2,\"0\");case\"h\":return d(1);case\"hh\":return d(2);case\"a\":return $(s,u,!0);case\"A\":return $(s,u,!1);case\"m\":return String(u);case\"mm\":return b.s(u,2,\"0\");case\"s\":return String(e.$s);case\"ss\":return b.s(e.$s,2,\"0\");case\"SSS\":return b.s(e.$ms,3,\"0\");case\"Z\":return i}return null}(t)||i.replace(\":\",\"\")}))},m.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},m.diff=function(r,d,l){var $,y=this,M=b.p(d),m=O(r),v=(m.utcOffset()-this.utcOffset())*e,g=this-m,D=function(){return b.m(y,m)};switch(M){case h:$=D()/12;break;case c:$=D();break;case f:$=D()/3;break;case o:$=(g-v)/6048e5;break;case a:$=(g-v)/864e5;break;case u:$=g/n;break;case s:$=g/e;break;case i:$=g/t;break;default:$=g}return l?$:b.a($)},m.daysInMonth=function(){return this.endOf(c).$D},m.$locale=function(){return D[this.$L]},m.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),r=w(t,e,!0);return r&&(n.$L=r),n},m.clone=function(){return b.w(this.$d,this)},m.toDate=function(){return new Date(this.valueOf())},m.toJSON=function(){return this.isValid()?this.toISOString():null},m.toISOString=function(){return this.$d.toISOString()},m.toString=function(){return this.$d.toUTCString()},M}(),k=_.prototype;return O.prototype=k,[[\"$ms\",r],[\"$s\",i],[\"$m\",s],[\"$H\",u],[\"$W\",a],[\"$M\",c],[\"$y\",h],[\"$D\",d]].forEach((function(t){k[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),O.extend=function(t,e){return t.$i||(t(e,_,O),t.$i=!0),O},O.locale=w,O.isDayjs=S,O.unix=function(t){return O(1e3*t)},O.en=D[g],O.Ls=D,O.p={},O}));",
|
|
33
|
-
"!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrAfter=t()}(this,(function(){\"use strict\";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}));",
|
|
34
|
-
"!function(e,i){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=i():\"function\"==typeof define&&define.amd?define(i):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_isSameOrBefore=i()}(this,(function(){\"use strict\";return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)}}}));",
|
|
35
|
-
"!function(e,t){\"object\"==typeof exports&&\"undefined\"!=typeof module?module.exports=t():\"function\"==typeof define&&define.amd?define(t):(e=\"undefined\"!=typeof globalThis?globalThis:e||self).dayjs_plugin_customParseFormat=t()}(this,(function(){\"use strict\";var e={LTS:\"h:mm:ss A\",LT:\"h:mm A\",L:\"MM/DD/YYYY\",LL:\"MMMM D, YYYY\",LLL:\"MMMM D, YYYY h:mm A\",LLLL:\"dddd, MMMM D, YYYY h:mm A\"},t=/(\\[[^[]*\\])|([-_:/.,()\\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\\d/,r=/\\d\\d/,i=/\\d\\d?/,o=/\\d*[^-_:/,()\\s\\d]+/,s={},a=function(e){return(e=+e)+(e>68?1900:2e3)};var f=function(e){return function(t){this[e]=+t}},h=[/[+-]\\d\\d:?(\\d\\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if(\"Z\"===e)return 0;var t=e.match(/([+-]|\\d\\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:\"+\"===t[0]?-n:n}(e)}],u=function(e){var t=s[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=s.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?\"pm\":\"PM\");return n},c={A:[o,function(e){this.afternoon=d(e,!1)}],a:[o,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*+e}],SS:[r,function(e){this.milliseconds=10*+e}],SSS:[/\\d{3}/,function(e){this.milliseconds=+e}],s:[i,f(\"seconds\")],ss:[i,f(\"seconds\")],m:[i,f(\"minutes\")],mm:[i,f(\"minutes\")],H:[i,f(\"hours\")],h:[i,f(\"hours\")],HH:[i,f(\"hours\")],hh:[i,f(\"hours\")],D:[i,f(\"day\")],DD:[r,f(\"day\")],Do:[o,function(e){var t=s.ordinal,n=e.match(/\\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\\[|\\]/g,\"\")===e&&(this.day=r)}],w:[i,f(\"week\")],ww:[r,f(\"week\")],M:[i,f(\"month\")],MM:[r,f(\"month\")],MMM:[o,function(e){var t=u(\"months\"),n=(u(\"monthsShort\")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=u(\"months\").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\\d+/,f(\"year\")],YY:[r,function(e){this.year=a(e)}],YYYY:[/\\d{4}/,f(\"year\")],Z:h,ZZ:h};function l(n){var r,i;r=n,i=s&&s.formats;for(var o=(n=r.replace(/(\\[[^\\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var o=r&&r.toUpperCase();return n||i[r]||e[r]||i[o].replace(/(\\[[^\\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),a=o.length,f=0;f<a;f+=1){var h=o[f],u=c[h],d=u&&u[0],l=u&&u[1];o[f]=l?{regex:d,parser:l}:h.replace(/^\\[|\\]$/g,\"\")}return function(e){for(var t={},n=0,r=0;n<a;n+=1){var i=o[n];if(\"string\"==typeof i)r+=i.length;else{var s=i.regex,f=i.parser,h=e.slice(r),u=s.exec(h)[0];f.call(t,u),e=e.replace(u,\"\")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,o=e.args;this.$u=r;var a=o[1];if(\"string\"==typeof a){var f=!0===o[2],h=!0===o[3],u=f||h,d=o[2];h&&(d=o[2]),s=this.$locale(),!f&&d&&(s=n.Ls[d]),this.$d=function(e,t,n,r){try{if([\"x\",\"X\"].indexOf(t)>-1)return new Date((\"X\"===t?1e3:1)*e);var i=l(t)(e),o=i.year,s=i.month,a=i.day,f=i.hours,h=i.minutes,u=i.seconds,d=i.milliseconds,c=i.zone,m=i.week,M=new Date,Y=a||(o||s?1:M.getDate()),p=o||M.getFullYear(),v=0;o&&!s||(v=s>0?s-1:M.getMonth());var D,w=f||0,g=h||0,y=u||0,L=d||0;return c?new Date(Date.UTC(p,v,Y,w,g,y,L+60*c.offset*1e3)):n?new Date(Date.UTC(p,v,Y,w,g,y,L)):(D=new Date(p,v,Y,w,g,y,L),m&&(D=r(D).week(m).toDate()),D)}catch(e){return new Date(\"\")}}(t,a,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(a)&&(this.$d=new Date(\"\")),s={}}else if(a instanceof Array)for(var c=a.length,m=1;m<=c;m+=1){o[1]=a[m-1];var M=n.apply(this,o);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}m===c&&(this.$d=new Date(\"\"))}else i.call(this,e)}}}));",
|
|
36
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = escape;\nvar _assertString = _interopRequireDefault(require(\"./util/assertString\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nfunction escape(str) {\n (0, _assertString.default)(str);\n return str.replace(/&/g, '&').replace(/\"/g, '"').replace(/'/g, ''').replace(/</g, '<').replace(/>/g, '>').replace(/\\//g, '/').replace(/\\\\/g, '\').replace(/`/g, '`');\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
37
|
-
"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = normalizeEmail;\nvar _merge = _interopRequireDefault(require(\"./util/merge\"));\nfunction _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }\nvar default_normalize_email_options = {\n // The following options apply to all email addresses\n // Lowercases the local part of the email address.\n // Please note this may violate RFC 5321 as per http://stackoverflow.com/a/9808332/192024).\n // The domain is always lowercased, as per RFC 1035\n all_lowercase: true,\n // The following conversions are specific to GMail\n // Lowercases the local part of the GMail address (known to be case-insensitive)\n gmail_lowercase: true,\n // Removes dots from the local part of the email address, as that's ignored by GMail\n gmail_remove_dots: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n gmail_remove_subaddress: true,\n // Conversts the googlemail.com domain to gmail.com\n gmail_convert_googlemaildotcom: true,\n // The following conversions are specific to Outlook.com / Windows Live / Hotmail\n // Lowercases the local part of the Outlook.com address (known to be case-insensitive)\n outlookdotcom_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n outlookdotcom_remove_subaddress: true,\n // The following conversions are specific to Yahoo\n // Lowercases the local part of the Yahoo address (known to be case-insensitive)\n yahoo_lowercase: true,\n // Removes the subaddress (e.g. \"-foo\") from the email address\n yahoo_remove_subaddress: true,\n // The following conversions are specific to Yandex\n // Lowercases the local part of the Yandex address (known to be case-insensitive)\n yandex_lowercase: true,\n // The following conversions are specific to iCloud\n // Lowercases the local part of the iCloud address (known to be case-insensitive)\n icloud_lowercase: true,\n // Removes the subaddress (e.g. \"+foo\") from the email address\n icloud_remove_subaddress: true\n};\n\n// List of domains used by iCloud\nvar icloud_domains = ['icloud.com', 'me.com'];\n\n// List of domains used by Outlook.com and its predecessors\n// This list is likely incomplete.\n// Partial reference:\n// https://blogs.office.com/2013/04/17/outlook-com-gets-two-step-verification-sign-in-by-alias-and-new-international-domains/\nvar outlookdotcom_domains = ['hotmail.at', 'hotmail.be', 'hotmail.ca', 'hotmail.cl', 'hotmail.co.il', 'hotmail.co.nz', 'hotmail.co.th', 'hotmail.co.uk', 'hotmail.com', 'hotmail.com.ar', 'hotmail.com.au', 'hotmail.com.br', 'hotmail.com.gr', 'hotmail.com.mx', 'hotmail.com.pe', 'hotmail.com.tr', 'hotmail.com.vn', 'hotmail.cz', 'hotmail.de', 'hotmail.dk', 'hotmail.es', 'hotmail.fr', 'hotmail.hu', 'hotmail.id', 'hotmail.ie', 'hotmail.in', 'hotmail.it', 'hotmail.jp', 'hotmail.kr', 'hotmail.lv', 'hotmail.my', 'hotmail.ph', 'hotmail.pt', 'hotmail.sa', 'hotmail.sg', 'hotmail.sk', 'live.be', 'live.co.uk', 'live.com', 'live.com.ar', 'live.com.mx', 'live.de', 'live.es', 'live.eu', 'live.fr', 'live.it', 'live.nl', 'msn.com', 'outlook.at', 'outlook.be', 'outlook.cl', 'outlook.co.il', 'outlook.co.nz', 'outlook.co.th', 'outlook.com', 'outlook.com.ar', 'outlook.com.au', 'outlook.com.br', 'outlook.com.gr', 'outlook.com.pe', 'outlook.com.tr', 'outlook.com.vn', 'outlook.cz', 'outlook.de', 'outlook.dk', 'outlook.es', 'outlook.fr', 'outlook.hu', 'outlook.id', 'outlook.ie', 'outlook.in', 'outlook.it', 'outlook.jp', 'outlook.kr', 'outlook.lv', 'outlook.my', 'outlook.ph', 'outlook.pt', 'outlook.sa', 'outlook.sg', 'outlook.sk', 'passport.com'];\n\n// List of domains used by Yahoo Mail\n// This list is likely incomplete\nvar yahoo_domains = ['rocketmail.com', 'yahoo.ca', 'yahoo.co.uk', 'yahoo.com', 'yahoo.de', 'yahoo.fr', 'yahoo.in', 'yahoo.it', 'ymail.com'];\n\n// List of domains used by yandex.ru\nvar yandex_domains = ['yandex.ru', 'yandex.ua', 'yandex.kz', 'yandex.com', 'yandex.by', 'ya.ru'];\n\n// replace single dots, but not multiple consecutive dots\nfunction dotsReplacer(match) {\n if (match.length > 1) {\n return match;\n }\n return '';\n}\nfunction normalizeEmail(email, options) {\n options = (0, _merge.default)(options, default_normalize_email_options);\n var raw_parts = email.split('@');\n var domain = raw_parts.pop();\n var user = raw_parts.join('@');\n var parts = [user, domain];\n\n // The domain is always lowercased, as it's case-insensitive per RFC 1035\n parts[1] = parts[1].toLowerCase();\n if (parts[1] === 'gmail.com' || parts[1] === 'googlemail.com') {\n // Address is GMail\n if (options.gmail_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (options.gmail_remove_dots) {\n // this does not replace consecutive dots like example..email@gmail.com\n parts[0] = parts[0].replace(/\\.+/g, dotsReplacer);\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.gmail_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n parts[1] = options.gmail_convert_googlemaildotcom ? 'gmail.com' : parts[1];\n } else if (icloud_domains.indexOf(parts[1]) >= 0) {\n // Address is iCloud\n if (options.icloud_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.icloud_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (outlookdotcom_domains.indexOf(parts[1]) >= 0) {\n // Address is Outlook.com\n if (options.outlookdotcom_remove_subaddress) {\n parts[0] = parts[0].split('+')[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.outlookdotcom_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yahoo_domains.indexOf(parts[1]) >= 0) {\n // Address is Yahoo\n if (options.yahoo_remove_subaddress) {\n var components = parts[0].split('-');\n parts[0] = components.length > 1 ? components.slice(0, -1).join('-') : components[0];\n }\n if (!parts[0].length) {\n return false;\n }\n if (options.all_lowercase || options.yahoo_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n } else if (yandex_domains.indexOf(parts[1]) >= 0) {\n if (options.all_lowercase || options.yandex_lowercase) {\n parts[0] = parts[0].toLowerCase();\n }\n parts[1] = 'yandex.ru'; // all yandex domains are equal, 1st preferred\n } else if (options.all_lowercase) {\n // Any other address\n parts[0] = parts[0].toLowerCase();\n }\n return parts.join('@');\n}\nmodule.exports = exports.default;\nmodule.exports.default = exports.default;",
|
|
38
|
-
"const LogLevels = {\n silent: Number.NEGATIVE_INFINITY,\n fatal: 0,\n error: 0,\n warn: 1,\n log: 2,\n info: 3,\n success: 3,\n fail: 3,\n ready: 3,\n start: 3,\n box: 3,\n debug: 4,\n trace: 5,\n verbose: Number.POSITIVE_INFINITY\n};\nconst LogTypes = {\n // Silent\n silent: {\n level: -1\n },\n // Level 0\n fatal: {\n level: LogLevels.fatal\n },\n error: {\n level: LogLevels.error\n },\n // Level 1\n warn: {\n level: LogLevels.warn\n },\n // Level 2\n log: {\n level: LogLevels.log\n },\n // Level 3\n info: {\n level: LogLevels.info\n },\n success: {\n level: LogLevels.success\n },\n fail: {\n level: LogLevels.fail\n },\n ready: {\n level: LogLevels.info\n },\n start: {\n level: LogLevels.info\n },\n box: {\n level: LogLevels.info\n },\n // Level 4\n debug: {\n level: LogLevels.debug\n },\n // Level 5\n trace: {\n level: LogLevels.trace\n },\n // Verbose\n verbose: {\n level: LogLevels.verbose\n }\n};\n\nfunction isObject(value) {\n return value !== null && typeof value === \"object\";\n}\nfunction _defu(baseObject, defaults, namespace = \".\", merger) {\n if (!isObject(defaults)) {\n return _defu(baseObject, {}, namespace, merger);\n }\n const object = Object.assign({}, defaults);\n for (const key in baseObject) {\n if (key === \"__proto__\" || key === \"constructor\") {\n continue;\n }\n const value = baseObject[key];\n if (value === null || value === void 0) {\n continue;\n }\n if (merger && merger(object, key, value, namespace)) {\n continue;\n }\n if (Array.isArray(value) && Array.isArray(object[key])) {\n object[key] = [...value, ...object[key]];\n } else if (isObject(value) && isObject(object[key])) {\n object[key] = _defu(\n value,\n object[key],\n (namespace ? `${namespace}.` : \"\") + key.toString(),\n merger\n );\n } else {\n object[key] = value;\n }\n }\n return object;\n}\nfunction createDefu(merger) {\n return (...arguments_) => (\n // eslint-disable-next-line unicorn/no-array-reduce\n arguments_.reduce((p, c) => _defu(p, c, \"\", merger), {})\n );\n}\nconst defu = createDefu();\n\nfunction isPlainObject(obj) {\n return Object.prototype.toString.call(obj) === \"[object Object]\";\n}\nfunction isLogObj(arg) {\n if (!isPlainObject(arg)) {\n return false;\n }\n if (!arg.message && !arg.args) {\n return false;\n }\n if (arg.stack) {\n return false;\n }\n return true;\n}\n\nlet paused = false;\nconst queue = [];\nclass Consola {\n constructor(options = {}) {\n const types = options.types || LogTypes;\n this.options = defu(\n {\n ...options,\n defaults: { ...options.defaults },\n level: _normalizeLogLevel(options.level, types),\n reporters: [...options.reporters || []]\n },\n {\n types: LogTypes,\n throttle: 1e3,\n throttleMin: 5,\n formatOptions: {\n date: true,\n colors: false,\n compact: true\n }\n }\n );\n for (const type in types) {\n const defaults = {\n type,\n ...this.options.defaults,\n ...types[type]\n };\n this[type] = this._wrapLogFn(defaults);\n this[type].raw = this._wrapLogFn(\n defaults,\n true\n );\n }\n if (this.options.mockFn) {\n this.mockTypes();\n }\n this._lastLog = {};\n }\n get level() {\n return this.options.level;\n }\n set level(level) {\n this.options.level = _normalizeLogLevel(\n level,\n this.options.types,\n this.options.level\n );\n }\n prompt(message, opts) {\n if (!this.options.prompt) {\n throw new Error(\"prompt is not supported!\");\n }\n return this.options.prompt(message, opts);\n }\n create(options) {\n const instance = new Consola({\n ...this.options,\n ...options\n });\n if (this._mockFn) {\n instance.mockTypes(this._mockFn);\n }\n return instance;\n }\n withDefaults(defaults) {\n return this.create({\n ...this.options,\n defaults: {\n ...this.options.defaults,\n ...defaults\n }\n });\n }\n withTag(tag) {\n return this.withDefaults({\n tag: this.options.defaults.tag ? this.options.defaults.tag + \":\" + tag : tag\n });\n }\n addReporter(reporter) {\n this.options.reporters.push(reporter);\n return this;\n }\n removeReporter(reporter) {\n if (reporter) {\n const i = this.options.reporters.indexOf(reporter);\n if (i >= 0) {\n return this.options.reporters.splice(i, 1);\n }\n } else {\n this.options.reporters.splice(0);\n }\n return this;\n }\n setReporters(reporters) {\n this.options.reporters = Array.isArray(reporters) ? reporters : [reporters];\n return this;\n }\n wrapAll() {\n this.wrapConsole();\n this.wrapStd();\n }\n restoreAll() {\n this.restoreConsole();\n this.restoreStd();\n }\n wrapConsole() {\n for (const type in this.options.types) {\n if (!console[\"__\" + type]) {\n console[\"__\" + type] = console[type];\n }\n console[type] = this[type].raw;\n }\n }\n restoreConsole() {\n for (const type in this.options.types) {\n if (console[\"__\" + type]) {\n console[type] = console[\"__\" + type];\n delete console[\"__\" + type];\n }\n }\n }\n wrapStd() {\n this._wrapStream(this.options.stdout, \"log\");\n this._wrapStream(this.options.stderr, \"log\");\n }\n _wrapStream(stream, type) {\n if (!stream) {\n return;\n }\n if (!stream.__write) {\n stream.__write = stream.write;\n }\n stream.write = (data) => {\n this[type].raw(String(data).trim());\n };\n }\n restoreStd() {\n this._restoreStream(this.options.stdout);\n this._restoreStream(this.options.stderr);\n }\n _restoreStream(stream) {\n if (!stream) {\n return;\n }\n if (stream.__write) {\n stream.write = stream.__write;\n delete stream.__write;\n }\n }\n pauseLogs() {\n paused = true;\n }\n resumeLogs() {\n paused = false;\n const _queue = queue.splice(0);\n for (const item of _queue) {\n item[0]._logFn(item[1], item[2]);\n }\n }\n mockTypes(mockFn) {\n const _mockFn = mockFn || this.options.mockFn;\n this._mockFn = _mockFn;\n if (typeof _mockFn !== \"function\") {\n return;\n }\n for (const type in this.options.types) {\n this[type] = _mockFn(type, this.options.types[type]) || this[type];\n this[type].raw = this[type];\n }\n }\n _wrapLogFn(defaults, isRaw) {\n return (...args) => {\n if (paused) {\n queue.push([this, defaults, args, isRaw]);\n return;\n }\n return this._logFn(defaults, args, isRaw);\n };\n }\n _logFn(defaults, args, isRaw) {\n if ((defaults.level || 0) > this.level) {\n return false;\n }\n const logObj = {\n date: /* @__PURE__ */ new Date(),\n args: [],\n ...defaults,\n level: _normalizeLogLevel(defaults.level, this.options.types)\n };\n if (!isRaw && args.length === 1 && isLogObj(args[0])) {\n Object.assign(logObj, args[0]);\n } else {\n logObj.args = [...args];\n }\n if (logObj.message) {\n logObj.args.unshift(logObj.message);\n delete logObj.message;\n }\n if (logObj.additional) {\n if (!Array.isArray(logObj.additional)) {\n logObj.additional = logObj.additional.split(\"\\n\");\n }\n logObj.args.push(\"\\n\" + logObj.additional.join(\"\\n\"));\n delete logObj.additional;\n }\n logObj.type = typeof logObj.type === \"string\" ? logObj.type.toLowerCase() : \"log\";\n logObj.tag = typeof logObj.tag === \"string\" ? logObj.tag : \"\";\n const resolveLog = (newLog = false) => {\n const repeated = (this._lastLog.count || 0) - this.options.throttleMin;\n if (this._lastLog.object && repeated > 0) {\n const args2 = [...this._lastLog.object.args];\n if (repeated > 1) {\n args2.push(`(repeated ${repeated} times)`);\n }\n this._log({ ...this._lastLog.object, args: args2 });\n this._lastLog.count = 1;\n }\n if (newLog) {\n this._lastLog.object = logObj;\n this._log(logObj);\n }\n };\n clearTimeout(this._lastLog.timeout);\n const diffTime = this._lastLog.time && logObj.date ? logObj.date.getTime() - this._lastLog.time.getTime() : 0;\n this._lastLog.time = logObj.date;\n if (diffTime < this.options.throttle) {\n try {\n const serializedLog = JSON.stringify([\n logObj.type,\n logObj.tag,\n logObj.args\n ]);\n const isSameLog = this._lastLog.serialized === serializedLog;\n this._lastLog.serialized = serializedLog;\n if (isSameLog) {\n this._lastLog.count = (this._lastLog.count || 0) + 1;\n if (this._lastLog.count > this.options.throttleMin) {\n this._lastLog.timeout = setTimeout(\n resolveLog,\n this.options.throttle\n );\n return;\n }\n }\n } catch {\n }\n }\n resolveLog(true);\n }\n _log(logObj) {\n for (const reporter of this.options.reporters) {\n reporter.log(logObj, {\n options: this.options\n });\n }\n }\n}\nfunction _normalizeLogLevel(input, types = {}, defaultLevel = 3) {\n if (input === void 0) {\n return defaultLevel;\n }\n if (typeof input === \"number\") {\n return input;\n }\n if (types[input] && types[input].level !== void 0) {\n return types[input].level;\n }\n return defaultLevel;\n}\nConsola.prototype.add = Consola.prototype.addReporter;\nConsola.prototype.remove = Consola.prototype.removeReporter;\nConsola.prototype.clear = Consola.prototype.removeReporter;\nConsola.prototype.withScope = Consola.prototype.withTag;\nConsola.prototype.mock = Consola.prototype.mockTypes;\nConsola.prototype.pause = Consola.prototype.pauseLogs;\nConsola.prototype.resume = Consola.prototype.resumeLogs;\nfunction createConsola(options = {}) {\n return new Consola(options);\n}\n\nexport { Consola, LogLevels, LogTypes, createConsola };\n",
|
|
39
|
-
"import { formatWithOptions } from 'node:util';\nimport { sep } from 'node:path';\n\nfunction parseStack(stack) {\n const cwd = process.cwd() + sep;\n const lines = stack.split(\"\\n\").splice(1).map((l) => l.trim().replace(\"file://\", \"\").replace(cwd, \"\"));\n return lines;\n}\n\nfunction writeStream(data, stream) {\n const write = stream.__write || stream.write;\n return write.call(stream, data);\n}\n\nconst bracket = (x) => x ? `[${x}]` : \"\";\nclass BasicReporter {\n formatStack(stack, opts) {\n return \" \" + parseStack(stack).join(\"\\n \");\n }\n formatArgs(args, opts) {\n const _args = args.map((arg) => {\n if (arg && typeof arg.stack === \"string\") {\n return arg.message + \"\\n\" + this.formatStack(arg.stack, opts);\n }\n return arg;\n });\n return formatWithOptions(opts, ..._args);\n }\n formatDate(date, opts) {\n return opts.date ? date.toLocaleTimeString() : \"\";\n }\n filterAndJoin(arr) {\n return arr.filter(Boolean).join(\" \");\n }\n formatLogObj(logObj, opts) {\n const message = this.formatArgs(logObj.args, opts);\n if (logObj.type === \"box\") {\n return \"\\n\" + [\n bracket(logObj.tag),\n logObj.title && logObj.title,\n ...message.split(\"\\n\")\n ].filter(Boolean).map((l) => \" > \" + l).join(\"\\n\") + \"\\n\";\n }\n return this.filterAndJoin([\n bracket(logObj.type),\n bracket(logObj.tag),\n message\n ]);\n }\n log(logObj, ctx) {\n const line = this.formatLogObj(logObj, {\n columns: ctx.options.stdout.columns || 0,\n ...ctx.options.formatOptions\n });\n return writeStream(\n line + \"\\n\",\n logObj.level < 2 ? ctx.options.stderr || process.stderr : ctx.options.stdout || process.stdout\n );\n }\n}\n\nexport { BasicReporter as B, parseStack as p };\n",
|
|
40
|
-
"import * as tty from 'node:tty';\n\nconst {\n env = {},\n argv = [],\n platform = \"\"\n} = typeof process === \"undefined\" ? {} : process;\nconst isDisabled = \"NO_COLOR\" in env || argv.includes(\"--no-color\");\nconst isForced = \"FORCE_COLOR\" in env || argv.includes(\"--color\");\nconst isWindows = platform === \"win32\";\nconst isDumbTerminal = env.TERM === \"dumb\";\nconst isCompatibleTerminal = tty && tty.isatty && tty.isatty(1) && env.TERM && !isDumbTerminal;\nconst isCI = \"CI\" in env && (\"GITHUB_ACTIONS\" in env || \"GITLAB_CI\" in env || \"CIRCLECI\" in env);\nconst isColorSupported = !isDisabled && (isForced || isWindows && !isDumbTerminal || isCompatibleTerminal || isCI);\nfunction replaceClose(index, string, close, replace, head = string.slice(0, Math.max(0, index)) + replace, tail = string.slice(Math.max(0, index + close.length)), next = tail.indexOf(close)) {\n return head + (next < 0 ? tail : replaceClose(next, tail, close, replace));\n}\nfunction clearBleed(index, string, open, close, replace) {\n return index < 0 ? open + string + close : open + replaceClose(index, string, close, replace) + close;\n}\nfunction filterEmpty(open, close, replace = open, at = open.length + 1) {\n return (string) => string || !(string === \"\" || string === void 0) ? clearBleed(\n (\"\" + string).indexOf(close, at),\n string,\n open,\n close,\n replace\n ) : \"\";\n}\nfunction init(open, close, replace) {\n return filterEmpty(`\\x1B[${open}m`, `\\x1B[${close}m`, replace);\n}\nconst colorDefs = {\n reset: init(0, 0),\n bold: init(1, 22, \"\\x1B[22m\\x1B[1m\"),\n dim: init(2, 22, \"\\x1B[22m\\x1B[2m\"),\n italic: init(3, 23),\n underline: init(4, 24),\n inverse: init(7, 27),\n hidden: init(8, 28),\n strikethrough: init(9, 29),\n black: init(30, 39),\n red: init(31, 39),\n green: init(32, 39),\n yellow: init(33, 39),\n blue: init(34, 39),\n magenta: init(35, 39),\n cyan: init(36, 39),\n white: init(37, 39),\n gray: init(90, 39),\n bgBlack: init(40, 49),\n bgRed: init(41, 49),\n bgGreen: init(42, 49),\n bgYellow: init(43, 49),\n bgBlue: init(44, 49),\n bgMagenta: init(45, 49),\n bgCyan: init(46, 49),\n bgWhite: init(47, 49),\n blackBright: init(90, 39),\n redBright: init(91, 39),\n greenBright: init(92, 39),\n yellowBright: init(93, 39),\n blueBright: init(94, 39),\n magentaBright: init(95, 39),\n cyanBright: init(96, 39),\n whiteBright: init(97, 39),\n bgBlackBright: init(100, 49),\n bgRedBright: init(101, 49),\n bgGreenBright: init(102, 49),\n bgYellowBright: init(103, 49),\n bgBlueBright: init(104, 49),\n bgMagentaBright: init(105, 49),\n bgCyanBright: init(106, 49),\n bgWhiteBright: init(107, 49)\n};\nfunction createColors(useColor = isColorSupported) {\n return useColor ? colorDefs : Object.fromEntries(Object.keys(colorDefs).map((key) => [key, String]));\n}\nconst colors = createColors();\nfunction getColor(color, fallback = \"reset\") {\n return colors[color] || colors[fallback];\n}\nfunction colorize(color, text) {\n return getColor(color)(text);\n}\n\nconst ansiRegex = [\n \"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\n \"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-nq-uy=><~]))\"\n].join(\"|\");\nfunction stripAnsi(text) {\n return text.replace(new RegExp(ansiRegex, \"g\"), \"\");\n}\nfunction centerAlign(str, len, space = \" \") {\n const free = len - str.length;\n if (free <= 0) {\n return str;\n }\n const freeLeft = Math.floor(free / 2);\n let _str = \"\";\n for (let i = 0; i < len; i++) {\n _str += i < freeLeft || i >= freeLeft + str.length ? space : str[i - freeLeft];\n }\n return _str;\n}\nfunction rightAlign(str, len, space = \" \") {\n const free = len - str.length;\n if (free <= 0) {\n return str;\n }\n let _str = \"\";\n for (let i = 0; i < len; i++) {\n _str += i < free ? space : str[i - free];\n }\n return _str;\n}\nfunction leftAlign(str, len, space = \" \") {\n let _str = \"\";\n for (let i = 0; i < len; i++) {\n _str += i < str.length ? str[i] : space;\n }\n return _str;\n}\nfunction align(alignment, str, len, space = \" \") {\n switch (alignment) {\n case \"left\": {\n return leftAlign(str, len, space);\n }\n case \"right\": {\n return rightAlign(str, len, space);\n }\n case \"center\": {\n return centerAlign(str, len, space);\n }\n default: {\n return str;\n }\n }\n}\n\nconst boxStylePresets = {\n solid: {\n tl: \"\\u250C\",\n tr: \"\\u2510\",\n bl: \"\\u2514\",\n br: \"\\u2518\",\n h: \"\\u2500\",\n v: \"\\u2502\"\n },\n double: {\n tl: \"\\u2554\",\n tr: \"\\u2557\",\n bl: \"\\u255A\",\n br: \"\\u255D\",\n h: \"\\u2550\",\n v: \"\\u2551\"\n },\n doubleSingle: {\n tl: \"\\u2553\",\n tr: \"\\u2556\",\n bl: \"\\u2559\",\n br: \"\\u255C\",\n h: \"\\u2500\",\n v: \"\\u2551\"\n },\n doubleSingleRounded: {\n tl: \"\\u256D\",\n tr: \"\\u256E\",\n bl: \"\\u2570\",\n br: \"\\u256F\",\n h: \"\\u2500\",\n v: \"\\u2551\"\n },\n singleThick: {\n tl: \"\\u250F\",\n tr: \"\\u2513\",\n bl: \"\\u2517\",\n br: \"\\u251B\",\n h: \"\\u2501\",\n v: \"\\u2503\"\n },\n singleDouble: {\n tl: \"\\u2552\",\n tr: \"\\u2555\",\n bl: \"\\u2558\",\n br: \"\\u255B\",\n h: \"\\u2550\",\n v: \"\\u2502\"\n },\n singleDoubleRounded: {\n tl: \"\\u256D\",\n tr: \"\\u256E\",\n bl: \"\\u2570\",\n br: \"\\u256F\",\n h: \"\\u2550\",\n v: \"\\u2502\"\n },\n rounded: {\n tl: \"\\u256D\",\n tr: \"\\u256E\",\n bl: \"\\u2570\",\n br: \"\\u256F\",\n h: \"\\u2500\",\n v: \"\\u2502\"\n }\n};\nconst defaultStyle = {\n borderColor: \"white\",\n borderStyle: \"rounded\",\n valign: \"center\",\n padding: 2,\n marginLeft: 1,\n marginTop: 1,\n marginBottom: 1\n};\nfunction box(text, _opts = {}) {\n const opts = {\n ..._opts,\n style: {\n ...defaultStyle,\n ..._opts.style\n }\n };\n const textLines = text.split(\"\\n\");\n const boxLines = [];\n const _color = getColor(opts.style.borderColor);\n const borderStyle = {\n ...typeof opts.style.borderStyle === \"string\" ? boxStylePresets[opts.style.borderStyle] || boxStylePresets.solid : opts.style.borderStyle\n };\n if (_color) {\n for (const key in borderStyle) {\n borderStyle[key] = _color(\n borderStyle[key]\n );\n }\n }\n const paddingOffset = opts.style.padding % 2 === 0 ? opts.style.padding : opts.style.padding + 1;\n const height = textLines.length + paddingOffset;\n const width = Math.max(...textLines.map((line) => line.length)) + paddingOffset;\n const widthOffset = width + paddingOffset;\n const leftSpace = opts.style.marginLeft > 0 ? \" \".repeat(opts.style.marginLeft) : \"\";\n if (opts.style.marginTop > 0) {\n boxLines.push(\"\".repeat(opts.style.marginTop));\n }\n if (opts.title) {\n const left = borderStyle.h.repeat(\n Math.floor((width - stripAnsi(opts.title).length) / 2)\n );\n const right = borderStyle.h.repeat(\n width - stripAnsi(opts.title).length - stripAnsi(left).length + paddingOffset\n );\n boxLines.push(\n `${leftSpace}${borderStyle.tl}${left}${opts.title}${right}${borderStyle.tr}`\n );\n } else {\n boxLines.push(\n `${leftSpace}${borderStyle.tl}${borderStyle.h.repeat(widthOffset)}${borderStyle.tr}`\n );\n }\n const valignOffset = opts.style.valign === \"center\" ? Math.floor((height - textLines.length) / 2) : opts.style.valign === \"top\" ? height - textLines.length - paddingOffset : height - textLines.length;\n for (let i = 0; i < height; i++) {\n if (i < valignOffset || i >= valignOffset + textLines.length) {\n boxLines.push(\n `${leftSpace}${borderStyle.v}${\" \".repeat(widthOffset)}${borderStyle.v}`\n );\n } else {\n const line = textLines[i - valignOffset];\n const left = \" \".repeat(paddingOffset);\n const right = \" \".repeat(width - stripAnsi(line).length);\n boxLines.push(\n `${leftSpace}${borderStyle.v}${left}${line}${right}${borderStyle.v}`\n );\n }\n }\n boxLines.push(\n `${leftSpace}${borderStyle.bl}${borderStyle.h.repeat(widthOffset)}${borderStyle.br}`\n );\n if (opts.style.marginBottom > 0) {\n boxLines.push(\"\".repeat(opts.style.marginBottom));\n }\n return boxLines.join(\"\\n\");\n}\n\nexport { align, box, centerAlign, colorize, colors, getColor, leftAlign, rightAlign, stripAnsi };\n",
|
|
41
|
-
"import { stdin, stdout } from 'node:process';\nimport f from 'node:readline';\nimport { WriteStream } from 'node:tty';\nimport { g as getDefaultExportFromCjs, i as isUnicodeSupported } from '../shared/consola.36c0034f.mjs';\nimport require$$0 from 'tty';\nimport { colors } from '../utils.mjs';\nimport '../core.mjs';\nimport '../shared/consola.06ad8a64.mjs';\nimport 'node:util';\nimport 'node:path';\n\nconst ESC = '\\x1B';\nconst CSI = `${ESC}[`;\nconst beep = '\\u0007';\n\nconst cursor = {\n to(x, y) {\n if (!y) return `${CSI}${x + 1}G`;\n return `${CSI}${y + 1};${x + 1}H`;\n },\n move(x, y) {\n let ret = '';\n\n if (x < 0) ret += `${CSI}${-x}D`;\n else if (x > 0) ret += `${CSI}${x}C`;\n\n if (y < 0) ret += `${CSI}${-y}A`;\n else if (y > 0) ret += `${CSI}${y}B`;\n\n return ret;\n },\n up: (count = 1) => `${CSI}${count}A`,\n down: (count = 1) => `${CSI}${count}B`,\n forward: (count = 1) => `${CSI}${count}C`,\n backward: (count = 1) => `${CSI}${count}D`,\n nextLine: (count = 1) => `${CSI}E`.repeat(count),\n prevLine: (count = 1) => `${CSI}F`.repeat(count),\n left: `${CSI}G`,\n hide: `${CSI}?25l`,\n show: `${CSI}?25h`,\n save: `${ESC}7`,\n restore: `${ESC}8`\n};\n\nconst scroll = {\n up: (count = 1) => `${CSI}S`.repeat(count),\n down: (count = 1) => `${CSI}T`.repeat(count)\n};\n\nconst erase = {\n screen: `${CSI}2J`,\n up: (count = 1) => `${CSI}1J`.repeat(count),\n down: (count = 1) => `${CSI}J`.repeat(count),\n line: `${CSI}2K`,\n lineEnd: `${CSI}K`,\n lineStart: `${CSI}1K`,\n lines(count) {\n let clear = '';\n for (let i = 0; i < count; i++)\n clear += this.line + (i < count - 1 ? cursor.up() : '');\n if (count)\n clear += cursor.left;\n return clear;\n }\n};\n\nvar src = { cursor, scroll, erase, beep };\n\nvar picocolors = {exports: {}};\n\nlet tty = require$$0;\n\nlet isColorSupported =\n\t!(\"NO_COLOR\" in process.env || process.argv.includes(\"--no-color\")) &&\n\t(\"FORCE_COLOR\" in process.env ||\n\t\tprocess.argv.includes(\"--color\") ||\n\t\tprocess.platform === \"win32\" ||\n\t\t(tty.isatty(1) && process.env.TERM !== \"dumb\") ||\n\t\t\"CI\" in process.env);\n\nlet formatter =\n\t(open, close, replace = open) =>\n\tinput => {\n\t\tlet string = \"\" + input;\n\t\tlet index = string.indexOf(close, open.length);\n\t\treturn ~index\n\t\t\t? open + replaceClose(string, close, replace, index) + close\n\t\t\t: open + string + close\n\t};\n\nlet replaceClose = (string, close, replace, index) => {\n\tlet start = string.substring(0, index) + replace;\n\tlet end = string.substring(index + close.length);\n\tlet nextIndex = end.indexOf(close);\n\treturn ~nextIndex ? start + replaceClose(end, close, replace, nextIndex) : start + end\n};\n\nlet createColors = (enabled = isColorSupported) => ({\n\tisColorSupported: enabled,\n\treset: enabled ? s => `\\x1b[0m${s}\\x1b[0m` : String,\n\tbold: enabled ? formatter(\"\\x1b[1m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[1m\") : String,\n\tdim: enabled ? formatter(\"\\x1b[2m\", \"\\x1b[22m\", \"\\x1b[22m\\x1b[2m\") : String,\n\titalic: enabled ? formatter(\"\\x1b[3m\", \"\\x1b[23m\") : String,\n\tunderline: enabled ? formatter(\"\\x1b[4m\", \"\\x1b[24m\") : String,\n\tinverse: enabled ? formatter(\"\\x1b[7m\", \"\\x1b[27m\") : String,\n\thidden: enabled ? formatter(\"\\x1b[8m\", \"\\x1b[28m\") : String,\n\tstrikethrough: enabled ? formatter(\"\\x1b[9m\", \"\\x1b[29m\") : String,\n\tblack: enabled ? formatter(\"\\x1b[30m\", \"\\x1b[39m\") : String,\n\tred: enabled ? formatter(\"\\x1b[31m\", \"\\x1b[39m\") : String,\n\tgreen: enabled ? formatter(\"\\x1b[32m\", \"\\x1b[39m\") : String,\n\tyellow: enabled ? formatter(\"\\x1b[33m\", \"\\x1b[39m\") : String,\n\tblue: enabled ? formatter(\"\\x1b[34m\", \"\\x1b[39m\") : String,\n\tmagenta: enabled ? formatter(\"\\x1b[35m\", \"\\x1b[39m\") : String,\n\tcyan: enabled ? formatter(\"\\x1b[36m\", \"\\x1b[39m\") : String,\n\twhite: enabled ? formatter(\"\\x1b[37m\", \"\\x1b[39m\") : String,\n\tgray: enabled ? formatter(\"\\x1b[90m\", \"\\x1b[39m\") : String,\n\tbgBlack: enabled ? formatter(\"\\x1b[40m\", \"\\x1b[49m\") : String,\n\tbgRed: enabled ? formatter(\"\\x1b[41m\", \"\\x1b[49m\") : String,\n\tbgGreen: enabled ? formatter(\"\\x1b[42m\", \"\\x1b[49m\") : String,\n\tbgYellow: enabled ? formatter(\"\\x1b[43m\", \"\\x1b[49m\") : String,\n\tbgBlue: enabled ? formatter(\"\\x1b[44m\", \"\\x1b[49m\") : String,\n\tbgMagenta: enabled ? formatter(\"\\x1b[45m\", \"\\x1b[49m\") : String,\n\tbgCyan: enabled ? formatter(\"\\x1b[46m\", \"\\x1b[49m\") : String,\n\tbgWhite: enabled ? formatter(\"\\x1b[47m\", \"\\x1b[49m\") : String,\n});\n\npicocolors.exports = createColors();\npicocolors.exports.createColors = createColors;\n\nvar picocolorsExports = picocolors.exports;\nconst l = /*@__PURE__*/getDefaultExportFromCjs(picocolorsExports);\n\nfunction z({onlyFirst:t=!1}={}){const u=[\"[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)\",\"(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))\"].join(\"|\");return new RegExp(u,t?void 0:\"g\")}function $(t){if(typeof t!=\"string\")throw new TypeError(`Expected a \\`string\\`, got \\`${typeof t}\\``);return t.replace(z(),\"\")}var m={},G={get exports(){return m},set exports(t){m=t;}};(function(t){var u={};t.exports=u,u.eastAsianWidth=function(e){var s=e.charCodeAt(0),C=e.length==2?e.charCodeAt(1):0,D=s;return 55296<=s&&s<=56319&&56320<=C&&C<=57343&&(s&=1023,C&=1023,D=s<<10|C,D+=65536),D==12288||65281<=D&&D<=65376||65504<=D&&D<=65510?\"F\":D==8361||65377<=D&&D<=65470||65474<=D&&D<=65479||65482<=D&&D<=65487||65490<=D&&D<=65495||65498<=D&&D<=65500||65512<=D&&D<=65518?\"H\":4352<=D&&D<=4447||4515<=D&&D<=4519||4602<=D&&D<=4607||9001<=D&&D<=9002||11904<=D&&D<=11929||11931<=D&&D<=12019||12032<=D&&D<=12245||12272<=D&&D<=12283||12289<=D&&D<=12350||12353<=D&&D<=12438||12441<=D&&D<=12543||12549<=D&&D<=12589||12593<=D&&D<=12686||12688<=D&&D<=12730||12736<=D&&D<=12771||12784<=D&&D<=12830||12832<=D&&D<=12871||12880<=D&&D<=13054||13056<=D&&D<=19903||19968<=D&&D<=42124||42128<=D&&D<=42182||43360<=D&&D<=43388||44032<=D&&D<=55203||55216<=D&&D<=55238||55243<=D&&D<=55291||63744<=D&&D<=64255||65040<=D&&D<=65049||65072<=D&&D<=65106||65108<=D&&D<=65126||65128<=D&&D<=65131||110592<=D&&D<=110593||127488<=D&&D<=127490||127504<=D&&D<=127546||127552<=D&&D<=127560||127568<=D&&D<=127569||131072<=D&&D<=194367||177984<=D&&D<=196605||196608<=D&&D<=262141?\"W\":32<=D&&D<=126||162<=D&&D<=163||165<=D&&D<=166||D==172||D==175||10214<=D&&D<=10221||10629<=D&&D<=10630?\"Na\":D==161||D==164||167<=D&&D<=168||D==170||173<=D&&D<=174||176<=D&&D<=180||182<=D&&D<=186||188<=D&&D<=191||D==198||D==208||215<=D&&D<=216||222<=D&&D<=225||D==230||232<=D&&D<=234||236<=D&&D<=237||D==240||242<=D&&D<=243||247<=D&&D<=250||D==252||D==254||D==257||D==273||D==275||D==283||294<=D&&D<=295||D==299||305<=D&&D<=307||D==312||319<=D&&D<=322||D==324||328<=D&&D<=331||D==333||338<=D&&D<=339||358<=D&&D<=359||D==363||D==462||D==464||D==466||D==468||D==470||D==472||D==474||D==476||D==593||D==609||D==708||D==711||713<=D&&D<=715||D==717||D==720||728<=D&&D<=731||D==733||D==735||768<=D&&D<=879||913<=D&&D<=929||931<=D&&D<=937||945<=D&&D<=961||963<=D&&D<=969||D==1025||1040<=D&&D<=1103||D==1105||D==8208||8211<=D&&D<=8214||8216<=D&&D<=8217||8220<=D&&D<=8221||8224<=D&&D<=8226||8228<=D&&D<=8231||D==8240||8242<=D&&D<=8243||D==8245||D==8251||D==8254||D==8308||D==8319||8321<=D&&D<=8324||D==8364||D==8451||D==8453||D==8457||D==8467||D==8470||8481<=D&&D<=8482||D==8486||D==8491||8531<=D&&D<=8532||8539<=D&&D<=8542||8544<=D&&D<=8555||8560<=D&&D<=8569||D==8585||8592<=D&&D<=8601||8632<=D&&D<=8633||D==8658||D==8660||D==8679||D==8704||8706<=D&&D<=8707||8711<=D&&D<=8712||D==8715||D==8719||D==8721||D==8725||D==8730||8733<=D&&D<=8736||D==8739||D==8741||8743<=D&&D<=8748||D==8750||8756<=D&&D<=8759||8764<=D&&D<=8765||D==8776||D==8780||D==8786||8800<=D&&D<=8801||8804<=D&&D<=8807||8810<=D&&D<=8811||8814<=D&&D<=8815||8834<=D&&D<=8835||8838<=D&&D<=8839||D==8853||D==8857||D==8869||D==8895||D==8978||9312<=D&&D<=9449||9451<=D&&D<=9547||9552<=D&&D<=9587||9600<=D&&D<=9615||9618<=D&&D<=9621||9632<=D&&D<=9633||9635<=D&&D<=9641||9650<=D&&D<=9651||9654<=D&&D<=9655||9660<=D&&D<=9661||9664<=D&&D<=9665||9670<=D&&D<=9672||D==9675||9678<=D&&D<=9681||9698<=D&&D<=9701||D==9711||9733<=D&&D<=9734||D==9737||9742<=D&&D<=9743||9748<=D&&D<=9749||D==9756||D==9758||D==9792||D==9794||9824<=D&&D<=9825||9827<=D&&D<=9829||9831<=D&&D<=9834||9836<=D&&D<=9837||D==9839||9886<=D&&D<=9887||9918<=D&&D<=9919||9924<=D&&D<=9933||9935<=D&&D<=9953||D==9955||9960<=D&&D<=9983||D==10045||D==10071||10102<=D&&D<=10111||11093<=D&&D<=11097||12872<=D&&D<=12879||57344<=D&&D<=63743||65024<=D&&D<=65039||D==65533||127232<=D&&D<=127242||127248<=D&&D<=127277||127280<=D&&D<=127337||127344<=D&&D<=127386||917760<=D&&D<=917999||983040<=D&&D<=1048573||1048576<=D&&D<=1114109?\"A\":\"N\"},u.characterLength=function(e){var s=this.eastAsianWidth(e);return s==\"F\"||s==\"W\"||s==\"A\"?2:1};function F(e){return e.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\uD800-\\uDFFF]/g)||[]}u.length=function(e){for(var s=F(e),C=0,D=0;D<s.length;D++)C=C+this.characterLength(s[D]);return C},u.slice=function(e,s,C){textLen=u.length(e),s=s||0,C=C||1,s<0&&(s=textLen+s),C<0&&(C=textLen+C);for(var D=\"\",i=0,o=F(e),E=0;E<o.length;E++){var a=o[E],n=u.length(a);if(i>=s-(n==2?1:0))if(i+n<=C)D+=a;else break;i+=n;}return D};})(G);const K=m;var Y=function(){return /\\uD83C\\uDFF4\\uDB40\\uDC67\\uDB40\\uDC62(?:\\uDB40\\uDC77\\uDB40\\uDC6C\\uDB40\\uDC73|\\uDB40\\uDC73\\uDB40\\uDC63\\uDB40\\uDC74|\\uDB40\\uDC65\\uDB40\\uDC6E\\uDB40\\uDC67)\\uDB40\\uDC7F|(?:\\uD83E\\uDDD1\\uD83C\\uDFFF\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1|\\uD83D\\uDC69\\uD83C\\uDFFF\\u200D\\uD83E\\uDD1D\\u200D(?:\\uD83D[\\uDC68\\uDC69]))(?:\\uD83C[\\uDFFB-\\uDFFE])|(?:\\uD83E\\uDDD1\\uD83C\\uDFFE\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1|\\uD83D\\uDC69\\uD83C\\uDFFE\\u200D\\uD83E\\uDD1D\\u200D(?:\\uD83D[\\uDC68\\uDC69]))(?:\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])|(?:\\uD83E\\uDDD1\\uD83C\\uDFFD\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1|\\uD83D\\uDC69\\uD83C\\uDFFD\\u200D\\uD83E\\uDD1D\\u200D(?:\\uD83D[\\uDC68\\uDC69]))(?:\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])|(?:\\uD83E\\uDDD1\\uD83C\\uDFFC\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1|\\uD83D\\uDC69\\uD83C\\uDFFC\\u200D\\uD83E\\uDD1D\\u200D(?:\\uD83D[\\uDC68\\uDC69]))(?:\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])|(?:\\uD83E\\uDDD1\\uD83C\\uDFFB\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1|\\uD83D\\uDC69\\uD83C\\uDFFB\\u200D\\uD83E\\uDD1D\\u200D(?:\\uD83D[\\uDC68\\uDC69]))(?:\\uD83C[\\uDFFC-\\uDFFF])|\\uD83D\\uDC68(?:\\uD83C\\uDFFB(?:\\u200D(?:\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D\\uD83D\\uDC68(?:\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC68(?:\\uD83C[\\uDFFB-\\uDFFF]))|\\uD83E\\uDD1D\\u200D\\uD83D\\uDC68(?:\\uD83C[\\uDFFC-\\uDFFF])|[\\u2695\\u2696\\u2708]\\uFE0F|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]))?|(?:\\uD83C[\\uDFFC-\\uDFFF])\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D\\uD83D\\uDC68(?:\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC68(?:\\uD83C[\\uDFFB-\\uDFFF]))|\\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])|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\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\\uDF7C\\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\\uDFFF])|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\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\\uDF7C\\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\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|(?:\\uD83C\\uDFFF\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFE\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFD\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFC\\u200D[\\u2695\\u2696\\u2708]|\\u200D[\\u2695\\u2696\\u2708])\\uFE0F|\\u200D(?:(?:\\uD83D[\\uDC68\\uDC69])\\u200D(?:\\uD83D[\\uDC66\\uDC67])|\\uD83D[\\uDC66\\uDC67])|\\uD83C\\uDFFF|\\uD83C\\uDFFE|\\uD83C\\uDFFD|\\uD83C\\uDFFC)?|(?:\\uD83D\\uDC69(?:\\uD83C\\uDFFB\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D(?:\\uD83D[\\uDC68\\uDC69])|\\uD83D[\\uDC68\\uDC69])|(?:\\uD83C[\\uDFFC-\\uDFFF])\\u200D\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D(?:\\uD83D[\\uDC68\\uDC69])|\\uD83D[\\uDC68\\uDC69]))|\\uD83E\\uDDD1(?:\\uD83C[\\uDFFB-\\uDFFF])\\u200D\\uD83E\\uDD1D\\u200D\\uD83E\\uDDD1)(?:\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D(?:\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC67\\u200D(?:\\uD83D[\\uDC66\\uDC67]))|\\uD83D\\uDC69(?:\\u200D(?:\\u2764\\uFE0F\\u200D(?:\\uD83D\\uDC8B\\u200D(?:\\uD83D[\\uDC68\\uDC69])|\\uD83D[\\uDC68\\uDC69])|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C\\uDFFF\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE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\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C\\uDFFE\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C\\uDFFD\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C\\uDFFC\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C\\uDFFB\\u200D(?:\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]))|\\uD83D\\uDC69\\u200D\\uD83D\\uDC66\\u200D\\uD83D\\uDC66|\\uD83D\\uDC69\\u200D\\uD83D\\uDC69\\u200D(?:\\uD83D[\\uDC66\\uDC67])|\\uD83D\\uDC69\\u200D\\uD83D\\uDC67\\u200D(?:\\uD83D[\\uDC66\\uDC67])|(?:\\uD83D\\uDC41\\uFE0F\\u200D\\uD83D\\uDDE8|\\uD83E\\uDDD1(?:\\uD83C\\uDFFF\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFE\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFD\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFC\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFB\\u200D[\\u2695\\u2696\\u2708]|\\u200D[\\u2695\\u2696\\u2708])|\\uD83D\\uDC69(?:\\uD83C\\uDFFF\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFE\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFD\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFC\\u200D[\\u2695\\u2696\\u2708]|\\uD83C\\uDFFB\\u200D[\\u2695\\u2696\\u2708]|\\u200D[\\u2695\\u2696\\u2708])|\\uD83D\\uDE36\\u200D\\uD83C\\uDF2B|\\uD83C\\uDFF3\\uFE0F\\u200D\\u26A7|\\uD83D\\uDC3B\\u200D\\u2744|(?:(?:\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD-\\uDDCF\\uDDD4\\uDDD6-\\uDDDD])(?:\\uD83C[\\uDFFB-\\uDFFF])|\\uD83D\\uDC6F|\\uD83E[\\uDD3C\\uDDDE\\uDDDF])\\u200D[\\u2640\\u2642]|(?:\\u26F9|\\uD83C[\\uDFCB\\uDFCC]|\\uD83D\\uDD75)(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])\\u200D[\\u2640\\u2642]|\\uD83C\\uDFF4\\u200D\\u2620|(?:\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD-\\uDDCF\\uDDD4\\uDDD6-\\uDDDD])\\u200D[\\u2640\\u2642]|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u2600-\\u2604\\u260E\\u2611\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26B0\\u26B1\\u26C8\\u26CF\\u26D1\\u26D3\\u26E9\\u26F0\\u26F1\\u26F4\\u26F7\\u26F8\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u3030\\u303D\\u3297\\u3299]|\\uD83C[\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFDF\\uDFF5\\uDFF7]|\\uD83D[\\uDC3F\\uDCFD\\uDD49\\uDD4A\\uDD6F\\uDD70\\uDD73\\uDD76-\\uDD79\\uDD87\\uDD8A-\\uDD8D\\uDDA5\\uDDA8\\uDDB1\\uDDB2\\uDDBC\\uDDC2-\\uDDC4\\uDDD1-\\uDDD3\\uDDDC-\\uDD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\uDD0C\\uDD0F\\uDD18-\\uDD1C\\uDD1E\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5])(?:\\uD83C[\\uDFFB-\\uDFFF])|(?:[\\u261D\\u270C\\u270D]|\\uD83D[\\uDD74\\uDD90])(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])|[\\u270A\\u270B]|\\uD83C[\\uDF85\\uDFC2\\uDFC7]|\\uD83D[\\uDC08\\uDC15\\uDC3B\\uDC42\\uDC43\\uDC46-\\uDC50\\uDC66\\uDC67\\uDC6B-\\uDC6D\\uDC72\\uDC74-\\uDC76\\uDC78\\uDC7C\\uDC83\\uDC85\\uDC8F\\uDC91\\uDCAA\\uDD7A\\uDD95\\uDD96\\uDE2E\\uDE35\\uDE36\\uDE4C\\uDE4F\\uDEC0\\uDECC]|\\uD83E[\\uDD0C\\uDD0F\\uDD18-\\uDD1C\\uDD1E\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5]|\\uD83C[\\uDFC3\\uDFC4\\uDFCA]|\\uD83D[\\uDC6E\\uDC70\\uDC71\\uDC73\\uDC77\\uDC81\\uDC82\\uDC86\\uDC87\\uDE45-\\uDE47\\uDE4B\\uDE4D\\uDE4E\\uDEA3\\uDEB4-\\uDEB6]|\\uD83E[\\uDD26\\uDD35\\uDD37-\\uDD39\\uDD3D\\uDD3E\\uDDB8\\uDDB9\\uDDCD-\\uDDCF\\uDDD4\\uDDD6-\\uDDDD]|\\uD83D\\uDC6F|\\uD83E[\\uDD3C\\uDDDE\\uDDDF]|[\\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\\u26F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EB6\\uDEC0-\\uDEC2\\uDED0-\\uDED6]|(?:[\\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-\\uDED7\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB]|\\uD83E[\\uDD0C-\\uDD3A\\uDD3C-\\uDD45\\uDD47-\\uDD78\\uDD7A-\\uDDCB\\uDDCD-\\uDDFF\\uDE70-\\uDE74\\uDE78-\\uDE7A\\uDE80-\\uDE86\\uDE90-\\uDEA8\\uDEB0-\\uDEB6\\uDEC0-\\uDEC2\\uDED0-\\uDED6])|(?:[#\\*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\\u26A7\\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-\\uDED7\\uDEE0-\\uDEE5\\uDEE9\\uDEEB\\uDEEC\\uDEF0\\uDEF3-\\uDEFC\\uDFE0-\\uDFEB]|\\uD83E[\\uDD0C-\\uDD3A\\uDD3C-\\uDD45\\uDD47-\\uDD78\\uDD7A-\\uDDCB\\uDDCD-\\uDDFF\\uDE70-\\uDE74\\uDE78-\\uDE7A\\uDE80-\\uDE86\\uDE90-\\uDEA8\\uDEB0-\\uDEB6\\uDEC0-\\uDEC2\\uDED0-\\uDED6])\\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[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD26\\uDD30-\\uDD39\\uDD3C-\\uDD3E\\uDD77\\uDDB5\\uDDB6\\uDDB8\\uDDB9\\uDDBB\\uDDCD-\\uDDCF\\uDDD1-\\uDDDD])/g};function c(t,u={}){if(typeof t!=\"string\"||t.length===0||(u={ambiguousIsNarrow:!0,...u},t=$(t),t.length===0))return 0;t=t.replace(Y(),\" \");const F=u.ambiguousIsNarrow?1:2;let e=0;for(const s of t){const C=s.codePointAt(0);if(C<=31||C>=127&&C<=159||C>=768&&C<=879)continue;switch(K.eastAsianWidth(s)){case\"F\":case\"W\":e+=2;break;case\"A\":e+=F;break;default:e+=1;}}return e}const v=10,L=(t=0)=>u=>`\\x1B[${u+t}m`,M=(t=0)=>u=>`\\x1B[${38+t};5;${u}m`,T=(t=0)=>(u,F,e)=>`\\x1B[${38+t};2;${u};${F};${e}m`,r={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],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],gray:[90,39],grey:[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],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};Object.keys(r.modifier);const Z=Object.keys(r.color),H=Object.keys(r.bgColor);[...Z,...H];function U(){const t=new Map;for(const[u,F]of Object.entries(r)){for(const[e,s]of Object.entries(F))r[e]={open:`\\x1B[${s[0]}m`,close:`\\x1B[${s[1]}m`},F[e]=r[e],t.set(s[0],s[1]);Object.defineProperty(r,u,{value:F,enumerable:!1});}return Object.defineProperty(r,\"codes\",{value:t,enumerable:!1}),r.color.close=\"\\x1B[39m\",r.bgColor.close=\"\\x1B[49m\",r.color.ansi=L(),r.color.ansi256=M(),r.color.ansi16m=T(),r.bgColor.ansi=L(v),r.bgColor.ansi256=M(v),r.bgColor.ansi16m=T(v),Object.defineProperties(r,{rgbToAnsi256:{value:(u,F,e)=>u===F&&F===e?u<8?16:u>248?231:Math.round((u-8)/247*24)+232:16+36*Math.round(u/255*5)+6*Math.round(F/255*5)+Math.round(e/255*5),enumerable:!1},hexToRgb:{value:u=>{const F=/[a-f\\d]{6}|[a-f\\d]{3}/i.exec(u.toString(16));if(!F)return [0,0,0];let[e]=F;e.length===3&&(e=[...e].map(C=>C+C).join(\"\"));const s=Number.parseInt(e,16);return [s>>16&255,s>>8&255,s&255]},enumerable:!1},hexToAnsi256:{value:u=>r.rgbToAnsi256(...r.hexToRgb(u)),enumerable:!1},ansi256ToAnsi:{value:u=>{if(u<8)return 30+u;if(u<16)return 90+(u-8);let F,e,s;if(u>=232)F=((u-232)*10+8)/255,e=F,s=F;else {u-=16;const i=u%36;F=Math.floor(u/36)/5,e=Math.floor(i/6)/5,s=i%6/5;}const C=Math.max(F,e,s)*2;if(C===0)return 30;let D=30+(Math.round(s)<<2|Math.round(e)<<1|Math.round(F));return C===2&&(D+=60),D},enumerable:!1},rgbToAnsi:{value:(u,F,e)=>r.ansi256ToAnsi(r.rgbToAnsi256(u,F,e)),enumerable:!1},hexToAnsi:{value:u=>r.ansi256ToAnsi(r.hexToAnsi256(u)),enumerable:!1}}),r}const q=U(),p=new Set([\"\\x1B\",\"\\x9B\"]),J=39,b=\"\\x07\",W=\"[\",Q=\"]\",I=\"m\",w=`${Q}8;;`,N=t=>`${p.values().next().value}${W}${t}${I}`,j=t=>`${p.values().next().value}${w}${t}${b}`,X=t=>t.split(\" \").map(u=>c(u)),_=(t,u,F)=>{const e=[...u];let s=!1,C=!1,D=c($(t[t.length-1]));for(const[i,o]of e.entries()){const E=c(o);if(D+E<=F?t[t.length-1]+=o:(t.push(o),D=0),p.has(o)&&(s=!0,C=e.slice(i+1).join(\"\").startsWith(w)),s){C?o===b&&(s=!1,C=!1):o===I&&(s=!1);continue}D+=E,D===F&&i<e.length-1&&(t.push(\"\"),D=0);}!D&&t[t.length-1].length>0&&t.length>1&&(t[t.length-2]+=t.pop());},DD=t=>{const u=t.split(\" \");let F=u.length;for(;F>0&&!(c(u[F-1])>0);)F--;return F===u.length?t:u.slice(0,F).join(\" \")+u.slice(F).join(\"\")},uD=(t,u,F={})=>{if(F.trim!==!1&&t.trim()===\"\")return \"\";let e=\"\",s,C;const D=X(t);let i=[\"\"];for(const[E,a]of t.split(\" \").entries()){F.trim!==!1&&(i[i.length-1]=i[i.length-1].trimStart());let n=c(i[i.length-1]);if(E!==0&&(n>=u&&(F.wordWrap===!1||F.trim===!1)&&(i.push(\"\"),n=0),(n>0||F.trim===!1)&&(i[i.length-1]+=\" \",n++)),F.hard&&D[E]>u){const B=u-n,A=1+Math.floor((D[E]-B-1)/u);Math.floor((D[E]-1)/u)<A&&i.push(\"\"),_(i,a,u);continue}if(n+D[E]>u&&n>0&&D[E]>0){if(F.wordWrap===!1&&n<u){_(i,a,u);continue}i.push(\"\");}if(n+D[E]>u&&F.wordWrap===!1){_(i,a,u);continue}i[i.length-1]+=a;}F.trim!==!1&&(i=i.map(E=>DD(E)));const o=[...i.join(`\n`)];for(const[E,a]of o.entries()){if(e+=a,p.has(a)){const{groups:B}=new RegExp(`(?:\\\\${W}(?<code>\\\\d+)m|\\\\${w}(?<uri>.*)${b})`).exec(o.slice(E).join(\"\"))||{groups:{}};if(B.code!==void 0){const A=Number.parseFloat(B.code);s=A===J?void 0:A;}else B.uri!==void 0&&(C=B.uri.length===0?void 0:B.uri);}const n=q.codes.get(Number(s));o[E+1]===`\n`?(C&&(e+=j(\"\")),s&&n&&(e+=N(n))):a===`\n`&&(s&&n&&(e+=N(s)),C&&(e+=j(C)));}return e};function P(t,u,F){return String(t).normalize().replace(/\\r\\n/g,`\n`).split(`\n`).map(e=>uD(e,u,F)).join(`\n`)}function FD(t,u){if(t===u)return;const F=t.split(`\n`),e=u.split(`\n`),s=[];for(let C=0;C<Math.max(F.length,e.length);C++)F[C]!==e[C]&&s.push(C);return s}const R=Symbol(\"clack:cancel\");function g(t,u){t.isTTY&&t.setRawMode(u);}const V=new Map([[\"k\",\"up\"],[\"j\",\"down\"],[\"h\",\"left\"],[\"l\",\"right\"]]),tD=new Set([\"up\",\"down\",\"left\",\"right\",\"space\",\"enter\"]);class h{constructor({render:u,input:F=stdin,output:e=stdout,...s},C=!0){this._track=!1,this._cursor=0,this.state=\"initial\",this.error=\"\",this.subscribers=new Map,this._prevFrame=\"\",this.opts=s,this.onKeypress=this.onKeypress.bind(this),this.close=this.close.bind(this),this.render=this.render.bind(this),this._render=u.bind(this),this._track=C,this.input=F,this.output=e;}prompt(){const u=new WriteStream(0);return u._write=(F,e,s)=>{this._track&&(this.value=this.rl.line.replace(/\\t/g,\"\"),this._cursor=this.rl.cursor,this.emit(\"value\",this.value)),s();},this.input.pipe(u),this.rl=f.createInterface({input:this.input,output:u,tabSize:2,prompt:\"\",escapeCodeTimeout:50}),f.emitKeypressEvents(this.input,this.rl),this.rl.prompt(),this.opts.initialValue!==void 0&&this._track&&this.rl.write(this.opts.initialValue),this.input.on(\"keypress\",this.onKeypress),g(this.input,!0),this.output.on(\"resize\",this.render),this.render(),new Promise((F,e)=>{this.once(\"submit\",()=>{this.output.write(src.cursor.show),this.output.off(\"resize\",this.render),g(this.input,!1),F(this.value);}),this.once(\"cancel\",()=>{this.output.write(src.cursor.show),this.output.off(\"resize\",this.render),g(this.input,!1),F(R);});})}on(u,F){const e=this.subscribers.get(u)??[];e.push({cb:F}),this.subscribers.set(u,e);}once(u,F){const e=this.subscribers.get(u)??[];e.push({cb:F,once:!0}),this.subscribers.set(u,e);}emit(u,...F){const e=this.subscribers.get(u)??[],s=[];for(const C of e)C.cb(...F),C.once&&s.push(()=>e.splice(e.indexOf(C),1));for(const C of s)C();}unsubscribe(){this.subscribers.clear();}onKeypress(u,F){if(this.state===\"error\"&&(this.state=\"active\"),F?.name&&!this._track&&V.has(F.name)&&this.emit(\"cursor\",V.get(F.name)),F?.name&&tD.has(F.name)&&this.emit(\"cursor\",F.name),u&&(u.toLowerCase()===\"y\"||u.toLowerCase()===\"n\")&&this.emit(\"confirm\",u.toLowerCase()===\"y\"),u&&this.emit(\"key\",u.toLowerCase()),F?.name===\"return\"){if(this.opts.validate){const e=this.opts.validate(this.value);e&&(this.error=e,this.state=\"error\",this.rl.write(this.value));}this.state!==\"error\"&&(this.state=\"submit\");}u===\"\u0003\"&&(this.state=\"cancel\"),(this.state===\"submit\"||this.state===\"cancel\")&&this.emit(\"finalize\"),this.render(),(this.state===\"submit\"||this.state===\"cancel\")&&this.close();}close(){this.input.unpipe(),this.input.removeListener(\"keypress\",this.onKeypress),this.output.write(`\n`),g(this.input,!1),this.rl.close(),this.emit(`${this.state}`,this.value),this.unsubscribe();}restoreCursor(){const u=P(this._prevFrame,process.stdout.columns,{hard:!0}).split(`\n`).length-1;this.output.write(src.cursor.move(-999,u*-1));}render(){const u=P(this._render(this)??\"\",process.stdout.columns,{hard:!0});if(u!==this._prevFrame){if(this.state===\"initial\")this.output.write(src.cursor.hide);else {const F=FD(this._prevFrame,u);if(this.restoreCursor(),F&&F?.length===1){const e=F[0];this.output.write(src.cursor.move(0,e)),this.output.write(src.erase.lines(1));const s=u.split(`\n`);this.output.write(s[e]),this._prevFrame=u,this.output.write(src.cursor.move(0,s.length-e-1));return}else if(F&&F?.length>1){const e=F[0];this.output.write(src.cursor.move(0,e)),this.output.write(src.erase.down());const C=u.split(`\n`).slice(e);this.output.write(C.join(`\n`)),this._prevFrame=u;return}this.output.write(src.erase.down());}this.output.write(u),this.state===\"initial\"&&(this.state=\"active\"),this._prevFrame=u;}}}class sD extends h{get cursor(){return this.value?0:1}get _value(){return this.cursor===0}constructor(u){super(u,!1),this.value=!!u.initialValue,this.on(\"value\",()=>{this.value=this._value;}),this.on(\"confirm\",F=>{this.output.write(src.cursor.move(0,-1)),this.value=F,this.state=\"submit\",this.close();}),this.on(\"cursor\",()=>{this.value=!this.value;});}}class iD extends h{constructor(u){super(u,!1),this.cursor=0,this.options=u.options,this.value=[...u.initialValues??[]],this.cursor=Math.max(this.options.findIndex(({value:F})=>F===u.cursorAt),0),this.on(\"key\",F=>{F===\"a\"&&this.toggleAll();}),this.on(\"cursor\",F=>{switch(F){case\"left\":case\"up\":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case\"down\":case\"right\":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break;case\"space\":this.toggleValue();break}});}get _value(){return this.options[this.cursor].value}toggleAll(){const u=this.value.length===this.options.length;this.value=u?[]:this.options.map(F=>F.value);}toggleValue(){const u=this.value.includes(this._value);this.value=u?this.value.filter(F=>F!==this._value):[...this.value,this._value];}}class ED extends h{constructor(u){super(u,!1),this.cursor=0,this.options=u.options,this.cursor=this.options.findIndex(({value:F})=>F===u.initialValue),this.cursor===-1&&(this.cursor=0),this.changeValue(),this.on(\"cursor\",F=>{switch(F){case\"left\":case\"up\":this.cursor=this.cursor===0?this.options.length-1:this.cursor-1;break;case\"down\":case\"right\":this.cursor=this.cursor===this.options.length-1?0:this.cursor+1;break}this.changeValue();});}get _value(){return this.options[this.cursor]}changeValue(){this.value=this._value.value;}}class oD extends h{constructor(u){super(u),this.valueWithCursor=\"\",this.on(\"finalize\",()=>{this.value||(this.value=u.defaultValue),this.valueWithCursor=this.value;}),this.on(\"value\",()=>{if(this.cursor>=this.value.length)this.valueWithCursor=`${this.value}${l.inverse(l.hidden(\"_\"))}`;else {const F=this.value.slice(0,this.cursor),e=this.value.slice(this.cursor);this.valueWithCursor=`${F}${l.inverse(e[0])}${e.slice(1)}`;}});}get cursor(){return this._cursor}}\n\nconst unicode = isUnicodeSupported();\nconst s = (c, fallback) => unicode ? c : fallback;\nconst S_STEP_ACTIVE = s(\"\\u276F\", \">\");\nconst S_STEP_CANCEL = s(\"\\u25A0\", \"x\");\nconst S_STEP_ERROR = s(\"\\u25B2\", \"x\");\nconst S_STEP_SUBMIT = s(\"\\u2714\", \"\\u221A\");\nconst S_BAR = \"\";\nconst S_BAR_END = \"\";\nconst S_RADIO_ACTIVE = s(\"\\u25CF\", \">\");\nconst S_RADIO_INACTIVE = s(\"\\u25CB\", \" \");\nconst S_CHECKBOX_ACTIVE = s(\"\\u25FB\", \"[\\u2022]\");\nconst S_CHECKBOX_SELECTED = s(\"\\u25FC\", \"[+]\");\nconst S_CHECKBOX_INACTIVE = s(\"\\u25FB\", \"[ ]\");\nconst symbol = (state) => {\n switch (state) {\n case \"initial\":\n case \"active\": {\n return colors.cyan(S_STEP_ACTIVE);\n }\n case \"cancel\": {\n return colors.red(S_STEP_CANCEL);\n }\n case \"error\": {\n return colors.yellow(S_STEP_ERROR);\n }\n case \"submit\": {\n return colors.green(S_STEP_SUBMIT);\n }\n }\n};\nconst text = (opts) => {\n return new oD({\n validate: opts.validate,\n placeholder: opts.placeholder,\n defaultValue: opts.defaultValue,\n initialValue: opts.initialValue,\n render() {\n const title = `${colors.gray(S_BAR)}\n${symbol(this.state)} ${opts.message}\n`;\n const placeholder = opts.placeholder ? colors.inverse(opts.placeholder[0]) + colors.dim(opts.placeholder.slice(1)) : colors.inverse(colors.hidden(\"_\"));\n const value = this.value ? this.valueWithCursor : placeholder;\n switch (this.state) {\n case \"error\": {\n return `${title.trim()}\n${colors.yellow(\n S_BAR\n )} ${value}\n${colors.yellow(S_BAR_END)} ${colors.yellow(\n this.error\n )}\n`;\n }\n case \"submit\": {\n return `${title}${colors.gray(S_BAR)} ${colors.dim(\n this.value || opts.placeholder\n )}`;\n }\n case \"cancel\": {\n return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(\n colors.dim(this.value ?? \"\")\n )}${this.value?.trim() ? \"\\n\" + colors.gray(S_BAR) : \"\"}`;\n }\n default: {\n return `${title}${colors.cyan(S_BAR)} ${value}\n${colors.cyan(\n S_BAR_END\n )}\n`;\n }\n }\n }\n }).prompt();\n};\nconst confirm = (opts) => {\n const active = opts.active ?? \"Yes\";\n const inactive = opts.inactive ?? \"No\";\n return new sD({\n active,\n inactive,\n initialValue: opts.initialValue ?? true,\n render() {\n const title = `${colors.gray(S_BAR)}\n${symbol(this.state)} ${opts.message}\n`;\n const value = this.value ? active : inactive;\n switch (this.state) {\n case \"submit\": {\n return `${title}${colors.gray(S_BAR)} ${colors.dim(value)}`;\n }\n case \"cancel\": {\n return `${title}${colors.gray(S_BAR)} ${colors.strikethrough(\n colors.dim(value)\n )}\n${colors.gray(S_BAR)}`;\n }\n default: {\n return `${title}${colors.cyan(S_BAR)} ${this.value ? `${colors.green(S_RADIO_ACTIVE)} ${active}` : `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(active)}`} ${colors.dim(\"/\")} ${this.value ? `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(inactive)}` : `${colors.green(S_RADIO_ACTIVE)} ${inactive}`}\n${colors.cyan(S_BAR_END)}\n`;\n }\n }\n }\n }).prompt();\n};\nconst select = (opts) => {\n const opt = (option, state) => {\n const label = option.label ?? String(option.value);\n switch (state) {\n case \"active\": {\n return `${colors.green(S_RADIO_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : \"\"}`;\n }\n case \"selected\": {\n return `${colors.dim(label)}`;\n }\n case \"cancelled\": {\n return `${colors.strikethrough(colors.dim(label))}`;\n }\n }\n return `${colors.dim(S_RADIO_INACTIVE)} ${colors.dim(label)}`;\n };\n return new ED({\n options: opts.options,\n initialValue: opts.initialValue,\n render() {\n const title = `${colors.gray(S_BAR)}\n${symbol(this.state)} ${opts.message}\n`;\n switch (this.state) {\n case \"submit\": {\n return `${title}${colors.gray(S_BAR)} ${opt(\n this.options[this.cursor],\n \"selected\"\n )}`;\n }\n case \"cancel\": {\n return `${title}${colors.gray(S_BAR)} ${opt(\n this.options[this.cursor],\n \"cancelled\"\n )}\n${colors.gray(S_BAR)}`;\n }\n default: {\n return `${title}${colors.cyan(S_BAR)} ${this.options.map(\n (option, i) => opt(option, i === this.cursor ? \"active\" : \"inactive\")\n ).join(`\n${colors.cyan(S_BAR)} `)}\n${colors.cyan(S_BAR_END)}\n`;\n }\n }\n }\n }).prompt();\n};\nconst multiselect = (opts) => {\n const opt = (option, state) => {\n const label = option.label ?? String(option.value);\n switch (state) {\n case \"active\": {\n return `${colors.cyan(S_CHECKBOX_ACTIVE)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : \"\"}`;\n }\n case \"selected\": {\n return `${colors.green(S_CHECKBOX_SELECTED)} ${colors.dim(label)}`;\n }\n case \"cancelled\": {\n return `${colors.strikethrough(colors.dim(label))}`;\n }\n case \"active-selected\": {\n return `${colors.green(S_CHECKBOX_SELECTED)} ${label} ${option.hint ? colors.dim(`(${option.hint})`) : \"\"}`;\n }\n case \"submitted\": {\n return `${colors.dim(label)}`;\n }\n }\n return `${colors.dim(S_CHECKBOX_INACTIVE)} ${colors.dim(label)}`;\n };\n return new iD({\n options: opts.options,\n initialValues: opts.initialValues,\n required: opts.required ?? true,\n cursorAt: opts.cursorAt,\n validate(selected) {\n if (this.required && selected.length === 0) {\n return `Please select at least one option.\n${colors.reset(\n colors.dim(\n `Press ${colors.gray(\n colors.bgWhite(colors.inverse(\" space \"))\n )} to select, ${colors.gray(\n colors.bgWhite(colors.inverse(\" enter \"))\n )} to submit`\n )\n )}`;\n }\n },\n render() {\n const title = `${colors.gray(S_BAR)}\n${symbol(this.state)} ${opts.message}\n`;\n switch (this.state) {\n case \"submit\": {\n return `${title}${colors.gray(S_BAR)} ${this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, \"submitted\")).join(colors.dim(\", \")) || colors.dim(\"none\")}`;\n }\n case \"cancel\": {\n const label = this.options.filter(({ value }) => this.value.includes(value)).map((option) => opt(option, \"cancelled\")).join(colors.dim(\", \"));\n return `${title}${colors.gray(S_BAR)} ${label.trim() ? `${label}\n${colors.gray(S_BAR)}` : \"\"}`;\n }\n case \"error\": {\n const footer = this.error.split(\"\\n\").map(\n (ln, i) => i === 0 ? `${colors.yellow(S_BAR_END)} ${colors.yellow(ln)}` : ` ${ln}`\n ).join(\"\\n\");\n return title + colors.yellow(S_BAR) + \" \" + this.options.map((option, i) => {\n const selected = this.value.includes(option.value);\n const active = i === this.cursor;\n if (active && selected) {\n return opt(option, \"active-selected\");\n }\n if (selected) {\n return opt(option, \"selected\");\n }\n return opt(option, active ? \"active\" : \"inactive\");\n }).join(`\n${colors.yellow(S_BAR)} `) + \"\\n\" + footer + \"\\n\";\n }\n default: {\n return `${title}${colors.cyan(S_BAR)} ${this.options.map((option, i) => {\n const selected = this.value.includes(option.value);\n const active = i === this.cursor;\n if (active && selected) {\n return opt(option, \"active-selected\");\n }\n if (selected) {\n return opt(option, \"selected\");\n }\n return opt(option, active ? \"active\" : \"inactive\");\n }).join(`\n${colors.cyan(S_BAR)} `)}\n${colors.cyan(S_BAR_END)}\n`;\n }\n }\n }\n }).prompt();\n};\n\nasync function prompt(message, opts = {}) {\n if (!opts.type || opts.type === \"text\") {\n return await text({\n message,\n defaultValue: opts.default,\n placeholder: opts.placeholder,\n initialValue: opts.initial\n });\n }\n if (opts.type === \"confirm\") {\n return await confirm({\n message,\n initialValue: opts.initial\n });\n }\n if (opts.type === \"select\") {\n return await select({\n message,\n options: opts.options.map(\n (o) => typeof o === \"string\" ? { value: o, label: o } : o\n )\n });\n }\n if (opts.type === \"multiselect\") {\n return await multiselect({\n message,\n options: opts.options.map(\n (o) => typeof o === \"string\" ? { value: o, label: o } : o\n ),\n required: opts.required\n });\n }\n throw new Error(`Unknown prompt type: ${opts.type}`);\n}\n\nexport { prompt };\n",
|
|
42
|
-
"import { createConsola as createConsola$1, LogLevels } from '../core.mjs';\nimport { B as BasicReporter, p as parseStack } from './consola.06ad8a64.mjs';\nimport process$1 from 'node:process';\nimport { colors, box, stripAnsi as stripAnsi$1 } from '../utils.mjs';\n\nconst providers = [\n [\"APPVEYOR\"],\n [\"AZURE_PIPELINES\", \"SYSTEM_TEAMFOUNDATIONCOLLECTIONURI\"],\n [\"AZURE_STATIC\", \"INPUT_AZURE_STATIC_WEB_APPS_API_TOKEN\"],\n [\"APPCIRCLE\", \"AC_APPCIRCLE\"],\n [\"BAMBOO\", \"bamboo_planKey\"],\n [\"BITBUCKET\", \"BITBUCKET_COMMIT\"],\n [\"BITRISE\", \"BITRISE_IO\"],\n [\"BUDDY\", \"BUDDY_WORKSPACE_ID\"],\n [\"BUILDKITE\"],\n [\"CIRCLE\", \"CIRCLECI\"],\n [\"CIRRUS\", \"CIRRUS_CI\"],\n [\"CLOUDFLARE_PAGES\", \"CF_PAGES\", { ci: true }],\n [\"CODEBUILD\", \"CODEBUILD_BUILD_ARN\"],\n [\"CODEFRESH\", \"CF_BUILD_ID\"],\n [\"DRONE\"],\n [\"DRONE\", \"DRONE_BUILD_EVENT\"],\n [\"DSARI\"],\n [\"GITHUB_ACTIONS\"],\n [\"GITLAB\", \"GITLAB_CI\"],\n [\"GITLAB\", \"CI_MERGE_REQUEST_ID\"],\n [\"GOCD\", \"GO_PIPELINE_LABEL\"],\n [\"LAYERCI\"],\n [\"HUDSON\", \"HUDSON_URL\"],\n [\"JENKINS\", \"JENKINS_URL\"],\n [\"MAGNUM\"],\n [\"NETLIFY\"],\n [\"NETLIFY\", \"NETLIFY_LOCAL\", { ci: false }],\n [\"NEVERCODE\"],\n [\"RENDER\"],\n [\"SAIL\", \"SAILCI\"],\n [\"SEMAPHORE\"],\n [\"SCREWDRIVER\"],\n [\"SHIPPABLE\"],\n [\"SOLANO\", \"TDDIUM\"],\n [\"STRIDER\"],\n [\"TEAMCITY\", \"TEAMCITY_VERSION\"],\n [\"TRAVIS\"],\n [\"VERCEL\", \"NOW_BUILDER\"],\n [\"APPCENTER\", \"APPCENTER_BUILD_ID\"],\n [\"CODESANDBOX\", \"CODESANDBOX_SSE\", { ci: false }],\n [\"STACKBLITZ\"],\n [\"STORMKIT\"],\n [\"CLEAVR\"]\n];\nfunction detectProvider(env) {\n for (const provider of providers) {\n const envName = provider[1] || provider[0];\n if (env[envName]) {\n return {\n name: provider[0].toLowerCase(),\n ...provider[2]\n };\n }\n }\n if (env.SHELL && env.SHELL === \"/bin/jsh\") {\n return {\n name: \"stackblitz\",\n ci: false\n };\n }\n return {\n name: \"\",\n ci: false\n };\n}\n\nconst processShim = typeof process !== \"undefined\" ? process : {};\nconst envShim = processShim.env || {};\nconst providerInfo = detectProvider(envShim);\nconst nodeENV = typeof process !== \"undefined\" && process.env && process.env.NODE_ENV || \"\";\nprocessShim.platform;\nproviderInfo.name;\nconst isCI = toBoolean(envShim.CI) || providerInfo.ci !== false;\nconst hasTTY = toBoolean(processShim.stdout && processShim.stdout.isTTY);\nconst isDebug = toBoolean(envShim.DEBUG);\nconst isTest = nodeENV === \"test\" || toBoolean(envShim.TEST);\ntoBoolean(envShim.MINIMAL) || isCI || isTest || !hasTTY;\nfunction toBoolean(val) {\n return val ? val !== \"false\" : false;\n}\n\nfunction ansiRegex({onlyFirst = false} = {}) {\n\tconst pattern = [\n\t '[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)',\n\t\t'(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PR-TZcf-ntqry=><~]))'\n\t].join('|');\n\n\treturn new RegExp(pattern, onlyFirst ? undefined : 'g');\n}\n\nconst regex = ansiRegex();\n\nfunction stripAnsi(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError(`Expected a \\`string\\`, got \\`${typeof string}\\``);\n\t}\n\n\t// Even though the regex is global, we don't need to reset the `.lastIndex`\n\t// because unlike `.exec()` and `.test()`, `.replace()` does it automatically\n\t// and doing it manually has a performance penalty.\n\treturn string.replace(regex, '');\n}\n\nfunction getDefaultExportFromCjs (x) {\n\treturn x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;\n}\n\nvar eastasianwidth = {exports: {}};\n\n(function (module) {\n\tvar eaw = {};\n\n\t{\n\t module.exports = eaw;\n\t}\n\n\teaw.eastAsianWidth = function(character) {\n\t var x = character.charCodeAt(0);\n\t var y = (character.length == 2) ? character.charCodeAt(1) : 0;\n\t var codePoint = x;\n\t if ((0xD800 <= x && x <= 0xDBFF) && (0xDC00 <= y && y <= 0xDFFF)) {\n\t x &= 0x3FF;\n\t y &= 0x3FF;\n\t codePoint = (x << 10) | y;\n\t codePoint += 0x10000;\n\t }\n\n\t if ((0x3000 == codePoint) ||\n\t (0xFF01 <= codePoint && codePoint <= 0xFF60) ||\n\t (0xFFE0 <= codePoint && codePoint <= 0xFFE6)) {\n\t return 'F';\n\t }\n\t if ((0x20A9 == codePoint) ||\n\t (0xFF61 <= codePoint && codePoint <= 0xFFBE) ||\n\t (0xFFC2 <= codePoint && codePoint <= 0xFFC7) ||\n\t (0xFFCA <= codePoint && codePoint <= 0xFFCF) ||\n\t (0xFFD2 <= codePoint && codePoint <= 0xFFD7) ||\n\t (0xFFDA <= codePoint && codePoint <= 0xFFDC) ||\n\t (0xFFE8 <= codePoint && codePoint <= 0xFFEE)) {\n\t return 'H';\n\t }\n\t if ((0x1100 <= codePoint && codePoint <= 0x115F) ||\n\t (0x11A3 <= codePoint && codePoint <= 0x11A7) ||\n\t (0x11FA <= codePoint && codePoint <= 0x11FF) ||\n\t (0x2329 <= codePoint && codePoint <= 0x232A) ||\n\t (0x2E80 <= codePoint && codePoint <= 0x2E99) ||\n\t (0x2E9B <= codePoint && codePoint <= 0x2EF3) ||\n\t (0x2F00 <= codePoint && codePoint <= 0x2FD5) ||\n\t (0x2FF0 <= codePoint && codePoint <= 0x2FFB) ||\n\t (0x3001 <= codePoint && codePoint <= 0x303E) ||\n\t (0x3041 <= codePoint && codePoint <= 0x3096) ||\n\t (0x3099 <= codePoint && codePoint <= 0x30FF) ||\n\t (0x3105 <= codePoint && codePoint <= 0x312D) ||\n\t (0x3131 <= codePoint && codePoint <= 0x318E) ||\n\t (0x3190 <= codePoint && codePoint <= 0x31BA) ||\n\t (0x31C0 <= codePoint && codePoint <= 0x31E3) ||\n\t (0x31F0 <= codePoint && codePoint <= 0x321E) ||\n\t (0x3220 <= codePoint && codePoint <= 0x3247) ||\n\t (0x3250 <= codePoint && codePoint <= 0x32FE) ||\n\t (0x3300 <= codePoint && codePoint <= 0x4DBF) ||\n\t (0x4E00 <= codePoint && codePoint <= 0xA48C) ||\n\t (0xA490 <= codePoint && codePoint <= 0xA4C6) ||\n\t (0xA960 <= codePoint && codePoint <= 0xA97C) ||\n\t (0xAC00 <= codePoint && codePoint <= 0xD7A3) ||\n\t (0xD7B0 <= codePoint && codePoint <= 0xD7C6) ||\n\t (0xD7CB <= codePoint && codePoint <= 0xD7FB) ||\n\t (0xF900 <= codePoint && codePoint <= 0xFAFF) ||\n\t (0xFE10 <= codePoint && codePoint <= 0xFE19) ||\n\t (0xFE30 <= codePoint && codePoint <= 0xFE52) ||\n\t (0xFE54 <= codePoint && codePoint <= 0xFE66) ||\n\t (0xFE68 <= codePoint && codePoint <= 0xFE6B) ||\n\t (0x1B000 <= codePoint && codePoint <= 0x1B001) ||\n\t (0x1F200 <= codePoint && codePoint <= 0x1F202) ||\n\t (0x1F210 <= codePoint && codePoint <= 0x1F23A) ||\n\t (0x1F240 <= codePoint && codePoint <= 0x1F248) ||\n\t (0x1F250 <= codePoint && codePoint <= 0x1F251) ||\n\t (0x20000 <= codePoint && codePoint <= 0x2F73F) ||\n\t (0x2B740 <= codePoint && codePoint <= 0x2FFFD) ||\n\t (0x30000 <= codePoint && codePoint <= 0x3FFFD)) {\n\t return 'W';\n\t }\n\t if ((0x0020 <= codePoint && codePoint <= 0x007E) ||\n\t (0x00A2 <= codePoint && codePoint <= 0x00A3) ||\n\t (0x00A5 <= codePoint && codePoint <= 0x00A6) ||\n\t (0x00AC == codePoint) ||\n\t (0x00AF == codePoint) ||\n\t (0x27E6 <= codePoint && codePoint <= 0x27ED) ||\n\t (0x2985 <= codePoint && codePoint <= 0x2986)) {\n\t return 'Na';\n\t }\n\t if ((0x00A1 == codePoint) ||\n\t (0x00A4 == codePoint) ||\n\t (0x00A7 <= codePoint && codePoint <= 0x00A8) ||\n\t (0x00AA == codePoint) ||\n\t (0x00AD <= codePoint && codePoint <= 0x00AE) ||\n\t (0x00B0 <= codePoint && codePoint <= 0x00B4) ||\n\t (0x00B6 <= codePoint && codePoint <= 0x00BA) ||\n\t (0x00BC <= codePoint && codePoint <= 0x00BF) ||\n\t (0x00C6 == codePoint) ||\n\t (0x00D0 == codePoint) ||\n\t (0x00D7 <= codePoint && codePoint <= 0x00D8) ||\n\t (0x00DE <= codePoint && codePoint <= 0x00E1) ||\n\t (0x00E6 == codePoint) ||\n\t (0x00E8 <= codePoint && codePoint <= 0x00EA) ||\n\t (0x00EC <= codePoint && codePoint <= 0x00ED) ||\n\t (0x00F0 == codePoint) ||\n\t (0x00F2 <= codePoint && codePoint <= 0x00F3) ||\n\t (0x00F7 <= codePoint && codePoint <= 0x00FA) ||\n\t (0x00FC == codePoint) ||\n\t (0x00FE == codePoint) ||\n\t (0x0101 == codePoint) ||\n\t (0x0111 == codePoint) ||\n\t (0x0113 == codePoint) ||\n\t (0x011B == codePoint) ||\n\t (0x0126 <= codePoint && codePoint <= 0x0127) ||\n\t (0x012B == codePoint) ||\n\t (0x0131 <= codePoint && codePoint <= 0x0133) ||\n\t (0x0138 == codePoint) ||\n\t (0x013F <= codePoint && codePoint <= 0x0142) ||\n\t (0x0144 == codePoint) ||\n\t (0x0148 <= codePoint && codePoint <= 0x014B) ||\n\t (0x014D == codePoint) ||\n\t (0x0152 <= codePoint && codePoint <= 0x0153) ||\n\t (0x0166 <= codePoint && codePoint <= 0x0167) ||\n\t (0x016B == codePoint) ||\n\t (0x01CE == codePoint) ||\n\t (0x01D0 == codePoint) ||\n\t (0x01D2 == codePoint) ||\n\t (0x01D4 == codePoint) ||\n\t (0x01D6 == codePoint) ||\n\t (0x01D8 == codePoint) ||\n\t (0x01DA == codePoint) ||\n\t (0x01DC == codePoint) ||\n\t (0x0251 == codePoint) ||\n\t (0x0261 == codePoint) ||\n\t (0x02C4 == codePoint) ||\n\t (0x02C7 == codePoint) ||\n\t (0x02C9 <= codePoint && codePoint <= 0x02CB) ||\n\t (0x02CD == codePoint) ||\n\t (0x02D0 == codePoint) ||\n\t (0x02D8 <= codePoint && codePoint <= 0x02DB) ||\n\t (0x02DD == codePoint) ||\n\t (0x02DF == codePoint) ||\n\t (0x0300 <= codePoint && codePoint <= 0x036F) ||\n\t (0x0391 <= codePoint && codePoint <= 0x03A1) ||\n\t (0x03A3 <= codePoint && codePoint <= 0x03A9) ||\n\t (0x03B1 <= codePoint && codePoint <= 0x03C1) ||\n\t (0x03C3 <= codePoint && codePoint <= 0x03C9) ||\n\t (0x0401 == codePoint) ||\n\t (0x0410 <= codePoint && codePoint <= 0x044F) ||\n\t (0x0451 == codePoint) ||\n\t (0x2010 == codePoint) ||\n\t (0x2013 <= codePoint && codePoint <= 0x2016) ||\n\t (0x2018 <= codePoint && codePoint <= 0x2019) ||\n\t (0x201C <= codePoint && codePoint <= 0x201D) ||\n\t (0x2020 <= codePoint && codePoint <= 0x2022) ||\n\t (0x2024 <= codePoint && codePoint <= 0x2027) ||\n\t (0x2030 == codePoint) ||\n\t (0x2032 <= codePoint && codePoint <= 0x2033) ||\n\t (0x2035 == codePoint) ||\n\t (0x203B == codePoint) ||\n\t (0x203E == codePoint) ||\n\t (0x2074 == codePoint) ||\n\t (0x207F == codePoint) ||\n\t (0x2081 <= codePoint && codePoint <= 0x2084) ||\n\t (0x20AC == codePoint) ||\n\t (0x2103 == codePoint) ||\n\t (0x2105 == codePoint) ||\n\t (0x2109 == codePoint) ||\n\t (0x2113 == codePoint) ||\n\t (0x2116 == codePoint) ||\n\t (0x2121 <= codePoint && codePoint <= 0x2122) ||\n\t (0x2126 == codePoint) ||\n\t (0x212B == codePoint) ||\n\t (0x2153 <= codePoint && codePoint <= 0x2154) ||\n\t (0x215B <= codePoint && codePoint <= 0x215E) ||\n\t (0x2160 <= codePoint && codePoint <= 0x216B) ||\n\t (0x2170 <= codePoint && codePoint <= 0x2179) ||\n\t (0x2189 == codePoint) ||\n\t (0x2190 <= codePoint && codePoint <= 0x2199) ||\n\t (0x21B8 <= codePoint && codePoint <= 0x21B9) ||\n\t (0x21D2 == codePoint) ||\n\t (0x21D4 == codePoint) ||\n\t (0x21E7 == codePoint) ||\n\t (0x2200 == codePoint) ||\n\t (0x2202 <= codePoint && codePoint <= 0x2203) ||\n\t (0x2207 <= codePoint && codePoint <= 0x2208) ||\n\t (0x220B == codePoint) ||\n\t (0x220F == codePoint) ||\n\t (0x2211 == codePoint) ||\n\t (0x2215 == codePoint) ||\n\t (0x221A == codePoint) ||\n\t (0x221D <= codePoint && codePoint <= 0x2220) ||\n\t (0x2223 == codePoint) ||\n\t (0x2225 == codePoint) ||\n\t (0x2227 <= codePoint && codePoint <= 0x222C) ||\n\t (0x222E == codePoint) ||\n\t (0x2234 <= codePoint && codePoint <= 0x2237) ||\n\t (0x223C <= codePoint && codePoint <= 0x223D) ||\n\t (0x2248 == codePoint) ||\n\t (0x224C == codePoint) ||\n\t (0x2252 == codePoint) ||\n\t (0x2260 <= codePoint && codePoint <= 0x2261) ||\n\t (0x2264 <= codePoint && codePoint <= 0x2267) ||\n\t (0x226A <= codePoint && codePoint <= 0x226B) ||\n\t (0x226E <= codePoint && codePoint <= 0x226F) ||\n\t (0x2282 <= codePoint && codePoint <= 0x2283) ||\n\t (0x2286 <= codePoint && codePoint <= 0x2287) ||\n\t (0x2295 == codePoint) ||\n\t (0x2299 == codePoint) ||\n\t (0x22A5 == codePoint) ||\n\t (0x22BF == codePoint) ||\n\t (0x2312 == codePoint) ||\n\t (0x2460 <= codePoint && codePoint <= 0x24E9) ||\n\t (0x24EB <= codePoint && codePoint <= 0x254B) ||\n\t (0x2550 <= codePoint && codePoint <= 0x2573) ||\n\t (0x2580 <= codePoint && codePoint <= 0x258F) ||\n\t (0x2592 <= codePoint && codePoint <= 0x2595) ||\n\t (0x25A0 <= codePoint && codePoint <= 0x25A1) ||\n\t (0x25A3 <= codePoint && codePoint <= 0x25A9) ||\n\t (0x25B2 <= codePoint && codePoint <= 0x25B3) ||\n\t (0x25B6 <= codePoint && codePoint <= 0x25B7) ||\n\t (0x25BC <= codePoint && codePoint <= 0x25BD) ||\n\t (0x25C0 <= codePoint && codePoint <= 0x25C1) ||\n\t (0x25C6 <= codePoint && codePoint <= 0x25C8) ||\n\t (0x25CB == codePoint) ||\n\t (0x25CE <= codePoint && codePoint <= 0x25D1) ||\n\t (0x25E2 <= codePoint && codePoint <= 0x25E5) ||\n\t (0x25EF == codePoint) ||\n\t (0x2605 <= codePoint && codePoint <= 0x2606) ||\n\t (0x2609 == codePoint) ||\n\t (0x260E <= codePoint && codePoint <= 0x260F) ||\n\t (0x2614 <= codePoint && codePoint <= 0x2615) ||\n\t (0x261C == codePoint) ||\n\t (0x261E == codePoint) ||\n\t (0x2640 == codePoint) ||\n\t (0x2642 == codePoint) ||\n\t (0x2660 <= codePoint && codePoint <= 0x2661) ||\n\t (0x2663 <= codePoint && codePoint <= 0x2665) ||\n\t (0x2667 <= codePoint && codePoint <= 0x266A) ||\n\t (0x266C <= codePoint && codePoint <= 0x266D) ||\n\t (0x266F == codePoint) ||\n\t (0x269E <= codePoint && codePoint <= 0x269F) ||\n\t (0x26BE <= codePoint && codePoint <= 0x26BF) ||\n\t (0x26C4 <= codePoint && codePoint <= 0x26CD) ||\n\t (0x26CF <= codePoint && codePoint <= 0x26E1) ||\n\t (0x26E3 == codePoint) ||\n\t (0x26E8 <= codePoint && codePoint <= 0x26FF) ||\n\t (0x273D == codePoint) ||\n\t (0x2757 == codePoint) ||\n\t (0x2776 <= codePoint && codePoint <= 0x277F) ||\n\t (0x2B55 <= codePoint && codePoint <= 0x2B59) ||\n\t (0x3248 <= codePoint && codePoint <= 0x324F) ||\n\t (0xE000 <= codePoint && codePoint <= 0xF8FF) ||\n\t (0xFE00 <= codePoint && codePoint <= 0xFE0F) ||\n\t (0xFFFD == codePoint) ||\n\t (0x1F100 <= codePoint && codePoint <= 0x1F10A) ||\n\t (0x1F110 <= codePoint && codePoint <= 0x1F12D) ||\n\t (0x1F130 <= codePoint && codePoint <= 0x1F169) ||\n\t (0x1F170 <= codePoint && codePoint <= 0x1F19A) ||\n\t (0xE0100 <= codePoint && codePoint <= 0xE01EF) ||\n\t (0xF0000 <= codePoint && codePoint <= 0xFFFFD) ||\n\t (0x100000 <= codePoint && codePoint <= 0x10FFFD)) {\n\t return 'A';\n\t }\n\n\t return 'N';\n\t};\n\n\teaw.characterLength = function(character) {\n\t var code = this.eastAsianWidth(character);\n\t if (code == 'F' || code == 'W' || code == 'A') {\n\t return 2;\n\t } else {\n\t return 1;\n\t }\n\t};\n\n\t// Split a string considering surrogate-pairs.\n\tfunction stringToArray(string) {\n\t return string.match(/[\\uD800-\\uDBFF][\\uDC00-\\uDFFF]|[^\\uD800-\\uDFFF]/g) || [];\n\t}\n\n\teaw.length = function(string) {\n\t var characters = stringToArray(string);\n\t var len = 0;\n\t for (var i = 0; i < characters.length; i++) {\n\t len = len + this.characterLength(characters[i]);\n\t }\n\t return len;\n\t};\n\n\teaw.slice = function(text, start, end) {\n\t textLen = eaw.length(text);\n\t start = start ? start : 0;\n\t end = end ? end : 1;\n\t if (start < 0) {\n\t start = textLen + start;\n\t }\n\t if (end < 0) {\n\t end = textLen + end;\n\t }\n\t var result = '';\n\t var eawLen = 0;\n\t var chars = stringToArray(text);\n\t for (var i = 0; i < chars.length; i++) {\n\t var char = chars[i];\n\t var charLen = eaw.length(char);\n\t if (eawLen >= start - (charLen == 2 ? 1 : 0)) {\n\t if (eawLen + charLen <= end) {\n\t result += char;\n\t } else {\n\t break;\n\t }\n\t }\n\t eawLen += charLen;\n\t }\n\t return result;\n\t}; \n} (eastasianwidth));\n\nvar eastasianwidthExports = eastasianwidth.exports;\nconst eastAsianWidth = /*@__PURE__*/getDefaultExportFromCjs(eastasianwidthExports);\n\nconst emojiRegex = () => {\n\t// https://mths.be/emoji\n\treturn /[#*0-9]\\uFE0F?\\u20E3|[\\xA9\\xAE\\u203C\\u2049\\u2122\\u2139\\u2194-\\u2199\\u21A9\\u21AA\\u231A\\u231B\\u2328\\u23CF\\u23ED-\\u23EF\\u23F1\\u23F2\\u23F8-\\u23FA\\u24C2\\u25AA\\u25AB\\u25B6\\u25C0\\u25FB\\u25FC\\u25FE\\u2600-\\u2604\\u260E\\u2611\\u2614\\u2615\\u2618\\u2620\\u2622\\u2623\\u2626\\u262A\\u262E\\u262F\\u2638-\\u263A\\u2640\\u2642\\u2648-\\u2653\\u265F\\u2660\\u2663\\u2665\\u2666\\u2668\\u267B\\u267E\\u267F\\u2692\\u2694-\\u2697\\u2699\\u269B\\u269C\\u26A0\\u26A7\\u26AA\\u26B0\\u26B1\\u26BD\\u26BE\\u26C4\\u26C8\\u26CF\\u26D1\\u26D3\\u26E9\\u26F0-\\u26F5\\u26F7\\u26F8\\u26FA\\u2702\\u2708\\u2709\\u270F\\u2712\\u2714\\u2716\\u271D\\u2721\\u2733\\u2734\\u2744\\u2747\\u2757\\u2763\\u27A1\\u2934\\u2935\\u2B05-\\u2B07\\u2B1B\\u2B1C\\u2B55\\u3030\\u303D\\u3297\\u3299]\\uFE0F?|[\\u261D\\u270C\\u270D](?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?|[\\u270A\\u270B](?:\\uD83C[\\uDFFB-\\uDFFF])?|[\\u23E9-\\u23EC\\u23F0\\u23F3\\u25FD\\u2693\\u26A1\\u26AB\\u26C5\\u26CE\\u26D4\\u26EA\\u26FD\\u2705\\u2728\\u274C\\u274E\\u2753-\\u2755\\u2795-\\u2797\\u27B0\\u27BF\\u2B50]|\\u26F9(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\u2764\\uFE0F?(?:\\u200D(?:\\uD83D\\uDD25|\\uD83E\\uDE79))?|\\uD83C(?:[\\uDC04\\uDD70\\uDD71\\uDD7E\\uDD7F\\uDE02\\uDE37\\uDF21\\uDF24-\\uDF2C\\uDF36\\uDF7D\\uDF96\\uDF97\\uDF99-\\uDF9B\\uDF9E\\uDF9F\\uDFCD\\uDFCE\\uDFD4-\\uDFD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DC09-\\uDC14\\uDC16-\\uDC25\\uDC27-\\uDC3A\\uDC3C-\\uDC3E\\uDC40\\uDC44\\uDC45\\uDC51-\\uDC65\\uDC6A\\uDC79-\\uDC7B\\uDC7D-\\uDC80\\uDC84\\uDC88-\\uDC8E\\uDC90\\uDC92-\\uDCA9\\uDCAB-\\uDCFC\\uDCFF-\\uDD3D\\uDD4B-\\uDD4E\\uDD50-\\uDD67\\uDDA4\\uDDFB-\\uDE2D\\uDE2F-\\uDE34\\uDE37-\\uDE44\\uDE48-\\uDE4A\\uDE80-\\uDEA2\\uDEA4-\\uDEB3\\uDEB7-\\uDEBF\\uDEC1-\\uDEC5\\uDED0-\\uDED2\\uDED5-\\uDED7\\uDEDC-\\uDEDF\\uDEEB\\uDEEC\\uDEF4-\\uDEFC\\uDFE0-\\uDFEB\\uDFF0]|\\uDC15(?:\\u200D\\uD83E\\uDDBA)?|\\uDC3B(?:\\u200D\\u2744\\uFE0F?)?|\\uDC41\\uFE0F?(?:\\u200D\\uD83D\\uDDE8\\uFE0F?)?|\\uDC68(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDC68\\uDC69]\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?)|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?\\uDC68\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D\\uDC68\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC69(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:\\uDC8B\\u200D\\uD83D)?[\\uDC68\\uDC69]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D(?:[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?|\\uDC69\\u200D\\uD83D(?:\\uDC66(?:\\u200D\\uD83D\\uDC66)?|\\uDC67(?:\\u200D\\uD83D[\\uDC66\\uDC67])?))|\\uD83E[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD])|\\uD83C(?:\\uDFFB(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFC-\\uDFFF])))?|\\uDFFC(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])))?|\\uDFFD(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])))?|\\uDFFE(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D\\uD83D(?:[\\uDC68\\uDC69]|\\uDC8B\\u200D\\uD83D[\\uDC68\\uDC69])\\uD83C[\\uDFFB-\\uDFFF]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83D[\\uDC68\\uDC69]\\uD83C[\\uDFFB-\\uDFFE])))?))?|\\uDC6F(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDD75(?:\\uFE0F|\\uD83C[\\uDFFB-\\uDFFF])?(?:\\u200D[\\u2640\\u2642]\\uFE0F?)?|\\uDE2E(?:\\u200D\\uD83D\\uDCA8)?|\\uDE35(?:\\u200D\\uD83D\\uDCAB)?|\\uDE36(?:\\u200D\\uD83C\\uDF2B\\uFE0F?)?)|\\uD83E(?:[\\uDD0C\\uDD0F\\uDD18-\\uDD1F\\uDD30-\\uDD34\\uDD36\\uDD77\\uDDB5\\uDDB6\\uDDBB\\uDDD2\\uDDD3\\uDDD5\\uDEC3-\\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83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?|\\uDFFF(?:\\u200D(?:[\\u2695\\u2696\\u2708]\\uFE0F?|\\u2764\\uFE0F?\\u200D(?:\\uD83D\\uDC8B\\u200D)?\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFE]|\\uD83C[\\uDF3E\\uDF73\\uDF7C\\uDF84\\uDF93\\uDFA4\\uDFA8\\uDFEB\\uDFED]|\\uD83D[\\uDCBB\\uDCBC\\uDD27\\uDD2C\\uDE80\\uDE92]|\\uD83E(?:[\\uDDAF-\\uDDB3\\uDDBC\\uDDBD]|\\uDD1D\\u200D\\uD83E\\uDDD1\\uD83C[\\uDFFB-\\uDFFF])))?))?|\\uDEF1(?:\\uD83C(?:\\uDFFB(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFC-\\uDFFF])?|\\uDFFC(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFD-\\uDFFF])?|\\uDFFD(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB\\uDFFC\\uDFFE\\uDFFF])?|\\uDFFE(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFD\\uDFFF])?|\\uDFFF(?:\\u200D\\uD83E\\uDEF2\\uD83C[\\uDFFB-\\uDFFE])?))?)/g;\n};\n\nfunction stringWidth$1(string, options) {\n\tif (typeof string !== 'string' || string.length === 0) {\n\t\treturn 0;\n\t}\n\n\toptions = {\n\t\tambiguousIsNarrow: true,\n\t\tcountAnsiEscapeCodes: false,\n\t\t...options,\n\t};\n\n\tif (!options.countAnsiEscapeCodes) {\n\t\tstring = stripAnsi(string);\n\t}\n\n\tif (string.length === 0) {\n\t\treturn 0;\n\t}\n\n\tconst ambiguousCharacterWidth = options.ambiguousIsNarrow ? 1 : 2;\n\tlet width = 0;\n\n\tfor (const {segment: character} of new Intl.Segmenter().segment(string)) {\n\t\tconst codePoint = character.codePointAt(0);\n\n\t\t// Ignore control characters\n\t\tif (codePoint <= 0x1F || (codePoint >= 0x7F && codePoint <= 0x9F)) {\n\t\t\tcontinue;\n\t\t}\n\n\t\t// Ignore combining characters\n\t\tif (codePoint >= 0x3_00 && codePoint <= 0x3_6F) {\n\t\t\tcontinue;\n\t\t}\n\n\t\tif (emojiRegex().test(character)) {\n\t\t\twidth += 2;\n\t\t\tcontinue;\n\t\t}\n\n\t\tconst code = eastAsianWidth.eastAsianWidth(character);\n\t\tswitch (code) {\n\t\t\tcase 'F':\n\t\t\tcase 'W': {\n\t\t\t\twidth += 2;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tcase 'A': {\n\t\t\t\twidth += ambiguousCharacterWidth;\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tdefault: {\n\t\t\t\twidth += 1;\n\t\t\t}\n\t\t}\n\t}\n\n\treturn width;\n}\n\nfunction isUnicodeSupported() {\n\tif (process$1.platform !== 'win32') {\n\t\treturn process$1.env.TERM !== 'linux'; // Linux console (kernel)\n\t}\n\n\treturn Boolean(process$1.env.CI)\n\t\t|| Boolean(process$1.env.WT_SESSION) // Windows Terminal\n\t\t|| Boolean(process$1.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)\n\t\t|| process$1.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder\n\t\t|| process$1.env.TERM_PROGRAM === 'Terminus-Sublime'\n\t\t|| process$1.env.TERM_PROGRAM === 'vscode'\n\t\t|| process$1.env.TERM === 'xterm-256color'\n\t\t|| process$1.env.TERM === 'alacritty'\n\t\t|| process$1.env.TERMINAL_EMULATOR === 'JetBrains-JediTerm';\n}\n\nconst TYPE_COLOR_MAP = {\n info: \"cyan\",\n fail: \"red\",\n success: \"green\",\n ready: \"green\",\n start: \"magenta\"\n};\nconst LEVEL_COLOR_MAP = {\n 0: \"red\",\n 1: \"yellow\"\n};\nconst unicode = isUnicodeSupported();\nconst s = (c, fallback) => unicode ? c : fallback;\nconst TYPE_ICONS = {\n error: s(\"\\u2716\", \"\\xD7\"),\n fatal: s(\"\\u2716\", \"\\xD7\"),\n ready: s(\"\\u2714\", \"\\u221A\"),\n warn: s(\"\\u26A0\", \"\\u203C\"),\n info: s(\"\\u2139\", \"i\"),\n success: s(\"\\u2714\", \"\\u221A\"),\n debug: s(\"\\u2699\", \"D\"),\n trace: s(\"\\u2192\", \"\\u2192\"),\n fail: s(\"\\u2716\", \"\\xD7\"),\n start: s(\"\\u25D0\", \"o\"),\n log: \"\"\n};\nfunction stringWidth(str) {\n if (!Intl.Segmenter) {\n return stripAnsi$1(str).length;\n }\n return stringWidth$1(str);\n}\nclass FancyReporter extends BasicReporter {\n formatStack(stack) {\n return \"\\n\" + parseStack(stack).map(\n (line) => \" \" + line.replace(/^at +/, (m) => colors.gray(m)).replace(/\\((.+)\\)/, (_, m) => `(${colors.cyan(m)})`)\n ).join(\"\\n\");\n }\n formatType(logObj, isBadge, opts) {\n const typeColor = TYPE_COLOR_MAP[logObj.type] || LEVEL_COLOR_MAP[logObj.level] || \"gray\";\n if (isBadge) {\n return getBgColor(typeColor)(\n colors.black(` ${logObj.type.toUpperCase()} `)\n );\n }\n const _type = typeof TYPE_ICONS[logObj.type] === \"string\" ? TYPE_ICONS[logObj.type] : logObj.icon || logObj.type;\n return _type ? getColor(typeColor)(_type) : \"\";\n }\n formatLogObj(logObj, opts) {\n const [message, ...additional] = this.formatArgs(logObj.args, opts).split(\n \"\\n\"\n );\n if (logObj.type === \"box\") {\n return box(\n characterFormat(\n message + (additional.length > 0 ? \"\\n\" + additional.join(\"\\n\") : \"\")\n ),\n {\n title: logObj.title ? characterFormat(logObj.title) : void 0,\n style: logObj.style\n }\n );\n }\n const date = this.formatDate(logObj.date, opts);\n const coloredDate = date && colors.gray(date);\n const isBadge = logObj.badge ?? logObj.level < 2;\n const type = this.formatType(logObj, isBadge, opts);\n const tag = logObj.tag ? colors.gray(logObj.tag) : \"\";\n let line;\n const left = this.filterAndJoin([type, characterFormat(message)]);\n const right = this.filterAndJoin(opts.columns ? [tag, coloredDate] : [tag]);\n const space = (opts.columns || 0) - stringWidth(left) - stringWidth(right) - 2;\n line = space > 0 && (opts.columns || 0) >= 80 ? left + \" \".repeat(space) + right : (right ? `${colors.gray(`[${right}]`)} ` : \"\") + left;\n line += characterFormat(\n additional.length > 0 ? \"\\n\" + additional.join(\"\\n\") : \"\"\n );\n if (logObj.type === \"trace\") {\n const _err = new Error(\"Trace: \" + logObj.message);\n line += this.formatStack(_err.stack || \"\");\n }\n return isBadge ? \"\\n\" + line + \"\\n\" : line;\n }\n}\nfunction characterFormat(str) {\n return str.replace(/`([^`]+)`/gm, (_, m) => colors.cyan(m)).replace(/\\s+_([^_]+)_\\s+/gm, (_, m) => ` ${colors.underline(m)} `);\n}\nfunction getColor(color = \"white\") {\n return colors[color] || colors.white;\n}\nfunction getBgColor(color = \"bgWhite\") {\n return colors[`bg${color[0].toUpperCase()}${color.slice(1)}`] || colors.bgWhite;\n}\n\nfunction createConsola(options = {}) {\n let level = _getDefaultLogLevel();\n if (process.env.CONSOLA_LEVEL) {\n level = Number.parseInt(process.env.CONSOLA_LEVEL) ?? level;\n }\n const consola2 = createConsola$1({\n level,\n defaults: { level },\n stdout: process.stdout,\n stderr: process.stderr,\n prompt: (...args) => import('../chunks/prompt.mjs').then((m) => m.prompt(...args)),\n reporters: options.reporters || [\n options.fancy ?? !(isCI || isTest) ? new FancyReporter() : new BasicReporter()\n ],\n ...options\n });\n return consola2;\n}\nfunction _getDefaultLogLevel() {\n if (isDebug) {\n return LogLevels.debug;\n }\n if (isTest) {\n return LogLevels.warn;\n }\n return LogLevels.info;\n}\nconst consola = createConsola();\n\nexport { consola as a, createConsola as c, getDefaultExportFromCjs as g, isUnicodeSupported as i };\n",
|
|
43
|
-
"'use strict';\n\nconst { FORCE_COLOR, NODE_DISABLE_COLORS, TERM } = process.env;\n\nconst $ = {\n\tenabled: !NODE_DISABLE_COLORS && TERM !== 'dumb' && FORCE_COLOR !== '0',\n\n\t// modifiers\n\treset: init(0, 0),\n\tbold: init(1, 22),\n\tdim: init(2, 22),\n\titalic: init(3, 23),\n\tunderline: init(4, 24),\n\tinverse: init(7, 27),\n\thidden: init(8, 28),\n\tstrikethrough: init(9, 29),\n\n\t// colors\n\tblack: init(30, 39),\n\tred: init(31, 39),\n\tgreen: init(32, 39),\n\tyellow: init(33, 39),\n\tblue: init(34, 39),\n\tmagenta: init(35, 39),\n\tcyan: init(36, 39),\n\twhite: init(37, 39),\n\tgray: init(90, 39),\n\tgrey: init(90, 39),\n\n\t// background colors\n\tbgBlack: init(40, 49),\n\tbgRed: init(41, 49),\n\tbgGreen: init(42, 49),\n\tbgYellow: init(43, 49),\n\tbgBlue: init(44, 49),\n\tbgMagenta: init(45, 49),\n\tbgCyan: init(46, 49),\n\tbgWhite: init(47, 49)\n};\n\nfunction run(arr, str) {\n\tlet i=0, tmp, beg='', end='';\n\tfor (; i < arr.length; i++) {\n\t\ttmp = arr[i];\n\t\tbeg += tmp.open;\n\t\tend += tmp.close;\n\t\tif (str.includes(tmp.close)) {\n\t\t\tstr = str.replace(tmp.rgx, tmp.close + tmp.open);\n\t\t}\n\t}\n\treturn beg + str + end;\n}\n\nfunction chain(has, keys) {\n\tlet ctx = { has, keys };\n\n\tctx.reset = $.reset.bind(ctx);\n\tctx.bold = $.bold.bind(ctx);\n\tctx.dim = $.dim.bind(ctx);\n\tctx.italic = $.italic.bind(ctx);\n\tctx.underline = $.underline.bind(ctx);\n\tctx.inverse = $.inverse.bind(ctx);\n\tctx.hidden = $.hidden.bind(ctx);\n\tctx.strikethrough = $.strikethrough.bind(ctx);\n\n\tctx.black = $.black.bind(ctx);\n\tctx.red = $.red.bind(ctx);\n\tctx.green = $.green.bind(ctx);\n\tctx.yellow = $.yellow.bind(ctx);\n\tctx.blue = $.blue.bind(ctx);\n\tctx.magenta = $.magenta.bind(ctx);\n\tctx.cyan = $.cyan.bind(ctx);\n\tctx.white = $.white.bind(ctx);\n\tctx.gray = $.gray.bind(ctx);\n\tctx.grey = $.grey.bind(ctx);\n\n\tctx.bgBlack = $.bgBlack.bind(ctx);\n\tctx.bgRed = $.bgRed.bind(ctx);\n\tctx.bgGreen = $.bgGreen.bind(ctx);\n\tctx.bgYellow = $.bgYellow.bind(ctx);\n\tctx.bgBlue = $.bgBlue.bind(ctx);\n\tctx.bgMagenta = $.bgMagenta.bind(ctx);\n\tctx.bgCyan = $.bgCyan.bind(ctx);\n\tctx.bgWhite = $.bgWhite.bind(ctx);\n\n\treturn ctx;\n}\n\nfunction init(open, close) {\n\tlet blk = {\n\t\topen: `\\x1b[${open}m`,\n\t\tclose: `\\x1b[${close}m`,\n\t\trgx: new RegExp(`\\\\x1b\\\\[${close}m`, 'g')\n\t};\n\treturn function (txt) {\n\t\tif (this !== void 0 && this.has !== void 0) {\n\t\t\tthis.has.includes(open) || (this.has.push(open),this.keys.push(blk));\n\t\t\treturn txt === void 0 ? this : $.enabled ? run(this.keys, txt+'') : txt+'';\n\t\t}\n\t\treturn txt === void 0 ? chain([open], [blk]) : $.enabled ? run([blk], txt+'') : txt+'';\n\t};\n}\n\nmodule.exports = $;\n",
|
|
44
|
-
"'use strict';\n\nmodule.exports = (key, isSelect) => {\n if (key.meta && key.name !== 'escape') return;\n\n if (key.ctrl) {\n if (key.name === 'a') return 'first';\n if (key.name === 'c') return 'abort';\n if (key.name === 'd') return 'abort';\n if (key.name === 'e') return 'last';\n if (key.name === 'g') return 'reset';\n }\n\n if (isSelect) {\n if (key.name === 'j') return 'down';\n if (key.name === 'k') return 'up';\n }\n\n if (key.name === 'return') return 'submit';\n if (key.name === 'enter') return 'submit'; // ctrl + J\n\n if (key.name === 'backspace') return 'delete';\n if (key.name === 'delete') return 'deleteForward';\n if (key.name === 'abort') return 'abort';\n if (key.name === 'escape') return 'exit';\n if (key.name === 'tab') return 'next';\n if (key.name === 'pagedown') return 'nextPage';\n if (key.name === 'pageup') return 'prevPage'; // TODO create home() in prompt types (e.g. TextPrompt)\n\n if (key.name === 'home') return 'home'; // TODO create end() in prompt types (e.g. TextPrompt)\n\n if (key.name === 'end') return 'end';\n if (key.name === 'up') return 'up';\n if (key.name === 'down') return 'down';\n if (key.name === 'right') return 'right';\n if (key.name === 'left') return 'left';\n return false;\n};",
|
|
45
|
-
"'use strict';\n\nmodule.exports = str => {\n const pattern = ['[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)', '(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PRZcf-ntqry=><~]))'].join('|');\n const RGX = new RegExp(pattern, 'g');\n return typeof str === 'string' ? str.replace(RGX, '') : str;\n};",
|
|
46
|
-
"'use strict';\n\nconst ESC = '\\x1B';\nconst CSI = `${ESC}[`;\nconst beep = '\\u0007';\n\nconst cursor = {\n to(x, y) {\n if (!y) return `${CSI}${x + 1}G`;\n return `${CSI}${y + 1};${x + 1}H`;\n },\n move(x, y) {\n let ret = '';\n\n if (x < 0) ret += `${CSI}${-x}D`;\n else if (x > 0) ret += `${CSI}${x}C`;\n\n if (y < 0) ret += `${CSI}${-y}A`;\n else if (y > 0) ret += `${CSI}${y}B`;\n\n return ret;\n },\n up: (count = 1) => `${CSI}${count}A`,\n down: (count = 1) => `${CSI}${count}B`,\n forward: (count = 1) => `${CSI}${count}C`,\n backward: (count = 1) => `${CSI}${count}D`,\n nextLine: (count = 1) => `${CSI}E`.repeat(count),\n prevLine: (count = 1) => `${CSI}F`.repeat(count),\n left: `${CSI}G`,\n hide: `${CSI}?25l`,\n show: `${CSI}?25h`,\n save: `${ESC}7`,\n restore: `${ESC}8`\n}\n\nconst scroll = {\n up: (count = 1) => `${CSI}S`.repeat(count),\n down: (count = 1) => `${CSI}T`.repeat(count)\n}\n\nconst erase = {\n screen: `${CSI}2J`,\n up: (count = 1) => `${CSI}1J`.repeat(count),\n down: (count = 1) => `${CSI}J`.repeat(count),\n line: `${CSI}2K`,\n lineEnd: `${CSI}K`,\n lineStart: `${CSI}1K`,\n lines(count) {\n let clear = '';\n for (let i = 0; i < count; i++)\n clear += this.line + (i < count - 1 ? cursor.up() : '');\n if (count)\n clear += cursor.left;\n return clear;\n }\n}\n\nmodule.exports = { cursor, scroll, erase, beep };\n",
|
|
47
|
-
"'use strict';\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nconst strip = require('./strip');\n\nconst _require = require('sisteransi'),\n erase = _require.erase,\n cursor = _require.cursor;\n\nconst width = str => [...strip(str)].length;\n/**\n * @param {string} prompt\n * @param {number} perLine\n */\n\n\nmodule.exports = function (prompt, perLine) {\n if (!perLine) return erase.line + cursor.to(0);\n let rows = 0;\n const lines = prompt.split(/\\r?\\n/);\n\n var _iterator = _createForOfIteratorHelper(lines),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n let line = _step.value;\n rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return erase.lines(rows);\n};",
|
|
48
|
-
"'use strict';\n\nconst main = {\n arrowUp: '↑',\n arrowDown: '↓',\n arrowLeft: '←',\n arrowRight: '→',\n radioOn: '◉',\n radioOff: '◯',\n tick: '✔',\n cross: '✖',\n ellipsis: '…',\n pointerSmall: '›',\n line: '─',\n pointer: '❯'\n};\nconst win = {\n arrowUp: main.arrowUp,\n arrowDown: main.arrowDown,\n arrowLeft: main.arrowLeft,\n arrowRight: main.arrowRight,\n radioOn: '(*)',\n radioOff: '( )',\n tick: '√',\n cross: '×',\n ellipsis: '...',\n pointerSmall: '»',\n line: '─',\n pointer: '>'\n};\nconst figures = process.platform === 'win32' ? win : main;\nmodule.exports = figures;",
|
|
49
|
-
"'use strict';\n\nconst c = require('kleur');\n\nconst figures = require('./figures'); // rendering user input.\n\n\nconst styles = Object.freeze({\n password: {\n scale: 1,\n render: input => '*'.repeat(input.length)\n },\n emoji: {\n scale: 2,\n render: input => '😃'.repeat(input.length)\n },\n invisible: {\n scale: 0,\n render: input => ''\n },\n default: {\n scale: 1,\n render: input => `${input}`\n }\n});\n\nconst render = type => styles[type] || styles.default; // icon to signalize a prompt.\n\n\nconst symbols = Object.freeze({\n aborted: c.red(figures.cross),\n done: c.green(figures.tick),\n exited: c.yellow(figures.cross),\n default: c.cyan('?')\n});\n\nconst symbol = (done, aborted, exited) => aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default; // between the question and the user's input.\n\n\nconst delimiter = completing => c.gray(completing ? figures.ellipsis : figures.pointerSmall);\n\nconst item = (expandable, expanded) => c.gray(expandable ? expanded ? figures.pointerSmall : '+' : figures.line);\n\nmodule.exports = {\n styles,\n render,\n symbols,\n symbol,\n delimiter,\n item\n};",
|
|
50
|
-
"'use strict';\n\nconst strip = require('./strip');\n/**\n * @param {string} msg\n * @param {number} perLine\n */\n\n\nmodule.exports = function (msg, perLine) {\n let lines = String(strip(msg) || '').split(/\\r?\\n/);\n if (!perLine) return lines.length;\n return lines.map(l => Math.ceil(l.length / perLine)).reduce((a, b) => a + b);\n};",
|
|
51
|
-
"'use strict';\n/**\n * @param {string} msg The message to wrap\n * @param {object} opts\n * @param {number|string} [opts.margin] Left margin\n * @param {number} opts.width Maximum characters per line including the margin\n */\n\nmodule.exports = (msg, opts = {}) => {\n const tab = Number.isSafeInteger(parseInt(opts.margin)) ? new Array(parseInt(opts.margin)).fill(' ').join('') : opts.margin || '';\n const width = opts.width;\n return (msg || '').split(/\\r?\\n/g).map(line => line.split(/\\s+/g).reduce((arr, w) => {\n if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width) arr[arr.length - 1] += ` ${w}`;else arr.push(`${tab}${w}`);\n return arr;\n }, [tab]).join('\\n')).join('\\n');\n};",
|
|
52
|
-
"'use strict';\n/**\n * Determine what entries should be displayed on the screen, based on the\n * currently selected index and the maximum visible. Used in list-based\n * prompts like `select` and `multiselect`.\n *\n * @param {number} cursor the currently selected entry\n * @param {number} total the total entries available to display\n * @param {number} [maxVisible] the number of entries that can be displayed\n */\n\nmodule.exports = (cursor, total, maxVisible) => {\n maxVisible = maxVisible || total;\n let startIndex = Math.min(total - maxVisible, cursor - Math.floor(maxVisible / 2));\n if (startIndex < 0) startIndex = 0;\n let endIndex = Math.min(startIndex + maxVisible, total);\n return {\n startIndex,\n endIndex\n };\n};",
|
|
53
|
-
"'use strict';\n\nmodule.exports = {\n action: require('./action'),\n clear: require('./clear'),\n style: require('./style'),\n strip: require('./strip'),\n figures: require('./figures'),\n lines: require('./lines'),\n wrap: require('./wrap'),\n entriesToDisplay: require('./entriesToDisplay')\n};",
|
|
54
|
-
"'use strict';\n\nconst readline = require('readline');\n\nconst _require = require('../util'),\n action = _require.action;\n\nconst EventEmitter = require('events');\n\nconst _require2 = require('sisteransi'),\n beep = _require2.beep,\n cursor = _require2.cursor;\n\nconst color = require('kleur');\n/**\n * Base prompt skeleton\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\n\n\nclass Prompt extends EventEmitter {\n constructor(opts = {}) {\n super();\n this.firstRender = true;\n this.in = opts.stdin || process.stdin;\n this.out = opts.stdout || process.stdout;\n\n this.onRender = (opts.onRender || (() => void 0)).bind(this);\n\n const rl = readline.createInterface({\n input: this.in,\n escapeCodeTimeout: 50\n });\n readline.emitKeypressEvents(this.in, rl);\n if (this.in.isTTY) this.in.setRawMode(true);\n const isSelect = ['SelectPrompt', 'MultiselectPrompt'].indexOf(this.constructor.name) > -1;\n\n const keypress = (str, key) => {\n let a = action(key, isSelect);\n\n if (a === false) {\n this._ && this._(str, key);\n } else if (typeof this[a] === 'function') {\n this[a](key);\n } else {\n this.bell();\n }\n };\n\n this.close = () => {\n this.out.write(cursor.show);\n this.in.removeListener('keypress', keypress);\n if (this.in.isTTY) this.in.setRawMode(false);\n rl.close();\n this.emit(this.aborted ? 'abort' : this.exited ? 'exit' : 'submit', this.value);\n this.closed = true;\n };\n\n this.in.on('keypress', keypress);\n }\n\n fire() {\n this.emit('state', {\n value: this.value,\n aborted: !!this.aborted,\n exited: !!this.exited\n });\n }\n\n bell() {\n this.out.write(beep);\n }\n\n render() {\n this.onRender(color);\n if (this.firstRender) this.firstRender = false;\n }\n\n}\n\nmodule.exports = Prompt;",
|
|
55
|
-
"\"use strict\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('sisteransi'),\n erase = _require.erase,\n cursor = _require.cursor;\n\nconst _require2 = require('../util'),\n style = _require2.style,\n clear = _require2.clear,\n lines = _require2.lines,\n figures = _require2.figures;\n/**\n * TextPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {String} [opts.style='default'] Render style\n * @param {String} [opts.initial] Default value\n * @param {Function} [opts.validate] Validate function\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.error] The invalid error label\n */\n\n\nclass TextPrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.transform = style.render(opts.style);\n this.scale = this.transform.scale;\n this.msg = opts.message;\n this.initial = opts.initial || ``;\n\n this.validator = opts.validate || (() => true);\n\n this.value = ``;\n this.errorMsg = opts.error || `Please Enter A Valid Value`;\n this.cursor = Number(!!this.initial);\n this.cursorOffset = 0;\n this.clear = clear(``, this.out.columns);\n this.render();\n }\n\n set value(v) {\n if (!v && this.initial) {\n this.placeholder = true;\n this.rendered = color.gray(this.transform.render(this.initial));\n } else {\n this.placeholder = false;\n this.rendered = this.transform.render(v);\n }\n\n this._value = v;\n this.fire();\n }\n\n get value() {\n return this._value;\n }\n\n reset() {\n this.value = ``;\n this.cursor = Number(!!this.initial);\n this.cursorOffset = 0;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.value = this.value || this.initial;\n this.done = this.aborted = true;\n this.error = false;\n this.red = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n validate() {\n var _this = this;\n\n return _asyncToGenerator(function* () {\n let valid = yield _this.validator(_this.value);\n\n if (typeof valid === `string`) {\n _this.errorMsg = valid;\n valid = false;\n }\n\n _this.error = !valid;\n })();\n }\n\n submit() {\n var _this2 = this;\n\n return _asyncToGenerator(function* () {\n _this2.value = _this2.value || _this2.initial;\n _this2.cursorOffset = 0;\n _this2.cursor = _this2.rendered.length;\n yield _this2.validate();\n\n if (_this2.error) {\n _this2.red = true;\n\n _this2.fire();\n\n _this2.render();\n\n return;\n }\n\n _this2.done = true;\n _this2.aborted = false;\n\n _this2.fire();\n\n _this2.render();\n\n _this2.out.write('\\n');\n\n _this2.close();\n })();\n }\n\n next() {\n if (!this.placeholder) return this.bell();\n this.value = this.initial;\n this.cursor = this.rendered.length;\n this.fire();\n this.render();\n }\n\n moveCursor(n) {\n if (this.placeholder) return;\n this.cursor = this.cursor + n;\n this.cursorOffset += n;\n }\n\n _(c, key) {\n let s1 = this.value.slice(0, this.cursor);\n let s2 = this.value.slice(this.cursor);\n this.value = `${s1}${c}${s2}`;\n this.red = false;\n this.cursor = this.placeholder ? 0 : s1.length + 1;\n this.render();\n }\n\n delete() {\n if (this.isCursorAtStart()) return this.bell();\n let s1 = this.value.slice(0, this.cursor - 1);\n let s2 = this.value.slice(this.cursor);\n this.value = `${s1}${s2}`;\n this.red = false;\n\n if (this.isCursorAtStart()) {\n this.cursorOffset = 0;\n } else {\n this.cursorOffset++;\n this.moveCursor(-1);\n }\n\n this.render();\n }\n\n deleteForward() {\n if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();\n let s1 = this.value.slice(0, this.cursor);\n let s2 = this.value.slice(this.cursor + 1);\n this.value = `${s1}${s2}`;\n this.red = false;\n\n if (this.isCursorAtEnd()) {\n this.cursorOffset = 0;\n } else {\n this.cursorOffset++;\n }\n\n this.render();\n }\n\n first() {\n this.cursor = 0;\n this.render();\n }\n\n last() {\n this.cursor = this.value.length;\n this.render();\n }\n\n left() {\n if (this.cursor <= 0 || this.placeholder) return this.bell();\n this.moveCursor(-1);\n this.render();\n }\n\n right() {\n if (this.cursor * this.scale >= this.rendered.length || this.placeholder) return this.bell();\n this.moveCursor(1);\n this.render();\n }\n\n isCursorAtStart() {\n return this.cursor === 0 || this.placeholder && this.cursor === 1;\n }\n\n isCursorAtEnd() {\n return this.cursor === this.rendered.length || this.placeholder && this.cursor === this.rendered.length + 1;\n }\n\n render() {\n if (this.closed) return;\n\n if (!this.firstRender) {\n if (this.outputError) this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));\n this.out.write(clear(this.outputText, this.out.columns));\n }\n\n super.render();\n this.outputError = '';\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.red ? color.red(this.rendered) : this.rendered].join(` `);\n\n if (this.error) {\n this.outputError += this.errorMsg.split(`\\n`).reduce((a, l, i) => a + `\\n${i ? ' ' : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));\n }\n\n}\n\nmodule.exports = TextPrompt;",
|
|
56
|
-
"'use strict';\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('../util'),\n style = _require.style,\n clear = _require.clear,\n figures = _require.figures,\n wrap = _require.wrap,\n entriesToDisplay = _require.entriesToDisplay;\n\nconst _require2 = require('sisteransi'),\n cursor = _require2.cursor;\n/**\n * SelectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {Number} [opts.initial] Index of default value\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {Number} [opts.optionsPerPage=10] Max options to display at once\n */\n\n\nclass SelectPrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.hint = opts.hint || '- Use arrow-keys. Return to submit.';\n this.warn = opts.warn || '- This option is disabled';\n this.cursor = opts.initial || 0;\n this.choices = opts.choices.map((ch, idx) => {\n if (typeof ch === 'string') ch = {\n title: ch,\n value: idx\n };\n return {\n title: ch && (ch.title || ch.value || ch),\n value: ch && (ch.value === undefined ? idx : ch.value),\n description: ch && ch.description,\n selected: ch && ch.selected,\n disabled: ch && ch.disabled\n };\n });\n this.optionsPerPage = opts.optionsPerPage || 10;\n this.value = (this.choices[this.cursor] || {}).value;\n this.clear = clear('', this.out.columns);\n this.render();\n }\n\n moveCursor(n) {\n this.cursor = n;\n this.value = this.choices[n].value;\n this.fire();\n }\n\n reset() {\n this.moveCursor(0);\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n if (!this.selection.disabled) {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n } else this.bell();\n }\n\n first() {\n this.moveCursor(0);\n this.render();\n }\n\n last() {\n this.moveCursor(this.choices.length - 1);\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.moveCursor(this.choices.length - 1);\n } else {\n this.moveCursor(this.cursor - 1);\n }\n\n this.render();\n }\n\n down() {\n if (this.cursor === this.choices.length - 1) {\n this.moveCursor(0);\n } else {\n this.moveCursor(this.cursor + 1);\n }\n\n this.render();\n }\n\n next() {\n this.moveCursor((this.cursor + 1) % this.choices.length);\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') return this.submit();\n }\n\n get selection() {\n return this.choices[this.cursor];\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n let _entriesToDisplay = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage),\n startIndex = _entriesToDisplay.startIndex,\n endIndex = _entriesToDisplay.endIndex; // Print prompt\n\n\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.done ? this.selection.title : this.selection.disabled ? color.yellow(this.warn) : color.gray(this.hint)].join(' '); // Print choices\n\n if (!this.done) {\n this.outputText += '\\n';\n\n for (let i = startIndex; i < endIndex; i++) {\n let title,\n prefix,\n desc = '',\n v = this.choices[i]; // Determine whether to display \"more choices\" indicators\n\n if (i === startIndex && startIndex > 0) {\n prefix = figures.arrowUp;\n } else if (i === endIndex - 1 && endIndex < this.choices.length) {\n prefix = figures.arrowDown;\n } else {\n prefix = ' ';\n }\n\n if (v.disabled) {\n title = this.cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);\n prefix = (this.cursor === i ? color.bold().gray(figures.pointer) + ' ' : ' ') + prefix;\n } else {\n title = this.cursor === i ? color.cyan().underline(v.title) : v.title;\n prefix = (this.cursor === i ? color.cyan(figures.pointer) + ' ' : ' ') + prefix;\n\n if (v.description && this.cursor === i) {\n desc = ` - ${v.description}`;\n\n if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, {\n margin: 3,\n width: this.out.columns\n });\n }\n }\n }\n\n this.outputText += `${prefix} ${title}${color.gray(desc)}\\n`;\n }\n }\n\n this.out.write(this.outputText);\n }\n\n}\n\nmodule.exports = SelectPrompt;",
|
|
57
|
-
"\"use strict\";\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('../util'),\n style = _require.style,\n clear = _require.clear;\n\nconst _require2 = require('sisteransi'),\n cursor = _require2.cursor,\n erase = _require2.erase;\n/**\n * TogglePrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Boolean} [opts.initial=false] Default value\n * @param {String} [opts.active='no'] Active label\n * @param {String} [opts.inactive='off'] Inactive label\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\n\n\nclass TogglePrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.value = !!opts.initial;\n this.active = opts.active || 'on';\n this.inactive = opts.inactive || 'off';\n this.initialValue = this.value;\n this.render();\n }\n\n reset() {\n this.value = this.initialValue;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n deactivate() {\n if (this.value === false) return this.bell();\n this.value = false;\n this.render();\n }\n\n activate() {\n if (this.value === true) return this.bell();\n this.value = true;\n this.render();\n }\n\n delete() {\n this.deactivate();\n }\n\n left() {\n this.deactivate();\n }\n\n right() {\n this.activate();\n }\n\n down() {\n this.deactivate();\n }\n\n up() {\n this.activate();\n }\n\n next() {\n this.value = !this.value;\n this.fire();\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.value = !this.value;\n } else if (c === '1') {\n this.value = true;\n } else if (c === '0') {\n this.value = false;\n } else return this.bell();\n\n this.render();\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.value ? this.inactive : color.cyan().underline(this.inactive), color.gray('/'), this.value ? color.cyan().underline(this.active) : this.active].join(' ');\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n\n}\n\nmodule.exports = TogglePrompt;",
|
|
58
|
-
"'use strict';\n\nclass DatePart {\n constructor({\n token,\n date,\n parts,\n locales\n }) {\n this.token = token;\n this.date = date || new Date();\n this.parts = parts || [this];\n this.locales = locales || {};\n }\n\n up() {}\n\n down() {}\n\n next() {\n const currentIdx = this.parts.indexOf(this);\n return this.parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);\n }\n\n setTo(val) {}\n\n prev() {\n let parts = [].concat(this.parts).reverse();\n const currentIdx = parts.indexOf(this);\n return parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);\n }\n\n toString() {\n return String(this.date);\n }\n\n}\n\nmodule.exports = DatePart;",
|
|
59
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Meridiem extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setHours((this.date.getHours() + 12) % 24);\n }\n\n down() {\n this.up();\n }\n\n toString() {\n let meridiem = this.date.getHours() > 12 ? 'pm' : 'am';\n return /\\A/.test(this.token) ? meridiem.toUpperCase() : meridiem;\n }\n\n}\n\nmodule.exports = Meridiem;",
|
|
60
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nconst pos = n => {\n n = n % 10;\n return n === 1 ? 'st' : n === 2 ? 'nd' : n === 3 ? 'rd' : 'th';\n};\n\nclass Day extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setDate(this.date.getDate() + 1);\n }\n\n down() {\n this.date.setDate(this.date.getDate() - 1);\n }\n\n setTo(val) {\n this.date.setDate(parseInt(val.substr(-2)));\n }\n\n toString() {\n let date = this.date.getDate();\n let day = this.date.getDay();\n return this.token === 'DD' ? String(date).padStart(2, '0') : this.token === 'Do' ? date + pos(date) : this.token === 'd' ? day + 1 : this.token === 'ddd' ? this.locales.weekdaysShort[day] : this.token === 'dddd' ? this.locales.weekdays[day] : date;\n }\n\n}\n\nmodule.exports = Day;",
|
|
61
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Hours extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setHours(this.date.getHours() + 1);\n }\n\n down() {\n this.date.setHours(this.date.getHours() - 1);\n }\n\n setTo(val) {\n this.date.setHours(parseInt(val.substr(-2)));\n }\n\n toString() {\n let hours = this.date.getHours();\n if (/h/.test(this.token)) hours = hours % 12 || 12;\n return this.token.length > 1 ? String(hours).padStart(2, '0') : hours;\n }\n\n}\n\nmodule.exports = Hours;",
|
|
62
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Milliseconds extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setMilliseconds(this.date.getMilliseconds() + 1);\n }\n\n down() {\n this.date.setMilliseconds(this.date.getMilliseconds() - 1);\n }\n\n setTo(val) {\n this.date.setMilliseconds(parseInt(val.substr(-this.token.length)));\n }\n\n toString() {\n return String(this.date.getMilliseconds()).padStart(4, '0').substr(0, this.token.length);\n }\n\n}\n\nmodule.exports = Milliseconds;",
|
|
63
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Minutes extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setMinutes(this.date.getMinutes() + 1);\n }\n\n down() {\n this.date.setMinutes(this.date.getMinutes() - 1);\n }\n\n setTo(val) {\n this.date.setMinutes(parseInt(val.substr(-2)));\n }\n\n toString() {\n let m = this.date.getMinutes();\n return this.token.length > 1 ? String(m).padStart(2, '0') : m;\n }\n\n}\n\nmodule.exports = Minutes;",
|
|
64
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Month extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setMonth(this.date.getMonth() + 1);\n }\n\n down() {\n this.date.setMonth(this.date.getMonth() - 1);\n }\n\n setTo(val) {\n val = parseInt(val.substr(-2)) - 1;\n this.date.setMonth(val < 0 ? 0 : val);\n }\n\n toString() {\n let month = this.date.getMonth();\n let tl = this.token.length;\n return tl === 2 ? String(month + 1).padStart(2, '0') : tl === 3 ? this.locales.monthsShort[month] : tl === 4 ? this.locales.months[month] : String(month + 1);\n }\n\n}\n\nmodule.exports = Month;",
|
|
65
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Seconds extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setSeconds(this.date.getSeconds() + 1);\n }\n\n down() {\n this.date.setSeconds(this.date.getSeconds() - 1);\n }\n\n setTo(val) {\n this.date.setSeconds(parseInt(val.substr(-2)));\n }\n\n toString() {\n let s = this.date.getSeconds();\n return this.token.length > 1 ? String(s).padStart(2, '0') : s;\n }\n\n}\n\nmodule.exports = Seconds;",
|
|
66
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Year extends DatePart {\n constructor(opts = {}) {\n super(opts);\n }\n\n up() {\n this.date.setFullYear(this.date.getFullYear() + 1);\n }\n\n down() {\n this.date.setFullYear(this.date.getFullYear() - 1);\n }\n\n setTo(val) {\n this.date.setFullYear(val.substr(-4));\n }\n\n toString() {\n let year = String(this.date.getFullYear()).padStart(4, '0');\n return this.token.length === 2 ? year.substr(-2) : year;\n }\n\n}\n\nmodule.exports = Year;",
|
|
67
|
-
"'use strict';\n\nmodule.exports = {\n DatePart: require('./datepart'),\n Meridiem: require('./meridiem'),\n Day: require('./day'),\n Hours: require('./hours'),\n Milliseconds: require('./milliseconds'),\n Minutes: require('./minutes'),\n Month: require('./month'),\n Seconds: require('./seconds'),\n Year: require('./year')\n};",
|
|
68
|
-
"'use strict';\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('../util'),\n style = _require.style,\n clear = _require.clear,\n figures = _require.figures;\n\nconst _require2 = require('sisteransi'),\n erase = _require2.erase,\n cursor = _require2.cursor;\n\nconst _require3 = require('../dateparts'),\n DatePart = _require3.DatePart,\n Meridiem = _require3.Meridiem,\n Day = _require3.Day,\n Hours = _require3.Hours,\n Milliseconds = _require3.Milliseconds,\n Minutes = _require3.Minutes,\n Month = _require3.Month,\n Seconds = _require3.Seconds,\n Year = _require3.Year;\n\nconst regex = /\\\\(.)|\"((?:\\\\[\"\\\\]|[^\"])+)\"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;\nconst regexGroups = {\n 1: ({\n token\n }) => token.replace(/\\\\(.)/g, '$1'),\n 2: opts => new Day(opts),\n // Day // TODO\n 3: opts => new Month(opts),\n // Month\n 4: opts => new Year(opts),\n // Year\n 5: opts => new Meridiem(opts),\n // AM/PM // TODO (special)\n 6: opts => new Hours(opts),\n // Hours\n 7: opts => new Minutes(opts),\n // Minutes\n 8: opts => new Seconds(opts),\n // Seconds\n 9: opts => new Milliseconds(opts) // Fractional seconds\n\n};\nconst dfltLocales = {\n months: 'January,February,March,April,May,June,July,August,September,October,November,December'.split(','),\n monthsShort: 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(','),\n weekdays: 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','),\n weekdaysShort: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(',')\n};\n/**\n * DatePrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Number} [opts.initial] Index of default value\n * @param {String} [opts.mask] The format mask\n * @param {object} [opts.locales] The date locales\n * @param {String} [opts.error] The error message shown on invalid value\n * @param {Function} [opts.validate] Function to validate the submitted value\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\n\nclass DatePrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.cursor = 0;\n this.typed = '';\n this.locales = Object.assign(dfltLocales, opts.locales);\n this._date = opts.initial || new Date();\n this.errorMsg = opts.error || 'Please Enter A Valid Value';\n\n this.validator = opts.validate || (() => true);\n\n this.mask = opts.mask || 'YYYY-MM-DD HH:mm:ss';\n this.clear = clear('', this.out.columns);\n this.render();\n }\n\n get value() {\n return this.date;\n }\n\n get date() {\n return this._date;\n }\n\n set date(date) {\n if (date) this._date.setTime(date.getTime());\n }\n\n set mask(mask) {\n let result;\n this.parts = [];\n\n while (result = regex.exec(mask)) {\n let match = result.shift();\n let idx = result.findIndex(gr => gr != null);\n this.parts.push(idx in regexGroups ? regexGroups[idx]({\n token: result[idx] || match,\n date: this.date,\n parts: this.parts,\n locales: this.locales\n }) : result[idx] || match);\n }\n\n let parts = this.parts.reduce((arr, i) => {\n if (typeof i === 'string' && typeof arr[arr.length - 1] === 'string') arr[arr.length - 1] += i;else arr.push(i);\n return arr;\n }, []);\n this.parts.splice(0);\n this.parts.push(...parts);\n this.reset();\n }\n\n moveCursor(n) {\n this.typed = '';\n this.cursor = n;\n this.fire();\n }\n\n reset() {\n this.moveCursor(this.parts.findIndex(p => p instanceof DatePart));\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.error = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n validate() {\n var _this = this;\n\n return _asyncToGenerator(function* () {\n let valid = yield _this.validator(_this.value);\n\n if (typeof valid === 'string') {\n _this.errorMsg = valid;\n valid = false;\n }\n\n _this.error = !valid;\n })();\n }\n\n submit() {\n var _this2 = this;\n\n return _asyncToGenerator(function* () {\n yield _this2.validate();\n\n if (_this2.error) {\n _this2.color = 'red';\n\n _this2.fire();\n\n _this2.render();\n\n return;\n }\n\n _this2.done = true;\n _this2.aborted = false;\n\n _this2.fire();\n\n _this2.render();\n\n _this2.out.write('\\n');\n\n _this2.close();\n })();\n }\n\n up() {\n this.typed = '';\n this.parts[this.cursor].up();\n this.render();\n }\n\n down() {\n this.typed = '';\n this.parts[this.cursor].down();\n this.render();\n }\n\n left() {\n let prev = this.parts[this.cursor].prev();\n if (prev == null) return this.bell();\n this.moveCursor(this.parts.indexOf(prev));\n this.render();\n }\n\n right() {\n let next = this.parts[this.cursor].next();\n if (next == null) return this.bell();\n this.moveCursor(this.parts.indexOf(next));\n this.render();\n }\n\n next() {\n let next = this.parts[this.cursor].next();\n this.moveCursor(next ? this.parts.indexOf(next) : this.parts.findIndex(part => part instanceof DatePart));\n this.render();\n }\n\n _(c) {\n if (/\\d/.test(c)) {\n this.typed += c;\n this.parts[this.cursor].setTo(this.typed);\n this.render();\n }\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));\n super.render(); // Print prompt\n\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.parts.reduce((arr, p, idx) => arr.concat(idx === this.cursor && !this.done ? color.cyan().underline(p.toString()) : p), []).join('')].join(' '); // Print error\n\n if (this.error) {\n this.outputText += this.errorMsg.split('\\n').reduce((a, l, i) => a + `\\n${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n\n}\n\nmodule.exports = DatePrompt;",
|
|
69
|
-
"\"use strict\";\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('sisteransi'),\n cursor = _require.cursor,\n erase = _require.erase;\n\nconst _require2 = require('../util'),\n style = _require2.style,\n figures = _require2.figures,\n clear = _require2.clear,\n lines = _require2.lines;\n\nconst isNumber = /[0-9]/;\n\nconst isDef = any => any !== undefined;\n\nconst round = (number, precision) => {\n let factor = Math.pow(10, precision);\n return Math.round(number * factor) / factor;\n};\n/**\n * NumberPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {String} [opts.style='default'] Render style\n * @param {Number} [opts.initial] Default value\n * @param {Number} [opts.max=+Infinity] Max value\n * @param {Number} [opts.min=-Infinity] Min value\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {Function} [opts.validate] Validate function\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.error] The invalid error label\n */\n\n\nclass NumberPrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.transform = style.render(opts.style);\n this.msg = opts.message;\n this.initial = isDef(opts.initial) ? opts.initial : '';\n this.float = !!opts.float;\n this.round = opts.round || 2;\n this.inc = opts.increment || 1;\n this.min = isDef(opts.min) ? opts.min : -Infinity;\n this.max = isDef(opts.max) ? opts.max : Infinity;\n this.errorMsg = opts.error || `Please Enter A Valid Value`;\n\n this.validator = opts.validate || (() => true);\n\n this.color = `cyan`;\n this.value = ``;\n this.typed = ``;\n this.lastHit = 0;\n this.render();\n }\n\n set value(v) {\n if (!v && v !== 0) {\n this.placeholder = true;\n this.rendered = color.gray(this.transform.render(`${this.initial}`));\n this._value = ``;\n } else {\n this.placeholder = false;\n this.rendered = this.transform.render(`${round(v, this.round)}`);\n this._value = round(v, this.round);\n }\n\n this.fire();\n }\n\n get value() {\n return this._value;\n }\n\n parse(x) {\n return this.float ? parseFloat(x) : parseInt(x);\n }\n\n valid(c) {\n return c === `-` || c === `.` && this.float || isNumber.test(c);\n }\n\n reset() {\n this.typed = ``;\n this.value = ``;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n let x = this.value;\n this.value = x !== `` ? x : this.initial;\n this.done = this.aborted = true;\n this.error = false;\n this.fire();\n this.render();\n this.out.write(`\\n`);\n this.close();\n }\n\n validate() {\n var _this = this;\n\n return _asyncToGenerator(function* () {\n let valid = yield _this.validator(_this.value);\n\n if (typeof valid === `string`) {\n _this.errorMsg = valid;\n valid = false;\n }\n\n _this.error = !valid;\n })();\n }\n\n submit() {\n var _this2 = this;\n\n return _asyncToGenerator(function* () {\n yield _this2.validate();\n\n if (_this2.error) {\n _this2.color = `red`;\n\n _this2.fire();\n\n _this2.render();\n\n return;\n }\n\n let x = _this2.value;\n _this2.value = x !== `` ? x : _this2.initial;\n _this2.done = true;\n _this2.aborted = false;\n _this2.error = false;\n\n _this2.fire();\n\n _this2.render();\n\n _this2.out.write(`\\n`);\n\n _this2.close();\n })();\n }\n\n up() {\n this.typed = ``;\n\n if (this.value === '') {\n this.value = this.min - this.inc;\n }\n\n if (this.value >= this.max) return this.bell();\n this.value += this.inc;\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n down() {\n this.typed = ``;\n\n if (this.value === '') {\n this.value = this.min + this.inc;\n }\n\n if (this.value <= this.min) return this.bell();\n this.value -= this.inc;\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n delete() {\n let val = this.value.toString();\n if (val.length === 0) return this.bell();\n this.value = this.parse(val = val.slice(0, -1)) || ``;\n\n if (this.value !== '' && this.value < this.min) {\n this.value = this.min;\n }\n\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n next() {\n this.value = this.initial;\n this.fire();\n this.render();\n }\n\n _(c, key) {\n if (!this.valid(c)) return this.bell();\n const now = Date.now();\n if (now - this.lastHit > 1000) this.typed = ``; // 1s elapsed\n\n this.typed += c;\n this.lastHit = now;\n this.color = `cyan`;\n if (c === `.`) return this.fire();\n this.value = Math.min(this.parse(this.typed), this.max);\n if (this.value > this.max) this.value = this.max;\n if (this.value < this.min) this.value = this.min;\n this.fire();\n this.render();\n }\n\n render() {\n if (this.closed) return;\n\n if (!this.firstRender) {\n if (this.outputError) this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));\n this.out.write(clear(this.outputText, this.out.columns));\n }\n\n super.render();\n this.outputError = ''; // Print prompt\n\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), !this.done || !this.done && !this.placeholder ? color[this.color]().underline(this.rendered) : this.rendered].join(` `); // Print error\n\n if (this.error) {\n this.outputError += this.errorMsg.split(`\\n`).reduce((a, l, i) => a + `\\n${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);\n }\n\n}\n\nmodule.exports = NumberPrompt;",
|
|
70
|
-
"'use strict';\n\nconst color = require('kleur');\n\nconst _require = require('sisteransi'),\n cursor = _require.cursor;\n\nconst Prompt = require('./prompt');\n\nconst _require2 = require('../util'),\n clear = _require2.clear,\n figures = _require2.figures,\n style = _require2.style,\n wrap = _require2.wrap,\n entriesToDisplay = _require2.entriesToDisplay;\n/**\n * MultiselectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {String} [opts.warn] Hint shown for disabled choices\n * @param {Number} [opts.max] Max choices\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {Number} [opts.optionsPerPage=10] Max options to display at once\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\n\n\nclass MultiselectPrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.cursor = opts.cursor || 0;\n this.scrollIndex = opts.cursor || 0;\n this.hint = opts.hint || '';\n this.warn = opts.warn || '- This option is disabled -';\n this.minSelected = opts.min;\n this.showMinError = false;\n this.maxChoices = opts.max;\n this.instructions = opts.instructions;\n this.optionsPerPage = opts.optionsPerPage || 10;\n this.value = opts.choices.map((ch, idx) => {\n if (typeof ch === 'string') ch = {\n title: ch,\n value: idx\n };\n return {\n title: ch && (ch.title || ch.value || ch),\n description: ch && ch.description,\n value: ch && (ch.value === undefined ? idx : ch.value),\n selected: ch && ch.selected,\n disabled: ch && ch.disabled\n };\n });\n this.clear = clear('', this.out.columns);\n\n if (!opts.overrideRender) {\n this.render();\n }\n }\n\n reset() {\n this.value.map(v => !v.selected);\n this.cursor = 0;\n this.fire();\n this.render();\n }\n\n selected() {\n return this.value.filter(v => v.selected);\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n const selected = this.value.filter(e => e.selected);\n\n if (this.minSelected && selected.length < this.minSelected) {\n this.showMinError = true;\n this.render();\n } else {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n }\n\n first() {\n this.cursor = 0;\n this.render();\n }\n\n last() {\n this.cursor = this.value.length - 1;\n this.render();\n }\n\n next() {\n this.cursor = (this.cursor + 1) % this.value.length;\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.cursor = this.value.length - 1;\n } else {\n this.cursor--;\n }\n\n this.render();\n }\n\n down() {\n if (this.cursor === this.value.length - 1) {\n this.cursor = 0;\n } else {\n this.cursor++;\n }\n\n this.render();\n }\n\n left() {\n this.value[this.cursor].selected = false;\n this.render();\n }\n\n right() {\n if (this.value.filter(e => e.selected).length >= this.maxChoices) return this.bell();\n this.value[this.cursor].selected = true;\n this.render();\n }\n\n handleSpaceToggle() {\n const v = this.value[this.cursor];\n\n if (v.selected) {\n v.selected = false;\n this.render();\n } else if (v.disabled || this.value.filter(e => e.selected).length >= this.maxChoices) {\n return this.bell();\n } else {\n v.selected = true;\n this.render();\n }\n }\n\n toggleAll() {\n if (this.maxChoices !== undefined || this.value[this.cursor].disabled) {\n return this.bell();\n }\n\n const newSelected = !this.value[this.cursor].selected;\n this.value.filter(v => !v.disabled).forEach(v => v.selected = newSelected);\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.handleSpaceToggle();\n } else if (c === 'a') {\n this.toggleAll();\n } else {\n return this.bell();\n }\n }\n\n renderInstructions() {\n if (this.instructions === undefined || this.instructions) {\n if (typeof this.instructions === 'string') {\n return this.instructions;\n }\n\n return '\\nInstructions:\\n' + ` ${figures.arrowUp}/${figures.arrowDown}: Highlight option\\n` + ` ${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection\\n` + (this.maxChoices === undefined ? ` a: Toggle all\\n` : '') + ` enter/return: Complete answer`;\n }\n\n return '';\n }\n\n renderOption(cursor, v, i, arrowIndicator) {\n const prefix = (v.selected ? color.green(figures.radioOn) : figures.radioOff) + ' ' + arrowIndicator + ' ';\n let title, desc;\n\n if (v.disabled) {\n title = cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);\n } else {\n title = cursor === i ? color.cyan().underline(v.title) : v.title;\n\n if (cursor === i && v.description) {\n desc = ` - ${v.description}`;\n\n if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, {\n margin: prefix.length,\n width: this.out.columns\n });\n }\n }\n }\n\n return prefix + title + color.gray(desc || '');\n } // shared with autocompleteMultiselect\n\n\n paginateOptions(options) {\n if (options.length === 0) {\n return color.red('No matches for this query.');\n }\n\n let _entriesToDisplay = entriesToDisplay(this.cursor, options.length, this.optionsPerPage),\n startIndex = _entriesToDisplay.startIndex,\n endIndex = _entriesToDisplay.endIndex;\n\n let prefix,\n styledOptions = [];\n\n for (let i = startIndex; i < endIndex; i++) {\n if (i === startIndex && startIndex > 0) {\n prefix = figures.arrowUp;\n } else if (i === endIndex - 1 && endIndex < options.length) {\n prefix = figures.arrowDown;\n } else {\n prefix = ' ';\n }\n\n styledOptions.push(this.renderOption(this.cursor, options[i], i, prefix));\n }\n\n return '\\n' + styledOptions.join('\\n');\n } // shared with autocomleteMultiselect\n\n\n renderOptions(options) {\n if (!this.done) {\n return this.paginateOptions(options);\n }\n\n return '';\n }\n\n renderDoneOrInstructions() {\n if (this.done) {\n return this.value.filter(e => e.selected).map(v => v.title).join(', ');\n }\n\n const output = [color.gray(this.hint), this.renderInstructions()];\n\n if (this.value[this.cursor].disabled) {\n output.push(color.yellow(this.warn));\n }\n\n return output.join(' ');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n super.render(); // print prompt\n\n let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.renderDoneOrInstructions()].join(' ');\n\n if (this.showMinError) {\n prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`);\n this.showMinError = false;\n }\n\n prompt += this.renderOptions(this.value);\n this.out.write(this.clear + prompt);\n this.clear = clear(prompt, this.out.columns);\n }\n\n}\n\nmodule.exports = MultiselectPrompt;",
|
|
71
|
-
"'use strict';\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('sisteransi'),\n erase = _require.erase,\n cursor = _require.cursor;\n\nconst _require2 = require('../util'),\n style = _require2.style,\n clear = _require2.clear,\n figures = _require2.figures,\n wrap = _require2.wrap,\n entriesToDisplay = _require2.entriesToDisplay;\n\nconst getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);\n\nconst getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);\n\nconst getIndex = (arr, valOrTitle) => {\n const index = arr.findIndex(el => el.value === valOrTitle || el.title === valOrTitle);\n return index > -1 ? index : undefined;\n};\n/**\n * TextPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of auto-complete choices objects\n * @param {Function} [opts.suggest] Filter function. Defaults to sort by title\n * @param {Number} [opts.limit=10] Max number of results to show\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {String} [opts.style='default'] Render style\n * @param {String} [opts.fallback] Fallback message - initial to default value\n * @param {String} [opts.initial] Index of the default value\n * @param {Boolean} [opts.clearFirst] The first ESCAPE keypress will clear the input\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.noMatches] The no matches found label\n */\n\n\nclass AutocompletePrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.suggest = opts.suggest;\n this.choices = opts.choices;\n this.initial = typeof opts.initial === 'number' ? opts.initial : getIndex(opts.choices, opts.initial);\n this.select = this.initial || opts.cursor || 0;\n this.i18n = {\n noMatches: opts.noMatches || 'no matches found'\n };\n this.fallback = opts.fallback || this.initial;\n this.clearFirst = opts.clearFirst || false;\n this.suggestions = [];\n this.input = '';\n this.limit = opts.limit || 10;\n this.cursor = 0;\n this.transform = style.render(opts.style);\n this.scale = this.transform.scale;\n this.render = this.render.bind(this);\n this.complete = this.complete.bind(this);\n this.clear = clear('', this.out.columns);\n this.complete(this.render);\n this.render();\n }\n\n set fallback(fb) {\n this._fb = Number.isSafeInteger(parseInt(fb)) ? parseInt(fb) : fb;\n }\n\n get fallback() {\n let choice;\n if (typeof this._fb === 'number') choice = this.choices[this._fb];else if (typeof this._fb === 'string') choice = {\n title: this._fb\n };\n return choice || this._fb || {\n title: this.i18n.noMatches\n };\n }\n\n moveSelect(i) {\n this.select = i;\n if (this.suggestions.length > 0) this.value = getVal(this.suggestions, i);else this.value = this.fallback.value;\n this.fire();\n }\n\n complete(cb) {\n var _this = this;\n\n return _asyncToGenerator(function* () {\n const p = _this.completing = _this.suggest(_this.input, _this.choices);\n\n const suggestions = yield p;\n if (_this.completing !== p) return;\n _this.suggestions = suggestions.map((s, i, arr) => ({\n title: getTitle(arr, i),\n value: getVal(arr, i),\n description: s.description\n }));\n _this.completing = false;\n const l = Math.max(suggestions.length - 1, 0);\n\n _this.moveSelect(Math.min(l, _this.select));\n\n cb && cb();\n })();\n }\n\n reset() {\n this.input = '';\n this.complete(() => {\n this.moveSelect(this.initial !== void 0 ? this.initial : 0);\n this.render();\n });\n this.render();\n }\n\n exit() {\n if (this.clearFirst && this.input.length > 0) {\n this.reset();\n } else {\n this.done = this.exited = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n }\n\n abort() {\n this.done = this.aborted = true;\n this.exited = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.done = true;\n this.aborted = this.exited = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n _(c, key) {\n let s1 = this.input.slice(0, this.cursor);\n let s2 = this.input.slice(this.cursor);\n this.input = `${s1}${c}${s2}`;\n this.cursor = s1.length + 1;\n this.complete(this.render);\n this.render();\n }\n\n delete() {\n if (this.cursor === 0) return this.bell();\n let s1 = this.input.slice(0, this.cursor - 1);\n let s2 = this.input.slice(this.cursor);\n this.input = `${s1}${s2}`;\n this.complete(this.render);\n this.cursor = this.cursor - 1;\n this.render();\n }\n\n deleteForward() {\n if (this.cursor * this.scale >= this.rendered.length) return this.bell();\n let s1 = this.input.slice(0, this.cursor);\n let s2 = this.input.slice(this.cursor + 1);\n this.input = `${s1}${s2}`;\n this.complete(this.render);\n this.render();\n }\n\n first() {\n this.moveSelect(0);\n this.render();\n }\n\n last() {\n this.moveSelect(this.suggestions.length - 1);\n this.render();\n }\n\n up() {\n if (this.select === 0) {\n this.moveSelect(this.suggestions.length - 1);\n } else {\n this.moveSelect(this.select - 1);\n }\n\n this.render();\n }\n\n down() {\n if (this.select === this.suggestions.length - 1) {\n this.moveSelect(0);\n } else {\n this.moveSelect(this.select + 1);\n }\n\n this.render();\n }\n\n next() {\n if (this.select === this.suggestions.length - 1) {\n this.moveSelect(0);\n } else this.moveSelect(this.select + 1);\n\n this.render();\n }\n\n nextPage() {\n this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1));\n this.render();\n }\n\n prevPage() {\n this.moveSelect(Math.max(this.select - this.limit, 0));\n this.render();\n }\n\n left() {\n if (this.cursor <= 0) return this.bell();\n this.cursor = this.cursor - 1;\n this.render();\n }\n\n right() {\n if (this.cursor * this.scale >= this.rendered.length) return this.bell();\n this.cursor = this.cursor + 1;\n this.render();\n }\n\n renderOption(v, hovered, isStart, isEnd) {\n let desc;\n let prefix = isStart ? figures.arrowUp : isEnd ? figures.arrowDown : ' ';\n let title = hovered ? color.cyan().underline(v.title) : v.title;\n prefix = (hovered ? color.cyan(figures.pointer) + ' ' : ' ') + prefix;\n\n if (v.description) {\n desc = ` - ${v.description}`;\n\n if (prefix.length + title.length + desc.length >= this.out.columns || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, {\n margin: 3,\n width: this.out.columns\n });\n }\n }\n\n return prefix + ' ' + title + color.gray(desc || '');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n let _entriesToDisplay = entriesToDisplay(this.select, this.choices.length, this.limit),\n startIndex = _entriesToDisplay.startIndex,\n endIndex = _entriesToDisplay.endIndex;\n\n this.outputText = [style.symbol(this.done, this.aborted, this.exited), color.bold(this.msg), style.delimiter(this.completing), this.done && this.suggestions[this.select] ? this.suggestions[this.select].title : this.rendered = this.transform.render(this.input)].join(' ');\n\n if (!this.done) {\n const suggestions = this.suggestions.slice(startIndex, endIndex).map((item, i) => this.renderOption(item, this.select === i + startIndex, i === 0 && startIndex > 0, i + startIndex === endIndex - 1 && endIndex < this.choices.length)).join('\\n');\n this.outputText += `\\n` + (suggestions || color.gray(this.fallback.title));\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n\n}\n\nmodule.exports = AutocompletePrompt;",
|
|
72
|
-
"'use strict';\n\nconst color = require('kleur');\n\nconst _require = require('sisteransi'),\n cursor = _require.cursor;\n\nconst MultiselectPrompt = require('./multiselect');\n\nconst _require2 = require('../util'),\n clear = _require2.clear,\n style = _require2.style,\n figures = _require2.figures;\n/**\n * MultiselectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {String} [opts.warn] Hint shown for disabled choices\n * @param {Number} [opts.max] Max choices\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\n\n\nclass AutocompleteMultiselectPrompt extends MultiselectPrompt {\n constructor(opts = {}) {\n opts.overrideRender = true;\n super(opts);\n this.inputValue = '';\n this.clear = clear('', this.out.columns);\n this.filteredOptions = this.value;\n this.render();\n }\n\n last() {\n this.cursor = this.filteredOptions.length - 1;\n this.render();\n }\n\n next() {\n this.cursor = (this.cursor + 1) % this.filteredOptions.length;\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.cursor = this.filteredOptions.length - 1;\n } else {\n this.cursor--;\n }\n\n this.render();\n }\n\n down() {\n if (this.cursor === this.filteredOptions.length - 1) {\n this.cursor = 0;\n } else {\n this.cursor++;\n }\n\n this.render();\n }\n\n left() {\n this.filteredOptions[this.cursor].selected = false;\n this.render();\n }\n\n right() {\n if (this.value.filter(e => e.selected).length >= this.maxChoices) return this.bell();\n this.filteredOptions[this.cursor].selected = true;\n this.render();\n }\n\n delete() {\n if (this.inputValue.length) {\n this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1);\n this.updateFilteredOptions();\n }\n }\n\n updateFilteredOptions() {\n const currentHighlight = this.filteredOptions[this.cursor];\n this.filteredOptions = this.value.filter(v => {\n if (this.inputValue) {\n if (typeof v.title === 'string') {\n if (v.title.toLowerCase().includes(this.inputValue.toLowerCase())) {\n return true;\n }\n }\n\n if (typeof v.value === 'string') {\n if (v.value.toLowerCase().includes(this.inputValue.toLowerCase())) {\n return true;\n }\n }\n\n return false;\n }\n\n return true;\n });\n const newHighlightIndex = this.filteredOptions.findIndex(v => v === currentHighlight);\n this.cursor = newHighlightIndex < 0 ? 0 : newHighlightIndex;\n this.render();\n }\n\n handleSpaceToggle() {\n const v = this.filteredOptions[this.cursor];\n\n if (v.selected) {\n v.selected = false;\n this.render();\n } else if (v.disabled || this.value.filter(e => e.selected).length >= this.maxChoices) {\n return this.bell();\n } else {\n v.selected = true;\n this.render();\n }\n }\n\n handleInputChange(c) {\n this.inputValue = this.inputValue + c;\n this.updateFilteredOptions();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.handleSpaceToggle();\n } else {\n this.handleInputChange(c);\n }\n }\n\n renderInstructions() {\n if (this.instructions === undefined || this.instructions) {\n if (typeof this.instructions === 'string') {\n return this.instructions;\n }\n\n return `\nInstructions:\n ${figures.arrowUp}/${figures.arrowDown}: Highlight option\n ${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`;\n }\n\n return '';\n }\n\n renderCurrentInput() {\n return `\nFiltered results for: ${this.inputValue ? this.inputValue : color.gray('Enter something to filter')}\\n`;\n }\n\n renderOption(cursor, v, i) {\n let title;\n if (v.disabled) title = cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);else title = cursor === i ? color.cyan().underline(v.title) : v.title;\n return (v.selected ? color.green(figures.radioOn) : figures.radioOff) + ' ' + title;\n }\n\n renderDoneOrInstructions() {\n if (this.done) {\n return this.value.filter(e => e.selected).map(v => v.title).join(', ');\n }\n\n const output = [color.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()];\n\n if (this.filteredOptions.length && this.filteredOptions[this.cursor].disabled) {\n output.push(color.yellow(this.warn));\n }\n\n return output.join(' ');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n super.render(); // print prompt\n\n let prompt = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(false), this.renderDoneOrInstructions()].join(' ');\n\n if (this.showMinError) {\n prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`);\n this.showMinError = false;\n }\n\n prompt += this.renderOptions(this.filteredOptions);\n this.out.write(this.clear + prompt);\n this.clear = clear(prompt, this.out.columns);\n }\n\n}\n\nmodule.exports = AutocompleteMultiselectPrompt;",
|
|
73
|
-
"\"use strict\";\n\nconst color = require('kleur');\n\nconst Prompt = require('./prompt');\n\nconst _require = require('../util'),\n style = _require.style,\n clear = _require.clear;\n\nconst _require2 = require('sisteransi'),\n erase = _require2.erase,\n cursor = _require2.cursor;\n/**\n * ConfirmPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Boolean} [opts.initial] Default value (true/false)\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.yes] The \"Yes\" label\n * @param {String} [opts.yesOption] The \"Yes\" option when choosing between yes/no\n * @param {String} [opts.no] The \"No\" label\n * @param {String} [opts.noOption] The \"No\" option when choosing between yes/no\n */\n\n\nclass ConfirmPrompt extends Prompt {\n constructor(opts = {}) {\n super(opts);\n this.msg = opts.message;\n this.value = opts.initial;\n this.initialValue = !!opts.initial;\n this.yesMsg = opts.yes || 'yes';\n this.yesOption = opts.yesOption || '(Y/n)';\n this.noMsg = opts.no || 'no';\n this.noOption = opts.noOption || '(y/N)';\n this.render();\n }\n\n reset() {\n this.value = this.initialValue;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.value = this.value || false;\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n _(c, key) {\n if (c.toLowerCase() === 'y') {\n this.value = true;\n return this.submit();\n }\n\n if (c.toLowerCase() === 'n') {\n this.value = false;\n return this.submit();\n }\n\n return this.bell();\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n this.outputText = [style.symbol(this.done, this.aborted), color.bold(this.msg), style.delimiter(this.done), this.done ? this.value ? this.yesMsg : this.noMsg : color.gray(this.initialValue ? this.yesOption : this.noOption)].join(' ');\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n\n}\n\nmodule.exports = ConfirmPrompt;",
|
|
74
|
-
"'use strict';\n\nmodule.exports = {\n TextPrompt: require('./text'),\n SelectPrompt: require('./select'),\n TogglePrompt: require('./toggle'),\n DatePrompt: require('./date'),\n NumberPrompt: require('./number'),\n MultiselectPrompt: require('./multiselect'),\n AutocompletePrompt: require('./autocomplete'),\n AutocompleteMultiselectPrompt: require('./autocompleteMultiselect'),\n ConfirmPrompt: require('./confirm')\n};",
|
|
75
|
-
"'use strict';\n\nconst $ = exports;\n\nconst el = require('./elements');\n\nconst noop = v => v;\n\nfunction toPrompt(type, args, opts = {}) {\n return new Promise((res, rej) => {\n const p = new el[type](args);\n const onAbort = opts.onAbort || noop;\n const onSubmit = opts.onSubmit || noop;\n const onExit = opts.onExit || noop;\n p.on('state', args.onState || noop);\n p.on('submit', x => res(onSubmit(x)));\n p.on('exit', x => res(onExit(x)));\n p.on('abort', x => rej(onAbort(x)));\n });\n}\n/**\n * Text prompt\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.text = args => toPrompt('TextPrompt', args);\n/**\n * Password prompt with masked input\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.password = args => {\n args.style = 'password';\n return $.text(args);\n};\n/**\n * Prompt where input is invisible, like sudo\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.invisible = args => {\n args.style = 'invisible';\n return $.text(args);\n};\n/**\n * Number prompt\n * @param {string} args.message Prompt message to display\n * @param {number} args.initial Default number value\n * @param {function} [args.onState] On state change callback\n * @param {number} [args.max] Max value\n * @param {number} [args.min] Min value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.number = args => toPrompt('NumberPrompt', args);\n/**\n * Date prompt\n * @param {string} args.message Prompt message to display\n * @param {number} args.initial Default number value\n * @param {function} [args.onState] On state change callback\n * @param {number} [args.max] Max value\n * @param {number} [args.min] Min value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.date = args => toPrompt('DatePrompt', args);\n/**\n * Classic yes/no prompt\n * @param {string} args.message Prompt message to display\n * @param {boolean} [args.initial=false] Default value\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.confirm = args => toPrompt('ConfirmPrompt', args);\n/**\n * List prompt, split intput string by `seperator`\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {string} [args.separator] String separator\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input, in form of an `Array`\n */\n\n\n$.list = args => {\n const sep = args.separator || ',';\n return toPrompt('TextPrompt', args, {\n onSubmit: str => str.split(sep).map(s => s.trim())\n });\n};\n/**\n * Toggle/switch prompt\n * @param {string} args.message Prompt message to display\n * @param {boolean} [args.initial=false] Default value\n * @param {string} [args.active=\"on\"] Text for `active` state\n * @param {string} [args.inactive=\"off\"] Text for `inactive` state\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.toggle = args => toPrompt('TogglePrompt', args);\n/**\n * Interactive select prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of choices objects `[{ title, value }, ...]`\n * @param {number} [args.initial] Index of default value\n * @param {String} [args.hint] Hint to display\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.select = args => toPrompt('SelectPrompt', args);\n/**\n * Interactive multi-select / autocompleteMultiselect prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of choices objects `[{ title, value, [selected] }, ...]`\n * @param {number} [args.max] Max select\n * @param {string} [args.hint] Hint to display user\n * @param {Number} [args.cursor=0] Cursor start position\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.multiselect = args => {\n args.choices = [].concat(args.choices || []);\n\n const toSelected = items => items.filter(item => item.selected).map(item => item.value);\n\n return toPrompt('MultiselectPrompt', args, {\n onAbort: toSelected,\n onSubmit: toSelected\n });\n};\n\n$.autocompleteMultiselect = args => {\n args.choices = [].concat(args.choices || []);\n\n const toSelected = items => items.filter(item => item.selected).map(item => item.value);\n\n return toPrompt('AutocompleteMultiselectPrompt', args, {\n onAbort: toSelected,\n onSubmit: toSelected\n });\n};\n\nconst byTitle = (input, choices) => Promise.resolve(choices.filter(item => item.title.slice(0, input.length).toLowerCase() === input.toLowerCase()));\n/**\n * Interactive auto-complete prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of auto-complete choices objects `[{ title, value }, ...]`\n * @param {Function} [args.suggest] Function to filter results based on user input. Defaults to sort by `title`\n * @param {number} [args.limit=10] Max number of results to show\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {String} [args.initial] Index of the default value\n * @param {boolean} [opts.clearFirst] The first ESCAPE keypress will clear the input\n * @param {String} [args.fallback] Fallback message - defaults to initial value\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n\n\n$.autocomplete = args => {\n args.suggest = args.suggest || byTitle;\n args.choices = [].concat(args.choices || []);\n return toPrompt('AutocompletePrompt', args);\n};",
|
|
76
|
-
"'use strict';\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\n\nfunction _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }\n\nfunction _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== \"undefined\" && o[Symbol.iterator] || o[\"@@iterator\"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\"); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }\n\nfunction _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === \"string\") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === \"Object\" && o.constructor) n = o.constructor.name; if (n === \"Map\" || n === \"Set\") return Array.from(o); if (n === \"Arguments\" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }\n\nfunction _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }\n\nfunction asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }\n\nfunction _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"next\", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, \"throw\", err); } _next(undefined); }); }; }\n\nconst prompts = require('./prompts');\n\nconst passOn = ['suggest', 'format', 'onState', 'validate', 'onRender', 'type'];\n\nconst noop = () => {};\n/**\n * Prompt for a series of questions\n * @param {Array|Object} questions Single question object or Array of question objects\n * @param {Function} [onSubmit] Callback function called on prompt submit\n * @param {Function} [onCancel] Callback function called on cancel/abort\n * @returns {Object} Object with values from user input\n */\n\n\nfunction prompt() {\n return _prompt.apply(this, arguments);\n}\n\nfunction _prompt() {\n _prompt = _asyncToGenerator(function* (questions = [], {\n onSubmit = noop,\n onCancel = noop\n } = {}) {\n const answers = {};\n const override = prompt._override || {};\n questions = [].concat(questions);\n let answer, question, quit, name, type, lastPrompt;\n\n const getFormattedAnswer = /*#__PURE__*/function () {\n var _ref = _asyncToGenerator(function* (question, answer, skipValidation = false) {\n if (!skipValidation && question.validate && question.validate(answer) !== true) {\n return;\n }\n\n return question.format ? yield question.format(answer, answers) : answer;\n });\n\n return function getFormattedAnswer(_x, _x2) {\n return _ref.apply(this, arguments);\n };\n }();\n\n var _iterator = _createForOfIteratorHelper(questions),\n _step;\n\n try {\n for (_iterator.s(); !(_step = _iterator.n()).done;) {\n question = _step.value;\n var _question = question;\n name = _question.name;\n type = _question.type;\n\n // evaluate type first and skip if type is a falsy value\n if (typeof type === 'function') {\n type = yield type(answer, _objectSpread({}, answers), question);\n question['type'] = type;\n }\n\n if (!type) continue; // if property is a function, invoke it unless it's a special function\n\n for (let key in question) {\n if (passOn.includes(key)) continue;\n let value = question[key];\n question[key] = typeof value === 'function' ? yield value(answer, _objectSpread({}, answers), lastPrompt) : value;\n }\n\n lastPrompt = question;\n\n if (typeof question.message !== 'string') {\n throw new Error('prompt message is required');\n } // update vars in case they changed\n\n\n var _question2 = question;\n name = _question2.name;\n type = _question2.type;\n\n if (prompts[type] === void 0) {\n throw new Error(`prompt type (${type}) is not defined`);\n }\n\n if (override[question.name] !== undefined) {\n answer = yield getFormattedAnswer(question, override[question.name]);\n\n if (answer !== undefined) {\n answers[name] = answer;\n continue;\n }\n }\n\n try {\n // Get the injected answer if there is one or prompt the user\n answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : yield prompts[type](question);\n answers[name] = answer = yield getFormattedAnswer(question, answer, true);\n quit = yield onSubmit(question, answer, answers);\n } catch (err) {\n quit = !(yield onCancel(question, answers));\n }\n\n if (quit) return answers;\n }\n } catch (err) {\n _iterator.e(err);\n } finally {\n _iterator.f();\n }\n\n return answers;\n });\n return _prompt.apply(this, arguments);\n}\n\nfunction getInjectedAnswer(injected, deafultValue) {\n const answer = injected.shift();\n\n if (answer instanceof Error) {\n throw answer;\n }\n\n return answer === undefined ? deafultValue : answer;\n}\n\nfunction inject(answers) {\n prompt._injected = (prompt._injected || []).concat(answers);\n}\n\nfunction override(answers) {\n prompt._override = Object.assign({}, answers);\n}\n\nmodule.exports = Object.assign(prompt, {\n prompt,\n prompts,\n inject,\n override\n});",
|
|
77
|
-
"'use strict';\n\nmodule.exports = (key, isSelect) => {\n if (key.meta && key.name !== 'escape') return;\n \n if (key.ctrl) {\n if (key.name === 'a') return 'first';\n if (key.name === 'c') return 'abort';\n if (key.name === 'd') return 'abort';\n if (key.name === 'e') return 'last';\n if (key.name === 'g') return 'reset';\n }\n \n if (isSelect) {\n if (key.name === 'j') return 'down';\n if (key.name === 'k') return 'up';\n }\n\n if (key.name === 'return') return 'submit';\n if (key.name === 'enter') return 'submit'; // ctrl + J\n if (key.name === 'backspace') return 'delete';\n if (key.name === 'delete') return 'deleteForward';\n if (key.name === 'abort') return 'abort';\n if (key.name === 'escape') return 'exit';\n if (key.name === 'tab') return 'next';\n if (key.name === 'pagedown') return 'nextPage';\n if (key.name === 'pageup') return 'prevPage';\n // TODO create home() in prompt types (e.g. TextPrompt)\n if (key.name === 'home') return 'home';\n // TODO create end() in prompt types (e.g. TextPrompt)\n if (key.name === 'end') return 'end';\n\n if (key.name === 'up') return 'up';\n if (key.name === 'down') return 'down';\n if (key.name === 'right') return 'right';\n if (key.name === 'left') return 'left';\n\n return false;\n};\n",
|
|
78
|
-
"'use strict';\n\nmodule.exports = str => {\n const pattern = [\n '[\\\\u001B\\\\u009B][[\\\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]+)*|[a-zA-Z\\\\d]+(?:;[-a-zA-Z\\\\d\\\\/#&.:=?%@~_]*)*)?\\\\u0007)',\n '(?:(?:\\\\d{1,4}(?:;\\\\d{0,4})*)?[\\\\dA-PRZcf-ntqry=><~]))'\n ].join('|');\n\n const RGX = new RegExp(pattern, 'g');\n return typeof str === 'string' ? str.replace(RGX, '') : str;\n};\n",
|
|
79
|
-
"'use strict';\n\nconst strip = require('./strip');\nconst { erase, cursor } = require('sisteransi');\n\nconst width = str => [...strip(str)].length;\n\n/**\n * @param {string} prompt\n * @param {number} perLine\n */\nmodule.exports = function(prompt, perLine) {\n if (!perLine) return erase.line + cursor.to(0);\n\n let rows = 0;\n const lines = prompt.split(/\\r?\\n/);\n for (let line of lines) {\n rows += 1 + Math.floor(Math.max(width(line) - 1, 0) / perLine);\n }\n\n return erase.lines(rows);\n};\n",
|
|
80
|
-
"'use strict';\t\n\n const main = {\n arrowUp: '↑',\n arrowDown: '↓',\n arrowLeft: '←',\n arrowRight: '→',\n radioOn: '◉',\n radioOff: '◯',\n tick: '✔',\t\n cross: '✖',\t\n ellipsis: '…',\t\n pointerSmall: '›',\t\n line: '─',\t\n pointer: '❯'\t\n};\t\nconst win = {\n arrowUp: main.arrowUp,\n arrowDown: main.arrowDown,\n arrowLeft: main.arrowLeft,\n arrowRight: main.arrowRight,\n radioOn: '(*)',\n radioOff: '( )',\t\n tick: '√',\t\n cross: '×',\t\n ellipsis: '...',\t\n pointerSmall: '»',\t\n line: '─',\t\n pointer: '>'\t\n};\t\nconst figures = process.platform === 'win32' ? win : main;\t\n\n module.exports = figures;\n",
|
|
81
|
-
"'use strict';\n\nconst c = require('kleur');\nconst figures = require('./figures');\n\n// rendering user input.\nconst styles = Object.freeze({\n password: { scale: 1, render: input => '*'.repeat(input.length) },\n emoji: { scale: 2, render: input => '😃'.repeat(input.length) },\n invisible: { scale: 0, render: input => '' },\n default: { scale: 1, render: input => `${input}` }\n});\nconst render = type => styles[type] || styles.default;\n\n// icon to signalize a prompt.\nconst symbols = Object.freeze({\n aborted: c.red(figures.cross),\n done: c.green(figures.tick),\n exited: c.yellow(figures.cross),\n default: c.cyan('?')\n});\n\nconst symbol = (done, aborted, exited) =>\n aborted ? symbols.aborted : exited ? symbols.exited : done ? symbols.done : symbols.default;\n\n// between the question and the user's input.\nconst delimiter = completing =>\n c.gray(completing ? figures.ellipsis : figures.pointerSmall);\n\nconst item = (expandable, expanded) =>\n c.gray(expandable ? (expanded ? figures.pointerSmall : '+') : figures.line);\n\nmodule.exports = {\n styles,\n render,\n symbols,\n symbol,\n delimiter,\n item\n};\n",
|
|
82
|
-
"'use strict';\n\nconst strip = require('./strip');\n\n/**\n * @param {string} msg\n * @param {number} perLine\n */\nmodule.exports = function (msg, perLine) {\n let lines = String(strip(msg) || '').split(/\\r?\\n/);\n\n if (!perLine) return lines.length;\n return lines.map(l => Math.ceil(l.length / perLine))\n .reduce((a, b) => a + b);\n};\n",
|
|
83
|
-
"'use strict';\n\n/**\n * @param {string} msg The message to wrap\n * @param {object} opts\n * @param {number|string} [opts.margin] Left margin\n * @param {number} opts.width Maximum characters per line including the margin\n */\nmodule.exports = (msg, opts = {}) => {\n const tab = Number.isSafeInteger(parseInt(opts.margin))\n ? new Array(parseInt(opts.margin)).fill(' ').join('')\n : (opts.margin || '');\n\n const width = opts.width;\n\n return (msg || '').split(/\\r?\\n/g)\n .map(line => line\n .split(/\\s+/g)\n .reduce((arr, w) => {\n if (w.length + tab.length >= width || arr[arr.length - 1].length + w.length + 1 < width)\n arr[arr.length - 1] += ` ${w}`;\n else arr.push(`${tab}${w}`);\n return arr;\n }, [ tab ])\n .join('\\n'))\n .join('\\n');\n};\n",
|
|
84
|
-
"'use strict';\n\n/**\n * Determine what entries should be displayed on the screen, based on the\n * currently selected index and the maximum visible. Used in list-based\n * prompts like `select` and `multiselect`.\n *\n * @param {number} cursor the currently selected entry\n * @param {number} total the total entries available to display\n * @param {number} [maxVisible] the number of entries that can be displayed\n */\nmodule.exports = (cursor, total, maxVisible) => {\n maxVisible = maxVisible || total;\n\n let startIndex = Math.min(total- maxVisible, cursor - Math.floor(maxVisible / 2));\n if (startIndex < 0) startIndex = 0;\n\n let endIndex = Math.min(startIndex + maxVisible, total);\n\n return { startIndex, endIndex };\n};\n",
|
|
85
|
-
"'use strict';\n\nmodule.exports = {\n action: require('./action'),\n clear: require('./clear'),\n style: require('./style'),\n strip: require('./strip'),\n figures: require('./figures'),\n lines: require('./lines'),\n wrap: require('./wrap'),\n entriesToDisplay: require('./entriesToDisplay')\n};\n",
|
|
86
|
-
"'use strict';\n\nconst readline = require('readline');\nconst { action } = require('../util');\nconst EventEmitter = require('events');\nconst { beep, cursor } = require('sisteransi');\nconst color = require('kleur');\n\n/**\n * Base prompt skeleton\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\nclass Prompt extends EventEmitter {\n constructor(opts={}) {\n super();\n\n this.firstRender = true;\n this.in = opts.stdin || process.stdin;\n this.out = opts.stdout || process.stdout;\n this.onRender = (opts.onRender || (() => void 0)).bind(this);\n const rl = readline.createInterface({ input:this.in, escapeCodeTimeout:50 });\n readline.emitKeypressEvents(this.in, rl);\n\n if (this.in.isTTY) this.in.setRawMode(true);\n const isSelect = [ 'SelectPrompt', 'MultiselectPrompt' ].indexOf(this.constructor.name) > -1;\n const keypress = (str, key) => {\n let a = action(key, isSelect);\n if (a === false) {\n this._ && this._(str, key);\n } else if (typeof this[a] === 'function') {\n this[a](key);\n } else {\n this.bell();\n }\n };\n\n this.close = () => {\n this.out.write(cursor.show);\n this.in.removeListener('keypress', keypress);\n if (this.in.isTTY) this.in.setRawMode(false);\n rl.close();\n this.emit(this.aborted ? 'abort' : this.exited ? 'exit' : 'submit', this.value);\n this.closed = true;\n };\n\n this.in.on('keypress', keypress);\n }\n\n fire() {\n this.emit('state', {\n value: this.value,\n aborted: !!this.aborted,\n exited: !!this.exited\n });\n }\n\n bell() {\n this.out.write(beep);\n }\n\n render() {\n this.onRender(color);\n if (this.firstRender) this.firstRender = false;\n }\n}\n\nmodule.exports = Prompt;\n",
|
|
87
|
-
"const color = require('kleur');\nconst Prompt = require('./prompt');\nconst { erase, cursor } = require('sisteransi');\nconst { style, clear, lines, figures } = require('../util');\n\n/**\n * TextPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {String} [opts.style='default'] Render style\n * @param {String} [opts.initial] Default value\n * @param {Function} [opts.validate] Validate function\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.error] The invalid error label\n */\nclass TextPrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.transform = style.render(opts.style);\n this.scale = this.transform.scale;\n this.msg = opts.message;\n this.initial = opts.initial || ``;\n this.validator = opts.validate || (() => true);\n this.value = ``;\n this.errorMsg = opts.error || `Please Enter A Valid Value`;\n this.cursor = Number(!!this.initial);\n this.cursorOffset = 0;\n this.clear = clear(``, this.out.columns);\n this.render();\n }\n\n set value(v) {\n if (!v && this.initial) {\n this.placeholder = true;\n this.rendered = color.gray(this.transform.render(this.initial));\n } else {\n this.placeholder = false;\n this.rendered = this.transform.render(v);\n }\n this._value = v;\n this.fire();\n }\n\n get value() {\n return this._value;\n }\n\n reset() {\n this.value = ``;\n this.cursor = Number(!!this.initial);\n this.cursorOffset = 0;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.value = this.value || this.initial;\n this.done = this.aborted = true;\n this.error = false;\n this.red = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n async validate() {\n let valid = await this.validator(this.value);\n if (typeof valid === `string`) {\n this.errorMsg = valid;\n valid = false;\n }\n this.error = !valid;\n }\n\n async submit() {\n this.value = this.value || this.initial;\n this.cursorOffset = 0;\n this.cursor = this.rendered.length;\n await this.validate();\n if (this.error) {\n this.red = true;\n this.fire();\n this.render();\n return;\n }\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n next() {\n if (!this.placeholder) return this.bell();\n this.value = this.initial;\n this.cursor = this.rendered.length;\n this.fire();\n this.render();\n }\n\n moveCursor(n) {\n if (this.placeholder) return;\n this.cursor = this.cursor+n;\n this.cursorOffset += n;\n }\n\n _(c, key) {\n let s1 = this.value.slice(0, this.cursor);\n let s2 = this.value.slice(this.cursor);\n this.value = `${s1}${c}${s2}`;\n this.red = false;\n this.cursor = this.placeholder ? 0 : s1.length+1;\n this.render();\n }\n\n delete() {\n if (this.isCursorAtStart()) return this.bell();\n let s1 = this.value.slice(0, this.cursor-1);\n let s2 = this.value.slice(this.cursor);\n this.value = `${s1}${s2}`;\n this.red = false;\n if (this.isCursorAtStart()) {\n this.cursorOffset = 0\n } else {\n this.cursorOffset++;\n this.moveCursor(-1);\n }\n this.render();\n }\n\n deleteForward() {\n if(this.cursor*this.scale >= this.rendered.length || this.placeholder) return this.bell();\n let s1 = this.value.slice(0, this.cursor);\n let s2 = this.value.slice(this.cursor+1);\n this.value = `${s1}${s2}`;\n this.red = false;\n if (this.isCursorAtEnd()) {\n this.cursorOffset = 0;\n } else {\n this.cursorOffset++;\n }\n this.render();\n }\n\n first() {\n this.cursor = 0;\n this.render();\n }\n\n last() {\n this.cursor = this.value.length;\n this.render();\n }\n\n left() {\n if (this.cursor <= 0 || this.placeholder) return this.bell();\n this.moveCursor(-1);\n this.render();\n }\n\n right() {\n if (this.cursor*this.scale >= this.rendered.length || this.placeholder) return this.bell();\n this.moveCursor(1);\n this.render();\n }\n\n isCursorAtStart() {\n return this.cursor === 0 || (this.placeholder && this.cursor === 1);\n }\n\n isCursorAtEnd() {\n return this.cursor === this.rendered.length || (this.placeholder && this.cursor === this.rendered.length + 1)\n }\n\n render() {\n if (this.closed) return;\n if (!this.firstRender) {\n if (this.outputError)\n this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));\n this.out.write(clear(this.outputText, this.out.columns));\n }\n super.render();\n this.outputError = '';\n\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(this.done),\n this.red ? color.red(this.rendered) : this.rendered\n ].join(` `);\n\n if (this.error) {\n this.outputError += this.errorMsg.split(`\\n`)\n .reduce((a, l, i) => a + `\\n${i ? ' ' : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore + cursor.move(this.cursorOffset, 0));\n }\n}\n\nmodule.exports = TextPrompt;",
|
|
88
|
-
"'use strict';\n\nconst color = require('kleur');\nconst Prompt = require('./prompt');\nconst { style, clear, figures, wrap, entriesToDisplay } = require('../util');\nconst { cursor } = require('sisteransi');\n\n/**\n * SelectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {Number} [opts.initial] Index of default value\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {Number} [opts.optionsPerPage=10] Max options to display at once\n */\nclass SelectPrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.hint = opts.hint || '- Use arrow-keys. Return to submit.';\n this.warn = opts.warn || '- This option is disabled';\n this.cursor = opts.initial || 0;\n this.choices = opts.choices.map((ch, idx) => {\n if (typeof ch === 'string')\n ch = {title: ch, value: idx};\n return {\n title: ch && (ch.title || ch.value || ch),\n value: ch && (ch.value === undefined ? idx : ch.value),\n description: ch && ch.description,\n selected: ch && ch.selected,\n disabled: ch && ch.disabled\n };\n });\n this.optionsPerPage = opts.optionsPerPage || 10;\n this.value = (this.choices[this.cursor] || {}).value;\n this.clear = clear('', this.out.columns);\n this.render();\n }\n\n moveCursor(n) {\n this.cursor = n;\n this.value = this.choices[n].value;\n this.fire();\n }\n\n reset() {\n this.moveCursor(0);\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n if (!this.selection.disabled) {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n } else\n this.bell();\n }\n\n first() {\n this.moveCursor(0);\n this.render();\n }\n\n last() {\n this.moveCursor(this.choices.length - 1);\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.moveCursor(this.choices.length - 1);\n } else {\n this.moveCursor(this.cursor - 1);\n }\n this.render();\n }\n\n down() {\n if (this.cursor === this.choices.length - 1) {\n this.moveCursor(0);\n } else {\n this.moveCursor(this.cursor + 1);\n }\n this.render();\n }\n\n next() {\n this.moveCursor((this.cursor + 1) % this.choices.length);\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') return this.submit();\n }\n\n get selection() {\n return this.choices[this.cursor];\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n let { startIndex, endIndex } = entriesToDisplay(this.cursor, this.choices.length, this.optionsPerPage);\n\n // Print prompt\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(false),\n this.done ? this.selection.title : this.selection.disabled\n ? color.yellow(this.warn) : color.gray(this.hint)\n ].join(' ');\n\n // Print choices\n if (!this.done) {\n this.outputText += '\\n';\n for (let i = startIndex; i < endIndex; i++) {\n let title, prefix, desc = '', v = this.choices[i];\n\n // Determine whether to display \"more choices\" indicators\n if (i === startIndex && startIndex > 0) {\n prefix = figures.arrowUp;\n } else if (i === endIndex - 1 && endIndex < this.choices.length) {\n prefix = figures.arrowDown;\n } else {\n prefix = ' ';\n }\n\n if (v.disabled) {\n title = this.cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);\n prefix = (this.cursor === i ? color.bold().gray(figures.pointer) + ' ' : ' ') + prefix;\n } else {\n title = this.cursor === i ? color.cyan().underline(v.title) : v.title;\n prefix = (this.cursor === i ? color.cyan(figures.pointer) + ' ' : ' ') + prefix;\n if (v.description && this.cursor === i) {\n desc = ` - ${v.description}`;\n if (prefix.length + title.length + desc.length >= this.out.columns\n || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, { margin: 3, width: this.out.columns });\n }\n }\n }\n\n this.outputText += `${prefix} ${title}${color.gray(desc)}\\n`;\n }\n }\n\n this.out.write(this.outputText);\n }\n}\n\nmodule.exports = SelectPrompt;\n",
|
|
89
|
-
"const color = require('kleur');\nconst Prompt = require('./prompt');\nconst { style, clear } = require('../util');\nconst { cursor, erase } = require('sisteransi');\n\n/**\n * TogglePrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Boolean} [opts.initial=false] Default value\n * @param {String} [opts.active='no'] Active label\n * @param {String} [opts.inactive='off'] Inactive label\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\nclass TogglePrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.value = !!opts.initial;\n this.active = opts.active || 'on';\n this.inactive = opts.inactive || 'off';\n this.initialValue = this.value;\n this.render();\n }\n\n reset() {\n this.value = this.initialValue;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n deactivate() {\n if (this.value === false) return this.bell();\n this.value = false;\n this.render();\n }\n\n activate() {\n if (this.value === true) return this.bell();\n this.value = true;\n this.render();\n }\n\n delete() {\n this.deactivate();\n }\n left() {\n this.deactivate();\n }\n right() {\n this.activate();\n }\n down() {\n this.deactivate();\n }\n up() {\n this.activate();\n }\n\n next() {\n this.value = !this.value;\n this.fire();\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.value = !this.value;\n } else if (c === '1') {\n this.value = true;\n } else if (c === '0') {\n this.value = false;\n } else return this.bell();\n this.render();\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(this.done),\n this.value ? this.inactive : color.cyan().underline(this.inactive),\n color.gray('/'),\n this.value ? color.cyan().underline(this.active) : this.active\n ].join(' ');\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n}\n\nmodule.exports = TogglePrompt;\n",
|
|
90
|
-
"'use strict';\n\nclass DatePart {\n constructor({token, date, parts, locales}) {\n this.token = token;\n this.date = date || new Date();\n this.parts = parts || [this];\n this.locales = locales || {};\n }\n\n up() {}\n\n down() {}\n\n next() {\n const currentIdx = this.parts.indexOf(this);\n return this.parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);\n }\n\n setTo(val) {}\n\n prev() {\n let parts = [].concat(this.parts).reverse();\n const currentIdx = parts.indexOf(this);\n return parts.find((part, idx) => idx > currentIdx && part instanceof DatePart);\n }\n\n toString() {\n return String(this.date);\n }\n}\n\nmodule.exports = DatePart;\n\n\n",
|
|
91
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Meridiem extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setHours((this.date.getHours() + 12) % 24);\n }\n\n down() {\n this.up();\n }\n\n toString() {\n let meridiem = this.date.getHours() > 12 ? 'pm' : 'am';\n return /\\A/.test(this.token) ? meridiem.toUpperCase() : meridiem;\n }\n}\n\nmodule.exports = Meridiem;\n",
|
|
92
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nconst pos = n => {\n n = n % 10;\n return n === 1 ? 'st'\n : n === 2 ? 'nd'\n : n === 3 ? 'rd'\n : 'th';\n}\n\nclass Day extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setDate(this.date.getDate() + 1);\n }\n\n down() {\n this.date.setDate(this.date.getDate() - 1);\n }\n\n setTo(val) {\n this.date.setDate(parseInt(val.substr(-2)));\n }\n\n toString() {\n let date = this.date.getDate();\n let day = this.date.getDay();\n return this.token === 'DD' ? String(date).padStart(2, '0')\n : this.token === 'Do' ? date + pos(date)\n : this.token === 'd' ? day + 1\n : this.token === 'ddd' ? this.locales.weekdaysShort[day]\n : this.token === 'dddd' ? this.locales.weekdays[day]\n : date;\n }\n}\n\nmodule.exports = Day;\n",
|
|
93
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Hours extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setHours(this.date.getHours() + 1);\n }\n\n down() {\n this.date.setHours(this.date.getHours() - 1);\n }\n\n setTo(val) {\n this.date.setHours(parseInt(val.substr(-2)));\n }\n\n toString() {\n let hours = this.date.getHours();\n if (/h/.test(this.token))\n hours = (hours % 12) || 12;\n return this.token.length > 1 ? String(hours).padStart(2, '0') : hours;\n }\n}\n\nmodule.exports = Hours;\n",
|
|
94
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Milliseconds extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setMilliseconds(this.date.getMilliseconds() + 1);\n }\n\n down() {\n this.date.setMilliseconds(this.date.getMilliseconds() - 1);\n }\n\n setTo(val) {\n this.date.setMilliseconds(parseInt(val.substr(-(this.token.length))));\n }\n\n toString() {\n return String(this.date.getMilliseconds()).padStart(4, '0')\n .substr(0, this.token.length);\n }\n}\n\nmodule.exports = Milliseconds;\n",
|
|
95
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Minutes extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setMinutes(this.date.getMinutes() + 1);\n }\n\n down() {\n this.date.setMinutes(this.date.getMinutes() - 1);\n }\n\n setTo(val) {\n this.date.setMinutes(parseInt(val.substr(-2)));\n }\n\n toString() {\n let m = this.date.getMinutes();\n return this.token.length > 1 ? String(m).padStart(2, '0') : m;\n }\n}\n\nmodule.exports = Minutes;\n",
|
|
96
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Month extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setMonth(this.date.getMonth() + 1);\n }\n\n down() {\n this.date.setMonth(this.date.getMonth() - 1);\n }\n\n setTo(val) {\n val = parseInt(val.substr(-2)) - 1;\n this.date.setMonth(val < 0 ? 0 : val);\n }\n\n toString() {\n let month = this.date.getMonth();\n let tl = this.token.length;\n return tl === 2 ? String(month + 1).padStart(2, '0')\n : tl === 3 ? this.locales.monthsShort[month]\n : tl === 4 ? this.locales.months[month]\n : String(month + 1);\n }\n}\n\nmodule.exports = Month;\n",
|
|
97
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Seconds extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setSeconds(this.date.getSeconds() + 1);\n }\n\n down() {\n this.date.setSeconds(this.date.getSeconds() - 1);\n }\n\n setTo(val) {\n this.date.setSeconds(parseInt(val.substr(-2)));\n }\n\n toString() {\n let s = this.date.getSeconds();\n return this.token.length > 1 ? String(s).padStart(2, '0') : s;\n }\n}\n\nmodule.exports = Seconds;\n",
|
|
98
|
-
"'use strict';\n\nconst DatePart = require('./datepart');\n\nclass Year extends DatePart {\n constructor(opts={}) {\n super(opts);\n }\n\n up() {\n this.date.setFullYear(this.date.getFullYear() + 1);\n }\n\n down() {\n this.date.setFullYear(this.date.getFullYear() - 1);\n }\n\n setTo(val) {\n this.date.setFullYear(val.substr(-4));\n }\n\n toString() {\n let year = String(this.date.getFullYear()).padStart(4, '0');\n return this.token.length === 2 ? year.substr(-2) : year;\n }\n}\n\nmodule.exports = Year;\n",
|
|
99
|
-
"'use strict';\n\nmodule.exports = {\n DatePart: require('./datepart'),\n Meridiem: require('./meridiem'),\n Day: require('./day'),\n Hours: require('./hours'),\n Milliseconds: require('./milliseconds'),\n Minutes: require('./minutes'),\n Month: require('./month'),\n Seconds: require('./seconds'),\n Year: require('./year'),\n}\n",
|
|
100
|
-
"'use strict';\n\nconst color = require('kleur');\nconst Prompt = require('./prompt');\nconst { style, clear, figures } = require('../util');\nconst { erase, cursor } = require('sisteransi');\nconst { DatePart, Meridiem, Day, Hours, Milliseconds, Minutes, Month, Seconds, Year } = require('../dateparts');\n\nconst regex = /\\\\(.)|\"((?:\\\\[\"\\\\]|[^\"])+)\"|(D[Do]?|d{3,4}|d)|(M{1,4})|(YY(?:YY)?)|([aA])|([Hh]{1,2})|(m{1,2})|(s{1,2})|(S{1,4})|./g;\nconst regexGroups = {\n 1: ({token}) => token.replace(/\\\\(.)/g, '$1'),\n 2: (opts) => new Day(opts), // Day // TODO\n 3: (opts) => new Month(opts), // Month\n 4: (opts) => new Year(opts), // Year\n 5: (opts) => new Meridiem(opts), // AM/PM // TODO (special)\n 6: (opts) => new Hours(opts), // Hours\n 7: (opts) => new Minutes(opts), // Minutes\n 8: (opts) => new Seconds(opts), // Seconds\n 9: (opts) => new Milliseconds(opts), // Fractional seconds\n}\n\nconst dfltLocales = {\n months: 'January,February,March,April,May,June,July,August,September,October,November,December'.split(','),\n monthsShort: 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec'.split(','),\n weekdays: 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday'.split(','),\n weekdaysShort: 'Sun,Mon,Tue,Wed,Thu,Fri,Sat'.split(',')\n}\n\n\n/**\n * DatePrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Number} [opts.initial] Index of default value\n * @param {String} [opts.mask] The format mask\n * @param {object} [opts.locales] The date locales\n * @param {String} [opts.error] The error message shown on invalid value\n * @param {Function} [opts.validate] Function to validate the submitted value\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\nclass DatePrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.cursor = 0;\n this.typed = '';\n this.locales = Object.assign(dfltLocales, opts.locales);\n this._date = opts.initial || new Date();\n this.errorMsg = opts.error || 'Please Enter A Valid Value';\n this.validator = opts.validate || (() => true);\n this.mask = opts.mask || 'YYYY-MM-DD HH:mm:ss';\n this.clear = clear('', this.out.columns);\n this.render();\n }\n\n get value() {\n return this.date\n }\n\n get date() {\n return this._date;\n }\n\n set date(date) {\n if (date) this._date.setTime(date.getTime());\n }\n\n set mask(mask) {\n let result;\n this.parts = [];\n while(result = regex.exec(mask)) {\n let match = result.shift();\n let idx = result.findIndex(gr => gr != null);\n this.parts.push(idx in regexGroups\n ? regexGroups[idx]({ token: result[idx] || match, date: this.date, parts: this.parts, locales: this.locales })\n : result[idx] || match);\n }\n\n let parts = this.parts.reduce((arr, i) => {\n if (typeof i === 'string' && typeof arr[arr.length - 1] === 'string')\n arr[arr.length - 1] += i;\n else arr.push(i);\n return arr;\n }, []);\n\n this.parts.splice(0);\n this.parts.push(...parts);\n this.reset();\n }\n\n moveCursor(n) {\n this.typed = '';\n this.cursor = n;\n this.fire();\n }\n\n reset() {\n this.moveCursor(this.parts.findIndex(p => p instanceof DatePart));\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.error = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n async validate() {\n let valid = await this.validator(this.value);\n if (typeof valid === 'string') {\n this.errorMsg = valid;\n valid = false;\n }\n this.error = !valid;\n }\n\n async submit() {\n await this.validate();\n if (this.error) {\n this.color = 'red';\n this.fire();\n this.render();\n return;\n }\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n up() {\n this.typed = '';\n this.parts[this.cursor].up();\n this.render();\n }\n\n down() {\n this.typed = '';\n this.parts[this.cursor].down();\n this.render();\n }\n\n left() {\n let prev = this.parts[this.cursor].prev();\n if (prev == null) return this.bell();\n this.moveCursor(this.parts.indexOf(prev));\n this.render();\n }\n\n right() {\n let next = this.parts[this.cursor].next();\n if (next == null) return this.bell();\n this.moveCursor(this.parts.indexOf(next));\n this.render();\n }\n\n next() {\n let next = this.parts[this.cursor].next();\n this.moveCursor(next\n ? this.parts.indexOf(next)\n : this.parts.findIndex((part) => part instanceof DatePart));\n this.render();\n }\n\n _(c) {\n if (/\\d/.test(c)) {\n this.typed += c;\n this.parts[this.cursor].setTo(this.typed);\n this.render();\n }\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n // Print prompt\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(false),\n this.parts.reduce((arr, p, idx) => arr.concat(idx === this.cursor && !this.done ? color.cyan().underline(p.toString()) : p), [])\n .join('')\n ].join(' ');\n\n // Print error\n if (this.error) {\n this.outputText += this.errorMsg.split('\\n').reduce(\n (a, l, i) => a + `\\n${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n}\n\nmodule.exports = DatePrompt;\n",
|
|
101
|
-
"const color = require('kleur');\nconst Prompt = require('./prompt');\nconst { cursor, erase } = require('sisteransi');\nconst { style, figures, clear, lines } = require('../util');\n\nconst isNumber = /[0-9]/;\nconst isDef = any => any !== undefined;\nconst round = (number, precision) => {\n let factor = Math.pow(10, precision);\n return Math.round(number * factor) / factor;\n}\n\n/**\n * NumberPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {String} [opts.style='default'] Render style\n * @param {Number} [opts.initial] Default value\n * @param {Number} [opts.max=+Infinity] Max value\n * @param {Number} [opts.min=-Infinity] Min value\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {Function} [opts.validate] Validate function\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.error] The invalid error label\n */\nclass NumberPrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.transform = style.render(opts.style);\n this.msg = opts.message;\n this.initial = isDef(opts.initial) ? opts.initial : '';\n this.float = !!opts.float;\n this.round = opts.round || 2;\n this.inc = opts.increment || 1;\n this.min = isDef(opts.min) ? opts.min : -Infinity;\n this.max = isDef(opts.max) ? opts.max : Infinity;\n this.errorMsg = opts.error || `Please Enter A Valid Value`;\n this.validator = opts.validate || (() => true);\n this.color = `cyan`;\n this.value = ``;\n this.typed = ``;\n this.lastHit = 0;\n this.render();\n }\n\n set value(v) {\n if (!v && v !== 0) {\n this.placeholder = true;\n this.rendered = color.gray(this.transform.render(`${this.initial}`));\n this._value = ``;\n } else {\n this.placeholder = false;\n this.rendered = this.transform.render(`${round(v, this.round)}`);\n this._value = round(v, this.round);\n }\n this.fire();\n }\n\n get value() {\n return this._value;\n }\n\n parse(x) {\n return this.float ? parseFloat(x) : parseInt(x);\n }\n\n valid(c) {\n return c === `-` || c === `.` && this.float || isNumber.test(c)\n }\n\n reset() {\n this.typed = ``;\n this.value = ``;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n let x = this.value;\n this.value = x !== `` ? x : this.initial;\n this.done = this.aborted = true;\n this.error = false;\n this.fire();\n this.render();\n this.out.write(`\\n`);\n this.close();\n }\n\n async validate() {\n let valid = await this.validator(this.value);\n if (typeof valid === `string`) {\n this.errorMsg = valid;\n valid = false;\n }\n this.error = !valid;\n }\n\n async submit() {\n await this.validate();\n if (this.error) {\n this.color = `red`;\n this.fire();\n this.render();\n return;\n }\n let x = this.value;\n this.value = x !== `` ? x : this.initial;\n this.done = true;\n this.aborted = false;\n this.error = false;\n this.fire();\n this.render();\n this.out.write(`\\n`);\n this.close();\n }\n\n up() {\n this.typed = ``;\n if(this.value === '') {\n this.value = this.min - this.inc;\n }\n if (this.value >= this.max) return this.bell();\n this.value += this.inc;\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n down() {\n this.typed = ``;\n if(this.value === '') {\n this.value = this.min + this.inc;\n }\n if (this.value <= this.min) return this.bell();\n this.value -= this.inc;\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n delete() {\n let val = this.value.toString();\n if (val.length === 0) return this.bell();\n this.value = this.parse((val = val.slice(0, -1))) || ``;\n if (this.value !== '' && this.value < this.min) {\n this.value = this.min;\n }\n this.color = `cyan`;\n this.fire();\n this.render();\n }\n\n next() {\n this.value = this.initial;\n this.fire();\n this.render();\n }\n\n _(c, key) {\n if (!this.valid(c)) return this.bell();\n\n const now = Date.now();\n if (now - this.lastHit > 1000) this.typed = ``; // 1s elapsed\n this.typed += c;\n this.lastHit = now;\n this.color = `cyan`;\n\n if (c === `.`) return this.fire();\n\n this.value = Math.min(this.parse(this.typed), this.max);\n if (this.value > this.max) this.value = this.max;\n if (this.value < this.min) this.value = this.min;\n this.fire();\n this.render();\n }\n\n render() {\n if (this.closed) return;\n if (!this.firstRender) {\n if (this.outputError)\n this.out.write(cursor.down(lines(this.outputError, this.out.columns) - 1) + clear(this.outputError, this.out.columns));\n this.out.write(clear(this.outputText, this.out.columns));\n }\n super.render();\n this.outputError = '';\n\n // Print prompt\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(this.done),\n !this.done || (!this.done && !this.placeholder)\n ? color[this.color]().underline(this.rendered) : this.rendered\n ].join(` `);\n\n // Print error\n if (this.error) {\n this.outputError += this.errorMsg.split(`\\n`)\n .reduce((a, l, i) => a + `\\n${i ? ` ` : figures.pointerSmall} ${color.red().italic(l)}`, ``);\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText + cursor.save + this.outputError + cursor.restore);\n }\n}\n\nmodule.exports = NumberPrompt;\n",
|
|
102
|
-
"'use strict';\n\nconst color = require('kleur');\nconst { cursor } = require('sisteransi');\nconst Prompt = require('./prompt');\nconst { clear, figures, style, wrap, entriesToDisplay } = require('../util');\n\n/**\n * MultiselectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {String} [opts.warn] Hint shown for disabled choices\n * @param {Number} [opts.max] Max choices\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {Number} [opts.optionsPerPage=10] Max options to display at once\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\nclass MultiselectPrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.cursor = opts.cursor || 0;\n this.scrollIndex = opts.cursor || 0;\n this.hint = opts.hint || '';\n this.warn = opts.warn || '- This option is disabled -';\n this.minSelected = opts.min;\n this.showMinError = false;\n this.maxChoices = opts.max;\n this.instructions = opts.instructions;\n this.optionsPerPage = opts.optionsPerPage || 10;\n this.value = opts.choices.map((ch, idx) => {\n if (typeof ch === 'string')\n ch = {title: ch, value: idx};\n return {\n title: ch && (ch.title || ch.value || ch),\n description: ch && ch.description,\n value: ch && (ch.value === undefined ? idx : ch.value),\n selected: ch && ch.selected,\n disabled: ch && ch.disabled\n };\n });\n this.clear = clear('', this.out.columns);\n if (!opts.overrideRender) {\n this.render();\n }\n }\n\n reset() {\n this.value.map(v => !v.selected);\n this.cursor = 0;\n this.fire();\n this.render();\n }\n\n selected() {\n return this.value.filter(v => v.selected);\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n const selected = this.value\n .filter(e => e.selected);\n if (this.minSelected && selected.length < this.minSelected) {\n this.showMinError = true;\n this.render();\n } else {\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n }\n\n first() {\n this.cursor = 0;\n this.render();\n }\n\n last() {\n this.cursor = this.value.length - 1;\n this.render();\n }\n next() {\n this.cursor = (this.cursor + 1) % this.value.length;\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.cursor = this.value.length - 1;\n } else {\n this.cursor--;\n }\n this.render();\n }\n\n down() {\n if (this.cursor === this.value.length - 1) {\n this.cursor = 0;\n } else {\n this.cursor++;\n }\n this.render();\n }\n\n left() {\n this.value[this.cursor].selected = false;\n this.render();\n }\n\n right() {\n if (this.value.filter(e => e.selected).length >= this.maxChoices) return this.bell();\n this.value[this.cursor].selected = true;\n this.render();\n }\n\n handleSpaceToggle() {\n const v = this.value[this.cursor];\n\n if (v.selected) {\n v.selected = false;\n this.render();\n } else if (v.disabled || this.value.filter(e => e.selected).length >= this.maxChoices) {\n return this.bell();\n } else {\n v.selected = true;\n this.render();\n }\n }\n\n toggleAll() {\n if (this.maxChoices !== undefined || this.value[this.cursor].disabled) {\n return this.bell();\n }\n\n const newSelected = !this.value[this.cursor].selected;\n this.value.filter(v => !v.disabled).forEach(v => v.selected = newSelected);\n this.render();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.handleSpaceToggle();\n } else if (c === 'a') {\n this.toggleAll();\n } else {\n return this.bell();\n }\n }\n\n renderInstructions() {\n if (this.instructions === undefined || this.instructions) {\n if (typeof this.instructions === 'string') {\n return this.instructions;\n }\n return '\\nInstructions:\\n'\n + ` ${figures.arrowUp}/${figures.arrowDown}: Highlight option\\n`\n + ` ${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection\\n`\n + (this.maxChoices === undefined ? ` a: Toggle all\\n` : '')\n + ` enter/return: Complete answer`;\n }\n return '';\n }\n\n renderOption(cursor, v, i, arrowIndicator) {\n const prefix = (v.selected ? color.green(figures.radioOn) : figures.radioOff) + ' ' + arrowIndicator + ' ';\n let title, desc;\n\n if (v.disabled) {\n title = cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);\n } else {\n title = cursor === i ? color.cyan().underline(v.title) : v.title;\n if (cursor === i && v.description) {\n desc = ` - ${v.description}`;\n if (prefix.length + title.length + desc.length >= this.out.columns\n || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, { margin: prefix.length, width: this.out.columns });\n }\n }\n }\n\n return prefix + title + color.gray(desc || '');\n }\n\n // shared with autocompleteMultiselect\n paginateOptions(options) {\n if (options.length === 0) {\n return color.red('No matches for this query.');\n }\n\n let { startIndex, endIndex } = entriesToDisplay(this.cursor, options.length, this.optionsPerPage);\n let prefix, styledOptions = [];\n\n for (let i = startIndex; i < endIndex; i++) {\n if (i === startIndex && startIndex > 0) {\n prefix = figures.arrowUp;\n } else if (i === endIndex - 1 && endIndex < options.length) {\n prefix = figures.arrowDown;\n } else {\n prefix = ' ';\n }\n styledOptions.push(this.renderOption(this.cursor, options[i], i, prefix));\n }\n\n return '\\n' + styledOptions.join('\\n');\n }\n\n // shared with autocomleteMultiselect\n renderOptions(options) {\n if (!this.done) {\n return this.paginateOptions(options);\n }\n return '';\n }\n\n renderDoneOrInstructions() {\n if (this.done) {\n return this.value\n .filter(e => e.selected)\n .map(v => v.title)\n .join(', ');\n }\n\n const output = [color.gray(this.hint), this.renderInstructions()];\n\n if (this.value[this.cursor].disabled) {\n output.push(color.yellow(this.warn));\n }\n return output.join(' ');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n super.render();\n\n // print prompt\n let prompt = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(false),\n this.renderDoneOrInstructions()\n ].join(' ');\n if (this.showMinError) {\n prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`);\n this.showMinError = false;\n }\n prompt += this.renderOptions(this.value);\n\n this.out.write(this.clear + prompt);\n this.clear = clear(prompt, this.out.columns);\n }\n}\n\nmodule.exports = MultiselectPrompt;\n",
|
|
103
|
-
"'use strict';\n\nconst color = require('kleur');\nconst Prompt = require('./prompt');\nconst { erase, cursor } = require('sisteransi');\nconst { style, clear, figures, wrap, entriesToDisplay } = require('../util');\n\nconst getVal = (arr, i) => arr[i] && (arr[i].value || arr[i].title || arr[i]);\nconst getTitle = (arr, i) => arr[i] && (arr[i].title || arr[i].value || arr[i]);\nconst getIndex = (arr, valOrTitle) => {\n const index = arr.findIndex(el => el.value === valOrTitle || el.title === valOrTitle);\n return index > -1 ? index : undefined;\n};\n\n/**\n * TextPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of auto-complete choices objects\n * @param {Function} [opts.suggest] Filter function. Defaults to sort by title\n * @param {Number} [opts.limit=10] Max number of results to show\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {String} [opts.style='default'] Render style\n * @param {String} [opts.fallback] Fallback message - initial to default value\n * @param {String} [opts.initial] Index of the default value\n * @param {Boolean} [opts.clearFirst] The first ESCAPE keypress will clear the input\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.noMatches] The no matches found label\n */\nclass AutocompletePrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.suggest = opts.suggest;\n this.choices = opts.choices;\n this.initial = typeof opts.initial === 'number'\n ? opts.initial\n : getIndex(opts.choices, opts.initial);\n this.select = this.initial || opts.cursor || 0;\n this.i18n = { noMatches: opts.noMatches || 'no matches found' };\n this.fallback = opts.fallback || this.initial;\n this.clearFirst = opts.clearFirst || false;\n this.suggestions = [];\n this.input = '';\n this.limit = opts.limit || 10;\n this.cursor = 0;\n this.transform = style.render(opts.style);\n this.scale = this.transform.scale;\n this.render = this.render.bind(this);\n this.complete = this.complete.bind(this);\n this.clear = clear('', this.out.columns);\n this.complete(this.render);\n this.render();\n }\n\n set fallback(fb) {\n this._fb = Number.isSafeInteger(parseInt(fb)) ? parseInt(fb) : fb;\n }\n\n get fallback() {\n let choice;\n if (typeof this._fb === 'number')\n choice = this.choices[this._fb];\n else if (typeof this._fb === 'string')\n choice = { title: this._fb };\n return choice || this._fb || { title: this.i18n.noMatches };\n }\n\n moveSelect(i) {\n this.select = i;\n if (this.suggestions.length > 0)\n this.value = getVal(this.suggestions, i);\n else this.value = this.fallback.value;\n this.fire();\n }\n\n async complete(cb) {\n const p = (this.completing = this.suggest(this.input, this.choices));\n const suggestions = await p;\n\n if (this.completing !== p) return;\n this.suggestions = suggestions\n .map((s, i, arr) => ({ title: getTitle(arr, i), value: getVal(arr, i), description: s.description }));\n this.completing = false;\n const l = Math.max(suggestions.length - 1, 0);\n this.moveSelect(Math.min(l, this.select));\n\n cb && cb();\n }\n\n reset() {\n this.input = '';\n this.complete(() => {\n this.moveSelect(this.initial !== void 0 ? this.initial : 0);\n this.render();\n });\n this.render();\n }\n\n exit() {\n if (this.clearFirst && this.input.length > 0) {\n this.reset();\n } else {\n this.done = this.exited = true; \n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n }\n\n abort() {\n this.done = this.aborted = true;\n this.exited = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.done = true;\n this.aborted = this.exited = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n _(c, key) {\n let s1 = this.input.slice(0, this.cursor);\n let s2 = this.input.slice(this.cursor);\n this.input = `${s1}${c}${s2}`;\n this.cursor = s1.length+1;\n this.complete(this.render);\n this.render();\n }\n\n delete() {\n if (this.cursor === 0) return this.bell();\n let s1 = this.input.slice(0, this.cursor-1);\n let s2 = this.input.slice(this.cursor);\n this.input = `${s1}${s2}`;\n this.complete(this.render);\n this.cursor = this.cursor-1;\n this.render();\n }\n\n deleteForward() {\n if(this.cursor*this.scale >= this.rendered.length) return this.bell();\n let s1 = this.input.slice(0, this.cursor);\n let s2 = this.input.slice(this.cursor+1);\n this.input = `${s1}${s2}`;\n this.complete(this.render);\n this.render();\n }\n\n first() {\n this.moveSelect(0);\n this.render();\n }\n\n last() {\n this.moveSelect(this.suggestions.length - 1);\n this.render();\n }\n\n up() {\n if (this.select === 0) {\n this.moveSelect(this.suggestions.length - 1);\n } else {\n this.moveSelect(this.select - 1);\n }\n this.render();\n }\n\n down() {\n if (this.select === this.suggestions.length - 1) {\n this.moveSelect(0);\n } else {\n this.moveSelect(this.select + 1);\n }\n this.render();\n }\n\n next() {\n if (this.select === this.suggestions.length - 1) {\n this.moveSelect(0);\n } else this.moveSelect(this.select + 1);\n this.render();\n }\n\n nextPage() {\n this.moveSelect(Math.min(this.select + this.limit, this.suggestions.length - 1));\n this.render();\n }\n\n prevPage() {\n this.moveSelect(Math.max(this.select - this.limit, 0));\n this.render();\n }\n\n left() {\n if (this.cursor <= 0) return this.bell();\n this.cursor = this.cursor-1;\n this.render();\n }\n\n right() {\n if (this.cursor*this.scale >= this.rendered.length) return this.bell();\n this.cursor = this.cursor+1;\n this.render();\n }\n\n renderOption(v, hovered, isStart, isEnd) {\n let desc;\n let prefix = isStart ? figures.arrowUp : isEnd ? figures.arrowDown : ' ';\n let title = hovered ? color.cyan().underline(v.title) : v.title;\n prefix = (hovered ? color.cyan(figures.pointer) + ' ' : ' ') + prefix;\n if (v.description) {\n desc = ` - ${v.description}`;\n if (prefix.length + title.length + desc.length >= this.out.columns\n || v.description.split(/\\r?\\n/).length > 1) {\n desc = '\\n' + wrap(v.description, { margin: 3, width: this.out.columns })\n }\n }\n return prefix + ' ' + title + color.gray(desc || '');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n let { startIndex, endIndex } = entriesToDisplay(this.select, this.choices.length, this.limit);\n\n this.outputText = [\n style.symbol(this.done, this.aborted, this.exited),\n color.bold(this.msg),\n style.delimiter(this.completing),\n this.done && this.suggestions[this.select]\n ? this.suggestions[this.select].title\n : this.rendered = this.transform.render(this.input)\n ].join(' ');\n\n if (!this.done) {\n const suggestions = this.suggestions\n .slice(startIndex, endIndex)\n .map((item, i) => this.renderOption(item,\n this.select === i + startIndex,\n i === 0 && startIndex > 0,\n i + startIndex === endIndex - 1 && endIndex < this.choices.length))\n .join('\\n');\n this.outputText += `\\n` + (suggestions || color.gray(this.fallback.title));\n }\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n}\n\nmodule.exports = AutocompletePrompt;\n",
|
|
104
|
-
"'use strict';\n\nconst color = require('kleur');\nconst { cursor } = require('sisteransi');\nconst MultiselectPrompt = require('./multiselect');\nconst { clear, style, figures } = require('../util');\n/**\n * MultiselectPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Array} opts.choices Array of choice objects\n * @param {String} [opts.hint] Hint to display\n * @param {String} [opts.warn] Hint shown for disabled choices\n * @param {Number} [opts.max] Max choices\n * @param {Number} [opts.cursor=0] Cursor start position\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n */\nclass AutocompleteMultiselectPrompt extends MultiselectPrompt {\n constructor(opts={}) {\n opts.overrideRender = true;\n super(opts);\n this.inputValue = '';\n this.clear = clear('', this.out.columns);\n this.filteredOptions = this.value;\n this.render();\n }\n\n last() {\n this.cursor = this.filteredOptions.length - 1;\n this.render();\n }\n next() {\n this.cursor = (this.cursor + 1) % this.filteredOptions.length;\n this.render();\n }\n\n up() {\n if (this.cursor === 0) {\n this.cursor = this.filteredOptions.length - 1;\n } else {\n this.cursor--;\n }\n this.render();\n }\n\n down() {\n if (this.cursor === this.filteredOptions.length - 1) {\n this.cursor = 0;\n } else {\n this.cursor++;\n }\n this.render();\n }\n\n left() {\n this.filteredOptions[this.cursor].selected = false;\n this.render();\n }\n\n right() {\n if (this.value.filter(e => e.selected).length >= this.maxChoices) return this.bell();\n this.filteredOptions[this.cursor].selected = true;\n this.render();\n }\n\n delete() {\n if (this.inputValue.length) {\n this.inputValue = this.inputValue.substr(0, this.inputValue.length - 1);\n this.updateFilteredOptions();\n }\n }\n\n updateFilteredOptions() {\n const currentHighlight = this.filteredOptions[this.cursor];\n this.filteredOptions = this.value\n .filter(v => {\n if (this.inputValue) {\n if (typeof v.title === 'string') {\n if (v.title.toLowerCase().includes(this.inputValue.toLowerCase())) {\n return true;\n }\n }\n if (typeof v.value === 'string') {\n if (v.value.toLowerCase().includes(this.inputValue.toLowerCase())) {\n return true;\n }\n }\n return false;\n }\n return true;\n });\n const newHighlightIndex = this.filteredOptions.findIndex(v => v === currentHighlight)\n this.cursor = newHighlightIndex < 0 ? 0 : newHighlightIndex;\n this.render();\n }\n\n handleSpaceToggle() {\n const v = this.filteredOptions[this.cursor];\n\n if (v.selected) {\n v.selected = false;\n this.render();\n } else if (v.disabled || this.value.filter(e => e.selected).length >= this.maxChoices) {\n return this.bell();\n } else {\n v.selected = true;\n this.render();\n }\n }\n\n handleInputChange(c) {\n this.inputValue = this.inputValue + c;\n this.updateFilteredOptions();\n }\n\n _(c, key) {\n if (c === ' ') {\n this.handleSpaceToggle();\n } else {\n this.handleInputChange(c);\n }\n }\n\n renderInstructions() {\n if (this.instructions === undefined || this.instructions) {\n if (typeof this.instructions === 'string') {\n return this.instructions;\n }\n return `\nInstructions:\n ${figures.arrowUp}/${figures.arrowDown}: Highlight option\n ${figures.arrowLeft}/${figures.arrowRight}/[space]: Toggle selection\n [a,b,c]/delete: Filter choices\n enter/return: Complete answer\n`;\n }\n return '';\n }\n\n renderCurrentInput() {\n return `\nFiltered results for: ${this.inputValue ? this.inputValue : color.gray('Enter something to filter')}\\n`;\n }\n\n renderOption(cursor, v, i) {\n let title;\n if (v.disabled) title = cursor === i ? color.gray().underline(v.title) : color.strikethrough().gray(v.title);\n else title = cursor === i ? color.cyan().underline(v.title) : v.title;\n return (v.selected ? color.green(figures.radioOn) : figures.radioOff) + ' ' + title\n }\n\n renderDoneOrInstructions() {\n if (this.done) {\n return this.value\n .filter(e => e.selected)\n .map(v => v.title)\n .join(', ');\n }\n\n const output = [color.gray(this.hint), this.renderInstructions(), this.renderCurrentInput()];\n\n if (this.filteredOptions.length && this.filteredOptions[this.cursor].disabled) {\n output.push(color.yellow(this.warn));\n }\n return output.join(' ');\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n super.render();\n\n // print prompt\n\n let prompt = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(false),\n this.renderDoneOrInstructions()\n ].join(' ');\n\n if (this.showMinError) {\n prompt += color.red(`You must select a minimum of ${this.minSelected} choices.`);\n this.showMinError = false;\n }\n prompt += this.renderOptions(this.filteredOptions);\n\n this.out.write(this.clear + prompt);\n this.clear = clear(prompt, this.out.columns);\n }\n}\n\nmodule.exports = AutocompleteMultiselectPrompt;\n",
|
|
105
|
-
"const color = require('kleur');\nconst Prompt = require('./prompt');\nconst { style, clear } = require('../util');\nconst { erase, cursor } = require('sisteransi');\n\n/**\n * ConfirmPrompt Base Element\n * @param {Object} opts Options\n * @param {String} opts.message Message\n * @param {Boolean} [opts.initial] Default value (true/false)\n * @param {Stream} [opts.stdin] The Readable stream to listen to\n * @param {Stream} [opts.stdout] The Writable stream to write readline data to\n * @param {String} [opts.yes] The \"Yes\" label\n * @param {String} [opts.yesOption] The \"Yes\" option when choosing between yes/no\n * @param {String} [opts.no] The \"No\" label\n * @param {String} [opts.noOption] The \"No\" option when choosing between yes/no\n */\nclass ConfirmPrompt extends Prompt {\n constructor(opts={}) {\n super(opts);\n this.msg = opts.message;\n this.value = opts.initial;\n this.initialValue = !!opts.initial;\n this.yesMsg = opts.yes || 'yes';\n this.yesOption = opts.yesOption || '(Y/n)';\n this.noMsg = opts.no || 'no';\n this.noOption = opts.noOption || '(y/N)';\n this.render();\n }\n\n reset() {\n this.value = this.initialValue;\n this.fire();\n this.render();\n }\n\n exit() {\n this.abort();\n }\n\n abort() {\n this.done = this.aborted = true;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n submit() {\n this.value = this.value || false;\n this.done = true;\n this.aborted = false;\n this.fire();\n this.render();\n this.out.write('\\n');\n this.close();\n }\n\n _(c, key) {\n if (c.toLowerCase() === 'y') {\n this.value = true;\n return this.submit();\n }\n if (c.toLowerCase() === 'n') {\n this.value = false;\n return this.submit();\n }\n return this.bell();\n }\n\n render() {\n if (this.closed) return;\n if (this.firstRender) this.out.write(cursor.hide);\n else this.out.write(clear(this.outputText, this.out.columns));\n super.render();\n\n this.outputText = [\n style.symbol(this.done, this.aborted),\n color.bold(this.msg),\n style.delimiter(this.done),\n this.done ? (this.value ? this.yesMsg : this.noMsg)\n : color.gray(this.initialValue ? this.yesOption : this.noOption)\n ].join(' ');\n\n this.out.write(erase.line + cursor.to(0) + this.outputText);\n }\n}\n\nmodule.exports = ConfirmPrompt;\n",
|
|
106
|
-
"'use strict';\n\nmodule.exports = {\n TextPrompt: require('./text'),\n SelectPrompt: require('./select'),\n TogglePrompt: require('./toggle'),\n DatePrompt: require('./date'),\n NumberPrompt: require('./number'),\n MultiselectPrompt: require('./multiselect'),\n AutocompletePrompt: require('./autocomplete'),\n AutocompleteMultiselectPrompt: require('./autocompleteMultiselect'),\n ConfirmPrompt: require('./confirm')\n};\n",
|
|
107
|
-
"'use strict';\nconst $ = exports;\nconst el = require('./elements');\nconst noop = v => v;\n\nfunction toPrompt(type, args, opts={}) {\n return new Promise((res, rej) => {\n const p = new el[type](args);\n const onAbort = opts.onAbort || noop;\n const onSubmit = opts.onSubmit || noop;\n const onExit = opts.onExit || noop;\n p.on('state', args.onState || noop);\n p.on('submit', x => res(onSubmit(x)));\n p.on('exit', x => res(onExit(x)));\n p.on('abort', x => rej(onAbort(x)));\n });\n}\n\n/**\n * Text prompt\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.text = args => toPrompt('TextPrompt', args);\n\n/**\n * Password prompt with masked input\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.password = args => {\n args.style = 'password';\n return $.text(args);\n};\n\n/**\n * Prompt where input is invisible, like sudo\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {function} [args.onState] On state change callback\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.invisible = args => {\n args.style = 'invisible';\n return $.text(args);\n};\n\n/**\n * Number prompt\n * @param {string} args.message Prompt message to display\n * @param {number} args.initial Default number value\n * @param {function} [args.onState] On state change callback\n * @param {number} [args.max] Max value\n * @param {number} [args.min] Min value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.number = args => toPrompt('NumberPrompt', args);\n\n/**\n * Date prompt\n * @param {string} args.message Prompt message to display\n * @param {number} args.initial Default number value\n * @param {function} [args.onState] On state change callback\n * @param {number} [args.max] Max value\n * @param {number} [args.min] Min value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {Boolean} [opts.float=false] Parse input as floats\n * @param {Number} [opts.round=2] Round floats to x decimals\n * @param {Number} [opts.increment=1] Number to increment by when using arrow-keys\n * @param {function} [args.validate] Function to validate user input\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.date = args => toPrompt('DatePrompt', args);\n\n/**\n * Classic yes/no prompt\n * @param {string} args.message Prompt message to display\n * @param {boolean} [args.initial=false] Default value\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.confirm = args => toPrompt('ConfirmPrompt', args);\n\n/**\n * List prompt, split intput string by `seperator`\n * @param {string} args.message Prompt message to display\n * @param {string} [args.initial] Default string value\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {string} [args.separator] String separator\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input, in form of an `Array`\n */\n$.list = args => {\n const sep = args.separator || ',';\n return toPrompt('TextPrompt', args, {\n onSubmit: str => str.split(sep).map(s => s.trim())\n });\n};\n\n/**\n * Toggle/switch prompt\n * @param {string} args.message Prompt message to display\n * @param {boolean} [args.initial=false] Default value\n * @param {string} [args.active=\"on\"] Text for `active` state\n * @param {string} [args.inactive=\"off\"] Text for `inactive` state\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.toggle = args => toPrompt('TogglePrompt', args);\n\n/**\n * Interactive select prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of choices objects `[{ title, value }, ...]`\n * @param {number} [args.initial] Index of default value\n * @param {String} [args.hint] Hint to display\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.select = args => toPrompt('SelectPrompt', args);\n\n/**\n * Interactive multi-select / autocompleteMultiselect prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of choices objects `[{ title, value, [selected] }, ...]`\n * @param {number} [args.max] Max select\n * @param {string} [args.hint] Hint to display user\n * @param {Number} [args.cursor=0] Cursor start position\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.multiselect = args => {\n args.choices = [].concat(args.choices || []);\n const toSelected = items => items.filter(item => item.selected).map(item => item.value);\n return toPrompt('MultiselectPrompt', args, {\n onAbort: toSelected,\n onSubmit: toSelected\n });\n};\n\n$.autocompleteMultiselect = args => {\n args.choices = [].concat(args.choices || []);\n const toSelected = items => items.filter(item => item.selected).map(item => item.value);\n return toPrompt('AutocompleteMultiselectPrompt', args, {\n onAbort: toSelected,\n onSubmit: toSelected\n });\n};\n\nconst byTitle = (input, choices) => Promise.resolve(\n choices.filter(item => item.title.slice(0, input.length).toLowerCase() === input.toLowerCase())\n);\n\n/**\n * Interactive auto-complete prompt\n * @param {string} args.message Prompt message to display\n * @param {Array} args.choices Array of auto-complete choices objects `[{ title, value }, ...]`\n * @param {Function} [args.suggest] Function to filter results based on user input. Defaults to sort by `title`\n * @param {number} [args.limit=10] Max number of results to show\n * @param {string} [args.style=\"default\"] Render style ('default', 'password', 'invisible')\n * @param {String} [args.initial] Index of the default value\n * @param {boolean} [opts.clearFirst] The first ESCAPE keypress will clear the input\n * @param {String} [args.fallback] Fallback message - defaults to initial value\n * @param {function} [args.onState] On state change callback\n * @param {Stream} [args.stdin] The Readable stream to listen to\n * @param {Stream} [args.stdout] The Writable stream to write readline data to\n * @returns {Promise} Promise with user input\n */\n$.autocomplete = args => {\n args.suggest = args.suggest || byTitle;\n args.choices = [].concat(args.choices || []);\n return toPrompt('AutocompletePrompt', args);\n};\n",
|
|
108
|
-
"'use strict';\n\nconst prompts = require('./prompts');\n\nconst passOn = ['suggest', 'format', 'onState', 'validate', 'onRender', 'type'];\nconst noop = () => {};\n\n/**\n * Prompt for a series of questions\n * @param {Array|Object} questions Single question object or Array of question objects\n * @param {Function} [onSubmit] Callback function called on prompt submit\n * @param {Function} [onCancel] Callback function called on cancel/abort\n * @returns {Object} Object with values from user input\n */\nasync function prompt(questions=[], { onSubmit=noop, onCancel=noop }={}) {\n const answers = {};\n const override = prompt._override || {};\n questions = [].concat(questions);\n let answer, question, quit, name, type, lastPrompt;\n\n const getFormattedAnswer = async (question, answer, skipValidation = false) => {\n if (!skipValidation && question.validate && question.validate(answer) !== true) {\n return;\n }\n return question.format ? await question.format(answer, answers) : answer\n };\n\n for (question of questions) {\n ({ name, type } = question);\n\n // evaluate type first and skip if type is a falsy value\n if (typeof type === 'function') {\n type = await type(answer, { ...answers }, question)\n question['type'] = type\n }\n if (!type) continue;\n\n // if property is a function, invoke it unless it's a special function\n for (let key in question) {\n if (passOn.includes(key)) continue;\n let value = question[key];\n question[key] = typeof value === 'function' ? await value(answer, { ...answers }, lastPrompt) : value;\n }\n\n lastPrompt = question;\n\n if (typeof question.message !== 'string') {\n throw new Error('prompt message is required');\n }\n\n // update vars in case they changed\n ({ name, type } = question);\n\n if (prompts[type] === void 0) {\n throw new Error(`prompt type (${type}) is not defined`);\n }\n\n if (override[question.name] !== undefined) {\n answer = await getFormattedAnswer(question, override[question.name]);\n if (answer !== undefined) {\n answers[name] = answer;\n continue;\n }\n }\n\n try {\n // Get the injected answer if there is one or prompt the user\n answer = prompt._injected ? getInjectedAnswer(prompt._injected, question.initial) : await prompts[type](question);\n answers[name] = answer = await getFormattedAnswer(question, answer, true);\n quit = await onSubmit(question, answer, answers);\n } catch (err) {\n quit = !(await onCancel(question, answers));\n }\n\n if (quit) return answers;\n }\n\n return answers;\n}\n\nfunction getInjectedAnswer(injected, deafultValue) {\n const answer = injected.shift();\n if (answer instanceof Error) {\n throw answer;\n }\n\n return (answer === undefined) ? deafultValue : answer;\n}\n\nfunction inject(answers) {\n prompt._injected = (prompt._injected || []).concat(answers);\n}\n\nfunction override(answers) {\n prompt._override = Object.assign({}, answers);\n}\n\nmodule.exports = Object.assign(prompt, { prompt, prompts, inject, override });\n",
|
|
109
|
-
"function isNodeLT(tar) {\n tar = (Array.isArray(tar) ? tar : tar.split('.')).map(Number);\n let i=0, src=process.versions.node.split('.').map(Number);\n for (; i < tar.length; i++) {\n if (src[i] > tar[i]) return false;\n if (tar[i] > src[i]) return true;\n }\n return false;\n}\n\nmodule.exports =\n isNodeLT('8.6.0')\n ? require('./dist/index.js')\n : require('./lib/index.js');\n",
|
|
110
|
-
"/**\n * First letter uppercase, other lowercase\n * @category string\n * @example\n * ```\n * capitalize('hello world') => 'Hello world'\n * ```\n */\nexport function capitalize(str: string): string {\n return str[0] ? str[0].toUpperCase() + str.slice(1).toLowerCase() : ''\n}\n\nexport function lowercase(str: string): string {\n return str.toLowerCase()\n}\n\nexport {\n camelCase,\n capitalCase,\n constantCase,\n dotCase,\n kebabCase,\n kebabCase as paramCase,\n noCase,\n pascalCase,\n pathCase,\n sentenceCase,\n snakeCase,\n split,\n} from 'change-case'\nexport { titleCase } from 'title-case'\n",
|
|
111
|
-
"// Regexps involved with splitting words in various case formats.\nconst SPLIT_LOWER_UPPER_RE = /([\\p{Ll}\\d])(\\p{Lu})/gu;\nconst SPLIT_UPPER_UPPER_RE = /(\\p{Lu})([\\p{Lu}][\\p{Ll}])/gu;\n// Used to iterate over the initial split result and separate numbers.\nconst SPLIT_SEPARATE_NUMBER_RE = /(\\d)\\p{Ll}|(\\p{L})\\d/u;\n// Regexp involved with stripping non-word characters from the result.\nconst DEFAULT_STRIP_REGEXP = /[^\\p{L}\\d]+/giu;\n// The replacement value for splits.\nconst SPLIT_REPLACE_VALUE = \"$1\\0$2\";\n// The default characters to keep after transforming case.\nconst DEFAULT_PREFIX_SUFFIX_CHARACTERS = \"\";\n/**\n * Split any cased input strings into an array of words.\n */\nexport function split(value) {\n let result = value.trim();\n result = result\n .replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE)\n .replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);\n result = result.replace(DEFAULT_STRIP_REGEXP, \"\\0\");\n let start = 0;\n let end = result.length;\n // Trim the delimiter from around the output string.\n while (result.charAt(start) === \"\\0\")\n start++;\n if (start === end)\n return [];\n while (result.charAt(end - 1) === \"\\0\")\n end--;\n return result.slice(start, end).split(/\\0/g);\n}\n/**\n * Split the input string into an array of words, separating numbers.\n */\nexport function splitSeparateNumbers(value) {\n const words = split(value);\n for (let i = 0; i < words.length; i++) {\n const word = words[i];\n const match = SPLIT_SEPARATE_NUMBER_RE.exec(word);\n if (match) {\n const offset = match.index + (match[1] ?? match[2]).length;\n words.splice(i, 1, word.slice(0, offset), word.slice(offset));\n }\n }\n return words;\n}\n/**\n * Convert a string to space separated lower case (`foo bar`).\n */\nexport function noCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(lowerFactory(options?.locale)).join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to camel case (`fooBar`).\n */\nexport function camelCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return lower(word);\n return transform(word, index);\n })\n .join(options?.delimiter ?? \"\") +\n suffix);\n}\n/**\n * Convert a string to pascal case (`FooBar`).\n */\nexport function pascalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = options?.mergeAmbiguousCharacters\n ? capitalCaseTransformFactory(lower, upper)\n : pascalCaseTransformFactory(lower, upper);\n return prefix + words.map(transform).join(options?.delimiter ?? \"\") + suffix;\n}\n/**\n * Convert a string to pascal snake case (`Foo_Bar`).\n */\nexport function pascalSnakeCase(input, options) {\n return capitalCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to capital case (`Foo Bar`).\n */\nexport function capitalCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n return (prefix +\n words\n .map(capitalCaseTransformFactory(lower, upper))\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to constant case (`FOO_BAR`).\n */\nexport function constantCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n return (prefix +\n words.map(upperFactory(options?.locale)).join(options?.delimiter ?? \"_\") +\n suffix);\n}\n/**\n * Convert a string to dot case (`foo.bar`).\n */\nexport function dotCase(input, options) {\n return noCase(input, { delimiter: \".\", ...options });\n}\n/**\n * Convert a string to kebab case (`foo-bar`).\n */\nexport function kebabCase(input, options) {\n return noCase(input, { delimiter: \"-\", ...options });\n}\n/**\n * Convert a string to path case (`foo/bar`).\n */\nexport function pathCase(input, options) {\n return noCase(input, { delimiter: \"/\", ...options });\n}\n/**\n * Convert a string to path case (`Foo bar`).\n */\nexport function sentenceCase(input, options) {\n const [prefix, words, suffix] = splitPrefixSuffix(input, options);\n const lower = lowerFactory(options?.locale);\n const upper = upperFactory(options?.locale);\n const transform = capitalCaseTransformFactory(lower, upper);\n return (prefix +\n words\n .map((word, index) => {\n if (index === 0)\n return transform(word);\n return lower(word);\n })\n .join(options?.delimiter ?? \" \") +\n suffix);\n}\n/**\n * Convert a string to snake case (`foo_bar`).\n */\nexport function snakeCase(input, options) {\n return noCase(input, { delimiter: \"_\", ...options });\n}\n/**\n * Convert a string to header case (`Foo-Bar`).\n */\nexport function trainCase(input, options) {\n return capitalCase(input, { delimiter: \"-\", ...options });\n}\nfunction lowerFactory(locale) {\n return locale === false\n ? (input) => input.toLowerCase()\n : (input) => input.toLocaleLowerCase(locale);\n}\nfunction upperFactory(locale) {\n return locale === false\n ? (input) => input.toUpperCase()\n : (input) => input.toLocaleUpperCase(locale);\n}\nfunction capitalCaseTransformFactory(lower, upper) {\n return (word) => `${upper(word[0])}${lower(word.slice(1))}`;\n}\nfunction pascalCaseTransformFactory(lower, upper) {\n return (word, index) => {\n const char0 = word[0];\n const initial = index > 0 && char0 >= \"0\" && char0 <= \"9\" ? \"_\" + char0 : upper(char0);\n return initial + lower(word.slice(1));\n };\n}\nfunction splitPrefixSuffix(input, options = {}) {\n const splitFn = options.split ?? (options.separateNumbers ? splitSeparateNumbers : split);\n const prefixCharacters = options.prefixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n const suffixCharacters = options.suffixCharacters ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;\n let prefixIndex = 0;\n let suffixIndex = input.length;\n while (prefixIndex < input.length) {\n const char = input.charAt(prefixIndex);\n if (!prefixCharacters.includes(char))\n break;\n prefixIndex++;\n }\n while (suffixIndex > prefixIndex) {\n const index = suffixIndex - 1;\n const char = input.charAt(index);\n if (!suffixCharacters.includes(char))\n break;\n suffixIndex = index;\n }\n return [\n input.slice(0, prefixIndex),\n splitFn(input.slice(prefixIndex, suffixIndex)),\n input.slice(suffixIndex),\n ];\n}\n//# sourceMappingURL=index.js.map",
|
|
112
|
-
"const TOKENS = /(\\S+)|(.)/g;\nconst IS_SPECIAL_CASE = /[\\.#][\\p{L}\\p{N}]/u; // #tag, example.com, etc.\nconst IS_MANUAL_CASE = /\\p{Ll}(?=[\\p{Lu}])/u; // iPhone, iOS, etc.\nconst ALPHANUMERIC_PATTERN = /[\\p{L}\\p{N}]+/gu;\nconst IS_ACRONYM = /^([^\\p{L}])*(?:\\p{L}\\.){2,}([^\\p{L}])*$/u;\nexport const WORD_SEPARATORS = new Set([\"—\", \"–\", \"-\", \"―\", \"/\"]);\nexport const SENTENCE_TERMINATORS = new Set([\".\", \"!\", \"?\"]);\nexport const TITLE_TERMINATORS = new Set([\n ...SENTENCE_TERMINATORS,\n \":\",\n '\"',\n \"'\",\n \"”\",\n]);\nexport const SMALL_WORDS = new Set([\n \"a\",\n \"an\",\n \"and\",\n \"as\",\n \"at\",\n \"because\",\n \"but\",\n \"by\",\n \"en\",\n \"for\",\n \"if\",\n \"in\",\n \"neither\",\n \"nor\",\n \"of\",\n \"on\",\n \"only\",\n \"or\",\n \"over\",\n \"per\",\n \"so\",\n \"some\",\n \"than\",\n \"that\",\n \"the\",\n \"to\",\n \"up\",\n \"upon\",\n \"v\",\n \"versus\",\n \"via\",\n \"vs\",\n \"when\",\n \"with\",\n \"without\",\n \"yet\",\n]);\nexport function titleCase(input, options = {}) {\n const { locale = undefined, sentenceCase = false, sentenceTerminators = SENTENCE_TERMINATORS, titleTerminators = TITLE_TERMINATORS, smallWords = SMALL_WORDS, wordSeparators = WORD_SEPARATORS, } = typeof options === \"string\" || Array.isArray(options)\n ? { locale: options }\n : options;\n const terminators = sentenceCase ? sentenceTerminators : titleTerminators;\n let result = \"\";\n let isNewSentence = true;\n // tslint:disable-next-line\n for (const m of input.matchAll(TOKENS)) {\n const { 1: token, 2: whiteSpace, index = 0 } = m;\n if (whiteSpace) {\n result += whiteSpace;\n continue;\n }\n // Ignore URLs, email addresses, acronyms, etc.\n if (IS_SPECIAL_CASE.test(token)) {\n const acronym = token.match(IS_ACRONYM);\n // The period at the end of an acronym is not a new sentence,\n // but we should uppercase first for i.e., e.g., etc.\n if (acronym) {\n const [_, prefix = \"\", suffix = \"\"] = acronym;\n result +=\n sentenceCase && !isNewSentence\n ? token\n : upperAt(token, prefix.length, locale);\n isNewSentence = terminators.has(suffix.charAt(0));\n continue;\n }\n result += token;\n isNewSentence = terminators.has(token.charAt(token.length - 1));\n }\n else {\n const matches = Array.from(token.matchAll(ALPHANUMERIC_PATTERN));\n let value = token;\n let isSentenceEnd = false;\n for (let i = 0; i < matches.length; i++) {\n const { 0: word, index: wordIndex = 0 } = matches[i];\n const nextChar = token.charAt(wordIndex + word.length);\n isSentenceEnd = terminators.has(nextChar);\n // Always the capitalize first word and reset \"new sentence\".\n if (isNewSentence) {\n isNewSentence = false;\n }\n // Skip capitalizing all words if sentence case is enabled.\n else if (sentenceCase || IS_MANUAL_CASE.test(word)) {\n continue;\n }\n // Handle simple words.\n else if (matches.length === 1) {\n // Avoid capitalizing small words, except at the end of a sentence.\n if (smallWords.has(word)) {\n const isFinalToken = index + token.length === input.length;\n if (!isFinalToken && !isSentenceEnd) {\n continue;\n }\n }\n }\n // Multi-word tokens need to be parsed differently.\n else if (i > 0) {\n // Avoid capitalizing words without a valid word separator,\n // e.g. \"apple's\" or \"test(ing)\".\n if (!wordSeparators.has(token.charAt(wordIndex - 1))) {\n continue;\n }\n // Ignore small words in the middle of hyphenated words.\n if (smallWords.has(word) && wordSeparators.has(nextChar)) {\n continue;\n }\n }\n value = upperAt(value, wordIndex, locale);\n }\n result += value;\n isNewSentence =\n isSentenceEnd || terminators.has(token.charAt(token.length - 1));\n }\n }\n return result;\n}\nfunction upperAt(input, index, locale) {\n return (input.slice(0, index) +\n input.charAt(index).toLocaleUpperCase(locale) +\n input.slice(index + 1));\n}\n//# sourceMappingURL=index.js.map",
|
|
113
|
-
"export function toString(v: any): string {\n return Object.prototype.toString.call(v)\n}\n",
|
|
114
|
-
"import * as pluralize from 'pluralize'\n\ntype Rule = string | RegExp\ntype Replacement = string\ntype Word = string\nexport type PluralizeTest = (word: Word) => boolean\n\nexport interface Pluralize {\n plural: (word: Word, count?: number, inclusive?: boolean) => Word\n singular: (word: Word) => Word\n isPlural: (word: Word) => boolean\n isSingular: (word: Word) => boolean\n addPluralRule: (rule: Rule, replacement: Replacement) => void\n addSingularRule: (rule: Rule, replacement: Replacement) => void\n addIrregularRule: (single: Word, plural: Word) => void\n addUncountableRule: (word: Word | RegExp) => void\n}\n\nexport const plural: Pluralize['plural'] = (word, count, inclusive) => {\n if (count !== undefined && inclusive)\n return `${count} ${pluralize.plural(word)}`\n\n return pluralize.plural(word)\n}\n\nexport const singular: Pluralize['singular'] = word => pluralize.singular(word)\nexport const isPlural: Pluralize['isPlural'] = word => pluralize.isPlural(word)\nexport const isSingular: Pluralize['isSingular'] = word => pluralize.isSingular(word)\nexport const addPluralRule: Pluralize['addPluralRule'] = (rule, replacement) =>\n pluralize.addPluralRule(rule, replacement)\nexport const addSingularRule: Pluralize['addSingularRule'] = (rule, replacement) =>\n pluralize.addSingularRule(rule, replacement)\nexport const addIrregularRule: Pluralize['addIrregularRule'] = (single, plural) =>\n pluralize.addIrregularRule(single, plural)\nexport const addUncountableRule: Pluralize['addUncountableRule'] = word => pluralize.addUncountableRule(word)\n",
|
|
115
|
-
"import slugify from 'slugify'\n\ninterface SlugOptions {\n replacement?: string\n remove?: RegExp\n lower?: boolean\n strict?: boolean\n locale?: string\n trim?: boolean\n}\n\n// port from nanoid\n// https://github.com/ai/nanoid\nexport const urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'\n\n/**\n * Replace backslash to slash\n *\n * @category String\n * @example\n * ```\n * slash('C:\\\\Users\\\\Chris') => 'C:/Users/Chris'\n * ```\n */\nexport function slash(str: string): string {\n return str.replace(/\\\\/g, '/')\n}\n\n/**\n * Ensure prefix of a string\n *\n * @category String\n * @example\n * ```\n * ensurePrefix('https://', 'google.com') => 'https://google.com'\n * ensurePrefix('https://', 'http://google.com') => 'https://google.com'\n */\nexport function ensurePrefix(prefix: string, str: string): string {\n if (!str.startsWith(prefix))\n return prefix + str\n return str\n}\n\n/**\n * Ensure suffix of a string\n *\n * @category String\n * @example\n * ```\n * ensureSuffix('.js', 'index') => 'index.js'\n * ensureSuffix('.js', 'index.js') => 'index.js'\n * ```\n */\nexport function ensureSuffix(suffix: string, str: string): string {\n return str.endsWith(suffix) ? str : str + suffix\n}\n\n/**\n * Dead simple template engine, just like Python's `.format()`\n *\n * @category String\n * @example\n * ```\n * const result = template('Hello {0}! My name is {1}.',\n * 'Buddy',\n * 'Chris'\n * ) // Hello Buddy! My name is Chris.\n * ```\n */\nexport function template(str: string, ...args: any[]): string {\n return str.replace(/\\{(\\d+)\\}/g, (match, key) => {\n const index = Number(key)\n\n return Number.isNaN(index) ? match : args[index]\n })\n}\n\nexport function truncate(str: string, length: number, end = '...'): string {\n if (str.length <= length)\n return str\n\n return str.slice(0, length - end.length) + end\n}\n\n/**\n * Generate a random string\n * @category String\n */\nexport function random(size = 16, dict: string = urlAlphabet): string {\n let id = ''\n let i = size\n const len = dict.length\n while (i--) id += dict[(Math.random() * len) | 0]\n return id\n}\n\n/**\n * Slugify a string\n * @category string\n * @example\n * ```\n * slug('Hello World') => 'hello-world'\n * ```\n */\nexport function slug(str: string, options?: SlugOptions): string {\n if (options)\n return slugify(str, options)\n\n return slugify(str, {\n lower: true,\n strict: true,\n })\n}\n\nexport { default as detectIndent } from 'detect-indent'\nexport { detectNewline } from 'detect-newline'\n",
|
|
116
|
-
"// Detect either spaces or tabs but not both to properly handle tabs for indentation and spaces for alignment\nconst INDENT_REGEX = /^(?:( )+|\\t+)/;\n\nconst INDENT_TYPE_SPACE = 'space';\nconst INDENT_TYPE_TAB = 'tab';\n\n/**\nMake a Map that counts how many indents/unindents have occurred for a given size and how many lines follow a given indentation.\n\nThe key is a concatenation of the indentation type (s = space and t = tab) and the size of the indents/unindents.\n\n```\nindents = {\n\tt3: [1, 0],\n\tt4: [1, 5],\n\ts5: [1, 0],\n\ts12: [1, 0],\n}\n```\n*/\nfunction makeIndentsMap(string, ignoreSingleSpaces) {\n\tconst indents = new Map();\n\n\t// Remember the size of previous line's indentation\n\tlet previousSize = 0;\n\tlet previousIndentType;\n\n\t// Indents key (ident type + size of the indents/unindents)\n\tlet key;\n\n\tfor (const line of string.split(/\\n/g)) {\n\t\tif (!line) {\n\t\t\t// Ignore empty lines\n\t\t\tcontinue;\n\t\t}\n\n\t\tlet indent;\n\t\tlet indentType;\n\t\tlet use;\n\t\tlet weight;\n\t\tlet entry;\n\t\tconst matches = line.match(INDENT_REGEX);\n\n\t\tif (matches === null) {\n\t\t\tpreviousSize = 0;\n\t\t\tpreviousIndentType = '';\n\t\t} else {\n\t\t\tindent = matches[0].length;\n\t\t\tindentType = matches[1] ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;\n\n\t\t\t// Ignore single space unless it's the only indent detected to prevent common false positives\n\t\t\tif (ignoreSingleSpaces && indentType === INDENT_TYPE_SPACE && indent === 1) {\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (indentType !== previousIndentType) {\n\t\t\t\tpreviousSize = 0;\n\t\t\t}\n\n\t\t\tpreviousIndentType = indentType;\n\n\t\t\tuse = 1;\n\t\t\tweight = 0;\n\n\t\t\tconst indentDifference = indent - previousSize;\n\t\t\tpreviousSize = indent;\n\n\t\t\t// Previous line have same indent?\n\t\t\tif (indentDifference === 0) {\n\t\t\t\t// Not a new \"use\" of the current indent:\n\t\t\t\tuse = 0;\n\t\t\t\t// But do add a bit to it for breaking ties:\n\t\t\t\tweight = 1;\n\t\t\t\t// We use the key from previous loop\n\t\t\t} else {\n\t\t\t\tconst absoluteIndentDifference = indentDifference > 0 ? indentDifference : -indentDifference;\n\t\t\t\tkey = encodeIndentsKey(indentType, absoluteIndentDifference);\n\t\t\t}\n\n\t\t\t// Update the stats\n\t\t\tentry = indents.get(key);\n\t\t\tentry = entry === undefined ? [1, 0] : [entry[0] + use, entry[1] + weight];\n\n\t\t\tindents.set(key, entry);\n\t\t}\n\t}\n\n\treturn indents;\n}\n\n// Encode the indent type and amount as a string (e.g. 's4') for use as a compound key in the indents Map.\nfunction encodeIndentsKey(indentType, indentAmount) {\n\tconst typeCharacter = indentType === INDENT_TYPE_SPACE ? 's' : 't';\n\treturn typeCharacter + String(indentAmount);\n}\n\n// Extract the indent type and amount from a key of the indents Map.\nfunction decodeIndentsKey(indentsKey) {\n\tconst keyHasTypeSpace = indentsKey[0] === 's';\n\tconst type = keyHasTypeSpace ? INDENT_TYPE_SPACE : INDENT_TYPE_TAB;\n\n\tconst amount = Number(indentsKey.slice(1));\n\n\treturn {type, amount};\n}\n\n// Return the key (e.g. 's4') from the indents Map that represents the most common indent,\n// or return undefined if there are no indents.\nfunction getMostUsedKey(indents) {\n\tlet result;\n\tlet maxUsed = 0;\n\tlet maxWeight = 0;\n\n\tfor (const [key, [usedCount, weight]] of indents) {\n\t\tif (usedCount > maxUsed || (usedCount === maxUsed && weight > maxWeight)) {\n\t\t\tmaxUsed = usedCount;\n\t\t\tmaxWeight = weight;\n\t\t\tresult = key;\n\t\t}\n\t}\n\n\treturn result;\n}\n\nfunction makeIndentString(type, amount) {\n\tconst indentCharacter = type === INDENT_TYPE_SPACE ? ' ' : '\\t';\n\treturn indentCharacter.repeat(amount);\n}\n\nexport default function detectIndent(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\t// Identify indents while skipping single space indents to avoid common edge cases (e.g. code comments)\n\t// If no indents are identified, run again and include all indents for comprehensive detection\n\tlet indents = makeIndentsMap(string, true);\n\tif (indents.size === 0) {\n\t\tindents = makeIndentsMap(string, false);\n\t}\n\n\tconst keyOfMostUsedIndent = getMostUsedKey(indents);\n\n\tlet type;\n\tlet amount = 0;\n\tlet indent = '';\n\n\tif (keyOfMostUsedIndent !== undefined) {\n\t\t({type, amount} = decodeIndentsKey(keyOfMostUsedIndent));\n\t\tindent = makeIndentString(type, amount);\n\t}\n\n\treturn {\n\t\tamount,\n\t\ttype,\n\t\tindent,\n\t};\n}\n",
|
|
117
|
-
"export function detectNewline(string) {\n\tif (typeof string !== 'string') {\n\t\tthrow new TypeError('Expected a string');\n\t}\n\n\tconst newlines = string.match(/(?:\\r?\\n)/g) || [];\n\n\tif (newlines.length === 0) {\n\t\treturn;\n\t}\n\n\tconst crlf = newlines.filter(newline => newline === '\\r\\n').length;\n\tconst lf = newlines.length - crlf;\n\n\treturn crlf > lf ? '\\r\\n' : '\\n';\n}\n\nexport function detectNewlineGraceful(string) {\n\treturn (typeof string === 'string' && detectNewline(string)) || '\\n';\n}\n",
|
|
118
|
-
"import * as c from './case'\nimport * as p from './pluralize'\nimport * as u from './utils'\n\nexport const Str = {\n slash(str: string): string {\n return u.slash(str)\n },\n\n ensurePrefix(prefix: string, str: string): string {\n return u.ensurePrefix(prefix, str)\n },\n\n ensureSuffix(suffix: string, str: string): string {\n return u.ensureSuffix(suffix, str)\n },\n\n template(str: string, ...args: any[]): string {\n return u.template(str, ...args)\n },\n\n /**\n * Truncate a string\n */\n truncate(str: string, length: number, end = '...'): string {\n return u.truncate(str, length, end)\n },\n\n random(length = 16, dict?: string): string {\n return u.random(length, dict)\n },\n\n capitalize(str: string): string {\n return c.capitalize(str)\n },\n\n slug(str: string): string {\n return u.slug(str)\n },\n\n detectIndent(str: string): {\n amount: number\n type: string | undefined\n indent: string\n } {\n return u.detectIndent(str)\n },\n\n detectNewline(str: string): '\\r\\n' | '\\n' | undefined {\n return u.detectNewline(str)\n },\n\n camelCase(str: string): string {\n return c.camelCase(str)\n },\n\n capitalCase(str: string): string {\n return c.capitalCase(str)\n },\n\n constantCase(str: string): string {\n return c.constantCase(str)\n },\n\n dotCase(str: string): string {\n return c.dotCase(str)\n },\n\n noCase(str: string): string {\n return c.noCase(str)\n },\n\n paramCase(str: string): string {\n return c.paramCase(str)\n },\n\n pascalCase(str: string): string {\n return c.pascalCase(str)\n },\n\n pathCase(str: string): string {\n return c.pathCase(str)\n },\n\n sentenceCase(str: string): string {\n return c.sentenceCase(str)\n },\n\n snakeCase(str: string): string {\n return c.snakeCase(str)\n },\n\n titleCase(str: string): string {\n return c.titleCase(str)\n },\n\n kebabCase(str: string): string {\n return c.kebabCase(str)\n },\n\n plural(str: string): string {\n // plural, singular, isPlural, isSingular, addPluralRule, addSingularRule, addIrregularRule, addUncountableRule\n return p.plural(str)\n },\n\n singular(str: string): string {\n return p.singular(str)\n },\n\n isPlural(str: string): boolean {\n return p.isPlural(str)\n },\n\n isSingular(str: string): boolean {\n return p.isSingular(str)\n },\n\n addPluralRule(rule: string | RegExp, repl: string): void {\n p.addPluralRule(rule, repl)\n },\n\n addSingularRule(rule: string | RegExp, repl: string): void {\n p.addSingularRule(rule, repl)\n },\n\n addIrregularRule(single: string, plural: string): void {\n p.addIrregularRule(single, plural)\n },\n\n addUncountableRule(word: string | RegExp): void {\n p.addUncountableRule(word)\n },\n}\n\nexport const str: typeof Str = Str\n",
|
|
119
|
-
"import { toString } from '@stacksjs/strings'\nimport { getTypeName } from '@stacksjs/types'\n\nexport function isDef<T = any>(val?: T): val is T {\n return typeof val !== 'undefined'\n}\n\nexport function isBoolean(val: any): val is boolean {\n return typeof val === 'boolean'\n}\n\n// eslint-disable-next-line ts/no-unsafe-function-type\nexport function isFunction<T extends Function>(val: any): val is T {\n return typeof val === 'function'\n}\n\nexport function isNumber(val: any): val is number {\n return typeof val === 'number'\n}\n\nexport function isString(val: unknown): val is string {\n return typeof val === 'string'\n}\n\nexport function isObject(val: any): val is object {\n return toString(val) === '[object Object]'\n}\n\nexport function isWindow(val: any): boolean {\n return typeof window !== 'undefined' && toString(val) === '[object Window]'\n}\n\nexport const isBrowser: boolean = typeof window !== 'undefined'\n\nexport const isServer: boolean = typeof document === 'undefined' // https://remix.run/docs/en/v1/pages/gotchas#typeof-window-checks\n\nexport function isMap(val: any): val is Map<any, any> {\n return toString(val) === '[object Map]'\n}\n\nexport function isSet(val: any): val is Set<any> {\n return toString(val) === '[object Set]'\n}\n\nexport function isPromise<T = any>(val: any): val is Promise<T> {\n return toString(val) === '[object Promise]'\n}\n\nexport function isUndefined(v: any): boolean {\n return getTypeName(v) === 'undefined'\n}\n\nexport function isNull(v: any): boolean {\n return getTypeName(v) === 'null'\n}\n\nexport function isSymbol(v: any): boolean {\n return getTypeName(v) === 'symbol'\n}\n\nexport function isDate(v: any): boolean {\n return getTypeName(v) === 'date'\n}\n\nexport function isRegExp(v: any): boolean {\n return getTypeName(v) === 'regexp'\n}\n\nexport function isArray(v: any): boolean {\n return getTypeName(v) === 'array'\n}\n\nexport function isPrimitive(v: any): boolean {\n const type = getTypeName(v)\n return (\n type === 'null'\n || type === 'undefined'\n || type === 'string'\n || type === 'number'\n || type === 'boolean'\n || type === 'symbol'\n )\n}\n\nexport function isInteger(v: any): boolean {\n return isNumber(v) && Number.isInteger(v)\n}\n\nexport function isFloat(v: any): boolean {\n return isNumber(v) && !Number.isInteger(v)\n}\n\nexport function isPositive(v: any): boolean {\n return isNumber(v) && v > 0\n}\n\nexport function isNegative(v: any): boolean {\n return isNumber(v) && v < 0\n}\n\nexport function isEven(v: any): boolean {\n return isNumber(v) && v % 2 === 0\n}\n\nexport function isOdd(v: any): boolean {\n return isNumber(v) && v % 2 !== 0\n}\n\nexport function isEvenOrOdd(v: any): 'even' | 'odd' {\n return isNumber(v) ? (v % 2 === 0 ? 'even' : 'odd') : 'odd'\n}\n\nexport function isPositiveOrNegative(v: any): 'positive' | 'negative' {\n return isNumber(v) ? (v > 0 ? 'positive' : 'negative') : 'negative'\n}\n\nexport function isIntegerOrFloat(v: any): 'integer' | 'float' {\n return isNumber(v) ? (Number.isInteger(v) ? 'integer' : 'float') : 'float'\n}\n",
|
|
120
|
-
"// src/defaults.ts\nvar messages = {\n \"required\": \"The {{ field }} field must be defined\",\n \"string\": \"The {{ field }} field must be a string\",\n \"email\": \"The {{ field }} field must be a valid email address\",\n \"mobile\": \"The {{ field }} field must be a valid mobile phone number\",\n \"creditCard\": \"The {{ field }} field must be a valid {{ providersList }} card number\",\n \"passport\": \"The {{ field }} field must be a valid passport number\",\n \"postalCode\": \"The {{ field }} field must be a valid postal code\",\n \"regex\": \"The {{ field }} field format is invalid\",\n \"ascii\": \"The {{ field }} field must only contain ASCII characters\",\n \"iban\": \"The {{ field }} field must be a valid IBAN number\",\n \"jwt\": \"The {{ field }} field must be a valid JWT token\",\n \"coordinates\": \"The {{ field }} field must contain latitude and longitude coordinates\",\n \"url\": \"The {{ field }} field must be a valid URL\",\n \"activeUrl\": \"The {{ field }} field must be a valid URL\",\n \"alpha\": \"The {{ field }} field must contain only letters\",\n \"alphaNumeric\": \"The {{ field }} field must contain only letters and numbers\",\n \"minLength\": \"The {{ field }} field must have at least {{ min }} characters\",\n \"maxLength\": \"The {{ field }} field must not be greater than {{ max }} characters\",\n \"fixedLength\": \"The {{ field }} field must be {{ size }} characters long\",\n \"confirmed\": \"The {{ field }} field and {{ otherField }} field must be the same\",\n \"endsWith\": \"The {{ field }} field must end with {{ substring }}\",\n \"startsWith\": \"The {{ field }} field must start with {{ substring }}\",\n \"sameAs\": \"The {{ field }} field and {{ otherField }} field must be the same\",\n \"notSameAs\": \"The {{ field }} field and {{ otherField }} field must be different\",\n \"in\": \"The selected {{ field }} is invalid\",\n \"notIn\": \"The selected {{ field }} is invalid\",\n \"ipAddress\": \"The {{ field }} field must be a valid IP address\",\n \"uuid\": \"The {{ field }} field must be a valid UUID\",\n \"hexCode\": \"The {{ field }} field must be a valid hex color code\",\n \"boolean\": \"The value must be a boolean\",\n \"number\": \"The {{ field }} field must be a number\",\n \"number.in\": \"The selected {{ field }} is not in {{ values }}\",\n \"min\": \"The {{ field }} field must be at least {{ min }}\",\n \"max\": \"The {{ field }} field must not be greater than {{ max }}\",\n \"range\": \"The {{ field }} field must be between {{ min }} and {{ max }}\",\n \"positive\": \"The {{ field }} field must be positive\",\n \"negative\": \"The {{ field }} field must be negative\",\n \"decimal\": \"The {{ field }} field must have {{ digits }} decimal places\",\n \"withoutDecimals\": \"The {{ field }} field must be an integer\",\n \"accepted\": \"The {{ field }} field must be accepted\",\n \"enum\": \"The selected {{ field }} is invalid\",\n \"literal\": \"The {{ field }} field must be {{ expectedValue }}\",\n \"object\": \"The {{ field }} field must be an object\",\n \"array\": \"The {{ field }} field must be an array\",\n \"array.minLength\": \"The {{ field }} field must have at least {{ min }} items\",\n \"array.maxLength\": \"The {{ field }} field must not have more than {{ max }} items\",\n \"array.fixedLength\": \"The {{ field }} field must contain {{ size }} items\",\n \"notEmpty\": \"The {{ field }} field must not be empty\",\n \"distinct\": \"The {{ field }} field has duplicate values\",\n \"record\": \"The {{ field }} field must be an object\",\n \"record.minLength\": \"The {{ field }} field must have at least {{ min }} items\",\n \"record.maxLength\": \"The {{ field }} field must not have more than {{ max }} items\",\n \"record.fixedLength\": \"The {{ field }} field must contain {{ size }} items\",\n \"tuple\": \"The {{ field }} field must be an array\",\n \"union\": \"Invalid value provided for {{ field }} field\",\n \"unionGroup\": \"Invalid value provided for {{ field }} field\",\n \"unionOfTypes\": \"Invalid value provided for {{ field }} field\",\n \"date\": \"The {{ field }} field must be a datetime value\",\n \"date.equals\": \"The {{ field }} field must be a date equal to {{ expectedValue }}\",\n \"date.after\": \"The {{ field }} field must be a date after {{ expectedValue }}\",\n \"date.before\": \"The {{ field }} field must be a date before {{ expectedValue }}\",\n \"date.afterOrEqual\": \"The {{ field }} field must be a date after or equal to {{ expectedValue }}\",\n \"date.beforeOrEqual\": \"The {{ field }} field must be a date before or equal to {{ expectedValue }}\",\n \"date.sameAs\": \"The {{ field }} field and {{ otherField }} field must be the same\",\n \"date.notSameAs\": \"The {{ field }} field and {{ otherField }} field must be different\",\n \"date.afterField\": \"The {{ field }} field must be a date after {{ otherField }}\",\n \"date.afterOrSameAs\": \"The {{ field }} field must be a date after or same as {{ otherField }}\",\n \"date.beforeField\": \"The {{ field }} field must be a date before {{ otherField }}\",\n \"date.beforeOrSameAs\": \"The {{ field }} field must be a date before or same as {{ otherField }}\",\n \"date.weekend\": \"The {{ field }} field is not a weekend\",\n \"date.weekday\": \"The {{ field }} field is not a weekday\"\n};\nvar fields = {\n \"\": \"data\"\n};\n\nexport {\n messages,\n fields\n};\n//# sourceMappingURL=chunk-577THMJC.js.map",
|
|
121
|
-
"var __defProp = Object.defineProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\n\nexport {\n __export\n};\n//# sourceMappingURL=chunk-CSAU5B4Q.js.map",
|
|
122
|
-
"export default function(t,e,l,n,r){for(e=e.split?e.split(\".\"):e,n=0;n<e.length;n++)t=t?t[e[n]]:r;return t===r?l:t}\n//# sourceMappingURL=dlv.es.js.map\n",
|
|
123
|
-
"import {\n __export\n} from \"./chunk-CSAU5B4Q.js\";\n\n// src/messages_provider/simple_messages_provider.ts\nvar SimpleMessagesProvider = class {\n #messages;\n #fields;\n constructor(messages, fields) {\n this.#messages = messages;\n this.#fields = fields || {};\n }\n /**\n * Interpolates place holders within error messages\n */\n #interpolate(message, data) {\n if (!message.includes(\"{{\")) {\n return message;\n }\n return message.replace(/(\\\\)?{{(.*?)}}/g, (_, __, key) => {\n const tokens = key.trim().split(\".\");\n let output = data;\n while (tokens.length) {\n if (output === null || typeof output !== \"object\") {\n return;\n }\n const token = tokens.shift();\n output = Object.hasOwn(output, token) ? output[token] : void 0;\n }\n return output;\n });\n }\n /**\n * Returns a validation message for a given field + rule.\n */\n getMessage(rawMessage, rule, field, args) {\n const fieldName = this.#fields[field.name] || field.name;\n const fieldMessage = this.#messages[`${field.getFieldPath()}.${rule}`];\n if (fieldMessage) {\n return this.#interpolate(fieldMessage, {\n field: fieldName,\n ...args\n });\n }\n const wildcardMessage = this.#messages[`${field.wildCardPath}.${rule}`];\n if (wildcardMessage) {\n return this.#interpolate(wildcardMessage, {\n field: fieldName,\n ...args\n });\n }\n const ruleMessage = this.#messages[rule];\n if (ruleMessage) {\n return this.#interpolate(ruleMessage, {\n field: fieldName,\n ...args\n });\n }\n return this.#interpolate(rawMessage, {\n field: fieldName,\n ...args\n });\n }\n toJSON() {\n return {\n messages: this.#messages,\n fields: this.#fields\n };\n }\n};\n\n// src/errors/main.ts\nvar main_exports = {};\n__export(main_exports, {\n E_VALIDATION_ERROR: () => E_VALIDATION_ERROR\n});\n\n// src/errors/validation_error.ts\nvar ValidationError = class extends Error {\n constructor(messages, options) {\n super(\"Validation failure\", options);\n this.messages = messages;\n const ErrorConstructor = this.constructor;\n Error.captureStackTrace(this, ErrorConstructor);\n }\n /**\n * Http status code for the validation error\n */\n status = 422;\n /**\n * Internal code for handling the validation error\n * exception\n */\n code = \"E_VALIDATION_ERROR\";\n get [Symbol.toStringTag]() {\n return this.constructor.name;\n }\n toString() {\n return `${this.name} [${this.code}]: ${this.message}`;\n }\n};\n\n// src/errors/main.ts\nvar E_VALIDATION_ERROR = ValidationError;\n\n// src/reporters/simple_error_reporter.ts\nvar SimpleErrorReporter = class {\n /**\n * Boolean to know one or more errors have been reported\n */\n hasErrors = false;\n /**\n * Collection of errors\n */\n errors = [];\n /**\n * Report an error.\n */\n report(message, rule, field, meta) {\n const error = {\n message,\n rule,\n field: field.getFieldPath()\n };\n if (meta) {\n error.meta = meta;\n }\n if (field.isArrayMember) {\n error.index = field.name;\n }\n this.hasErrors = true;\n this.errors.push(error);\n }\n /**\n * Returns an instance of the validation error\n */\n createError() {\n return new E_VALIDATION_ERROR(this.errors);\n }\n};\n\n// src/vine/helpers.ts\nimport delve from \"dlv\";\nimport isIP from \"validator/lib/isIP.js\";\nimport isJWT from \"validator/lib/isJWT.js\";\nimport isURL from \"validator/lib/isURL.js\";\nimport isSlug from \"validator/lib/isSlug.js\";\nimport isIBAN from \"validator/lib/isIBAN.js\";\nimport isUUID from \"validator/lib/isUUID.js\";\nimport isAscii from \"validator/lib/isAscii.js\";\nimport isEmail from \"validator/lib/isEmail.js\";\nimport isAlpha from \"validator/lib/isAlpha.js\";\nimport isLatLong from \"validator/lib/isLatLong.js\";\nimport isDecimal from \"validator/lib/isDecimal.js\";\nimport isHexColor from \"validator/lib/isHexColor.js\";\nimport isCreditCard from \"validator/lib/isCreditCard.js\";\nimport isAlphanumeric from \"validator/lib/isAlphanumeric.js\";\nimport isPassportNumber from \"validator/lib/isPassportNumber.js\";\nimport isPostalCode from \"validator/lib/isPostalCode.js\";\nimport isMobilePhone from \"validator/lib/isMobilePhone.js\";\nimport { locales as mobilePhoneLocales } from \"validator/lib/isMobilePhone.js\";\nimport { locales as postalCodeLocales } from \"validator/lib/isPostalCode.js\";\nvar BOOLEAN_POSITIVES = [\"1\", 1, \"true\", true, \"on\"];\nvar BOOLEAN_NEGATIVES = [\"0\", 0, \"false\", false];\nvar helpers = {\n /**\n * Returns true when value is not null and neither\n * undefined\n */\n exists(value) {\n return value !== null && value !== void 0;\n },\n /**\n * Returns true when value is null or value is undefined\n */\n isMissing(value) {\n return !this.exists(value);\n },\n /**\n * Returns true when the value is one of the following.\n *\n * true\n * 1\n * \"1\"\n * \"true\"\n * \"on\"\n */\n isTrue(value) {\n return BOOLEAN_POSITIVES.includes(value);\n },\n /**\n * Returns true when the value is one of the following.\n *\n * false\n * 0\n * \"0\"\n * \"false\"\n */\n isFalse(value) {\n return BOOLEAN_NEGATIVES.includes(value);\n },\n /**\n * Check if the value is a valid string. This method narrows\n * the type of value to string.\n */\n isString(value) {\n return typeof value === \"string\";\n },\n /**\n * Check if the value is a plain JavaScript object. This method\n * filters out null and Arrays and does not consider them as Objects.\n */\n isObject(value) {\n return !!(value && typeof value === \"object\" && !Array.isArray(value));\n },\n /**\n * Check if an object has all the mentioned keys\n */\n hasKeys(value, keys) {\n for (let key of keys) {\n if (key in value === false) {\n return false;\n }\n }\n return true;\n },\n /**\n * Check if the value is an Array.\n */\n isArray(value) {\n return Array.isArray(value);\n },\n /**\n * Check if the value is a number or a string representation of a number.\n */\n isNumeric(value) {\n return !Number.isNaN(Number(value));\n },\n /**\n * Casts the value to a number using the Number method.\n * Returns NaN when unable to cast.\n */\n asNumber(value) {\n return value === null ? Number.NaN : Number(value);\n },\n /**\n * Casts the value to a boolean.\n *\n * - [true, 1, \"1\", \"true\", \"on\"] will be converted to true.\n * - [false, 0, \"0\", \"false\"] will be converted to false.\n * - Everything else will return null. So make sure to handle that case.\n */\n asBoolean(value) {\n if (this.isTrue(value)) {\n return true;\n }\n if (this.isFalse(value)) {\n return false;\n }\n return null;\n },\n isEmail: isEmail.default,\n isURL: isURL.default,\n isAlpha: isAlpha.default,\n isAlphaNumeric: isAlphanumeric.default,\n isIP: isIP.default,\n isUUID: isUUID.default,\n isAscii: isAscii.default,\n isCreditCard: isCreditCard.default,\n isIBAN: isIBAN.default,\n isJWT: isJWT.default,\n isLatLong: isLatLong.default,\n isMobilePhone: isMobilePhone.default,\n isPassportNumber: isPassportNumber.default,\n isPostalCode: isPostalCode.default,\n isSlug: isSlug.default,\n isDecimal: isDecimal.default,\n mobileLocales: mobilePhoneLocales,\n postalCountryCodes: postalCodeLocales,\n passportCountryCodes: [\n \"AM\",\n \"AR\",\n \"AT\",\n \"AU\",\n \"AZ\",\n \"BE\",\n \"BG\",\n \"BR\",\n \"BY\",\n \"CA\",\n \"CH\",\n \"CY\",\n \"CZ\",\n \"DE\",\n \"DK\",\n \"DZ\",\n \"ES\",\n \"FI\",\n \"FR\",\n \"GB\",\n \"GR\",\n \"HR\",\n \"HU\",\n \"IE\",\n \"IN\",\n \"ID\",\n \"IR\",\n \"IS\",\n \"IT\",\n \"JM\",\n \"JP\",\n \"KR\",\n \"KZ\",\n \"LI\",\n \"LT\",\n \"LU\",\n \"LV\",\n \"LY\",\n \"MT\",\n \"MZ\",\n \"MY\",\n \"MX\",\n \"NL\",\n \"NZ\",\n \"PH\",\n \"PK\",\n \"PL\",\n \"PT\",\n \"RO\",\n \"RU\",\n \"SE\",\n \"SL\",\n \"SK\",\n \"TH\",\n \"TR\",\n \"UA\",\n \"US\"\n ],\n /**\n * Check if the value is a valid color hexcode\n */\n isHexColor: (value) => {\n if (!value.startsWith(\"#\")) {\n return false;\n }\n return isHexColor.default(value);\n },\n /**\n * Check if a URL has valid `A` or `AAAA` DNS records\n */\n isActiveURL: async (url) => {\n const { resolve4, resolve6 } = await import(\"node:dns/promises\");\n try {\n const { hostname } = new URL(url);\n const v6Addresses = await resolve6(hostname);\n if (v6Addresses.length) {\n return true;\n } else {\n const v4Addresses = await resolve4(hostname);\n return v4Addresses.length > 0;\n }\n } catch {\n return false;\n }\n },\n /**\n * Check if all the elements inside the dataset are unique.\n *\n * In case of an array of objects, you must provide one or more keys\n * for the fields that must be unique across the objects.\n *\n * ```ts\n * helpers.isDistinct([1, 2, 4, 5]) // true\n *\n * // Null and undefined values are ignored\n * helpers.isDistinct([1, null, 2, null, 4, 5]) // true\n *\n * helpers.isDistinct([\n * {\n * email: 'foo@bar.com',\n * name: 'foo'\n * },\n * {\n * email: 'baz@bar.com',\n * name: 'baz'\n * }\n * ], 'email') // true\n *\n * helpers.isDistinct([\n * {\n * email: 'foo@bar.com',\n * tenant_id: 1,\n * name: 'foo'\n * },\n * {\n * email: 'foo@bar.com',\n * tenant_id: 2,\n * name: 'baz'\n * }\n * ], ['email', 'tenant_id']) // true\n * ```\n */\n isDistinct: (dataSet, fields) => {\n const uniqueItems = /* @__PURE__ */ new Set();\n if (!fields) {\n for (let item of dataSet) {\n if (helpers.exists(item)) {\n if (uniqueItems.has(item)) {\n return false;\n } else {\n uniqueItems.add(item);\n }\n }\n }\n return true;\n }\n const fieldsList = Array.isArray(fields) ? fields : [fields];\n for (let item of dataSet) {\n if (helpers.isObject(item) && helpers.hasKeys(item, fieldsList)) {\n const element = fieldsList.map((field) => item[field]).join(\"_\");\n if (uniqueItems.has(element)) {\n return false;\n } else {\n uniqueItems.add(element);\n }\n }\n }\n return true;\n },\n /**\n * Returns the nested value from the field root\n * object or the sibling value from the field\n * parent object\n */\n getNestedValue(key, field) {\n if (key.indexOf(\".\") > -1) {\n return delve(field.data, key);\n }\n return field.parent[key];\n }\n};\n\nexport {\n helpers,\n SimpleMessagesProvider,\n ValidationError,\n main_exports,\n SimpleErrorReporter\n};\n//# sourceMappingURL=chunk-2W32DW3L.js.map",
|
|
124
|
-
"import {\n fields,\n messages\n} from \"./chunk-577THMJC.js\";\nimport {\n SimpleErrorReporter,\n SimpleMessagesProvider,\n ValidationError,\n helpers\n} from \"./chunk-2W32DW3L.js\";\nimport {\n __export\n} from \"./chunk-CSAU5B4Q.js\";\n\n// src/vine/create_rule.ts\nfunction createRule(validator, metaData) {\n const rule = {\n validator,\n isAsync: metaData?.isAsync || validator.constructor.name === \"AsyncFunction\",\n implicit: metaData?.implicit ?? false\n };\n return function(...options) {\n return {\n rule,\n options: options[0]\n };\n };\n}\n\n// src/schema/builder.ts\nimport Macroable3 from \"@poppinss/macroable\";\n\n// src/schema/base/literal.ts\nimport camelcase from \"camelcase\";\nimport Macroable from \"@poppinss/macroable\";\n\n// src/symbols.ts\nvar symbols_exports = {};\n__export(symbols_exports, {\n COTYPE: () => COTYPE,\n IS_OF_TYPE: () => IS_OF_TYPE,\n ITYPE: () => ITYPE,\n OTYPE: () => OTYPE,\n PARSE: () => PARSE,\n UNIQUE_NAME: () => UNIQUE_NAME,\n VALIDATION: () => VALIDATION\n});\nvar UNIQUE_NAME = Symbol.for(\"schema_name\");\nvar IS_OF_TYPE = Symbol.for(\"is_of_type\");\nvar PARSE = Symbol.for(\"parse\");\nvar ITYPE = Symbol.for(\"opaque_input_type\");\nvar OTYPE = Symbol.for(\"opaque_type\");\nvar COTYPE = Symbol.for(\"camelcase_opaque_type\");\nvar VALIDATION = Symbol.for(\"to_validation\");\n\n// src/schema/base/rules.ts\nvar requiredWhen = createRule(\n (_, checker, field) => {\n const shouldBeRequired = checker(field);\n if (!field.isDefined && shouldBeRequired) {\n field.report(messages.required, \"required\", field);\n }\n },\n {\n implicit: true\n }\n);\n\n// src/schema/base/literal.ts\nvar BaseModifiersType = class extends Macroable {\n /**\n * Mark the field under validation as optional. An optional\n * field allows both null and undefined values.\n */\n optional(validations) {\n return new OptionalModifier(this, validations);\n }\n /**\n * Mark the field under validation to be null. The null value will\n * be written to the output as well.\n *\n * If `optional` and `nullable` are used together, then both undefined\n * and null values will be allowed.\n */\n nullable() {\n return new NullableModifier(this);\n }\n /**\n * Apply transform on the final validated value. The transform method may\n * convert the value to any new datatype.\n */\n transform(transformer) {\n return new TransformModifier(transformer, this);\n }\n};\nvar NullableModifier = class _NullableModifier extends BaseModifiersType {\n #parent;\n constructor(parent) {\n super();\n this.#parent = parent;\n }\n /**\n * Creates a fresh instance of the underlying schema type\n * and wraps it inside the nullable modifier\n */\n clone() {\n return new _NullableModifier(this.#parent.clone());\n }\n /**\n * Compiles to compiler node\n */\n [PARSE](propertyName, refs, options) {\n const output = this.#parent[PARSE](propertyName, refs, options);\n output.allowNull = true;\n return output;\n }\n};\nvar OptionalModifier = class _OptionalModifier extends BaseModifiersType {\n #parent;\n /**\n * Optional modifier validations list\n */\n validations;\n constructor(parent, validations) {\n super();\n this.#parent = parent;\n this.validations = validations || [];\n }\n /**\n * Shallow clones the validations. Since, there are no API's to mutate\n * the validation options, we can safely copy them by reference.\n */\n cloneValidations() {\n return this.validations.map((validation) => {\n return {\n options: validation.options,\n rule: validation.rule\n };\n });\n }\n /**\n * Compiles validations\n */\n compileValidations(refs) {\n return this.validations.map((validation) => {\n return {\n ruleFnId: refs.track({\n validator: validation.rule.validator,\n options: validation.options\n }),\n implicit: validation.rule.implicit,\n isAsync: validation.rule.isAsync\n };\n });\n }\n /**\n * Push a validation to the validations chain.\n */\n use(validation) {\n this.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n return this;\n }\n requiredWhen(otherField, operator, expectedValue) {\n if (typeof otherField === \"function\") {\n return this.use(requiredWhen(otherField));\n }\n let checker;\n switch (operator) {\n case \"=\":\n checker = (value) => value === expectedValue;\n break;\n case \"!=\":\n checker = (value) => value !== expectedValue;\n break;\n case \"in\":\n checker = (value) => expectedValue.includes(value);\n break;\n case \"notIn\":\n checker = (value) => !expectedValue.includes(value);\n break;\n case \">\":\n checker = (value) => value > expectedValue;\n break;\n case \"<\":\n checker = (value) => value < expectedValue;\n break;\n case \">=\":\n checker = (value) => value >= expectedValue;\n break;\n case \"<=\":\n checker = (value) => value <= expectedValue;\n }\n return this.use(\n requiredWhen((field) => {\n const otherFieldValue = helpers.getNestedValue(otherField, field);\n return checker(otherFieldValue);\n })\n );\n }\n /**\n * Mark the field under validation as required when all\n * the other fields are present with value other\n * than `undefined` or `null`.\n */\n requiredIfExists(fields2) {\n const fieldsToExist = Array.isArray(fields2) ? fields2 : [fields2];\n return this.use(\n requiredWhen((field) => {\n return fieldsToExist.every(\n (otherField) => helpers.exists(helpers.getNestedValue(otherField, field))\n );\n })\n );\n }\n /**\n * Mark the field under validation as required when any\n * one of the other fields are present with non-nullable\n * value.\n */\n requiredIfAnyExists(fields2) {\n return this.use(\n requiredWhen((field) => {\n return fields2.some(\n (otherField) => helpers.exists(helpers.getNestedValue(otherField, field))\n );\n })\n );\n }\n /**\n * Mark the field under validation as required when all\n * the other fields are missing or their value is\n * `undefined` or `null`.\n */\n requiredIfMissing(fields2) {\n const fieldsToExist = Array.isArray(fields2) ? fields2 : [fields2];\n return this.use(\n requiredWhen((field) => {\n return fieldsToExist.every(\n (otherField) => helpers.isMissing(helpers.getNestedValue(otherField, field))\n );\n })\n );\n }\n /**\n * Mark the field under validation as required when any\n * one of the other fields are missing.\n */\n requiredIfAnyMissing(fields2) {\n return this.use(\n requiredWhen((field) => {\n return fields2.some(\n (otherField) => helpers.isMissing(helpers.getNestedValue(otherField, field))\n );\n })\n );\n }\n /**\n * Creates a fresh instance of the underlying schema type\n * and wraps it inside the optional modifier\n */\n clone() {\n return new _OptionalModifier(this.#parent.clone(), this.cloneValidations());\n }\n /**\n * Compiles to compiler node\n */\n [PARSE](propertyName, refs, options) {\n const output = this.#parent[PARSE](propertyName, refs, options);\n output.isOptional = true;\n output.validations = output.validations.concat(this.compileValidations(refs));\n return output;\n }\n};\nvar TransformModifier = class _TransformModifier extends BaseModifiersType {\n #parent;\n #transform;\n constructor(transform, parent) {\n super();\n this.#transform = transform;\n this.#parent = parent;\n }\n /**\n * Creates a fresh instance of the underlying schema type\n * and wraps it inside the transform modifier.\n */\n clone() {\n return new _TransformModifier(this.#transform, this.#parent.clone());\n }\n /**\n * Compiles to compiler node\n */\n [PARSE](propertyName, refs, options) {\n const output = this.#parent[PARSE](propertyName, refs, options);\n output.transformFnId = refs.trackTransformer(this.#transform);\n return output;\n }\n};\nvar BaseLiteralType = class extends BaseModifiersType {\n /**\n * Field options\n */\n options;\n /**\n * Set of validations to run\n */\n validations;\n constructor(options, validations) {\n super();\n this.options = {\n bail: true,\n allowNull: false,\n isOptional: false,\n ...options\n };\n this.validations = validations || [];\n }\n /**\n * Shallow clones the validations. Since, there are no API's to mutate\n * the validation options, we can safely copy them by reference.\n */\n cloneValidations() {\n return this.validations.map((validation) => {\n return {\n options: validation.options,\n rule: validation.rule\n };\n });\n }\n /**\n * Shallow clones the options\n */\n cloneOptions() {\n return { ...this.options };\n }\n /**\n * Compiles validations\n */\n compileValidations(refs) {\n return this.validations.map((validation) => {\n return {\n ruleFnId: refs.track({\n validator: validation.rule.validator,\n options: validation.options\n }),\n implicit: validation.rule.implicit,\n isAsync: validation.rule.isAsync\n };\n });\n }\n /**\n * Define a method to parse the input value. The method\n * is invoked before any validation and hence you must\n * perform type-checking to know the value you are\n * working it.\n */\n parse(callback) {\n this.options.parse = callback;\n return this;\n }\n /**\n * Push a validation to the validations chain.\n */\n use(validation) {\n this.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n return this;\n }\n /**\n * Enable/disable the bail mode. In bail mode, the field validations\n * are stopped after the first error.\n */\n bail(state) {\n this.options.bail = state;\n return this;\n }\n /**\n * Compiles the schema type to a compiler node\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"literal\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase(propertyName) : propertyName,\n bail: this.options.bail,\n allowNull: this.options.allowNull,\n isOptional: this.options.isOptional,\n parseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n validations: this.compileValidations(refs)\n };\n }\n};\n\n// src/schema/any/main.ts\nvar VineAny = class _VineAny extends BaseLiteralType {\n constructor(options, validations) {\n super(options, validations);\n }\n /**\n * Clones the VineAny schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineAny(this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/enum/rules.ts\nvar enumRule = createRule((value, options, field) => {\n const choices = typeof options.choices === \"function\" ? options.choices(field) : options.choices;\n if (!choices.includes(value)) {\n field.report(messages.enum, \"enum\", field, { choices });\n }\n});\n\n// src/schema/enum/main.ts\nvar VineEnum = class _VineEnum extends BaseLiteralType {\n /**\n * Default collection of enum rules\n */\n static rules = {\n enum: enumRule\n };\n #values;\n /**\n * Returns the enum choices\n */\n getChoices() {\n return this.#values;\n }\n constructor(values, options, validations) {\n super(options, validations || [enumRule({ choices: values })]);\n this.#values = values;\n }\n /**\n * Clones the VineEnum schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineEnum(this.#values, this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/date/main.ts\nimport dayjs2 from \"dayjs\";\n\n// src/schema/date/rules.ts\nimport dayjs from \"dayjs\";\nimport isSameOrAfter from \"dayjs/plugin/isSameOrAfter.js\";\nimport isSameOrBefore from \"dayjs/plugin/isSameOrBefore.js\";\nimport customParseFormat from \"dayjs/plugin/customParseFormat.js\";\nvar DEFAULT_DATE_FORMATS = [\"YYYY-MM-DD\", \"YYYY-MM-DD HH:mm:ss\"];\ndayjs.extend(customParseFormat);\ndayjs.extend(isSameOrAfter);\ndayjs.extend(isSameOrBefore);\nvar dateRule = createRule((value, options, field) => {\n if (typeof value !== \"string\" && typeof value !== \"number\") {\n field.report(messages.date, \"date\", field);\n return;\n }\n let isTimestampAllowed = false;\n let formats = options.formats || DEFAULT_DATE_FORMATS;\n if (Array.isArray(formats)) {\n formats = [...formats];\n isTimestampAllowed = formats.includes(\"x\");\n } else if (typeof formats !== \"string\") {\n formats = { ...formats };\n isTimestampAllowed = formats.format === \"x\";\n }\n const valueAsNumber = isTimestampAllowed ? helpers.asNumber(value) : value;\n const dateTime = isTimestampAllowed && !Number.isNaN(valueAsNumber) ? dayjs(valueAsNumber) : dayjs(value, formats, true);\n if (!dateTime.isValid()) {\n field.report(messages.date, \"date\", field);\n return;\n }\n field.meta.$value = dateTime;\n field.meta.$formats = formats;\n field.mutate(dateTime.toDate(), field);\n});\nvar equalsRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const format = options.format || DEFAULT_DATE_FORMATS;\n const dateTime = field.meta.$value;\n const expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n throw new Error(`Invalid datetime value \"${expectedValue}\" value provided to the equals rule`);\n }\n if (!dateTime.isSame(expectedDateTime, compare)) {\n field.report(messages[\"date.equals\"], \"date.equals\", field, {\n expectedValue,\n compare\n });\n }\n});\nvar afterRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const format = options.format || DEFAULT_DATE_FORMATS;\n const dateTime = field.meta.$value;\n const expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n const expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"tomorrow\" ? dayjs().add(1, \"day\") : dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n throw new Error(`Invalid datetime value \"${expectedValue}\" value provided to the after rule`);\n }\n if (!dateTime.isAfter(expectedDateTime, compare)) {\n field.report(messages[\"date.after\"], \"date.after\", field, {\n expectedValue,\n compare\n });\n }\n});\nvar afterOrEqualRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const format = options.format || DEFAULT_DATE_FORMATS;\n const dateTime = field.meta.$value;\n const expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n const expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"tomorrow\" ? dayjs().add(1, \"day\") : dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n throw new Error(\n `Invalid datetime value \"${expectedValue}\" value provided to the afterOrEqual rule`\n );\n }\n if (!dateTime.isSameOrAfter(expectedDateTime, compare)) {\n field.report(messages[\"date.afterOrEqual\"], \"date.afterOrEqual\", field, {\n expectedValue,\n compare\n });\n }\n});\nvar beforeRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const format = options.format || DEFAULT_DATE_FORMATS;\n const dateTime = field.meta.$value;\n const expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n const expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"yesterday\" ? dayjs().subtract(1, \"day\") : dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n throw new Error(`Invalid datetime value \"${expectedValue}\" value provided to the before rule`);\n }\n if (!dateTime.isBefore(expectedDateTime, compare)) {\n field.report(messages[\"date.before\"], \"date.before\", field, {\n expectedValue,\n compare\n });\n }\n});\nvar beforeOrEqualRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const format = options.format || DEFAULT_DATE_FORMATS;\n const dateTime = field.meta.$value;\n const expectedValue = typeof options.expectedValue === \"function\" ? options.expectedValue(field) : options.expectedValue;\n const expectedDateTime = expectedValue === \"today\" ? dayjs() : expectedValue === \"yesterday\" ? dayjs().subtract(1, \"day\") : dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n throw new Error(\n `Invalid datetime value \"${expectedValue}\" value provided to the beforeOrEqual rule`\n );\n }\n if (!dateTime.isSameOrBefore(expectedDateTime, compare)) {\n field.report(messages[\"date.beforeOrEqual\"], \"date.beforeOrEqual\", field, {\n expectedValue,\n compare\n });\n }\n});\nvar sameAsRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (!dateTime.isSame(expectedDateTime, compare)) {\n field.report(messages[\"date.sameAs\"], \"date.sameAs\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar notSameAsRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (dateTime.isSame(expectedDateTime, compare)) {\n field.report(messages[\"date.notSameAs\"], \"date.notSameAs\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar afterFieldRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (!dateTime.isAfter(expectedDateTime, compare)) {\n field.report(messages[\"date.afterField\"], \"date.afterField\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar afterOrSameAsRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (!dateTime.isSameOrAfter(expectedDateTime, compare)) {\n field.report(messages[\"date.afterOrSameAs\"], \"date.afterOrSameAs\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar beforeFieldRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (!dateTime.isBefore(expectedDateTime, compare)) {\n field.report(messages[\"date.beforeField\"], \"date.beforeField\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar beforeOrSameAsRule = createRule((_, options, field) => {\n if (!field.meta.$value) {\n return;\n }\n const compare = options.compare || \"day\";\n const dateTime = field.meta.$value;\n const format = options.format || field.meta.$formats;\n const expectedValue = helpers.getNestedValue(options.otherField, field);\n const expectedDateTime = dayjs(expectedValue, format, true);\n if (!expectedDateTime.isValid()) {\n return;\n }\n if (!dateTime.isSameOrBefore(expectedDateTime, compare)) {\n field.report(messages[\"date.beforeOrSameAs\"], \"date.beforeOrSameAs\", field, {\n otherField: options.otherField,\n expectedValue,\n compare\n });\n }\n});\nvar weekendRule = createRule((_, __, field) => {\n if (!field.meta.$value) {\n return;\n }\n const dateTime = field.meta.$value;\n const day = dateTime.day();\n if (day !== 0 && day !== 6) {\n field.report(messages[\"date.weekend\"], \"date.weekend\", field);\n }\n});\nvar weekdayRule = createRule((_, __, field) => {\n if (!field.meta.$value) {\n return;\n }\n const dateTime = field.meta.$value;\n const day = dateTime.day();\n if (day === 0 || day === 6) {\n field.report(messages[\"date.weekday\"], \"date.weekday\", field);\n }\n});\n\n// src/schema/date/main.ts\nvar VineDate = class _VineDate extends BaseLiteralType {\n /**\n * Available VineDate rules\n */\n static rules = {\n equals: equalsRule,\n after: afterRule,\n afterOrEqual: afterOrEqualRule,\n before: beforeRule,\n beforeOrEqual: beforeOrEqualRule,\n sameAs: sameAsRule,\n notSameAs: notSameAsRule,\n afterField: afterFieldRule,\n afterOrSameAs: afterOrSameAsRule,\n beforeField: beforeFieldRule,\n beforeOrSameAs: beforeOrSameAsRule,\n weekend: weekendRule,\n weekday: weekdayRule\n };\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.date\";\n /**\n * Checks if the value is of date type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n if (typeof value !== \"string\") {\n return false;\n }\n return dayjs2(value, this.options.formats || DEFAULT_DATE_FORMATS, true).isValid();\n };\n constructor(options, validations) {\n super(options, validations || [dateRule(options || {})]);\n }\n /**\n * The equals rule compares the input value to be same\n * as the expected value.\n *\n * By default, the comparions of day, month and years are performed.\n */\n equals(expectedValue, options) {\n return this.use(equalsRule({ expectedValue, ...options }));\n }\n /**\n * The after rule compares the input value to be after\n * the expected value.\n *\n * By default, the comparions of day, month and years are performed.\n */\n after(expectedValue, options) {\n return this.use(afterRule({ expectedValue, ...options }));\n }\n /**\n * The after or equal rule compares the input value to be\n * after or equal to the expected value.\n *\n * By default, the comparions of day, month and years are performed.\n */\n afterOrEqual(expectedValue, options) {\n return this.use(afterOrEqualRule({ expectedValue, ...options }));\n }\n /**\n * The before rule compares the input value to be before\n * the expected value.\n *\n * By default, the comparions of day, month and years are performed.\n */\n before(expectedValue, options) {\n return this.use(beforeRule({ expectedValue, ...options }));\n }\n /**\n * The before rule compares the input value to be before\n * the expected value.\n *\n * By default, the comparions of day, month and years are performed.\n */\n beforeOrEqual(expectedValue, options) {\n return this.use(beforeOrEqualRule({ expectedValue, ...options }));\n }\n /**\n * The sameAs rule expects the input value to be same\n * as the value of the other field.\n *\n * By default, the comparions of day, month and years are performed\n */\n sameAs(otherField, options) {\n return this.use(sameAsRule({ otherField, ...options }));\n }\n /**\n * The notSameAs rule expects the input value to be different\n * from the other field's value\n *\n * By default, the comparions of day, month and years are performed\n */\n notSameAs(otherField, options) {\n return this.use(notSameAsRule({ otherField, ...options }));\n }\n /**\n * The afterField rule expects the input value to be after\n * the other field's value.\n *\n * By default, the comparions of day, month and years are performed\n */\n afterField(otherField, options) {\n return this.use(afterFieldRule({ otherField, ...options }));\n }\n /**\n * The afterOrSameAs rule expects the input value to be after\n * or equal to the other field's value.\n *\n * By default, the comparions of day, month and years are performed\n */\n afterOrSameAs(otherField, options) {\n return this.use(afterOrSameAsRule({ otherField, ...options }));\n }\n /**\n * The beforeField rule expects the input value to be before\n * the other field's value.\n *\n * By default, the comparions of day, month and years are performed\n */\n beforeField(otherField, options) {\n return this.use(beforeFieldRule({ otherField, ...options }));\n }\n /**\n * The beforeOrSameAs rule expects the input value to be before\n * or same as the other field's value.\n *\n * By default, the comparions of day, month and years are performed\n */\n beforeOrSameAs(otherField, options) {\n return this.use(beforeOrSameAsRule({ otherField, ...options }));\n }\n /**\n * The weekend rule ensures the date falls on a weekend\n */\n weekend() {\n return this.use(weekendRule());\n }\n /**\n * The weekday rule ensures the date falls on a weekday\n */\n weekday() {\n return this.use(weekdayRule());\n }\n /**\n * Clones the VineDate schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineDate(this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/union/main.ts\nimport camelcase2 from \"camelcase\";\nvar VineUnion = class _VineUnion {\n #conditionals;\n #otherwiseCallback = (_, field) => {\n field.report(messages.union, \"union\", field);\n };\n constructor(conditionals) {\n this.#conditionals = conditionals;\n }\n /**\n * Define a fallback method to invoke when all of the union conditions\n * fail. You may use this method to report an error.\n */\n otherwise(callback) {\n this.#otherwiseCallback = callback;\n return this;\n }\n /**\n * Clones the VineUnion schema type.\n */\n clone() {\n const cloned = new _VineUnion(this.#conditionals);\n cloned.otherwise(this.#otherwiseCallback);\n return cloned;\n }\n /**\n * Compiles to a union\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"union\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase2(propertyName) : propertyName,\n elseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n conditions: this.#conditionals.map(\n (conditional) => conditional[PARSE](propertyName, refs, options)\n )\n };\n }\n};\n\n// src/schema/union/conditional.ts\nvar UnionConditional = class {\n /**\n * Properties to merge when conditonal is true\n */\n #schema;\n /**\n * Conditional to evaluate\n */\n #conditional;\n constructor(conditional, schema) {\n this.#schema = schema;\n this.#conditional = conditional;\n }\n /**\n * Compiles to a union conditional\n */\n [PARSE](propertyName, refs, options) {\n return {\n conditionalFnRefId: refs.trackConditional(this.#conditional),\n schema: this.#schema[PARSE](propertyName, refs, options)\n };\n }\n};\n\n// src/schema/union/builder.ts\nfunction union(conditionals) {\n return new VineUnion(conditionals);\n}\nunion.if = function unionIf(conditon, schema) {\n return new UnionConditional(conditon, schema);\n};\nunion.else = function unionElse(schema) {\n return new UnionConditional(() => true, schema);\n};\n\n// src/schema/tuple/main.ts\nimport camelcase3 from \"camelcase\";\n\n// src/schema/base/main.ts\nimport Macroable2 from \"@poppinss/macroable\";\nvar BaseModifiersType2 = class extends Macroable2 {\n /**\n * Mark the field under validation as optional. An optional\n * field allows both null and undefined values.\n */\n optional() {\n return new OptionalModifier2(this);\n }\n /**\n * Mark the field under validation to be null. The null value will\n * be written to the output as well.\n *\n * If `optional` and `nullable` are used together, then both undefined\n * and null values will be allowed.\n */\n nullable() {\n return new NullableModifier2(this);\n }\n};\nvar NullableModifier2 = class _NullableModifier extends BaseModifiersType2 {\n #parent;\n constructor(parent) {\n super();\n this.#parent = parent;\n }\n /**\n * Creates a fresh instance of the underlying schema type\n * and wraps it inside the nullable modifier\n */\n clone() {\n return new _NullableModifier(this.#parent.clone());\n }\n /**\n * Compiles to compiler node\n */\n [PARSE](propertyName, refs, options) {\n const output = this.#parent[PARSE](propertyName, refs, options);\n if (output.type !== \"union\") {\n output.allowNull = true;\n }\n return output;\n }\n};\nvar OptionalModifier2 = class _OptionalModifier extends BaseModifiersType2 {\n #parent;\n constructor(parent) {\n super();\n this.#parent = parent;\n }\n /**\n * Creates a fresh instance of the underlying schema type\n * and wraps it inside the optional modifier\n */\n clone() {\n return new _OptionalModifier(this.#parent.clone());\n }\n /**\n * Compiles to compiler node\n */\n [PARSE](propertyName, refs, options) {\n const output = this.#parent[PARSE](propertyName, refs, options);\n if (output.type !== \"union\") {\n output.isOptional = true;\n }\n return output;\n }\n};\nvar BaseType = class extends BaseModifiersType2 {\n /**\n * Field options\n */\n options;\n /**\n * Set of validations to run\n */\n validations;\n constructor(options, validations) {\n super();\n this.options = options || {\n bail: true,\n allowNull: false,\n isOptional: false\n };\n this.validations = validations || [];\n }\n /**\n * Shallow clones the validations. Since, there are no API's to mutate\n * the validation options, we can safely copy them by reference.\n */\n cloneValidations() {\n return this.validations.map((validation) => {\n return {\n options: validation.options,\n rule: validation.rule\n };\n });\n }\n /**\n * Shallow clones the options\n */\n cloneOptions() {\n return { ...this.options };\n }\n /**\n * Compiles validations\n */\n compileValidations(refs) {\n return this.validations.map((validation) => {\n return {\n ruleFnId: refs.track({\n validator: validation.rule.validator,\n options: validation.options\n }),\n implicit: validation.rule.implicit,\n isAsync: validation.rule.isAsync\n };\n });\n }\n /**\n * Define a method to parse the input value. The method\n * is invoked before any validation and hence you must\n * perform type-checking to know the value you are\n * working it.\n */\n parse(callback) {\n this.options.parse = callback;\n return this;\n }\n /**\n * Push a validation to the validations chain.\n */\n use(validation) {\n this.validations.push(VALIDATION in validation ? validation[VALIDATION]() : validation);\n return this;\n }\n /**\n * Enable/disable the bail mode. In bail mode, the field validations\n * are stopped after the first error.\n */\n bail(state) {\n this.options.bail = state;\n return this;\n }\n};\n\n// src/schema/tuple/main.ts\nvar VineTuple = class _VineTuple extends BaseType {\n #schemas;\n /**\n * Whether or not to allow unknown properties\n */\n #allowUnknownProperties = false;\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.array\";\n /**\n * Checks if the value is of array type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return Array.isArray(value);\n };\n constructor(schemas, options, validations) {\n super(options, validations);\n this.#schemas = schemas;\n }\n /**\n * Copy unknown properties to the final output.\n */\n allowUnknownProperties() {\n this.#allowUnknownProperties = true;\n return this;\n }\n /**\n * Clone object\n */\n clone() {\n const cloned = new _VineTuple(\n this.#schemas.map((schema) => schema.clone()),\n this.cloneOptions(),\n this.cloneValidations()\n );\n if (this.#allowUnknownProperties) {\n cloned.allowUnknownProperties();\n }\n return cloned;\n }\n /**\n * Compiles to array data type\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"tuple\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase3(propertyName) : propertyName,\n bail: this.options.bail,\n allowNull: this.options.allowNull,\n isOptional: this.options.isOptional,\n allowUnknownProperties: this.#allowUnknownProperties,\n parseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n validations: this.compileValidations(refs),\n properties: this.#schemas.map((schema, index) => schema[PARSE](String(index), refs, options))\n };\n }\n};\n\n// src/schema/array/main.ts\nimport camelcase4 from \"camelcase\";\n\n// src/schema/array/rules.ts\nvar minLengthRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length < options.min) {\n field.report(messages[\"array.minLength\"], \"array.minLength\", field, options);\n }\n});\nvar maxLengthRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length > options.max) {\n field.report(messages[\"array.maxLength\"], \"array.maxLength\", field, options);\n }\n});\nvar fixedLengthRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length !== options.size) {\n field.report(messages[\"array.fixedLength\"], \"array.fixedLength\", field, options);\n }\n});\nvar notEmptyRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length <= 0) {\n field.report(messages.notEmpty, \"notEmpty\", field);\n }\n});\nvar distinctRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isDistinct(value, options.fields)) {\n field.report(messages.distinct, \"distinct\", field, options);\n }\n});\nvar compactRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(\n value.filter((item) => helpers.exists(item) && item !== \"\"),\n field\n );\n});\n\n// src/schema/array/main.ts\nvar VineArray = class _VineArray extends BaseType {\n /**\n * Default collection of array rules\n */\n static rules = {\n compact: compactRule,\n notEmpty: notEmptyRule,\n distinct: distinctRule,\n minLength: minLengthRule,\n maxLength: maxLengthRule,\n fixedLength: fixedLengthRule\n };\n #schema;\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.array\";\n /**\n * Checks if the value is of array type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return Array.isArray(value);\n };\n constructor(schema, options, validations) {\n super(options, validations);\n this.#schema = schema;\n }\n /**\n * Enforce a minimum length on an array field\n */\n minLength(expectedLength) {\n return this.use(minLengthRule({ min: expectedLength }));\n }\n /**\n * Enforce a maximum length on an array field\n */\n maxLength(expectedLength) {\n return this.use(maxLengthRule({ max: expectedLength }));\n }\n /**\n * Enforce a fixed length on an array field\n */\n fixedLength(expectedLength) {\n return this.use(fixedLengthRule({ size: expectedLength }));\n }\n /**\n * Ensure the array is not empty\n */\n notEmpty() {\n return this.use(notEmptyRule());\n }\n /**\n * Ensure array elements are distinct/unique\n */\n distinct(fields2) {\n return this.use(distinctRule({ fields: fields2 }));\n }\n /**\n * Removes empty strings, null and undefined values from the array\n */\n compact() {\n return this.use(compactRule());\n }\n /**\n * Clones the VineArray schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineArray(this.#schema.clone(), this.cloneOptions(), this.cloneValidations());\n }\n /**\n * Compiles to array data type\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"array\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase4(propertyName) : propertyName,\n bail: this.options.bail,\n allowNull: this.options.allowNull,\n isOptional: this.options.isOptional,\n each: this.#schema[PARSE](\"*\", refs, options),\n parseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n validations: this.compileValidations(refs)\n };\n }\n};\n\n// src/schema/object/main.ts\nimport camelcase5 from \"camelcase\";\nvar VineCamelCaseObject = class _VineCamelCaseObject extends BaseModifiersType2 {\n #schema;\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"types.object\";\n /**\n * Checks if the value is of object type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n };\n constructor(schema) {\n super();\n this.#schema = schema;\n }\n /**\n * Clone object\n */\n clone() {\n return new _VineCamelCaseObject(this.#schema.clone());\n }\n /**\n * Compiles the schema type to a compiler node\n */\n [PARSE](propertyName, refs, options) {\n options.toCamelCase = true;\n return this.#schema[PARSE](propertyName, refs, options);\n }\n};\nvar VineObject = class _VineObject extends BaseType {\n /**\n * Object properties\n */\n #properties;\n /**\n * Object groups to merge based on conditionals\n */\n #groups = [];\n /**\n * Whether or not to allow unknown properties\n */\n #allowUnknownProperties = false;\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.object\";\n /**\n * Checks if the value is of object type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n };\n constructor(properties, options, validations) {\n super(options, validations);\n this.#properties = properties;\n }\n /**\n * Returns a clone copy of the object properties. The object groups\n * are not copied to keep the implementations simple and easy to\n * reason about.\n */\n getProperties() {\n return Object.keys(this.#properties).reduce((result, key) => {\n result[key] = this.#properties[key].clone();\n return result;\n }, {});\n }\n /**\n * Copy unknown properties to the final output.\n */\n allowUnknownProperties() {\n this.#allowUnknownProperties = true;\n return this;\n }\n /**\n * Merge a union to the object groups. The union can be a \"vine.union\"\n * with objects, or a \"vine.object.union\" with properties.\n */\n merge(group2) {\n this.#groups.push(group2);\n return this;\n }\n /**\n * Clone object\n */\n clone() {\n const cloned = new _VineObject(\n this.getProperties(),\n this.cloneOptions(),\n this.cloneValidations()\n );\n this.#groups.forEach((group2) => cloned.merge(group2));\n if (this.#allowUnknownProperties) {\n cloned.allowUnknownProperties();\n }\n return cloned;\n }\n /**\n * Applies camelcase transform\n */\n toCamelCase() {\n return new VineCamelCaseObject(this);\n }\n /**\n * Compiles the schema type to a compiler node\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"object\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase5(propertyName) : propertyName,\n bail: this.options.bail,\n allowNull: this.options.allowNull,\n isOptional: this.options.isOptional,\n parseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n allowUnknownProperties: this.#allowUnknownProperties,\n validations: this.compileValidations(refs),\n properties: Object.keys(this.#properties).map((property) => {\n return this.#properties[property][PARSE](property, refs, options);\n }),\n groups: this.#groups.map((group2) => {\n return group2[PARSE](refs, options);\n })\n };\n }\n};\n\n// src/schema/record/main.ts\nimport camelcase6 from \"camelcase\";\n\n// src/schema/record/rules.ts\nvar minLengthRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (Object.keys(value).length < options.min) {\n field.report(messages[\"record.minLength\"], \"record.minLength\", field, options);\n }\n});\nvar maxLengthRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (Object.keys(value).length > options.max) {\n field.report(messages[\"record.maxLength\"], \"record.maxLength\", field, options);\n }\n});\nvar fixedLengthRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (Object.keys(value).length !== options.size) {\n field.report(messages[\"record.fixedLength\"], \"record.fixedLength\", field, options);\n }\n});\nvar validateKeysRule = createRule(\n (value, callback, field) => {\n if (!field.isValid) {\n return;\n }\n callback(Object.keys(value), field);\n }\n);\n\n// src/schema/record/main.ts\nvar VineRecord = class _VineRecord extends BaseType {\n /**\n * Default collection of record rules\n */\n static rules = {\n maxLength: maxLengthRule2,\n minLength: minLengthRule2,\n fixedLength: fixedLengthRule2,\n validateKeys: validateKeysRule\n };\n #schema;\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.object\";\n /**\n * Checks if the value is of object type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return value !== null && typeof value === \"object\" && !Array.isArray(value);\n };\n constructor(schema, options, validations) {\n super(options, validations);\n this.#schema = schema;\n }\n /**\n * Enforce a minimum length on an object field\n */\n minLength(expectedLength) {\n return this.use(minLengthRule2({ min: expectedLength }));\n }\n /**\n * Enforce a maximum length on an object field\n */\n maxLength(expectedLength) {\n return this.use(maxLengthRule2({ max: expectedLength }));\n }\n /**\n * Enforce a fixed length on an object field\n */\n fixedLength(expectedLength) {\n return this.use(fixedLengthRule2({ size: expectedLength }));\n }\n /**\n * Register a callback to validate the object keys\n */\n validateKeys(...args) {\n return this.use(validateKeysRule(...args));\n }\n /**\n * Clones the VineRecord schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineRecord(\n this.#schema.clone(),\n this.cloneOptions(),\n this.cloneValidations()\n );\n }\n /**\n * Compiles to record data type\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"record\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase6(propertyName) : propertyName,\n bail: this.options.bail,\n allowNull: this.options.allowNull,\n isOptional: this.options.isOptional,\n each: this.#schema[PARSE](\"*\", refs, options),\n parseFnId: this.options.parse ? refs.trackParser(this.options.parse) : void 0,\n validations: this.compileValidations(refs)\n };\n }\n};\n\n// src/schema/string/rules.ts\nimport camelcase7 from \"camelcase\";\nimport normalizeUrl from \"normalize-url\";\nimport escape from \"validator/lib/escape.js\";\nimport normalizeEmail from \"validator/lib/normalizeEmail.js\";\nvar stringRule = createRule((value, _, field) => {\n if (typeof value !== \"string\") {\n field.report(messages.string, \"string\", field);\n }\n});\nvar emailRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isEmail(value, options)) {\n field.report(messages.email, \"email\", field);\n }\n});\nvar mobileRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const normalizedOptions = options && typeof options === \"function\" ? options(field) : options;\n const locales = normalizedOptions?.locale || \"any\";\n if (!helpers.isMobilePhone(value, locales, normalizedOptions)) {\n field.report(messages.mobile, \"mobile\", field);\n }\n});\nvar ipAddressRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isIP(value, options?.version)) {\n field.report(messages.ipAddress, \"ipAddress\", field);\n }\n});\nvar regexRule = createRule((value, expression, field) => {\n if (!field.isValid) {\n return;\n }\n if (!expression.test(value)) {\n field.report(messages.regex, \"regex\", field);\n }\n});\nvar hexCodeRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isHexColor(value)) {\n field.report(messages.hexCode, \"hexCode\", field);\n }\n});\nvar urlRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isURL(value, options)) {\n field.report(messages.url, \"url\", field);\n }\n});\nvar activeUrlRule = createRule(async (value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!await helpers.isActiveURL(value)) {\n field.report(messages.activeUrl, \"activeUrl\", field);\n }\n});\nvar alphaRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n let characterSet = \"a-zA-Z\";\n if (options) {\n if (options.allowSpaces) {\n characterSet += \"\\\\s\";\n }\n if (options.allowDashes) {\n characterSet += \"-\";\n }\n if (options.allowUnderscores) {\n characterSet += \"_\";\n }\n }\n const expression = new RegExp(`^[${characterSet}]+$`);\n if (!expression.test(value)) {\n field.report(messages.alpha, \"alpha\", field);\n }\n});\nvar alphaNumericRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n let characterSet = \"a-zA-Z0-9\";\n if (options) {\n if (options.allowSpaces) {\n characterSet += \"\\\\s\";\n }\n if (options.allowDashes) {\n characterSet += \"-\";\n }\n if (options.allowUnderscores) {\n characterSet += \"_\";\n }\n }\n const expression = new RegExp(`^[${characterSet}]+$`);\n if (!expression.test(value)) {\n field.report(messages.alphaNumeric, \"alphaNumeric\", field);\n }\n }\n);\nvar minLengthRule3 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length < options.min) {\n field.report(messages.minLength, \"minLength\", field, options);\n }\n});\nvar maxLengthRule3 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length > options.max) {\n field.report(messages.maxLength, \"maxLength\", field, options);\n }\n});\nvar fixedLengthRule3 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value.length !== options.size) {\n field.report(messages.fixedLength, \"fixedLength\", field, options);\n }\n});\nvar endsWithRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!value.endsWith(options.substring)) {\n field.report(messages.endsWith, \"endsWith\", field, options);\n }\n});\nvar startsWithRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!value.startsWith(options.substring)) {\n field.report(messages.startsWith, \"startsWith\", field, options);\n }\n});\nvar sameAsRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const input = helpers.getNestedValue(options.otherField, field);\n if (input !== value) {\n field.report(messages.sameAs, \"sameAs\", field, options);\n return;\n }\n});\nvar notSameAsRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const input = helpers.getNestedValue(options.otherField, field);\n if (input === value) {\n field.report(messages.notSameAs, \"notSameAs\", field, options);\n return;\n }\n});\nvar confirmedRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const otherField = options?.confirmationField || `${field.name}_confirmation`;\n const input = field.parent[otherField];\n if (input !== value) {\n field.report(messages.confirmed, \"confirmed\", field, { otherField });\n return;\n }\n }\n);\nvar trimRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(value.trim(), field);\n});\nvar normalizeEmailRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(normalizeEmail.default(value, options), field);\n }\n);\nvar toUpperCaseRule = createRule(\n (value, locales, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(value.toLocaleUpperCase(locales), field);\n }\n);\nvar toLowerCaseRule = createRule(\n (value, locales, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(value.toLocaleLowerCase(locales), field);\n }\n);\nvar toCamelCaseRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(camelcase7(value), field);\n});\nvar escapeRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(escape.default(value), field);\n});\nvar normalizeUrlRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n field.mutate(normalizeUrl(value, options), field);\n }\n);\nvar inRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const choices = typeof options.choices === \"function\" ? options.choices(field) : options.choices;\n if (!choices.includes(value)) {\n field.report(messages.in, \"in\", field, options);\n return;\n }\n }\n);\nvar notInRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const list = typeof options.list === \"function\" ? options.list(field) : options.list;\n if (list.includes(value)) {\n field.report(messages.notIn, \"notIn\", field, options);\n return;\n }\n }\n);\nvar creditCardRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const providers = options ? typeof options === \"function\" ? options(field)?.provider || [] : options.provider : [];\n if (!providers.length) {\n if (!helpers.isCreditCard(value)) {\n field.report(messages.creditCard, \"creditCard\", field, {\n providersList: \"credit\"\n });\n }\n } else {\n const matchesAnyProvider = providers.find(\n (provider) => helpers.isCreditCard(value, { provider })\n );\n if (!matchesAnyProvider) {\n field.report(messages.creditCard, \"creditCard\", field, {\n providers,\n providersList: providers.join(\"/\")\n });\n }\n }\n});\nvar passportRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const countryCodes = typeof options === \"function\" ? options(field).countryCode : options.countryCode;\n const matchesAnyCountryCode = countryCodes.find(\n (countryCode) => helpers.isPassportNumber(value, countryCode)\n );\n if (!matchesAnyCountryCode) {\n field.report(messages.passport, \"passport\", field, { countryCodes });\n }\n});\nvar postalCodeRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n const countryCodes = options ? typeof options === \"function\" ? options(field)?.countryCode || [] : options.countryCode : [];\n if (!countryCodes.length) {\n if (!helpers.isPostalCode(value, \"any\")) {\n field.report(messages.postalCode, \"postalCode\", field);\n }\n } else {\n const matchesAnyCountryCode = countryCodes.find(\n (countryCode) => helpers.isPostalCode(value, countryCode)\n );\n if (!matchesAnyCountryCode) {\n field.report(messages.postalCode, \"postalCode\", field, { countryCodes });\n }\n }\n});\nvar uuidRule = createRule(\n (value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!options || !options.version) {\n if (!helpers.isUUID(value)) {\n field.report(messages.uuid, \"uuid\", field);\n }\n } else {\n const matchesAnyVersion = options.version.find(\n (version) => helpers.isUUID(value, version)\n );\n if (!matchesAnyVersion) {\n field.report(messages.uuid, \"uuid\", field, options);\n }\n }\n }\n);\nvar asciiRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isAscii(value)) {\n field.report(messages.ascii, \"ascii\", field);\n }\n});\nvar ibanRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isIBAN(value)) {\n field.report(messages.iban, \"iban\", field);\n }\n});\nvar jwtRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isJWT(value)) {\n field.report(messages.jwt, \"jwt\", field);\n }\n});\nvar coordinatesRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isLatLong(value)) {\n field.report(messages.coordinates, \"coordinates\", field);\n }\n});\n\n// src/schema/string/main.ts\nvar VineString = class _VineString extends BaseLiteralType {\n static rules = {\n in: inRule,\n jwt: jwtRule,\n url: urlRule,\n iban: ibanRule,\n uuid: uuidRule,\n trim: trimRule,\n email: emailRule,\n alpha: alphaRule,\n ascii: asciiRule,\n notIn: notInRule,\n regex: regexRule,\n escape: escapeRule,\n sameAs: sameAsRule2,\n mobile: mobileRule,\n string: stringRule,\n hexCode: hexCodeRule,\n passport: passportRule,\n endsWith: endsWithRule,\n confirmed: confirmedRule,\n activeUrl: activeUrlRule,\n minLength: minLengthRule3,\n notSameAs: notSameAsRule2,\n maxLength: maxLengthRule3,\n ipAddress: ipAddressRule,\n creditCard: creditCardRule,\n postalCode: postalCodeRule,\n startsWith: startsWithRule,\n toUpperCase: toUpperCaseRule,\n toLowerCase: toLowerCaseRule,\n toCamelCase: toCamelCaseRule,\n fixedLength: fixedLengthRule3,\n coordinates: coordinatesRule,\n normalizeUrl: normalizeUrlRule,\n alphaNumeric: alphaNumericRule,\n normalizeEmail: normalizeEmailRule\n };\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.string\";\n /**\n * Checks if the value is of string type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n return typeof value === \"string\";\n };\n constructor(options, validations) {\n super(options, validations || [stringRule()]);\n }\n /**\n * Validates the value to be a valid URL\n */\n url(...args) {\n return this.use(urlRule(...args));\n }\n /**\n * Validates the value to be an active URL\n */\n activeUrl() {\n return this.use(activeUrlRule());\n }\n /**\n * Validates the value to be a valid email address\n */\n email(...args) {\n return this.use(emailRule(...args));\n }\n /**\n * Validates the value to be a valid mobile number\n */\n mobile(...args) {\n return this.use(mobileRule(...args));\n }\n /**\n * Validates the value to be a valid IP address.\n */\n ipAddress(version) {\n return this.use(ipAddressRule(version ? { version } : void 0));\n }\n /**\n * Validates the value to be a valid hex color code\n */\n hexCode() {\n return this.use(hexCodeRule());\n }\n /**\n * Validates the value to be an active URL\n */\n regex(expression) {\n return this.use(regexRule(expression));\n }\n /**\n * Validates the value to contain only letters\n */\n alpha(options) {\n return this.use(alphaRule(options));\n }\n /**\n * Validates the value to contain only letters and\n * numbers\n */\n alphaNumeric(options) {\n return this.use(alphaNumericRule(options));\n }\n /**\n * Enforce a minimum length on a string field\n */\n minLength(expectedLength) {\n return this.use(minLengthRule3({ min: expectedLength }));\n }\n /**\n * Enforce a maximum length on a string field\n */\n maxLength(expectedLength) {\n return this.use(maxLengthRule3({ max: expectedLength }));\n }\n /**\n * Enforce a fixed length on a string field\n */\n fixedLength(expectedLength) {\n return this.use(fixedLengthRule3({ size: expectedLength }));\n }\n /**\n * Ensure the field under validation is confirmed by\n * having another field with the same name.\n */\n confirmed(options) {\n return this.use(confirmedRule(options));\n }\n /**\n * Trims whitespaces around the string value\n */\n trim() {\n return this.use(trimRule());\n }\n /**\n * Normalizes the email address\n */\n normalizeEmail(options) {\n return this.use(normalizeEmailRule(options));\n }\n /**\n * Converts the field value to UPPERCASE.\n */\n toUpperCase() {\n return this.use(toUpperCaseRule());\n }\n /**\n * Converts the field value to lowercase.\n */\n toLowerCase() {\n return this.use(toLowerCaseRule());\n }\n /**\n * Converts the field value to camelCase.\n */\n toCamelCase() {\n return this.use(toCamelCaseRule());\n }\n /**\n * Escape string for HTML entities\n */\n escape() {\n return this.use(escapeRule());\n }\n /**\n * Normalize a URL\n */\n normalizeUrl(...args) {\n return this.use(normalizeUrlRule(...args));\n }\n /**\n * Ensure the value starts with the pre-defined substring\n */\n startsWith(substring) {\n return this.use(startsWithRule({ substring }));\n }\n /**\n * Ensure the value ends with the pre-defined substring\n */\n endsWith(substring) {\n return this.use(endsWithRule({ substring }));\n }\n /**\n * Ensure the value ends with the pre-defined substring\n */\n sameAs(otherField) {\n return this.use(sameAsRule2({ otherField }));\n }\n /**\n * Ensure the value ends with the pre-defined substring\n */\n notSameAs(otherField) {\n return this.use(notSameAsRule2({ otherField }));\n }\n /**\n * Ensure the field's value under validation is a subset of the pre-defined list.\n */\n in(choices) {\n return this.use(inRule({ choices }));\n }\n /**\n * Ensure the field's value under validation is not inside the pre-defined list.\n */\n notIn(list) {\n return this.use(notInRule({ list }));\n }\n /**\n * Validates the value to be a valid credit card number\n */\n creditCard(...args) {\n return this.use(creditCardRule(...args));\n }\n /**\n * Validates the value to be a valid passport number\n */\n passport(...args) {\n return this.use(passportRule(...args));\n }\n /**\n * Validates the value to be a valid postal code\n */\n postalCode(...args) {\n return this.use(postalCodeRule(...args));\n }\n /**\n * Validates the value to be a valid UUID\n */\n uuid(...args) {\n return this.use(uuidRule(...args));\n }\n /**\n * Validates the value contains ASCII characters only\n */\n ascii() {\n return this.use(asciiRule());\n }\n /**\n * Validates the value to be a valid IBAN number\n */\n iban() {\n return this.use(ibanRule());\n }\n /**\n * Validates the value to be a valid JWT token\n */\n jwt() {\n return this.use(jwtRule());\n }\n /**\n * Ensure the value is a string with latitude and longitude coordinates\n */\n coordinates() {\n return this.use(coordinatesRule());\n }\n /**\n * Clones the VineString schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineString(this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/number/rules.ts\nvar numberRule = createRule((value, options, field) => {\n const valueAsNumber = options.strict ? value : helpers.asNumber(value);\n if (typeof valueAsNumber !== \"number\" || Number.isNaN(valueAsNumber) || valueAsNumber === Number.POSITIVE_INFINITY || valueAsNumber === Number.NEGATIVE_INFINITY) {\n field.report(messages.number, \"number\", field);\n return;\n }\n field.mutate(valueAsNumber, field);\n});\nvar minRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value < options.min) {\n field.report(messages.min, \"min\", field, options);\n }\n});\nvar maxRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value > options.max) {\n field.report(messages.max, \"max\", field, options);\n }\n});\nvar rangeRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (value < options.min || value > options.max) {\n field.report(messages.range, \"range\", field, options);\n }\n});\nvar positiveRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (value < 0) {\n field.report(messages.positive, \"positive\", field);\n }\n});\nvar negativeRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (value >= 0) {\n field.report(messages.negative, \"negative\", field);\n }\n});\nvar decimalRule = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!helpers.isDecimal(String(value), {\n force_decimal: options.range[0] !== 0,\n decimal_digits: options.range.join(\",\")\n })) {\n field.report(messages.decimal, \"decimal\", field, { digits: options.range.join(\"-\") });\n }\n});\nvar withoutDecimalsRule = createRule((value, _, field) => {\n if (!field.isValid) {\n return;\n }\n if (!Number.isInteger(value)) {\n field.report(messages.withoutDecimals, \"withoutDecimals\", field);\n }\n});\nvar inRule2 = createRule((value, options, field) => {\n if (!field.isValid) {\n return;\n }\n if (!options.values.includes(value)) {\n field.report(messages[\"number.in\"], \"in\", field, options);\n }\n});\n\n// src/schema/number/main.ts\nvar VineNumber = class _VineNumber extends BaseLiteralType {\n /**\n * Default collection of number rules\n */\n static rules = {\n in: inRule2,\n max: maxRule,\n min: minRule,\n range: rangeRule,\n number: numberRule,\n decimal: decimalRule,\n negative: negativeRule,\n positive: positiveRule,\n withoutDecimals: withoutDecimalsRule\n };\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.number\";\n /**\n * Checks if the value is of number type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n const valueAsNumber = helpers.asNumber(value);\n return !Number.isNaN(valueAsNumber);\n };\n constructor(options, validations) {\n super(options, validations || [numberRule(options || {})]);\n }\n /**\n * Enforce a minimum value for the number input\n */\n min(value) {\n return this.use(minRule({ min: value }));\n }\n /**\n * Enforce a maximum value for the number input\n */\n max(value) {\n return this.use(maxRule({ max: value }));\n }\n /**\n * Enforce value to be within the range of minimum and maximum output.\n */\n range(value) {\n return this.use(rangeRule({ min: value[0], max: value[1] }));\n }\n /**\n * Enforce the value be a positive number\n */\n positive() {\n return this.use(positiveRule());\n }\n /**\n * Enforce the value be a negative number\n */\n negative() {\n return this.use(negativeRule());\n }\n /**\n * Enforce the value to have fixed or range\n * of decimal places\n */\n decimal(range) {\n return this.use(decimalRule({ range: Array.isArray(range) ? range : [range] }));\n }\n /**\n * Enforce the value to be an integer (aka without decimals)\n */\n withoutDecimals() {\n return this.use(withoutDecimalsRule());\n }\n /**\n * Clones the VineNumber schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineNumber(this.cloneOptions(), this.cloneValidations());\n }\n /**\n * Enforce the value to be in a list of allowed values\n */\n in(values) {\n return this.use(inRule2({ values }));\n }\n};\n\n// src/schema/boolean/rules.ts\nvar booleanRule = createRule((value, options, field) => {\n const valueAsBoolean = options.strict === true ? value : helpers.asBoolean(value);\n if (typeof valueAsBoolean !== \"boolean\") {\n field.report(messages.boolean, \"boolean\", field);\n return;\n }\n field.mutate(valueAsBoolean, field);\n});\n\n// src/schema/boolean/main.ts\nvar VineBoolean = class _VineBoolean extends BaseLiteralType {\n /**\n * Default collection of boolean rules\n */\n static rules = {\n boolean: booleanRule\n };\n /**\n * The property must be implemented for \"unionOfTypes\"\n */\n [UNIQUE_NAME] = \"vine.boolean\";\n /**\n * Checks if the value is of boolean type. The method must be\n * implemented for \"unionOfTypes\"\n */\n [IS_OF_TYPE] = (value) => {\n const valueAsBoolean = this.options.strict === true ? value : helpers.asBoolean(value);\n return typeof valueAsBoolean === \"boolean\";\n };\n constructor(options, validations) {\n super(options, validations || [booleanRule(options || {})]);\n }\n /**\n * Clones the VineBoolean schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineBoolean(this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/literal/rules.ts\nvar equalsRule2 = createRule((value, options, field) => {\n let input = value;\n if (typeof options.expectedValue === \"boolean\") {\n input = helpers.asBoolean(value);\n } else if (typeof options.expectedValue === \"number\") {\n input = helpers.asNumber(value);\n }\n if (input !== options.expectedValue) {\n field.report(messages.literal, \"literal\", field, options);\n return;\n }\n field.mutate(input, field);\n});\n\n// src/schema/literal/main.ts\nvar VineLiteral = class _VineLiteral extends BaseLiteralType {\n /**\n * Default collection of literal rules\n */\n static rules = {\n equals: equalsRule2\n };\n #value;\n constructor(value, options, validations) {\n super(options, validations || [equalsRule2({ expectedValue: value })]);\n this.#value = value;\n }\n /**\n * Clones the VineLiteral schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineLiteral(this.#value, this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/accepted/rules.ts\nvar ACCEPTED_VALUES = [\"on\", \"1\", \"yes\", \"true\", true, 1];\nvar acceptedRule = createRule((value, _, field) => {\n if (!ACCEPTED_VALUES.includes(value)) {\n field.report(messages.accepted, \"accepted\", field);\n }\n});\n\n// src/schema/accepted/main.ts\nvar VineAccepted = class _VineAccepted extends BaseLiteralType {\n /**\n * Default collection of accepted rules\n */\n static rules = {\n accepted: acceptedRule\n };\n constructor(options, validations) {\n super(options, validations || [acceptedRule()]);\n }\n /**\n * Clones the VineAccepted schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineAccepted(this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/object/group.ts\nvar ObjectGroup = class _ObjectGroup {\n #conditionals;\n #otherwiseCallback = (_, field) => {\n field.report(messages.unionGroup, \"unionGroup\", field);\n };\n constructor(conditionals) {\n this.#conditionals = conditionals;\n }\n /**\n * Clones the ObjectGroup schema type.\n */\n clone() {\n const cloned = new _ObjectGroup(this.#conditionals);\n cloned.otherwise(this.#otherwiseCallback);\n return cloned;\n }\n /**\n * Define a fallback method to invoke when all of the group conditions\n * fail. You may use this method to report an error.\n */\n otherwise(callback) {\n this.#otherwiseCallback = callback;\n return this;\n }\n /**\n * Compiles the group\n */\n [PARSE](refs, options) {\n return {\n type: \"group\",\n elseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n conditions: this.#conditionals.map((conditional) => conditional[PARSE](refs, options))\n };\n }\n};\n\n// src/schema/object/conditional.ts\nvar GroupConditional = class {\n /**\n * Properties to merge when conditonal is true\n */\n #properties;\n /**\n * Conditional to evaluate\n */\n #conditional;\n constructor(conditional, properties) {\n this.#properties = properties;\n this.#conditional = conditional;\n }\n /**\n * Compiles to a union conditional\n */\n [PARSE](refs, options) {\n return {\n schema: {\n type: \"sub_object\",\n properties: Object.keys(this.#properties).map((property) => {\n return this.#properties[property][PARSE](property, refs, options);\n }),\n groups: []\n // Compiler allows nested groups, but we are not implementing it\n },\n conditionalFnRefId: refs.trackConditional(this.#conditional)\n };\n }\n};\n\n// src/schema/object/group_builder.ts\nfunction group(conditionals) {\n return new ObjectGroup(conditionals);\n}\ngroup.if = function groupIf(conditon, properties) {\n return new GroupConditional(conditon, properties);\n};\ngroup.else = function groupElse(properties) {\n return new GroupConditional(() => true, properties);\n};\n\n// src/schema/enum/native_enum.ts\nvar VineNativeEnum = class _VineNativeEnum extends BaseLiteralType {\n /**\n * Default collection of enum rules\n */\n static rules = {\n enum: enumRule\n };\n #values;\n constructor(values, options, validations) {\n super(options, validations || [enumRule({ choices: Object.values(values) })]);\n this.#values = values;\n }\n /**\n * Clones the VineNativeEnum schema type. The applied options\n * and validations are copied to the new instance\n */\n clone() {\n return new _VineNativeEnum(this.#values, this.cloneOptions(), this.cloneValidations());\n }\n};\n\n// src/schema/union_of_types/main.ts\nimport camelcase8 from \"camelcase\";\nvar VineUnionOfTypes = class _VineUnionOfTypes {\n #schemas;\n #otherwiseCallback = (_, field) => {\n field.report(messages.unionOfTypes, \"unionOfTypes\", field);\n };\n constructor(schemas) {\n this.#schemas = schemas;\n }\n /**\n * Define a fallback method to invoke when all of the union conditions\n * fail. You may use this method to report an error.\n */\n otherwise(callback) {\n this.#otherwiseCallback = callback;\n return this;\n }\n /**\n * Clones the VineUnionOfTypes schema type.\n */\n clone() {\n const cloned = new _VineUnionOfTypes(this.#schemas);\n cloned.otherwise(this.#otherwiseCallback);\n return cloned;\n }\n /**\n * Compiles to a union\n */\n [PARSE](propertyName, refs, options) {\n return {\n type: \"union\",\n fieldName: propertyName,\n propertyName: options.toCamelCase ? camelcase8(propertyName) : propertyName,\n elseConditionalFnRefId: refs.trackConditional(this.#otherwiseCallback),\n conditions: this.#schemas.map((schema) => {\n return {\n conditionalFnRefId: refs.trackConditional((value, field) => {\n return schema[IS_OF_TYPE](value, field);\n }),\n schema: schema[PARSE](propertyName, refs, options)\n };\n })\n };\n }\n};\n\n// src/schema/builder.ts\nvar SchemaBuilder = class extends Macroable3 {\n /**\n * Define a sub-object as a union\n */\n group = group;\n /**\n * Define a union value\n */\n union = union;\n /**\n * Define a string value\n */\n string() {\n return new VineString();\n }\n /**\n * Define a boolean value\n */\n boolean(options) {\n return new VineBoolean(options);\n }\n /**\n * Validate a checkbox to be checked\n */\n accepted() {\n return new VineAccepted();\n }\n /**\n * Define a number value\n */\n number(options) {\n return new VineNumber(options);\n }\n /**\n * Define a datetime value\n */\n date(options) {\n return new VineDate(options);\n }\n /**\n * Define a schema type in which the input value\n * matches the pre-defined value\n */\n literal(value) {\n return new VineLiteral(value);\n }\n /**\n * Define an object with known properties. You may call \"allowUnknownProperties\"\n * to merge unknown properties.\n */\n object(properties) {\n return new VineObject(properties);\n }\n /**\n * Define an array field and validate its children elements.\n */\n array(schema) {\n return new VineArray(schema);\n }\n /**\n * Define an array field with known length and each children\n * element may have its own schema.\n */\n tuple(schemas) {\n return new VineTuple(schemas);\n }\n /**\n * Define an object field with key-value pair. The keys in\n * a record are unknown and values can be of a specific\n * schema type.\n */\n record(schema) {\n return new VineRecord(schema);\n }\n enum(values) {\n if (Array.isArray(values) || typeof values === \"function\") {\n return new VineEnum(values);\n }\n return new VineNativeEnum(values);\n }\n /**\n * Allow the field value to be anything\n */\n any() {\n return new VineAny();\n }\n /**\n * Define a union of unique schema types.\n */\n unionOfTypes(schemas) {\n const schemasInUse = /* @__PURE__ */ new Set();\n schemas.forEach((schema) => {\n if (!schema[IS_OF_TYPE] || !schema[UNIQUE_NAME]) {\n throw new Error(\n `Cannot use \"${schema.constructor.name}\". The schema type is not compatible for use with \"vine.unionOfTypes\"`\n );\n }\n if (schemasInUse.has(schema[UNIQUE_NAME])) {\n throw new Error(\n `Cannot use duplicate schema \"${schema[UNIQUE_NAME]}\". \"vine.unionOfTypes\" needs distinct schema types only`\n );\n }\n schemasInUse.add(schema[UNIQUE_NAME]);\n });\n schemasInUse.clear();\n return new VineUnionOfTypes(schemas);\n }\n};\n\n// src/vine/validator.ts\nimport { Compiler, refsBuilder } from \"@vinejs/compiler\";\nvar COMPILER_ERROR_MESSAGES = {\n required: messages.required,\n array: messages.array,\n object: messages.object\n};\nvar VineValidator = class {\n /**\n * Reference to the compiled schema\n */\n #compiled;\n /**\n * Messages provider to use on the validator\n */\n messagesProvider;\n /**\n * Error reporter to use on the validator\n */\n errorReporter;\n /**\n * Parses schema to compiler nodes.\n */\n #parse(schema) {\n const refs = refsBuilder();\n return {\n compilerNode: {\n type: \"root\",\n schema: schema[PARSE](\"\", refs, { toCamelCase: false })\n },\n refs: refs.toJSON()\n };\n }\n constructor(schema, options) {\n const { compilerNode, refs } = this.#parse(schema);\n this.#compiled = { schema: compilerNode, refs };\n const metaDataValidator = options.metaDataValidator;\n const validateFn = new Compiler(compilerNode, {\n convertEmptyStringsToNull: options.convertEmptyStringsToNull,\n messages: COMPILER_ERROR_MESSAGES\n }).compile();\n this.errorReporter = options.errorReporter;\n this.messagesProvider = options.messagesProvider;\n if (metaDataValidator) {\n this.validate = (data, validateOptions) => {\n let normalizedOptions = validateOptions ?? {};\n const meta = normalizedOptions.meta ?? {};\n const errorReporter = normalizedOptions.errorReporter ?? this.errorReporter;\n const messagesProvider = normalizedOptions.messagesProvider ?? this.messagesProvider;\n metaDataValidator(meta);\n return validateFn(data, meta, refs, messagesProvider, errorReporter());\n };\n } else {\n this.validate = (data, validateOptions) => {\n let normalizedOptions = validateOptions ?? {};\n const meta = normalizedOptions.meta ?? {};\n const errorReporter = normalizedOptions.errorReporter ?? this.errorReporter;\n const messagesProvider = normalizedOptions.messagesProvider ?? this.messagesProvider;\n return validateFn(data, meta, refs, messagesProvider, errorReporter());\n };\n }\n }\n /**\n * Performs validation without throwing the validation\n * exception. Instead, the validation errors are\n * returned as the first argument.\n *\n *\n * ```ts\n * await validator.tryValidate(data)\n * await validator.tryValidate(data, { meta: {} })\n *\n * await validator.tryValidate(data, {\n * meta: { userId: auth.user.id },\n * errorReporter,\n * messagesProvider\n * })\n * ```\n *\n */\n async tryValidate(data, ...[options]) {\n try {\n const result = await this.validate(data, options);\n return [null, result];\n } catch (error) {\n if (error instanceof ValidationError) {\n return [error, null];\n }\n throw error;\n }\n }\n /**\n * Returns the compiled schema and refs.\n */\n toJSON() {\n const { schema, refs } = this.#compiled;\n return {\n schema: structuredClone(schema),\n refs\n };\n }\n};\n\n// src/vine/main.ts\nvar Vine = class extends SchemaBuilder {\n /**\n * Messages provider to use on the validator\n */\n messagesProvider = new SimpleMessagesProvider(messages, fields);\n /**\n * Error reporter to use on the validator\n */\n errorReporter = () => new SimpleErrorReporter();\n /**\n * Control whether or not to convert empty strings to null\n */\n convertEmptyStringsToNull = false;\n /**\n * Helpers to perform type-checking or cast types keeping\n * HTML forms serialization behavior in mind.\n */\n helpers = helpers;\n /**\n * Convert a validation function to a Vine schema rule\n */\n createRule = createRule;\n /**\n * Pre-compiles a schema into a validation function.\n *\n * ```ts\n * const validate = vine.compile(schema)\n * await validate({ data })\n * ```\n */\n compile(schema) {\n return new VineValidator(schema, {\n convertEmptyStringsToNull: this.convertEmptyStringsToNull,\n messagesProvider: this.messagesProvider,\n errorReporter: this.errorReporter\n });\n }\n /**\n * Define a callback to validate the metadata given to the validator\n * at runtime\n */\n withMetaData(callback) {\n return {\n compile: (schema) => {\n return new VineValidator(schema, {\n convertEmptyStringsToNull: this.convertEmptyStringsToNull,\n messagesProvider: this.messagesProvider,\n errorReporter: this.errorReporter,\n metaDataValidator: callback\n });\n }\n };\n }\n /**\n * Validate data against a schema. Optionally, you can define\n * error messages, fields, a custom messages provider,\n * or an error reporter.\n *\n * ```ts\n * await vine.validate({ schema, data })\n * await vine.validate({ schema, data, messages, fields })\n *\n * await vine.validate({ schema, data, messages, fields }, {\n * errorReporter\n * })\n * ```\n */\n validate(options) {\n const validator = this.compile(options.schema);\n return validator.validate(options.data, options);\n }\n /**\n * Validate data against a schema without throwing the\n * \"ValidationError\" exception. Instead the validation\n * errors are returned within the return value.\n *\n * ```ts\n * await vine.tryValidate({ schema, data })\n * await vine.tryValidate({ schema, data, messages, fields })\n *\n * await vine.tryValidate({ schema, data, messages, fields }, {\n * errorReporter\n * })\n * ```\n */\n tryValidate(options) {\n const validator = this.compile(options.schema);\n return validator.tryValidate(options.data, options);\n }\n};\n\n// index.ts\nvar vine = new Vine();\nvar vine_default = vine;\n\nexport {\n symbols_exports,\n BaseLiteralType,\n VineAny,\n VineEnum,\n VineDate,\n VineUnion,\n BaseModifiersType2 as BaseModifiersType,\n BaseType,\n VineTuple,\n VineArray,\n VineObject,\n VineRecord,\n VineString,\n VineNumber,\n VineBoolean,\n VineLiteral,\n VineAccepted,\n VineValidator,\n Vine,\n vine_default\n};\n//# sourceMappingURL=chunk-46WINKKP.js.map",
|
|
125
|
-
"// index.ts\nvar Macroable = class {\n /**\n *\n * Macros are standard properties that gets added to the class prototype.\n *\n * ```ts\n * MyClass.macro('foo', 'bar')\n * ```\n */\n static macro(name, value) {\n this.prototype[name] = value;\n }\n /**\n *\n * Getters are added to the class prototype using the Object.defineProperty.\n *\n * ```ts\n * MyClass.getter('foo', function foo () {\n * return 'bar'\n * })\n * ```\n *\n * You can add a singleton getter by enabling the `singleton` flag.\n *\n * ```ts\n * const singleton = true\n *\n * MyClass.getter('foo', function foo () {\n * return 'bar'\n * }, singleton)\n * ```\n */\n static getter(name, accumulator, singleton = false) {\n Object.defineProperty(this.prototype, name, {\n get() {\n const value = accumulator.call(this);\n if (singleton) {\n Object.defineProperty(this, name, {\n configurable: false,\n enumerable: false,\n value,\n writable: false\n });\n }\n return value;\n },\n configurable: true,\n enumerable: false\n });\n }\n};\nexport {\n Macroable as default\n};\n//# sourceMappingURL=index.js.map",
|
|
126
|
-
"const UPPERCASE = /[\\p{Lu}]/u;\nconst LOWERCASE = /[\\p{Ll}]/u;\nconst LEADING_CAPITAL = /^[\\p{Lu}](?![\\p{Lu}])/gu;\nconst IDENTIFIER = /([\\p{Alpha}\\p{N}_]|$)/u;\nconst SEPARATORS = /[_.\\- ]+/;\n\nconst LEADING_SEPARATORS = new RegExp('^' + SEPARATORS.source);\nconst SEPARATORS_AND_IDENTIFIER = new RegExp(SEPARATORS.source + IDENTIFIER.source, 'gu');\nconst NUMBERS_AND_IDENTIFIER = new RegExp('\\\\d+' + IDENTIFIER.source, 'gu');\n\nconst preserveCamelCase = (string, toLowerCase, toUpperCase, preserveConsecutiveUppercase) => {\n\tlet isLastCharLower = false;\n\tlet isLastCharUpper = false;\n\tlet isLastLastCharUpper = false;\n\tlet isLastLastCharPreserved = false;\n\n\tfor (let index = 0; index < string.length; index++) {\n\t\tconst character = string[index];\n\t\tisLastLastCharPreserved = index > 2 ? string[index - 3] === '-' : true;\n\n\t\tif (isLastCharLower && UPPERCASE.test(character)) {\n\t\t\tstring = string.slice(0, index) + '-' + string.slice(index);\n\t\t\tisLastCharLower = false;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = true;\n\t\t\tindex++;\n\t\t} else if (isLastCharUpper && isLastLastCharUpper && LOWERCASE.test(character) && (!isLastLastCharPreserved || preserveConsecutiveUppercase)) {\n\t\t\tstring = string.slice(0, index - 1) + '-' + string.slice(index - 1);\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = false;\n\t\t\tisLastCharLower = true;\n\t\t} else {\n\t\t\tisLastCharLower = toLowerCase(character) === character && toUpperCase(character) !== character;\n\t\t\tisLastLastCharUpper = isLastCharUpper;\n\t\t\tisLastCharUpper = toUpperCase(character) === character && toLowerCase(character) !== character;\n\t\t}\n\t}\n\n\treturn string;\n};\n\nconst preserveConsecutiveUppercase = (input, toLowerCase) => {\n\tLEADING_CAPITAL.lastIndex = 0;\n\n\treturn input.replaceAll(LEADING_CAPITAL, match => toLowerCase(match));\n};\n\nconst postProcess = (input, toUpperCase) => {\n\tSEPARATORS_AND_IDENTIFIER.lastIndex = 0;\n\tNUMBERS_AND_IDENTIFIER.lastIndex = 0;\n\n\treturn input\n\t\t.replaceAll(NUMBERS_AND_IDENTIFIER, (match, pattern, offset) => ['_', '-'].includes(input.charAt(offset + match.length)) ? match : toUpperCase(match))\n\t\t.replaceAll(SEPARATORS_AND_IDENTIFIER, (_, identifier) => toUpperCase(identifier));\n};\n\nexport default function camelCase(input, options) {\n\tif (!(typeof input === 'string' || Array.isArray(input))) {\n\t\tthrow new TypeError('Expected the input to be `string | string[]`');\n\t}\n\n\toptions = {\n\t\tpascalCase: false,\n\t\tpreserveConsecutiveUppercase: false,\n\t\t...options,\n\t};\n\n\tif (Array.isArray(input)) {\n\t\tinput = input.map(x => x.trim())\n\t\t\t.filter(x => x.length)\n\t\t\t.join('-');\n\t} else {\n\t\tinput = input.trim();\n\t}\n\n\tif (input.length === 0) {\n\t\treturn '';\n\t}\n\n\tconst toLowerCase = options.locale === false\n\t\t? string => string.toLowerCase()\n\t\t: string => string.toLocaleLowerCase(options.locale);\n\n\tconst toUpperCase = options.locale === false\n\t\t? string => string.toUpperCase()\n\t\t: string => string.toLocaleUpperCase(options.locale);\n\n\tif (input.length === 1) {\n\t\tif (SEPARATORS.test(input)) {\n\t\t\treturn '';\n\t\t}\n\n\t\treturn options.pascalCase ? toUpperCase(input) : toLowerCase(input);\n\t}\n\n\tconst hasUpperCase = input !== toLowerCase(input);\n\n\tif (hasUpperCase) {\n\t\tinput = preserveCamelCase(input, toLowerCase, toUpperCase, options.preserveConsecutiveUppercase);\n\t}\n\n\tinput = input.replace(LEADING_SEPARATORS, '');\n\tinput = options.preserveConsecutiveUppercase ? preserveConsecutiveUppercase(input, toLowerCase) : toLowerCase(input);\n\n\tif (options.pascalCase) {\n\t\tinput = toUpperCase(input.charAt(0)) + input.slice(1);\n\t}\n\n\treturn postProcess(input, toUpperCase);\n}\n",
|
|
127
|
-
"// https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/Data_URIs\nconst DATA_URL_DEFAULT_MIME_TYPE = 'text/plain';\nconst DATA_URL_DEFAULT_CHARSET = 'us-ascii';\n\nconst testParameter = (name, filters) => filters.some(filter => filter instanceof RegExp ? filter.test(name) : filter === name);\n\nconst supportedProtocols = new Set([\n\t'https:',\n\t'http:',\n\t'file:',\n]);\n\nconst hasCustomProtocol = urlString => {\n\ttry {\n\t\tconst {protocol} = new URL(urlString);\n\n\t\treturn protocol.endsWith(':')\n\t\t\t&& !protocol.includes('.')\n\t\t\t&& !supportedProtocols.has(protocol);\n\t} catch {\n\t\treturn false;\n\t}\n};\n\nconst normalizeDataURL = (urlString, {stripHash}) => {\n\tconst match = /^data:(?<type>[^,]*?),(?<data>[^#]*?)(?:#(?<hash>.*))?$/.exec(urlString);\n\n\tif (!match) {\n\t\tthrow new Error(`Invalid URL: ${urlString}`);\n\t}\n\n\tlet {type, data, hash} = match.groups;\n\tconst mediaType = type.split(';');\n\thash = stripHash ? '' : hash;\n\n\tlet isBase64 = false;\n\tif (mediaType[mediaType.length - 1] === 'base64') {\n\t\tmediaType.pop();\n\t\tisBase64 = true;\n\t}\n\n\t// Lowercase MIME type\n\tconst mimeType = mediaType.shift()?.toLowerCase() ?? '';\n\tconst attributes = mediaType\n\t\t.map(attribute => {\n\t\t\tlet [key, value = ''] = attribute.split('=').map(string => string.trim());\n\n\t\t\t// Lowercase `charset`\n\t\t\tif (key === 'charset') {\n\t\t\t\tvalue = value.toLowerCase();\n\n\t\t\t\tif (value === DATA_URL_DEFAULT_CHARSET) {\n\t\t\t\t\treturn '';\n\t\t\t\t}\n\t\t\t}\n\n\t\t\treturn `${key}${value ? `=${value}` : ''}`;\n\t\t})\n\t\t.filter(Boolean);\n\n\tconst normalizedMediaType = [\n\t\t...attributes,\n\t];\n\n\tif (isBase64) {\n\t\tnormalizedMediaType.push('base64');\n\t}\n\n\tif (normalizedMediaType.length > 0 || (mimeType && mimeType !== DATA_URL_DEFAULT_MIME_TYPE)) {\n\t\tnormalizedMediaType.unshift(mimeType);\n\t}\n\n\treturn `data:${normalizedMediaType.join(';')},${isBase64 ? data.trim() : data}${hash ? `#${hash}` : ''}`;\n};\n\nexport default function normalizeUrl(urlString, options) {\n\toptions = {\n\t\tdefaultProtocol: 'http',\n\t\tnormalizeProtocol: true,\n\t\tforceHttp: false,\n\t\tforceHttps: false,\n\t\tstripAuthentication: true,\n\t\tstripHash: false,\n\t\tstripTextFragment: true,\n\t\tstripWWW: true,\n\t\tremoveQueryParameters: [/^utm_\\w+/i],\n\t\tremoveTrailingSlash: true,\n\t\tremoveSingleSlash: true,\n\t\tremoveDirectoryIndex: false,\n\t\tremoveExplicitPort: false,\n\t\tsortQueryParameters: true,\n\t\t...options,\n\t};\n\n\t// Legacy: Append `:` to the protocol if missing.\n\tif (typeof options.defaultProtocol === 'string' && !options.defaultProtocol.endsWith(':')) {\n\t\toptions.defaultProtocol = `${options.defaultProtocol}:`;\n\t}\n\n\turlString = urlString.trim();\n\n\t// Data URL\n\tif (/^data:/i.test(urlString)) {\n\t\treturn normalizeDataURL(urlString, options);\n\t}\n\n\tif (hasCustomProtocol(urlString)) {\n\t\treturn urlString;\n\t}\n\n\tconst hasRelativeProtocol = urlString.startsWith('//');\n\tconst isRelativeUrl = !hasRelativeProtocol && /^\\.*\\//.test(urlString);\n\n\t// Prepend protocol\n\tif (!isRelativeUrl) {\n\t\turlString = urlString.replace(/^(?!(?:\\w+:)?\\/\\/)|^\\/\\//, options.defaultProtocol);\n\t}\n\n\tconst urlObject = new URL(urlString);\n\n\tif (options.forceHttp && options.forceHttps) {\n\t\tthrow new Error('The `forceHttp` and `forceHttps` options cannot be used together');\n\t}\n\n\tif (options.forceHttp && urlObject.protocol === 'https:') {\n\t\turlObject.protocol = 'http:';\n\t}\n\n\tif (options.forceHttps && urlObject.protocol === 'http:') {\n\t\turlObject.protocol = 'https:';\n\t}\n\n\t// Remove auth\n\tif (options.stripAuthentication) {\n\t\turlObject.username = '';\n\t\turlObject.password = '';\n\t}\n\n\t// Remove hash\n\tif (options.stripHash) {\n\t\turlObject.hash = '';\n\t} else if (options.stripTextFragment) {\n\t\turlObject.hash = urlObject.hash.replace(/#?:~:text.*?$/i, '');\n\t}\n\n\t// Remove duplicate slashes if not preceded by a protocol\n\t// NOTE: This could be implemented using a single negative lookbehind\n\t// regex, but we avoid that to maintain compatibility with older js engines\n\t// which do not have support for that feature.\n\tif (urlObject.pathname) {\n\t\t// TODO: Replace everything below with `urlObject.pathname = urlObject.pathname.replace(/(?<!\\b[a-z][a-z\\d+\\-.]{1,50}:)\\/{2,}/g, '/');` when Safari supports negative lookbehind.\n\n\t\t// Split the string by occurrences of this protocol regex, and perform\n\t\t// duplicate-slash replacement on the strings between those occurrences\n\t\t// (if any).\n\t\tconst protocolRegex = /\\b[a-z][a-z\\d+\\-.]{1,50}:\\/\\//g;\n\n\t\tlet lastIndex = 0;\n\t\tlet result = '';\n\t\tfor (;;) {\n\t\t\tconst match = protocolRegex.exec(urlObject.pathname);\n\t\t\tif (!match) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tconst protocol = match[0];\n\t\t\tconst protocolAtIndex = match.index;\n\t\t\tconst intermediate = urlObject.pathname.slice(lastIndex, protocolAtIndex);\n\n\t\t\tresult += intermediate.replace(/\\/{2,}/g, '/');\n\t\t\tresult += protocol;\n\t\t\tlastIndex = protocolAtIndex + protocol.length;\n\t\t}\n\n\t\tconst remnant = urlObject.pathname.slice(lastIndex, urlObject.pathname.length);\n\t\tresult += remnant.replace(/\\/{2,}/g, '/');\n\n\t\turlObject.pathname = result;\n\t}\n\n\t// Decode URI octets\n\tif (urlObject.pathname) {\n\t\ttry {\n\t\t\turlObject.pathname = decodeURI(urlObject.pathname);\n\t\t} catch {}\n\t}\n\n\t// Remove directory index\n\tif (options.removeDirectoryIndex === true) {\n\t\toptions.removeDirectoryIndex = [/^index\\.[a-z]+$/];\n\t}\n\n\tif (Array.isArray(options.removeDirectoryIndex) && options.removeDirectoryIndex.length > 0) {\n\t\tlet pathComponents = urlObject.pathname.split('/');\n\t\tconst lastComponent = pathComponents[pathComponents.length - 1];\n\n\t\tif (testParameter(lastComponent, options.removeDirectoryIndex)) {\n\t\t\tpathComponents = pathComponents.slice(0, -1);\n\t\t\turlObject.pathname = pathComponents.slice(1).join('/') + '/';\n\t\t}\n\t}\n\n\tif (urlObject.hostname) {\n\t\t// Remove trailing dot\n\t\turlObject.hostname = urlObject.hostname.replace(/\\.$/, '');\n\n\t\t// Remove `www.`\n\t\tif (options.stripWWW && /^www\\.(?!www\\.)[a-z\\-\\d]{1,63}\\.[a-z.\\-\\d]{2,63}$/.test(urlObject.hostname)) {\n\t\t\t// Each label should be max 63 at length (min: 1).\n\t\t\t// Source: https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_host_names\n\t\t\t// Each TLD should be up to 63 characters long (min: 2).\n\t\t\t// It is technically possible to have a single character TLD, but none currently exist.\n\t\t\turlObject.hostname = urlObject.hostname.replace(/^www\\./, '');\n\t\t}\n\t}\n\n\t// Remove query unwanted parameters\n\tif (Array.isArray(options.removeQueryParameters)) {\n\t\t// eslint-disable-next-line unicorn/no-useless-spread -- We are intentionally spreading to get a copy.\n\t\tfor (const key of [...urlObject.searchParams.keys()]) {\n\t\t\tif (testParameter(key, options.removeQueryParameters)) {\n\t\t\t\turlObject.searchParams.delete(key);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (!Array.isArray(options.keepQueryParameters) && options.removeQueryParameters === true) {\n\t\turlObject.search = '';\n\t}\n\n\t// Keep wanted query parameters\n\tif (Array.isArray(options.keepQueryParameters) && options.keepQueryParameters.length > 0) {\n\t\t// eslint-disable-next-line unicorn/no-useless-spread -- We are intentionally spreading to get a copy.\n\t\tfor (const key of [...urlObject.searchParams.keys()]) {\n\t\t\tif (!testParameter(key, options.keepQueryParameters)) {\n\t\t\t\turlObject.searchParams.delete(key);\n\t\t\t}\n\t\t}\n\t}\n\n\t// Sort query parameters\n\tif (options.sortQueryParameters) {\n\t\turlObject.searchParams.sort();\n\n\t\t// Calling `.sort()` encodes the search parameters, so we need to decode them again.\n\t\ttry {\n\t\t\turlObject.search = decodeURIComponent(urlObject.search);\n\t\t} catch {}\n\t}\n\n\tif (options.removeTrailingSlash) {\n\t\turlObject.pathname = urlObject.pathname.replace(/\\/$/, '');\n\t}\n\n\t// Remove an explicit port number, excluding a default port number, if applicable\n\tif (options.removeExplicitPort && urlObject.port) {\n\t\turlObject.port = '';\n\t}\n\n\tconst oldUrlString = urlString;\n\n\t// Take advantage of many of the Node `url` normalizations\n\turlString = urlObject.toString();\n\n\tif (!options.removeSingleSlash && urlObject.pathname === '/' && !oldUrlString.endsWith('/') && urlObject.hash === '') {\n\t\turlString = urlString.replace(/\\/$/, '');\n\t}\n\n\t// Remove ending `/` unless removeSingleSlash is false\n\tif ((options.removeTrailingSlash || urlObject.pathname === '/') && urlObject.hash === '' && options.removeSingleSlash) {\n\t\turlString = urlString.replace(/\\/$/, '');\n\t}\n\n\t// Restore relative protocol, if applicable\n\tif (hasRelativeProtocol && !options.normalizeProtocol) {\n\t\turlString = urlString.replace(/^http:\\/\\//, '//');\n\t}\n\n\t// Remove http/https\n\tif (options.stripProtocol) {\n\t\turlString = urlString.replace(/^(?:https?:)?\\/\\//, '');\n\t}\n\n\treturn urlString;\n}\n",
|
|
128
|
-
"// src/compiler/buffer.ts\nvar CompilerBuffer = class _CompilerBuffer {\n #content = \"\";\n /**\n * The character used to create a new line\n */\n newLine = \"\\n\";\n /**\n * Write statement ot the output\n */\n writeStatement(statement) {\n this.#content = `${this.#content}${this.newLine}${statement}`;\n }\n /**\n * Creates a child buffer\n */\n child() {\n return new _CompilerBuffer();\n }\n /**\n * Returns the buffer contents as string\n */\n toString() {\n return this.#content;\n }\n /**\n * Flush in-memory string\n */\n flush() {\n this.#content = \"\";\n }\n};\n\n// src/scripts/field/variables.ts\nfunction defineFieldVariables({\n parseFnRefId,\n variableName,\n wildCardPath,\n isArrayMember,\n valueExpression,\n parentExpression,\n fieldNameExpression,\n parentValueExpression\n}) {\n const inValueExpression = parseFnRefId ? `refs['${parseFnRefId}'](${valueExpression}, {\n data: root,\n meta: meta,\n parent: ${parentValueExpression}\n })` : valueExpression;\n let fieldPathOutputExpression = \"\";\n if (parentExpression === \"root\" || parentExpression === \"root_item\") {\n fieldPathOutputExpression = fieldNameExpression;\n } else if (fieldNameExpression !== \"''\") {\n fieldPathOutputExpression = `${parentExpression}.getFieldPath() + '.' + ${fieldNameExpression}`;\n }\n return `const ${variableName} = defineValue(${inValueExpression}, {\n data: root,\n meta: meta,\n name: ${fieldNameExpression},\n wildCardPath: '${wildCardPath}',\n getFieldPath() {\n return ${fieldPathOutputExpression};\n },\n mutate: defineValue,\n report: report,\n isValid: true,\n parent: ${parentValueExpression},\n isArrayMember: ${isArrayMember},\n});`;\n}\n\n// src/compiler/nodes/base.ts\nvar BaseNode = class {\n #node;\n #parentField;\n field;\n constructor(node, compiler, parent, parentField) {\n this.#parentField = parentField;\n this.#node = node;\n if (this.#parentField) {\n this.field = this.#parentField;\n } else {\n compiler.variablesCounter++;\n this.field = compiler.createFieldFor(node, parent);\n }\n }\n defineField(buffer) {\n if (!this.#parentField) {\n buffer.writeStatement(\n defineFieldVariables({\n fieldNameExpression: this.field.fieldNameExpression,\n isArrayMember: this.field.isArrayMember,\n parentExpression: this.field.parentExpression,\n parentValueExpression: this.field.parentValueExpression,\n valueExpression: this.field.valueExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath,\n parseFnRefId: \"parseFnId\" in this.#node ? this.#node.parseFnId : void 0\n })\n );\n }\n }\n};\n\n// src/scripts/array/guard.ts\nfunction defineArrayGuard({ variableName, guardedCodeSnippet }) {\n return `if (ensureIsArray(${variableName})) {\n${guardedCodeSnippet}\n}`;\n}\n\n// src/scripts/field/is_valid_guard.ts\nfunction defineIsValidGuard({ variableName, bail, guardedCodeSnippet }) {\n if (!bail) {\n return guardedCodeSnippet;\n }\n return `if (${variableName}.isValid) {\n${guardedCodeSnippet}\n}`;\n}\n\n// src/scripts/field/null_output.ts\nfunction defineFieldNullOutput({\n allowNull,\n conditional,\n variableName,\n outputExpression,\n transformFnRefId\n}) {\n if (!allowNull) {\n return \"\";\n }\n return `${conditional || \"if\"}(${variableName}.value === null) {\n ${outputExpression} = ${transformFnRefId ? `refs['${transformFnRefId}'](null, ${variableName});` : \"null;\"}\n}`;\n}\n\n// src/scripts/field/validations.ts\nfunction wrapInConditional(conditions, wrappingCode) {\n const [first, second] = conditions;\n if (first && second) {\n return `if (${first} && ${second}) {\n ${wrappingCode}\n}`;\n }\n if (first) {\n return `if (${first}) {\n ${wrappingCode}\n}`;\n }\n if (second) {\n return `if (${second}) {\n ${wrappingCode}\n}`;\n }\n return wrappingCode;\n}\nfunction emitValidationSnippet({ isAsync, implicit, ruleFnId }, variableName, bail, dropMissingCheck) {\n const rule = `refs['${ruleFnId}']`;\n const callable = `${rule}.validator(${variableName}.value, ${rule}.options, ${variableName});`;\n const bailCondition = bail ? `${variableName}.isValid` : \"\";\n const implicitCondition = implicit || dropMissingCheck ? \"\" : `${variableName}.isDefined`;\n return wrapInConditional(\n [bailCondition, implicitCondition],\n isAsync ? `await ${callable}` : `${callable}`\n );\n}\nfunction defineFieldValidations({\n bail,\n validations,\n variableName,\n dropMissingCheck\n}) {\n return `${validations.map((one) => emitValidationSnippet(one, variableName, bail, dropMissingCheck)).join(\"\\n\")}`;\n}\n\n// src/scripts/array/initial_output.ts\nfunction defineArrayInitialOutput({\n variableName,\n outputExpression,\n outputValueExpression\n}) {\n return `const ${variableName}_out = ${outputValueExpression};\n${outputExpression} = ${variableName}_out;`;\n}\n\n// src/scripts/field/existence_validations.ts\nfunction defineFieldExistenceValidations({\n allowNull,\n isOptional,\n variableName\n}) {\n if (isOptional === false) {\n if (allowNull === false) {\n return `ensureExists(${variableName});`;\n } else {\n return `ensureIsDefined(${variableName});`;\n }\n }\n return \"\";\n}\n\n// src/compiler/nodes/tuple.ts\nvar TupleNodeCompiler = class extends BaseNode {\n #node;\n #buffer;\n #compiler;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n this.#compiler = compiler;\n }\n /**\n * Compiles the tuple children to a JS fragment\n */\n #compileTupleChildren() {\n const buffer = this.#buffer.child();\n const parent = {\n type: \"tuple\",\n fieldPathExpression: this.field.fieldPathExpression,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath\n };\n this.#node.properties.forEach((child) => {\n this.#compiler.compileNode(child, buffer, parent);\n });\n return buffer.toString();\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(\n defineFieldExistenceValidations({\n allowNull: this.#node.allowNull,\n isOptional: this.#node.isOptional,\n variableName: this.field.variableName\n })\n );\n const isArrayValidBlock = defineIsValidGuard({\n variableName: this.field.variableName,\n bail: this.#node.bail,\n guardedCodeSnippet: `${defineArrayInitialOutput({\n variableName: this.field.variableName,\n outputExpression: this.field.outputExpression,\n outputValueExpression: this.#node.allowUnknownProperties ? `copyProperties(${this.field.variableName}.value)` : `[]`\n })}${this.#compileTupleChildren()}`\n });\n const isValueAnArrayBlock = defineArrayGuard({\n variableName: this.field.variableName,\n guardedCodeSnippet: `${defineFieldValidations({\n variableName: this.field.variableName,\n validations: this.#node.validations,\n bail: this.#node.bail,\n dropMissingCheck: true\n })}${this.#buffer.newLine}${isArrayValidBlock}`\n });\n this.#buffer.writeStatement(\n `${isValueAnArrayBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n allowNull: this.#node.allowNull,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n conditional: \"else if\"\n })}`\n );\n }\n};\n\n// src/scripts/array/loop.ts\nfunction defineArrayLoop({\n variableName,\n loopCodeSnippet,\n startingIndex\n}) {\n startingIndex = startingIndex || 0;\n return `const ${variableName}_items_size = ${variableName}.value.length;\nfor (let ${variableName}_i = ${startingIndex}; ${variableName}_i < ${variableName}_items_size; ${variableName}_i++) {\n${loopCodeSnippet}\n}`;\n}\n\n// src/compiler/nodes/array.ts\nvar ArrayNodeCompiler = class extends BaseNode {\n #node;\n #buffer;\n #compiler;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n this.#compiler = compiler;\n }\n /**\n * Compiles the array elements to a JS fragment\n */\n #compileArrayElements() {\n const arrayElementsBuffer = this.#buffer.child();\n this.#compiler.compileNode(this.#node.each, arrayElementsBuffer, {\n type: \"array\",\n fieldPathExpression: this.field.fieldPathExpression,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath\n });\n const buffer = this.#buffer.child();\n buffer.writeStatement(\n defineArrayLoop({\n variableName: this.field.variableName,\n startingIndex: 0,\n loopCodeSnippet: arrayElementsBuffer.toString()\n })\n );\n arrayElementsBuffer.flush();\n return buffer.toString();\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(\n defineFieldExistenceValidations({\n allowNull: this.#node.allowNull,\n isOptional: this.#node.isOptional,\n variableName: this.field.variableName\n })\n );\n const isArrayValidBlock = defineIsValidGuard({\n variableName: this.field.variableName,\n bail: this.#node.bail,\n guardedCodeSnippet: `${defineArrayInitialOutput({\n variableName: this.field.variableName,\n outputExpression: this.field.outputExpression,\n outputValueExpression: `[]`\n })}${this.#buffer.newLine}${this.#compileArrayElements()}`\n });\n const isValueAnArrayBlock = defineArrayGuard({\n variableName: this.field.variableName,\n guardedCodeSnippet: `${defineFieldValidations({\n variableName: this.field.variableName,\n validations: this.#node.validations,\n bail: this.#node.bail,\n dropMissingCheck: true\n })}${this.#buffer.newLine}${isArrayValidBlock}`\n });\n this.#buffer.writeStatement(\n `${isValueAnArrayBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n allowNull: this.#node.allowNull,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n conditional: \"else if\"\n })}`\n );\n }\n};\n\n// src/scripts/union/parse.ts\nfunction callParseFunction({ parseFnRefId, variableName }) {\n if (parseFnRefId) {\n return `${variableName}.value = refs['${parseFnRefId}'](${variableName}.value);`;\n }\n return \"\";\n}\n\n// src/scripts/define_else_conditon.ts\nfunction defineElseCondition({ variableName, conditionalFnRefId }) {\n return `else {\nrefs['${conditionalFnRefId}'](${variableName}.value, ${variableName});\n}`;\n}\n\n// src/scripts/define_conditional_guard.ts\nfunction defineConditionalGuard({\n conditional,\n variableName,\n conditionalFnRefId,\n guardedCodeSnippet\n}) {\n return `${conditional}(refs['${conditionalFnRefId}'](${variableName}.value, ${variableName})) {\n${guardedCodeSnippet}\n}`;\n}\n\n// src/compiler/nodes/union.ts\nvar UnionNodeCompiler = class extends BaseNode {\n #compiler;\n #node;\n #buffer;\n #parent;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n this.#parent = parent;\n this.#compiler = compiler;\n }\n /**\n * Compiles union children by wrapping each conditon inside a conditional\n * guard block\n */\n #compileUnionChildren() {\n const childrenBuffer = this.#buffer.child();\n this.#node.conditions.forEach((child, index) => {\n const conditionalBuffer = this.#buffer.child();\n if (\"parseFnId\" in child.schema) {\n conditionalBuffer.writeStatement(\n callParseFunction({\n parseFnRefId: child.schema.parseFnId,\n variableName: this.field.variableName\n })\n );\n }\n this.#compiler.compileNode(child.schema, conditionalBuffer, this.#parent, this.field);\n childrenBuffer.writeStatement(\n defineConditionalGuard({\n conditional: index === 0 ? \"if\" : \"else if\",\n variableName: this.field.variableName,\n conditionalFnRefId: child.conditionalFnRefId,\n guardedCodeSnippet: conditionalBuffer.toString()\n })\n );\n conditionalBuffer.flush();\n });\n if (this.#node.elseConditionalFnRefId && this.#node.conditions.length) {\n childrenBuffer.writeStatement(\n defineElseCondition({\n variableName: this.field.variableName,\n conditionalFnRefId: this.#node.elseConditionalFnRefId\n })\n );\n }\n return childrenBuffer.toString();\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(this.#compileUnionChildren());\n }\n};\n\n// src/scripts/record/loop.ts\nfunction defineRecordLoop({ variableName, loopCodeSnippet }) {\n return `const ${variableName}_keys = Object.keys(${variableName}.value);\nconst ${variableName}_keys_size = ${variableName}_keys.length;\nfor (let ${variableName}_key_i = 0; ${variableName}_key_i < ${variableName}_keys_size; ${variableName}_key_i++) {\nconst ${variableName}_i = ${variableName}_keys[${variableName}_key_i];\n${loopCodeSnippet}\n}`;\n}\n\n// src/scripts/object/guard.ts\nfunction defineObjectGuard({ variableName, guardedCodeSnippet }) {\n return `if (ensureIsObject(${variableName})) {\n${guardedCodeSnippet}\n}`;\n}\n\n// src/scripts/object/initial_output.ts\nfunction defineObjectInitialOutput({\n variableName,\n outputExpression,\n outputValueExpression\n}) {\n return `const ${variableName}_out = ${outputValueExpression};\n${outputExpression} = ${variableName}_out;`;\n}\n\n// src/compiler/nodes/record.ts\nvar RecordNodeCompiler = class extends BaseNode {\n #node;\n #buffer;\n #compiler;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n this.#compiler = compiler;\n }\n /**\n * Compiles the record elements to a JS fragment\n */\n #compileRecordElements() {\n const buffer = this.#buffer.child();\n const recordElementsBuffer = this.#buffer.child();\n this.#compiler.compileNode(this.#node.each, recordElementsBuffer, {\n type: \"record\",\n fieldPathExpression: this.field.fieldPathExpression,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath\n });\n buffer.writeStatement(\n defineRecordLoop({\n variableName: this.field.variableName,\n loopCodeSnippet: recordElementsBuffer.toString()\n })\n );\n recordElementsBuffer.flush();\n return buffer.toString();\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(\n defineFieldExistenceValidations({\n allowNull: this.#node.allowNull,\n isOptional: this.#node.isOptional,\n variableName: this.field.variableName\n })\n );\n const isObjectValidBlock = defineIsValidGuard({\n variableName: this.field.variableName,\n bail: this.#node.bail,\n guardedCodeSnippet: `${defineObjectInitialOutput({\n variableName: this.field.variableName,\n outputExpression: this.field.outputExpression,\n outputValueExpression: `{}`\n })}${this.#compileRecordElements()}`\n });\n const isValueAnObjectBlock = defineObjectGuard({\n variableName: this.field.variableName,\n guardedCodeSnippet: `${defineFieldValidations({\n variableName: this.field.variableName,\n validations: this.#node.validations,\n bail: this.#node.bail,\n dropMissingCheck: true\n })}${this.#buffer.newLine}${isObjectValidBlock}`\n });\n this.#buffer.writeStatement(\n `${isValueAnObjectBlock}${this.#buffer.newLine}${defineFieldNullOutput({\n allowNull: this.#node.allowNull,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n conditional: \"else if\"\n })}`\n );\n }\n};\n\n// src/scripts/object/move_unknown_properties.ts\nfunction arrayToString(arr) {\n return `[${arr.map((str) => `\"${str}\"`).join(\", \")}]`;\n}\nfunction defineMoveProperties({\n variableName,\n fieldsToIgnore,\n allowUnknownProperties\n}) {\n if (!allowUnknownProperties) {\n return \"\";\n }\n const serializedFieldsToIgnore = arrayToString(fieldsToIgnore);\n return `moveProperties(${variableName}.value, ${variableName}_out, ${serializedFieldsToIgnore});`;\n}\n\n// src/compiler/nodes/object.ts\nvar ObjectNodeCompiler = class extends BaseNode {\n #node;\n #buffer;\n #compiler;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n this.#compiler = compiler;\n }\n /**\n * Returns known field names for the object\n */\n #getFieldNames(node) {\n let fieldNames = node.properties.map((child) => child.fieldName);\n const groupsFieldNames = node.groups.flatMap((group) => this.#getGroupFieldNames(group));\n return fieldNames.concat(groupsFieldNames);\n }\n /**\n * Returns field names of a group.\n */\n #getGroupFieldNames(group) {\n return group.conditions.flatMap((condition) => {\n return this.#getFieldNames(condition.schema);\n });\n }\n /**\n * Compiles object children to JS output\n */\n #compileObjectChildren() {\n const buffer = this.#buffer.child();\n const parent = {\n type: \"object\",\n fieldPathExpression: this.field.fieldPathExpression,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath\n };\n this.#node.properties.forEach((child) => this.#compiler.compileNode(child, buffer, parent));\n return buffer.toString();\n }\n /**\n * Compiles object groups with conditions to JS output.\n */\n #compileObjectGroups() {\n const buffer = this.#buffer.child();\n const parent = {\n type: \"object\",\n fieldPathExpression: this.field.fieldPathExpression,\n outputExpression: this.field.outputExpression,\n variableName: this.field.variableName,\n wildCardPath: this.field.wildCardPath\n };\n this.#node.groups.forEach((group) => this.#compileObjectGroup(group, buffer, parent));\n return buffer.toString();\n }\n /**\n * Compiles an object groups recursively\n */\n #compileObjectGroup(group, buffer, parent) {\n group.conditions.forEach((condition, index) => {\n const guardBuffer = buffer.child();\n condition.schema.properties.forEach((child) => {\n this.#compiler.compileNode(child, guardBuffer, parent);\n });\n condition.schema.groups.forEach((child) => {\n this.#compileObjectGroup(child, guardBuffer, parent);\n });\n buffer.writeStatement(\n defineConditionalGuard({\n variableName: this.field.variableName,\n conditional: index === 0 ? \"if\" : \"else if\",\n conditionalFnRefId: condition.conditionalFnRefId,\n guardedCodeSnippet: guardBuffer.toString()\n })\n );\n });\n if (group.elseConditionalFnRefId && group.conditions.length) {\n buffer.writeStatement(\n defineElseCondition({\n variableName: this.field.variableName,\n conditionalFnRefId: group.elseConditionalFnRefId\n })\n );\n }\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(\n defineFieldExistenceValidations({\n allowNull: this.#node.allowNull,\n isOptional: this.#node.isOptional,\n variableName: this.field.variableName\n })\n );\n const isObjectValidBlock = defineIsValidGuard({\n variableName: this.field.variableName,\n bail: this.#node.bail,\n guardedCodeSnippet: `${defineObjectInitialOutput({\n variableName: this.field.variableName,\n outputExpression: this.field.outputExpression,\n outputValueExpression: \"{}\"\n })}${this.#buffer.newLine}${this.#compileObjectChildren()}${this.#buffer.newLine}${this.#compileObjectGroups()}${this.#buffer.newLine}${defineMoveProperties({\n variableName: this.field.variableName,\n allowUnknownProperties: this.#node.allowUnknownProperties,\n fieldsToIgnore: this.#node.allowUnknownProperties ? this.#getFieldNames(this.#node) : []\n })}`\n });\n const isValueAnObject = defineObjectGuard({\n variableName: this.field.variableName,\n guardedCodeSnippet: `${defineFieldValidations({\n variableName: this.field.variableName,\n validations: this.#node.validations,\n bail: this.#node.bail,\n dropMissingCheck: true\n })}${isObjectValidBlock}`\n });\n this.#buffer.writeStatement(\n `${isValueAnObject}${this.#buffer.newLine}${defineFieldNullOutput({\n variableName: this.field.variableName,\n allowNull: this.#node.allowNull,\n outputExpression: this.field.outputExpression,\n conditional: \"else if\"\n })}`\n );\n }\n};\n\n// src/compiler/fields/root_field.ts\nfunction createRootField(parent) {\n return {\n parentExpression: parent.variableName,\n parentValueExpression: parent.variableName,\n fieldNameExpression: `''`,\n fieldPathExpression: `''`,\n wildCardPath: \"\",\n variableName: `${parent.variableName}_item`,\n valueExpression: \"root\",\n outputExpression: parent.outputExpression,\n isArrayMember: false\n };\n}\n\n// src/scripts/field/value_output.ts\nfunction defineFieldValueOutput({\n variableName,\n outputExpression,\n transformFnRefId\n}) {\n const outputValueExpression = transformFnRefId ? `refs['${transformFnRefId}'](${variableName}.value, ${variableName})` : `${variableName}.value`;\n return `if (${variableName}.isDefined && ${variableName}.isValid) {\n ${outputExpression} = ${outputValueExpression};\n}`;\n}\n\n// src/compiler/nodes/literal.ts\nvar LiteralNodeCompiler = class extends BaseNode {\n #node;\n #buffer;\n constructor(node, buffer, compiler, parent, parentField) {\n super(node, compiler, parent, parentField);\n this.#node = node;\n this.#buffer = buffer;\n }\n compile() {\n this.defineField(this.#buffer);\n this.#buffer.writeStatement(\n defineFieldExistenceValidations({\n allowNull: this.#node.allowNull,\n isOptional: this.#node.isOptional,\n variableName: this.field.variableName\n })\n );\n this.#buffer.writeStatement(\n defineFieldValidations({\n variableName: this.field.variableName,\n validations: this.#node.validations,\n bail: this.#node.bail,\n dropMissingCheck: false\n })\n );\n this.#buffer.writeStatement(\n `${defineFieldValueOutput({\n variableName: this.field.variableName,\n outputExpression: this.field.outputExpression,\n transformFnRefId: this.#node.transformFnId\n })}${this.#buffer.newLine}${defineFieldNullOutput({\n variableName: this.field.variableName,\n allowNull: this.#node.allowNull,\n outputExpression: this.field.outputExpression,\n transformFnRefId: this.#node.transformFnId,\n conditional: \"else if\"\n })}`\n );\n }\n};\n\n// src/compiler/fields/array_field.ts\nfunction createArrayField(parent) {\n const wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.*` : `*`;\n return {\n parentExpression: parent.variableName,\n parentValueExpression: `${parent.variableName}.value`,\n fieldNameExpression: `${parent.variableName}_i`,\n fieldPathExpression: wildCardPath,\n wildCardPath,\n variableName: `${parent.variableName}_item`,\n valueExpression: `${parent.variableName}.value[${parent.variableName}_i]`,\n outputExpression: `${parent.variableName}_out[${parent.variableName}_i]`,\n isArrayMember: true\n };\n}\n\n// src/compiler/fields/tuple_field.ts\nfunction createTupleField(node, parent) {\n const wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.${node.fieldName}` : node.fieldName;\n return {\n parentExpression: parent.variableName,\n parentValueExpression: `${parent.variableName}.value`,\n fieldNameExpression: `${node.fieldName}`,\n fieldPathExpression: wildCardPath,\n wildCardPath,\n variableName: `${parent.variableName}_item_${node.fieldName}`,\n valueExpression: `${parent.variableName}.value[${node.fieldName}]`,\n outputExpression: `${parent.variableName}_out[${node.propertyName}]`,\n isArrayMember: true\n };\n}\n\n// src/scripts/report_errors.ts\nfunction reportErrors() {\n return `if(errorReporter.hasErrors) {\n throw errorReporter.createError();\n}`;\n}\n\n// src/compiler/fields/object_field.ts\nfunction createObjectField(node, variablesCounter, parent) {\n const wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.${node.fieldName}` : node.fieldName;\n return {\n parentExpression: parent.variableName,\n parentValueExpression: `${parent.variableName}.value`,\n fieldNameExpression: `'${node.fieldName}'`,\n fieldPathExpression: wildCardPath,\n wildCardPath,\n variableName: `${node.propertyName}_${variablesCounter}`,\n valueExpression: `${parent.variableName}.value['${node.fieldName}']`,\n outputExpression: `${parent.variableName}_out['${node.propertyName}']`,\n isArrayMember: false\n };\n}\n\n// src/compiler/fields/record_field.ts\nfunction createRecordField(parent) {\n const wildCardPath = parent.wildCardPath !== \"\" ? `${parent.wildCardPath}.*` : `*`;\n return {\n parentExpression: parent.variableName,\n parentValueExpression: `${parent.variableName}.value`,\n fieldNameExpression: `${parent.variableName}_i`,\n fieldPathExpression: wildCardPath,\n wildCardPath,\n variableName: `${parent.variableName}_item`,\n valueExpression: `${parent.variableName}.value[${parent.variableName}_i]`,\n outputExpression: `${parent.variableName}_out[${parent.variableName}_i]`,\n isArrayMember: false\n };\n}\n\n// src/scripts/define_inline_functions.ts\nfunction defineInlineFunctions(options) {\n return `function report(message, rule, field, args) {\n field.isValid = false;\n errorReporter.report(messagesProvider.getMessage(message, rule, field, args), rule, field, args);\n};\nfunction defineValue(value, field) {\n ${options.convertEmptyStringsToNull ? `if (value === '') { value = null; }` : \"\"}\n field.value = value;\n field.isDefined = value !== undefined && value !== null;\n return field;\n};\nfunction ensureExists(field) {\n if (field.value === undefined || field.value === null) {\n field.report(REQUIRED, 'required', field);\n return false;\n }\n return true;\n};\nfunction ensureIsDefined(field) {\n if (field.value === undefined) {\n field.report(REQUIRED, 'required', field);\n return false;\n }\n return true;\n};\nfunction ensureIsObject(field) {\n if (!field.isDefined) {\n return false;\n }\n if (typeof field.value == 'object' && !Array.isArray(field.value)) {\n return true;\n }\n field.report(NOT_AN_OBJECT, 'object', field);\n return false;\n};\nfunction ensureIsArray(field) {\n if (!field.isDefined) {\n return false;\n }\n if (Array.isArray(field.value)) {\n return true;\n }\n field.report(NOT_AN_ARRAY, 'array', field);\n return false;\n};\nfunction copyProperties(val) {\n let k, out, tmp;\n\n if (Array.isArray(val)) {\n out = Array((k = val.length))\n while (k--) out[k] = (tmp = val[k]) && typeof tmp == 'object' ? copyProperties(tmp) : tmp\n return out\n }\n\n if (Object.prototype.toString.call(val) === '[object Object]') {\n out = {} // null\n for (k in val) {\n out[k] = (tmp = val[k]) && typeof tmp == 'object' ? copyProperties(tmp) : tmp\n }\n return out\n }\n return val\n};\nfunction moveProperties(source, destination, ignoreKeys) {\n for (let key in source) {\n if (!ignoreKeys.includes(key)) {\n const value = source[key]\n destination[key] = copyProperties(value)\n }\n }\n};`;\n}\n\n// src/scripts/define_error_messages.ts\nfunction defineInlineErrorMessages(messages) {\n return `const REQUIRED = '${messages.required}';\nconst NOT_AN_OBJECT = '${messages.object}';\nconst NOT_AN_ARRAY = '${messages.array}';`;\n}\n\n// src/compiler/main.ts\nvar AsyncFunction = Object.getPrototypeOf(async function() {\n}).constructor;\nvar Compiler = class {\n /**\n * Variables counter is used to generate unique variable\n * names with a counter suffix.\n */\n variablesCounter = 0;\n /**\n * An array of nodes to process\n */\n #rootNode;\n /**\n * Options to configure the compiler behavior\n */\n #options;\n /**\n * Buffer for collection the JS output string\n */\n #buffer = new CompilerBuffer();\n constructor(rootNode, options) {\n this.#rootNode = rootNode;\n this.#options = options || { convertEmptyStringsToNull: false };\n }\n /**\n * Initiates the JS output\n */\n #initiateJSOutput() {\n this.#buffer.writeStatement(\n defineInlineErrorMessages({\n required: \"value is required\",\n object: \"value is not a valid object\",\n array: \"value is not a valid array\",\n ...this.#options.messages\n })\n );\n this.#buffer.writeStatement(defineInlineFunctions(this.#options));\n this.#buffer.writeStatement(\"let out;\");\n }\n /**\n * Finished the JS output\n */\n #finishJSOutput() {\n this.#buffer.writeStatement(reportErrors());\n this.#buffer.writeStatement(\"return out;\");\n }\n /**\n * Compiles all the nodes\n */\n #compileNodes() {\n this.compileNode(this.#rootNode.schema, this.#buffer, {\n type: \"root\",\n variableName: \"root\",\n outputExpression: \"out\",\n fieldPathExpression: \"out\",\n wildCardPath: \"\"\n });\n }\n /**\n * Returns compiled output as a function\n */\n #toAsyncFunction() {\n return new AsyncFunction(\n \"root\",\n \"meta\",\n \"refs\",\n \"messagesProvider\",\n \"errorReporter\",\n this.#buffer.toString()\n );\n }\n /**\n * Converts a node to a field. Optionally accepts a parent node to create\n * a field for a specific parent type.\n */\n createFieldFor(node, parent) {\n switch (parent.type) {\n case \"array\":\n return createArrayField(parent);\n case \"root\":\n return createRootField(parent);\n case \"object\":\n return createObjectField(node, this.variablesCounter, parent);\n case \"tuple\":\n return createTupleField(node, parent);\n case \"record\":\n return createRecordField(parent);\n }\n }\n /**\n * Compiles a given compiler node\n */\n compileNode(node, buffer, parent, parentField) {\n switch (node.type) {\n case \"literal\":\n return new LiteralNodeCompiler(node, buffer, this, parent, parentField).compile();\n case \"array\":\n return new ArrayNodeCompiler(node, buffer, this, parent, parentField).compile();\n case \"record\":\n return new RecordNodeCompiler(node, buffer, this, parent, parentField).compile();\n case \"object\":\n return new ObjectNodeCompiler(node, buffer, this, parent, parentField).compile();\n case \"tuple\":\n return new TupleNodeCompiler(node, buffer, this, parent, parentField).compile();\n case \"union\":\n return new UnionNodeCompiler(node, buffer, this, parent, parentField).compile();\n }\n }\n /**\n * Compile schema nodes to an async function\n */\n compile() {\n this.#initiateJSOutput();\n this.#compileNodes();\n this.#finishJSOutput();\n const outputFunction = this.#toAsyncFunction();\n this.variablesCounter = 0;\n this.#buffer.flush();\n return outputFunction;\n }\n};\n\n// src/refs_builder.ts\nfunction refsBuilder() {\n let counter = 0;\n const refs = {};\n return {\n toJSON() {\n return refs;\n },\n /**\n * Track a value inside refs\n */\n track(value) {\n counter++;\n const ref = `ref://${counter}`;\n refs[ref] = value;\n return ref;\n },\n /**\n * Track a validation inside refs\n */\n trackValidation(validation) {\n return this.track(validation);\n },\n /**\n * Track input value parser inside refs\n */\n trackParser(fn) {\n return this.track(fn);\n },\n /**\n * Track output value transformer inside refs\n */\n trackTransformer(fn) {\n return this.track(fn);\n },\n /**\n * Track a conditional inside refs\n */\n trackConditional(fn) {\n return this.track(fn);\n }\n };\n}\nexport {\n Compiler,\n refsBuilder\n};\n//# sourceMappingURL=index.js.map",
|
|
129
|
-
"import os from 'node:os'\nimport {\n basename,\n delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n parse,\n type ParsedPath,\n relative,\n resolve,\n sep,\n toNamespacedPath,\n} from 'node:path'\nimport process from 'node:process'\nimport { runCommandSync } from '@stacksjs/cli'\nimport { log } from '@stacksjs/logging'\n\n/**\n * Returns the path to the `actions` directory. The `actions` directory\n * contains the core Stacks' actions.\n *\n * @param path - The relative path to the file or directory.\n * @returns The absolute path to the file or directory.\n * @example\n * ```ts\n * import { actionsPath } from '@stacksjs/path'\n *\n * console.log(actionsPath('path/to/action.ts')) // Outputs the absolute path to 'path/to/action.ts' within the `actions` directory\n * ```\n */\nexport function actionsPath(path?: string): string {\n return corePath(`actions/${path || ''}`)\n}\n\nexport function relativeActionsPath(path?: string): string {\n return relative(projectPath(), actionsPath(path))\n}\n\nexport function userActionsPath(path?: string, options?: { relative: true }): string {\n const absolutePath = appPath(`Actions/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\nexport function builtUserActionsPath(path?: string, options?: { relative: boolean }): string {\n const absolutePath = frameworkPath(`actions/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\nexport function userComponentsPath(path?: string): string {\n return libsPath(`components/${path || ''}`)\n}\n\nexport function userViewsPath(path?: string): string {\n return resourcesPath(`views/${path || ''}`)\n}\n\nexport function userFunctionsPath(path?: string): string {\n return resourcesPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Jobs` directory.\n *\n * @param path - The relative path to the file or directory within the `Jobs` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Jobs` directory.\n * @example\n * ```ts\n * import { userJobsPath } from '@stacksjs/path'\n *\n * console.log(userJobsPath('MyJob.ts')) // Outputs the absolute path to 'MyJob.ts' within the user-defined `Jobs` directory.\n * ```\n */\nexport function userJobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Listeners` directory.\n *\n * @param path - The relative path to the file or directory within the `Listeners` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Listeners` directory.\n * @example\n * ```ts\n * import { userListenersPath } from '@stacksjs/path'\n *\n * console.log(userListenersPath('MyListener.ts')) // Outputs the absolute path to 'MyListener.ts' within the user-defined `Listeners` directory.\n * ```\n */\nexport function userListenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Middleware` directory.\n *\n * @param path - The relative path to the file or directory within the Middleware directory.\n * @returns The absolute path to the specified file or directory within the user-defined Middleware directory.\n * @example\n * ```ts\n * import { userMiddlewarePath } from '@stacksjs/path'\n *\n * console.log(userMiddlewarePath('MyMiddleware.ts')) // Outputs the absolute path to 'MyMiddleware.ts' within the user-defined Middleware directory.\n * ```\n */\nexport function userMiddlewarePath(path?: string): string {\n return appPath(`Middleware/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Models` directory.\n *\n * @param path - The relative path to the file or directory within the `Models` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Models` directory.\n * @example\n * ```ts\n * import { userModelsPath } from '@stacksjs/path'\n *\n * console.log(userModelsPath('MyModel.ts')) // Outputs the absolute path to 'MyModel.ts' within the user-defined `Models` directory.\n * ```\n */\nexport function userModelsPath(path?: string): string {\n return appPath(`Models/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `Notifications` directory.\n * @returns The absolute path to the specified file or directory within the user-defined `Notifications` directory.\n * @example\n * ```ts\n * import { userNotificationsPath } from '@stacksjs/path'\n *\n * console.log(userNotificationsPath('MyNotification.ts')) // Outputs the absolute path to 'MyNotification.ts' within the user-defined `Notifications` directory.\n * ```\n */\nexport function userNotificationsPath(path?: string): string {\n return appPath(`Notifications/${path || ''}`)\n}\n\nexport function userDatabasePath(path?: string): string {\n return projectPath(`database/${path || ''}`)\n}\n\nexport function userMigrationsPath(path?: string): string {\n return userDatabasePath(`migrations/${path || ''}`)\n}\n\n/**\n * Returns the path to the user-defined `Events.ts` file.\n *\n * @returns The absolute path to the `Events.ts` file within the user-defined directory.\n * @example\n * ```ts\n * import { userEventsPath } from '@stacksjs/path'\n *\n * console.log(userEventsPath()) // Outputs the absolute path to 'Events.ts' within the user-defined directory.\n * ```\n */\nexport function userEventsPath(): string {\n return appPath(`Events.ts`)\n}\n\n/**\n * Returns the path to the `ai` directory. The AI directory\n * contains the core Stacks' AI logic which currently\n * is a wrapper of the OpenAI API.\n *\n * @param path - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n *\n * @example\n * ```ts\n * import { aiPath } from '@stacksjs/path'\n *\n * console.log(aiPath('src/drivers/example.ts')) // Outputs the absolute path to 'openai.ts' within the AI directory\n * ```\n */\nexport function aiPath(path?: string): string {\n return corePath(`ai/${path || ''}`)\n}\n\n/**\n * Returns the path to the `assets` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `assets` directory.\n * @returns The absolute path to the specified file or directory within the `assets` directory.\n * @example\n * ```ts\n * import { assetsPath } from '@stacksjs/path'\n *\n * console.log(assetsPath('images/logo.png')) // Outputs the absolute path to 'images/logo.png' within the `assets` directory.\n * ```\n */\nexport function assetsPath(path?: string): string {\n return resourcesPath(`assets/${path || ''}`)\n}\n\n/**\n * Returns the path to the `alias` directory within the core directory.\n *\n * @returns The absolute path to the `alias` directory.\n * @example\n * ```ts\n * import { aliasPath } from '@stacksjs/path'\n *\n * console.log(aliasPath()) // Outputs the absolute path to the `alias` directory.\n * ```\n */\nexport function aliasPath(): string {\n return corePath('alias/src/index.ts')\n}\n\n/**\n * Returns the path to the `buddy` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the buddy directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the buddy * @returns The absolute or relative path to the specified file or directory within the buddy directory.\n * @example\n * ```ts\n * import { buddyPath } from '@stacksjs/path'\n *\n * console.log(buddyPath('config/buddy.json')) // Outputs the absolute path to 'config/buddy.json' within the buddy directory.\n * console.log(buddyPath('config/buddy.json', { relative: true })) // Outputs the relative path to 'config/buddy.json' within the buddy directory.\n * ```\n */\nexport function buddyPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = corePath(`buddy/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `runtime` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the runtime directory.\n * @returns The absolute path to the specified file or directory within the runtime directory.\n * @example\n * ```ts\n * import { runtimePath } from '@stacksjs/path'\n *\n * console.log(runtimePath('runtime-config.json')) // Outputs the absolute path to 'runtime-config.json' within the runtime directory.\n * ```\n */\nexport function runtimePath(path?: string): string {\n return frameworkPath(`buddy/${path || ''}`)\n}\n\n/**\n * Returns the path to the `analytics` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `analytics` directory.\n * @returns The absolute path to the specified file or directory within the `analytics` directory.\n * @example\n * ```ts\n * import { analyticsPath } from '@stacksjs/path'\n *\n * console.log(analyticsPath('data/report.csv')) // Outputs the absolute path to 'data/report.csv' within the `analytics` directory.\n * ```\n */\nexport function analyticsPath(path?: string): string {\n return corePath(`analytics/${path || ''}`)\n}\n\n/**\n * Returns the path to the `arrays` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `arrays` directory.\n * @returns The absolute path to the specified file or directory within the `arrays` directory.\n * @example\n * ```ts\n * import { arraysPath } from '@stacksjs/path'\n *\n * console.log(arraysPath('list.txt')) // Outputs the absolute path to 'list.txt' within the `arrays` directory.\n * ```\n */\nexport function arraysPath(path?: string): string {\n return corePath(`arrays/${path || ''}`)\n}\n\n/**\n * Returns the path to the `app` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the app directory.\n * @returns The absolute path to the specified file or directory within the app directory.\n * @example\n * ```ts\n * import { appPath } from '@stacksjs/path'\n *\n * console.log(appPath('Actions/DummyAction.ts')) // Outputs the absolute path to 'Actions/DummyAction.ts' within the app directory.\n * ```\n */\nexport function appPath(path?: string): string {\n return projectPath(`app/${path || ''}`)\n}\n\n/**\n * Returns the path to the `auth` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the auth directory.\n * @returns The absolute path to the specified file or directory within the auth directory.\n * @example\n * ```ts\n * import { authPath } from '@stacksjs/path'\n *\n * console.log(authPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.\n * ```\n */\nexport function authPath(path?: string): string {\n return corePath(`auth/${path || ''}`)\n}\n\n/**\n * Returns the path to the `auth` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the auth directory.\n * @returns The absolute path to the specified file or directory within the auth directory.\n * @example\n * ```ts\n * import { coreApiPath } from '@stacksjs/path'\n *\n * console.log(coreApiPath('login.ts')) // Outputs the absolute path to 'login.ts' within the auth directory.\n * ```\n */\nexport function coreApiPath(path?: string): string {\n return corePath(`api/${path || ''}`)\n}\n\n/**\n * Returns the path to the build directory. The build directory\n * contains Stacks' build engine & its tooling integrations.\n *\n * @param path string - relative path to the file or directory\n * @returns string - absolute path to the file or directory\n * @example\n * ```ts\n * buildPath('functions.stx')\n * buildPath('components.ts')\n * ```\n */\nexport function buildPath(path?: string): string {\n return corePath(`build/${path || ''}`)\n}\n\n/**\n * Returns the path to the build engine directory.\n *\n * @param path - The relative path to the file or directory within the build engine directory.\n * @returns The absolute path to the specified file or directory within the build engine directory.\n */\nexport function buildEnginePath(path?: string): string {\n return buildPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `libs` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function libsPath(path?: string): string {\n return frameworkPath(`libs/${path || ''}`)\n}\n\n/**\n * Returns the path to the user `libs` directory within the root project directory.\n *\n * @param path - The relative path to the file or directory within the `libs` directory.\n * @returns The absolute path to the specified file or directory within the `libs` directory.\n */\nexport function userLibsPath(path?: 'components' | 'functions' | string): string {\n return resourcesPath(`${path || ''}`)\n}\n\n/**\n * Returns the path to the `entries` directory within the `libs` directory.\n *\n * @param path - The relative path to the file or directory within the `entries` directory.\n * @returns The absolute path to the specified file or directory within the `entries` directory.\n */\nexport function libsEntriesPath(path?: string): string {\n return libsPath(`entries/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cache` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cache directory.\n * @returns The absolute path to the specified file or directory within the cache directory.\n */\nexport function cachePath(path?: string): string {\n return corePath(`cache/${path || ''}`)\n}\n\n/**\n * Returns the path to the `chat` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the chat directory.\n * @returns The absolute path to the specified file or directory within the chat directory.\n */\nexport function chatPath(path?: string): string {\n return corePath(`chat/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cli` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cli directory.\n * @returns The absolute path to the specified file or directory within the cli directory.\n */\nexport function cliPath(path?: string): string {\n return corePath(`cli/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the cloud directory.\n * @returns The absolute path to the specified file or directory within the cloud directory.\n */\nexport function cloudPath(path?: string): string {\n return corePath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `cloud` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the framework cloud directory.\n * @returns The absolute path to the specified file or directory within the framework cloud directory.\n */\nexport function frameworkCloudPath(path?: string): string {\n return frameworkPath(`cloud/${path || ''}`)\n}\n\n/**\n * Returns the path to the `collections` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `collections` directory.\n * @returns The absolute path to the specified file or directory within the `collections` directory.\n */\nexport function collectionsPath(path?: string): string {\n return corePath(`collections/${path || ''}`)\n}\n\n/**\n * Returns the path to the `Commands` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `Commands` directory.\n * @returns The absolute path to the specified file or directory within the `Commands` directory.\n */\nexport function commandsPath(path?: string): string {\n return appPath(`Commands/${path || ''}`)\n}\n\n/**\n * Returns the path to the `components` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `components` directory.\n * @returns The absolute path to the specified file or directory within the `components` directory.\n */\nexport function componentsPath(path?: string): string {\n return userLibsPath(`components/${path || ''}`)\n}\n\n/**\n * Returns the path to the `config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function configPath(path?: string): string {\n return corePath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `core` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the core directory.\n * @returns The absolute path to the specified file or directory within the core directory.\n */\nexport function corePath(path?: string): string {\n return frameworkPath(`core/${path || ''}`)\n}\n\n/**\n * Returns the absolute path to the `custom-elements.json` file within the core directory.\n *\n * @returns The absolute path to the `custom-elements.json` file.\n */\nexport function customElementsDataPath(): string {\n return frameworkPath('core/custom-elements.json')\n}\n\n/**\n * Returns the path to the `database` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the database directory.\n * @returns The absolute path to the specified file or directory within the database directory.\n */\nexport function databasePath(path?: string): string {\n return corePath(`database/${path || ''}`)\n}\n\n/**\n * Returns the path to the `datetime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the datetime directory.\n * @returns The absolute path to the specified file or directory within the datetime directory.\n */\nexport function datetimePath(path?: string): string {\n return corePath(`datetime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `development` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the development directory.\n * @returns The absolute path to the specified file or directory within the development directory.\n */\nexport function developmentPath(path?: string): string {\n return corePath(`development/${path || ''}`)\n}\n\n/**\n * Returns the path to the `desktop` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the desktop directory.\n * @returns The absolute path to the specified file or directory within the desktop directory.\n */\nexport function desktopPath(path?: string): string {\n return corePath(`desktop/${path || ''}`)\n}\n\n/**\n * Returns the path to the `docs` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `docs` directory.\n * @returns The absolute path to the specified file or directory within the `docs` directory.\n */\nexport function docsPath(path?: string): string {\n return corePath(`docs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `domains` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `domains` directory.\n * @returns The absolute path to the specified file or directory within the `domains` directory.\n */\nexport function dnsPath(path?: string): string {\n return corePath(`domains/${path || ''}`)\n}\n\n/**\n * Returns the path to the `email` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the email directory.\n * @returns The absolute path to the specified file or directory within the email directory.\n */\nexport function emailPath(path?: string): string {\n return notificationsPath(`email/${path || ''}`)\n}\n\n/**\n * Returns the path to the `enums` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `enums` directory.\n * @returns The absolute path to the specified file or directory within the `enums` directory.\n */\nexport function enumsPath(path?: string): string {\n return corePath(`enums/${path || ''}`)\n}\n\n/**\n * Returns the path to the `eslint-plugin` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the eslint-plugin directory.\n * @returns The absolute path to the specified file or directory within the eslint-plugin directory.\n */\nexport function eslintPluginPath(path?: string): string {\n return corePath(`eslint-plugin/${path || ''}`)\n}\n\n/**\n * Returns the path to the `error-handling` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the error-handling directory.\n * @returns The absolute path to the specified file or directory within the error-handling directory.\n */\nexport function errorHandlingPath(path?: string): string {\n return corePath(`error-handling/${path || ''}`)\n}\n\n/**\n * Returns the path to the `events` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `events` directory.\n * @returns The absolute path to the specified file or directory within the `events` directory.\n */\nexport function eventsPath(path?: string): string {\n return corePath(`events/${path || ''}`)\n}\n\n/**\n * Returns the path to the `env` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the env directory.\n * @returns The absolute path to the specified file or directory within the env directory.\n */\nexport function coreEnvPath(path?: string): string {\n return corePath(`env/${path || ''}`)\n}\n\n/**\n * Returns the path to the `examples` directory within the framework directory, filtered by type.\n *\n * @param type - The type of examples to filter by ('vue-components' or 'web-components').\n * @returns The absolute path to the specified type of examples within the `examples` directory.\n */\nexport function examplesPath(type?: 'vue-components' | 'web-components'): string {\n return frameworkPath(`examples/${type || ''}`)\n}\n\n/**\n * Returns the path to the `faker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the faker directory.\n * @returns The absolute path to the specified file or directory within the faker directory.\n */\nexport function fakerPath(path?: string): string {\n return corePath(`faker/${path || ''}`)\n}\n\n/**\n * Returns the path to the framework directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the framework directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @param options.cwd - Specifies a custom working directory.\n * @returns The absolute or relative path to the specified file or directory within the framework directory.\n */\nexport function frameworkPath(path?: string, options?: { relative?: boolean, cwd?: string }): string {\n const absolutePath = storagePath(`framework/${path || ''}`)\n\n if (options?.relative)\n return relative(options.cwd || process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `frontend` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the health directory.\n * @returns The absolute path to the specified file or directory within the health directory.\n */\nexport function browserPath(path?: string): string {\n return corePath(`browser/${path || ''}`)\n}\n\n/**\n * Returns the path to the `health` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the health directory.\n * @returns The absolute path to the specified file or directory within the health directory.\n */\nexport function healthPath(path?: string): string {\n return corePath(`health/${path || ''}`)\n}\n\n/**\n * Returns the path to the `functions` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `functions` directory.\n * @returns The absolute path to the specified file or directory within the `functions` directory.\n */\nexport function functionsPath(path?: string): string {\n return userLibsPath(`functions/${path || ''}`)\n}\n\n/**\n * Returns the path to the `git` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the git directory.\n * @returns The absolute path to the specified file or directory within the git directory.\n */\nexport function gitPath(path?: string): string {\n return corePath(`git/${path || ''}`)\n}\n\n/**\n * Returns the path to the `lang` directory, optionally relative to the project directory.\n *\n * @param path - The relative path to the file or directory within the lang directory.\n * @returns The absolute path to the specified file or directory within the lang directory.\n */\nexport function langPath(path?: string): string {\n return resourcesPath(`lang/${path || ''}`)\n}\n\n/**\n * Returns the path to the `layouts` directory within the `resources` directory, optionally relative to the current working directory.\n *\n * @param path - The relative path to the file or directory within the `layouts` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `layouts` directory.\n */\nexport function layoutsPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = resourcesPath(`layouts/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the library entry file, filtered by library type.\n *\n * @param type - The type of library ('vue-components', 'web-components', or 'functions').\n * @returns The absolute path to the specified library entry file.\n */\nexport type LibraryType = 'vue-components' | 'web-components' | 'functions'\nexport function libraryEntryPath(type: LibraryType): string {\n return libsEntriesPath(`${type}.ts`)\n}\n\n/**\n * Returns the path to the `lint` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the lint directory.\n * @returns The absolute path to the specified file or directory within the lint directory.\n */\nexport function lintPath(path?: string): string {\n return corePath(`lint/${path || ''}`)\n}\n\n/**\n * Returns the path to the `listeners` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `listeners` directory.\n * @returns The absolute path to the specified file or directory within the `listeners` directory.\n */\nexport function listenersPath(path?: string): string {\n return appPath(`Listeners/${path || ''}`)\n}\n\n/**\n * Returns the path to the `jobs` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `jobs` directory.\n * @returns The absolute path to the specified file or directory within the `jobs` directory.\n */\nexport function jobsPath(path?: string): string {\n return appPath(`Jobs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logging` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the logging directory.\n * @returns The absolute path to the specified file or directory within the logging directory.\n */\nexport function loggingPath(path?: string): string {\n return corePath(`logging/${path || ''}`)\n}\n\n/**\n * Returns the path to the `logs` directory within the project storage directory.\n *\n * @param path - The relative path to the file or directory within the `logs` directory.\n * @returns The absolute path to the specified file or directory within the `logs` directory.\n */\nexport function logsPath(path?: string): string {\n return storagePath(`logs/${path || ''}`)\n}\n\n/**\n * Returns the path to the `models` directory within the app directory.\n *\n * @param path - The relative path to the file or directory within the `models` directory.\n * @returns The absolute path to the specified file or directory within the `models` directory.\n */\nexport function modelsPath(path?: string): string {\n return appPath(`models/${path || ''}`)\n}\n\n/**\n * Returns the path to the `modules` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `modules` directory.\n * @returns The absolute path to the specified file or directory within the `modules` directory.\n */\nexport function modulesPath(path?: string): string {\n return resourcesPath(`modules/${path || ''}`)\n}\n\n/**\n * Returns the path to the `notifications` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `notifications` directory.\n * @returns The absolute path to the specified file or directory within the `notifications` directory.\n */\nexport function notificationsPath(path?: string): string {\n return corePath(`notifications/${path || ''}`)\n}\n\n/**\n * Returns the path to the `orm` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the orm directory.\n * @returns The absolute path to the specified file or directory within the orm directory.\n */\nexport function ormPath(path?: string): string {\n return corePath(`orm/${path || ''}`)\n}\n\n/**\n * Returns the path to the `objects` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `objects` directory.\n * @returns The absolute path to the specified file or directory within the `objects` directory.\n */\nexport function objectsPath(path?: string): string {\n return corePath(`objects/${path || ''}`)\n}\n\n/**\n * Returns the default path to the onboarding views within the project directory, or a specified path.\n *\n * @param path - The relative path to the file or directory within the project directory. Defaults to 'views/dashboard/onboarding'.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function onboardingPath(path?: string): string {\n return projectPath(`${path || 'views/dashboard/onboarding'}`)\n}\n\n/**\n * Returns the path to the `package.json` file of a specified library type within the framework directory.\n *\n * @param type - The type of the library ('vue-components', 'web-components', or 'functions') for which to return the package.json path.\n * @returns The absolute path to the specified package.json file within the framework directory.\n */\nexport function packageJsonPath(type: LibraryType): string {\n if (type === 'vue-components')\n return frameworkPath('libs/components/vue/package.json')\n if (type === 'web-components')\n return frameworkPath('libs/components/web/package.json')\n\n return frameworkPath(`libs/${type}/package.json`)\n}\n\n/**\n * Returns the path to the `views` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `views` directory.\n * @returns The absolute path to the specified file or directory within the `views` directory.\n */\nexport function viewsPath(path?: string): string {\n return resourcesPath(`views/${path || ''}`)\n}\n\n/**\n * Returns the path to the `path` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the path directory.\n * @returns The absolute path to the specified file or directory within the path directory.\n */\nexport function pathPath(path?: string): string {\n return corePath(`path/${path || ''}`)\n}\n\n/**\n * Returns the path to the `payments` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `payments` directory.\n * @returns The absolute path to the specified file or directory within the `payments` directory.\n */\nexport function paymentsPath(path?: string): string {\n return corePath(`payments/${path || ''}`)\n}\n\n/**\n * Returns the project path, resolving from the current working directory and moving up until the storage directory is no longer part of the path.\n *\n * @param filePath - The relative path to append to the project path. Defaults to an empty string.\n * @returns The absolute path to the specified file or directory within the project directory.\n */\nexport function projectPath(filePath = '', options?: { relative: boolean }): string {\n let path = process.cwd()\n\n while (path.includes('storage')) path = resolve(path, '..')\n\n const finalPath = resolve(path, filePath)\n\n // If the `relative` option is true, return the path relative to the current working directory\n if (options?.relative)\n return relative(process.cwd(), finalPath)\n\n return finalPath\n}\n\n/**\n * Finds and returns the absolute path of a specified project by name.\n *\n * @param project - The name of the project to find.\n * @returns The absolute path to the specified project.\n * @throws Error if the project with the specified name cannot be found.\n */\nexport async function findProjectPath(project: string): Promise<string> {\n const projectList = await runCommandSync('buddy projects:list --quiet')\n log.debug(`ProjectList in findProjectPath ${projectList}`)\n\n // get the list of all Stacks project paths (on the system)\n const projects = projectList\n .split('\\n')\n .filter((line: string) => line.startsWith(' - '))\n .map((line: string) => line.trim().substring(4))\n\n log.debug(`Projects in findProjectPath ${projects}`)\n\n // since we are targeting a specific project, find its path\n const projectPath = projects.find((proj: string) => proj.includes(project))\n\n if (!projectPath)\n throw new Error(`Could not find project with name: ${project}`)\n\n return projectPath.startsWith('/') ? projectPath : `/${projectPath}`\n}\n\n/**\n * Returns the path to the `config` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the config directory.\n * @returns The absolute path to the specified file or directory within the config directory.\n */\nexport function projectConfigPath(path?: string): string {\n return projectPath(`config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function storagePath(path?: string): string {\n return projectPath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `public` directory within the project directory.\n *\n * @param path - The relative path to the file or directory within the public directory.\n * @returns The absolute path to the specified file or directory within the public directory.\n */\nexport function publicPath(path?: string): string {\n return projectPath(`public/${path || ''}`)\n}\n\n/**\n * Returns the path to the `push` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the push directory.\n * @returns The absolute path to the specified file or directory within the push directory.\n */\nexport function pushPath(path?: string): string {\n return notificationsPath(`push/${path || ''}`)\n}\n\n/**\n * Returns the path to the `query-builder` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the query-builder directory.\n * @returns The absolute path to the specified file or directory within the query-builder directory.\n */\nexport function queryBuilderPath(path?: string): string {\n return corePath(`query-builder/${path || ''}`)\n}\n\n/**\n * Returns the path to the `queue` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the queue directory.\n * @returns The absolute path to the specified file or directory within the queue directory.\n */\nexport function queuePath(path?: string): string {\n return corePath(`queue/${path || ''}`)\n}\n\n/**\n * Returns the path to the `realtime` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the realtime directory.\n * @returns The absolute path to the specified file or directory within the realtime directory.\n */\nexport function realtimePath(path?: string): string {\n return corePath(`realtime/${path || ''}`)\n}\n\n/**\n * Returns the path to the `resources` directory within the project storage directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `resources` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `resources` directory.\n */\nexport function resourcesPath(path?: string, options?: { relative?: boolean }): string {\n if (options?.relative) {\n const absolutePath = projectPath(`resources/${path || ''}`)\n return relative(process.cwd(), absolutePath)\n }\n\n return projectPath(`resources/${path || ''}`)\n}\n\n/**\n * Returns the path to the `repl` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the repl directory.\n * @returns The absolute path to the specified file or directory within the repl directory.\n */\nexport function replPath(path?: string): string {\n return corePath(`repl/${path || ''}`)\n}\n\n/**\n * Returns the path to the `router` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the router directory.\n * @returns The absolute path to the specified file or directory within the router directory.\n */\nexport function routerPath(path?: string): string {\n return corePath(`router/${path || ''}`)\n}\n\n/**\n * Returns the path to the `routes` directory within the `resources` directory, with an option for relative paths.\n *\n * @param path - The relative path to the file or directory within the `routes` directory.\n * @param options - Optional. An object containing configuration settings.\n * @param options.relative - If true, returns the path relative to the current working directory.\n * @returns The absolute or relative path to the specified file or directory within the `routes` directory.\n */\nexport function routesPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = resourcesPath(`routes/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return projectPath(`routes/${path || ''}`)\n}\n\n/**\n * Returns the path to the `search-engine` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the search-engine directory.\n * @returns The absolute path to the specified file or directory within the search-engine directory.\n */\nexport function searchEnginePath(path?: string): string {\n return corePath(`search-engine/${path || ''}`)\n}\n\n/**\n * Returns the path to the `settings` directory within the project directory, defaulting to the views/dashboard/settings directory.\n *\n * @param path - The relative path to the file or directory within the `settings` directory.\n * @returns The absolute path to the specified file or directory within the `settings` directory.\n */\nexport function settingsPath(path?: string): string {\n return projectPath(`${path || 'views/dashboard/settings'}`)\n}\n\n/**\n * Returns the path to the `scripts` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `scripts` directory.\n * @returns The absolute path to the specified file or directory within the `scripts` directory.\n */\nexport function scriptsPath(path?: string): string {\n return frameworkPath(`scripts/${path || ''}`)\n}\n\n/**\n * Returns the path to the `scheduler` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the scheduler directory.\n * @returns The absolute path to the specified file or directory within the scheduler directory.\n */\nexport function schedulerPath(path?: string): string {\n return corePath(`scheduler/${path || ''}`)\n}\n\n/**\n * Returns the path to the `slug` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the slug directory.\n * @returns The absolute path to the specified file or directory within the slug directory.\n */\nexport function slugPath(path?: string): string {\n return corePath(`slug/${path || ''}`)\n}\n\n/**\n * Returns the path to the `sms` directory within the `notifications` directory.\n *\n * @param path - The relative path to the file or directory within the `sms` directory.\n * @returns The absolute path to the specified file or directory within the `sms` directory.\n */\nexport function smsPath(path?: string): string {\n return notificationsPath(`sms/${path || ''}`)\n}\n\n/**\n * Returns the path to the `storage` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the storage directory.\n * @returns The absolute path to the specified file or directory within the storage directory.\n */\nexport function coreStoragePath(path?: string): string {\n return corePath(`storage/${path || ''}`)\n}\n\n/**\n * Returns the path to the `stores` directory within the `resources` directory.\n *\n * @param path - The relative path to the file or directory within the `stores` directory.\n * @returns The absolute path to the specified file or directory within the `stores` directory.\n */\nexport function storesPath(path?: string): string {\n return resourcesPath(`stores/${path || ''}`)\n}\n\n/**\n * Returns the path to the `security` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the security directory.\n * @returns The absolute path to the specified file or directory within the security directory.\n */\nexport function securityPath(path?: string): string {\n return corePath(`security/${path || ''}`)\n}\n\n/**\n * Returns the path to the `server` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the server directory.\n * @returns The absolute path to the specified file or directory within the server directory.\n */\nexport function serverPath(path?: string): string {\n return corePath(`server/${path || ''}`)\n}\n\nexport function userServerPath(path?: string): string {\n return frameworkPath(`server/${path || ''}`)\n}\n\n/**\n * Returns the path to the `serverless` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `serverless` directory.\n * @returns The absolute path to the specified file or directory within the `serverless` directory.\n */\nexport function serverlessPath(path?: string): string {\n return corePath(`serverless/${path || ''}`)\n}\n\n/**\n * Returns the path to the specified directory or file within the framework's `src` directory.\n *\n * @param path - The relative path to the file or directory within the framework's `src` directory.\n * @returns The absolute path to the specified file or directory within the framework's `src` directory.\n */\nexport function stacksPath(path?: string): string {\n return frameworkPath(`src/${path || ''}`)\n}\n\n/**\n * Returns the path to the `shell` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the shell directory.\n * @returns The absolute path to the specified file or directory within the shell directory.\n */\nexport function shellPath(path?: string): string {\n return corePath(`shell/${path || ''}`)\n}\n\n/**\n * Returns the path to the `strings` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `strings` directory.\n * @returns The absolute path to the specified file or directory within the `strings` directory.\n */\nexport function stringsPath(path?: string): string {\n return corePath(`strings/${path || ''}`)\n}\n\n/**\n * Returns the path to the `testing` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the testing directory.\n * @returns The absolute path to the specified file or directory within the testing directory.\n */\nexport function testingPath(path?: string): string {\n return corePath(`testing/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tinker` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the tinker directory.\n * @returns The absolute path to the specified file or directory within the tinker directory.\n */\nexport function tinkerPath(path?: string): string {\n return corePath(`tinker/${path || ''}`)\n}\n\n/**\n * Returns the path to the `tests` directory within the framework directory.\n *\n * @param path - The relative path to the file or directory within the `tests` directory.\n * @returns The absolute path to the specified file or directory within the `tests` directory.\n */\nexport function testsPath(path?: string): string {\n return frameworkPath(`tests/${path || ''}`)\n}\n\n/**\n * Returns the path to the `types` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `types` directory.\n * @returns The absolute path to the specified file or directory within the `types` directory.\n */\nexport function typesPath(path?: string): string {\n return corePath(`types/${path || ''}`)\n}\n\n/**\n * Returns the path to the `ui` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the ui directory.\n * @returns The absolute path to the specified file or directory within the ui directory.\n */\nexport function uiPath(path?: string, options?: { relative?: boolean }): string {\n const absolutePath = corePath(`ui/${path || ''}`)\n\n if (options?.relative)\n return relative(process.cwd(), absolutePath)\n\n return absolutePath\n}\n\n/**\n * Returns the path to the `utils` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the `utils` directory.\n * @returns The absolute path to the specified file or directory within the `utils` directory.\n */\nexport function utilsPath(path?: string): string {\n return corePath(`utils/${path || ''}`)\n}\n\n/**\n * Returns the path to the `validation` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the validation directory.\n * @returns The absolute path to the specified file or directory within the validation directory.\n */\nexport function validationPath(path?: string): string {\n return corePath(`validation/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-config` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite-config directory.\n * @returns The absolute path to the specified file or directory within the vite-config directory.\n */\nexport function viteConfigPath(path?: string): string {\n return corePath(`vite-config/${path || ''}`)\n}\n\n/**\n * Returns the path to the `vite-plugin` directory within the core directory.\n *\n * @param path - The relative path to the file or directory within the vite directory.\n * @returns The absolute path to the specified file or directory within the vite directory.\n */\nexport function vitePluginPath(path?: string): string {\n return corePath(`vite-plugin/${path || ''}`)\n}\n\n/**\n * Returns the path to the `x-ray` directory within the `stacks` directory of the framework.\n *\n * @param path - The relative path to the file or directory within the x-ray directory.\n * @returns The absolute path to the specified file or directory within the x-ray directory.\n */\nexport function xRayPath(path?: string): string {\n return frameworkPath(`stacks/x-ray/${path || ''}`)\n}\n\n/**\n * Returns the path to the home directory, optionally appending a given path.\n *\n * @param path - The relative path to append to the home directory path.\n * @returns The absolute path to the specified file or directory within the home directory.\n */\nexport function homeDir(path?: string): string {\n return os.homedir() + (path ? (path.startsWith('/') ? '' : '/') + path : '~')\n}\n\nexport interface Path {\n actionsPath: (path?: string) => string\n userActionsPath: (path?: string) => string\n builtUserActionsPath: (path?: string, option?: { relative: boolean }) => string\n userComponentsPath: (path?: string) => string\n userViewsPath: (path?: string) => string\n userFunctionsPath: (path?: string) => string\n aiPath: (path?: string) => string\n assetsPath: (path?: string) => string\n relativeActionsPath: (path?: string) => string\n aliasPath: (path?: string) => string\n analyticsPath: (path?: string) => string\n arraysPath: (path?: string) => string\n appPath: (path?: string) => string\n authPath: (path?: string) => string\n coreApiPath: (path?: string) => string\n buddyPath: (path?: string) => string\n buildEnginePath: (path?: string) => string\n libsEntriesPath: (path?: string) => string\n buildPath: (path?: string) => string\n cachePath: (path?: string) => string\n chatPath: (path?: string) => string\n cliPath: (path?: string) => string\n cloudPath: (path?: string) => string\n frameworkCloudPath: (path?: string) => string\n collectionsPath: (path?: string) => string\n commandsPath: (path?: string) => string\n componentsPath: (path?: string) => string\n configPath: (path?: string) => string\n projectConfigPath: (path?: string) => string\n corePath: (path?: string) => string\n customElementsDataPath: (path?: string) => string\n databasePath: (path?: string) => string\n datetimePath: (path?: string) => string\n developmentPath: (path?: string) => string\n desktopPath: (path?: string) => string\n docsPath: (path?: string) => string\n dnsPath: (path?: string) => string\n emailPath: (path?: string) => string\n enumsPath: (path?: string) => string\n eslintPluginPath: (path?: string) => string\n errorHandlingPath: (path?: string) => string\n eventsPath: (path?: string) => string\n coreEnvPath: (path?: string) => string\n healthPath: (path?: string) => string\n examplesPath: (type?: 'vue-components' | 'web-components') => string\n fakerPath: (path?: string) => string\n frameworkPath: (path?: string) => string\n browserPath: (path?: string) => string\n storagePath: (path?: string) => string\n functionsPath: (path?: string) => string\n gitPath: (path?: string) => string\n langPath: (path?: string) => string\n layoutsPath: (path?: string, options?: { relative?: boolean }) => string\n libsPath: (path?: string) => string\n userLibsPath: (path?: string) => string\n libraryEntryPath: (type: LibraryType) => string\n lintPath: (path?: string) => string\n listenersPath: (path?: string) => string\n loggingPath: (path?: string) => string\n logsPath: (path?: string) => string\n jobsPath: (path?: string) => string\n modulesPath: (path?: string) => string\n ormPath: (path?: string) => string\n objectsPath: (path?: string) => string\n onboardingPath: (path?: string) => string\n notificationsPath: (path?: string) => string\n packageJsonPath: (type: LibraryType) => string\n viewsPath: (path?: string) => string\n pathPath: (path?: string) => string\n paymentsPath: (path?: string) => string\n projectPath: (path?: string) => string\n findProjectPath: (project: string) => Promise<string>\n coreStoragePath: (path?: string) => string\n publicPath: (path?: string) => string\n pushPath: (path?: string) => string\n queryBuilderPath: (path?: string) => string\n queuePath: (path?: string) => string\n realtimePath: (path?: string) => string\n resourcesPath: (path?: string) => string\n replPath: (path?: string) => string\n routerPath: (path?: string) => string\n routesPath: (path?: string) => string\n runtimePath: (path?: string) => string\n searchEnginePath: (path?: string) => string\n schedulerPath: (path?: string) => string\n settingsPath: (path?: string) => string\n smsPath: (path?: string) => string\n slugPath: (path?: string) => string\n scriptsPath: (path?: string) => string\n securityPath: (path?: string) => string\n serverPath: (path?: string) => string\n userServerPath: (path?: string) => string\n serverlessPath: (path?: string) => string\n stacksPath: (path?: string) => string\n stringsPath: (path?: string) => string\n shellPath: (path?: string) => string\n storesPath: (path?: string) => string\n testingPath: (path?: string) => string\n testsPath: (path?: string) => string\n tinkerPath: (path?: string) => string\n typesPath: (path?: string) => string\n uiPath: (path?: string, options?: { relative?: boolean }) => string\n userDatabasePath: (path?: string) => string\n userMigrationsPath: (path?: string) => string\n userEventsPath: (path?: string) => string\n userJobsPath: (path?: string) => string\n userListenersPath: (path?: string) => string\n userMiddlewarePath: (path?: string) => string\n userModelsPath: (path?: string) => string\n userNotificationsPath: (path?: string) => string\n utilsPath: (path?: string) => string\n validationPath: (path?: string) => string\n viteConfigPath: (path?: string) => string\n vitePluginPath: (path?: string) => string\n xRayPath: (path?: string) => string\n homeDir: (path?: string) => string\n basename: (path: string) => string\n delimiter: () => ';' | ':'\n dirname: (path: string) => string\n extname: (path: string) => string\n isAbsolute: (path: string) => boolean\n join: (...paths: string[]) => string\n normalize: (path: string) => string\n relative: (from: string, to: string) => string\n resolve: (...paths: string[]) => string\n parse: (path: string) => ParsedPath\n sep: () => '/' | '\\\\'\n toNamespacedPath: (path: string) => string\n}\n\nexport const path: Path = {\n actionsPath,\n userActionsPath,\n builtUserActionsPath,\n userComponentsPath,\n userViewsPath,\n userFunctionsPath,\n aiPath,\n assetsPath,\n relativeActionsPath,\n aliasPath,\n analyticsPath,\n arraysPath,\n appPath,\n authPath,\n coreApiPath,\n buddyPath,\n buildEnginePath,\n libsEntriesPath,\n buildPath,\n cachePath,\n chatPath,\n cliPath,\n cloudPath,\n frameworkCloudPath,\n collectionsPath,\n commandsPath,\n componentsPath,\n configPath,\n projectConfigPath,\n corePath,\n customElementsDataPath,\n databasePath,\n datetimePath,\n developmentPath,\n desktopPath,\n docsPath,\n dnsPath,\n emailPath,\n enumsPath,\n eslintPluginPath,\n errorHandlingPath,\n eventsPath,\n coreEnvPath,\n healthPath,\n examplesPath,\n fakerPath,\n frameworkPath,\n browserPath,\n storagePath,\n functionsPath,\n gitPath,\n langPath,\n layoutsPath,\n libsPath,\n userLibsPath,\n libraryEntryPath,\n lintPath,\n listenersPath,\n loggingPath,\n logsPath,\n jobsPath,\n modulesPath,\n ormPath,\n objectsPath,\n onboardingPath,\n notificationsPath,\n packageJsonPath,\n viewsPath,\n pathPath,\n paymentsPath,\n projectPath,\n findProjectPath,\n coreStoragePath,\n publicPath,\n pushPath,\n queryBuilderPath,\n queuePath,\n realtimePath,\n resourcesPath,\n replPath,\n routerPath,\n routesPath,\n runtimePath,\n searchEnginePath,\n schedulerPath,\n settingsPath,\n smsPath,\n slugPath,\n scriptsPath,\n securityPath,\n serverPath,\n userServerPath,\n serverlessPath,\n stacksPath,\n stringsPath,\n shellPath,\n storesPath,\n testingPath,\n testsPath,\n tinkerPath,\n typesPath,\n uiPath,\n userDatabasePath,\n userMigrationsPath,\n userEventsPath,\n userJobsPath,\n userListenersPath,\n userMiddlewarePath,\n userModelsPath,\n userNotificationsPath,\n utilsPath,\n validationPath,\n viteConfigPath,\n vitePluginPath,\n xRayPath,\n homeDir,\n\n // path utils\n basename,\n delimiter: () => delimiter,\n dirname,\n extname,\n isAbsolute,\n join,\n normalize,\n relative,\n resolve,\n parse,\n sep: () => sep,\n toNamespacedPath,\n}\n\nexport { basename, delimiter, dirname, extname, isAbsolute, join, normalize, relative, resolve, sep, toNamespacedPath }\n",
|
|
130
|
-
"import { EventEmitter } from 'events';\n\nfunction toArr(any) {\n\treturn any == null ? [] : Array.isArray(any) ? any : [any];\n}\n\nfunction toVal(out, key, val, opts) {\n\tvar x, old=out[key], nxt=(\n\t\t!!~opts.string.indexOf(key) ? (val == null || val === true ? '' : String(val))\n\t\t: typeof val === 'boolean' ? val\n\t\t: !!~opts.boolean.indexOf(key) ? (val === 'false' ? false : val === 'true' || (out._.push((x = +val,x * 0 === 0) ? x : val),!!val))\n\t\t: (x = +val,x * 0 === 0) ? x : val\n\t);\n\tout[key] = old == null ? nxt : (Array.isArray(old) ? old.concat(nxt) : [old, nxt]);\n}\n\nfunction mri2 (args, opts) {\n\targs = args || [];\n\topts = opts || {};\n\n\tvar k, arr, arg, name, val, out={ _:[] };\n\tvar i=0, j=0, idx=0, len=args.length;\n\n\tconst alibi = opts.alias !== void 0;\n\tconst strict = opts.unknown !== void 0;\n\tconst defaults = opts.default !== void 0;\n\n\topts.alias = opts.alias || {};\n\topts.string = toArr(opts.string);\n\topts.boolean = toArr(opts.boolean);\n\n\tif (alibi) {\n\t\tfor (k in opts.alias) {\n\t\t\tarr = opts.alias[k] = toArr(opts.alias[k]);\n\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t(opts.alias[arr[i]] = arr.concat(k)).splice(i, 1);\n\t\t\t}\n\t\t}\n\t}\n\n\tfor (i=opts.boolean.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.boolean[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.boolean.push(arr[j]);\n\t}\n\n\tfor (i=opts.string.length; i-- > 0;) {\n\t\tarr = opts.alias[opts.string[i]] || [];\n\t\tfor (j=arr.length; j-- > 0;) opts.string.push(arr[j]);\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tname = typeof opts.default[k];\n\t\t\tarr = opts.alias[k] = opts.alias[k] || [];\n\t\t\tif (opts[name] !== void 0) {\n\t\t\t\topts[name].push(k);\n\t\t\t\tfor (i=0; i < arr.length; i++) {\n\t\t\t\t\topts[name].push(arr[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tconst keys = strict ? Object.keys(opts.alias) : [];\n\n\tfor (i=0; i < len; i++) {\n\t\targ = args[i];\n\n\t\tif (arg === '--') {\n\t\t\tout._ = out._.concat(args.slice(++i));\n\t\t\tbreak;\n\t\t}\n\n\t\tfor (j=0; j < arg.length; j++) {\n\t\t\tif (arg.charCodeAt(j) !== 45) break; // \"-\"\n\t\t}\n\n\t\tif (j === 0) {\n\t\t\tout._.push(arg);\n\t\t} else if (arg.substring(j, j + 3) === 'no-') {\n\t\t\tname = arg.substring(j + 3);\n\t\t\tif (strict && !~keys.indexOf(name)) {\n\t\t\t\treturn opts.unknown(arg);\n\t\t\t}\n\t\t\tout[name] = false;\n\t\t} else {\n\t\t\tfor (idx=j+1; idx < arg.length; idx++) {\n\t\t\t\tif (arg.charCodeAt(idx) === 61) break; // \"=\"\n\t\t\t}\n\n\t\t\tname = arg.substring(j, idx);\n\t\t\tval = arg.substring(++idx) || (i+1 === len || (''+args[i+1]).charCodeAt(0) === 45 || args[++i]);\n\t\t\tarr = (j === 2 ? [name] : name);\n\n\t\t\tfor (idx=0; idx < arr.length; idx++) {\n\t\t\t\tname = arr[idx];\n\t\t\t\tif (strict && !~keys.indexOf(name)) return opts.unknown('-'.repeat(j) + name);\n\t\t\t\ttoVal(out, name, (idx + 1 < arr.length) || val, opts);\n\t\t\t}\n\t\t}\n\t}\n\n\tif (defaults) {\n\t\tfor (k in opts.default) {\n\t\t\tif (out[k] === void 0) {\n\t\t\t\tout[k] = opts.default[k];\n\t\t\t}\n\t\t}\n\t}\n\n\tif (alibi) {\n\t\tfor (k in out) {\n\t\t\tarr = opts.alias[k] || [];\n\t\t\twhile (arr.length > 0) {\n\t\t\t\tout[arr.shift()] = out[k];\n\t\t\t}\n\t\t}\n\t}\n\n\treturn out;\n}\n\nconst removeBrackets = (v) => v.replace(/[<[].+/, \"\").trim();\nconst findAllBrackets = (v) => {\n const ANGLED_BRACKET_RE_GLOBAL = /<([^>]+)>/g;\n const SQUARE_BRACKET_RE_GLOBAL = /\\[([^\\]]+)\\]/g;\n const res = [];\n const parse = (match) => {\n let variadic = false;\n let value = match[1];\n if (value.startsWith(\"...\")) {\n value = value.slice(3);\n variadic = true;\n }\n return {\n required: match[0].startsWith(\"<\"),\n value,\n variadic\n };\n };\n let angledMatch;\n while (angledMatch = ANGLED_BRACKET_RE_GLOBAL.exec(v)) {\n res.push(parse(angledMatch));\n }\n let squareMatch;\n while (squareMatch = SQUARE_BRACKET_RE_GLOBAL.exec(v)) {\n res.push(parse(squareMatch));\n }\n return res;\n};\nconst getMriOptions = (options) => {\n const result = {alias: {}, boolean: []};\n for (const [index, option] of options.entries()) {\n if (option.names.length > 1) {\n result.alias[option.names[0]] = option.names.slice(1);\n }\n if (option.isBoolean) {\n if (option.negated) {\n const hasStringTypeOption = options.some((o, i) => {\n return i !== index && o.names.some((name) => option.names.includes(name)) && typeof o.required === \"boolean\";\n });\n if (!hasStringTypeOption) {\n result.boolean.push(option.names[0]);\n }\n } else {\n result.boolean.push(option.names[0]);\n }\n }\n }\n return result;\n};\nconst findLongest = (arr) => {\n return arr.sort((a, b) => {\n return a.length > b.length ? -1 : 1;\n })[0];\n};\nconst padRight = (str, length) => {\n return str.length >= length ? str : `${str}${\" \".repeat(length - str.length)}`;\n};\nconst camelcase = (input) => {\n return input.replace(/([a-z])-([a-z])/g, (_, p1, p2) => {\n return p1 + p2.toUpperCase();\n });\n};\nconst setDotProp = (obj, keys, val) => {\n let i = 0;\n let length = keys.length;\n let t = obj;\n let x;\n for (; i < length; ++i) {\n x = t[keys[i]];\n t = t[keys[i]] = i === length - 1 ? val : x != null ? x : !!~keys[i + 1].indexOf(\".\") || !(+keys[i + 1] > -1) ? {} : [];\n }\n};\nconst setByType = (obj, transforms) => {\n for (const key of Object.keys(transforms)) {\n const transform = transforms[key];\n if (transform.shouldTransform) {\n obj[key] = Array.prototype.concat.call([], obj[key]);\n if (typeof transform.transformFunction === \"function\") {\n obj[key] = obj[key].map(transform.transformFunction);\n }\n }\n }\n};\nconst getFileName = (input) => {\n const m = /([^\\\\\\/]+)$/.exec(input);\n return m ? m[1] : \"\";\n};\nconst camelcaseOptionName = (name) => {\n return name.split(\".\").map((v, i) => {\n return i === 0 ? camelcase(v) : v;\n }).join(\".\");\n};\nclass CACError extends Error {\n constructor(message) {\n super(message);\n this.name = this.constructor.name;\n if (typeof Error.captureStackTrace === \"function\") {\n Error.captureStackTrace(this, this.constructor);\n } else {\n this.stack = new Error(message).stack;\n }\n }\n}\n\nclass Option {\n constructor(rawName, description, config) {\n this.rawName = rawName;\n this.description = description;\n this.config = Object.assign({}, config);\n rawName = rawName.replace(/\\.\\*/g, \"\");\n this.negated = false;\n this.names = removeBrackets(rawName).split(\",\").map((v) => {\n let name = v.trim().replace(/^-{1,2}/, \"\");\n if (name.startsWith(\"no-\")) {\n this.negated = true;\n name = name.replace(/^no-/, \"\");\n }\n return camelcaseOptionName(name);\n }).sort((a, b) => a.length > b.length ? 1 : -1);\n this.name = this.names[this.names.length - 1];\n if (this.negated && this.config.default == null) {\n this.config.default = true;\n }\n if (rawName.includes(\"<\")) {\n this.required = true;\n } else if (rawName.includes(\"[\")) {\n this.required = false;\n } else {\n this.isBoolean = true;\n }\n }\n}\n\nconst processArgs = process.argv;\nconst platformInfo = `${process.platform}-${process.arch} node-${process.version}`;\n\nclass Command {\n constructor(rawName, description, config = {}, cli) {\n this.rawName = rawName;\n this.description = description;\n this.config = config;\n this.cli = cli;\n this.options = [];\n this.aliasNames = [];\n this.name = removeBrackets(rawName);\n this.args = findAllBrackets(rawName);\n this.examples = [];\n }\n usage(text) {\n this.usageText = text;\n return this;\n }\n allowUnknownOptions() {\n this.config.allowUnknownOptions = true;\n return this;\n }\n ignoreOptionDefaultValue() {\n this.config.ignoreOptionDefaultValue = true;\n return this;\n }\n version(version, customFlags = \"-v, --version\") {\n this.versionNumber = version;\n this.option(customFlags, \"Display version number\");\n return this;\n }\n example(example) {\n this.examples.push(example);\n return this;\n }\n option(rawName, description, config) {\n const option = new Option(rawName, description, config);\n this.options.push(option);\n return this;\n }\n alias(name) {\n this.aliasNames.push(name);\n return this;\n }\n action(callback) {\n this.commandAction = callback;\n return this;\n }\n isMatched(name) {\n return this.name === name || this.aliasNames.includes(name);\n }\n get isDefaultCommand() {\n return this.name === \"\" || this.aliasNames.includes(\"!\");\n }\n get isGlobalCommand() {\n return this instanceof GlobalCommand;\n }\n hasOption(name) {\n name = name.split(\".\")[0];\n return this.options.find((option) => {\n return option.names.includes(name);\n });\n }\n outputHelp() {\n const {name, commands} = this.cli;\n const {\n versionNumber,\n options: globalOptions,\n helpCallback\n } = this.cli.globalCommand;\n let sections = [\n {\n body: `${name}${versionNumber ? `/${versionNumber}` : \"\"}`\n }\n ];\n sections.push({\n title: \"Usage\",\n body: ` $ ${name} ${this.usageText || this.rawName}`\n });\n const showCommands = (this.isGlobalCommand || this.isDefaultCommand) && commands.length > 0;\n if (showCommands) {\n const longestCommandName = findLongest(commands.map((command) => command.rawName));\n sections.push({\n title: \"Commands\",\n body: commands.map((command) => {\n return ` ${padRight(command.rawName, longestCommandName.length)} ${command.description}`;\n }).join(\"\\n\")\n });\n sections.push({\n title: `For more info, run any command with the \\`--help\\` flag`,\n body: commands.map((command) => ` $ ${name}${command.name === \"\" ? \"\" : ` ${command.name}`} --help`).join(\"\\n\")\n });\n }\n let options = this.isGlobalCommand ? globalOptions : [...this.options, ...globalOptions || []];\n if (!this.isGlobalCommand && !this.isDefaultCommand) {\n options = options.filter((option) => option.name !== \"version\");\n }\n if (options.length > 0) {\n const longestOptionName = findLongest(options.map((option) => option.rawName));\n sections.push({\n title: \"Options\",\n body: options.map((option) => {\n return ` ${padRight(option.rawName, longestOptionName.length)} ${option.description} ${option.config.default === void 0 ? \"\" : `(default: ${option.config.default})`}`;\n }).join(\"\\n\")\n });\n }\n if (this.examples.length > 0) {\n sections.push({\n title: \"Examples\",\n body: this.examples.map((example) => {\n if (typeof example === \"function\") {\n return example(name);\n }\n return example;\n }).join(\"\\n\")\n });\n }\n if (helpCallback) {\n sections = helpCallback(sections) || sections;\n }\n console.log(sections.map((section) => {\n return section.title ? `${section.title}:\n${section.body}` : section.body;\n }).join(\"\\n\\n\"));\n }\n outputVersion() {\n const {name} = this.cli;\n const {versionNumber} = this.cli.globalCommand;\n if (versionNumber) {\n console.log(`${name}/${versionNumber} ${platformInfo}`);\n }\n }\n checkRequiredArgs() {\n const minimalArgsCount = this.args.filter((arg) => arg.required).length;\n if (this.cli.args.length < minimalArgsCount) {\n throw new CACError(`missing required args for command \\`${this.rawName}\\``);\n }\n }\n checkUnknownOptions() {\n const {options, globalCommand} = this.cli;\n if (!this.config.allowUnknownOptions) {\n for (const name of Object.keys(options)) {\n if (name !== \"--\" && !this.hasOption(name) && !globalCommand.hasOption(name)) {\n throw new CACError(`Unknown option \\`${name.length > 1 ? `--${name}` : `-${name}`}\\``);\n }\n }\n }\n }\n checkOptionValue() {\n const {options: parsedOptions, globalCommand} = this.cli;\n const options = [...globalCommand.options, ...this.options];\n for (const option of options) {\n const value = parsedOptions[option.name.split(\".\")[0]];\n if (option.required) {\n const hasNegated = options.some((o) => o.negated && o.names.includes(option.name));\n if (value === true || value === false && !hasNegated) {\n throw new CACError(`option \\`${option.rawName}\\` value is missing`);\n }\n }\n }\n }\n}\nclass GlobalCommand extends Command {\n constructor(cli) {\n super(\"@@global@@\", \"\", {}, cli);\n }\n}\n\nvar __assign = Object.assign;\nclass CAC extends EventEmitter {\n constructor(name = \"\") {\n super();\n this.name = name;\n this.commands = [];\n this.rawArgs = [];\n this.args = [];\n this.options = {};\n this.globalCommand = new GlobalCommand(this);\n this.globalCommand.usage(\"<command> [options]\");\n }\n usage(text) {\n this.globalCommand.usage(text);\n return this;\n }\n command(rawName, description, config) {\n const command = new Command(rawName, description || \"\", config, this);\n command.globalCommand = this.globalCommand;\n this.commands.push(command);\n return command;\n }\n option(rawName, description, config) {\n this.globalCommand.option(rawName, description, config);\n return this;\n }\n help(callback) {\n this.globalCommand.option(\"-h, --help\", \"Display this message\");\n this.globalCommand.helpCallback = callback;\n this.showHelpOnExit = true;\n return this;\n }\n version(version, customFlags = \"-v, --version\") {\n this.globalCommand.version(version, customFlags);\n this.showVersionOnExit = true;\n return this;\n }\n example(example) {\n this.globalCommand.example(example);\n return this;\n }\n outputHelp() {\n if (this.matchedCommand) {\n this.matchedCommand.outputHelp();\n } else {\n this.globalCommand.outputHelp();\n }\n }\n outputVersion() {\n this.globalCommand.outputVersion();\n }\n setParsedInfo({args, options}, matchedCommand, matchedCommandName) {\n this.args = args;\n this.options = options;\n if (matchedCommand) {\n this.matchedCommand = matchedCommand;\n }\n if (matchedCommandName) {\n this.matchedCommandName = matchedCommandName;\n }\n return this;\n }\n unsetMatchedCommand() {\n this.matchedCommand = void 0;\n this.matchedCommandName = void 0;\n }\n parse(argv = processArgs, {\n run = true\n } = {}) {\n this.rawArgs = argv;\n if (!this.name) {\n this.name = argv[1] ? getFileName(argv[1]) : \"cli\";\n }\n let shouldParse = true;\n for (const command of this.commands) {\n const parsed = this.mri(argv.slice(2), command);\n const commandName = parsed.args[0];\n if (command.isMatched(commandName)) {\n shouldParse = false;\n const parsedInfo = __assign(__assign({}, parsed), {\n args: parsed.args.slice(1)\n });\n this.setParsedInfo(parsedInfo, command, commandName);\n this.emit(`command:${commandName}`, command);\n }\n }\n if (shouldParse) {\n for (const command of this.commands) {\n if (command.name === \"\") {\n shouldParse = false;\n const parsed = this.mri(argv.slice(2), command);\n this.setParsedInfo(parsed, command);\n this.emit(`command:!`, command);\n }\n }\n }\n if (shouldParse) {\n const parsed = this.mri(argv.slice(2));\n this.setParsedInfo(parsed);\n }\n if (this.options.help && this.showHelpOnExit) {\n this.outputHelp();\n run = false;\n this.unsetMatchedCommand();\n }\n if (this.options.version && this.showVersionOnExit && this.matchedCommandName == null) {\n this.outputVersion();\n run = false;\n this.unsetMatchedCommand();\n }\n const parsedArgv = {args: this.args, options: this.options};\n if (run) {\n this.runMatchedCommand();\n }\n if (!this.matchedCommand && this.args[0]) {\n this.emit(\"command:*\");\n }\n return parsedArgv;\n }\n mri(argv, command) {\n const cliOptions = [\n ...this.globalCommand.options,\n ...command ? command.options : []\n ];\n const mriOptions = getMriOptions(cliOptions);\n let argsAfterDoubleDashes = [];\n const doubleDashesIndex = argv.indexOf(\"--\");\n if (doubleDashesIndex > -1) {\n argsAfterDoubleDashes = argv.slice(doubleDashesIndex + 1);\n argv = argv.slice(0, doubleDashesIndex);\n }\n let parsed = mri2(argv, mriOptions);\n parsed = Object.keys(parsed).reduce((res, name) => {\n return __assign(__assign({}, res), {\n [camelcaseOptionName(name)]: parsed[name]\n });\n }, {_: []});\n const args = parsed._;\n const options = {\n \"--\": argsAfterDoubleDashes\n };\n const ignoreDefault = command && command.config.ignoreOptionDefaultValue ? command.config.ignoreOptionDefaultValue : this.globalCommand.config.ignoreOptionDefaultValue;\n let transforms = Object.create(null);\n for (const cliOption of cliOptions) {\n if (!ignoreDefault && cliOption.config.default !== void 0) {\n for (const name of cliOption.names) {\n options[name] = cliOption.config.default;\n }\n }\n if (Array.isArray(cliOption.config.type)) {\n if (transforms[cliOption.name] === void 0) {\n transforms[cliOption.name] = Object.create(null);\n transforms[cliOption.name][\"shouldTransform\"] = true;\n transforms[cliOption.name][\"transformFunction\"] = cliOption.config.type[0];\n }\n }\n }\n for (const key of Object.keys(parsed)) {\n if (key !== \"_\") {\n const keys = key.split(\".\");\n setDotProp(options, keys, parsed[key]);\n setByType(options, transforms);\n }\n }\n return {\n args,\n options\n };\n }\n runMatchedCommand() {\n const {args, options, matchedCommand: command} = this;\n if (!command || !command.commandAction)\n return;\n command.checkUnknownOptions();\n command.checkOptionValue();\n command.checkRequiredArgs();\n const actionArgs = [];\n command.args.forEach((arg, index) => {\n if (arg.variadic) {\n actionArgs.push(args.slice(index));\n } else {\n actionArgs.push(args[index]);\n }\n });\n actionArgs.push(options);\n return command.commandAction.apply(this, actionArgs);\n }\n}\n\nconst cac = (name = \"\") => new CAC(name);\n\nexport default cac;\nexport { CAC, Command, cac };\n",
|
|
131
|
-
"/* eslint no-console: 0 */\nimport process from 'node:process'\nimport { buddyOptions, stripAnsi } from '@stacksjs/cli'\nimport { handleError, writeToLogFile } from '@stacksjs/error-handling'\nimport { ExitCode } from '@stacksjs/types'\nimport { consola, createConsola } from 'consola'\n\n// import type { Prompt } from '@stacksjs/cli'\n\nexport function logLevel(): number {\n /**\n * This regex checks for:\n * - --verbose true or --verbose=true exactly at the end of the string ($ denotes the end of the string).\n * - --verbose - followed by optional spaces at the end.\n * - --verbose followed by optional spaces at the end.\n *\n * .trim() is used on options to ensure any trailing spaces in the entire options string do not affect the regex match.\n */\n const verboseRegex = /--verbose(?!\\s*=\\s*false|\\s+false)(?:\\s+|=true)?(?:$|\\s)/\n const opts = buddyOptions()\n\n if (verboseRegex.test(opts))\n return 4\n\n // const config = await import('@stacksjs/config')\n // console.log('config', config)\n\n // return config.logger.level\n return 3\n}\n\nexport const logger: Log = {\n ...createConsola({\n level: logLevel(),\n // fancy: true,\n }),\n warning: (message: string) => console.warn(message),\n dump: (...args: any[]) => console.log(...args),\n dd: (...args: any[]) => {\n console.log(...args)\n process.exit(ExitCode.FatalError)\n },\n echo: (message: string) => console.log(message),\n}\n\nexport { consola, createConsola }\n\ntype ErrorMessage = string\nexport type ErrorOptions =\n | {\n shouldExit: boolean\n silent?: boolean\n message?: ErrorMessage\n }\n | any\n | Error\n\nexport interface Log {\n info: (...args: any[]) => void\n success: (msg: string) => void\n error: (err: string | Error | object | unknown, options?: ErrorOptions) => void\n warn: (arg: string) => void\n warning: (arg: string) => void\n debug: (...args: any[]) => void\n // prompt: Prompt\n // start: logger.Start\n // box: logger.Box\n // start: any\n // box: any\n dump: (...args: any[]) => void\n dd: (...args: any[]) => void\n echo: (...args: any[]) => void\n}\n\nexport interface LogOptions {\n styled?: boolean\n}\n\nexport const log: Log = {\n info: async (message: string, options?: LogOptions) => {\n if (options?.styled === false)\n console.log(message)\n else logger.info(message)\n await writeToLogFile(`INFO: ${stripAnsi(message)}`)\n },\n\n success: async (message: string, options?: LogOptions) => {\n if (options?.styled === false)\n console.log(message)\n else logger.success(message)\n await writeToLogFile(`SUCCESS: ${stripAnsi(message)}`)\n },\n\n warn: async (message: string, options?: LogOptions) => {\n if (options?.styled === false)\n console.log(message)\n else logger.warn(message)\n await writeToLogFile(`WARN: ${stripAnsi(message)}`)\n },\n\n /** alias for `log.warn()`. */\n warning: async (message: string, options?: LogOptions) => {\n if (options?.styled === false)\n console.log(message)\n else logger.warn(message)\n await writeToLogFile(`WARN: ${stripAnsi(message)}`)\n },\n\n error: async (err: string | Error | object | unknown, options?: ErrorOptions) => {\n handleError(err, options)\n },\n\n debug: async (...args: any[]) => {\n const formattedArgs = args.map(arg => (typeof arg === 'object' ? JSON.stringify(arg, null, 2) : arg))\n const message = `DEBUG: ${formattedArgs.join(' ')}`\n\n if (process.env.APP_ENV === 'production' || process.env.APP_ENV === 'prod')\n return writeToLogFile(message)\n\n logger.debug(message)\n await writeToLogFile(stripAnsi(message))\n },\n\n dump: (...args: any[]) => args.forEach(arg => console.log(arg)),\n dd: (...args: any[]) => {\n args.forEach(arg => console.log(arg))\n process.exit(ExitCode.FatalError)\n },\n echo: (...args: any[]) => console.log(...args),\n}\n\nexport function dump(...args: any[]): void {\n args.forEach(arg => log.debug(arg))\n}\n\nexport function dd(...args: any[]): void {\n log.info(args)\n // we need to return a non-zero exit code to indicate an error\n // e.g. if used in a CDK script, we want it to fail the deployment\n process.exit(ExitCode.FatalError)\n}\n\nexport function echo(...args: any[]): void {\n console.log(...args)\n}\n",
|
|
132
|
-
"import type { StacksOptions } from '@stacksjs/types'\nimport { commandsPath, userDatabasePath } from '@stacksjs/path'\n\n// import { userConfig as overrides } from './overrides'\n\nconst config: StacksOptions = {\n ai: {\n deploy: false,\n models: [\n 'amazon.titan-embed-text-v1',\n 'amazon.titan-text-express-v1',\n 'amazon.titan-embed-image-v1',\n 'amazon.titan-image-generator-v1',\n 'anthropic.claude-v1',\n 'anthropic.claude-v2',\n 'anthropic.claude-v2:1',\n 'anthropic.claude-instant-v1',\n 'meta.llama2-13b-chat-v1',\n 'meta.llama2-70b-chat-v1',\n ],\n },\n\n analytics: {\n driver: undefined,\n },\n\n // api: {\n // // version: 'v1',\n // prefix: 'api',\n // middleware: ['Api'],\n // routes: {\n // index: true,\n // show: true,\n // store: true,\n // update: true,\n // destroy: true,\n // },\n // },\n\n app: {\n name: 'Stacks',\n description: 'A Stacks application.',\n env: 'local',\n url: 'stacks.localhost',\n debug: true,\n key: '',\n timezone: 'UTC',\n locale: 'en',\n fallbackLocale: 'en',\n cipher: 'AES-256-CBC',\n docMode: false,\n redirectUrls: [],\n maintenanceMode: false,\n },\n\n cli: {\n name: 'My Custom CLI',\n command: 'my-custom-cli',\n description: 'Stacks is a full-stack framework for TypeScript.',\n source: commandsPath(),\n deploy: false,\n },\n\n cache: {\n driver: 'redis',\n prefix: 'stx',\n ttl: 3600,\n\n drivers: {\n redis: {\n connection: 'default',\n host: 'localhost',\n port: 6379,\n username: '',\n password: '',\n },\n },\n },\n\n cloud: {\n type: 'serverless',\n\n driver: 'aws',\n\n storage: {},\n\n environments: ['production', 'staging', 'development'],\n\n firewall: {\n enabled: true,\n countryCodes: [],\n ipAddresses: [],\n queryString: [],\n httpHeaders: [],\n // ipSets: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n },\n\n cdn: {\n allowedMethods: 'GET_HEAD',\n cachedMethods: 'GET_HEAD',\n minTtl: 0,\n defaultTtl: 86400,\n maxTtl: 31536000,\n compress: true,\n priceClass: 'PriceClass_All',\n originShieldRegion: 'us-east-1',\n cookieBehavior: 'none',\n allowList: {\n cookies: [],\n headers: [],\n queryStrings: [],\n },\n realtimeLogs: {\n enabled: true,\n samplingRate: 2,\n },\n },\n\n fileSystem: false,\n },\n\n database: {\n default: 'sqlite',\n\n connections: {\n sqlite: {\n database: userDatabasePath('stacks.sqlite'),\n prefix: '',\n },\n },\n\n migrations: 'migrations',\n migrationLocks: 'migration_locks',\n },\n\n dns: {\n driver: 'aws',\n a: [],\n aaaa: [],\n cname: [],\n mx: [],\n txt: [],\n },\n\n docs: {\n lang: 'en-US',\n title: 'Stacks',\n description: 'Rapid application, cloud & library framework.',\n lastUpdated: true,\n deploy: false,\n\n themeConfig: {\n editLink: {\n pattern: 'https://github.com/stacksjs/stacks/edit/main/docs/docs/:path',\n text: 'Edit this page on GitHub',\n },\n\n footer: {\n message: 'Released under the MIT License.',\n copyright: 'Copyright © 2024-present Stacks.js, Inc.',\n },\n\n // algolia: services.algolia,\n\n // carbonAds: {\n // code: '',\n // placement: '',\n // },\n },\n },\n\n email: {\n from: {\n name: 'Stacks',\n address: 'no-reply@stacksjs.org',\n },\n\n mailboxes: [],\n\n server: {\n scan: true,\n },\n },\n\n errors: {\n messages: {\n 'string': 'The {{ field }} field must be a string',\n 'email': 'The {{ field }} field must be a valid email address',\n 'regex': 'The {{ field }} field format is invalid',\n 'url': 'The {{ field }} field must be a valid URL',\n 'activeUrl': 'The {{ field }} field must be a valid URL',\n 'alpha': 'The {{ field }} field must contain only letters',\n 'alphaNumeric': 'The {{ field }} field must contain only letters and numbers',\n 'minLength': 'The {{ field }} field must have at least {{ min }} characters',\n 'maxLength': 'The {{ field }} field must not be greater than {{ max }} characters',\n 'fixedLength': 'The {{ field }} field must be {{ size }} characters long',\n 'confirmed': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'endsWith': 'The {{ field }} field must end with {{ substring }}',\n 'startsWith': 'The {{ field }} field must start with {{ substring }}',\n 'sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'in': 'The selected {{ field }} is invalid',\n 'notIn': 'The selected {{ field }} is invalid',\n 'ipAddress': 'The {{ field }} field must be a valid IP address',\n 'uuid': 'The {{ field }} field must be a valid UUID',\n 'ascii': 'The {{ field }} field must only contain ASCII characters',\n 'creditCard': 'The {{ field }} field must be a valid {{ providersList }} card number',\n 'hexCode': 'The {{ field }} field must be a valid hex color code',\n 'iban': 'The {{ field }} field must be a valid IBAN number',\n 'jwt': 'The {{ field }} field must be a valid JWT token',\n 'coordinates': 'The {{ field }} field must contain latitude and longitude coordinates',\n 'mobile': 'The {{ field }} field must be a valid mobile phone number',\n 'passport': 'The {{ field }} field must be a valid passport number',\n 'postalCode': 'The {{ field }} field must be a valid postal code',\n\n // boolean\n 'boolean': 'The value must be a boolean',\n\n // number\n 'number': 'The {{ field }} field must be a number',\n 'min': 'The {{ field }} field must be at least {{ min }}',\n 'max': 'The {{ field }} field must not be greater than {{ max }}',\n 'range': 'The {{ field }} field must be between {{ min }} and {{ max }}',\n 'positive': 'The {{ field }} field must be positive',\n 'negative': 'The {{ field }} field must be negative',\n 'decimal': 'The {{ field }} field must have {{ digits }} decimal places',\n 'withoutDecimals': 'The {{ field }} field must not have decimal places',\n\n // date\n 'date': 'The {{ field }} field must be a datetime value',\n 'date.equals': 'The {{ field }} field must be a date equal to {{ expectedValue }}',\n 'date.after': 'The {{ field }} field must be a date after {{ expectedValue }}',\n 'date.before': 'The {{ field }} field must be a date before {{ expectedValue }}',\n 'date.afterOrEqual': 'The {{ field }} field must be a date after or equal to {{ expectedValue }}',\n 'date.beforeOrEqual': 'The {{ field }} field must be a date before or equal to {{ expectedValue }}',\n 'date.sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'date.notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'date.afterField': 'The {{ field }} field must be a date after {{ otherField }}',\n\n // accepted\n 'accepted': 'The {{ field }} field must be accepted',\n\n // enum\n 'enum': 'The selected {{ field }} is invalid',\n\n // literal\n 'literal': 'The {{ field }} field must be {{ expectedValue }}',\n\n // object\n 'object': 'The {{ field }} field must be an object',\n\n // record\n 'record': 'The {{ field }} field must be an object',\n 'record.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'record.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'record.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n\n // array\n 'array': 'The {{ field }} field must be an array',\n 'array.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'array.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'array.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n 'notEmpty': 'The {{ field }} field must not be empty',\n 'distinct': 'The {{ field }} field has duplicate values',\n\n // tuple\n 'tuple': 'The {{ field }} field must be an array',\n\n // union\n 'union': 'Invalid value provided for {{ field }} field',\n 'unionGroup': 'Invalid value provided for {{ field }} field',\n 'unionOfTypes': 'Invalid value provided for {{ field }} field',\n },\n },\n\n git: {\n hooks: {\n 'pre-commit': 'lint-staged',\n },\n\n scopes: [\n '',\n 'ci',\n 'deps',\n 'dx',\n 'release',\n 'docs',\n 'test',\n 'core',\n 'actions',\n 'arrays',\n 'auth',\n 'build',\n 'cache',\n 'cli',\n 'cloud',\n 'collections',\n 'config',\n 'database',\n 'datetime',\n 'docs',\n 'errors',\n 'git',\n 'lint',\n 'x-ray',\n 'modules',\n 'notifications',\n 'objects',\n 'path',\n 'realtime',\n 'router',\n 'buddy',\n 'security',\n 'server',\n 'storage',\n 'strings',\n 'tests',\n 'types',\n 'ui',\n 'utils',\n ],\n\n messages: {\n type: 'Select the type of change that you’re committing:',\n scope: 'Select the SCOPE of this change (optional):',\n customScope: 'Select the SCOPE of this change:',\n subject: 'Write a SHORT, IMPERATIVE tense description of the change:\\n',\n body: 'Provide a LONGER description of the change (optional). Use \"|\" to break new line:\\n',\n breaking: 'List any BREAKING CHANGES (optional). Use \"|\" to break new line:\\n',\n footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',\n customFooterPrefixes: 'Input ISSUES prefix:',\n footer: 'List any ISSUES by this change. E.g.: #31, #34:\\n',\n confirmCommit: 'Are you sure you want to proceed with the commit above?',\n },\n\n types: [\n {\n value: 'feat',\n name: 'feat: ✨ A new feature',\n emoji: ':sparkles:',\n },\n { value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },\n {\n value: 'docs',\n name: 'docs: 📝 Documentation only changes',\n emoji: ':memo:',\n },\n {\n value: 'style',\n name: 'style: 💄 Changes that do not affect the meaning of the code',\n emoji: ':lipstick:',\n },\n {\n value: 'refactor',\n name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',\n emoji: ':recycle:',\n },\n {\n value: 'perf',\n name: 'perf: ⚡️ A code change that improves performance',\n emoji: ':zap:',\n },\n {\n value: 'test',\n name: 'test: ✅ Adding missing tests or adjusting existing tests',\n emoji: ':white_check_mark:',\n },\n {\n value: 'build',\n name: 'build: 📦️ Changes that affect the build system or external dependencies',\n emoji: ':package:',\n },\n {\n value: 'ci',\n name: 'ci: 🎡 Changes to our CI configuration files and scripts',\n emoji: ':ferris_wheel:',\n },\n {\n value: 'chore',\n name: 'chore: 🔨 Other changes that don’t modify src or test files',\n emoji: ':hammer:',\n },\n {\n value: 'revert',\n name: 'revert: ⏪️ Reverts a previous commit',\n emoji: ':rewind:',\n },\n ],\n },\n\n hashing: {\n driver: 'argon2',\n\n bcrypt: {\n rounds: 10,\n cost: 4, // number between 4-31\n },\n\n argon2: {\n memory: 65536, // memory usage in kibibytes\n // threads: 1,\n time: 1, // the number of iterations\n },\n },\n\n library: {\n name: 'hello-world',\n owner: '@stacksjs', // you may or may not add the @ prefix here (it is added automatically)\n repository: 'stacksjs/stacks',\n license: 'MIT',\n author: 'Chris Breuer',\n contributors: ['Chris Breuer <chris@stacksjs.org>'],\n defaultLanguage: 'en',\n\n vueComponents: {\n name: 'hello-world-vue',\n description: 'Your Vue component library description',\n keywords: ['component', 'library', 'vue', 'vite', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n webComponents: {\n name: 'hello-world-elements',\n description: 'Your framework agnostic web component library description.',\n keywords: ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n functions: {\n name: 'hello-world-fx',\n description: 'Your function library description.',\n keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],\n shouldGenerateSourcemap: false,\n files: ['counter', 'dark'],\n },\n },\n\n logging: {\n logsPath: 'storage/logs/stacks.log',\n deploymentsPath: 'storage/logs/deployments.log',\n },\n\n notification: {\n default: 'email',\n },\n\n payment: {\n driver: 'stripe',\n },\n\n ports: {\n frontend: 3000,\n backend: 3001,\n admin: 3002,\n library: 3003,\n desktop: 3004,\n email: 3005,\n docs: 3006,\n inspect: 3007,\n api: 3008,\n systemTray: 3009,\n database: 3010,\n // mobile: 3010,\n },\n\n queue: {\n default: 'sync',\n\n connections: {\n sync: {\n driver: 'sync',\n },\n\n database: {\n driver: 'database',\n table: 'jobs',\n queue: 'default',\n retry_after: 90,\n },\n\n redis: {\n driver: 'redis',\n connection: 'default',\n queue: 'default',\n retry_after: 90,\n },\n\n sqs: {\n driver: 'sqs',\n key: '',\n secret: '',\n prefix: '',\n suffix: '',\n queue: 'default',\n region: 'us-east-1',\n },\n },\n },\n\n searchEngine: {\n driver: 'opensearch',\n },\n\n security: {\n firewall: {\n enabled: true,\n countryCodes: [],\n ipAddresses: [],\n queryString: [],\n httpHeaders: [],\n // ipSets: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n },\n },\n\n services: {\n aws: {\n accountId: '',\n appId: '',\n apiKey: '',\n region: 'us-east-1',\n },\n\n algolia: {\n appId: '',\n apiKey: '',\n },\n\n meilisearch: {\n appId: '',\n apiKey: '',\n },\n\n stripe: {\n appId: '',\n apiKey: '',\n },\n },\n\n storage: {\n driver: 's3',\n },\n\n team: {\n name: 'Stacks',\n members: {\n 'Chris Breuer': 'chris@stacksjs.org',\n },\n },\n\n ui: {\n shortcuts: [\n [\n 'btn',\n 'inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer',\n ],\n ],\n\n safelist: 'prose prose-sm m-auto text-left',\n\n trigger: ':stx:',\n classPrefix: 'stx-',\n reset: 'tailwind',\n\n icons: ['heroicons'],\n\n fonts: {\n email: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n desktop: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n mobile: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n web: {\n title: 'Mona',\n text: 'Hubot',\n },\n },\n },\n}\n\nexport default config\n",
|
|
133
|
-
"import type { AiConfig } from '@stacksjs/types'\n\n/**\n * **AI Configuration**\n *\n * This configuration defines all of your AI options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'meta.llama2-70b-chat-v1',\n\n models: [\n // 'amazon.titan-embed-text-v1',\n // Supported use cases – Retrieval augmented generation, open-ended text generation, brainstorming, summarizations, code generation, table creation, data formatting, paraphrasing, chain of thought, rewrite, extraction, QnA, and chat\n 'amazon.titan-text-express-v1',\n // Amazon Titan Text Lite is a light weight efficient model, ideal for fine-tuning of English-language tasks, including like summarizations and copy writing, where customers want a smaller, more cost-effective model that is also highly customizable\n 'amazon.titan-text-lite-v1',\n // 'amazon.titan-embed-image-v1',\n // 'amazon.titan-image-generator-v1',\n // 'anthropic.claude-v1',\n // 'anthropic.claude-v2',\n // 'anthropic.claude-v2:1',\n // 'anthropic.claude-instant-v1',\n // 'meta.llama2-13b-chat-v1',\n 'meta.llama2-70b-chat-v1',\n ],\n\n deploy: true, // deploys AI endpoints\n} satisfies AiConfig\n",
|
|
134
|
-
"import type { AnalyticsConfig } from '@stacksjs/types'\n\n/**\n * **Analytics Configuration**\n *\n * This configuration defines all of your Analytics options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'fathom',\n\n drivers: {\n googleAnalytics: {\n trackingId: 'UA-XXXXXXXXX-X',\n },\n\n fathom: {\n siteId: 'WOLZMJDL',\n },\n },\n} satisfies AnalyticsConfig\n",
|
|
135
|
-
"import type { EnvKey } from '../../../env'\nimport type { Env } from './types'\nimport p from 'node:process'\nimport { projectPath } from '@stacksjs/path'\nimport { ValidationBoolean, ValidationEnum, ValidationNumber } from '@stacksjs/validation'\nimport fs from 'fs-extra'\n\nconst handler = {\n get: (target: Env, key: EnvKey) => {\n const value = target[key] as any\n\n // if value is a string but only contains numbers, and the key is not AWS_ACCOUNT_ID, return it as a number\n if (typeof value === 'string' && /^\\d+$/.test(value) && key !== 'AWS_ACCOUNT_ID')\n return Number(value)\n\n // if value is a string but only contains boolean values, return it as a boolean\n if (typeof value === 'string' && /^true|false$/.test(value))\n return value === 'true'\n\n // at some point, let's see if we can remove the need for below\n if (value instanceof ValidationEnum)\n return target[key] as string\n if (value instanceof ValidationBoolean)\n return !!target[key]\n if (value instanceof ValidationNumber)\n return Number(target[key])\n\n return value as string\n },\n}\n\nexport function process(): Env {\n return typeof Bun !== 'undefined' ? (Bun.env as unknown as Env) : (p.env as unknown as Env)\n}\n\nexport const env: Env = new Proxy(process(), handler)\n\nexport function writeEnv(key: EnvKey, value: string, options?: { path: string }): void {\n const envPath = options?.path || projectPath('.env')\n const env = fs.readFileSync(envPath, 'utf-8')\n\n // Split the file into lines\n const lines = env.split('\\n')\n\n // Find the line with the variable we want to update\n const index = lines.findIndex(line => line.startsWith(`${key}=`))\n\n // If the variable exists, update it\n if (index !== -1)\n lines[index] = `${key}=${value}`\n // Otherwise, add a new line\n else lines.push(`${key}=${value}`)\n\n // Join the lines back into a string and write it to the .env file\n fs.writeFileSync(envPath, lines.join('\\n'))\n}\n\nexport * from './types'\n",
|
|
136
|
-
"import type { EnvConfig } from '@stacksjs/env'\nimport { schema } from '@stacksjs/validation'\n\n/**\n * **Env Configuration & Validations**\n *\n * This configuration defines all of your Env validations. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n APP_NAME: schema.string(),\n APP_ENV: schema.enum(['local', 'dev', 'stage', 'prod']),\n APP_KEY: schema.string(),\n APP_URL: schema.string(),\n\n PORT: schema.number(),\n PORT_BACKEND: schema.number(),\n PORT_ADMIN: schema.number(),\n PORT_LIBRARY: schema.number(),\n PORT_DESKTOP: schema.number(),\n PORT_EMAIL: schema.number(),\n PORT_DOCS: schema.number(),\n PORT_INSPECT: schema.number(),\n PORT_API: schema.number(),\n PORT_SYSTEM_TRAY: schema.number(),\n\n APP_MAINTENANCE: schema.boolean(),\n DEBUG: schema.boolean(),\n\n API_PREFIX: schema.string(),\n DOCS_PREFIX: schema.string(),\n\n DB_CONNECTION: schema.enum(['mysql', 'sqlite', 'postgres']),\n DB_HOST: schema.string(),\n DB_PORT: schema.number(),\n DB_DATABASE: schema.string(),\n DB_USERNAME: schema.string(),\n DB_PASSWORD: schema.string(),\n\n AWS_ACCOUNT_ID: schema.string(),\n AWS_ACCESS_KEY_ID: schema.string(),\n AWS_SECRET_ACCESS_KEY: schema.string(),\n AWS_DEFAULT_REGION: schema.string(),\n AWS_DEFAULT_PASSWORD: schema.string(),\n\n MAIL_MAILER: schema.enum(['ses', 'sendmail', 'log', 'smtp']),\n MAIL_HOST: schema.string(),\n MAIL_PORT: schema.number(),\n MAIL_USERNAME: schema.string(),\n MAIL_PASSWORD: schema.string(),\n MAIL_ENCRYPTION: schema.string(),\n MAIL_FROM_NAME: schema.string(),\n MAIL_FROM_ADDRESS: schema.string(),\n\n SEARCH_ENGINE_DRIVER: schema.enum(['meilisearch', 'algolia', 'typesense']),\n MEILISEARCH_HOST: schema.string(),\n MEILISEARCH_KEY: schema.string(),\n\n FRONTEND_APP_ENV: schema.enum(['development', 'staging', 'production']),\n FRONTEND_APP_URL: schema.string(),\n} satisfies EnvConfig\n",
|
|
137
|
-
"import type { Infer, VineBoolean, VineEnum, VineNumber, VineString } from '@stacksjs/validation'\nimport type { EnvKey } from '../../../env'\nimport { schema } from '@stacksjs/validation'\nimport env from '~/config/env'\n\ninterface EnumObject {\n [key: string]: string[]\n}\n\nexport const envEnum: EnumObject = {\n APP_ENV: ['local', 'dev', 'development', 'staging', 'prod', 'production'],\n DB_CONNECTION: ['mysql', 'sqlite', 'postgres', 'dynamodb'],\n MAIL_MAILER: ['smtp', 'mailgun', 'ses', 'postmark', 'sendmail', 'log'],\n SEARCH_ENGINE_DRIVER: ['opensearch'],\n FRONTEND_APP_ENV: ['development', 'staging', 'production'],\n}\n\n// we need to get this into the right format so we can infer the type\ntype EnvValue = string | boolean | number | readonly string[]\ntype EnvType = typeof env\ntype EnvKeys = keyof EnvType\ntype EnvMap = {\n [K in EnvKeys]: EnvType[K] extends string\n ? VineString\n : EnvType[K] extends number\n ? VineNumber\n : EnvType[K] extends boolean\n ? VineBoolean\n : EnvType[K] extends readonly string[]\n ? VineEnum<string[]>\n : unknown\n}\n\ntype ValidatorType = VineString | VineNumber | VineBoolean | VineEnum<string[]>\n\nconst envStructure = Object.entries(env).reduce((acc, [key, value]) => {\n let validatorType: ValidatorType\n switch (typeof value) {\n case 'string':\n validatorType = schema.string()\n break\n case 'number':\n validatorType = schema.number()\n break\n case 'boolean':\n validatorType = schema.boolean()\n break\n default:\n if (Array.isArray(value)) {\n validatorType = schema.enum(value as string[])\n break\n }\n\n // check if is on object\n if (typeof value === 'object') {\n const schemaNameSymbol = Symbol.for('schema_name')\n const schemaName = value[schemaNameSymbol]\n // log.debug('value', value)\n // log.debug('schemaName', schemaName)\n\n if (schemaName === 'vine.string') {\n validatorType = schema.string()\n break\n }\n\n if (schemaName === 'vine.number') {\n validatorType = schema.number()\n break\n }\n\n if (schemaName === 'vine.boolean') {\n validatorType = schema.boolean()\n break\n }\n\n // if (schemaName === 'vine.enum') {\n // validatorType = schema.enum(value as string[])\n // break\n // }\n\n // oddly, enums don't trigger schemaName === 'vine.enum'\n if (!schemaName) {\n validatorType = schema.enum(envEnum.APP_ENV)\n break\n }\n\n console.error('Unknown env value type', typeof value)\n }\n\n throw new Error(`Invalid env value for ${key}`)\n }\n const envKey = key as EnvKeys\n\n acc[envKey] = validatorType as any\n return acc\n}, {} as EnvMap)\n\nexport const envSchema = schema.object(envStructure)\nexport type Env = Infer<typeof envSchema>\n\nexport type EnvOptions = Env\nexport type EnvConfig = Partial<Record<EnvKey, EnvValue>>\n\nexport interface FrontendEnv {\n FRONTEND_APP_ENV: 'local' | 'development' | 'staging' | 'production'\n FRONTEND_APP_URL: string\n}\nexport type FrontendEnvKeys = keyof FrontendEnv\n",
|
|
138
|
-
"import type { AppConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Application Configuration**\n *\n * This configuration defines all of your application options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: env.APP_NAME ?? 'Stacks',\n description: 'Stacks is a full-stack framework for building modern web applications.',\n env: env.APP_ENV ?? 'local',\n url: env.APP_URL ?? 'stacks.localhost',\n redirectUrls: ['stacksjs.com'],\n debug: env.DEBUG ?? false,\n key: env.APP_KEY,\n\n maintenanceMode: env.APP_MAINTENANCE ?? false,\n // docMode: true, // instead of example.com/docs, deploys example.com as main entry point for docs\n docMode: false,\n\n timezone: 'America/Los_Angeles',\n locale: 'en',\n fallbackLocale: 'en',\n cipher: 'aes-256-cbc',\n} satisfies AppConfig\n",
|
|
139
|
-
"import type { CacheConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Cache Configuration**\n *\n * This configuration defines all of your cache options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'dynamodb',\n prefix: 'stacks',\n ttl: 3600,\n\n drivers: {\n dynamodb: {\n key: env.AWS_ACCESS_KEY_ID || '',\n secret: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n table: 'cache',\n endpoint: '',\n },\n\n memcached: {\n persistent_id: '',\n sasl: ['', ''],\n options: {\n // Memcached::OPT_CONNECT_TIMEOUT => 2000,\n },\n servers: [\n {\n host: '127.0.0.1',\n port: 11211,\n weight: 100,\n },\n ],\n },\n\n redis: {\n connection: 'cache',\n host: '127.0.0.1',\n port: 6379,\n password: '',\n username: 'stacks',\n },\n },\n} satisfies CacheConfig\n",
|
|
140
|
-
"import type { BinaryConfig } from '@stacksjs/types'\n\n/**\n * **Binary / CLI Configuration**\n *\n * This configuration defines all of your Binary/CLI options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: 'My Custom CLI',\n command: 'custom-cli', // enables `custom-cli <command> <options>`\n description:\n 'This is an example command to illustrate how to create your own commands. Check out `../app/commands` for more.',\n deploy: true, // deploys CLI setup endpoint (./bootstrap)\n} satisfies BinaryConfig\n",
|
|
141
|
-
"import type { SecurityConfig } from '@stacksjs/types'\n\n/**\n * **Services**\n *\n * This configuration defines all of your services. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n firewall: {\n enabled: true,\n countryCodes: ['RU', 'IR'],\n ipAddresses: [],\n rateLimitPerMinute: 1000,\n useIpReputationLists: true,\n useKnownBadInputsRuleSet: true,\n queryString: [],\n httpHeaders: [],\n },\n} satisfies SecurityConfig\n",
|
|
142
|
-
"import type { CloudConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\nimport security from './security'\n\n/**\n * **Cloud**\n *\n * This configuration defines your cloud. Because Stacks is fully-typed, you may hover\n * any of the options below and the definitions will be provided. In case you have\n * any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n type: 'serverless',\n driver: 'aws',\n firewall: security.firewall,\n environments: ['production', 'staging', 'development'],\n\n storage: {},\n\n api: {\n prefix: env.API_PREFIX || 'api',\n // version: 'v1',\n description: 'My awesome Stacks API',\n deploy: true,\n memorySize: 512,\n prewarm: 10,\n timeout: 30,\n },\n\n cdn: {\n compress: true,\n\n allowedMethods: 'ALL',\n cachedMethods: 'GET_HEAD',\n originShieldRegion: 'us-east-1',\n minTtl: 0,\n defaultTtl: 86400,\n maxTtl: 31536000,\n cookieBehavior: 'none',\n\n allowList: {\n cookies: [],\n headers: [],\n queryStrings: [],\n },\n\n realtimeLogs: {\n enabled: true,\n samplingRate: 1,\n },\n },\n\n fileSystem: true, // enables file system\n\n // compute: {},\n // queues: false,\n // queue-concurrency: 50\n} satisfies CloudConfig\n",
|
|
143
|
-
"import type { DatabaseConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Database Configuration**\n *\n * This configuration defines all of your database options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: env.DB_CONNECTION || 'sqlite',\n\n connections: {\n sqlite: {\n database: env.DB_DATABASE || 'database/stacks.sqlite',\n prefix: '',\n },\n\n dynamodb: {\n key: env.AWS_ACCESS_KEY_ID || '',\n secret: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n prefix: env.DB_DATABASE || 'stacks',\n endpoint: 'http://localhost',\n port: env.DB_PORT || 8000,\n },\n\n mysql: {\n name: env.DB_DATABASE || 'stacks',\n host: env.DB_HOST || '127.0.0.1',\n port: env.DB_PORT || 3306,\n username: env.DB_USERNAME || 'root',\n password: env.DB_PASSWORD || '',\n prefix: '',\n },\n\n postgres: {\n name: env.DB_DATABASE || 'stacks',\n host: env.DB_HOST || '127.0.0.1',\n port: env.DB_PORT || 3306,\n username: env.DB_USERNAME || '',\n password: env.DB_PASSWORD || '',\n prefix: '',\n },\n },\n\n migrations: 'migrations',\n migrationLocks: 'migration_locks',\n} satisfies DatabaseConfig\n",
|
|
144
|
-
"import type { DnsConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **DNS Options**\n *\n * This configuration defines all of your DNS options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n a: [\n {\n name: env.APP_URL || '', // Hostname (root domain)\n address: '10.0.0.1', // IPv4 address\n ttl: 300, // Time-to-live in seconds\n },\n\n {\n name: 'www',\n address: '@',\n ttl: 300,\n },\n ],\n aaaa: [],\n cname: [],\n mx: [],\n txt: [],\n\n nameservers: [],\n\n // redirects: ['stacksjs.com', 'buddy.sh'],\n} satisfies DnsConfig\n",
|
|
145
|
-
"import type { EmailConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Email Configuration**\n *\n * This configuration defines all of your email options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n from: {\n name: env.MAIL_FROM_NAME || 'Stacks',\n address: env.MAIL_FROM_ADDRESS || 'no-reply@stacksjs.org',\n },\n\n mailboxes: ['chris@stacksjs.org', 'blake@stacksjs.org', 'glenn@stacksjs.org'],\n\n url: env.APP_URL || 'http://localhost:3000',\n charset: 'UTF-8',\n\n server: {\n scan: true, // scans for spam and viruses\n },\n} satisfies EmailConfig\n",
|
|
146
|
-
"import type { ErrorConfig } from '@stacksjs/types'\n\n/**\n * **Error Options**\n *\n * This configuration defines all of your DNS options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n messages: {\n 'string': 'The {{ field }} field must be a string',\n 'email': 'The {{ field }} field must be a valid email address',\n 'regex': 'The {{ field }} field format is invalid',\n 'url': 'The {{ field }} field must be a valid URL',\n 'activeUrl': 'The {{ field }} field must be a valid URL',\n 'alpha': 'The {{ field }} field must contain only letters',\n 'alphaNumeric': 'The {{ field }} field must contain only letters and numbers',\n 'minLength': 'The {{ field }} field must have at least {{ min }} characters',\n 'maxLength': 'The {{ field }} field must not be greater than {{ max }} characters',\n 'fixedLength': 'The {{ field }} field must be {{ size }} characters long',\n 'confirmed': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'endsWith': 'The {{ field }} field must end with {{ substring }}',\n 'startsWith': 'The {{ field }} field must start with {{ substring }}',\n 'sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'in': 'The selected {{ field }} is invalid',\n 'notIn': 'The selected {{ field }} is invalid',\n 'ipAddress': 'The {{ field }} field must be a valid IP address',\n 'uuid': 'The {{ field }} field must be a valid UUID',\n 'ascii': 'The {{ field }} field must only contain ASCII characters',\n 'creditCard': 'The {{ field }} field must be a valid {{ providersList }} card number',\n 'hexCode': 'The {{ field }} field must be a valid hex color code',\n 'iban': 'The {{ field }} field must be a valid IBAN number',\n 'jwt': 'The {{ field }} field must be a valid JWT token',\n 'coordinates': 'The {{ field }} field must contain latitude and longitude coordinates',\n 'mobile': 'The {{ field }} field must be a valid mobile phone number',\n 'passport': 'The {{ field }} field must be a valid passport number',\n 'postalCode': 'The {{ field }} field must be a valid postal code',\n\n // boolean\n 'boolean': 'The value must be a boolean',\n\n // number\n 'number': 'The {{ field }} field must be a number',\n 'min': 'The {{ field }} field must be at least {{ min }}',\n 'max': 'The {{ field }} field must not be greater than {{ max }}',\n 'range': 'The {{ field }} field must be between {{ min }} and {{ max }}',\n 'positive': 'The {{ field }} field must be positive',\n 'negative': 'The {{ field }} field must be negative',\n 'decimal': 'The {{ field }} field must have {{ digits }} decimal places',\n 'withoutDecimals': 'The {{ field }} field must not have decimal places',\n\n // date\n 'date': 'The {{ field }} field must be a datetime value',\n 'date.equals': 'The {{ field }} field must be a date equal to {{ expectedValue }}',\n 'date.after': 'The {{ field }} field must be a date after {{ expectedValue }}',\n 'date.before': 'The {{ field }} field must be a date before {{ expectedValue }}',\n 'date.afterOrEqual': 'The {{ field }} field must be a date after or equal to {{ expectedValue }}',\n 'date.beforeOrEqual': 'The {{ field }} field must be a date before or equal to {{ expectedValue }}',\n 'date.sameAs': 'The {{ field }} field and {{ otherField }} field must be the same',\n 'date.notSameAs': 'The {{ field }} field and {{ otherField }} field must be different',\n 'date.afterField': 'The {{ field }} field must be a date after {{ otherField }}',\n\n // accepted\n 'accepted': 'The {{ field }} field must be accepted',\n\n // enum\n 'enum': 'The selected {{ field }} is invalid',\n\n // literal\n 'literal': 'The {{ field }} field must be {{ expectedValue }}',\n\n // object\n 'object': 'The {{ field }} field must be an object',\n\n // record\n 'record': 'The {{ field }} field must be an object',\n 'record.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'record.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'record.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n\n // array\n 'array': 'The {{ field }} field must be an array',\n 'array.minLength': 'The {{ field }} field must have at least {{ min }} items',\n 'array.maxLength': 'The {{ field }} field must not have more than {{ max }} items',\n 'array.fixedLength': 'The {{ field }} field must contain {{ size }} items',\n 'notEmpty': 'The {{ field }} field must not be empty',\n 'distinct': 'The {{ field }} field has duplicate values',\n\n // tuple\n 'tuple': 'The {{ field }} field must be an array',\n\n // union\n 'union': 'Invalid value provided for {{ field }} field',\n 'unionGroup': 'Invalid value provided for {{ field }} field',\n 'unionOfTypes': 'Invalid value provided for {{ field }} field',\n },\n} satisfies ErrorConfig\n",
|
|
147
|
-
"import type { GitConfig } from '@stacksjs/types'\n\n/**\n * **Git Configuration**\n *\n * This configuration defines all of your git options. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n hooks: {\n 'pre-commit': 'lint-staged',\n },\n\n scopes: [\n '',\n 'ci',\n 'deps',\n 'dx',\n 'release',\n 'docs',\n 'test',\n 'core',\n 'actions',\n 'arrays',\n 'auth',\n 'build',\n 'cache',\n 'cli',\n 'cloud',\n 'collections',\n 'config',\n 'database',\n 'datetime',\n 'docs',\n 'errors',\n 'git',\n 'lint',\n 'x-ray',\n 'modules',\n 'notifications',\n 'objects',\n 'path',\n 'realtime',\n 'router',\n 'buddy',\n 'security',\n 'server',\n 'storage',\n 'strings',\n 'tests',\n 'types',\n 'ui',\n 'utils',\n ],\n\n messages: {\n type: 'Select the type of change that you’re committing:',\n scope: 'Select the SCOPE of this change (optional):',\n customScope: 'Select the SCOPE of this change:',\n subject: 'Write a SHORT, IMPERATIVE tense description of the change:\\n',\n body: 'Provide a LONGER description of the change (optional). Use \"|\" to break new line:\\n',\n breaking: 'List any BREAKING CHANGES (optional). Use \"|\" to break new line:\\n',\n footerPrefixesSelect: 'Select the ISSUES type of the change list by this change (optional):',\n customFooterPrefixes: 'Input ISSUES prefix:',\n footer: 'List any ISSUES by this change. E.g.: #31, #34:\\n',\n confirmCommit: 'Are you sure you want to proceed with the commit above?',\n },\n\n types: [\n { value: 'feat', name: 'feat: ✨ A new feature', emoji: ':sparkles:' },\n { value: 'fix', name: 'fix: 🐛 A bug fix', emoji: ':bug:' },\n {\n value: 'docs',\n name: 'docs: 📝 Documentation only changes',\n emoji: ':memo:',\n },\n {\n value: 'style',\n name: 'style: 💄 Changes that do not affect the meaning of the code',\n emoji: ':lipstick:',\n },\n {\n value: 'refactor',\n name: 'refactor: ♻️ A code change that neither fixes a bug nor adds a feature',\n emoji: ':recycle:',\n },\n {\n value: 'perf',\n name: 'perf: ⚡️ A code change that improves performance',\n emoji: ':zap:',\n },\n {\n value: 'test',\n name: 'test: ✅ Adding missing tests or adjusting existing tests',\n emoji: ':white_check_mark:',\n },\n {\n value: 'build',\n name: 'build: 📦️ Changes that affect the build system or external dependencies',\n emoji: ':package:',\n },\n {\n value: 'ci',\n name: 'ci: 🎡 Changes to our CI configuration files and scripts',\n emoji: ':ferris_wheel:',\n },\n {\n value: 'chore',\n name: 'chore: 🔨 Other changes that don’t modify src or test files',\n emoji: ':hammer:',\n },\n {\n value: 'revert',\n name: 'revert: ⏪️ Reverts a previous commit',\n emoji: ':rewind:',\n },\n ],\n} satisfies GitConfig\n",
|
|
148
|
-
"import type { HashingConfig } from '@stacksjs/types'\n\n/**\n * **Hashing Configuration**\n *\n * This configuration defines all of your hashing options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'argon2',\n\n bcrypt: {\n rounds: 10,\n cost: 4, // number between 4-31\n },\n\n argon2: {\n memory: 65536, // memory usage in kibibytes\n threads: 1,\n time: 1, // the number of iterations\n },\n} satisfies HashingConfig\n",
|
|
149
|
-
"import type { LibraryConfig } from '@stacksjs/types'\n\n/**\n * **Library Configuration**\n *\n * This configuration defines all of your library options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n name: 'hello-world',\n owner: '@stacksjs', // you may or may not add the @ prefix here (it is added automatically)\n repository: 'stacksjs/stacks',\n license: 'MIT',\n author: 'Chris Breuer',\n contributors: ['Chris Breuer <chris@stacksjs.org>'],\n defaultLanguage: 'en',\n releaseable: true,\n\n vueComponents: {\n name: 'hello-world-vue',\n description: 'Your Vue component library description',\n keywords: ['component', 'library', 'vue', 'vite', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n webComponents: {\n name: 'hello-world-elements',\n description: 'Your framework agnostic web component library description.',\n keywords: ['custom-elements', 'web-components', 'library', 'framework-agnostic', 'typescript', 'javascript'],\n tags: [\n {\n name: ['HelloWorld', 'AppHelloWorld'],\n description: 'The Hello World custom element, built via this framework.',\n attributes: [\n {\n name: 'greeting',\n description: 'The greeting.',\n },\n ],\n },\n ],\n },\n\n functions: {\n name: 'hello-world-fx',\n description: 'Your function library description.',\n keywords: ['functions', 'composables', 'library', 'typescript', 'javascript'],\n shouldGenerateSourcemap: false,\n files: ['counter', 'dark'],\n },\n} satisfies LibraryConfig\n",
|
|
150
|
-
"import type { LoggingConfig } from '@stacksjs/types'\nimport { storagePath } from '@stacksjs/path'\n\n/**\n * **Logging Configuration**\n *\n * This configuration defines all of your logging options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n /**\n * **Log File Path**\n *\n * The path to the log file. This will be used to write logs to a file. If you do not want to\n * write logs to a file, you may set this to `null`.\n *\n * @default 'storage/logs/stacks.log'\n */\n logsPath: storagePath('logs/stacks.log'),\n\n /**\n * **Deployments Path**\n *\n * The path to the deployments folder. This will be used to write deployment logs to a file.\n * If you do not want to write deployment logs to a file, you may set this to `null`.\n *\n * @default 'storage/logs/deployments.log'\n */\n deploymentsPath: storagePath('logs/deployments.log'),\n} satisfies LoggingConfig\n",
|
|
151
|
-
"import type { NotificationConfig } from '@stacksjs/types'\n\n/**\n * **Notification Configuration**\n *\n * This configuration defines all of your notification options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'email',\n} satisfies NotificationConfig\n",
|
|
152
|
-
"import type { PaymentConfig } from '@stacksjs/types'\n\n/**\n * **Payment Configuration**\n *\n * This configuration defines all of your Payment options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'stripe',\n\n // wip\n} satisfies PaymentConfig\n",
|
|
153
|
-
"import type { Ports } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Stacks Ports**\n *\n * This configuration defines all of your Stacks Ports. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n frontend: env.PORT ?? 3000,\n backend: env.PORT_BACKEND ?? 3001,\n admin: env.PORT_ADMIN ?? 3002,\n library: env.PORT_LIBRARY ?? 3003,\n desktop: env.PORT_DESKTOP ?? 3004,\n email: env.PORT_EMAIL ?? 3005,\n docs: env.PORT_DOCS ?? 3006,\n inspect: env.PORT_INSPECT ?? 3007,\n api: env.PORT_API ?? 3008,\n systemTray: env.PORT_SYSTEM_TRAY ?? 3009,\n database: 3010,\n} satisfies Ports\n",
|
|
154
|
-
"import type { QueueConfig } from '@stacksjs/types'\n\n/**\n * **Queue Options**\n *\n * This configuration defines all of your search engine options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n default: 'sync',\n\n connections: {\n sync: {\n driver: 'sync',\n },\n\n // database: {\n // driver: 'database',\n // table: 'jobs',\n // queue: 'default',\n // },\n\n // redis: {\n // driver: 'redis',\n // connection: 'default',\n // queue: 'default',\n // },\n\n sqs: {\n driver: 'sqs',\n key: '', // set this if you\n secret: '',\n prefix: '',\n suffix: '',\n queue: 'default',\n region: 'us-east-1',\n },\n },\n} satisfies QueueConfig\n",
|
|
155
|
-
"import type { SearchEngineConfig } from '@stacksjs/types'\n\n/**\n * **Search Engine Options**\n *\n * This configuration defines all of your search engine options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 'opensearch',\n} satisfies SearchEngineConfig\n",
|
|
156
|
-
"import type { ServicesConfig } from '@stacksjs/types'\nimport { env } from '@stacksjs/env'\n\n/**\n * **Services**\n *\n * This configuration defines all of your services. Because Stacks is fully-typed, you may\n * hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n aws: {\n accountId: env.AWS_ACCOUNT_ID || '',\n appId: env.AWS_ACCESS_KEY_ID || '',\n apiKey: env.AWS_SECRET_ACCESS_KEY || '',\n region: env.AWS_DEFAULT_REGION || 'us-east-1',\n },\n\n algolia: {\n appId: '',\n apiKey: '',\n },\n\n meilisearch: {\n appId: '',\n apiKey: '',\n },\n\n lemonSqueezy: {\n appId: '',\n apiKey: '',\n },\n\n stripe: {\n appId: '',\n apiKey: '',\n },\n} satisfies ServicesConfig\n",
|
|
157
|
-
"import type { StorageConfig } from '@stacksjs/types'\n\n/**\n * **Storage Options**\n *\n * This configuration defines all of your storage options. Because Stacks is fully-typed,\n * you may hover any of the options below and the definitions will be provided. In case\n * you have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n driver: 's3',\n} satisfies StorageConfig\n",
|
|
158
|
-
"import type { Team } from '@stacksjs/types'\n\n/**\n * **Team Members**\n *\n * This configuration defines all of your team members. The key is the name of the team member\n * and the value is their email address. This will automatically generate IAM permissions\n * for each team member, email them their credentials, and add them to the team.\n */\nexport default {\n name: 'Stacks',\n\n members: {\n chris: 'chris@stacksjs.org',\n blake: 'blake@stacksjs.org',\n zoltan: 'zoltan@stacksjs.org',\n freddy: 'freddy@stacksjs.org',\n glenn: 'glenn@stacksjs.org',\n dorell: 'dorell@stacksjs.org',\n avery: 'avery@stacksjs.org',\n adelino: 'adelino@stacksjs.org',\n },\n} satisfies Team\n",
|
|
159
|
-
"import type { UiConfig } from '@stacksjs/types'\n\n/**\n * **UI Engine Options**\n *\n * This configuration defines all of your UI Engine options. Because Stacks is fully-typed, you\n * may hover any of the options below and the definitions will be provided. In case you\n * have any questions, feel free to reach out via Discord or GitHub Discussions.\n */\nexport default {\n shortcuts: [\n [\n 'btn',\n 'inline-flex items-center px-4 py-2 ml-2 border border-transparent shadow-sm text-base font-medium rounded-md text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 cursor-pointer',\n ],\n ],\n\n safelist: 'prose prose-sm m-auto text-left',\n trigger: ':stx:',\n classPrefix: 'stx-',\n reset: 'tailwind',\n\n icons: ['heroicons'],\n\n fonts: {\n email: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n desktop: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n mobile: {\n title: 'Mona',\n text: 'Hubot',\n },\n\n web: {\n title: 'Mona',\n text: 'Hubot',\n },\n },\n\n theme: {\n // ...\n colors: {\n veryCool: '#0000ff', // class=\"text-very-cool\"\n brand: {\n primary: 'hsl(var(--hue, 217) 78% 51%)', // class=\"bg-brand-primary\"\n },\n },\n },\n} satisfies UiConfig\n",
|
|
160
|
-
"import type { StacksConfig } from '@stacksjs/types'\nimport ai from '~/config/ai'\nimport analytics from '~/config/analytics'\nimport app from '~/config/app'\nimport cache from '~/config/cache'\nimport cli from '~/config/cli'\nimport cloud from '~/config/cloud'\nimport database from '~/config/database'\nimport dns from '~/config/dns'\nimport email from '~/config/email'\nimport errors from '~/config/errors'\nimport git from '~/config/git'\nimport hashing from '~/config/hashing'\nimport library from '~/config/library'\nimport logging from '~/config/logging'\nimport notification from '~/config/notification'\nimport payment from '~/config/payment'\nimport ports from '~/config/ports'\nimport queue from '~/config/queue'\nimport searchEngine from '~/config/search-engine'\nimport security from '~/config/security'\nimport services from '~/config/services'\nimport storage from '~/config/storage'\nimport team from '~/config/team'\nimport ui from '~/config/ui'\n// import docs from '~/docs/config'\n\nconst config: StacksConfig = {\n ai,\n analytics,\n app,\n cache,\n cli,\n cloud,\n database,\n dns,\n // docs,\n email,\n errors,\n git,\n hashing,\n library,\n logging,\n notification,\n queue,\n payment,\n ports,\n searchEngine,\n security,\n services,\n storage,\n team,\n ui,\n}\n\nexport default config\n",
|
|
161
|
-
"import type { StacksOptions } from '@stacksjs/types'\nimport defaults from './defaults'\nimport overrides from './overrides'\n\n// merged defaults and overrides\nexport const config: StacksOptions = {\n ...defaults,\n ...overrides,\n}\n\nexport const ai: StacksOptions['ai'] = config.ai\nexport const analytics: StacksOptions['analytics'] = config.analytics\nexport const app: StacksOptions['app'] = config.app\nexport const cache: StacksOptions['cache'] = config.cache\nexport const cloud: StacksOptions['cloud'] = config.cloud\nexport const cli: StacksOptions['cli'] = config.cli\nexport const database: StacksOptions['database'] = config.database\nexport const dns: StacksOptions['dns'] = config.dns\nexport const docs: StacksOptions['docs'] = config.docs\nexport const email: StacksOptions['email'] = config.email\nexport const errors: StacksOptions['errors'] = config.errors\nexport const git: StacksOptions['git'] = config.git\nexport const hashing: StacksOptions['hashing'] = config.hashing\nexport const library: StacksOptions['library'] = config.library\nexport const logging: StacksOptions['logging'] = config.logging\nexport const notification: StacksOptions['notification'] = config.notification\nexport const payment: StacksOptions['payment'] = config.payment\nexport const ports: StacksOptions['ports'] = config.ports\nexport const queue: StacksOptions['queue'] = config.queue\nexport const security: StacksOptions['security'] = config.security\nexport const searchEngine: StacksOptions['searchEngine'] = config.searchEngine\nexport const services: StacksOptions['services'] = config.services\nexport const storage: StacksOptions['storage'] = config.storage\nexport const team: StacksOptions['team'] = config.team\nexport const ui: StacksOptions['ui'] = config.ui\n\nexport { defaults, overrides }\n\nexport * from './helpers'\n\nexport function determineAppEnv(): string {\n if (app.env === 'local')\n return 'dev'\n if (app.env === 'development')\n return 'dev'\n if (app.env === 'staging')\n return 'stage'\n if (app.env === 'production')\n return 'prod'\n\n if (!app.env)\n throw new Error('Couldn\\'t determine app environment')\n\n return app.env\n}\n",
|
|
162
|
-
"const defaultErrorConfig = {\r\n withStackTrace: false,\r\n};\r\n// Custom error object\r\n// Context / discussion: https://github.com/supermacro/neverthrow/pull/215\r\nconst createNeverThrowError = (message, result, config = defaultErrorConfig) => {\r\n const data = result.isOk()\r\n ? { type: 'Ok', value: result.value }\r\n : { type: 'Err', value: result.error };\r\n const maybeStack = config.withStackTrace ? new Error().stack : undefined;\r\n return {\r\n data,\r\n message,\r\n stack: maybeStack,\r\n };\r\n};\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\n\r\nfunction __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, [])).next());\r\n });\r\n}\r\n\r\nfunction __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nfunction __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nfunction __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nfunction __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nfunction __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\n\nclass ResultAsync {\r\n constructor(res) {\r\n this._promise = res;\r\n }\r\n static fromSafePromise(promise) {\r\n const newPromise = promise.then((value) => new Ok(value));\r\n return new ResultAsync(newPromise);\r\n }\r\n static fromPromise(promise, errorFn) {\r\n const newPromise = promise\r\n .then((value) => new Ok(value))\r\n .catch((e) => new Err(errorFn(e)));\r\n return new ResultAsync(newPromise);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n static fromThrowable(fn, errorFn) {\r\n return (...args) => {\r\n return new ResultAsync((() => __awaiter(this, void 0, void 0, function* () {\r\n try {\r\n return new Ok(yield fn(...args));\r\n }\r\n catch (error) {\r\n return new Err(errorFn ? errorFn(error) : error);\r\n }\r\n }))());\r\n };\r\n }\r\n static combine(asyncResultList) {\r\n return combineResultAsyncList(asyncResultList);\r\n }\r\n static combineWithAllErrors(asyncResultList) {\r\n return combineResultAsyncListWithAllErrors(asyncResultList);\r\n }\r\n map(f) {\r\n return new ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {\r\n if (res.isErr()) {\r\n return new Err(res.error);\r\n }\r\n return new Ok(yield f(res.value));\r\n })));\r\n }\r\n andThrough(f) {\r\n return new ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {\r\n if (res.isErr()) {\r\n return new Err(res.error);\r\n }\r\n const newRes = yield f(res.value);\r\n if (newRes.isErr()) {\r\n return new Err(newRes.error);\r\n }\r\n return new Ok(res.value);\r\n })));\r\n }\r\n andTee(f) {\r\n return new ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {\r\n if (res.isErr()) {\r\n return new Err(res.error);\r\n }\r\n try {\r\n yield f(res.value);\r\n }\r\n catch (e) {\r\n // Tee does not care about the error\r\n }\r\n return new Ok(res.value);\r\n })));\r\n }\r\n mapErr(f) {\r\n return new ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {\r\n if (res.isOk()) {\r\n return new Ok(res.value);\r\n }\r\n return new Err(yield f(res.error));\r\n })));\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n andThen(f) {\r\n return new ResultAsync(this._promise.then((res) => {\r\n if (res.isErr()) {\r\n return new Err(res.error);\r\n }\r\n const newValue = f(res.value);\r\n return newValue instanceof ResultAsync ? newValue._promise : newValue;\r\n }));\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n orElse(f) {\r\n return new ResultAsync(this._promise.then((res) => __awaiter(this, void 0, void 0, function* () {\r\n if (res.isErr()) {\r\n return f(res.error);\r\n }\r\n return new Ok(res.value);\r\n })));\r\n }\r\n match(ok, _err) {\r\n return this._promise.then((res) => res.match(ok, _err));\r\n }\r\n unwrapOr(t) {\r\n return this._promise.then((res) => res.unwrapOr(t));\r\n }\r\n /**\r\n * Emulates Rust's `?` operator in `safeTry`'s body. See also `safeTry`.\r\n */\r\n safeUnwrap() {\r\n return __asyncGenerator(this, arguments, function* safeUnwrap_1() {\r\n return yield __await(yield __await(yield* __asyncDelegator(__asyncValues(yield __await(this._promise.then((res) => res.safeUnwrap()))))));\r\n });\r\n }\r\n // Makes ResultAsync implement PromiseLike<Result>\r\n then(successCallback, failureCallback) {\r\n return this._promise.then(successCallback, failureCallback);\r\n }\r\n}\r\nconst okAsync = (value) => new ResultAsync(Promise.resolve(new Ok(value)));\r\nconst errAsync = (err) => new ResultAsync(Promise.resolve(new Err(err)));\r\nconst fromPromise = ResultAsync.fromPromise;\r\nconst fromSafePromise = ResultAsync.fromSafePromise;\r\nconst fromAsyncThrowable = ResultAsync.fromThrowable;\n\n/**\r\n * Short circuits on the FIRST Err value that we find\r\n */\r\nconst combineResultList = (resultList) => {\r\n let acc = ok([]);\r\n for (const result of resultList) {\r\n if (result.isErr()) {\r\n acc = err(result.error);\r\n break;\r\n }\r\n else {\r\n acc.map((list) => list.push(result.value));\r\n }\r\n }\r\n return acc;\r\n};\r\n/* This is the typesafe version of Promise.all\r\n *\r\n * Takes a list of ResultAsync<T, E> and success if all inner results are Ok values\r\n * or fails if one (or more) of the inner results are Err values\r\n */\r\nconst combineResultAsyncList = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultList);\r\n/**\r\n * Give a list of all the errors we find\r\n */\r\nconst combineResultListWithAllErrors = (resultList) => {\r\n let acc = ok([]);\r\n for (const result of resultList) {\r\n if (result.isErr() && acc.isErr()) {\r\n acc.error.push(result.error);\r\n }\r\n else if (result.isErr() && acc.isOk()) {\r\n acc = err([result.error]);\r\n }\r\n else if (result.isOk() && acc.isOk()) {\r\n acc.value.push(result.value);\r\n }\r\n // do nothing when result.isOk() && acc.isErr()\r\n }\r\n return acc;\r\n};\r\nconst combineResultAsyncListWithAllErrors = (asyncResultList) => ResultAsync.fromSafePromise(Promise.all(asyncResultList)).andThen(combineResultListWithAllErrors);\n\n// eslint-disable-next-line @typescript-eslint/no-namespace\r\nvar Result;\r\n(function (Result) {\r\n /**\r\n * Wraps a function with a try catch, creating a new function with the same\r\n * arguments but returning `Ok` if successful, `Err` if the function throws\r\n *\r\n * @param fn function to wrap with ok on success or err on failure\r\n * @param errorFn when an error is thrown, this will wrap the error result if provided\r\n */\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\r\n function fromThrowable(fn, errorFn) {\r\n return (...args) => {\r\n try {\r\n const result = fn(...args);\r\n return ok(result);\r\n }\r\n catch (e) {\r\n return err(errorFn ? errorFn(e) : e);\r\n }\r\n };\r\n }\r\n Result.fromThrowable = fromThrowable;\r\n function combine(resultList) {\r\n return combineResultList(resultList);\r\n }\r\n Result.combine = combine;\r\n function combineWithAllErrors(resultList) {\r\n return combineResultListWithAllErrors(resultList);\r\n }\r\n Result.combineWithAllErrors = combineWithAllErrors;\r\n})(Result || (Result = {}));\r\nconst ok = (value) => new Ok(value);\r\nfunction err(err) {\r\n return new Err(err);\r\n}\r\nfunction safeTry(body) {\r\n const n = body().next();\r\n if (n instanceof Promise) {\r\n return new ResultAsync(n.then((r) => r.value));\r\n }\r\n return n.value;\r\n}\r\nclass Ok {\r\n constructor(value) {\r\n this.value = value;\r\n }\r\n isOk() {\r\n return true;\r\n }\r\n isErr() {\r\n return !this.isOk();\r\n }\r\n map(f) {\r\n return ok(f(this.value));\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n mapErr(_f) {\r\n return ok(this.value);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n andThen(f) {\r\n return f(this.value);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n andThrough(f) {\r\n return f(this.value).map((_value) => this.value);\r\n }\r\n andTee(f) {\r\n try {\r\n f(this.value);\r\n }\r\n catch (e) {\r\n // Tee doesn't care about the error\r\n }\r\n return ok(this.value);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n orElse(_f) {\r\n return ok(this.value);\r\n }\r\n asyncAndThen(f) {\r\n return f(this.value);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n asyncAndThrough(f) {\r\n return f(this.value).map(() => this.value);\r\n }\r\n asyncMap(f) {\r\n return ResultAsync.fromSafePromise(f(this.value));\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n unwrapOr(_v) {\r\n return this.value;\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n match(ok, _err) {\r\n return ok(this.value);\r\n }\r\n safeUnwrap() {\r\n const value = this.value;\r\n /* eslint-disable-next-line require-yield */\r\n return (function* () {\r\n return value;\r\n })();\r\n }\r\n _unsafeUnwrap(_) {\r\n return this.value;\r\n }\r\n _unsafeUnwrapErr(config) {\r\n throw createNeverThrowError('Called `_unsafeUnwrapErr` on an Ok', this, config);\r\n }\r\n}\r\nclass Err {\r\n constructor(error) {\r\n this.error = error;\r\n }\r\n isOk() {\r\n return false;\r\n }\r\n isErr() {\r\n return !this.isOk();\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n map(_f) {\r\n return err(this.error);\r\n }\r\n mapErr(f) {\r\n return err(f(this.error));\r\n }\r\n andThrough(_f) {\r\n return err(this.error);\r\n }\r\n andTee(_f) {\r\n return err(this.error);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n andThen(_f) {\r\n return err(this.error);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types\r\n orElse(f) {\r\n return f(this.error);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n asyncAndThen(_f) {\r\n return errAsync(this.error);\r\n }\r\n asyncAndThrough(_f) {\r\n return errAsync(this.error);\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\r\n asyncMap(_f) {\r\n return errAsync(this.error);\r\n }\r\n unwrapOr(v) {\r\n return v;\r\n }\r\n match(_ok, err) {\r\n return err(this.error);\r\n }\r\n safeUnwrap() {\r\n const error = this.error;\r\n return (function* () {\r\n yield err(error);\r\n throw new Error('Do not use this generator out of `safeTry`');\r\n })();\r\n }\r\n _unsafeUnwrap(config) {\r\n throw createNeverThrowError('Called `_unsafeUnwrap` on an Err', this, config);\r\n }\r\n _unsafeUnwrapErr(_) {\r\n return this.error;\r\n }\r\n}\r\nconst fromThrowable = Result.fromThrowable;\r\n//#endregion\n\nexport { Err, Ok, Result, ResultAsync, err, errAsync, fromAsyncThrowable, fromPromise, fromSafePromise, fromThrowable, ok, okAsync, safeTry };\n",
|
|
163
|
-
"export { a as consola, c as createConsola, a as default } from './shared/consola.36c0034f.mjs';\nexport { Consola, LogLevels, LogTypes } from './core.mjs';\nimport './shared/consola.06ad8a64.mjs';\nimport 'node:process';\nimport './utils.mjs';\nimport 'node:tty';\nimport 'node:util';\nimport 'node:path';\n",
|
|
164
|
-
"import { log } from '@stacksjs/logging'\nimport prompts from 'prompts'\n\nexport { log, prompts }\n",
|
|
165
|
-
"/* eslint-disable ts/no-unsafe-function-type,eqeqeq,ts/no-use-before-define,unused-imports/no-unused-vars,no-prototype-builtins, no-console */\nimport process from 'node:process'\nimport { clone, deleteKeys, isArray, isFunction, isObject, nestedValue, values } from './helpers/'\n\ntype IsArray<T> = T extends any[] ? true : false\ntype CollectionAll<T> = IsArray<T> extends true ? T : { [K in keyof T]: T[K] }\n\nexport function collect<T extends object | string | number | boolean>(items: T): Collection<T> {\n return new Collection(items)\n}\n\nexport class Collection<T> {\n protected items: T[] | Record<string, T>\n\n constructor(items: T[] | Record<string | number | symbol, T> = []) {\n this.items = items\n }\n\n [Symbol.iterator] = SymbolIterator\n\n toJSON(): T[] {\n return this.items as T[]\n }\n\n all(): CollectionAll<T> {\n return this.items as CollectionAll<T>\n }\n\n average(key?: string | ((item: T) => number)): number {\n if (key === undefined) {\n return this.sum() / Number(this.items.length)\n }\n\n if (isFunction(key)) {\n return (\n Number(new (this.constructor as new (items: typeof this.items) => typeof this)(this.items).sum(key))\n / Number(this.items.length)\n )\n }\n\n return (\n Number(new (this.constructor as new (items: typeof this.items) => typeof this)(this.items).pluck(key).sum())\n / Number(this.items.length)\n )\n }\n\n avg: typeof this.average = this.average\n\n chunk(size: number): Collection<T[]> {\n const chunks = []\n const items = Array.isArray(this.items) ? this.items : Object.values(this.items)\n\n for (let i = 0; i < items.length; i += size) {\n chunks.push(items.slice(i, i + size))\n }\n\n return new Collection(chunks)\n }\n\n collapse(): Collection<T extends any[] ? T[number] : T> {\n return new (this.constructor as any)(([] as T[]).concat(...(this.items as any[])))\n }\n\n combine(values: any): Collection<T> {\n if (typeof values === 'string') {\n values = [values]\n }\n\n if (!Array.isArray(values)) {\n throw new TypeError('The values must be an array or a string')\n }\n\n const collection = {}\n const keys = Array.isArray(this.items) ? this.items : Object.keys(this.items)\n\n keys.forEach((key, index) => {\n if (values[index] !== undefined) {\n collection[key] = values[index]\n }\n })\n\n return new Collection(collection)\n }\n\n concat(collectionOrArrayOrObject: Collection<T> | T[] | object): Collection<T> {\n let list = collectionOrArrayOrObject\n\n if (collectionOrArrayOrObject instanceof this.constructor) {\n list = collectionOrArrayOrObject.all()\n }\n else if (typeof collectionOrArrayOrObject === 'object') {\n list = []\n Object.keys(collectionOrArrayOrObject).forEach((property) => {\n list.push(collectionOrArrayOrObject[property])\n })\n }\n\n const collection = clone(this.items)\n\n list.forEach((item) => {\n if (typeof item === 'object') {\n Object.keys(item).forEach(key => collection.push(item[key]))\n }\n else {\n collection.push(item)\n }\n })\n\n return new this.constructor(collection)\n }\n\n contains(key: T extends (infer U)[] ? U : T | string | ((item: T, index: number) => boolean), value?: any): boolean {\n if (typeof key === 'function') {\n return this.items.some(key as (item: T, index: number) => boolean)\n }\n\n if (Array.isArray(this.items)) {\n return (this.items as any[]).includes(key as any)\n }\n\n if (value !== undefined) {\n if (Array.isArray(this.items)) {\n return this.items.some(item => item[key as keyof T] !== undefined && item[key as keyof T] === value)\n }\n\n return (\n (key as string | number | symbol) in this.items\n && (this.items as Record<keyof T, any>)[key as keyof T] === value\n )\n }\n\n if (Array.isArray(this.items)) {\n return this.items.includes(key as T extends (infer U)[] ? U : never)\n }\n\n return Object.values(this.items).includes(key as T extends object ? T[keyof T] : never)\n }\n\n containsOneItem(): boolean {\n if (typeof this.items === 'string') {\n return true\n }\n\n return Object.keys(this.items).length === 1\n }\n\n count(predicate?: (item: T) => boolean): number {\n if (predicate) {\n return this.filter(predicate).count()\n }\n\n return Object.keys(this.items).length\n }\n\n countBy(callback?: (item: T) => string | number): Collection<number> {\n const counts: Record<string | number, number> = {}\n this.each((item) => {\n const key = callback ? callback(item) : item\n counts[key] = (counts[key] || 0) + 1\n })\n return new Collection(counts)\n }\n\n crossJoin(...values: T[]): Collection<T> {\n function join(collection: T[], constructor: new (items: T[]) => Collection<T>, args: T[]): T[] {\n let current = args[0]\n\n if (current instanceof Collection) {\n current = current.all()\n }\n\n const rest = args.slice(1)\n const last = !rest.length\n let result = []\n\n for (let i = 0; i < current.length; i += 1) {\n const collectionCopy = collection.slice()\n collectionCopy.push(current[i])\n\n if (last) {\n result.push(collectionCopy)\n }\n else {\n result = result.concat(join(collectionCopy, constructor, rest))\n }\n }\n\n return result\n }\n\n return new this.constructor(join([], this.constructor, [].concat([this.items], values)))\n }\n\n dd(): void {\n console.log(JSON.stringify(this.all(), null, 2))\n process.exit()\n }\n\n diff(values: Collection<T> | T[]): Collection<T> {\n let valuesToDiff\n\n if (values instanceof this.constructor) {\n valuesToDiff = values.all()\n }\n else {\n valuesToDiff = values\n }\n\n const collection = this.items.filter(item => !valuesToDiff.includes(item))\n\n return new this.constructor(collection)\n }\n\n diffAssoc(values: Collection<T> | T[]): Collection<T> {\n let diffValues = values\n\n if (values instanceof this.constructor) {\n diffValues = values.all()\n }\n\n const collection = {}\n\n Object.keys(this.items).forEach((key) => {\n if (diffValues[key] === undefined || diffValues[key] !== this.items[key]) {\n collection[key] = this.items[key]\n }\n })\n\n return new this.constructor(collection)\n }\n\n diffKeys(object: Collection<T> | T[]): Collection<T> {\n let objectToDiff\n\n if (object instanceof this.constructor) {\n objectToDiff = object.all()\n }\n else {\n objectToDiff = object\n }\n\n const objectKeys = Object.keys(objectToDiff)\n\n const remainingKeys = Object.keys(this.items).filter(item => !objectKeys.includes(item))\n\n return new this.constructor(this.items).only(remainingKeys)\n }\n\n diffUsing(array: any[] | null, callback: (a: any, b: any) => number): Collection<T> {\n console.log('Original collection:', this.items)\n\n console.log('Array to compare:', array)\n\n if (array === null) {\n // If the input array is null, return a copy of the original collection\n return new Collection(this.items)\n }\n\n const collection = this.items.filter((item) => {\n const index = array.findIndex((otherItem) => {\n return callback(item, otherItem) === 0\n })\n\n return index === -1\n })\n\n return new Collection(collection)\n }\n\n doesntContain(key: string | number | symbol | ((item: T, index: number) => boolean), value?: any): boolean {\n console.log('doesntContain called with:', { key, value })\n\n if (typeof key === 'function') {\n console.log('Function branch')\n return !this.contains(key)\n }\n\n if (value !== undefined) {\n console.log('Key-value pair branch')\n return !this.contains((item) => {\n console.log('Comparing:', item[key], 'with', value)\n return item[key] === value\n })\n }\n\n console.log('Single value branch')\n return !this.contains(key)\n }\n\n dump(): this {\n console.log(this.items)\n return this\n }\n\n duplicates(): Collection<T> {\n const occuredValues = []\n const duplicateValues = {}\n\n const stringifiedValue = (value: any): string => {\n if (Array.isArray(value) || typeof value === 'object') {\n return JSON.stringify(value)\n }\n\n return value\n }\n\n if (Array.isArray(this.items)) {\n this.items.forEach((value, index) => {\n const valueAsString = stringifiedValue(value)\n\n if (!occuredValues.includes(valueAsString)) {\n occuredValues.push(valueAsString)\n }\n else {\n duplicateValues[index] = value\n }\n })\n }\n else if (typeof this.items === 'object') {\n Object.keys(this.items).forEach((key) => {\n const valueAsString = stringifiedValue(this.items[key])\n\n if (!occuredValues.includes(valueAsString)) {\n occuredValues.push(valueAsString)\n }\n else {\n duplicateValues[key] = this.items[key]\n }\n })\n }\n\n return new this.constructor(duplicateValues)\n }\n\n each(fn: (item: T, index: number | string, items: T[]) => boolean | void): Collection<T> {\n let stop = false\n\n if (Array.isArray(this.items)) {\n const { length } = this.items\n\n for (let index = 0; index < length && !stop; index += 1) {\n stop = fn(this.items[index], index, this.items) === false\n }\n }\n else {\n const keys = Object.keys(this.items)\n const { length } = keys\n\n for (let index = 0; index < length && !stop; index += 1) {\n const key = keys[index]\n\n stop = fn(this.items[key], key, this.items) === false\n }\n }\n\n return this\n }\n\n eachSpread(fn: (...args: any[]) => void): Collection<T> {\n this.each((values: any, key: any) => {\n fn(...values, key)\n })\n\n return this\n }\n\n every(fn: (value: T, key: string | number, collection: T[]) => boolean): boolean {\n const items = values(this.items)\n\n return items.every(fn)\n }\n\n except(keys: string | string[]): Collection<T> {\n const result = { ...this.items }\n const keysArray = Array.isArray(keys) ? keys : [keys]\n keysArray.forEach(key => delete result[key])\n return new Collection(result)\n }\n\n filter(callback?: (item: T, index: number) => boolean): Collection<T> {\n console.log('Filter method called with callback:', callback)\n\n console.log('Current items:', this.items)\n\n if (typeof callback !== 'function') {\n console.log('No callback provided, removing falsy values')\n const filteredItems = this.items.filter((item) => {\n console.log('Filtering item:', item)\n return Boolean(item)\n })\n\n console.log('Filtered items:', filteredItems)\n return new Collection(filteredItems)\n }\n\n const filteredItems = this.items.filter((item, index) => {\n console.log('Filtering item:', item, 'at index:', index)\n return callback(item, index)\n })\n\n console.log('Filtered items:', filteredItems)\n return new Collection(filteredItems)\n }\n\n first(\n fn?: (value: T, key: string | number, collection?: T[]) => boolean,\n defaultValue?: T | (() => T),\n ): T | undefined {\n if (isFunction(fn)) {\n const keys = Object.keys(this.items)\n\n for (let i = 0; i < keys.length; i += 1) {\n const key = keys[i]\n const item = this.items[key]\n\n if (fn(item, key)) {\n return item\n }\n }\n\n if (isFunction(defaultValue)) {\n return defaultValue()\n }\n\n return defaultValue\n }\n\n if ((Array.isArray(this.items) && this.items.length) || Object.keys(this.items).length) {\n if (Array.isArray(this.items)) {\n return this.items[0]\n }\n\n const firstKey = Object.keys(this.items)[0]\n\n return this.items[firstKey]\n }\n\n if (isFunction(defaultValue)) {\n return defaultValue()\n }\n\n return defaultValue\n }\n\n firstOrFail(callback?: (item: T) => boolean): T {\n const found = this.items.find(callback || (() => true))\n if (found === undefined) {\n throw new Error('Item not found.')\n }\n return found\n }\n\n firstWhere(key: string, operator: string, value: any): T | null {\n return this.where(key, operator, value).first() || null\n }\n\n flatMap(fn: (item: T, key: string | number) => any): Collection<any> {\n return this.map(fn).collapse()\n }\n\n flatten(depth: number = Number.POSITIVE_INFINITY): Collection<T> {\n const flatten = (item: any, d: number): any[] => {\n if (!Array.isArray(item) && typeof item !== 'object') {\n return [item]\n }\n return d > 0\n ? Object.values(item).reduce(\n (acc, val) => acc.concat(Array.isArray(val) || typeof val === 'object' ? flatten(val, d - 1) : val),\n [],\n )\n : Array.isArray(item)\n ? [...item]\n : [item]\n }\n\n return new Collection(flatten(this.items, depth))\n }\n\n flip(): Collection<T> {\n const flipped = {}\n if (Array.isArray(this.items)) {\n this.items.forEach((value, index) => {\n flipped[value] = index\n })\n }\n else {\n Object.entries(this.items).forEach(([key, value]) => {\n flipped[value] = key\n })\n }\n return new this.constructor(flipped)\n }\n\n forPage(page: number, chunk: number): Collection<T> {\n let collection = {}\n\n if (Array.isArray(this.items)) {\n collection = this.items.slice(page * chunk - chunk, page * chunk)\n }\n else {\n Object.keys(this.items)\n .slice(page * chunk - chunk, page * chunk)\n .forEach((key) => {\n collection[key] = this.items[key]\n })\n }\n\n return new this.constructor(collection)\n }\n\n forget(key: string): Collection<T> {\n if (Array.isArray(this.items)) {\n this.items = this.items.filter((item, index) => index !== Number.parseInt(key, 10))\n }\n else if (typeof this.items === 'object' && this.items !== null) {\n delete this.items[key]\n }\n\n return this\n }\n\n get(key: string | number, defaultValue: T | null = null): T | null {\n if (Array.isArray(this.items)) {\n return this.items[key as number] ?? defaultValue\n }\n\n return (this.items as Record<string, T>)[key as string] ?? defaultValue\n }\n\n groupBy(fn: ((item: T) => any) | string): Collection<Collection<T>> {\n const groups = {}\n this.each((item, key) => {\n const groupKey = typeof fn === 'function' ? fn(item) : item[fn]\n if (!(groupKey in groups)) {\n groups[groupKey] = new Collection()\n }\n groups[groupKey].push(item)\n })\n\n return new Collection(groups)\n }\n\n has(key: string | number): boolean {\n if (Array.isArray(this.items)) {\n return key in this.items\n }\n\n return key in (this.items as Record<string, T>)\n }\n\n implode(key: string, glue?: string): string {\n if (glue === undefined) {\n return this.items.join(key)\n }\n\n return new this.constructor(this.items).pluck(key).all().join(glue)\n }\n\n includes(key: T | T[keyof T]): boolean {\n if (Array.isArray(this.items)) {\n return this.items.includes(key as T)\n }\n\n return Object.values(this.items).includes(key)\n }\n\n intersect(values: Collection<T> | T[]): Collection<T> {\n let intersectValues = values\n\n if (values instanceof this.constructor) {\n intersectValues = values.all()\n }\n\n const collection = this.items.filter(item => intersectValues.includes(item))\n\n return new this.constructor(collection)\n }\n\n intersectByKeys(values: Collection<T> | T[]): Collection<T> {\n let intersectKeys = Object.keys(values)\n\n if (values instanceof this.constructor) {\n intersectKeys = Object.keys(values.all())\n }\n\n const collection = {}\n\n Object.keys(this.items).forEach((key) => {\n if (intersectKeys.includes(key)) {\n collection[key] = this.items[key]\n }\n })\n\n return new this.constructor(collection)\n }\n\n isEmpty(): boolean {\n return this.count() === 0\n }\n\n isNotEmpty(): boolean {\n return !this.isEmpty()\n }\n\n join(glue: string, finalGlue?: string): string {\n const collection = this.values()\n\n if (finalGlue === undefined) {\n return collection.implode(glue)\n }\n\n const count = collection.count()\n\n if (count === 0) {\n return ''\n }\n\n if (count === 1) {\n return collection.last()\n }\n\n const finalItem = collection.pop()\n\n return collection.implode(glue) + finalGlue + finalItem\n }\n\n keyBy(key: string | ((item: T) => string)): Collection<T> {\n const collection = {}\n\n if (isFunction(key)) {\n this.items.forEach((item) => {\n collection[key(item)] = item\n })\n }\n else {\n this.items.forEach((item) => {\n const keyValue = nestedValue(item, key)\n\n collection[keyValue || ''] = item\n })\n }\n\n return new this.constructor(collection)\n }\n\n keys(): Collection<string> {\n return new Collection(Object.keys(this.items))\n }\n\n last(fn?: (item: T) => boolean, defaultValue?: T | (() => T)): T {\n let { items } = this\n\n if (isFunction(fn)) {\n items = this.filter(fn).all()\n }\n\n if ((Array.isArray(items) && !items.length) || !Object.keys(items).length) {\n if (isFunction(defaultValue)) {\n return defaultValue()\n }\n\n return defaultValue\n }\n\n if (Array.isArray(items)) {\n return items[items.length - 1]\n }\n const keys = Object.keys(items)\n\n return items[keys[keys.length - 1]]\n }\n\n macro(name: string, fn: Function): void {\n this.constructor.prototype[name] = fn\n }\n\n make(items: T[] = []): Collection<T> {\n return new this.constructor(items)\n }\n\n map(fn: (item: T, index: number) => any): Collection<any> {\n if (Array.isArray(this.items)) {\n return new this.constructor(this.items.map(fn))\n }\n\n const collection = {}\n\n Object.keys(this.items).forEach((key) => {\n collection[key] = fn(this.items[key], Number(key))\n })\n\n return new this.constructor(collection)\n }\n\n mapSpread(fn: (...args: any[]) => any): Collection<any> {\n return this.map((values, key) => fn(...values, key))\n }\n\n mapToDictionary(fn: (item: T, key: number) => [string, any]): Collection<any[]> {\n const collection = {}\n\n this.items.forEach((item, k) => {\n const [key, value] = fn(item, k)\n\n if (collection[key] === undefined) {\n collection[key] = [value]\n }\n else {\n collection[key].push(value)\n }\n })\n\n return new this.constructor(collection)\n }\n\n mapInto(ClassName: new (value: T, key: number | string) => any): Collection<any> {\n return this.map((value, key) => new ClassName(value, key))\n }\n\n mapToGroups(fn: (item: T, key: number) => [string, any]): Collection<any[]> {\n const collection = {}\n\n this.items.forEach((item, key) => {\n const [keyed, value] = fn(item, key)\n\n if (collection[keyed] === undefined) {\n collection[keyed] = [value]\n }\n else {\n collection[keyed].push(value)\n }\n })\n\n return new this.constructor(collection)\n }\n\n mapWithKeys(fn: (item: T, index: number) => [string, any]): Collection<any> {\n const collection = {}\n\n if (Array.isArray(this.items)) {\n this.items.forEach((item, index) => {\n const [keyed, value] = fn(item, index)\n collection[keyed] = value\n })\n }\n else {\n Object.keys(this.items).forEach((key) => {\n const [keyed, value] = fn(this.items[key], Number(key))\n collection[keyed] = value\n })\n }\n\n return new this.constructor(collection)\n }\n\n max(key?: string): number {\n if (typeof key === 'string') {\n const filtered = this.items.filter(item => item[key] !== undefined)\n\n return Math.max(...filtered.map(item => item[key]))\n }\n\n return Math.max(...this.items)\n }\n\n median(key?: string): number {\n const { length } = this.items\n\n if (key === undefined) {\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1] + this.items[length / 2]) / 2\n }\n\n return this.items[Math.floor(length / 2)]\n }\n\n if (length % 2 === 0) {\n return (this.items[length / 2 - 1][key] + this.items[length / 2][key]) / 2\n }\n\n return this.items[Math.floor(length / 2)][key]\n }\n\n merge(object: object): Collection<T> {\n const merged = { ...this.items, ...object }\n\n return new Collection(merged)\n }\n\n mergeRecursive(items: T | T[] | Collection<T>): Collection<T> {\n const merge = (target: any, source: any): any => {\n const merged = {}\n\n const mergedKeys = Object.keys({ ...target, ...source })\n\n mergedKeys.forEach((key) => {\n if (target[key] === undefined && source[key] !== undefined) {\n merged[key] = source[key]\n }\n else if (target[key] !== undefined && source[key] === undefined) {\n merged[key] = target[key]\n }\n else if (target[key] !== undefined && source[key] !== undefined) {\n if (target[key] === source[key]) {\n merged[key] = target[key]\n }\n else if (\n !Array.isArray(target[key])\n && typeof target[key] === 'object'\n && !Array.isArray(source[key])\n && typeof source[key] === 'object'\n ) {\n merged[key] = merge(target[key], source[key])\n }\n else {\n merged[key] = [].concat(target[key], source[key])\n }\n }\n })\n\n return merged\n }\n\n if (!items) {\n return this\n }\n\n if (items.constructor.name === 'Collection') {\n return new this.constructor(merge(this.items, items.all()))\n }\n\n return new this.constructor(merge(this.items, items))\n }\n\n min(key?: string): number {\n if (key !== undefined) {\n const filtered = this.items.filter(item => item[key] !== undefined)\n\n return Math.min(...filtered.map(item => item[key]))\n }\n\n return Math.min(...this.items)\n }\n\n mode(key?: string): any[] {\n const values = []\n let highestCount = 1\n\n if (!this.items.length) {\n return null\n }\n\n this.items.forEach((item) => {\n const tempValues = values.filter((value) => {\n if (key !== undefined) {\n return value.key === item[key]\n }\n\n return value.key === item\n })\n\n if (!tempValues.length) {\n if (key !== undefined) {\n values.push({ key: item[key], count: 1 })\n }\n else {\n values.push({ key: item, count: 1 })\n }\n }\n else {\n tempValues[0].count += 1\n const { count } = tempValues[0]\n\n if (count > highestCount) {\n highestCount = count\n }\n }\n })\n\n return values.filter(value => value.count === highestCount).map(value => value.key)\n }\n\n nth(n: number, offset = 0): Collection<T> {\n const items = values(this.items)\n\n const collection = items.slice(offset).filter((item, index) => index % n === 0)\n\n return new this.constructor(collection)\n }\n\n only(keys: string[]): Collection<T> {\n const result = {}\n keys.forEach((key) => {\n if (key in this.items)\n result[key] = this.items[key]\n })\n return new Collection(result)\n }\n\n pad(size: number, value: T): Collection<T> {\n const abs = Math.abs(size)\n const count = this.count()\n\n if (abs <= count) {\n return this\n }\n\n let diff = abs - count\n const items = clone(this.items)\n const isArray = Array.isArray(this.items)\n const prepend = size < 0\n\n for (let iterator = 0; iterator < diff;) {\n if (!isArray) {\n if (items[iterator] !== undefined) {\n diff += 1\n }\n else {\n items[iterator] = value\n }\n }\n else if (prepend) {\n items.unshift(value)\n }\n else {\n items.push(value)\n }\n\n iterator += 1\n }\n\n return new this.constructor(items)\n }\n\n partition(fn: (item: T) => boolean): [Collection<T>, Collection<T>] {\n let arrays\n\n if (Array.isArray(this.items)) {\n arrays = [new this.constructor([]), new this.constructor([])]\n\n this.items.forEach((item) => {\n if (fn(item) === true) {\n arrays[0].push(item)\n }\n else {\n arrays[1].push(item)\n }\n })\n }\n else {\n arrays = [new this.constructor({}), new this.constructor({})]\n\n Object.keys(this.items).forEach((prop) => {\n const value = this.items[prop]\n\n if (fn(value) === true) {\n arrays[0].put(prop, value)\n }\n else {\n arrays[1].put(prop, value)\n }\n })\n }\n\n return new this.constructor(arrays)\n }\n\n pipe(fn) {\n return fn(this)\n }\n\n pluck(value: string, key?: string) {\n if (value.includes('*')) {\n const keyPathMap = buildKeyPathMap(this.items)\n const keyMatches = []\n\n if (key !== undefined) {\n const keyRegex = new RegExp(`0.${key}`, 'g')\n const keyNumberOfLevels = `0.${key}`.split('.').length\n\n Object.keys(keyPathMap).forEach((k) => {\n const matchingKey = k.match(keyRegex)\n\n if (matchingKey) {\n const match = matchingKey[0]\n\n if (match.split('.').length === keyNumberOfLevels) {\n keyMatches.push(keyPathMap[match])\n }\n }\n })\n }\n\n const valueMatches = []\n const valueRegex = new RegExp(`0.${value}`, 'g')\n const valueNumberOfLevels = `0.${value}`.split('.').length\n\n Object.keys(keyPathMap).forEach((k) => {\n const matchingValue = k.match(valueRegex)\n\n if (matchingValue) {\n const match = matchingValue[0]\n\n if (match.split('.').length === valueNumberOfLevels) {\n valueMatches.push(keyPathMap[match])\n }\n }\n })\n\n if (key !== undefined) {\n const collection = {}\n\n this.items.forEach((item, index) => {\n collection[keyMatches[index] || ''] = valueMatches\n })\n\n return new this.constructor(collection)\n }\n\n return new this.constructor([valueMatches])\n }\n\n if (key !== undefined) {\n const collection = {}\n\n this.items.forEach((item) => {\n if (nestedValue(item, value) !== undefined) {\n collection[item[key] || ''] = nestedValue(item, value)\n }\n else {\n collection[item[key] || ''] = null\n }\n })\n\n return new this.constructor(collection)\n }\n\n return this.map((item) => {\n if (nestedValue(item, value) !== undefined) {\n return nestedValue(item, value)\n }\n\n return null\n })\n }\n\n pop(count = 1) {\n if (this.isEmpty()) {\n return null\n }\n\n if (isArray(this.items)) {\n if (count === 1) {\n return this.items.pop()\n }\n\n return new this.constructor(this.items.splice(-count))\n }\n\n if (isObject(this.items)) {\n const keys = Object.keys(this.items)\n\n if (count === 1) {\n const key = keys[keys.length - 1]\n const last = this.items[key]\n\n deleteKeys(this.items, key)\n\n return last\n }\n\n const poppedKeys = keys.slice(-count)\n\n const newObject = poppedKeys.reduce((acc, current) => {\n acc[current] = this.items[current]\n\n return acc\n }, {})\n\n deleteKeys(this.items, poppedKeys)\n\n return new this.constructor(newObject)\n }\n\n return null\n }\n\n prepend(value, key) {\n if (key !== undefined) {\n return this.put(key, value)\n }\n\n this.items.unshift(value)\n\n return this\n }\n\n pull(key: string | number, defaultValue: T | null = null): T | null {\n if (Array.isArray(this.items)) {\n const index = Number(key)\n if (Number.isNaN(index))\n return defaultValue\n const value = this.items[index]\n this.items.splice(index, 1)\n return value ?? defaultValue\n }\n\n const value = this.items[key as string]\n delete this.items[key as string]\n return value ?? defaultValue\n }\n\n push(...items: T[]): Collection<T> {\n this.items = [...this.items, ...items]\n return this\n }\n\n put(key: string, value: any): this {\n this.items[key] = value\n return this\n }\n\n random(length = null) {\n const items = values(this.items)\n\n const collection = new this.constructor(items).shuffle()\n\n // If not a length was specified\n if (length !== Number.parseInt(length, 10)) {\n return collection.first()\n }\n\n return collection.take(length)\n }\n\n reduce(fn, carry) {\n let reduceCarry = null\n\n if (carry !== undefined) {\n reduceCarry = carry\n }\n\n if (Array.isArray(this.items)) {\n this.items.forEach((item) => {\n reduceCarry = fn(reduceCarry, item)\n })\n }\n else {\n Object.keys(this.items).forEach((key) => {\n reduceCarry = fn(reduceCarry, this.items[key], key)\n })\n }\n\n return reduceCarry\n }\n\n reject(fn) {\n return new this.constructor(this.items).filter(item => !fn(item))\n }\n\n replace(items) {\n if (!items) {\n return this\n }\n\n if (Array.isArray(items)) {\n const replaced = this.items.map((value, index) => items[index] || value)\n\n return new this.constructor(replaced)\n }\n\n if (items.constructor.name === 'Collection') {\n const replaced = { ...this.items, ...items.all() }\n\n return new this.constructor(replaced)\n }\n\n const replaced = { ...this.items, ...items }\n\n return new this.constructor(replaced)\n }\n\n replaceRecursive(items) {\n const replace = (target, source) => {\n const replaced = { ...target }\n\n const mergedKeys = Object.keys({ ...target, ...source })\n\n mergedKeys.forEach((key) => {\n if (!Array.isArray(source[key]) && typeof source[key] === 'object') {\n replaced[key] = replace(target[key], source[key])\n }\n else if (target[key] === undefined && source[key] !== undefined) {\n if (typeof target[key] === 'object') {\n replaced[key] = { ...source[key] }\n }\n else {\n replaced[key] = source[key]\n }\n }\n else if (target[key] !== undefined && source[key] === undefined) {\n if (typeof target[key] === 'object') {\n replaced[key] = { ...target[key] }\n }\n else {\n replaced[key] = target[key]\n }\n }\n else if (target[key] !== undefined && source[key] !== undefined) {\n if (typeof source[key] === 'object') {\n replaced[key] = { ...source[key] }\n }\n else {\n replaced[key] = source[key]\n }\n }\n })\n\n return replaced\n }\n\n if (!items) {\n return this\n }\n\n if (!Array.isArray(items) && typeof items !== 'object') {\n return new this.constructor(replace(this.items, [items]))\n }\n\n if (items.constructor.name === 'Collection') {\n return new this.constructor(replace(this.items, items.all()))\n }\n\n return new this.constructor(replace(this.items, items))\n }\n\n reverse() {\n const collection = [].concat(this.items).reverse()\n\n return new this.constructor(collection)\n }\n\n search(valueOrFunction, strict) {\n let result\n\n const find = (item, key) => {\n if (isFunction(valueOrFunction)) {\n return valueOrFunction(this.items[key], key)\n }\n\n if (strict) {\n return this.items[key] === valueOrFunction\n }\n\n return this.items[key] == valueOrFunction\n }\n\n if (isArray(this.items)) {\n result = this.items.findIndex(find)\n }\n else if (isObject(this.items)) {\n result = Object.keys(this.items).find(key => find(this.items[key], key))\n }\n\n if (result === undefined || result < 0) {\n return false\n }\n\n return result\n }\n\n shift(count = 1): T | undefined | null {\n if (this.isEmpty()) {\n return null\n }\n\n if (isArray(this.items)) {\n if (count === 1) {\n return this.items.shift()\n }\n\n return new this.constructor(this.items.splice(0, count))\n }\n\n if (isObject(this.items)) {\n if (count === 1) {\n const key = Object.keys(this.items)[0]\n const value = this.items[key]\n delete this.items[key]\n\n return value\n }\n\n const keys = Object.keys(this.items)\n const poppedKeys = keys.slice(0, count)\n\n const newObject = poppedKeys.reduce((acc, current) => {\n acc[current] = this.items[current]\n\n return acc\n }, {})\n\n deleteKeys(this.items, poppedKeys)\n\n return new this.constructor(newObject)\n }\n\n return null\n }\n\n shuffle(): Collection<T> {\n const items = values(this.items)\n\n let j\n let x\n let i\n\n for (i = items.length; i; i -= 1) {\n j = Math.floor(Math.random() * i)\n x = items[i - 1]\n items[i - 1] = items[j]\n items[j] = x\n }\n\n this.items = items\n\n return this\n }\n\n skip(number: number): Collection<T> {\n if (isObject(this.items)) {\n return new this.constructor(\n Object.keys(this.items).reduce((accumulator, key, index) => {\n if (index + 1 > number) {\n accumulator[key] = this.items[key]\n }\n\n return accumulator\n }, {}),\n )\n }\n\n return new this.constructor(this.items.slice(number))\n }\n\n skipUntil(valueOrFunction: any): Collection<T> {\n let previous = null\n let items\n\n let callback = value => value === valueOrFunction\n if (isFunction(valueOrFunction)) {\n callback = valueOrFunction\n }\n\n if (isArray(this.items)) {\n items = this.items.filter((item) => {\n if (previous !== true) {\n previous = callback(item)\n }\n\n return previous\n })\n }\n\n if (isObject(this.items)) {\n items = Object.keys(this.items).reduce((acc, key) => {\n if (previous !== true) {\n previous = callback(this.items[key])\n }\n\n if (previous !== false) {\n acc[key] = this.items[key]\n }\n\n return acc\n }, {})\n }\n\n return new this.constructor(items)\n }\n\n skipWhile(valueOrFunction: any): Collection<T> {\n let previous = null\n let items\n\n let callback = value => value === valueOrFunction\n if (isFunction(valueOrFunction)) {\n callback = valueOrFunction\n }\n\n if (isArray(this.items)) {\n items = this.items.filter((item) => {\n if (previous !== true) {\n previous = !callback(item)\n }\n\n return previous\n })\n }\n\n if (isObject(this.items)) {\n items = Object.keys(this.items).reduce((acc, key) => {\n if (previous !== true) {\n previous = !callback(this.items[key])\n }\n\n if (previous !== false) {\n acc[key] = this.items[key]\n }\n\n return acc\n }, {})\n }\n\n return new this.constructor(items)\n }\n\n slice(remove: number, limit: number): Collection<T> {\n let collection = this.items.slice(remove)\n\n if (limit !== undefined) {\n collection = collection.slice(0, limit)\n }\n\n return new this.constructor(collection)\n }\n\n sole(): T {\n if (this.items.length !== 1) {\n throw new Error('Collection does not contain exactly one item.')\n }\n return this.items[0]\n }\n\n some(key: string): boolean {\n return this.items.some(item => item.hasOwnProperty(key))\n }\n\n sort(fn: (a: T, b: T) => number): Collection<T> {\n const collection = [].concat(this.items)\n\n if (fn === undefined) {\n if (this.every(item => typeof item === 'number')) {\n collection.sort((a, b) => a - b)\n }\n else {\n collection.sort()\n }\n }\n else {\n collection.sort(fn)\n }\n\n return new this.constructor(collection)\n }\n\n sortDesc(): Collection<T> {\n return this.sort().reverse()\n }\n\n sortBy(valueOrFunction: any): Collection<T> {\n const collection = [].concat(this.items)\n const getValue = (item) => {\n if (isFunction(valueOrFunction)) {\n return valueOrFunction(item)\n }\n\n return nestedValue(item, valueOrFunction)\n }\n\n collection.sort((a, b) => {\n const valueA = getValue(a)\n const valueB = getValue(b)\n\n if (valueA === null || valueA === undefined) {\n return 1\n }\n if (valueB === null || valueB === undefined) {\n return -1\n }\n\n if (valueA < valueB) {\n return -1\n }\n if (valueA > valueB) {\n return 1\n }\n\n return 0\n })\n\n return new this.constructor(collection)\n }\n\n sortByDesc(valueOrFunction: any): Collection<T> {\n return this.sortBy(valueOrFunction).reverse()\n }\n\n sortKeys(): Collection<T> {\n const ordered = {}\n\n Object.keys(this.items)\n .sort()\n .forEach((key) => {\n ordered[key] = this.items[key]\n })\n\n return new this.constructor(ordered)\n }\n\n sortKeysDesc(): Collection<T> {\n const ordered = {}\n\n Object.keys(this.items)\n .sort()\n .reverse()\n .forEach((key) => {\n ordered[key] = this.items[key]\n })\n\n return new this.constructor(ordered)\n }\n\n splice(index: number, limit: number, replace: any): Collection<T> {\n const slicedCollection = this.slice(index, limit)\n\n this.items = this.diff(slicedCollection.all()).all()\n\n if (Array.isArray(replace)) {\n for (let iterator = 0, { length } = replace; iterator < length; iterator += 1) {\n this.items.splice(index + iterator, 0, replace[iterator])\n }\n }\n\n return slicedCollection\n }\n\n split(numberOfGroups: number): Collection<T[]> {\n const itemsArray = this.toArray()\n const groups: T[][] = []\n const size = Math.ceil(itemsArray.length / numberOfGroups)\n\n for (let i = 0; i < itemsArray.length; i += size) {\n groups.push(itemsArray.slice(i, i + size))\n }\n\n return new Collection(groups)\n }\n\n sum(key?: string | ((item: T) => number)): number {\n const items = values(this.items)\n\n let total = 0\n\n if (key === undefined) {\n for (let i = 0, { length } = items; i < length; i += 1) {\n total += Number.parseFloat(items[i])\n }\n }\n else if (isFunction(key)) {\n for (let i = 0, { length } = items; i < length; i += 1) {\n total += Number.parseFloat(key(items[i]))\n }\n }\n else {\n for (let i = 0, { length } = items; i < length; i += 1) {\n total += Number.parseFloat(items[i][key])\n }\n }\n\n return Number.parseFloat(total.toPrecision(12))\n }\n\n take(length: number): Collection<T> {\n if (!Array.isArray(this.items) && typeof this.items === 'object') {\n const keys = Object.keys(this.items)\n let slicedKeys\n\n if (length < 0) {\n slicedKeys = keys.slice(length)\n }\n else {\n slicedKeys = keys.slice(0, length)\n }\n\n const collection = {}\n\n keys.forEach((prop) => {\n if (slicedKeys.includes(prop)) {\n collection[prop] = this.items[prop]\n }\n })\n\n return new this.constructor(collection)\n }\n\n if (length < 0) {\n return new this.constructor(this.items.slice(length))\n }\n\n return new this.constructor(this.items.slice(0, length))\n }\n\n takeUntil(valueOrFunction): Collection<T> {\n let previous = null\n let items\n\n let callback = value => value === valueOrFunction\n if (isFunction(valueOrFunction)) {\n callback = valueOrFunction\n }\n\n if (isArray(this.items)) {\n items = this.items.filter((item) => {\n if (previous !== false) {\n previous = !callback(item)\n }\n\n return previous\n })\n }\n\n if (isObject(this.items)) {\n items = Object.keys(this.items).reduce((acc, key) => {\n if (previous !== false) {\n previous = !callback(this.items[key])\n }\n\n if (previous !== false) {\n acc[key] = this.items[key]\n }\n\n return acc\n }, {})\n }\n\n return new this.constructor(items)\n }\n\n takeWhile(valueOrFunction: any): Collection<T> {\n let previous = null\n let items\n\n let callback = value => value === valueOrFunction\n if (isFunction(valueOrFunction)) {\n callback = valueOrFunction\n }\n\n if (isArray(this.items)) {\n items = this.items.filter((item) => {\n if (previous !== false) {\n previous = callback(item)\n }\n\n return previous\n })\n }\n\n if (isObject(this.items)) {\n items = Object.keys(this.items).reduce((acc, key) => {\n if (previous !== false) {\n previous = callback(this.items[key])\n }\n\n if (previous !== false) {\n acc[key] = this.items[key]\n }\n\n return acc\n }, {})\n }\n\n return new this.constructor(items)\n }\n\n tap(fn: (collection: Collection<T>) => void): Collection<T> {\n fn(this)\n\n return this\n }\n\n times(n: number, fn: (iterator: number) => void): Collection<T> {\n for (let iterator = 1; iterator <= n; iterator += 1) {\n this.items.push(fn(iterator))\n }\n\n return this\n }\n\n toArray(): T[] {\n return Array.isArray(this.items) ? this.items : Object.values(this.items)\n }\n\n toJson(): string {\n return JSON.stringify(this.items)\n }\n\n transform(fn: (item: T, key: string) => T): Collection<T> {\n if (Array.isArray(this.items)) {\n this.items = this.items.map(fn)\n }\n else {\n const collection = {}\n\n Object.keys(this.items).forEach((key) => {\n collection[key] = fn(this.items[key], key)\n })\n\n this.items = collection\n }\n\n return this\n }\n\n undot(): Collection<T> {\n if (Array.isArray(this.items)) {\n return this\n }\n\n let collection = {}\n\n Object.keys(this.items).forEach((key) => {\n if (key.includes('.')) {\n const obj = collection\n\n key.split('.').reduce((acc, current, index, array) => {\n if (!acc[current]) {\n acc[current] = {}\n }\n\n if (index === array.length - 1) {\n acc[current] = this.items[key]\n }\n\n return acc[current]\n }, obj)\n\n collection = { ...collection, ...obj }\n }\n else {\n collection[key] = this.items[key]\n }\n })\n\n return new this.constructor(collection)\n }\n\n unless<T>(value: any, fn: (collection: this) => T, defaultFn?: () => T): T | undefined {\n if (!value) {\n return fn(this)\n }\n\n if (defaultFn)\n return defaultFn()\n return undefined\n }\n\n unlessEmpty(callback: (collection: Collection<T>) => void): this {\n if (!this.isEmpty()) {\n callback(this)\n }\n\n return this\n }\n\n unlessNotEmpty(callback: (collection: Collection<T>) => void): Collection<T> {\n if (this.isEmpty()) {\n callback(this)\n }\n\n return this\n }\n\n union(object: Record<string, T>): Collection<T> {\n const collection = JSON.parse(JSON.stringify(this.items))\n\n Object.keys(object).forEach((prop) => {\n if (this.items[prop] === undefined) {\n collection[prop] = object[prop]\n }\n })\n\n return new this.constructor(collection)\n }\n\n unique(): Collection<T> {\n const uniqueItems = Array.from(new Set(this.items))\n return new this.constructor(uniqueItems)\n }\n\n unwrap(): T[] | Record<string, T> {\n return this.items\n }\n\n values(): Collection<T> {\n return new Collection(Object.values(this.items))\n }\n\n when(\n value: any,\n callback: (collection: Collection<T>, value: any) => void,\n defaultCallback?: () => void,\n ): Collection<T> {\n if (value) {\n callback(this, value)\n }\n else if (defaultCallback) {\n defaultCallback()\n }\n return this\n }\n\n whenEmpty(fn, defaultFn) {\n if (Array.isArray(this.items) && !this.items.length) {\n return fn(this)\n }\n if (!Object.keys(this.items).length) {\n return fn(this)\n }\n\n if (defaultFn !== undefined) {\n if (Array.isArray(this.items) && this.items.length) {\n return defaultFn(this)\n }\n if (Object.keys(this.items).length) {\n return defaultFn(this)\n }\n }\n\n return this\n }\n\n whenNotEmpty(fn: (collection: Collection<T>) => void, defaultFn: (collection: Collection<T>) => void): Collection<T> {\n if (Array.isArray(this.items) && this.items.length) {\n return fn(this)\n }\n\n if (Object.keys(this.items).length) {\n return fn(this)\n }\n\n if (defaultFn !== undefined) {\n if (Array.isArray(this.items) && !this.items.length) {\n return defaultFn(this)\n }\n if (!Object.keys(this.items).length) {\n return defaultFn(this)\n }\n }\n\n return this\n }\n\n where(key: string, operator?: any, value?: any): Collection<T> {\n // If only one argument is passed, we're checking for existence\n if (arguments.length === 1) {\n return new Collection(this.items.filter(item => item[key] !== undefined))\n }\n\n // If two arguments are passed, the second one is the value\n if (arguments.length === 2) {\n value = operator\n operator = '==='\n }\n\n const compareValues = (item: any, key: string, value: any, operator: string) => {\n const itemValue = item[key]\n\n switch (operator) {\n case '===':\n return itemValue === value\n case '!==':\n return itemValue !== value\n case '<':\n return itemValue < value\n case '<=':\n return itemValue <= value\n case '>':\n return itemValue > value\n case '>=':\n return itemValue >= value\n default:\n return itemValue == value\n }\n }\n\n return new Collection(this.items.filter(item => compareValues(item, key, value, operator)))\n }\n\n whereBetween(key: string, values: [number, number]): Collection<T> {\n return this.filter((item) => {\n const itemValue = typeof item === 'object' ? item[key] : item\n return itemValue >= values[0] && itemValue <= values[1]\n })\n }\n\n whereIn(key: string, values: any[]): Collection<T> {\n return this.filter((item) => {\n const itemValue = typeof item === 'object' ? item[key] : item\n return values.includes(itemValue)\n })\n }\n\n whereNotBetween(key: string, values: [number, number]): Collection<T> {\n return this.filter((item) => {\n const itemValue = typeof item === 'object' ? item[key] : item\n return itemValue < values[0] || itemValue > values[1]\n })\n }\n\n whereNotIn(key: string, values: any[]): Collection<T> {\n const filteredItems = this.items.filter((item) => {\n const keys = key.split('.')\n let value = item\n\n for (const k of keys) {\n if (value[k] === undefined)\n return true\n value = value[k]\n }\n\n return !values.includes(value)\n })\n\n return new Collection(filteredItems)\n }\n\n private getNestedValue(item: any, key: string): any {\n const keys = key.split('.')\n return keys.reduce((obj, k) => (obj && obj[k] !== undefined ? obj[k] : null), item)\n }\n\n whereInstanceOf(type: any): Collection<T> {\n return this.filter(item => item instanceof type)\n }\n\n whereNotNull(key: string): Collection<T> {\n return this.where(key, '!==', null)\n }\n\n whereNull(key: string): Collection<T> {\n return this.where(key, '===', null)\n }\n\n static wrap<T>(value: T | T[] | Collection<T>): Collection<T> {\n if (value instanceof Collection)\n return value\n return new Collection(Array.isArray(value) ? value : [value])\n }\n\n static unwrap<T extends object>(value: T | T[] | Collection<T>): T | T[] {\n if (value instanceof Collection) {\n return value.all()\n }\n\n return value\n }\n\n wrap(value: any): Collection<T> {\n if (value instanceof Collection) {\n return value\n }\n\n if (typeof value === 'object') {\n return new Collection(value)\n }\n\n return new Collection([value])\n }\n\n zip(...arrays: any[]): Collection<any> {\n const arrayOfArrays = arrays.map(arg => this.constructor.wrap(arg).all())\n const zipped = this.items.map((item, index) => {\n const values = [item]\n arrayOfArrays.forEach((array) => {\n values.push(array[index])\n })\n return new this.constructor(values) // Wrap each zipped item in a new Collection\n })\n return new this.constructor(zipped)\n }\n}\n\nconst buildKeyPathMap = function buildKeyPathMap(items: any) {\n const keyPaths = {}\n\n items.forEach((item: any, index: number) => {\n function buildKeyPath(val: any, keyPath: string) {\n if (isObject(val)) {\n Object.keys(val).forEach((prop) => {\n buildKeyPath(val[prop], `${keyPath}.${prop}`)\n })\n }\n else if (isArray(val)) {\n val.forEach((v, i) => {\n buildKeyPath(v, `${keyPath}.${i}`)\n })\n }\n\n keyPaths[keyPath] = val\n }\n\n buildKeyPath(item, index)\n })\n\n return keyPaths\n}\n\nfunction SymbolIterator() {\n let index = -1\n\n return {\n next: () => {\n index += 1\n\n return {\n value: this.items[index],\n done: index >= this.items.length,\n }\n },\n }\n}\n\nexport default collect\n",
|
|
166
|
-
"/**\n * Clone helper\n *\n * Clone an array or object\n *\n * @param items - The array or object to clone\n * @returns A deep clone of the input\n */\nexport function clone<T>(items: T[]): T[]\nexport function clone<T extends object>(items: T): T\nexport function clone<T>(items: T[] | T): T[] | T {\n if (Array.isArray(items)) {\n return [...items]\n }\n\n return { ...items }\n}\n",
|
|
167
|
-
"/**\n * Variadic helper function\n *\n * @param args - The arguments to process\n * @returns An array of the processed arguments\n */\nexport function variadic<T>(args: T[] | T): T[] {\n if (Array.isArray(args)) {\n return args\n }\n\n return [args]\n}\n",
|
|
168
|
-
"import { variadic } from './variadic'\n\n/**\n * Delete keys helper\n *\n * Delete one or multiple keys from an object\n *\n * @param obj - The object from which to delete keys\n * @param keys - The keys to delete\n * @returns {void}\n */\nexport function deleteKeys<T extends object>(obj: T, ...keys: (keyof T)[]): void {\n variadic(keys).forEach((key) => {\n delete obj[key]\n })\n}\n",
|
|
169
|
-
"/**\n * Checks if the item is an array.\n * @param item - The item to check.\n * @returns A boolean indicating whether the item is an array.\n */\nexport const isArray = (item: unknown): item is Array<unknown> => Array.isArray(item)\n\n/**\n * Checks if the item is an object (excluding arrays and null).\n * @param item - The item to check.\n * @returns A boolean indicating whether the item is an object.\n */\nexport function isObject(item: unknown): item is object {\n return typeof item === 'object' && !Array.isArray(item) && item !== null\n}\n\n/**\n * Checks if the item is a function.\n * @param item - The item to check.\n * @returns A boolean indicating whether the item is a function.\n */\n// eslint-disable-next-line ts/no-unsafe-function-type\nexport const isFunction = (item: unknown): item is Function => typeof item === 'function'\n",
|
|
170
|
-
"/**\n * Get value of a nested property\n *\n * @param mainObject - The object to search for the nested property\n * @param key - The key path to the nested property, using dot notation\n * @returns The value of the nested property, or the mainObject if not found\n */\nexport function nestedValue<T>(mainObject: T, key: string): any {\n try {\n return key.split('.').reduce((obj: any, property: string) => obj[property], mainObject)\n }\n // eslint-disable-next-line unused-imports/no-unused-vars\n catch (err) {\n // If we end up here, we're not working with an object, and mainObject is the value itself\n return mainObject\n }\n}\n",
|
|
171
|
-
"/**\n * Values helper\n *\n * Retrieve values from items when it is an array, object or Collection\n *\n * @param items - The input array, object, or Collection\n * @returns An array of values\n */\nexport function values<T>(items: T[] | { [key: string]: T } | { all: () => T[] }): T[] {\n if (Array.isArray(items)) {\n return [...items]\n }\n\n if ('all' in items && typeof items.all === 'function') {\n return items.all()\n }\n\n return Object.values(items)\n}\n",
|
|
172
|
-
"import { collect, type Collection } from '@stacksjs/collections'\n\nexport {\n align,\n box,\n centerAlign,\n colorize,\n colors,\n getColor,\n leftAlign,\n rightAlign,\n stripAnsi,\n} from 'consola/utils'\n\nexport * as kolorist from 'kolorist'\n\nexport {\n ansi256,\n ansi256Bg,\n bgBlack,\n bgBlue,\n bgCyan,\n bgGray,\n bgGreen,\n bgLightBlue,\n bgLightCyan,\n bgLightGray,\n bgLightGreen,\n bgLightMagenta,\n bgLightRed,\n bgLightYellow,\n bgMagenta,\n bgRed,\n bgWhite,\n bgYellow,\n black,\n blue,\n bold,\n cyan,\n dim,\n gray,\n green,\n hidden,\n inverse,\n italic,\n lightBlue,\n lightCyan,\n lightGray,\n lightGreen,\n lightMagenta,\n lightRed,\n lightYellow,\n link,\n magenta,\n red,\n reset,\n strikethrough,\n stripColors,\n trueColor,\n trueColorBg,\n underline,\n white,\n yellow,\n} from 'kolorist'\n\nexport const quotes: Collection<string> = collect([\n // could be queried from any API or database\n 'The best way to get started is to quit talking and begin doing.',\n 'The pessimist sees difficulty in every opportunity. The optimist sees opportunity in every difficulty.',\n 'Don’t let yesterday take up too much of today.',\n 'You learn more from failure than from success. Don’t let it stop you. Failure builds character.',\n 'It’s not whether you get knocked down, it’s whether you get up.',\n 'If you are working on something that you really care about, you don’t have to be pushed. The vision pulls you.',\n 'People who are crazy enough to think they can change the world, are the ones who do.',\n 'Failure will never overtake me if my determination to succeed is strong enough.',\n 'Entrepreneurs are great at dealing with uncertainty and also very good at minimizing risk. That’s the classic entrepreneur.',\n 'We may encounter many defeats but we must not be defeated.',\n 'Knowing is not enough; we must apply. Wishing is not enough; we must do.',\n 'Imagine your life is perfect in every respect; what would it look like?',\n 'We generate fears while we sit. We overcome them by action.',\n 'Whether you think you can or think you can’t, you’re right.',\n 'Security is mostly a superstition. Life is either a daring adventure or nothing.',\n])\n",
|
|
173
|
-
"let enabled = true;\n// Support both browser and node environments\nconst globalVar = typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n/**\n * Detect how much colors the current terminal supports\n */\nlet supportLevel = 0 /* none */;\nif (globalVar.process && globalVar.process.env && globalVar.process.stdout) {\n const { FORCE_COLOR, NODE_DISABLE_COLORS, NO_COLOR, TERM, COLORTERM } = globalVar.process.env;\n if (NODE_DISABLE_COLORS || NO_COLOR || FORCE_COLOR === '0') {\n enabled = false;\n }\n else if (FORCE_COLOR === '1' ||\n FORCE_COLOR === '2' ||\n FORCE_COLOR === '3') {\n enabled = true;\n }\n else if (TERM === 'dumb') {\n enabled = false;\n }\n else if ('CI' in globalVar.process.env &&\n [\n 'TRAVIS',\n 'CIRCLECI',\n 'APPVEYOR',\n 'GITLAB_CI',\n 'GITHUB_ACTIONS',\n 'BUILDKITE',\n 'DRONE',\n ].some(vendor => vendor in globalVar.process.env)) {\n enabled = true;\n }\n else {\n enabled = process.stdout.isTTY;\n }\n if (enabled) {\n // Windows supports 24bit True Colors since Windows 10 revision #14931,\n // see https://devblogs.microsoft.com/commandline/24-bit-color-in-the-windows-console/\n if (process.platform === 'win32') {\n supportLevel = 3 /* trueColor */;\n }\n else {\n if (COLORTERM && (COLORTERM === 'truecolor' || COLORTERM === '24bit')) {\n supportLevel = 3 /* trueColor */;\n }\n else if (TERM && (TERM.endsWith('-256color') || TERM.endsWith('256'))) {\n supportLevel = 2 /* ansi256 */;\n }\n else {\n supportLevel = 1 /* ansi */;\n }\n }\n }\n}\nexport let options = {\n enabled,\n supportLevel,\n};\nfunction kolorist(start, end, level = 1 /* ansi */) {\n const open = `\\x1b[${start}m`;\n const close = `\\x1b[${end}m`;\n const regex = new RegExp(`\\\\x1b\\\\[${end}m`, 'g');\n return (str) => {\n return options.enabled && options.supportLevel >= level\n ? open + ('' + str).replace(regex, open) + close\n : '' + str;\n };\n}\n// Lower colors into 256 color space\n// Taken from https://github.com/Qix-/color-convert/blob/3f0e0d4e92e235796ccb17f6e85c72094a651f49/conversions.js\n// which is MIT licensed and copyright by Heather Arthur and Josh Junon\nfunction rgbToAnsi256(r, g, b) {\n // We use the extended greyscale palette here, with the exception of\n // black and white. normal palette only has 4 greyscale shades.\n if (r >> 4 === g >> 4 && g >> 4 === b >> 4) {\n if (r < 8) {\n return 16;\n }\n if (r > 248) {\n return 231;\n }\n return Math.round(((r - 8) / 247) * 24) + 232;\n }\n const ansi = 16 +\n 36 * Math.round((r / 255) * 5) +\n 6 * Math.round((g / 255) * 5) +\n Math.round((b / 255) * 5);\n return ansi;\n}\nexport function stripColors(str) {\n return ('' + str)\n .replace(/\\x1b\\[[0-9;]+m/g, '')\n .replace(/\\x1b\\]8;;.*?\\x07(.*?)\\x1b\\]8;;\\x07/g, (_, group) => group);\n}\n// modifiers\nexport const reset = kolorist(0, 0);\nexport const bold = kolorist(1, 22);\nexport const dim = kolorist(2, 22);\nexport const italic = kolorist(3, 23);\nexport const underline = kolorist(4, 24);\nexport const inverse = kolorist(7, 27);\nexport const hidden = kolorist(8, 28);\nexport const strikethrough = kolorist(9, 29);\n// colors\nexport const black = kolorist(30, 39);\nexport const red = kolorist(31, 39);\nexport const green = kolorist(32, 39);\nexport const yellow = kolorist(33, 39);\nexport const blue = kolorist(34, 39);\nexport const magenta = kolorist(35, 39);\nexport const cyan = kolorist(36, 39);\nexport const white = kolorist(97, 39);\nexport const gray = kolorist(90, 39);\nexport const lightGray = kolorist(37, 39);\nexport const lightRed = kolorist(91, 39);\nexport const lightGreen = kolorist(92, 39);\nexport const lightYellow = kolorist(93, 39);\nexport const lightBlue = kolorist(94, 39);\nexport const lightMagenta = kolorist(95, 39);\nexport const lightCyan = kolorist(96, 39);\n// background colors\nexport const bgBlack = kolorist(40, 49);\nexport const bgRed = kolorist(41, 49);\nexport const bgGreen = kolorist(42, 49);\nexport const bgYellow = kolorist(43, 49);\nexport const bgBlue = kolorist(44, 49);\nexport const bgMagenta = kolorist(45, 49);\nexport const bgCyan = kolorist(46, 49);\nexport const bgWhite = kolorist(107, 49);\nexport const bgGray = kolorist(100, 49);\nexport const bgLightRed = kolorist(101, 49);\nexport const bgLightGreen = kolorist(102, 49);\nexport const bgLightYellow = kolorist(103, 49);\nexport const bgLightBlue = kolorist(104, 49);\nexport const bgLightMagenta = kolorist(105, 49);\nexport const bgLightCyan = kolorist(106, 49);\nexport const bgLightGray = kolorist(47, 49);\n// 256 support\nexport const ansi256 = (n) => kolorist('38;5;' + n, 0, 2 /* ansi256 */);\nexport const ansi256Bg = (n) => kolorist('48;5;' + n, 0, 2 /* ansi256 */);\n// TrueColor 24bit support\nexport const trueColor = (r, g, b) => {\n return options.supportLevel === 2 /* ansi256 */\n ? ansi256(rgbToAnsi256(r, g, b))\n : kolorist(`38;2;${r};${g};${b}`, 0, 3 /* trueColor */);\n};\nexport const trueColorBg = (r, g, b) => {\n return options.supportLevel === 2 /* ansi256 */\n ? ansi256Bg(rgbToAnsi256(r, g, b))\n : kolorist(`48;2;${r};${g};${b}`, 0, 3 /* trueColor */);\n};\n// Links\nconst OSC = '\\u001B]';\nconst BEL = '\\u0007';\nconst SEP = ';';\nexport function link(text, url) {\n return options.enabled\n ? OSC + '8' + SEP + SEP + url + BEL + text + OSC + '8' + SEP + SEP + BEL\n : `${text} (\\u200B${url}\\u200B)`;\n}\n//# sourceMappingURL=index.js.map",
|
|
174
|
-
"import process from 'node:process'\n\ninterface ParsedArgv {\n args: string[]\n options: {\n [k: string]: string | boolean | number\n }\n}\n\nfunction isLongOption(arg?: string): boolean {\n if (!arg)\n return false\n\n return arg.startsWith('--')\n}\n\nfunction isShortOption(arg: string): boolean {\n return arg.startsWith('-') && !isLongOption(arg)\n}\n\nfunction parseValue(value: string): string | boolean | number {\n if (value === 'true')\n return true\n\n if (value === 'false')\n return false\n\n const numberValue = Number.parseFloat(value)\n if (!Number.isNaN(numberValue))\n return numberValue\n\n return value.replace(/\"/g, '')\n}\n\nfunction parseLongOption(\n arg: string,\n argv: string[],\n index: number,\n options: { [k: string]: string | boolean | number },\n): number {\n const [key, value] = arg.slice(2).split('=')\n if (value !== undefined) {\n options[key as string] = parseValue(value)\n }\n else if (index + 1 < argv.length && !argv[index + 1]?.startsWith('-')) {\n options[key as string] = argv[index + 1] as string\n index++\n }\n else {\n options[key as string] = true\n }\n return index\n}\n\nfunction parseShortOption(\n arg: string,\n argv: string[],\n index: number,\n options: { [k: string]: string | boolean | number },\n): number {\n const [key, value] = arg.slice(1).split('=')\n\n // Check if key is undefined and handle it\n if (key === undefined)\n return index\n\n if (value !== undefined && key !== undefined) {\n for (let j = 0; j < key.length; j++) options[key[j] as string] = parseValue(value)\n }\n else {\n for (let j = 0; j < key.length; j++) {\n if (index + 1 < argv.length && j === key.length - 1 && !argv[index + 1]?.startsWith('-')) {\n options[key[j] as string] = parseValue(argv[index + 1] as string)\n index++\n }\n else {\n options[key[j] as string] = true\n }\n }\n }\n\n return index\n}\n\nexport function parseArgv(argv?: string[]): ParsedArgv {\n if (argv === undefined)\n argv = process.argv.slice(2)\n\n const args: string[] = []\n const options: { [k: string]: string | boolean | number } = {}\n\n for (let i = 0; i < argv.length; i++) {\n const arg = argv[i]\n if (!arg)\n continue\n if (isLongOption(arg))\n i = parseLongOption(arg, argv, i, options)\n else if (isShortOption(arg))\n i = parseShortOption(arg, argv, i, options)\n else args.push(arg)\n }\n\n return { args, options }\n}\n\nexport function parseArgs(argv?: string[]): string[] {\n if (argv === undefined)\n argv = process.argv.slice(2)\n\n return parseArgv(argv).args\n}\n\ninterface CliOptions {\n dryRun?: boolean\n quiet?: boolean\n verbose?: boolean\n [k: string]: string | boolean | number | undefined\n}\n\nexport function parseOptions(options?: CliOptions): CliOptions {\n options = options || {}\n const defaults = { dryRun: false, quiet: false, verbose: false }\n const args = process.argv.slice(2)\n\n for (let i = 0; i < args.length; i++) {\n const arg = args[i]\n if (arg?.startsWith('--')) {\n const key = arg.substring(2) // remove the --\n const camelCaseKey = key.replace(\n /-([a-z])/gi,\n g => (g[1] ? g[1].toUpperCase() : ''), // convert kebab-case to camelCase\n )\n\n if (i + 1 < args.length && !args?.[i + 1]?.startsWith('--')) {\n // if the next arg exists and is not an option\n if (args?.[i + 1] === 'true' || args?.[i + 1] === 'false') {\n // if the next arg is a boolean\n options[camelCaseKey] = args[i + 1] === 'true' // set the value to the boolean\n i++\n }\n else {\n options[camelCaseKey] = args[i + 1]\n i++\n }\n }\n else {\n options[camelCaseKey] = true\n }\n }\n }\n\n if (Object.keys(options).length === 0)\n // if options has no keys, return an empty object\n return {}\n\n return { ...defaults, ...options }\n}\n\n// interface BuddyOptions {\n// dryRun?: boolean\n// verbose?: boolean\n// }\nexport function buddyOptions(options?: string[] | Record<string, any>): string {\n if (Array.isArray(options)) {\n options = Array.from(new Set(options)) as string[]\n if (Array.isArray(options) && options[0] && !options[0].startsWith('-'))\n options.shift()\n return options.join(' ')\n }\n\n if (typeof options === 'object' && options !== null) {\n return Object.entries(options)\n .map(([key, value]) => {\n if (value === true)\n return `--${key}`\n return `--${key} ${value}`\n })\n .join(' ')\n }\n\n return buddyOptions(process.argv.slice(2))\n}\n"
|
|
175
|
-
],
|
|
176
|
-
"mappings": ";6hBAEA,SAAU,CAAC,EAAM,EAAW,CAE1B,UAA4C,KAAY,iBAAmB,KAAW,SAEpF,GAAO,QAAU,EAAU,iBACX,SAAW,YAAc,OAAO,IAEhD,eAAgB,EAAG,CACjB,OAAO,EAAU,EAClB,MAGD,GAAK,UAAY,EAAU,IAE5B,WAAe,EAAG,CAGnB,IAAI,EAAc,CAAC,EACf,EAAgB,CAAC,EACjB,EAAe,CAAC,EAChB,EAAmB,CAAC,EACpB,EAAmB,CAAC,EAQxB,SAAS,CAAa,CAAC,EAAM,CAC3B,UAAW,IAAS,SAClB,OAAO,IAAI,OAAO,IAAM,EAAO,IAAK,GAAG,EAGzC,OAAO,E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,oBACT,QAAS,uBACT,QAAS,wDACT,QAAS,oBACT,QAAS,4CACT,QAAS,uCACT,QAAS,6BACT,QAAS,0BACT,QAAS,mBACT,QAAS,yBACT,QAAS,wCACT,QAAS,6BACT,QAAS,8CACT,QAAS,2DACT,QAAS,wCACT,QAAS,8CACT,QAAS,qBACT,QAAS,yEACT,QAAS,yBACT,QAAS,0BACT,QAAS,yBACT,QAAS,gCACT,QAAS,8BACT,QAAS,oBACT,QAAS,wBACT,QAAS,uBACT,QAAS,oBACT,QAAS,yBACT,QAAS,wBACT,QAAS,0FACT,QAAS,mBACT,QAAS,yBACT,QAAS,oBACT,QAAS,8BACT,QAAS,6BACT,QAAS,wBACT,QAAS,mDACT,QAAS,6BACT,QAAS,uBACT,QAAS,uBACT,QAAS,wBACT,QAAS,4BACT,QAAS,kCACT,QAAS,uBACT,QAAS,mBACT,QAAS,6BACT,QAAS,oBACT,QAAS,oBACT,QAAS,2BACT,QAAS,uBACT,QAAS,2BACT,QAAS,uBACT,QAAS,6CACT,QAAS,sDACT,QAAS,4CACT,QAAS,8BACT,QAAS,sCACT,QAAS,uBACT,QAAS,iBACT,QAAS,0BACT,QAAS,sBACT,QAAS,uBACT,QAAS,8BACT,QAAS,8BACT,QAAS,8BACT,QAAS,yBACT,QAAS,8BACT,QAAS,kBACT,QAAS,iDACT,QAAS,oCACT,QAAS,qGACT,QAAS,oBACT,QAAS,+BACT,QAAS,qDACT,QAAS,wDACT,QAAS,8BACT,QAAS,oBACT,QAAS,sCACT,QAAS,kEACT,QAAS,4CACT,QAAS,mBACT,QAAS,mBACT,QAAS,8BACT,QAAS,kDACT,QAAS,qEACT,QAAS,6DACT,QAAS,4BACT,QAAS,sBACT,QAAS,wBACT,QAAS,oBACT,QAAS,gDACT,QAAS,qCACT,QAAS,sBACT,QAAS,gDACT,QAAS,+IACT,QAAS,0BACT,QAAS,iBACT,QAAS,qDACT,QAAS,wDACT,QAAS,oBACT,QAAS,kDACT,QAAS,sEACT,QAAS,iDAC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A,OACA,QACA,UACA,gBACA,UACA,OACA,WACA,SACA,QACA,WACA,SACA,UACA,UACA,QACA,QACA,KACA,OACF,EAEA,SAAU,CACR,KAAM,yDACN,MAAO,8CACP,YAAa,mCACb,QAAS,+DACT,KAAM,sFACN,SAAU,qEACV,qBAAsB,uEACtB,qBAAsB,uBACtB,OAAQ,oDACR,cAAe,yDACjB,EAEA,MAAO,CACL,CACE,MAAO,OACP,KAAM,kCACN,MAAO,YACT,EACA,CAAE,MAAO,MAAO,KAAM,oCAA0B,MAAO,OAAQ,EAC/D,CACE,MAAO,OACP,KAAM,qDACN,MAAO,QACT,EACA,CACE,MAAO,QACP,KAAM,6EACN,MAAO,YACT,EACA,CACE,MAAO,WACP,KAAM,qFACN,MAAO,WACT,EACA,CACE,MAAO,OACP,KAAM,kEACN,MAAO,OACT,EACA,CACE,MAAO,OACP,KAAM,qEACN,MAAO,oBACT,EACA,CACE,MAAO,QACP,KAAM,8FACN,MAAO,WACT,EACA,CACE,MAAO,KACP,KAAM,4EACN,MAAO,gBACT,EACA,CACE,MAAO,QACP,KAAM,iFACN,MAAO,UACT,EACA,CACE,MAAO,SACP,KAAM,oDACN,MAAO,UACT,CACF,CACF,EAEA,QAAS,CACP,OAAQ,SAER,OAAQ,CACN,OAAQ,GACR,KAAM,CACR,EAEA,OAAQ,CACN,OAAQ,MAER,KAAM,CACR,CACF,EAEA,QAAS,CACP,KAAM,cACN,MAAO,YACP,WAAY,kBACZ,QAAS,MACT,OAAQ,eACR,aAAc,CAAC,mCAAmC,EAClD,gBAAiB,KAEjB,cAAe,CACb,KAAM,kBACN,YAAa,yCACb,SAAU,CAAC,YAAa,UAAW,MAAO,OAAQ,aAAc,YAAY,EAC5E,KAAM,CACJ,CACE,KAAM,CAAC,aAAc,eAAe,EACpC,YAAa,4DACb,WAAY,CACV,CACE,KAAM,WACN,YAAa,eACf,CACF,CACF,CACF,CACF,EAEA,cAAe,CACb,KAAM,uBACN,YAAa,6DACb,SAAU,CAAC,kBA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AAW,8DACX,gBAAmB,qDAGnB,KAAQ,iDACR,cAAe,oEACf,aAAc,iEACd,cAAe,kEACf,oBAAqB,6EACrB,qBAAsB,8EACtB,cAAe,oEACf,iBAAkB,qEAClB,kBAAmB,8DAGnB,SAAY,yCAGZ,KAAQ,sCAGR,QAAW,oDAGX,OAAU,0CAGV,OAAU,0CACV,mBAAoB,2DACpB,mBAAoB,gEACpB,qBAAsB,sDAGtB,MAAS,yCACT,kBAAmB,2DACnB,kBAAmB,gEACnB,oBAAqB,sDACrB,SAAY,0CACZ,SAAY,6CAGZ,MAAS,yCAGT,MAAS,+CACT,WAAc,+CACd,aAAgB,8CAClB,CACF,ECzFA,IAAe,IACb,MAAO,CACL,aAAc,aAChB,EAEA,OAAQ,CACN,GACA,KACA,OACA,KACA,UACA,OACA,OACA,OACA,UACA,SACA,OACA,QACA,QACA,MACA,QACA,cACA,SACA,WACA,WACA,OACA,SACA,MACA,OACA,QACA,UACA,gBACA,UACA,OACA,WACA,SACA,QACA,WACA,SACA,UACA,UACA,QACA,QACA,KACA,OACF,EAEA,SAAU,CACR,KAAM,yDACN,MAAO,8CACP,YAAa,mCACb,QAAS,+DACT,KAAM,sFACN,SAAU,qEACV,qBAAsB,uEACtB,qBAAsB,uBACtB,OAAQ,oDACR,cAAe,yDACjB,EAEA,MAAO,CACL,CAAE,MAAO,OAAQ,KAAM,kCAA6B,MAAO,YAAa,EACxE,CAAE,MAAO,MAAO,KAAM,oCAA0B,MAAO,OAAQ,EAC/D,CACE,MAAO,OACP,KAAM,qDACN,MAAO,QACT,EACA,CACE,MAAO,QACP,KAAM,6EACN,MAAO,YACT,EACA,CACE,MAAO,WACP,KAAM,qFACN,MAAO,WACT,EACA,CACE,MAAO,OACP,KAAM,kEACN,MAAO,OACT,EACA,CACE,MAAO,OACP,KAAM,qEACN,MAAO,oBACT,EACA,CACE,MAAO,QACP,KAAM,8FACN,MAAO,WACT,EACA,CACE,MAAO,KACP,KAAM,4EACN,MAAO,gBACT,EACA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