UNPKG

@vue-vine/eslint-parser

Version:
1,479 lines (1,415 loc) 325 kB
import Module, { createRequire } from "node:module"; import { parseForESLint as parseForESLint$1 } from "@typescript-eslint/parser"; import * as tsEscopeTypes from "@typescript-eslint/scope-manager"; import * as escope from "eslint-scope"; import { lt, lte } from "semver"; import path from "node:path"; import { fileURLToPath } from "node:url"; import process from "node:process"; import * as dependencyEspree from "espree"; import debugFactory from "debug"; import assert from "node:assert"; import { TSESTree, simpleTraverse } from "@typescript-eslint/typescript-estree"; //#region rolldown:runtime var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __commonJS = (cb, mod) => function() { return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") for (var keys$3 = __getOwnPropNames(from), i = 0, n = keys$3.length, key; i < n; i++) { key = keys$3[i]; if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: ((k) => from[k]).bind(null, key), enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod)); //#endregion //#region package.json var name = "@vue-vine/eslint-parser"; var version = "1.1.9"; //#endregion //#region src/ast/errors.ts /** * Check whether the given value has acorn style location information. * @param x The value to check. * @returns `true` if the value has acorn style location information. */ function isAcornStyleParseError(x) { return typeof x.message === "string" && typeof x.pos === "number" && typeof x.loc === "object" && x.loc !== null && typeof x.loc.line === "number" && typeof x.loc.column === "number"; } /** * Check whether the given value is probably a TSError. * @param x The value to check. * @returns `true` if the given value is probably a TSError. */ function isTSError(x) { return !(x instanceof ParseError) && typeof x.message === "string" && typeof x.index === "number" && typeof x.lineNumber === "number" && typeof x.column === "number" && x.name === "TSError"; } /** * HTML parse errors. */ var ParseError = class ParseError extends SyntaxError { code; index; lineNumber; column; /** * Create new parser error object. * @param code The error code. See also: https://html.spec.whatwg.org/multipage/parsing.html#parse-errors * @param offset The offset number of this error. * @param line The line number of this error. * @param column The column number of this error. */ static fromCode(code, offset, line, column) { return new ParseError(code, code, offset, line, column); } /** * Normalize the error object. * @param x The error object to normalize. */ static normalize(x) { if (isTSError(x)) return new ParseError(x.message, void 0, x.index, x.lineNumber, x.column); if (ParseError.isParseError(x)) return x; if (isAcornStyleParseError(x)) return new ParseError(x.message, void 0, x.pos, x.loc.line, x.loc.column); return null; } /** * Initialize this ParseError instance. * @param message The error message. * @param code The error code. See also: https://html.spec.whatwg.org/multipage/parsing.html#parse-errors * @param offset The offset number of this error. * @param line The line number of this error. * @param column The column number of this error. */ constructor(message, code, offset, line, column) { super(message); this.code = code; this.index = offset; this.lineNumber = line; this.column = column; } /** * Type guard for ParseError. * @param x The value to check. * @returns `true` if the value has `message`, `pos`, `loc` properties. */ static isParseError(x) { return x instanceof ParseError || typeof x.message === "string" && typeof x.index === "number" && typeof x.lineNumber === "number" && typeof x.column === "number"; } }; //#endregion //#region src/ast/nodes.ts /** * Constants of namespaces. * @see https://infra.spec.whatwg.org/#namespaces */ const NS = Object.freeze({ HTML: "http://www.w3.org/1999/xhtml", MathML: "http://www.w3.org/1998/Math/MathML", SVG: "http://www.w3.org/2000/svg", XLink: "http://www.w3.org/1999/xlink", XML: "http://www.w3.org/XML/1998/namespace", XMLNS: "http://www.w3.org/2000/xmlns/" }); //#endregion //#region src/ast/traverse.ts const KEYS = { VAttribute: ["key", "value"], VDirectiveKey: [ "name", "argument", "modifiers" ], VTemplateRoot: ["children"], VElement: [ "startTag", "children", "endTag" ], VEndTag: [], VExpressionContainer: ["expression"], VFilter: ["callee", "arguments"], VFilterSequenceExpression: ["expression", "filters"], VForExpression: ["left", "right"], VIdentifier: [], VLiteral: [], VOnExpression: ["body"], VSlotScopeExpression: ["params"], VStartTag: ["attributes"], VText: [] }; /** * Check that the given key should be traversed or not. * @this {Traversable} * @param key The key to check. * @returns `true` if the key should be traversed. */ function fallbackKeysFilter(key) { let value = null; return key !== "comments" && key !== "leadingComments" && key !== "loc" && key !== "parent" && key !== "range" && key !== "tokens" && key !== "trailingComments" && (value = this[key]) !== null && typeof value === "object" && (typeof value.type === "string" || Array.isArray(value)); } /** * Get the keys of the given node to traverse it. * @param node The node to get. * @returns The keys to traverse. */ function getFallbackKeys(node) { return Object.keys(node).filter(fallbackKeysFilter, node); } /** * Check wheather a given value is a node. * @param x The value to check. * @returns `true` if the value is a node. */ function isNode(x) { return x !== null && typeof x === "object" && typeof x.type === "string"; } /** * Traverse the given node. * @param node The node to traverse. * @param parent The parent node. * @param visitor The node visitor. */ function traverse(node, parent, visitor) { let i = 0; let j = 0; visitor.enterNode(node, parent); const keys$3 = (visitor.visitorKeys || KEYS)[node.type] || getFallbackKeys(node); for (i = 0; i < keys$3.length; ++i) { const child = node[keys$3[i]]; if (Array.isArray(child)) { for (j = 0; j < child.length; ++j) if (isNode(child[j])) traverse(child[j], node, visitor); } else if (isNode(child)) traverse(child, node, visitor); } visitor.leaveNode(node, parent); } /** * Traverse the given AST tree. * @param node Root node to traverse. * @param visitor Visitor. */ function traverseNodes(node, visitor) { traverse(node, null, visitor); } //#endregion //#region src/common/create-require.ts const createRequire$1 = Module.createRequire || Module.createRequireFromPath || ((modname) => { const mod = new Module(modname); mod.filename = modname; mod.paths = Module._nodeModulePaths(path.dirname(modname)); mod._compile("module.exports = require;", modname); return mod.exports; }); //#endregion //#region src/common/linter-require.ts function isLinterPath(p) { return p.includes(`eslint${path.sep}lib${path.sep}linter${path.sep}linter.js`) || p.includes(`eslint${path.sep}lib${path.sep}linter.js`); } function getLinterRequire() { const __require = createRequire(fileURLToPath(import.meta.url)); const linterPath = Object.keys(__require.cache).find(isLinterPath); if (linterPath) try { return createRequire$1(linterPath); } catch {} return null; } //#endregion //#region src/common/eslint-scope.ts let escopeCache = null; /** * Load the newest `eslint-scope` from the loaded ESLint or dependency. */ function getEslintScope() { if (!escopeCache) { escopeCache = getLinterRequire()?.("eslint-scope"); if (!escopeCache || escopeCache.version == null || lte(escopeCache.version, escope.version)) escopeCache = escope; } return escopeCache; } //#endregion //#region src/common/espree.ts let espreeCache = null; /** * Gets the espree that the given ecmaVersion can parse. */ function getEspreeFromEcmaVersion(ecmaVersion) { const linterEspree = getEspreeFromLinter(); if (ecmaVersion == null) return linterEspree; if (ecmaVersion === "latest") return getNewestEspree(); if (normalizeEcmaVersion(ecmaVersion) <= getLatestEcmaVersion(linterEspree)) return linterEspree; const userEspree = getEspreeFromUser(); if (normalizeEcmaVersion(ecmaVersion) <= getLatestEcmaVersion(userEspree)) return userEspree; return linterEspree; } /** * Load `espree` from the user dir. */ function getEspreeFromUser() { try { const cwd = process.cwd(); const relativeTo = path.join(cwd, "__placeholder__.js"); return createRequire$1(relativeTo)("espree"); } catch { return getEspreeFromLinter(); } } /** * Load `espree` from the loaded ESLint. * If the loaded ESLint was not found, just returns `require("espree")`. */ function getEspreeFromLinter() { if (!espreeCache) { espreeCache = getLinterRequire()?.("espree"); if (!espreeCache) espreeCache = dependencyEspree; } return espreeCache; } /** * Load the newest `espree` from the loaded ESLint or dependency. */ function getNewestEspree() { let newest = dependencyEspree; const linterEspree = getEspreeFromLinter(); if (linterEspree.version != null && lte(newest.version, linterEspree.version)) newest = linterEspree; const userEspree = getEspreeFromUser(); if (userEspree.version != null && lte(newest.version, userEspree.version)) newest = userEspree; return newest; } function getEcmaVersionIfUseEspree(parserOptions, getDefault) { if (parserOptions.parser != null && parserOptions.parser !== "espree") return void 0; if (parserOptions.ecmaVersion === "latest") return normalizeEcmaVersion(getLatestEcmaVersion(getNewestEspree())); if (parserOptions.ecmaVersion == null) { const defVer = getDefaultEcmaVersion(); return getDefault?.(defVer) ?? defVer; } return normalizeEcmaVersion(parserOptions.ecmaVersion); } function getDefaultEcmaVersion() { if (lt(getEspreeFromLinter().version, "9.0.0")) return 5; return normalizeEcmaVersion(getLatestEcmaVersion(getNewestEspree())); } /** * Normalize ECMAScript version */ function normalizeEcmaVersion(version$1) { if (version$1 > 5 && version$1 < 2015) return version$1 + 2009; return version$1; } function getLatestEcmaVersion(espree) { if (espree.latestEcmaVersion == null) { for (const { v, latest } of [{ v: "6.1.0", latest: 2020 }, { v: "4.0.0", latest: 2019 }]) if (lte(v, espree.version)) return latest; return 2018; } return normalizeEcmaVersion(espree.latestEcmaVersion); } //#endregion //#region src/types.ts let ReferenceFlag = /* @__PURE__ */ function(ReferenceFlag$1) { ReferenceFlag$1[ReferenceFlag$1["Read"] = 1] = "Read"; ReferenceFlag$1[ReferenceFlag$1["Write"] = 2] = "Write"; ReferenceFlag$1[ReferenceFlag$1["ReadWrite"] = 3] = "ReadWrite"; return ReferenceFlag$1; }({}); let ReferenceTypeFlag = /* @__PURE__ */ function(ReferenceTypeFlag$1) { ReferenceTypeFlag$1[ReferenceTypeFlag$1["Value"] = 1] = "Value"; ReferenceTypeFlag$1[ReferenceTypeFlag$1["Type"] = 2] = "Type"; return ReferenceTypeFlag$1; }({}); //#endregion //#region src/common/vine-specific.ts function createVirtualVineFnPropsReference({ compFnPropsIdentifier, foundVCFScope }) { const virtualReference = new tsEscopeTypes.Reference(compFnPropsIdentifier, foundVCFScope, ReferenceFlag.Read, void 0, void 0, void 0, ReferenceTypeFlag.Value); virtualReference.isWrite = () => false; virtualReference.isWriteOnly = () => false; virtualReference.isRead = () => true; virtualReference.isReadOnly = () => true; virtualReference.isReadWrite = () => false; return virtualReference; } //#endregion //#region src/common/debug.ts const debug = debugFactory("vue-vine-eslint-parser"); //#endregion //#region src/common/error-utils.ts /** * Insert the given error. * @param templateMeta template tokens, comments and errors. * @param error The error to insert. */ function insertError(templateMeta, error) { const index = templateMeta.errors.findIndex((e) => e.index === error.index); templateMeta.errors.splice(index, 0, error); } //#endregion //#region src/common/token-utils.ts /** * Create a simple token. * @param type The type of new token. * @param start The offset of the start position of new token. * @param end The offset of the end position of new token. * @param value The value of new token. * @returns The new token. */ function createSimpleToken(type, start, end, value, linesAndColumns) { return { type, range: [start, end], loc: { start: linesAndColumns.getLocFromIndex(start), end: linesAndColumns.getLocFromIndex(end) }, value }; } /** * Insert the given comment tokens. * @param templateMeta template tokens, comments and errors. * @param newComments The comments to insert. */ function insertComments(templateMeta, newComments) { if (newComments.length === 0) return; const index = templateMeta.comments.findIndex((comment) => comment.range[0] === newComments[0].range[0]); templateMeta.comments.splice(index, 0, ...newComments); } /** * Replace the tokens in the given range. * @param templateMeta template tokens, comments and errors. * @param node The node to specify the range of replacement. * @param newTokens The new tokens. */ function replaceTokens(templateMeta, node, newTokens) { const index = templateMeta.tokens.findIndex((token) => token.range[0] === node.range[0]); const count = templateMeta.tokens.findIndex((token) => token.range[1] === node.range[1]) - index + 1; templateMeta.tokens.splice(index, count, ...newTokens); } //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/head.js var require_head = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/head.js"(exports, module) { /** * Gets the first element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @alias first * @category Array * @param {Array} array The array to query. * @returns {*} Returns the first element of `array`. * @example * * _.head([1, 2, 3]); * // => 1 * * _.head([]); * // => undefined */ function head(array) { return array && array.length ? array[0] : void 0; } module.exports = head; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/first.js var require_first = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/first.js"(exports, module) { module.exports = require_head(); } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js var require_last = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/last.js"(exports, module) { /** * Gets the last element of `array`. * * @static * @memberOf _ * @since 0.1.0 * @category Array * @param {Array} array The array to query. * @returns {*} Returns the last element of `array`. * @example * * _.last([1, 2, 3]); * // => 3 */ function last$3(array) { var length = array == null ? 0 : array.length; return length ? array[length - 1] : void 0; } module.exports = last$3; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js var require__listCacheClear = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheClear.js"(exports, module) { /** * Removes all key-value entries from the list cache. * * @private * @name clear * @memberOf ListCache */ function listCacheClear$1() { this.__data__ = []; this.size = 0; } module.exports = listCacheClear$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js var require_eq = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/eq.js"(exports, module) { /** * Performs a * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero) * comparison between two values to determine if they are equivalent. * * @static * @memberOf _ * @since 4.0.0 * @category Lang * @param {*} value The value to compare. * @param {*} other The other value to compare. * @returns {boolean} Returns `true` if the values are equivalent, else `false`. * @example * * var object = { 'a': 1 }; * var other = { 'a': 1 }; * * _.eq(object, object); * // => true * * _.eq(object, other); * // => false * * _.eq('a', 'a'); * // => true * * _.eq('a', Object('a')); * // => false * * _.eq(NaN, NaN); * // => true */ function eq$2(value, other) { return value === other || value !== value && other !== other; } module.exports = eq$2; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js var require__assocIndexOf = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_assocIndexOf.js"(exports, module) { var eq$1 = require_eq(); /** * Gets the index at which the `key` is found in `array` of key-value pairs. * * @private * @param {Array} array The array to inspect. * @param {*} key The key to search for. * @returns {number} Returns the index of the matched value, else `-1`. */ function assocIndexOf$4(array, key) { var length = array.length; while (length--) if (eq$1(array[length][0], key)) return length; return -1; } module.exports = assocIndexOf$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js var require__listCacheDelete = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheDelete.js"(exports, module) { var assocIndexOf$3 = require__assocIndexOf(); /** Used for built-in method references. */ var arrayProto = Array.prototype; /** Built-in value references. */ var splice = arrayProto.splice; /** * Removes `key` and its value from the list cache. * * @private * @name delete * @memberOf ListCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function listCacheDelete$1(key) { var data = this.__data__, index = assocIndexOf$3(data, key); if (index < 0) return false; var lastIndex = data.length - 1; if (index == lastIndex) data.pop(); else splice.call(data, index, 1); --this.size; return true; } module.exports = listCacheDelete$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js var require__listCacheGet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheGet.js"(exports, module) { var assocIndexOf$2 = require__assocIndexOf(); /** * Gets the list cache value for `key`. * * @private * @name get * @memberOf ListCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function listCacheGet$1(key) { var data = this.__data__, index = assocIndexOf$2(data, key); return index < 0 ? void 0 : data[index][1]; } module.exports = listCacheGet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js var require__listCacheHas = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheHas.js"(exports, module) { var assocIndexOf$1 = require__assocIndexOf(); /** * Checks if a list cache value for `key` exists. * * @private * @name has * @memberOf ListCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function listCacheHas$1(key) { return assocIndexOf$1(this.__data__, key) > -1; } module.exports = listCacheHas$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js var require__listCacheSet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_listCacheSet.js"(exports, module) { var assocIndexOf = require__assocIndexOf(); /** * Sets the list cache `key` to `value`. * * @private * @name set * @memberOf ListCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the list cache instance. */ function listCacheSet$1(key, value) { var data = this.__data__, index = assocIndexOf(data, key); if (index < 0) { ++this.size; data.push([key, value]); } else data[index][1] = value; return this; } module.exports = listCacheSet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js var require__ListCache = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_ListCache.js"(exports, module) { var listCacheClear = require__listCacheClear(), listCacheDelete = require__listCacheDelete(), listCacheGet = require__listCacheGet(), listCacheHas = require__listCacheHas(), listCacheSet = require__listCacheSet(); /** * Creates an list cache object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function ListCache$4(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } ListCache$4.prototype.clear = listCacheClear; ListCache$4.prototype["delete"] = listCacheDelete; ListCache$4.prototype.get = listCacheGet; ListCache$4.prototype.has = listCacheHas; ListCache$4.prototype.set = listCacheSet; module.exports = ListCache$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js var require__stackClear = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackClear.js"(exports, module) { var ListCache$3 = require__ListCache(); /** * Removes all key-value entries from the stack. * * @private * @name clear * @memberOf Stack */ function stackClear$1() { this.__data__ = new ListCache$3(); this.size = 0; } module.exports = stackClear$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js var require__stackDelete = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackDelete.js"(exports, module) { /** * Removes `key` and its value from the stack. * * @private * @name delete * @memberOf Stack * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function stackDelete$1(key) { var data = this.__data__, result = data["delete"](key); this.size = data.size; return result; } module.exports = stackDelete$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js var require__stackGet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackGet.js"(exports, module) { /** * Gets the stack value for `key`. * * @private * @name get * @memberOf Stack * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function stackGet$1(key) { return this.__data__.get(key); } module.exports = stackGet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js var require__stackHas = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackHas.js"(exports, module) { /** * Checks if a stack value for `key` exists. * * @private * @name has * @memberOf Stack * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function stackHas$1(key) { return this.__data__.has(key); } module.exports = stackHas$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js var require__freeGlobal = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_freeGlobal.js"(exports, module) { /** Detect free variable `global` from Node.js. */ var freeGlobal$2 = typeof global == "object" && global && global.Object === Object && global; module.exports = freeGlobal$2; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js var require__root = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_root.js"(exports, module) { var freeGlobal$1 = require__freeGlobal(); /** Detect free variable `self`. */ var freeSelf = typeof self == "object" && self && self.Object === Object && self; /** Used as a reference to the global object. */ var root$9 = freeGlobal$1 || freeSelf || Function("return this")(); module.exports = root$9; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js var require__Symbol = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Symbol.js"(exports, module) { var root$8 = require__root(); /** Built-in value references. */ var Symbol$4 = root$8.Symbol; module.exports = Symbol$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js var require__getRawTag = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getRawTag.js"(exports, module) { var Symbol$3 = require__Symbol(); /** Used for built-in method references. */ var objectProto$11 = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty$8 = objectProto$11.hasOwnProperty; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString$1 = objectProto$11.toString; /** Built-in value references. */ var symToStringTag$1 = Symbol$3 ? Symbol$3.toStringTag : void 0; /** * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values. * * @private * @param {*} value The value to query. * @returns {string} Returns the raw `toStringTag`. */ function getRawTag$1(value) { var isOwn = hasOwnProperty$8.call(value, symToStringTag$1), tag = value[symToStringTag$1]; try { value[symToStringTag$1] = void 0; var unmasked = true; } catch (e) {} var result = nativeObjectToString$1.call(value); if (unmasked) if (isOwn) value[symToStringTag$1] = tag; else delete value[symToStringTag$1]; return result; } module.exports = getRawTag$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js var require__objectToString = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_objectToString.js"(exports, module) { /** Used for built-in method references. */ var objectProto$10 = Object.prototype; /** * Used to resolve the * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring) * of values. */ var nativeObjectToString = objectProto$10.toString; /** * Converts `value` to a string using `Object.prototype.toString`. * * @private * @param {*} value The value to convert. * @returns {string} Returns the converted string. */ function objectToString$1(value) { return nativeObjectToString.call(value); } module.exports = objectToString$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js var require__baseGetTag = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseGetTag.js"(exports, module) { var Symbol$2 = require__Symbol(), getRawTag = require__getRawTag(), objectToString = require__objectToString(); /** `Object#toString` result references. */ var nullTag = "[object Null]", undefinedTag = "[object Undefined]"; /** Built-in value references. */ var symToStringTag = Symbol$2 ? Symbol$2.toStringTag : void 0; /** * The base implementation of `getTag` without fallbacks for buggy environments. * * @private * @param {*} value The value to query. * @returns {string} Returns the `toStringTag`. */ function baseGetTag$5(value) { if (value == null) return value === void 0 ? undefinedTag : nullTag; return symToStringTag && symToStringTag in Object(value) ? getRawTag(value) : objectToString(value); } module.exports = baseGetTag$5; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js var require_isObject = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isObject.js"(exports, module) { /** * Checks if `value` is the * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types) * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is an object, else `false`. * @example * * _.isObject({}); * // => true * * _.isObject([1, 2, 3]); * // => true * * _.isObject(_.noop); * // => true * * _.isObject(null); * // => false */ function isObject$4(value) { var type = typeof value; return value != null && (type == "object" || type == "function"); } module.exports = isObject$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js var require_isFunction = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/isFunction.js"(exports, module) { var baseGetTag$4 = require__baseGetTag(), isObject$3 = require_isObject(); /** `Object#toString` result references. */ var asyncTag = "[object AsyncFunction]", funcTag$1 = "[object Function]", genTag = "[object GeneratorFunction]", proxyTag = "[object Proxy]"; /** * Checks if `value` is classified as a `Function` object. * * @static * @memberOf _ * @since 0.1.0 * @category Lang * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a function, else `false`. * @example * * _.isFunction(_); * // => true * * _.isFunction(/abc/); * // => false */ function isFunction$2(value) { if (!isObject$3(value)) return false; var tag = baseGetTag$4(value); return tag == funcTag$1 || tag == genTag || tag == asyncTag || tag == proxyTag; } module.exports = isFunction$2; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js var require__coreJsData = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_coreJsData.js"(exports, module) { var root$7 = require__root(); /** Used to detect overreaching core-js shims. */ var coreJsData$1 = root$7["__core-js_shared__"]; module.exports = coreJsData$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js var require__isMasked = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isMasked.js"(exports, module) { var coreJsData = require__coreJsData(); /** Used to detect methods masquerading as native. */ var maskSrcKey = function() { var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || ""); return uid ? "Symbol(src)_1." + uid : ""; }(); /** * Checks if `func` has its source masked. * * @private * @param {Function} func The function to check. * @returns {boolean} Returns `true` if `func` is masked, else `false`. */ function isMasked$1(func) { return !!maskSrcKey && maskSrcKey in func; } module.exports = isMasked$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js var require__toSource = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_toSource.js"(exports, module) { /** Used for built-in method references. */ var funcProto$1 = Function.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString$1 = funcProto$1.toString; /** * Converts `func` to its source code. * * @private * @param {Function} func The function to convert. * @returns {string} Returns the source code. */ function toSource$2(func) { if (func != null) { try { return funcToString$1.call(func); } catch (e) {} try { return func + ""; } catch (e) {} } return ""; } module.exports = toSource$2; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js var require__baseIsNative = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_baseIsNative.js"(exports, module) { var isFunction$1 = require_isFunction(), isMasked = require__isMasked(), isObject$2 = require_isObject(), toSource$1 = require__toSource(); /** * Used to match `RegExp` * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns). */ var reRegExpChar = /[\\^$.*+?()[\]{}|]/g; /** Used to detect host constructors (Safari). */ var reIsHostCtor = /^\[object .+?Constructor\]$/; /** Used for built-in method references. */ var funcProto = Function.prototype, objectProto$9 = Object.prototype; /** Used to resolve the decompiled source of functions. */ var funcToString = funcProto.toString; /** Used to check objects for own properties. */ var hasOwnProperty$7 = objectProto$9.hasOwnProperty; /** Used to detect if a method is native. */ var reIsNative = RegExp("^" + funcToString.call(hasOwnProperty$7).replace(reRegExpChar, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"); /** * The base implementation of `_.isNative` without bad shim checks. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is a native function, * else `false`. */ function baseIsNative$1(value) { if (!isObject$2(value) || isMasked(value)) return false; var pattern = isFunction$1(value) ? reIsNative : reIsHostCtor; return pattern.test(toSource$1(value)); } module.exports = baseIsNative$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js var require__getValue = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getValue.js"(exports, module) { /** * Gets the value at `key` of `object`. * * @private * @param {Object} [object] The object to query. * @param {string} key The key of the property to get. * @returns {*} Returns the property value. */ function getValue$1(object, key) { return object == null ? void 0 : object[key]; } module.exports = getValue$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js var require__getNative = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getNative.js"(exports, module) { var baseIsNative = require__baseIsNative(), getValue = require__getValue(); /** * Gets the native function at `key` of `object`. * * @private * @param {Object} object The object to query. * @param {string} key The key of the method to get. * @returns {*} Returns the function if it's native, else `undefined`. */ function getNative$6(object, key) { var value = getValue(object, key); return baseIsNative(value) ? value : void 0; } module.exports = getNative$6; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js var require__Map = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Map.js"(exports, module) { var getNative$5 = require__getNative(), root$6 = require__root(); var Map$4 = getNative$5(root$6, "Map"); module.exports = Map$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js var require__nativeCreate = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_nativeCreate.js"(exports, module) { var getNative$4 = require__getNative(); var nativeCreate$4 = getNative$4(Object, "create"); module.exports = nativeCreate$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js var require__hashClear = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashClear.js"(exports, module) { var nativeCreate$3 = require__nativeCreate(); /** * Removes all key-value entries from the hash. * * @private * @name clear * @memberOf Hash */ function hashClear$1() { this.__data__ = nativeCreate$3 ? nativeCreate$3(null) : {}; this.size = 0; } module.exports = hashClear$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js var require__hashDelete = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashDelete.js"(exports, module) { /** * Removes `key` and its value from the hash. * * @private * @name delete * @memberOf Hash * @param {Object} hash The hash to modify. * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function hashDelete$1(key) { var result = this.has(key) && delete this.__data__[key]; this.size -= result ? 1 : 0; return result; } module.exports = hashDelete$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js var require__hashGet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashGet.js"(exports, module) { var nativeCreate$2 = require__nativeCreate(); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED$2 = "__lodash_hash_undefined__"; /** Used for built-in method references. */ var objectProto$8 = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty$6 = objectProto$8.hasOwnProperty; /** * Gets the hash value for `key`. * * @private * @name get * @memberOf Hash * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function hashGet$1(key) { var data = this.__data__; if (nativeCreate$2) { var result = data[key]; return result === HASH_UNDEFINED$2 ? void 0 : result; } return hasOwnProperty$6.call(data, key) ? data[key] : void 0; } module.exports = hashGet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js var require__hashHas = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashHas.js"(exports, module) { var nativeCreate$1 = require__nativeCreate(); /** Used for built-in method references. */ var objectProto$7 = Object.prototype; /** Used to check objects for own properties. */ var hasOwnProperty$5 = objectProto$7.hasOwnProperty; /** * Checks if a hash value for `key` exists. * * @private * @name has * @memberOf Hash * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function hashHas$1(key) { var data = this.__data__; return nativeCreate$1 ? data[key] !== void 0 : hasOwnProperty$5.call(data, key); } module.exports = hashHas$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js var require__hashSet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_hashSet.js"(exports, module) { var nativeCreate = require__nativeCreate(); /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED$1 = "__lodash_hash_undefined__"; /** * Sets the hash `key` to `value`. * * @private * @name set * @memberOf Hash * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the hash instance. */ function hashSet$1(key, value) { var data = this.__data__; this.size += this.has(key) ? 0 : 1; data[key] = nativeCreate && value === void 0 ? HASH_UNDEFINED$1 : value; return this; } module.exports = hashSet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js var require__Hash = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Hash.js"(exports, module) { var hashClear = require__hashClear(), hashDelete = require__hashDelete(), hashGet = require__hashGet(), hashHas = require__hashHas(), hashSet = require__hashSet(); /** * Creates a hash object. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Hash$1(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } Hash$1.prototype.clear = hashClear; Hash$1.prototype["delete"] = hashDelete; Hash$1.prototype.get = hashGet; Hash$1.prototype.has = hashHas; Hash$1.prototype.set = hashSet; module.exports = Hash$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js var require__mapCacheClear = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheClear.js"(exports, module) { var Hash = require__Hash(), ListCache$2 = require__ListCache(), Map$3 = require__Map(); /** * Removes all key-value entries from the map. * * @private * @name clear * @memberOf MapCache */ function mapCacheClear$1() { this.size = 0; this.__data__ = { "hash": new Hash(), "map": new (Map$3 || ListCache$2)(), "string": new Hash() }; } module.exports = mapCacheClear$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js var require__isKeyable = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_isKeyable.js"(exports, module) { /** * Checks if `value` is suitable for use as unique object key. * * @private * @param {*} value The value to check. * @returns {boolean} Returns `true` if `value` is suitable, else `false`. */ function isKeyable$1(value) { var type = typeof value; return type == "string" || type == "number" || type == "symbol" || type == "boolean" ? value !== "__proto__" : value === null; } module.exports = isKeyable$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js var require__getMapData = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_getMapData.js"(exports, module) { var isKeyable = require__isKeyable(); /** * Gets the data for `map`. * * @private * @param {Object} map The map to query. * @param {string} key The reference key. * @returns {*} Returns the map data. */ function getMapData$4(map, key) { var data = map.__data__; return isKeyable(key) ? data[typeof key == "string" ? "string" : "hash"] : data.map; } module.exports = getMapData$4; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js var require__mapCacheDelete = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheDelete.js"(exports, module) { var getMapData$3 = require__getMapData(); /** * Removes `key` and its value from the map. * * @private * @name delete * @memberOf MapCache * @param {string} key The key of the value to remove. * @returns {boolean} Returns `true` if the entry was removed, else `false`. */ function mapCacheDelete$1(key) { var result = getMapData$3(this, key)["delete"](key); this.size -= result ? 1 : 0; return result; } module.exports = mapCacheDelete$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js var require__mapCacheGet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheGet.js"(exports, module) { var getMapData$2 = require__getMapData(); /** * Gets the map value for `key`. * * @private * @name get * @memberOf MapCache * @param {string} key The key of the value to get. * @returns {*} Returns the entry value. */ function mapCacheGet$1(key) { return getMapData$2(this, key).get(key); } module.exports = mapCacheGet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js var require__mapCacheHas = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheHas.js"(exports, module) { var getMapData$1 = require__getMapData(); /** * Checks if a map value for `key` exists. * * @private * @name has * @memberOf MapCache * @param {string} key The key of the entry to check. * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`. */ function mapCacheHas$1(key) { return getMapData$1(this, key).has(key); } module.exports = mapCacheHas$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js var require__mapCacheSet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_mapCacheSet.js"(exports, module) { var getMapData = require__getMapData(); /** * Sets the map `key` to `value`. * * @private * @name set * @memberOf MapCache * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the map cache instance. */ function mapCacheSet$1(key, value) { var data = getMapData(this, key), size = data.size; data.set(key, value); this.size += data.size == size ? 0 : 1; return this; } module.exports = mapCacheSet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js var require__MapCache = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_MapCache.js"(exports, module) { var mapCacheClear = require__mapCacheClear(), mapCacheDelete = require__mapCacheDelete(), mapCacheGet = require__mapCacheGet(), mapCacheHas = require__mapCacheHas(), mapCacheSet = require__mapCacheSet(); /** * Creates a map cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function MapCache$3(entries) { var index = -1, length = entries == null ? 0 : entries.length; this.clear(); while (++index < length) { var entry = entries[index]; this.set(entry[0], entry[1]); } } MapCache$3.prototype.clear = mapCacheClear; MapCache$3.prototype["delete"] = mapCacheDelete; MapCache$3.prototype.get = mapCacheGet; MapCache$3.prototype.has = mapCacheHas; MapCache$3.prototype.set = mapCacheSet; module.exports = MapCache$3; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js var require__stackSet = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_stackSet.js"(exports, module) { var ListCache$1 = require__ListCache(), Map$2 = require__Map(), MapCache$2 = require__MapCache(); /** Used as the size to enable large array optimizations. */ var LARGE_ARRAY_SIZE = 200; /** * Sets the stack `key` to `value`. * * @private * @name set * @memberOf Stack * @param {string} key The key of the value to set. * @param {*} value The value to set. * @returns {Object} Returns the stack cache instance. */ function stackSet$1(key, value) { var data = this.__data__; if (data instanceof ListCache$1) { var pairs = data.__data__; if (!Map$2 || pairs.length < LARGE_ARRAY_SIZE - 1) { pairs.push([key, value]); this.size = ++data.size; return this; } data = this.__data__ = new MapCache$2(pairs); } data.set(key, value); this.size = data.size; return this; } module.exports = stackSet$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js var require__Stack = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_Stack.js"(exports, module) { var ListCache = require__ListCache(), stackClear = require__stackClear(), stackDelete = require__stackDelete(), stackGet = require__stackGet(), stackHas = require__stackHas(), stackSet = require__stackSet(); /** * Creates a stack cache object to store key-value pairs. * * @private * @constructor * @param {Array} [entries] The key-value pairs to cache. */ function Stack$2(entries) { var data = this.__data__ = new ListCache(entries); this.size = data.size; } Stack$2.prototype.clear = stackClear; Stack$2.prototype["delete"] = stackDelete; Stack$2.prototype.get = stackGet; Stack$2.prototype.has = stackHas; Stack$2.prototype.set = stackSet; module.exports = Stack$2; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js var require__setCacheAdd = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheAdd.js"(exports, module) { /** Used to stand-in for `undefined` hash values. */ var HASH_UNDEFINED = "__lodash_hash_undefined__"; /** * Adds `value` to the array cache. * * @private * @name add * @memberOf SetCache * @alias push * @param {*} value The value to cache. * @returns {Object} Returns the cache instance. */ function setCacheAdd$1(value) { this.__data__.set(value, HASH_UNDEFINED); return this; } module.exports = setCacheAdd$1; } }); //#endregion //#region ../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js var require__setCacheHas = __commonJS({ "../../node_modules/.pnpm/lodash@4.17.21/node_modules/lodash/_setCacheHas.js"(exports, module) { /** * Checks if `value` is in the array cache. * * @private * @name has * @memberOf SetCache * @param {*} value The value to search for. * @returns {number} Returns `true` if `value` is found, else `false`. */ function setCacheHas$1(value) { return this.__data__.has(value); } module.exports = setCacheHas$1; } }); //#endregion //