{"version":3,"file":"micro-dash.mjs","sources":["../../../projects/micro-dash/src/lib/array/chunk.ts","../../../projects/micro-dash/src/lib/util/constant.ts","../../../projects/micro-dash/src/lib/util/identity.ts","../../../projects/micro-dash/src/lib/util/flow.ts","../../../projects/micro-dash/src/lib/util/flow-right.ts","../../../projects/micro-dash/src/lib/lang/cast-array.ts","../../../projects/micro-dash/src/lib/lang/clone.ts","../../../projects/micro-dash/src/lib/lang/clone-deep.ts","../../../projects/micro-dash/src/lib/lang/is-boolean.ts","../../../projects/micro-dash/src/lib/object/keys.ts","../../../projects/micro-dash/src/lib/lang/is-empty.ts","../../../projects/micro-dash/src/lib/lang/is-equal.ts","../../../projects/micro-dash/src/lib/lang/is-function.ts","../../../projects/micro-dash/src/lib/object/for-own.ts","../../../projects/micro-dash/src/lib/collection/for-each.ts","../../../projects/micro-dash/src/lib/collection/every.ts","../../../projects/micro-dash/src/lib/lang/is-match.ts","../../../projects/micro-dash/src/lib/lang/is-nil.ts","../../../projects/micro-dash/src/lib/lang/is-number.ts","../../../projects/micro-dash/src/lib/lang/is-object.ts","../../../projects/micro-dash/src/lib/lang/is-reg-exp.ts","../../../projects/micro-dash/src/lib/lang/is-string.ts","../../../projects/micro-dash/src/lib/lang/is-undefined.ts","../../../projects/micro-dash/src/lib/object/values.ts","../../../projects/micro-dash/src/lib/lang/to-array.ts","../../../projects/micro-dash/src/lib/lang/to-string.ts","../../../projects/micro-dash/src/lib/util/matches.ts","../../../projects/micro-dash/src/lib/util/noop.ts","../../../projects/micro-dash/src/lib/object/get.ts","../../../projects/micro-dash/src/lib/util/property.ts","../../../projects/micro-dash/src/lib/util/times.ts","../../../projects/micro-dash/src/lib/util/range.ts","../../../projects/micro-dash/src/lib/util/unique-id.ts","../../../projects/micro-dash/src/lib/array/compact.ts","../../../projects/micro-dash/src/lib/array/concat.ts","../../../projects/micro-dash/src/lib/array/remove.ts","../../../projects/micro-dash/src/lib/array/pull-all.ts","../../../projects/micro-dash/src/lib/array/flatten.ts","../../../projects/micro-dash/src/lib/array/difference.ts","../../../projects/micro-dash/src/lib/array/initial.ts","../../../projects/micro-dash/src/lib/array/intersection.ts","../../../projects/micro-dash/src/lib/array/last.ts","../../../projects/micro-dash/src/lib/array/nth.ts","../../../projects/micro-dash/src/lib/array/pull.ts","../../../projects/micro-dash/src/lib/array/pull-at.ts","../../../projects/micro-dash/src/lib/collection/map.ts","../../../projects/micro-dash/src/lib/collection/sort-by.ts","../../../projects/micro-dash/src/lib/array/sorted-index.ts","../../../projects/micro-dash/src/lib/array/union.ts","../../../projects/micro-dash/src/lib/array/uniq.ts","../../../projects/micro-dash/src/lib/array/uniq-by.ts","../../../projects/micro-dash/src/lib/array/without.ts","../../../projects/micro-dash/src/lib/array/zip.ts","../../../projects/micro-dash/src/lib/object/find-key.ts","../../../projects/micro-dash/src/lib/collection/for-each-right.ts","../../../projects/micro-dash/src/lib/object/for-own-right.ts","../../../projects/micro-dash/src/lib/object/functions.ts","../../../projects/micro-dash/src/lib/object/invoke.ts","../../../projects/micro-dash/src/lib/object/map-keys.ts","../../../projects/micro-dash/src/lib/object/map-values.ts","../../../projects/micro-dash/src/lib/collection/filter.ts","../../../projects/micro-dash/src/lib/collection/find.ts","../../../projects/micro-dash/src/lib/collection/flat-map.ts","../../../projects/micro-dash/src/lib/object/transform.ts","../../../projects/micro-dash/src/lib/collection/group-by.ts","../../../projects/micro-dash/src/lib/collection/includes.ts","../../../projects/micro-dash/src/lib/collection/key-by.ts","../../../projects/micro-dash/src/lib/collection/partition.ts","../../../projects/micro-dash/src/lib/collection/reduce-utils.ts","../../../projects/micro-dash/src/lib/collection/reduce.ts","../../../projects/micro-dash/src/lib/collection/reject.ts","../../../projects/micro-dash/src/lib/collection/reduce-right.ts","../../../projects/micro-dash/src/lib/math/extreme-utils.ts","../../../projects/micro-dash/src/lib/math/max-by.ts","../../../projects/micro-dash/src/lib/math/min-by.ts","../../../projects/micro-dash/src/lib/math/random.ts","../../../projects/micro-dash/src/lib/math/round.ts","../../../projects/micro-dash/src/lib/math/sum-by.ts","../../../projects/micro-dash/src/lib/collection/sample.ts","../../../projects/micro-dash/src/lib/collection/sample-size.ts","../../../projects/micro-dash/src/lib/collection/size.ts","../../../projects/micro-dash/src/lib/collection/shuffle.ts","../../../projects/micro-dash/src/lib/collection/some.ts","../../../projects/micro-dash/src/lib/object/merge.ts","../../../projects/micro-dash/src/lib/object/omit.ts","../../../projects/micro-dash/src/lib/object/pick-by.ts","../../../projects/micro-dash/src/lib/object/omit-by.ts","../../../projects/micro-dash/src/lib/object/pick.ts","../../../projects/micro-dash/src/lib/object/update.ts","../../../projects/micro-dash/src/lib/object/set.ts","../../../projects/micro-dash/src/lib/object/to-pairs.ts","../../../projects/micro-dash/src/lib/array/zip-object.ts","../../../projects/micro-dash/src/lib/function/bind-key.ts","../../../projects/micro-dash/src/lib/function/partial.ts","../../../projects/micro-dash/src/lib/function/curry.ts","../../../projects/micro-dash/src/lib/function/debounce.ts","../../../projects/micro-dash/src/lib/function/memoize.ts","../../../projects/micro-dash/src/lib/function/negate.ts","../../../projects/micro-dash/src/lib/function/once.ts","../../../projects/micro-dash/src/lib/function/throttle.ts","../../../projects/micro-dash/src/lib/number/clamp.ts","../../../projects/micro-dash/src/lib/number/in-range.ts","../../../projects/micro-dash/src/lib/string/upper-first.ts","../../../projects/micro-dash/src/lib/string/capitalize.ts","../../../projects/micro-dash/src/lib/string/words.ts","../../../projects/micro-dash/src/lib/string/camel-case.ts","../../../projects/micro-dash/src/lib/string/to-lower.ts","../../../projects/micro-dash/src/lib/string/kebab-case.ts","../../../projects/micro-dash/src/lib/string/lower-first.ts","../../../projects/micro-dash/src/lib/string/pad.ts","../../../projects/micro-dash/src/lib/string/pad-start.ts","../../../projects/micro-dash/src/lib/string/pad-end.ts","../../../projects/micro-dash/src/lib/string/repeat.ts","../../../projects/micro-dash/src/lib/string/snake-case.ts","../../../projects/micro-dash/src/lib/string/start-case.ts","../../../projects/micro-dash/src/public-api.ts","../../../projects/micro-dash/src/micro-dash.ts"],"sourcesContent":["/**\n * Creates an array of elements split into groups the length of `size`. If `array` can't be split evenly, the final chunk will be the remaining elements.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,696 bytes\n * - Micro-dash: 164 bytes\n */\nexport function chunk<T>(array: readonly T[], size = 1): T[][] {\n  size = Math.max(Math.trunc(size), 0);\n  const chunks = [];\n  for (let i = 0; i < array.length; i += Math.max(1, size)) {\n    chunks.push(array.slice(i, i + size));\n  }\n  return chunks;\n}\n","/**\n * Creates a function that returns `value`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 80 bytes\n * - Micro-dash: 56 bytes\n */\nexport function constant<T>(value: T): () => T {\n  return (): T => value;\n}\n","/**\n * This function returns the first argument it receives.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 51 bytes\n * - Micro-dash: 40 bytes\n */\nexport function identity<T>(value: T): T {\n  return value;\n}\n","import { identity } from './identity';\n\n/**\n * Creates a function that returns the result of invoking the given functions with the `this` binding of the created function, where each successive invocation is supplied the return value of the previous.\n *\n * Differences from lodash:\n * - does not accept an array of functions\n * - the first function called can take 0-1 arguments (in lodash it can be any number)\n * - might not construct a new function when it is unnecessary\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,695 bytes\n * - Micro-dash: 111 bytes\n */\n\n// types are from DefinitelyTyped/lodash\n\n// 0-argument first function\nexport function flow<R1, R2>(f1: () => R1, f2: (a: R1) => R2): () => R2;\nexport function flow<R1, R2, R3>(\n  f1: () => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n): () => R3;\nexport function flow<R1, R2, R3, R4>(\n  f1: () => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n): () => R4;\nexport function flow<R1, R2, R3, R4, R5>(\n  f1: () => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n): () => R5;\nexport function flow<R1, R2, R3, R4, R5, R6>(\n  f1: () => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n  f6: (a: R5) => R6,\n): () => R6;\nexport function flow<R1, R2, R3, R4, R5, R6, R7>(\n  f1: () => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n  f6: (a: R5) => R6,\n  f7: (a: R6) => R7,\n): () => R7;\n\n// 1-argument first function\nexport function flow<A1, R1, R2>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n): (a1: A1) => R2;\nexport function flow<A1, R1, R2, R3>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n): (a1: A1) => R3;\nexport function flow<A1, R1, R2, R3, R4>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n): (a1: A1) => R4;\nexport function flow<A1, R1, R2, R3, R4, R5>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n): (a1: A1) => R5;\nexport function flow<A1, R1, R2, R3, R4, R5, R6>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n  f6: (a: R5) => R6,\n): (a1: A1) => R6;\nexport function flow<A1, R1, R2, R3, R4, R5, R6, R7>(\n  f1: (a1: A1) => R1,\n  f2: (a: R1) => R2,\n  f3: (a: R2) => R3,\n  f4: (a: R3) => R4,\n  f5: (a: R4) => R5,\n  f6: (a: R5) => R6,\n  f7: (a: R6) => R7,\n): (a1: A1) => R7;\n\nexport function flow(): <T>(a: T) => T;\nexport function flow<T>(f1: () => T, ...funcs: Array<(val: T) => T>): () => T;\nexport function flow<T>(...funcs: Array<(val: T) => T>): (val: T) => T;\n\nexport function flow(...funcs: readonly Function[]): Function {\n  if (funcs.length) {\n    return funcs.reduce(\n      (result, func) =>\n        (input: unknown): unknown =>\n          func(result(input)),\n    );\n  } else {\n    return identity;\n  }\n}\n","import { identity } from './identity';\n\n/**\n * This function is like `flow` except that it creates a function that invokes the given functions from right to left.\n *\n * Differences from lodash:\n * - does not accept an array of functions\n * - the first function called can take 0-1 arguments (in lodash it can be any number)\n * - might not construct a new function when it is unnecessary\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,710 bytes\n * - Micro-dash: 111 bytes\n */\n\n// 0-argument first function\nexport function flowRight<R1, R2>(f2: (a: R1) => R2, f1: () => R1): () => R2;\nexport function flowRight<R1, R2, R3>(\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: () => R1,\n): () => R3;\nexport function flowRight<R1, R2, R3, R4>(\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: () => R1,\n): () => R4;\nexport function flowRight<R1, R2, R3, R4, R5>(\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: () => R1,\n): () => R5;\nexport function flowRight<R1, R2, R3, R4, R5, R6>(\n  f6: (a: R5) => R6,\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: () => R1,\n): () => R6;\nexport function flowRight<R1, R2, R3, R4, R5, R6, R7>(\n  f7: (a: R6) => R7,\n  f6: (a: R5) => R6,\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: () => R1,\n): () => R7;\n\n// 1-argument first function\nexport function flowRight<A1, R1, R2>(\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R2;\nexport function flowRight<A1, R1, R2, R3>(\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R3;\nexport function flowRight<A1, R1, R2, R3, R4>(\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R4;\nexport function flowRight<A1, R1, R2, R3, R4, R5>(\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R5;\nexport function flowRight<A1, R1, R2, R3, R4, R5, R6>(\n  f6: (a: R5) => R6,\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R6;\nexport function flowRight<A1, R1, R2, R3, R4, R5, R6, R7>(\n  f7: (a: R6) => R7,\n  f6: (a: R5) => R6,\n  f5: (a: R4) => R5,\n  f4: (a: R3) => R4,\n  f3: (a: R2) => R3,\n  f2: (a: R1) => R2,\n  f1: (a1: A1) => R1,\n): (a1: A1) => R7;\n\nexport function flowRight(): <T>(a: T) => T;\nexport function flowRight<T>(\n  ...funcs: [...Array<(val: T) => T>, f1: () => T]\n): () => T;\nexport function flowRight<T>(...funcs: Array<(val: T) => T>): (val: T) => T;\n\nexport function flowRight(...funcs: readonly Function[]): Function {\n  if (funcs.length) {\n    return funcs.reduce(\n      (result, func) =>\n        (input: unknown): unknown =>\n          result(func(input)),\n    );\n  } else {\n    return identity;\n  }\n}\n","/**\n * Casts `value` as an array if it's not one.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 137 bytes\n * - Micro-dash: 69 bytes\n */\nexport function castArray<T>(value: T): T extends readonly unknown[] ? T : T[] {\n  return (Array.isArray(value) ? value : [value]) as any;\n}\n","/**\n * Creates a shallow clone of `value`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 14,214 bytes\n * - Micro-dash: 97 bytes\n */\nexport function clone<T>(value: T): T {\n  if (Array.isArray(value)) {\n    return value.slice() as any;\n  } else if (value instanceof Object) {\n    // eslint-disable-next-line @typescript-eslint/no-misused-spread\n    return { ...value };\n  } else {\n    return value;\n  }\n}\n","/**\n * This function is like `clone` except that it recursively clones `value`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 14,222 bytes\n * - Micro-dash: 59 bytes\n */\nexport function cloneDeep<T>(value: T): T {\n  return structuredClone(value);\n}\n","/**\n * Checks if `value` is classified as a boolean primitive.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 794 bytes\n * - Micro-dash: 54 bytes\n */\nexport function isBoolean(value: any): value is boolean {\n  return value === !!value;\n}\n","import { Nil, StringifiedKey } from '../interfaces';\n\n/**\n * Creates an array of the own enumerable property names of object.\n *\n * Differences from lodash:\n * - does not give any special consideration for arguments objects, strings, or prototype objects (e.g. many will have `'length'` in the returned array)\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 3,866 bytes\n * - Micro-dash: 165 bytes\n */\n\nexport function keys<T>(object: Nil | T): Array<StringifiedKey<T>> {\n  let val = keysOfNonArray(object);\n  if (Array.isArray(object)) {\n    val = val.filter((item) => item !== 'length');\n  }\n  return val as any;\n}\n\nexport function keysOfNonArray<T>(object: Nil | T): Array<StringifiedKey<T>> {\n  return object ? (Object.getOwnPropertyNames(object) as any) : [];\n}\n","import { keysOfNonArray } from '../object/keys';\n\n/**\n * Checks if `value` is an empty object or collection.\n *\n * Objects are considered empty if they have no own enumerable string keyed properties.\n *\n * Arrays are considered empty if they have a `length` of `0`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,945 bytes\n * - Micro-dash: 129 bytes\n */\nexport function isEmpty(value: any): boolean {\n  if (!Array.isArray(value)) {\n    value = keysOfNonArray(value);\n  }\n  return value.length === 0;\n}\n","import { keysOfNonArray } from '../object/keys';\n\n/**\n * Performs a deep comparison between two values to determine if they are equivalent.\n *\n * Differences from lodash:\n * - cannot handle circular references\n * - does not give special treatment to arrays; their own properties are compared just like other objects. Note this means sparse arrays are not equal to their dense \"equivalents\".\n * - `isEqual(0, -0) === false`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 12,400 bytes\n * - Micro-dash: 288 bytes\n */\nexport function isEqual(value: any, other: any): boolean {\n  if (Object.is(value, other)) {\n    // covers e.g. NaN === NaN\n    return true;\n  }\n  if (!(value instanceof Object && other instanceof Object)) {\n    return false;\n  }\n  for (const key of keysOfNonArray(value)) {\n    if (!other.hasOwnProperty(key)) {\n      return false;\n    }\n  }\n  for (const key of keysOfNonArray(other)) {\n    if (!isEqual(value[key], other[key])) {\n      return false;\n    }\n  }\n  return true;\n}\n","/**\n * Checks if `value` is classified as a `Function` object.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 924 bytes\n * - Micro-dash: 72 bytes\n */\nexport function isFunction(value: any): value is (...args: any[]) => any {\n  return typeof value === 'function';\n}\n","import { forEachOfArray } from '../collection/for-each';\nimport { ObjectIteratee } from '../interfaces';\nimport { keys, keysOfNonArray } from './keys';\n\n/**\n * Iterates over own enumerable string keyed properties of an object and invokes `iteratee` for each property. Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * Differences from lodash:\n * - does not treat sparse arrays as dense\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,212 bytes\n * - Micro-dash: 265 bytes\n */\nexport function forOwn<T>(\n  object: T,\n  iteratee: ObjectIteratee<T, boolean | void>,\n): T {\n  forEachOfArray(keys(object), (key) => iteratee(object[key as keyof T], key));\n  return object;\n}\n\nexport function forOwnOfNonArray<T>(\n  object: T,\n  iteratee: ObjectIteratee<T, boolean | void>,\n): T {\n  forEachOfArray(keysOfNonArray(object), (key) =>\n    iteratee(object[key as keyof T], key),\n  );\n  return object;\n}\n","import { ArrayIteratee, Nil, ObjectIteratee } from '../interfaces';\nimport { forOwnOfNonArray } from '../object/for-own';\n\n/**\n * Iterates over elements of `collection` and invokes `iteratee` for each element. Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,526 bytes\n * - Micro-dash: 249 bytes\n */\n\nexport function forEach<T extends Nil | readonly any[]>(\n  array: T,\n  iteratee: ArrayIteratee<NonNullable<T>[number], boolean | void>,\n): T;\nexport function forEach<T>(\n  object: T,\n  iteratee: ObjectIteratee<NonNullable<T>, boolean | void>,\n): T;\n\nexport function forEach(collection: any, iteratee: any): any {\n  if (Array.isArray(collection)) {\n    forEachOfArray(collection, iteratee);\n  } else {\n    forOwnOfNonArray(collection, iteratee);\n  }\n  return collection;\n}\n\nexport function forEachOfArray<T>(\n  array: readonly T[],\n  iteratee: ArrayIteratee<T, boolean | void>,\n): void {\n  for (let i = 0, len = array.length; i < len; ++i) {\n    if (iteratee(array[i], i) === false) {\n      break;\n    }\n  }\n}\n","import { ArrayIteratee, ObjectIteratee } from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Checks if `predicate` returns truty for **all** elements of `collection`. Iteration is stopped once predicate returns falsey.\n *\n * **Note:** This function returns `true` for [empty collections](https://en.wikipedia.org/wiki/Empty_set) because [everything is true](https://en.wikipedia.org/wiki/Vacuous_truth) of elements of empty collections.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,503 bytes\n * - Micro-dash: 323 bytes\n */\n\nexport function every<T>(\n  array: readonly T[] | undefined,\n  predicate: ArrayIteratee<T, any>,\n): boolean;\nexport function every<T>(\n  object: T | undefined,\n  predicate: ObjectIteratee<T, any>,\n): boolean;\n\nexport function every(collection: any, predicate: any): boolean {\n  let result = true;\n  forEach(\n    collection,\n    (value, keyOrIndex) => (result = !!predicate(value, keyOrIndex)),\n  );\n  return result;\n}\n","import { every } from '../collection/every';\nimport { DeepPartial } from '../interfaces';\nimport { isEmpty } from './is-empty';\n\n/**\n * Performs a partial deep comparison between `object` and `source` to determine if `object` contains equivalent property values.\n *\n * *Note:* This function is equivalent to `matches` when source is partially applied.\n *\n * Partial comparisons will match empty array and empty object source values against any array or object value, respectively.\n *\n * Differences from lodash:\n * - does not match `0` to `-0`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 12,917 bytes\n * - Micro-dash: 721 bytes\n */\nexport function isMatch<T>(object: T, source: DeepPartial<T>): boolean {\n  return isEmpty(source) || isMatch0(object, source);\n}\n\nfunction isMatch0(object: any, source: any): boolean {\n  if (Object.is(object, source)) {\n    return true;\n  }\n  if (!(object instanceof Object && source instanceof Object)) {\n    return false;\n  }\n  const isArray = Array.isArray(object);\n  if (isArray !== Array.isArray(source)) {\n    return false;\n  }\n\n  if (isArray) {\n    const unmatched: any[] = object.slice();\n    for (const innerSource of source) {\n      const i = unmatched.findIndex((item) => isMatch0(item, innerSource));\n      if (i < 0) {\n        return false;\n      }\n      unmatched.splice(i, 1);\n    }\n    return true;\n  } else {\n    return every(\n      source,\n      (value, key) =>\n        object.hasOwnProperty(key) && isMatch0(object[key], value),\n    );\n  }\n}\n","import { Nil } from '../interfaces';\n\n/**\n * Checks if value is `null` or `undefined`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 79 bytes\n * - Micro-dash: 71 bytes\n */\nexport function isNil(value: any): value is Nil {\n  return value == null;\n}\n","/**\n * Checks if `value` is classified as a `Number` primitive.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 796 bytes\n * - Micro-dash: 64 bytes\n */\nexport function isNumber(value: any): value is number {\n  return typeof value === 'number';\n}\n","/**\n * 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('')`)_\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 106 bytes\n * - Micro-dash: 65 bytes\n */\nexport function isObject(value: any): value is object {\n  return value instanceof Object;\n}\n","/**\n * Checks if `value` is classified as a `RegExp` object.\n *\n * Differences from lodash:\n * - returns `true` for subclasses of `RegExp`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,152 bytes\n * - Micro-dash: 69 bytes\n */\nexport function isRegExp(value: any): value is RegExp {\n  return value instanceof RegExp;\n}\n","/**\n * Checks if `value` is classified as a String primitive.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 861 bytes\n * - Micro-dash: 98 bytes\n */\nexport function isString(value: any): value is string {\n  return typeof value === 'string';\n}\n","/**\n * Checks if `value` is `undefined`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 82 bytes\n * - Micro-dash: 74 bytes\n */\nexport function isUndefined(value: any): value is undefined {\n  return value === undefined;\n}\n","import { keys, keysOfNonArray } from './keys';\n\n/**\n * Creates an array of the own enumerable string keyed property values of `object`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,073 bytes\n * - Micro-dash: 186 bytes\n */\nexport function values<T>(object: T): Array<T[keyof T]> {\n  return keys(object).map((key) => object[key as keyof T]);\n}\n\nexport function valuesOfNonArray<T>(object: T): Array<T[keyof T]> {\n  return keysOfNonArray(object).map((key) => object[key as keyof T]);\n}\n","import { Nil, Primitive } from '../interfaces';\nimport { valuesOfNonArray } from '../object/values';\n\n/**\n * Converts `value` to an array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,022 bytes\n * - Micro-dash: 206 bytes\n */\n\nexport function toArray(value: string): string[];\nexport function toArray<T extends readonly any[]>(value: T): T;\nexport function toArray<T extends object>(value: T): Array<T[keyof T]>;\nexport function toArray(value: Nil | Primitive): [];\nexport function toArray(value: any): any[];\n\nexport function toArray(value: any): any[] {\n  if (value?.[Symbol.iterator]) {\n    return Array.from(value);\n  } else {\n    return valuesOfNonArray(value);\n  }\n}\n","/**\n * Converts `value` to a string. An empty string is returned for `null` and `undefined` values.\n *\n * Differences:\n * - `null` and `undefined` array references are blank\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,194 bytes\n * - Micro-dash: 82 bytes\n */\nexport function toString(value: any): string {\n  return [value].toString();\n}\n","import { cloneDeep, isMatch } from '../lang';\n\n/**\n * Creates a function that performs a partial deep comparison between a given `object` and `source`, returning `true` if the given object has equivalent property values, else `false`.\n *\n * Note: The created function is equivalent to `isMatch` with source partially applied.\n *\n * Partial comparisons will match empty array and empty object source values against any array or object value, respectively.\n *\n * Differences from lodash:\n * - does not match `0` to `-0`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 18,319 bytes\n * - Micro-dash: 800 bytes\n */\nexport function matches(source: any): (value: any) => boolean {\n  source = cloneDeep(source);\n  return (value: any): boolean => isMatch(value, source);\n}\n","/**\n * This function returns `undefined`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 48 bytes\n * - Micro-dash: 40 bytes\n */\nexport function noop(): void {}\n","import { IfCouldBe, Nil } from '../interfaces';\nimport { castArray, isUndefined } from '../lang';\n\ntype WithDefault<V, D> =\n  | (undefined extends D ? V : Exclude<V, undefined>)\n  | (undefined extends V ? D : never);\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is `undefined`, the `defaultValue` is returned in its place.\n *\n * Differences from lodash:\n * - does not handle a dot-separated string for `path`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,051 bytes\n * - Micro-dash: 237 bytes\n */\n\nexport function get<T, K extends keyof NonNullable<T>, D = undefined>(\n  object: T,\n  key: K,\n  defaultValue?: D,\n): IfCouldBe<T, Nil, D> | WithDefault<NonNullable<T>[K], D>;\n\nexport function get<D = undefined>(\n  object: object,\n  path: [],\n  defaultValue?: D,\n): D;\nexport function get<T, K1 extends keyof NonNullable<T>, D = undefined>(\n  object: T,\n  path: readonly [K1],\n  defaultValue?: D,\n): IfCouldBe<T, Nil, D> | WithDefault<NonNullable<T>[K1], D>;\nexport function get<\n  T,\n  K1 extends keyof NonNullable<T>,\n  K2 extends keyof NonNullable<T>[K1],\n  D = undefined,\n>(\n  object: T,\n  path: readonly [K1, K2],\n  defaultValue?: D,\n): IfCouldBe<T, Nil, D> | WithDefault<NonNullable<T>[K1][K2], D>;\nexport function get<\n  T,\n  K1 extends keyof NonNullable<T>,\n  K2 extends keyof NonNullable<T>[K1],\n  K3 extends keyof NonNullable<T>[K1][K2],\n  D = undefined,\n>(\n  object: T,\n  path: readonly [K1, K2, K3],\n  defaultValue?: D,\n): IfCouldBe<T, Nil, D> | WithDefault<NonNullable<T>[K1][K2][K3], D>;\nexport function get<\n  T,\n  K1 extends keyof NonNullable<T>,\n  K2 extends keyof NonNullable<T>[K1],\n  K3 extends keyof NonNullable<T>[K1][K2],\n  K4 extends keyof NonNullable<T>[K1][K2][K3],\n  D = undefined,\n>(\n  object: T,\n  path: readonly [K1, K2, K3, K4],\n  defaultValue?: D,\n): IfCouldBe<T, Nil, D> | WithDefault<NonNullable<T>[K1][K2][K3][K4], D>;\n\nexport function get(\n  object: Nil | object,\n  path: readonly PropertyKey[],\n  defaultValue?: any,\n): any;\n\nexport function get(\n  object: any,\n  path: PropertyKey | readonly PropertyKey[],\n  defaultValue?: any,\n): any {\n  const val = getWithoutDefault(path, object);\n  return isUndefined(val) ? defaultValue : val;\n}\n\nexport function getWithoutDefault(path: any, object: any): any {\n  path = castArray(path);\n  const { length } = path;\n  let index = 0;\n  while (object != null && index < length) {\n    object = object[path[index++]];\n  }\n  return !index || index < length ? undefined : object;\n}\n","import { IfCouldBe, Nil } from '../interfaces';\nimport { getWithoutDefault } from '../object/get';\n\ntype PropertyAtPath<T, Path extends readonly any[]> = Path extends []\n  ? T\n  : Path extends readonly [infer First, ...infer Rest]\n    ? First extends keyof NonNullable<T>\n      ?\n          | IfCouldBe<T, Nil, undefined>\n          | PropertyAtPath<NonNullable<T>[First], Rest>\n      : undefined\n    : unknown;\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * Differences from lodash:\n * - does not handle a dot-separated string for `path`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,158 bytes\n * - Micro-dash: 207 bytes\n */\n\nexport function property<K extends PropertyKey>(\n  key: K,\n): <T>(object: T) => PropertyAtPath<T, [K]>;\nexport function property<P extends PropertyKey[]>(\n  path: readonly [...P],\n): <T>(object: T) => PropertyAtPath<T, P>;\n\nexport function property(path: any): any {\n  return getWithoutDefault.bind(0, path);\n}\n","/**\n * Invokes the iteratee `n` times, returning an array of the results of each invocation.\n *\n * Differences from lodash:\n * - has undefined behavior when given a non natural number for `n`\n * - does not provide a default for `iteratee`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,920 bytes\n * - Micro-dash: 76 bytes\n */\nexport function times<T>(n: number, iteratee: (index: number) => T): T[] {\n  const result: T[] = [];\n  for (let i = 0; i < n; ++i) {\n    result[i] = iteratee(i);\n  }\n  return result;\n}\n","import { isUndefined } from '../lang';\nimport { times } from './times';\n\n/**\n * Creates an array of numbers _(positive and/or negative)_ progressing from `start` up to, but not including, `end`. A `step` of `-1` is used if a negative `start` is specified without an `end` or `step`. If `end` is not specified, it's set to `start` with `start` then set to `0`.\n *\n * **Note:** JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results.\n *\n * Differences from lodash:\n * - does not work as an iteratee for functions like `map`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,565 bytes\n * - Micro-dash: 209 bytes\n */\n\nexport function range(end: number): number[];\n// eslint-disable-next-line @typescript-eslint/unified-signatures\nexport function range(start: number, end: number, step?: number): number[];\n\nexport function range(start: number, end?: number, step?: number): number[] {\n  if (isUndefined(end)) {\n    end = start;\n    start = 0;\n  }\n  if (isUndefined(step)) {\n    step = end < start ? -1 : 1;\n  }\n  return times(Math.abs((end - start) / (step || 1)), (i) => start + step * i);\n}\n","let nextId = 1;\n\n/**\n * Generates a unique ID. If `prefix` is given, the ID is appended to it.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,238 bytes\n * - Micro-dash: 75 bytes\n */\nexport function uniqueId(prefix = ''): string {\n  return prefix + nextId++;\n}\n","import { Falsy } from '../interfaces';\nimport { identity } from '../util';\n\n/**\n * Creates an array with all falsey values removed. The values `false`, `null`, `0`, `\"\"`, `undefined`, and `NaN` are falsey.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 113 bytes\n * - Micro-dash: 62 bytes\n */\nexport function compact<T>(array: readonly T[]): Array<Exclude<T, Falsy>> {\n  return array.filter(identity) as Array<Exclude<T, Falsy>>;\n}\n","/**\n * Creates a new array concatenating `array` with any additional arrays and/or values.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,563 bytes\n * - Micro-dash: 61 bytes\n */\nexport function concat<T>(\n  array: readonly T[],\n  ...values: Array<T | readonly T[]>\n): T[] {\n  return array.concat(...values);\n}\n","import { ArrayIteratee, ArrayNarrowingIteratee } from '../interfaces';\n\n/**\n * Removes all elements from array for which `predicate` returns truthy, and returns an array of the removed elements.\n *\n * Differences from lodash:\n * - iterates over `array` in reverse order\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,363 bytes\n * - Micro-dash: 118 bytes\n */\n\nexport function remove<O>(\n  array: any[],\n  predicate: ArrayNarrowingIteratee<O>,\n): O[];\nexport function remove<T>(\n  array: T[],\n  predicate: ArrayIteratee<T, boolean>,\n): T[];\n\nexport function remove<T>(\n  array: T[],\n  predicate: ArrayIteratee<T, boolean>,\n): T[] {\n  const removed: T[] = [];\n  for (let i = array.length; --i >= 0; ) {\n    if (predicate(array[i], i)) {\n      removed.unshift(array[i]);\n      array.splice(i, 1);\n    }\n  }\n  return removed;\n}\n","import { remove } from './remove';\n\n/**\n * This function is like `pull` except that it accepts an array of values to remove.\n *\n * **Note:** Unlike `difference`, this function mutates array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 942 bytes\n * - Micro-dash: 199 bytes\n */\nexport function pullAll<T>(array: T[], values: T[]): T[] {\n  for (const value of values.slice()) {\n    remove(array, (item: T) => Object.is(item, value));\n  }\n  return array;\n}\n","/**\n * Flattens `array` a single level deep.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,361 bytes\n * - Micro-dash: 113 bytes\n */\nexport function flatten<T>(array: ReadonlyArray<T | readonly T[]>): T[] {\n  const result: any[] = [];\n  for (const element of array) {\n    if (Array.isArray(element)) {\n      for (const inner of element) {\n        result.push(inner);\n      }\n    } else {\n      result.push(element);\n    }\n  }\n  return result;\n}\n","import { pullAll } from './pull-all';\nimport { flatten } from './flatten';\n\n/**\n * Creates an array of array values not included in the other given arrays. The order and references of result values are determined by the first array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,481 bytes\n * - Micro-dash: 352 bytes\n */\nexport function difference<T>(\n  array: readonly T[],\n  ...values: readonly T[][]\n): T[] {\n  return pullAll(array.slice(), flatten(values));\n}\n","/**\n * Gets all but the last element of `array`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 249 bytes\n * - Micro-dash: 57 bytes\n */\nexport function initial<T>(array: readonly T[]): T[] {\n  return array.slice(0, -1);\n}\n","import { Nil } from '../interfaces';\n\n/**\n * Creates an array of unique values that are included in all given arrays using SameValueZero for equality comparisons. The order and references of result values are determined by the first array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,018 bytes\n * - Micro-dash: 125 bytes\n */\nexport function intersection<T>(...arrays: Array<Nil | readonly T[]>): T[] {\n  const sets = arrays.map((array) => new Set(array));\n  return [...sets[0]].filter((value) => sets.every((set) => set.has(value)));\n}\n","/**\n * Gets the last element of array.\n *\n * Differences from lodash:\n * - no special consideration is given to string-keyed values set on the array\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 92 bytes\n * - Micro-dash: 57 bytes\n */\nexport function last<T>(array: readonly T[]): T {\n  return array[array.length - 1];\n}\n","import { Nil } from '../interfaces';\n\n/**\n * Gets the element at index `n` of `array`. If `n` is negative, the nth element from the end is returned.\n *\n * Differences from lodash:\n * - does not handle a fractional value for `index`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,923 bytes\n * - Micro-dash: 94 bytes\n */\n\nexport function nth<T>(array: readonly T[], index: number): T;\nexport function nth<T>(array: Nil | readonly T[], index: number): T | undefined;\n\nexport function nth<T>(\n  array: Nil | readonly T[],\n  index: number,\n): T | undefined {\n  if (array) {\n    return array[index < 0 ? array.length + index : index];\n  } else {\n    return undefined;\n  }\n}\n","import { pullAll } from './pull-all';\n\n/**\n * Removes all given values from array using `SameValueZero` for equality comparisons.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 3,634 bytes\n * - Micro-dash: 217 bytes\n */\nexport function pull<T>(array: T[], ...values: T[]): T[] {\n  return pullAll(array, values);\n}\n","import { flatten } from './flatten';\n\n/**\n * Removes elements from array corresponding to indexes and returns an array of removed elements.\n *\n * *Note:* This function mutates `array`.\n *\n * Differences from lodash:\n * - behavior is undefined when attempting to pull attributes keyed with anything other than positive integers\n * - does not support deep paths\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 8,992 bytes\n * - Micro-dash: 280 bytes\n */\nexport function pullAt(\n  array: any[],\n  ...indexes: Array<number[] | number>\n): any[] {\n  const flattenedIndexes = flatten(indexes);\n  const result = flattenedIndexes.map((i) => array[i]);\n\n  let lastI: number | undefined;\n  for (const i of flattenedIndexes.sort((a, b) => b - a)) {\n    if (i !== lastI) {\n      array.splice(i, 1);\n    }\n    lastI = i;\n  }\n\n  return result;\n}\n","import { ArrayIteratee, ObjectIteratee } from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Creates an array of values by running each element in `collection` thru `iteratee`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,246 bytes\n * - Micro-dash: 316 bytes\n */\n\nexport function map<I, O>(\n  array: readonly I[] | undefined,\n  iteratee: ArrayIteratee<I, O>,\n): O[];\nexport function map<T, O>(\n  object: T | undefined,\n  iteratee: ObjectIteratee<T, O>,\n): O[];\n\nexport function map(collection: any, iteratee: any): any[] {\n  const mapped: any[] = [];\n  forEach(collection, (value, keyOrIndex) => {\n    mapped.push(iteratee(value, keyOrIndex));\n  });\n  return mapped;\n}\n","import { Nil, ObjectWith, ValueIteratee } from '../interfaces';\nimport { castArray } from '../lang';\nimport { map } from './map';\n\n/**\n * Creates an array of elements, sorted in ascending order by the results of running each element in a collection thru each iteratee. This function performs a stable sort, that is, it preserves the original sort order of equal elements.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 18,547 bytes\n * - Micro-dash: 682 bytes\n */\nexport function sortBy<T>(\n  collection: Nil | ObjectWith<T> | readonly T[],\n  iteratees: Array<ValueIteratee<T, any>> | ValueIteratee<T, any>,\n): T[] {\n  const fns = castArray(iteratees);\n  const metas = map(collection, (value: any) =>\n    Object.assign(\n      fns.map((fn) => fn(value)),\n      { value },\n    ),\n  );\n\n  metas.sort((m1, m2) => {\n    for (let i = 0; i < m1.length; ++i) {\n      const comp = compareValues(m1[i], m2[i]);\n      if (comp) {\n        return comp;\n      }\n    }\n    return undefined;\n  });\n\n  return metas.map((e) => e.value);\n}\n\nexport const compareValues = (x: any, y: any): any => {\n  let v1 = getSortOrdinal(x);\n  let v2 = getSortOrdinal(y);\n  if (v1 === v2) {\n    v1 = x;\n    v2 = y;\n  }\n  if (v1 < v2) {\n    return -1;\n  } else if (v1 > v2) {\n    return 1;\n  }\n  return undefined;\n};\n\nconst getSortOrdinal = (value: any): number => {\n  if (Number.isNaN(value)) {\n    return 3;\n  }\n  if (value === undefined) {\n    return 2;\n  }\n  if (value === null) {\n    return 1;\n  }\n  return 0;\n};\n","import { compareValues } from '../collection/sort-by';\nimport { Nil } from '../interfaces';\n\n/**\n * Uses a binary search to determine the lowest index at which `value` should be inserted into `array` in order to maintain its sort order.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,472 bytes\n * - Micro-dash: 274 bytes\n */\nexport function sortedIndex<T>(array: Nil | readonly T[], value: T): number {\n  let min = 0;\n  let max = array ? array.length : 0;\n  while (max > min) {\n    const mid = Math.floor((max + min) / 2);\n    if (compareValues(array![mid], value) < 0) {\n      min = mid + 1;\n    } else {\n      max = mid;\n    }\n  }\n  return min;\n}\n","import { flatten } from './flatten';\n\n/**\n * Creates an array of unique values, in order, from all given `arrays`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,561 bytes\n * - Micro-dash: 181 bytes\n */\nexport function union<T>(...arrays: readonly T[][]): T[] {\n  return Array.from(new Set(flatten(arrays)));\n}\n","/**\n * Creates a duplicate-free version of an array, using `SameValueZero` for equality comparisons, in which only the first occurrence of each element is kept. The order of result values is determined by the order they occur in the array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,664 bytes\n * - Micro-dash: 64 bytes\n */\nexport function uniq<T>(array: readonly T[]): T[] {\n  return Array.from(new Set(array));\n}\n","import { ValueIteratee } from '../interfaces';\n\n/**\n * This function is like `_.uniq` except that it accepts `iteratee` which is invoked for each element in `array` to generate the criterion by which uniqueness is computed. The order of result values is determined by the order they occur in the array.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,671 bytes\n * - Micro-dash: 122 bytes\n */\nexport function uniqBy<T>(\n  array: readonly T[],\n  iteratee: ValueIteratee<T, any>,\n): T[] {\n  const seen = new Set<T>();\n  return array.filter((element) => {\n    const key = iteratee(element);\n    const isNew = !seen.has(key);\n    seen.add(key);\n    return isNew;\n  });\n}\n","/**\n * Creates an array excluding all given values.\n *\n * Differences from lodash:\n * - Uses triple equals rather than `SameValueZero`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,819 bytes\n * - Micro-dash: 60 bytes\n */\nexport function without<T>(array: readonly T[], ...values: readonly T[]): T[] {\n  return array.filter((item) => !values.includes(item));\n}\n","import { Nil } from '../interfaces';\nimport { times } from '../util';\n\n/**\n * Creates an array of grouped elements, the first of which contains the first elements of the given arrays, the second of which contains the second elements of the given arrays, and so on.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 3,491 bytes\n * - Micro-dash: 197 bytes\n */\n\nexport function zip<T1, T2>(\n  array1: readonly T1[],\n  array2: readonly T2[],\n): Array<[T1, T2]>;\nexport function zip<T1, T2, T3>(\n  array1: readonly T1[],\n  array2: readonly T2[],\n  array3: readonly T3[],\n): Array<[T1, T2, T3]>;\nexport function zip<T1, T2, T3, T4>(\n  array1: readonly T1[],\n  array2: readonly T2[],\n  array3: readonly T3[],\n  array4: readonly T4[],\n): Array<[T1, T2, T3, T4]>;\nexport function zip<T>(...arrays: readonly T[][]): T[][];\nexport function zip<T>(\n  ...arrays: ReadonlyArray<Nil | readonly T[]>\n): Array<Array<Nil | T>>;\n\nexport function zip<T>(\n  ...arrays: ReadonlyArray<Nil | readonly T[]>\n): Array<Array<Nil | T>> {\n  const length = Math.max(0, ...arrays.map((a) => (a ? a.length : 0)));\n  return times(length, (i) => arrays.map((a) => (a ? a[i] : undefined)));\n}\n","import {\n  ArrayIteratee,\n  Cast,\n  IfCouldBe,\n  KeyNarrowingIteratee,\n  Narrow,\n  Nil,\n  ObjectIteratee,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { forOwn } from './for-own';\n\ntype DefiniteValueMatches<T, O> = {\n  [K in keyof T]: T[K] extends O ? K : never;\n}[keyof T];\ntype PossibleValueMatches<T, O> = {\n  [K in keyof T]: IfCouldBe<T[K], O, Cast<K, string>>;\n}[keyof T];\n\ntype DefiniteKeyMatch<T, O> = {\n  [K in keyof T]: Cast<K, string> extends O ? K : never;\n}[keyof T];\ntype PossibleKeyMatch<T, O> = {\n  [K in keyof T]: IfCouldBe<Cast<K, string>, O, Narrow<Cast<K, string>, O>>;\n}[keyof T];\n\n/**\n * This function is like `find` except that it returns the key of the first element `predicate` returns truthy for instead of the element itself.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,048 bytes\n * - Micro-dash: 377 bytes\n */\n\n// array\nexport function findKey<T>(\n  array: T[],\n  predicate: ArrayIteratee<T, boolean>,\n): string | undefined;\n\n// object: value narrowing\nexport function findKey<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: ValueNarrowingIteratee<T, O>,\n):\n  | IfCouldBe<I, Nil, undefined>\n  | PossibleValueMatches<T, O>\n  | (DefiniteValueMatches<T, O> extends never ? undefined : never);\n\n// object: key narrowing\nexport function findKey<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: KeyNarrowingIteratee<T, O>,\n):\n  | IfCouldBe<I, Nil, undefined>\n  | PossibleKeyMatch<T, O>\n  | (DefiniteKeyMatch<T, O> extends never ? undefined : never);\n\n// object\nexport function findKey<T>(\n  object: Nil | T,\n  predicate: ObjectIteratee<T, boolean>,\n): Cast<keyof T, string> | undefined;\n\nexport function findKey<T>(\n  object: T,\n  predicate: Function,\n): PropertyKey | undefined {\n  let found;\n  forOwn(object, (value, key) => {\n    if (predicate(value, key)) {\n      found = key;\n      return false;\n    }\n    return undefined;\n  });\n  return found;\n}\n","import { ArrayIteratee, ObjectIteratee } from '../interfaces';\nimport { forOwnRightOfNonArray } from '../object/for-own-right';\n\n/**\n * This function is like `forEach` except that it iterates over elements of `collection` from right to left.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,524 bytes\n * - Micro-dash: 245 bytes\n */\n\nexport function forEachRight<T>(\n  array: readonly T[] | undefined,\n  iteratee: ArrayIteratee<T, boolean | void>,\n): T[];\nexport function forEachRight<T>(\n  object: T | undefined,\n  iteratee: ObjectIteratee<T, boolean | void>,\n): T;\n\nexport function forEachRight(collection: any, iteratee: any): any {\n  if (Array.isArray(collection)) {\n    forEachRightOfArray(collection, iteratee);\n  } else {\n    forOwnRightOfNonArray(collection, iteratee);\n  }\n  return collection;\n}\n\nexport function forEachRightOfArray<T>(\n  array: readonly T[],\n  iteratee: ArrayIteratee<T, boolean | void>,\n): void {\n  for (let i = array.length; --i >= 0; ) {\n    if (iteratee(array[i], i) === false) {\n      break;\n    }\n  }\n}\n","import { forEachRightOfArray } from '../collection/for-each-right';\nimport { ObjectIteratee } from '../interfaces';\nimport { keys, keysOfNonArray } from './keys';\n\n/**\n * This function is like `forOwn` except that it iterates over properties of `object` in the opposite order.\n *\n * Differences from lodash:\n * - does not treat sparse arrays as dense\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,214 bytes\n * - Micro-dash: 261 bytes\n */\nexport function forOwnRight<T>(\n  object: T,\n  iteratee: ObjectIteratee<T, boolean | void>,\n): T {\n  forEachRightOfArray(keys(object), (key) =>\n    iteratee(object[key as keyof T], key),\n  );\n  return object;\n}\n\nexport function forOwnRightOfNonArray<T>(\n  object: T,\n  iteratee: ObjectIteratee<T, boolean | void>,\n): T {\n  forEachRightOfArray(keysOfNonArray(object), (key) =>\n    iteratee(object[key as keyof T], key),\n  );\n  return object;\n}\n","import { isFunction } from '../../public-api';\nimport { StringifiedKey } from '../interfaces';\n\n/**\n * Creates an array of function property names from own enumerable properties of `object`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,110 bytes\n * - Micro-dash: 198 bytes\n */\nexport function functions<T extends object>(obj: T): Array<StringifiedKey<T>> {\n  return Object.getOwnPropertyNames(obj).filter(\n    (key) =>\n      key !== 'constructor' &&\n      isFunction(Object.getOwnPropertyDescriptor(obj, key)!.value),\n  ) as Array<StringifiedKey<T>>;\n}\n","import { IfCouldBe, Nil } from '../interfaces';\nimport { isFunction } from '../lang';\nimport { get } from './get';\n\ntype Invoked<Func, Args> =\n  NonNullable<Func> extends (...args: infer Params) => infer Ret\n    ? IfCouldBe<Args, Params, Ret> | IfCouldBe<Func, Nil, undefined>\n    : undefined;\n\ntype Invoke<\n  T,\n  Path extends readonly PropertyKey[],\n  Args extends any[],\n> = Path extends readonly []\n  ? Invoked<T, Args>\n  : Path extends readonly [\n        infer K extends keyof NonNullable<T>,\n        ...infer R extends PropertyKey[],\n      ]\n    ? Invoke<NonNullable<T>[K], R, Args> | IfCouldBe<T, Nil, undefined>\n    : any;\n\n/**\n * Invokes the method at `path` of `object`.\n *\n * Differences from lodash:\n * - only accepts an array for `path`, not a dot-separated string\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,407 bytes\n * - Micro-dash: 389 bytes\n */\nexport function invoke<\n  T extends object | Nil,\n  const Path extends readonly PropertyKey[],\n  Args extends any[],\n>(object: T, path: Path, ...args: Args): Invoke<T, Path, Args> {\n  const fn = get(object, path);\n  if (isFunction(fn)) {\n    return fn.apply(\n      path.length === 1 ? object : get(object, path.slice(0, -1)),\n      args,\n    );\n  }\n  return undefined as any;\n}\n","import { EmptyObject, IfCouldBe, Nil, ObjectIteratee } from '../interfaces';\n\n/**\n * The opposite of {@linkcode mapValues}; this function creates an object with the same values as `object` and keys generated by running each own enumerable string keyed property of object through `iteratee`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,189 bytes\n * - Micro-dash: 123 bytes\n */\nexport function mapKeys<A extends readonly any[], O extends PropertyKey>(\n  array: A | Nil,\n  iteratee: (item: A[number], index: number) => O,\n): Record<O, A[number]>;\nexport function mapKeys<T, O extends PropertyKey>(\n  object: T,\n  iteratee: ObjectIteratee<NonNullable<T>, O>,\n):\n  | IfCouldBe<T, Nil, EmptyObject>\n  | Record<O, NonNullable<T>[keyof NonNullable<T>]>;\nexport function mapKeys(object: any, iteratee: Function): any {\n  let obj: any = {};\n  Object.keys(object ?? obj).forEach(\n    (key) => (obj[iteratee(object[key], key)] = object[key]),\n  );\n  return obj;\n}\n","import { IfCouldBe, Nil, ObjectIteratee } from '../interfaces';\n\n/**\n * Creates an object with the same keys as `object` and values generated by running each own enumerable string keyed property of `object` thru `iteratee`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,189 bytes\n * - Micro-dash: 120 bytes\n */\nexport function mapValues<A extends readonly any[], O>(\n  array: A | Nil,\n  iteratee: (item: A[number], index: number) => O,\n): Record<number, O>;\nexport function mapValues<T, O>(\n  object: T,\n  iteratee: ObjectIteratee<NonNullable<T>, O>,\n): IfCouldBe<T, Nil, {}> | Record<keyof NonNullable<T>, O>;\nexport function mapValues(object: any, iteratee: Function): any {\n  let obj: any = {};\n  Object.keys(object ?? obj).forEach(\n    (key) => (obj[key] = iteratee(object[key], key)),\n  );\n  return obj;\n}\n","import {\n  ArrayIteratee,\n  ArrayNarrowingIteratee,\n  Cast,\n  IfCouldBe,\n  KeyNarrowingIteratee,\n  Nil,\n  ObjectIteratee,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Iterates over elements of `collection`, returning an array of all elements `predicate` returns truthy for.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,224 bytes\n * - Micro-dash: 319 bytes\n */\n\nexport function filter<I, O>(\n  array: Nil | readonly I[],\n  predicate: ArrayNarrowingIteratee<O>,\n): Array<Extract<I, O> | Extract<O, I>>;\nexport function filter<T>(\n  array: Nil | readonly T[],\n  predicate: ArrayIteratee<T, boolean>,\n): T[];\n\nexport function filter<I, O>(\n  object: I | Nil,\n  predicate: ValueNarrowingIteratee<I, O>,\n): Array<Extract<I[keyof I], O> | Extract<O, I[keyof I]>>;\nexport function filter<I, O>(\n  object: I | Nil,\n  predicate: KeyNarrowingIteratee<I, O>,\n): Array<{ [K in keyof I]: IfCouldBe<Cast<K, string>, O, I[K]> }[keyof I]>;\nexport function filter<T>(\n  object: Nil | T,\n  predicate: ObjectIteratee<T, boolean>,\n): Array<T[keyof T]>;\n\nexport function filter(collection: any, predicate: Function): any[] {\n  const result: any[] = [];\n  forEach(collection, (item, indexOrKey) => {\n    if (predicate(item, indexOrKey)) {\n      result.push(item);\n    }\n  });\n  return result;\n}\n","import {\n  ArrayIteratee,\n  ArrayNarrowingIteratee,\n  Cast,\n  IfCouldBe,\n  KeyNarrowingIteratee,\n  Narrow,\n  Nil,\n  ObjectIteratee,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { keysOfNonArray } from '../object/keys';\n\ntype DefiniteValueMatches<T, O> = {\n  [K in keyof T]: T[K] extends O ? T[K] : never;\n}[keyof T];\ntype PossibleValueMatches<T, O> = {\n  [K in keyof T]: IfCouldBe<T[K], O, Narrow<T[K], O>>;\n}[keyof T];\n\ntype DefiniteKeyMatches<T, O> = {\n  [K in keyof T]: Cast<K, string> extends O ? T[K] : never;\n}[keyof T];\ntype PossibleKeyMatches<T, O> = {\n  [K in keyof T]: IfCouldBe<Cast<K, string>, O, T[K]>;\n}[keyof T];\n\n/**\n * Iterates over elements of `collection`, returning the first element `predicate` returns truthy for.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,881 bytes\n * - Micro-dash: 241 bytes\n */\n\n// array: value narrowing\nexport function find<I, O>(\n  array: Nil | readonly I[],\n  predicate: ArrayNarrowingIteratee<O>,\n  fromIndex?: number,\n): Extract<I, O> | Extract<O, I> | undefined;\n\n// array\nexport function find<T>(\n  array: Nil | readonly T[],\n  predicate: ArrayIteratee<T, boolean>,\n  fromIndex?: number,\n): T | undefined;\n\n// object: value narrowing\nexport function find<\n  I,\n  T extends NonNullable<I>,\n  O,\n  F extends number | undefined = undefined,\n>(\n  object: I,\n  predicate: ValueNarrowingIteratee<T, O>,\n  fromIndex?: F,\n):\n  | IfCouldBe<F, number, undefined>\n  | IfCouldBe<I, Nil, undefined>\n  | PossibleValueMatches<T, O>\n  | (DefiniteValueMatches<T, O> extends never ? undefined : never);\n\n// object: key narrowing\nexport function find<\n  I,\n  T extends NonNullable<I>,\n  O,\n  F extends number | undefined = undefined,\n>(\n  object: I,\n  predicate: KeyNarrowingIteratee<T, O>,\n  fromIndex?: F,\n):\n  | IfCouldBe<F, number, undefined>\n  | IfCouldBe<I, Nil, undefined>\n  | PossibleKeyMatches<T, O>\n  | (DefiniteKeyMatches<T, O> extends never ? undefined : never);\n\n// object\nexport function find<T>(\n  object: Nil | T,\n  predicate: ObjectIteratee<T, boolean>,\n  fromIndex?: number,\n): T[keyof T] | undefined;\n\nexport function find(collection: any, predicate: Function, fromIndex = 0): any {\n  if (Array.isArray(collection)) {\n    return collection\n      .slice(fromIndex)\n      .find((item, index) => predicate(item, index));\n  } else {\n    for (const key of keysOfNonArray(collection).slice(fromIndex)) {\n      const item = collection[key];\n      if (predicate(item, key)) {\n        return item;\n      }\n    }\n  }\n  return undefined;\n}\n","import { flatten } from '../array';\nimport { ArrayIteratee, Nil, ObjectIteratee } from '../interfaces';\nimport { map } from './map';\n\n/**\n * Creates a flattened array of values by running each element in `collection` thru `iteratee` and flattening the mapped results.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,579 bytes\n * - Micro-dash: 481 bytes\n */\n\nexport function flatMap<I, O>(\n  array: Nil | readonly I[],\n  iteratee: ArrayIteratee<I, O | O[]>,\n): O[];\nexport function flatMap<T, O>(\n  object: Nil | T,\n  iteratee: ObjectIteratee<T, O | O[]>,\n): O[];\n\nexport function flatMap(collection: any, iteratee: any): any {\n  return flatten(map(collection, iteratee));\n}\n","import { forEach } from '../collection';\nimport { ObjectWith } from '../interfaces';\n\n/**\n * An alternative to `reduce`; this function transforms `object` to a new `accumulator` object which is the result of running each of its own enumerable string keyed properties thru `iteratee`, with each invocation potentially mutating the `accumulator` object. If `accumulator` is not provided, a new plain object (`{}`) will be used. Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * Differences from lodash:\n * - the default accumulator will not have any special prototype, it will simply be `{}`\n * - does not treat sparse arrays as dense\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,402 bytes\n * - Micro-dash: 318 bytes\n */\n\nexport function transform<E, A>(\n  array: readonly E[] | undefined,\n  iteratee: (accumulator: A, value: E, index: number) => boolean | void,\n  accumulator?: A,\n): A;\nexport function transform<E, A>(\n  object: ObjectWith<E> | undefined,\n  iteratee: (accumulator: A, value: E, key: string) => boolean | void,\n  accumulator?: A,\n): A;\n\nexport function transform(\n  object: any,\n  iteratee: Function,\n  accumulator = {},\n): any {\n  forEach(object, (value, key) => iteratee(accumulator, value, key));\n  return accumulator;\n}\n","import { IfIndexType, Nil, ObjectWith, ValueIteratee } from '../interfaces';\nimport { transform } from '../object/transform';\n\n/**\n * Creates an object composed of keys generated from the results of running each element of `collection` thru `iteratee`. The order of grouped values is determined by the order they occur in `collection`. The corresponding value of each key is an array of elements responsible for generating the key.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,678 bytes\n * - Micro-dash: 404 bytes\n */\nexport function groupBy<T, K extends PropertyKey>(\n  collection: Nil | ObjectWith<T> | readonly T[],\n  iteratee: ValueIteratee<T, K>,\n): Record<K, IfIndexType<K, T[], T[] | undefined>> {\n  return transform(\n    collection as any,\n    (accumulator, value: any) => {\n      const key = iteratee(value);\n      let group = accumulator[key];\n      if (!Array.isArray(group)) {\n        accumulator[key] = group = [];\n      }\n      group.push(value);\n    },\n    {} as any,\n  );\n}\n","import { isString, toArray } from '../lang';\n\n/**\n * Checks if `value` is in `collection`. If `collection` is a string, it's checked for a substring of `value`. If `fromIndex` is negative, it's used as the offset from the end of `collection`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,533 bytes\n * - Micro-dash: 344 bytes\n */\nexport function includes<T extends object | string | readonly any[]>(\n  collection: T,\n  value: T extends readonly any[]\n    ? T[0]\n    : T extends string\n      ? string\n      : T[keyof T],\n  fromIndex = 0,\n): boolean {\n  if (isString(collection)) {\n    if (fromIndex > collection.length) {\n      return false;\n    }\n  } else {\n    collection = toArray(collection) as any;\n  }\n  return (collection as any).includes(value, fromIndex);\n}\n","import { IfIndexType, Nil, ValueIteratee } from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Creates an object composed of keys generated from the results of running each element of `collection` thru `iteratee`. The corresponding value of each key is the last element responsible for generating the key.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,606 bytes\n * - Micro-dash: 305 bytes\n */\n\nexport function keyBy<T, K extends PropertyKey>(\n  array: Nil | readonly T[],\n  iteratee: ValueIteratee<T, K>,\n): IfIndexType<K, Record<K, T>, Partial<Record<K, T>>>;\nexport function keyBy<T, K extends PropertyKey>(\n  object: Nil | T,\n  iteratee: ValueIteratee<T[keyof T], K>,\n): IfIndexType<K, Record<K, T[keyof T]>, Partial<Record<K, T[keyof T]>>>;\n\nexport function keyBy(collection: any, iteratee: Function): any {\n  const obj: any = {};\n  forEach(collection, (value) => {\n    obj[iteratee(value)] = value;\n  });\n  return obj;\n}\n","import {\n  IfCouldBe,\n  Narrow,\n  Nil,\n  ValueIteratee,\n  ValueNarrowingIteratee,\n  ValuesType,\n} from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Creates an array of elements split into two groups, the first of which contains elements `predicate` returns truthy for, the second of which contains elements `predicate` returns falsey for.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,447 bytes\n * - Micro-dash: 333 bytes\n */\n\nexport function partition<T, O>(\n  array: Nil | T,\n  predicate: ValueNarrowingIteratee<ValuesType<T>, O>,\n): [\n  IfCouldBe<ValuesType<T>, O, Array<Narrow<ValuesType<T>, O>>, []>,\n  Exclude<ValuesType<T>, O> extends never\n    ? []\n    : Array<Exclude<ValuesType<T>, O>>,\n];\nexport function partition<T>(\n  array: Nil | T,\n  predicate: ValueIteratee<ValuesType<T>, any>,\n): [Array<ValuesType<T>>, Array<ValuesType<T>>];\n\nexport function partition(collection: any, predicate: any): any {\n  const result: [any[], any] = [[], []];\n  forEach(collection, (value) => result[predicate(value) ? 0 : 1].push(value));\n  return result;\n}\n","export function doReduce(\n  iterationFn: Function,\n  collection: any,\n  iteratee: Function,\n  accumulator: any,\n  initAccum: boolean,\n): any {\n  iterationFn(collection, (value: any, indexOrKey: any) => {\n    if (initAccum) {\n      accumulator = value;\n      initAccum = false;\n    } else {\n      accumulator = iteratee(accumulator, value, indexOrKey);\n    }\n  });\n  return accumulator;\n}\n","import { IfCouldBe, Nil } from '../interfaces';\nimport { forEach } from './for-each';\nimport { doReduce } from './reduce-utils';\n\n/**\n * Reduces `collection` to a value which is the accumulated result of running each element in collection thru `iteratee`, where each successive invocation is supplied the return value of the previous. If accumulator is not given, the first element of collection is used as the initial value.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,377 bytes\n * - Micro-dash: 386 bytes\n */\n\nexport function reduce<T extends Nil | readonly any[]>(\n  array: T,\n  iteratee: (\n    accumulator: NonNullable<T>[number],\n    value: NonNullable<T>[number],\n    index: number,\n  ) => NonNullable<T>[number],\n): IfCouldBe<T, Nil, undefined> | NonNullable<T>[number];\nexport function reduce<E, A>(\n  array: Nil | readonly E[],\n  iteratee: (accumulator: A, value: E, index: number) => A,\n  accumulator: A,\n): A;\nexport function reduce<T>(\n  object: T,\n  iteratee: (\n    accumulator: NonNullable<T>[keyof NonNullable<T>],\n    value: NonNullable<T>[keyof NonNullable<T>],\n    key: keyof NonNullable<T>,\n  ) => NonNullable<T>[keyof NonNullable<T>],\n): IfCouldBe<T, Nil, undefined> | NonNullable<T>[keyof NonNullable<T>];\nexport function reduce<T, A>(\n  object: T,\n  iteratee: (\n    accumulator: A,\n    value: NonNullable<T>[keyof NonNullable<T>],\n    key: keyof NonNullable<T>,\n  ) => A,\n  accumulator: A,\n): A;\n\nexport function reduce(collection: any, iteratee: any, accumulator?: any): any {\n  return doReduce(\n    forEach,\n    collection,\n    iteratee,\n    accumulator,\n    arguments.length < 3,\n  );\n}\n","import {\n  ArrayIteratee,\n  ArrayNarrowingIteratee,\n  Cast,\n  KeyNarrowingIteratee,\n  Nil,\n  ObjectIteratee,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { filter } from './filter';\n\n/**\n * The opposite of `filter`; this function returns the elements of `collection` that `predicate` does **not** return truthy for.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,556 bytes\n * - Micro-dash: 375 bytes\n */\n\nexport function reject<I, O>(\n  array: Nil | readonly I[],\n  predicate: ArrayNarrowingIteratee<O>,\n): Array<Exclude<I, O>>;\nexport function reject<T>(\n  array: Nil | readonly T[],\n  predicate: ArrayIteratee<T, boolean>,\n): T[];\n\nexport function reject<I, O>(\n  object: I | Nil,\n  predicate: ValueNarrowingIteratee<I, O>,\n): Array<Exclude<I[keyof I], O>>;\nexport function reject<I, O>(\n  object: I | Nil,\n  predicate: KeyNarrowingIteratee<I, O>,\n): Array<{ [K in keyof I]: Cast<K, string> extends O ? never : I[K] }[keyof I]>;\nexport function reject<T>(\n  object: Nil | T,\n  predicate: ObjectIteratee<T, boolean>,\n): Array<T[keyof T]>;\n\nexport function reject(collection: any, predicate: any): any[] {\n  return filter(collection, (value: any, key: any) => !predicate(value, key));\n}\n","import { IfCouldBe, Nil } from '../interfaces';\nimport { forEachRight } from './for-each-right';\nimport { doReduce } from './reduce-utils';\n\n/**\n * This function is like `_.reduce` except that it iterates over elements of `collection` from right to left.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,375 bytes\n * - Micro-dash: 382 bytes\n */\n\nexport function reduceRight<T extends Nil | readonly any[]>(\n  array: T,\n  iteratee: (\n    accumulator: NonNullable<T>[number],\n    value: NonNullable<T>[number],\n    index: number,\n  ) => NonNullable<T>[number],\n): IfCouldBe<T, Nil, undefined> | NonNullable<T>[number];\nexport function reduceRight<E, A>(\n  array: Nil | readonly E[],\n  iteratee: (accumulator: A, value: E, index: number) => A,\n  accumulator: A,\n): A;\nexport function reduceRight<T>(\n  object: T,\n  iteratee: (\n    accumulator: NonNullable<T>[keyof NonNullable<T>],\n    value: NonNullable<T>[keyof NonNullable<T>],\n    key: keyof NonNullable<T>,\n  ) => NonNullable<T>[keyof NonNullable<T>],\n): IfCouldBe<T, Nil, undefined> | NonNullable<T>[keyof NonNullable<T>];\nexport function reduceRight<T, A>(\n  object: T,\n  iteratee: (\n    accumulator: A,\n    value: NonNullable<T>[keyof NonNullable<T>],\n    key: keyof NonNullable<T>,\n  ) => A,\n  accumulator: A,\n): A;\n\nexport function reduceRight(\n  collection: any,\n  iteratee: Function,\n  accumulator?: any,\n): any {\n  return doReduce(\n    forEachRight,\n    collection,\n    iteratee,\n    accumulator,\n    arguments.length < 3,\n  );\n}\n","import { forEachOfArray } from '../collection/for-each';\nimport { Existent, Primitive, ValueIteratee } from '../interfaces';\n\nexport function findExtreme<T extends Existent>(\n  array: readonly T[],\n  iteratee: ValueIteratee<T, Primitive>,\n  shouldReplace: (candidate: Primitive, current: Primitive) => boolean,\n): T {\n  let current: T | undefined;\n  let currentCriterion: Primitive;\n  forEachOfArray(array, (candidate) => {\n    const candidateCriterion = iteratee(candidate);\n    if (\n      current === undefined ||\n      shouldReplace(candidateCriterion, currentCriterion)\n    ) {\n      current = candidate;\n      currentCriterion = candidateCriterion;\n    }\n  });\n  return current!;\n}\n","import { Existent, Primitive, ValueIteratee } from '../interfaces';\nimport { findExtreme } from './extreme-utils';\n\n/**\n * This function is like `max` except that it accepts `iteratee` which is invoked for each element in `array` to generate the criterion by which the value is ranked.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 15,906 bytes\n * - Micro-dash: 219 bytes\n */\nexport function maxBy<T extends Existent>(\n  array: readonly T[],\n  iteratee: ValueIteratee<T, Primitive>,\n): T {\n  return findExtreme(\n    array,\n    iteratee,\n    (candidate, current) => candidate > current,\n  );\n}\n","import { Existent, Primitive, ValueIteratee } from '../interfaces';\nimport { findExtreme } from './extreme-utils';\n\n/**\n * This function is like `min` except that it accepts `iteratee` which is invoked for each element in `array` to generate the criterion by which the value is ranked.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 15,906 bytes\n * - Micro-dash: 219 bytes\n */\nexport function minBy<T extends Existent>(\n  array: readonly T[],\n  iteratee: ValueIteratee<T, Primitive>,\n): T {\n  return findExtreme(\n    array,\n    iteratee,\n    (candidate, current) => candidate < current,\n  );\n}\n","import { last } from '../array';\nimport { isBoolean } from '../lang';\n\n/**\n * Produces a random number between the inclusive `lower` and `upper` bounds. If only one argument is provided a number between `0` and the given number is returned. If `floating` is true, or either `lower` or `upper` are floats, a floating-point number is returned instead of an integer.\n *\n * Differences from lodash:\n * - does not coerce arguments into finite numbers. E.g. if you supply `NaN` or `Infinity`, results are not guaranteed.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,740 bytes\n * - Micro-dash: 380 bytes\n */\n\nexport function random(floating?: boolean): number;\nexport function random(upper: number, floating?: boolean): number;\nexport function random(\n  lower: number,\n  upper: number,\n  floating?: boolean,\n): number;\n\nexport function random(...args: any[]): number {\n  let lower = 0;\n  let upper = 1;\n  if (isFinite(args[1])) {\n    [lower, upper] = args;\n  } else if (isFinite(args[0])) {\n    [upper] = args;\n  }\n  [lower, upper] = [lower, upper].sort();\n\n  let floating = last(args);\n  if (!isBoolean(floating)) {\n    floating = !Number.isInteger(lower) && !Number.isInteger(upper);\n  }\n  return randomInt(lower, upper, floating);\n}\n\nexport const randomInt = (\n  lower: number,\n  upper: number,\n  floating: boolean,\n): number => {\n  let range = upper - lower;\n  if (!floating) {\n    ++range;\n  }\n  let result = Math.random() * range + lower;\n  if (!floating) {\n    result = Math.floor(result);\n  }\n  return result;\n};\n\n// /**\n//  * Produces a random number between the inclusive `lower` and `upper` bounds. If only one argument is provided a number between `0` and the given number is returned. If `floating` is true, or either `lower` or `upper` are floats, a floating-point number is returned instead of an integer.\n//  *\n//  * **Note:** JavaScript follows the IEEE-754 standard for resolving floating-point values which can produce unexpected results.\n//  *\n//  * Differences from lodash:\n//  * - requires each argument to be provided in its documented spot. E.g. `floating` must always be the third argument, and `lower` should not be greater than `upper`.\n//  * - does not coerce arguments into finite numbers. E.g. if you supply `NaN` or `Infinity`, results are not guaranteed.\n//  *\n//  * Contribution to minified bundle size, when it is the only function imported:\n//  */\n// export function random(\n//   lower = 0,\n//   upper = 1,\n//   floating = !(Number.isInteger(lower) && Number.isInteger(upper)),\n// ) {\n//   let range = upper - lower;\n//   if (!floating) {\n//     ++range;\n//   }\n//   let result = Math.random() * range + lower;\n//   if (!floating) {\n//     result = Math.floor(result);\n//   }\n//   return result;\n// }\n","/**\n * Computes `number` rounded to `precision`.\n *\n * ```ts\n * round(4.006); // 4\n * round(4.006, 2); // 4.01\n * round(4060, -2); // 4100\n * ```\n *\n * Differences from lodash:\n * - may return `NaN` with large `precision` values\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,270 bytes\n * - Micro-dash: 89 bytes\n */\nexport function round(number: number, precision = 0): number {\n  const factor = 10 ** Math.trunc(precision);\n  return Math.round(number * factor) / factor;\n}\n","/**\n * This function is like `sum` except that it accepts `iteratee` which is invoked for each element in `array` to generate the value to be summed. The iteratee is invoked with one argument: (value).\n *\n * Differences from lodash:\n * - does not skip `undefined` values\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 15,834 bytes\n * - Micro-dash: 77 bytes\n */\nexport function sumBy<T>(\n  array: readonly T[],\n  iteratee: (element: T) => number,\n): number {\n  return array.reduce((sum, element) => sum + iteratee(element), 0);\n}\n","import { ObjectWith } from '../interfaces';\nimport { toArray } from '../lang';\nimport { random } from '../math';\n\n/**\n * Gets a random element from `collection`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,349 bytes\n * - Micro-dash: 563 bytes\n */\nexport function sample<T>(collection: ObjectWith<T> | readonly T[]): T {\n  collection = toArray(collection as any);\n  return (collection as any)[random((collection as any[]).length - 1)];\n}\n","import { pullAt } from '../array';\nimport { Nil } from '../interfaces';\nimport { randomInt } from '../math/random';\nimport { identity, times } from '../util';\nimport { map } from './map';\n\n/**\n * Gets `n` random elements at unique keys from `collection` up to the size of `collection`.\n *\n * Differences from lodash:\n * - no special treatment given to fraction values of `n`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,786 bytes\n * - Micro-dash: 826 bytes\n */\n\nexport function sampleSize<T>(array: Nil | readonly T[], n?: number): T[];\nexport function sampleSize<T>(object: Nil | T, n?: number): Array<T[keyof T]>;\n\nexport function sampleSize(collection: any, n = 1): any[] {\n  const values = map(collection, identity);\n  return times(\n    Math.min(n, values.length),\n    () => pullAt(values, randomInt(0, values.length - 1, false))[0],\n  );\n}\n","import { Nil } from '../interfaces';\nimport { keys } from '../object';\n\n/**\n * Gets the size of collection by returning the number of its own enumerable string keyed properties.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,103 bytes\n * - Micro-dash: 214 bytes\n */\nexport function size(\n  collection: Nil | object | string | readonly any[],\n): number {\n  return keys(collection).length;\n}\n","import { Nil } from '../interfaces';\nimport { sampleSize } from './sample-size';\nimport { size } from './size';\n\n/**\n * Creates an array of shuffled values, using a version of the [Fisher-Yates shuffle](https://en.wikipedia.org/wiki/Fisher%E2%80%93Yates_shuffle).\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,563 bytes\n * - Micro-dash: 965 bytes\n */\n\nexport function shuffle<T>(array: Nil | readonly T[]): T[];\nexport function shuffle<T>(object: Nil | T): Array<T[keyof T]>;\n\nexport function shuffle(collection: any): any {\n  return sampleSize(collection, size(collection));\n}\n","import { ArrayIteratee, ObjectIteratee } from '../interfaces';\nimport { forEach } from './for-each';\n\n/**\n * Checks if `predicate` returns truthy for **any** element of `collection`. Iteration is stopped once `predicate` returns truthy.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 16,399 bytes\n * - Micro-dash: 323 bytes\n */\n\nexport function some<T>(\n  array: readonly T[] | undefined,\n  predicate: ArrayIteratee<T, any>,\n): boolean;\nexport function some<T>(\n  object: T | undefined,\n  predicate: ObjectIteratee<T, any>,\n): boolean;\n\nexport function some(collection: any, predicate: any): boolean {\n  let none = true;\n  forEach(\n    collection,\n    (item, keyOrIndex) => (none = !predicate(item, keyOrIndex)),\n  );\n  return !none;\n}\n","import { forEach } from '../collection';\nimport { UnionToIntersection } from '../interfaces';\nimport { clone } from '../lang';\n\ntype Mergeable<O> = {\n  [K in keyof O]?: O[K] extends object ? Mergeable<O[K]> : O[K];\n} & object;\n\n/**\n * Recursively merges own enumerable string keyed properties of source objects into the destination object. Object properties are merged recursively. Source objects are applied from left to right. Subsequent sources overwrite property assignments of previous sources.\n *\n * **Note:** This function mutates `object`.\n *\n * Differences from lodash:\n * - will overwrite a value with `undefined`\n * - only supports arguments that are objects\n * - cannot handle circular references\n * - when merging an array onto a non-array, the result is a non-array\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 11,996 bytes\n * - Micro-dash: 426 bytes\n */\nexport function merge<O extends object, S extends Array<Mergeable<O>>>(\n  object: O,\n  ...sources: S\n): UnionToIntersection<O | S[number]> {\n  for (const source of sources) {\n    forEach<any>(source, (value, key) => {\n      const myValue = (object as any)[key];\n      if (myValue instanceof Object) {\n        value = merge(clone(myValue), value);\n      }\n      (object as any)[key] = value;\n    });\n  }\n  return object as any;\n}\n","import { EmptyObject, IfCouldBe, Nil } from '../interfaces';\nimport { clone } from '../lang';\n\ntype RemainingKeys<T, Omits> =\n  | Exclude<keyof T, Omits>\n  | Extract<PropertyKey, keyof T>; // always include index properties\n\n/**\n * The opposite of `pick`; this function creates an object composed of the own enumerable string properties of object that are not omitted.\n *\n * Differences from lodash:\n * - `paths` must be direct keys of `object` (they cannot refer to deeper properties)\n * - does not work with arrays\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 18,060 bytes\n * - Micro-dash: 161 bytes\n */\nexport function omit<\n  T extends Nil | object,\n  O extends ReadonlyArray<keyof Exclude<T, Nil>>,\n>(\n  object: T,\n  ...paths: O\n):\n  | IfCouldBe<T, Nil, EmptyObject>\n  | {\n      [K in RemainingKeys<Exclude<T, Nil>, O[number]>]: Exclude<T, Nil>[K];\n    } {\n  const obj: any = clone(object) ?? {};\n  for (const path of paths) {\n    // eslint-disable-next-line @typescript-eslint/no-dynamic-delete -- this is exactly what the user requested, so ...\n    delete obj[path];\n  }\n  return obj;\n}\n","import {\n  Cast,\n  Evaluate,\n  IfCouldBe,\n  IfIndexType,\n  KeyNarrowingIteratee,\n  Narrow,\n  Nil,\n  ObjectIteratee,\n  PartialExceptIndexes,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { forOwn } from './for-own';\n\ntype IfDefinitelyIncluded<T, O, If, Else = never> =\n  Exclude<T, O> extends never ? If : Else;\ntype IfMaybeIncluded<T, O, If, Else = never> = IfDefinitelyIncluded<\n  T,\n  O,\n  Else,\n  IfCouldBe<T, O, If, Else>\n>;\ntype KeysWithDefinitelyIncludedValues<T, O> = {\n  [K in keyof T]: IfDefinitelyIncluded<T[K], O, K>;\n}[keyof T];\ntype KeysWithMaybeIncludedValues<T, O> = {\n  [K in keyof T]: IfMaybeIncluded<T[K], O, K>;\n}[keyof T];\nexport type DefinitelyIncludedKeys<T, O> = {\n  [K in keyof T]: IfIndexType<\n    K,\n    IfCouldBe<O, string, IfCouldBe<K, string, Extract<O, K>, K>>,\n    IfDefinitelyIncluded<Cast<K, string>, O, K>\n  >;\n}[keyof T];\ntype MaybeIncludedKeys<T, O> = {\n  [K in keyof T]: IfIndexType<K, never, IfMaybeIncluded<Cast<K, string>, O, K>>;\n}[keyof T];\n\n/**\n * Creates an object composed of the `object` properties `predicate` returns truthy for.\n *\n * Differences from lodash:\n * - does not treat sparse arrays as dense\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 17,091 bytes\n * - Micro-dash: 346 bytes\n */\n\nexport function pickBy<T, O>(\n  object: Nil | readonly T[],\n  predicate: ValueNarrowingIteratee<T[], O>,\n): Record<number, Narrow<T, O>>;\nexport function pickBy<T>(\n  object: Nil | readonly T[],\n  predicate: ObjectIteratee<T, boolean>,\n): Record<number, T>;\n\nexport function pickBy<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: ValueNarrowingIteratee<T, O>,\n): Evaluate<\n  | IfCouldBe<I, Nil, {}>\n  | ({\n      [K in KeysWithMaybeIncludedValues<T, O>]?: Narrow<T[K], O>;\n    } & { [K in KeysWithDefinitelyIncludedValues<T, O>]: Narrow<T[K], O> })\n>;\nexport function pickBy<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: KeyNarrowingIteratee<T, O>,\n): Evaluate<\n  | IfCouldBe<I, Nil, {}>\n  | ({\n      [K in DefinitelyIncludedKeys<T, O>]: T[K];\n    } & { [K in MaybeIncludedKeys<T, O>]?: T[K] })\n>;\nexport function pickBy<T>(\n  object: T,\n  predicate: ObjectIteratee<T, boolean>,\n): Evaluate<PartialExceptIndexes<NonNullable<T>>>;\n\nexport function pickBy<T>(\n  object: T,\n  predicate: ObjectIteratee<T, boolean>,\n): Partial<T> {\n  const obj: any = {};\n  forOwn(object, (item, key) => {\n    if (predicate(item, key)) {\n      obj[key] = item;\n    }\n  });\n  return obj;\n}\n","import {\n  Cast,\n  Evaluate,\n  IfCouldBe,\n  IfIndexType,\n  KeyNarrowingIteratee,\n  Nil,\n  ObjectIteratee,\n  PartialExceptIndexes,\n  ValueNarrowingIteratee,\n} from '../interfaces';\nimport { pickBy } from './pick-by';\n\ntype IfDefinitelyIncluded<T, O, If, Else = never> = IfCouldBe<T, O, Else, If>;\ntype IfMaybeIncluded<T, O, If, Else = never> = IfDefinitelyIncluded<\n  T,\n  O,\n  Else,\n  Exclude<T, O> extends never ? Else : If\n>;\ntype KeysWithDefinitelyIncludedValues<T, O> = {\n  [K in keyof T]: IfDefinitelyIncluded<T[K], O, K>;\n}[keyof T];\ntype KeysWithMaybeIncludedValues<T, O> = {\n  [K in keyof T]: IfMaybeIncluded<T[K], O, K>;\n}[keyof T];\ntype DefinitelyIncludedKeys<T, O> = {\n  [K in keyof T]: IfIndexType<\n    K,\n    Exclude<string, O> extends never ? never : K,\n    IfDefinitelyIncluded<Cast<K, string>, O, K>\n  >;\n}[keyof T];\ntype MaybeIncludedKeys<T, O> = {\n  [K in keyof T]: IfIndexType<K, never, IfMaybeIncluded<Cast<K, string>, O, K>>;\n}[keyof T];\n\n/**\n * The opposite of `pickBy`; this function creates an object composed of the own enumerable string keyed properties of `object` that `predicate` doesn't return truthy for.\n *\n * Differences from lodash:\n * - does not treat sparse arrays as dense\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 17,456 bytes\n * - Micro-dash: 389 bytes\n */\n\nexport function omitBy<T, O>(\n  object: Nil | readonly T[],\n  predicate: ValueNarrowingIteratee<T[], O>,\n): Record<number, Exclude<T, O>>;\nexport function omitBy<T>(\n  object: Nil | readonly T[],\n  predicate: ObjectIteratee<T, boolean>,\n): Record<number, T>;\n\nexport function omitBy<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: ValueNarrowingIteratee<T, O>,\n): Evaluate<\n  | IfCouldBe<I, Nil, {}>\n  | ({\n      [K in KeysWithMaybeIncludedValues<T, O>]?: Exclude<T[K], O>;\n    } & { [K in KeysWithDefinitelyIncludedValues<T, O>]: Exclude<T[K], O> })\n>;\nexport function omitBy<I, T extends NonNullable<I>, O>(\n  object: I,\n  predicate: KeyNarrowingIteratee<T, O>,\n): Evaluate<\n  | IfCouldBe<I, Nil, {}>\n  | ({\n      [K in DefinitelyIncludedKeys<T, O>]: T[K];\n    } & { [K in MaybeIncludedKeys<T, O>]?: T[K] })\n>;\nexport function omitBy<T>(\n  object: T,\n  predicate: ObjectIteratee<T, boolean>,\n): Evaluate<PartialExceptIndexes<NonNullable<T>>>;\n\nexport function omitBy(object: any, predicate: Function): any {\n  return pickBy(object, (item, key) => !predicate(item, key));\n}\n","import { IfCouldBe, Nil } from '../interfaces';\n\n/**\n * Creates an object composed of the picked `object` properties.\n *\n * Differences from lodash:\n * - `paths` must be direct properties of `object` (they cannot references deep properties)\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 9,083 bytes\n * - Micro-dash: 127 bytes\n */\nexport function pick<T, P extends ReadonlyArray<keyof NonNullable<T>>>(\n  object: T,\n  ...paths: P\n): IfCouldBe<T, Nil, {}> | { [K in P[number]]: NonNullable<T>[K] } {\n  const result: any = {};\n  if (object != null) {\n    for (const path of paths) {\n      result[path] = object[path as keyof T];\n    }\n  }\n  return result;\n}\n","/**\n * This function is like `set()` except that it accepts `updater` to produce the value to set.\n *\n * **Note:** This function mutates `object`.\n *\n * Differences from lodash:\n * - only accepts an array for `path`, not a dot-separated string\n * - does not handle `customizer` returning `undefined`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 7,006 bytes\n * - Micro-dash: 191 bytes\n */\nexport function update<T>(\n  object: T,\n  path: ReadonlyArray<number | string>,\n  updater: (val: any) => any,\n): T {\n  if (object && path.length) {\n    let current: any = object;\n    const { length } = path;\n    for (let i = 0; i < length; ++i) {\n      const key = path[i];\n      let value = current[key];\n      if (i < length - 1) {\n        if (!(value instanceof Object)) {\n          value = Number.isInteger(path[i + 1] as any) ? [] : {};\n        }\n      } else {\n        value = updater(value);\n      }\n      current = current[key] = value;\n    }\n  }\n  return object;\n}\n","import { constant } from '../util';\nimport { update } from './update';\n\n/**\n * Sets the value at `path` of `object`. If a portion of `path` doesn't exist, it's created. Arrays are created for missing index properties while objects are created for all other missing properties.\n *\n * **Note:** This function mutates `object`.\n *\n * Differences from lodash:\n * - only accepts an array for `path`, not a dot-separated string\n * - does not handle `customizer` returning `undefined`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,735 bytes\n * - Micro-dash: 259 bytes\n */\nexport function set<T>(\n  object: T,\n  path: ReadonlyArray<number | string>,\n  value: any,\n): T {\n  return update(object, path, constant(value));\n}\n","import { StringifiedKey } from '../interfaces';\nimport { keys } from './keys';\n\n/**\n * Creates an array of own enumerable string keyed-value pairs for `object` which can be consumed by `fromPairs`.\n *\n * Differences from lodash:\n * - does not give any special consideration for arguments objects, strings, or prototype objects (e.g. many will have `'length'` in the returned array)\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,791 bytes\n * - Micro-dash: 207 bytes\n */\nexport function toPairs<T>(object: T): Array<[StringifiedKey<T>, T[keyof T]]> {\n  return keys(object).map((key) => [key, object[key as keyof T]]);\n}\n","import { transform } from '../object';\n\n/**\n * This function is like `fromPairs` except that it accepts two arrays, one of property identifiers and one of corresponding values.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,252 bytes\n * - Micro-dash: 349 bytes\n */\n\nexport function zipObject<\n  K extends readonly [PropertyKey],\n  V extends readonly [any, ...any[]],\n>(props: K, values: V): Record<K[0], V[0]>;\nexport function zipObject<\n  K extends readonly [PropertyKey, PropertyKey],\n  V extends readonly [any, any, ...any[]],\n>(props: K, values: V): Record<K[0], V[0]> & Record<K[1], V[1]>;\nexport function zipObject<\n  K extends readonly [PropertyKey, PropertyKey, PropertyKey],\n  V extends readonly [any, any, any, ...any[]],\n>(\n  props: K,\n  values: V,\n): Record<K[0], V[0]> & Record<K[1], V[1]> & Record<K[2], V[2]>;\nexport function zipObject<\n  K extends readonly [PropertyKey, PropertyKey, PropertyKey, PropertyKey],\n  V extends readonly [any, any, any, any, ...any[]],\n>(\n  props: K,\n  values: V,\n): Record<K[3], V[3]> &\n  Record<K[0], V[0]> &\n  Record<K[1], V[1]> &\n  Record<K[2], V[2]>;\nexport function zipObject<K extends PropertyKey, V>(\n  props: readonly K[],\n  values: readonly V[],\n): Record<K, V | undefined>;\n\nexport function zipObject(\n  props: readonly PropertyKey[],\n  values: readonly any[],\n): any {\n  return transform(props, (accumulator: any, prop, index) => {\n    accumulator[prop] = values[index];\n  });\n}\n","import { Drop1Arg, Drop2Args, Drop3Args, Drop4Args } from '../interfaces';\n\n/**\n * Creates a function that invokes the method at `object[key]` with `partials` prepended to the arguments it receives. Allows bound functions to reference methods that may be redefined or don't yet exist. See [Peter Michaux's article](http://peter.michaux.ca/articles/lazy-function-definition-pattern) for more details.\n *\n * Differences from lodash:\n * - there is no \"placeholder\" functionality\n * - it will return plain functions; they will not inherit the prototype of `object[key]`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 10,812 bytes\n * - Micro-dash: 70 bytes\n */\n\nexport function bindKey<\n  K extends PropertyKey,\n  T extends Record<K, (...args: any[]) => any>,\n>(object: T, key: K): (...args: Parameters<T[K]>) => ReturnType<T[K]>;\nexport function bindKey<\n  K extends PropertyKey,\n  A1,\n  T extends Record<K, (...args: [A1, ...any[]]) => any>,\n>(object: T, key: K, arg1: A1): Drop1Arg<T[K]>;\nexport function bindKey<\n  K extends PropertyKey,\n  A1,\n  A2,\n  T extends Record<K, (...args: [A1, A2, ...any[]]) => any>,\n>(object: T, key: K, arg1: A1, arg2: A2): Drop2Args<T[K]>;\nexport function bindKey<\n  K extends PropertyKey,\n  A1,\n  A2,\n  A3,\n  T extends Record<K, (...args: [A1, A2, A3, ...any[]]) => any>,\n>(object: T, key: K, arg1: A1, arg2: A2, arg3: A3): Drop3Args<T[K]>;\nexport function bindKey<\n  K extends PropertyKey,\n  A1,\n  A2,\n  A3,\n  A4,\n  T extends Record<K, (...args: [A1, A2, A3, A4, ...any[]]) => any>,\n>(object: T, key: K, arg1: A1, arg2: A2, arg3: A3, arg4: A4): Drop4Args<T[K]>;\n\n// catch-all\nexport function bindKey<\n  K extends PropertyKey,\n  A1,\n  A2,\n  A3,\n  A4,\n  T extends Record<K, (...args: [A1, A2, A3, A4, ...any[]]) => any>,\n>(\n  object: T,\n  key: K,\n  ...partials: [A1, A2, A3, A4, ...any[]]\n): (...args: any[]) => ReturnType<T[K]>;\n\nexport function bindKey(object: any, key: any, ...partials: any[]): any {\n  return (...args: any[]): any => object[key](...partials, ...args);\n}\n","import { Drop1Arg, Drop2Args, Drop3Args, Drop4Args } from '../interfaces';\n\n/**\n * Creates a function that invokes `func` with `partials` prepended to the arguments it receives. This function is like `bind` except it does not alter the `this` binding.\n *\n * Differences from lodash:\n * - there is no \"placeholder\" functionality\n * - sets the \"length\" property of partially applied functions\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 10,767 bytes\n * - Micro-dash: 48 bytes\n */\n\nexport function partial<F extends (...args: any[]) => any>(func: F): F;\nexport function partial<A1, F extends (arg1: A1, ...rest: any) => any>(\n  func: F,\n  arg1: A1,\n): Drop1Arg<F>;\nexport function partial<A1, A2, F extends (...args: [A1, A2, ...any[]]) => any>(\n  func: F,\n  arg1: A1,\n  arg2: A2,\n): Drop2Args<F>;\nexport function partial<\n  A1,\n  A2,\n  A3,\n  F extends (...args: [A1, A2, A3, ...any[]]) => any,\n>(func: F, arg1: A1, arg2: A2, arg3: A3): Drop3Args<F>;\nexport function partial<\n  A1,\n  A2,\n  A3,\n  A4,\n  F extends (...args: [A1, A2, A3, A4, ...any[]]) => any,\n>(func: F, arg1: A1, arg2: A2, arg3: A3, arg4: A4): Drop4Args<F>;\n\n// catch-all\nexport function partial<\n  A1,\n  A2,\n  A3,\n  A4,\n  F extends (...args: [A1, A2, A3, A4, ...any[]]) => any,\n>(\n  func: F,\n  ...partials: [A1, A2, A3, A4, ...any[]]\n): (...args: any[]) => ReturnType<F>;\n\nexport function partial(func: Function, ...partials: any[]): any {\n  return func.bind(undefined, ...partials);\n}\n","import { partial } from './partial';\n\n// type definitions from @types/lodash\n\ninterface CurriedFunction1<T1, R> {\n  (): CurriedFunction1<T1, R>;\n  (t1: T1): R;\n}\ninterface CurriedFunction2<T1, T2, R> {\n  (): CurriedFunction2<T1, T2, R>;\n  (t1: T1): CurriedFunction1<T2, R>;\n  (t1: T1, t2: T2): R;\n}\ninterface CurriedFunction3<T1, T2, T3, R> {\n  (): CurriedFunction3<T1, T2, T3, R>;\n  (t1: T1): CurriedFunction2<T2, T3, R>;\n  (t1: T1, t2: T2): CurriedFunction1<T3, R>;\n  (t1: T1, t2: T2, t3: T3): R;\n}\ninterface CurriedFunction4<T1, T2, T3, T4, R> {\n  (): CurriedFunction4<T1, T2, T3, T4, R>;\n  (t1: T1): CurriedFunction3<T2, T3, T4, R>;\n  (t1: T1, t2: T2): CurriedFunction2<T3, T4, R>;\n  (t1: T1, t2: T2, t3: T3): CurriedFunction1<T4, R>;\n  (t1: T1, t2: T2, t3: T3, t4: T4): R;\n}\n\n/**\n * Creates a function that accepts arguments of `func` and either invokes func returning its result, if at least `arity` number of arguments have been provided, or returns a function that accepts the remaining `func` arguments, and so on. The `arity` of func may be specified if `func.length` is not sufficient.\n *\n * Differences from lodash:\n * - there is no \"placeholder\" functionality\n * - it will return plain functions; they will not inherit the prototype of `func`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 10,527 bytes\n * - Micro-dash: 154 bytes\n */\n\nexport function curry<T1, R>(func: (t1: T1) => R): CurriedFunction1<T1, R>;\nexport function curry<T1, R>(\n  func: (t1: T1, ...more: any[]) => R,\n  arity: 1,\n): CurriedFunction1<T1, R>;\nexport function curry<T1, T2, R>(\n  func: (t1: T1, t2: T2) => R,\n): CurriedFunction2<T1, T2, R>;\nexport function curry<T1, T2, R>(\n  func: (t1: T1, t2: T2, ...more: any[]) => R,\n  arity: 2,\n): CurriedFunction2<T1, T2, R>;\nexport function curry<T1, T2, T3, R>(\n  func: (t1: T1, t2: T2, t3: T3) => R,\n): CurriedFunction3<T1, T2, T3, R>;\nexport function curry<T1, T2, T3, R>(\n  func: (t1: T1, t2: T2, t3: T3, ...more: any[]) => R,\n  arity: 3,\n): CurriedFunction3<T1, T2, T3, R>;\nexport function curry<T1, T2, T3, T4, R>(\n  func: (t1: T1, t2: T2, t3: T3, t4: T4) => R,\n): CurriedFunction4<T1, T2, T3, T4, R>;\nexport function curry<T1, T2, T3, T4, R>(\n  func: (t1: T1, t2: T2, t3: T3, t4: T4, ...more: any[]) => R,\n  arity: 4,\n): CurriedFunction4<T1, T2, T3, T4, R>;\n\nexport function curry(func: (...args: any[]) => any, arity = func.length): any {\n  return function (this: any, ...args: any[]): any {\n    if (args.length < arity) {\n      return curry(\n        (partial as any)(func, ...args),\n        (arity - args.length) as any,\n      );\n    } else {\n      return func.apply(this, args);\n    }\n  };\n}\n","/**\n * Creates a debounced function that delays invoking `func` until after `wait` milliseconds have elapsed since the last time the debounced function was invoked. The debounced function comes with a `cancel` method to cancel delayed `func` invocations. The `func` is invoked with the last arguments provided to the debounced function.\n *\n * If `wait` is 0, `func` invocation is deferred until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * Differences from lodash:\n * - the debounced function does not come with a `flush` method\n * - does not accept options\n * - does not return the results of the last invocation\n * - does not make any guarantees about the value of `this` in `func`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,410 bytes\n * - Micro-dash: 149 bytes\n */\nexport function debounce<T extends (...args: any[]) => any>(\n  func: T,\n  wait = 0,\n): ((...args: Parameters<T>) => void) & { cancel: () => void } {\n  let timeoutId: number;\n  const cancel = (): void => {\n    clearTimeout(timeoutId);\n  };\n  const debounced = (...args: unknown[]): void => {\n    cancel();\n    timeoutId = setTimeout(func, wait, ...args);\n  };\n  return Object.assign(debounced, { cancel });\n}\n","import { identity } from '../util/identity';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is provided, it determines the cache key for storing the result based on the arguments provided to the memoized function. By default, the first argument provided to the memoized function is used as the map cache key. The `func` is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized function.\n *\n * Differences from lodash:\n * - does not coerce keys to a string; any object can be used as in an ES6 `Map`\n * - does not let you customize cache creation\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,523 bytes\n * - Micro-dash: 231 bytes\n *\n * @param resolver The function to resolve the cache key.\n */\nexport function memoize<T extends Function>(\n  func: T,\n  resolver: Function = identity,\n): T & { cache: Map<any, any> } {\n  function memoized(this: any): any {\n    const { cache } = memoized;\n    const key = resolver.apply(this, arguments);\n    if (cache.has(key)) {\n      return cache.get(key);\n    } else {\n      const value = func.apply(this, arguments);\n      cache.set(key, value);\n      return value;\n    }\n  }\n  memoized.cache = new Map();\n  return memoized as any;\n}\n","/**\n * Creates a function that negates the result of the predicate `func`. The `func` predicate is invoked with the `this` binding and arguments of the created function.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 357 bytes\n * - Micro-dash: 107 bytes\n */\nexport function negate<F extends (...args: any[]) => any>(\n  predicate: F,\n): (this: ThisParameterType<F>, ...args: Parameters<F>) => boolean {\n  return function (this: any, ...args): boolean {\n    return !predicate.apply(this, args);\n  } as F;\n}\n","/**\n * Creates a function that is restricted to invoking `func` once. Repeat calls to the function return the value of the first invocation. The `func` is invoked with the `this` binding and arguments of the created function.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,809 bytes\n * - Micro-dash: 100 bytes\n */\nexport function once<T extends (...args: any[]) => any>(\n  func: T,\n): (this: ThisParameterType<T>, ...args: Parameters<T>) => ReturnType<T> {\n  let result: ReturnType<T>;\n  let needsCall = true;\n  return function (\n    this: ThisParameterType<T>,\n    ...args: Parameters<T>\n  ): ReturnType<T> {\n    if (needsCall) {\n      needsCall = false;\n      result = func.apply(this, args);\n\n      // allow func and any of its variables to be garbage collected\n      (func as any) = 0;\n    }\n    return result;\n  };\n}\n","/**\n * Creates a throttled function that only invokes `func` at most once per every `wait` milliseconds. The throttled function comes with a `cancel` method to cancel delayed `func` invocations and a `flush` method to immediately invoke them. Provide `options` to indicate whether `func` should be invoked on the leading and/or trailing edge of the `wait` timeout. The `func` is invoked with the last arguments provided to the throttled function.\n *\n *  **Note**: If `leading` and `trailing` options are `true`, `func` is invoked on the trailing edge of the timeout only if the throttled function is invoked more than once during the `wait` timeout.\n *\n * If `wait` is 0 and `leading` is `false`, `func` invocation is deferred until to the next tick, similar to `setTimeout` with a timeout of 0.\n *\n * Differences from lodash:\n * - does not return the results of the last invocation\n * - does not make any guarantees about the value of `this` in `func`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,661 bytes\n * - Micro-dash: 374 bytes\n */\nexport function throttle<T extends (...args: any[]) => any>(\n  func: T,\n  wait = 0,\n  { leading = true, trailing = true } = {},\n): ((...args: Parameters<T>) => void) & {\n  cancel: () => void;\n  flush: () => void;\n} {\n  let tail = 0;\n  let nextArgs: Parameters<T> | undefined;\n  let timeoutId: any;\n\n  // helpers to save some bytes\n  const now = (): number => performance.now();\n  const setNewTail = (): void => {\n    tail = now() + wait;\n  };\n\n  const cancel = (): void => {\n    clearTimeout(timeoutId);\n    timeoutId = undefined;\n    nextArgs = undefined;\n    tail = 0;\n  };\n\n  const flush = (): void => {\n    if (nextArgs) {\n      const args = nextArgs;\n      cancel();\n\n      setNewTail();\n      func(...args);\n    }\n  };\n\n  const throttled = (...args: Parameters<T>): void => {\n    nextArgs = args;\n    const delay = Math.max(0, tail - now());\n    if (!delay && (leading || timeoutId)) {\n      flush();\n    } else if (trailing) {\n      if (!delay) {\n        setNewTail();\n      }\n      clearTimeout(timeoutId);\n      timeoutId = setTimeout(flush, delay || wait);\n    }\n  };\n\n  return Object.assign(throttled, { cancel, flush });\n}\n","/**\n * Clamps `number` within the inclusive lower and upper bounds.\n *\n * Differences from lodash:\n * - `lower` is required\n * - does not coerce bounds that are `NaN` to be `0`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,652 bytes\n * - Micro-dash: 108 bytes\n */\nexport function clamp(number: number, lower: number, upper: number): number {\n  return Math.min(upper, Math.max(lower, number));\n}\n","/**\n * Checks if `n` is between `start` and up to, but not including, `end`. If start is greater than end the params are swapped to support negative ranges.\n *\n * Differences from lodash:\n * - `start` and `end` are both required\n * - does not coerce falsey bounds to `0`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,736 bytes\n * - Micro-dash: 116 bytes\n */\nexport function inRange(number: number, start: number, end: number): boolean {\n  return number >= Math.min(start, end) && number < Math.max(start, end);\n}\n","import { Nil } from '../interfaces';\n\n/**\n * Converts the first character of `string` to upper case.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,412 bytes\n * - Micro-dash: 100 bytes\n */\nexport function upperFirst(string: Nil | string): string {\n  return string ? string.charAt(0).toUpperCase() + string.slice(1) : '';\n}\n","import { upperFirst } from './upper-first';\n\n/**\n * Converts the first character of `string` to upper case and the remaining to lower case.\n *\n * Differences from lodash:\n * - requires `string` to be a string\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,444 bytes\n * - Micro-dash: 117 bytes\n */\nexport function capitalize(string: string): string {\n  return upperFirst(string.toLowerCase());\n}\n","/**\n * Splits `string` into an array of its words.\n *\n * Differences from lodash:\n * - does not accept a `pattern` argument\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,760 bytes\n * - Micro-dash: 215 bytes\n */\nexport function words(string: string): string[] {\n  return (\n    string\n      // between lower & upper\n      .replace(/([a-z])([A-Z])/g, '$1 $2')\n      // between number & letter\n      .replace(/(\\d)([A-Za-z])/g, '$1 $2')\n      .replace(/([A-Za-z])(\\d)/g, '$1 $2')\n      // before last upper in a sequence followed by lower\n      .replace(/\\b([A-Z]+)([A-Z])([a-z])/, '$1 $2$3')\n      .match(/[A-Za-z0-9]+/g) ?? []\n  );\n}\n","import { capitalize } from './capitalize';\nimport { words } from './words';\n\n/**\n * Converts `string` to camel case.\n *\n * Differences from lodash:\n * - requires `string` to be a string\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,803 bytes\n * - Micro-dash: 388 bytes\n */\nexport function camelCase(string: string): string {\n  return words(string)\n    .map((w, i) => (i ? capitalize(w) : w.toLowerCase()))\n    .join('');\n}\n","/**\n * Converts `string`, as a whole, to lower case just like `String#toLowerCase`.\n *\n * Differences from lodash:\n * - requires `string` to be a string\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 1,209 bytes\n * - Micro-dash: 51 bytes\n */\nexport function toLower(string: string): string {\n  return string.toLowerCase();\n}\n","import { toLower } from './to-lower';\nimport { words } from './words';\n\n/**\n * Converts `string` to [kebab case](https://en.wikipedia.org/wiki/Letter_case#Special_case_styles).\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,487 bytes\n * - Micro-dash: 295 bytes\n */\nexport function kebabCase(string: string): string {\n  return words(string).map(toLower).join('-');\n}\n","import { Nil } from '../interfaces';\n\n/**\n * Converts the first character of `string` to lower case.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,412 bytes\n * - Micro-dash: 100 bytes\n */\nexport function lowerFirst(string: Nil | string): string {\n  return string ? string.charAt(0).toLowerCase() + string.slice(1) : '';\n}\n","/**\n * Pads `string` on the left and right sides if it's shorter than `length`. Padding characters are truncated if they can't be evenly divided by `length`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,239 bytes\n * - Micro-dash: 97 bytes\n */\nexport function pad(s: string, length: number, chars?: string): string {\n  return s\n    .padStart(length - (length - s.length) / 2, chars)\n    .padEnd(length, chars);\n}\n","/**\n * Pads `string` on the left side if it's shorter than `length`. Padding characters are truncated if they exceed `length`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,169 bytes\n * - Micro-dash: 70 bytes\n */\nexport function padStart(s: string, length: number, chars?: string): string {\n  return s.padStart(length, chars);\n}\n","/**\n * Pads `string` on the right side if it's shorter than `length`. Padding characters are truncated if they exceed `length`.\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 4,169 bytes\n * - Micro-dash: 68 bytes\n */\nexport function padEnd(s: string, length: number, chars?: string): string {\n  return s.padEnd(length, chars);\n}\n","/**\n * Repeats the given string `n` times.\n *\n * Differences from lodash:\n * - does not work as an iteratee for functions like `map`\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 2,937 bytes\n * - Micro-dash: 94 bytes\n */\nexport function repeat(string: string, n: number): string {\n  return n < 0 ? '' : new Array(n | 0).fill(string).join('');\n}\n","import { toLower } from './to-lower';\nimport { words } from './words';\n\n/**\n * Converts `string` to [snake case](https://en.wikipedia.org/wiki/Snake_case)\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 5,500 bytes\n * - Micro-dash: 308 bytes\n */\nexport function snakeCase(string: string): string {\n  return words(string).map(toLower).join('_');\n}\n","import { upperFirst } from './upper-first';\nimport { words } from './words';\n\n/**\n * Converts `string` to [start case](https://en.wikipedia.org/wiki/Letter_case#Stylistic_or_specialised_usage).\n *\n * Differences from lodash:\n * - requires `string` to be a string\n *\n * Contribution to minified bundle size, when it is the only function imported:\n * - Lodash: 6,730 bytes\n * - Micro-dash: 321 bytes\n */\nexport function startCase(string: string): string {\n  return words(string).map(upperFirst).join(' ');\n}\n","/*\n * Public API Surface of micro-dash\n */\n\nexport * from './lib/array';\nexport * from './lib/collection';\nexport * from './lib/function';\nexport * from './lib/lang';\nexport * from './lib/math';\nexport * from './lib/number';\nexport * from './lib/object';\nexport * from './lib/string';\nexport * from './lib/util';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"AAAA;;;;;;AAMG;SACa,KAAK,CAAI,KAAmB,EAAE,IAAI,GAAG,CAAC,EAAA;AACpD,IAAA,IAAI,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACpC,MAAM,MAAM,GAAG,EAAE;IACjB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE;AACxD,QAAA,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,CAAC;;AAEvC,IAAA,OAAO,MAAM;AACf;;ACdA;;;;;;AAMG;AACG,SAAU,QAAQ,CAAI,KAAQ,EAAA;AAClC,IAAA,OAAO,MAAS,KAAK;AACvB;;ACTA;;;;;;AAMG;AACG,SAAU,QAAQ,CAAI,KAAQ,EAAA;AAClC,IAAA,OAAO,KAAK;AACd;;AC2FgB,SAAA,IAAI,CAAC,GAAG,KAA0B,EAAA;AAChD,IAAA,IAAI,KAAK,CAAC,MAAM,EAAE;QAChB,OAAO,KAAK,CAAC,MAAM,CACjB,CAAC,MA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