complete-common 1.4.0 → 2.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (53) hide show
  1. package/dist/functions/array.d.cts +5 -5
  2. package/dist/functions/array.d.mts +5 -5
  3. package/dist/functions/array.d.ts +5 -5
  4. package/dist/functions/array.d.ts.map +1 -1
  5. package/dist/functions/assert.d.cts +1 -1
  6. package/dist/functions/assert.d.mts +1 -1
  7. package/dist/functions/assert.d.ts +1 -1
  8. package/dist/functions/assert.d.ts.map +1 -1
  9. package/dist/functions/enums.d.cts +1 -1
  10. package/dist/functions/enums.d.mts +1 -1
  11. package/dist/functions/enums.d.ts +1 -1
  12. package/dist/functions/enums.d.ts.map +1 -1
  13. package/dist/functions/map.d.cts +6 -2
  14. package/dist/functions/map.d.mts +6 -2
  15. package/dist/functions/map.d.ts +6 -2
  16. package/dist/functions/map.d.ts.map +1 -1
  17. package/dist/functions/object.d.cts +3 -30
  18. package/dist/functions/object.d.mts +3 -30
  19. package/dist/functions/object.d.ts +3 -30
  20. package/dist/functions/object.d.ts.map +1 -1
  21. package/dist/functions/set.d.cts +6 -26
  22. package/dist/functions/set.d.mts +6 -26
  23. package/dist/functions/set.d.ts +6 -26
  24. package/dist/functions/set.d.ts.map +1 -1
  25. package/dist/functions/sort.d.cts +1 -1
  26. package/dist/functions/sort.d.mts +1 -1
  27. package/dist/functions/sort.d.ts +1 -1
  28. package/dist/functions/sort.d.ts.map +1 -1
  29. package/dist/functions/string.d.cts +3 -1
  30. package/dist/functions/string.d.mts +3 -1
  31. package/dist/functions/string.d.ts +3 -1
  32. package/dist/functions/string.d.ts.map +1 -1
  33. package/dist/index.cjs +7 -18
  34. package/dist/index.d.cts +1 -0
  35. package/dist/index.d.mts +1 -0
  36. package/dist/index.d.ts +1 -0
  37. package/dist/index.d.ts.map +1 -1
  38. package/dist/index.mjs +7 -15
  39. package/dist/types/TranspiledEnum.d.cts +3 -0
  40. package/dist/types/TranspiledEnum.d.mts +3 -0
  41. package/dist/types/TranspiledEnum.d.ts +3 -0
  42. package/dist/types/TranspiledEnum.d.ts.map +1 -0
  43. package/package.json +3 -3
  44. package/src/functions/array.ts +5 -10
  45. package/src/functions/assert.ts +1 -1
  46. package/src/functions/enums.ts +1 -1
  47. package/src/functions/map.ts +8 -5
  48. package/src/functions/object.ts +3 -44
  49. package/src/functions/set.ts +8 -41
  50. package/src/functions/sort.ts +3 -2
  51. package/src/functions/string.ts +7 -1
  52. package/src/index.ts +1 -0
  53. package/src/types/TranspiledEnum.ts +2 -0
@@ -8,7 +8,7 @@ import type { WidenLiteral } from "../index.js";
8
8
  * Helper function to copy a two-dimensional array. Note that the sub-arrays will only be shallow
9
9
  * copied (using the spread operator).
10
10
  */
11
- export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): T[][];
11
+ export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): readonly T[][];
12
12
  /**
13
13
  * Helper function for determining if two arrays contain the exact same elements. Note that this
14
14
  * only performs a shallow comparison.
@@ -21,7 +21,7 @@ export declare function arrayEquals<T>(array1: readonly T[], array2: readonly T[
21
21
  *
22
22
  * This function is variadic, meaning that you can specify N arguments to remove N elements.
23
23
  */
24
- export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): T[];
24
+ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): readonly T[];
25
25
  /**
26
26
  * Removes the specified element(s) from the array. If the specified element(s) are not found in the
27
27
  * array, this function will do nothing.
@@ -34,7 +34,7 @@ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsT
34
34
  *
35
35
  * @returns The removed elements. This will be an empty array if no elements were removed.
36
36
  */
37
- export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): T[];
37
+ export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): readonly T[];
38
38
  /** Helper function to remove all of the elements in an array in-place. */
39
39
  export declare function emptyArray(array: unknown[]): void;
40
40
  /**
@@ -48,7 +48,7 @@ export declare function emptyArray(array: unknown[]): void;
48
48
  * This is named `filterMap` after the Rust function:
49
49
  * https://doc.rust-lang.org/std/iter/struct.FilterMap.html
50
50
  */
51
- export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): NewT[];
51
+ export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): readonly NewT[];
52
52
  /**
53
53
  * Helper function to get a random element from the provided array.
54
54
  *
@@ -77,7 +77,7 @@ export declare function includes<T, TupleElement extends WidenLiteral<T>>(array:
77
77
  /** A wrapper around `Array.isArray` that narrows to `unknown[]` instead of `any[]`. */
78
78
  export declare function isArray(arg: unknown): arg is unknown[];
79
79
  /** Initializes an array with all elements containing the specified default value. */
80
- export declare function newArray<T>(length: number, value: T): T[];
80
+ export declare function newArray<T>(length: number, value: T): readonly T[];
81
81
  /** Helper function to sum every value in an array together. */
82
82
  export declare function sumArray(array: readonly number[]): number;
83
83
  //# sourceMappingURL=array.d.ts.map
@@ -8,7 +8,7 @@ import type { WidenLiteral } from "../index.js";
8
8
  * Helper function to copy a two-dimensional array. Note that the sub-arrays will only be shallow
9
9
  * copied (using the spread operator).
10
10
  */
11
- export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): T[][];
11
+ export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): readonly T[][];
12
12
  /**
13
13
  * Helper function for determining if two arrays contain the exact same elements. Note that this
14
14
  * only performs a shallow comparison.
@@ -21,7 +21,7 @@ export declare function arrayEquals<T>(array1: readonly T[], array2: readonly T[
21
21
  *
22
22
  * This function is variadic, meaning that you can specify N arguments to remove N elements.
23
23
  */
24
- export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): T[];
24
+ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): readonly T[];
25
25
  /**
26
26
  * Removes the specified element(s) from the array. If the specified element(s) are not found in the
27
27
  * array, this function will do nothing.
@@ -34,7 +34,7 @@ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsT
34
34
  *
35
35
  * @returns The removed elements. This will be an empty array if no elements were removed.
36
36
  */
37
- export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): T[];
37
+ export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): readonly T[];
38
38
  /** Helper function to remove all of the elements in an array in-place. */
39
39
  export declare function emptyArray(array: unknown[]): void;
40
40
  /**
@@ -48,7 +48,7 @@ export declare function emptyArray(array: unknown[]): void;
48
48
  * This is named `filterMap` after the Rust function:
49
49
  * https://doc.rust-lang.org/std/iter/struct.FilterMap.html
50
50
  */
51
- export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): NewT[];
51
+ export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): readonly NewT[];
52
52
  /**
53
53
  * Helper function to get a random element from the provided array.
54
54
  *
@@ -77,7 +77,7 @@ export declare function includes<T, TupleElement extends WidenLiteral<T>>(array:
77
77
  /** A wrapper around `Array.isArray` that narrows to `unknown[]` instead of `any[]`. */
78
78
  export declare function isArray(arg: unknown): arg is unknown[];
79
79
  /** Initializes an array with all elements containing the specified default value. */
80
- export declare function newArray<T>(length: number, value: T): T[];
80
+ export declare function newArray<T>(length: number, value: T): readonly T[];
81
81
  /** Helper function to sum every value in an array together. */
82
82
  export declare function sumArray(array: readonly number[]): number;
83
83
  //# sourceMappingURL=array.d.ts.map
@@ -8,7 +8,7 @@ import type { WidenLiteral } from "../index.js";
8
8
  * Helper function to copy a two-dimensional array. Note that the sub-arrays will only be shallow
9
9
  * copied (using the spread operator).
10
10
  */
11
- export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): T[][];
11
+ export declare function arrayCopyTwoDimensional<T>(array: ReadonlyArray<readonly T[]>): readonly T[][];
12
12
  /**
13
13
  * Helper function for determining if two arrays contain the exact same elements. Note that this
14
14
  * only performs a shallow comparison.
@@ -21,7 +21,7 @@ export declare function arrayEquals<T>(array1: readonly T[], array2: readonly T[
21
21
  *
22
22
  * This function is variadic, meaning that you can specify N arguments to remove N elements.
23
23
  */
24
- export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): T[];
24
+ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsToRemove: readonly T[]): readonly T[];
25
25
  /**
26
26
  * Removes the specified element(s) from the array. If the specified element(s) are not found in the
27
27
  * array, this function will do nothing.
@@ -34,7 +34,7 @@ export declare function arrayRemove<T>(originalArray: readonly T[], ...elementsT
34
34
  *
35
35
  * @returns The removed elements. This will be an empty array if no elements were removed.
36
36
  */
37
- export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): T[];
37
+ export declare function arrayRemoveInPlace<T>(array: T[], ...elementsToRemove: readonly T[]): readonly T[];
38
38
  /** Helper function to remove all of the elements in an array in-place. */
39
39
  export declare function emptyArray(array: unknown[]): void;
40
40
  /**
@@ -48,7 +48,7 @@ export declare function emptyArray(array: unknown[]): void;
48
48
  * This is named `filterMap` after the Rust function:
49
49
  * https://doc.rust-lang.org/std/iter/struct.FilterMap.html
50
50
  */
51
- export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): NewT[];
51
+ export declare function filterMap<OldT, NewT>(array: readonly OldT[], func: (element: OldT) => NewT | undefined): readonly NewT[];
52
52
  /**
53
53
  * Helper function to get a random element from the provided array.
54
54
  *
@@ -77,7 +77,7 @@ export declare function includes<T, TupleElement extends WidenLiteral<T>>(array:
77
77
  /** A wrapper around `Array.isArray` that narrows to `unknown[]` instead of `any[]`. */
78
78
  export declare function isArray(arg: unknown): arg is unknown[];
79
79
  /** Initializes an array with all elements containing the specified default value. */
80
- export declare function newArray<T>(length: number, value: T): T[];
80
+ export declare function newArray<T>(length: number, value: T): readonly T[];
81
81
  /** Helper function to sum every value in an array together. */
82
82
  export declare function sumArray(array: readonly number[]): number;
83
83
  //# sourceMappingURL=array.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"array.d.ts","sourceRoot":"","sources":["../../src/functions/array.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAKhD;;;GAGG;AAEH,wBAAgB,uBAAuB,CAAC,CAAC,EACvC,KAAK,EAAE,aAAa,CAAC,SAAS,CAAC,EAAE,CAAC,GACjC,CAAC,EAAE,EAAE,CAQP;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,MAAM,EAAE,SAAS,CAAC,EAAE,EACpB,MAAM,EAAE,SAAS,CAAC,EAAE,GACnB,OAAO,CAST;AAED;;;;;;GAMG;AAEH,wBAAgB,WAAW,CAAC,CAAC,EAC3B,aAAa,EAAE,SAAS,CAAC,EAAE,EAC3B,GAAG,gBAAgB,EAAE,SAAS,CAAC,EAAE,GAChC,CAAC,EAAE,CAWL;AAED;;;;;;;;;;;GAWG;AAEH,wBAAgB,kBAAkB,CAAC,CAAC,EAElC,KAAK,EAAE,CAAC,EAAE,EACV,GAAG,gBAAgB,EAAE,SAAS,CAAC,EAAE,GAChC,CAAC,EAAE,CAYL;AAED,0EAA0E;AAE1E,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,IAAI,CAEjD;AAED;;;;;;;;;;GAUG;AAEH,wBAAgB,SAAS,CAAC,IAAI,EAAE,IAAI,EAClC,KAAK,EAAE,SAAS,IAAI,EAAE,EACtB,IAAI,EAAE,CAAC,OAAO,EAAE,IAAI,KAAK,IAAI,GAAG,SAAS,GACxC,IAAI,EAAE,CAWR;AAED;;;;;;;;GAQG;AACH,wBAAgB,qBAAqB,CAAC,CAAC,EACrC,KAAK,EAAE,SAAS,CAAC,EAAE,EACnB,UAAU,GAAE,SAA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,GAAG,MAAM,CAEzD"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import type { TranspiledEnum } from "./enums.js";
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /** Helper function to throw an error if the provided value is not an array. */
8
8
  export declare function assertArray(value: unknown, msg: string): asserts value is unknown[];
9
9
  /** Helper function to throw an error if the provided value is not a boolean. */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import type { TranspiledEnum } from "./enums.js";
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /** Helper function to throw an error if the provided value is not an array. */
8
8
  export declare function assertArray(value: unknown, msg: string): asserts value is unknown[];
9
9
  /** Helper function to throw an error if the provided value is not a boolean. */
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- import type { TranspiledEnum } from "./enums.js";
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /** Helper function to throw an error if the provided value is not an array. */
8
8
  export declare function assertArray(value: unknown, msg: string): asserts value is unknown[];
9
9
  /** Helper function to throw an error if the provided value is not a boolean. */
@@ -1 +1 @@
1
- {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../src/functions/assert.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAIjD,+EAA+E;AAC/E,wBAAgB,WAAW,CACzB,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,OAAO,EAAE,CAI5B;AAED,gFAAgF;AAChF,wBAAgB,aAAa,CAC3B,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,OAAO,CAI1B;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,CAAC,EAC7B,KAAK,EAAE,CAAC,EACR,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,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;GAQG;AACH,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAI1C;AAED,+EAA+E;AAC/E,wBAAgB,YAAY,CAC1B,KAAK,EAAE,OAAO,EACd,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,KAAK,IAAI,MAAM,CAIzB"}
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- export type TranspiledEnum = Record<string, string | number>;
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /**
8
8
  * Helper function to get the entries of an enum.
9
9
  *
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- export type TranspiledEnum = Record<string, string | number>;
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /**
8
8
  * Helper function to get the entries of an enum.
9
9
  *
@@ -3,7 +3,7 @@
3
3
  *
4
4
  * @module
5
5
  */
6
- export type TranspiledEnum = Record<string, string | number>;
6
+ import type { TranspiledEnum } from "../types/TranspiledEnum.js";
7
7
  /**
8
8
  * Helper function to get the entries of an enum.
9
9
  *
@@ -1 +1 @@
1
- {"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/functions/enums.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,MAAM,cAAc,GAAG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE7D;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,CAAC,SAAS,cAAc,EACrD,cAAc,EAAE,CAAC,GAChB,aAAa,CAAC,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CASjD;AAED;;;;;;;GAOG;AACH,wBAAgB,WAAW,CAAC,cAAc,EAAE,cAAc,GAAG,SAAS,MAAM,EAAE,CAG7E;AAED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AC,IAAI,EAAE,OAAO,CAAC,EAC/B,IAAI,SAAS,MAAM,GAAG,MAAM,KACzB,IAAI,CAAG;AAEZ;;;;;;;;GAQG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,cAAc,EAClD,KAAK,EAAE,MAAM,GAAG,MAAM,EACtB,cAAc,EAAE,CAAC,EACjB,GAAG,CAAC,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,CAAC,GACjC,KAAK,IAAI,CAAC,CAAC,MAAM,CAAC,CAAC,CAOrB"}
@@ -13,12 +13,16 @@
13
13
  * If you want to perform a filter and a map at the same time on an array, use the `filterMap`
14
14
  * helper function instead.
15
15
  */
16
- export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V[];
16
+ export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): readonly V[];
17
17
  /**
18
18
  * Helper function to find a value in a `Map`. Similar to the `Array.find` method, but works for
19
19
  * maps.
20
20
  *
21
21
  * This is efficient such that it avoids converting the map values into an array.
22
+ *
23
+ * @param map The map to search through.
24
+ * @param predicate Function that tests each value for a condition.
25
+ * @returns The first value that satisfies the predicate, or undefined if no values satisfy.
22
26
  */
23
- export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V | undefined;
27
+ export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V, key: K, map: ReadonlyMap<K, V>) => boolean): V | undefined;
24
28
  //# sourceMappingURL=map.d.ts.map
@@ -13,12 +13,16 @@
13
13
  * If you want to perform a filter and a map at the same time on an array, use the `filterMap`
14
14
  * helper function instead.
15
15
  */
16
- export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V[];
16
+ export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): readonly V[];
17
17
  /**
18
18
  * Helper function to find a value in a `Map`. Similar to the `Array.find` method, but works for
19
19
  * maps.
20
20
  *
21
21
  * This is efficient such that it avoids converting the map values into an array.
22
+ *
23
+ * @param map The map to search through.
24
+ * @param predicate Function that tests each value for a condition.
25
+ * @returns The first value that satisfies the predicate, or undefined if no values satisfy.
22
26
  */
23
- export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V | undefined;
27
+ export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V, key: K, map: ReadonlyMap<K, V>) => boolean): V | undefined;
24
28
  //# sourceMappingURL=map.d.ts.map
@@ -13,12 +13,16 @@
13
13
  * If you want to perform a filter and a map at the same time on an array, use the `filterMap`
14
14
  * helper function instead.
15
15
  */
16
- export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V[];
16
+ export declare function mapFilter<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): readonly V[];
17
17
  /**
18
18
  * Helper function to find a value in a `Map`. Similar to the `Array.find` method, but works for
19
19
  * maps.
20
20
  *
21
21
  * This is efficient such that it avoids converting the map values into an array.
22
+ *
23
+ * @param map The map to search through.
24
+ * @param predicate Function that tests each value for a condition.
25
+ * @returns The first value that satisfies the predicate, or undefined if no values satisfy.
22
26
  */
23
- export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V) => boolean): V | undefined;
27
+ export declare function mapFind<K, V>(map: ReadonlyMap<K, V>, predicate: (value: V, key: K, map: ReadonlyMap<K, V>) => boolean): V | undefined;
24
28
  //# sourceMappingURL=map.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/functions/map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;GAQG;AAEH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC/B,CAAC,EAAE,CAWL;AAED;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAC1B,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC/B,CAAC,GAAG,SAAS,CASf"}
1
+ {"version":3,"file":"map.d.ts","sourceRoot":"","sources":["../../src/functions/map.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;;;GAQG;AACH,wBAAgB,SAAS,CAAC,CAAC,EAAE,CAAC,EAC5B,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC/B,SAAS,CAAC,EAAE,CAWd;AAED;;;;;;;;;GASG;AACH,wBAAgB,OAAO,CAAC,CAAC,EAAE,CAAC,EAC1B,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,EACtB,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,OAAO,GAC/D,CAAC,GAAG,SAAS,CASf"}
@@ -10,7 +10,7 @@ import type { ReadonlyRecord } from "../types/ReadonlyRecord.js";
10
10
  *
11
11
  * This is efficient such that it avoids converting the object values into an array.
12
12
  */
13
- export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): V[];
13
+ export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): readonly V[];
14
14
  /**
15
15
  * Helper function to convert an object to a map.
16
16
  *
@@ -21,40 +21,13 @@ export declare function objectFilter<K extends string | number | symbol, V>(obje
21
21
  *
22
22
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
23
23
  * only having string keys under the hood.
24
- *
25
- * Also see the `objectToReadonlyMap` function.
26
24
  */
27
- export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): Map<K, V>;
28
- /**
29
- * Helper function to convert an object to a read-only map.
30
- *
31
- * This is useful when you need to construct a type safe object with the `satisfies` operator, but
32
- * then later on you need to query it in a way where you expect the return value to be T or
33
- * undefined. In this situation, by converting the object to a map, you can avoid unsafe type
34
- * assertions.
35
- *
36
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
37
- * only having string keys under the hood.
38
- *
39
- * Also see the `objectToMap` function.
40
- */
41
- export declare function objectToReadonlyMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
25
+ export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
42
26
  /**
43
27
  * Helper function to convert an object to a reverse map.
44
28
  *
45
29
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
46
30
  * only having string keys under the hood.
47
- *
48
- * Also see the `objectToReverseReadonlyMap` function.
49
- */
50
- export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): Map<V, K>;
51
- /**
52
- * Helper function to convert an object to a reverse read-only map.
53
- *
54
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
55
- * only having string keys under the hood.
56
- *
57
- * Also see the `objectToReverseMap` function.
58
31
  */
59
- export declare function objectToReverseReadonlyMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
32
+ export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
60
33
  //# sourceMappingURL=object.d.ts.map
@@ -10,7 +10,7 @@ import type { ReadonlyRecord } from "../types/ReadonlyRecord.js";
10
10
  *
11
11
  * This is efficient such that it avoids converting the object values into an array.
12
12
  */
13
- export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): V[];
13
+ export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): readonly V[];
14
14
  /**
15
15
  * Helper function to convert an object to a map.
16
16
  *
@@ -21,40 +21,13 @@ export declare function objectFilter<K extends string | number | symbol, V>(obje
21
21
  *
22
22
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
23
23
  * only having string keys under the hood.
24
- *
25
- * Also see the `objectToReadonlyMap` function.
26
24
  */
27
- export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): Map<K, V>;
28
- /**
29
- * Helper function to convert an object to a read-only map.
30
- *
31
- * This is useful when you need to construct a type safe object with the `satisfies` operator, but
32
- * then later on you need to query it in a way where you expect the return value to be T or
33
- * undefined. In this situation, by converting the object to a map, you can avoid unsafe type
34
- * assertions.
35
- *
36
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
37
- * only having string keys under the hood.
38
- *
39
- * Also see the `objectToMap` function.
40
- */
41
- export declare function objectToReadonlyMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
25
+ export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
42
26
  /**
43
27
  * Helper function to convert an object to a reverse map.
44
28
  *
45
29
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
46
30
  * only having string keys under the hood.
47
- *
48
- * Also see the `objectToReverseReadonlyMap` function.
49
- */
50
- export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): Map<V, K>;
51
- /**
52
- * Helper function to convert an object to a reverse read-only map.
53
- *
54
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
55
- * only having string keys under the hood.
56
- *
57
- * Also see the `objectToReverseMap` function.
58
31
  */
59
- export declare function objectToReverseReadonlyMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
32
+ export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
60
33
  //# sourceMappingURL=object.d.ts.map
@@ -10,7 +10,7 @@ import type { ReadonlyRecord } from "../types/ReadonlyRecord.js";
10
10
  *
11
11
  * This is efficient such that it avoids converting the object values into an array.
12
12
  */
13
- export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): V[];
13
+ export declare function objectFilter<K extends string | number | symbol, V>(object: ReadonlyRecord<K, V>, predicate: (value: V) => boolean): readonly V[];
14
14
  /**
15
15
  * Helper function to convert an object to a map.
16
16
  *
@@ -21,40 +21,13 @@ export declare function objectFilter<K extends string | number | symbol, V>(obje
21
21
  *
22
22
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
23
23
  * only having string keys under the hood.
24
- *
25
- * Also see the `objectToReadonlyMap` function.
26
24
  */
27
- export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): Map<K, V>;
28
- /**
29
- * Helper function to convert an object to a read-only map.
30
- *
31
- * This is useful when you need to construct a type safe object with the `satisfies` operator, but
32
- * then later on you need to query it in a way where you expect the return value to be T or
33
- * undefined. In this situation, by converting the object to a map, you can avoid unsafe type
34
- * assertions.
35
- *
36
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
37
- * only having string keys under the hood.
38
- *
39
- * Also see the `objectToMap` function.
40
- */
41
- export declare function objectToReadonlyMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
25
+ export declare function objectToMap<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlyMap<K, V>;
42
26
  /**
43
27
  * Helper function to convert an object to a reverse map.
44
28
  *
45
29
  * Note that the converted map will only have string keys, due to the nature of JavaScript objects
46
30
  * only having string keys under the hood.
47
- *
48
- * Also see the `objectToReverseReadonlyMap` function.
49
- */
50
- export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): Map<V, K>;
51
- /**
52
- * Helper function to convert an object to a reverse read-only map.
53
- *
54
- * Note that the converted map will only have string keys, due to the nature of JavaScript objects
55
- * only having string keys under the hood.
56
- *
57
- * Also see the `objectToReverseMap` function.
58
31
  */
59
- export declare function objectToReverseReadonlyMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
32
+ export declare function objectToReverseMap<K extends string | number | symbol, V extends string | number | symbol>(object: Record<K, V>): ReadonlyMap<V, K>;
60
33
  //# sourceMappingURL=object.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/functions/object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;GAKG;AAEH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,EAChE,MAAM,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAC5B,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC/B,CAAC,EAAE,CAaL;AAED;;;;;;;;;;;;GAYG;AAEH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,EAC/D,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAQX;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,EACvE,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAEnB;AAED;;;;;;;GAOG;AAEH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,CAQjC;AAED;;;;;;;GAOG;AACH,wBAAgB,0BAA0B,CACxC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAEzC"}
1
+ {"version":3,"file":"object.d.ts","sourceRoot":"","sources":["../../src/functions/object.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAEjE;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,EAChE,MAAM,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC,EAC5B,SAAS,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,OAAO,GAC/B,SAAS,CAAC,EAAE,CAad;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,WAAW,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,EAC/D,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GACnB,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAQnB;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAChC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAClC,MAAM,EAAE,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,EAAE,CAAC,CAAC,CAQzC"}
@@ -16,33 +16,13 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
16
16
  *
17
17
  * This function is variadic, meaning that you can specify N sets.
18
18
  */
19
- export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): Set<T>;
19
+ export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
20
20
  /** Helper function to copy a set. (You can also use a Set constructor to accomplish this task.) */
21
- export declare function copySet<T>(oldSet: ReadonlySet<T>): Set<T>;
22
- /**
23
- * Helper function to convert the keys of an object to a read-only set.
24
- *
25
- * Also see the `objectKeysToSet` function.
26
- */
27
- export declare function objectKeysToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
28
- /**
29
- * Helper function to convert the keys of an object to a set.
30
- *
31
- * Also see the `objectKeysToReadonlySet` function.
32
- */
33
- export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<K>;
34
- /**
35
- * Helper function to convert the values of an object to a read-only set.
36
- *
37
- * Also see the `objectValuesToSet` function.
38
- */
39
- export declare function objectValuesToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
40
- /**
41
- * Helper function to convert the values of an object to a set.
42
- *
43
- * Also see the `objectValuesToReadonlySet` function.
44
- */
45
- export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<V>;
21
+ export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
22
+ /** Helper function to convert the keys of an object to a set. */
23
+ export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
24
+ /** Helper function to convert the values of an object to a set. */
25
+ export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
46
26
  /**
47
27
  * Helper function to add one or more elements to a set at once without having to repeatedly call
48
28
  * the `Set.add` method.
@@ -16,33 +16,13 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
16
16
  *
17
17
  * This function is variadic, meaning that you can specify N sets.
18
18
  */
19
- export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): Set<T>;
19
+ export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
20
20
  /** Helper function to copy a set. (You can also use a Set constructor to accomplish this task.) */
21
- export declare function copySet<T>(oldSet: ReadonlySet<T>): Set<T>;
22
- /**
23
- * Helper function to convert the keys of an object to a read-only set.
24
- *
25
- * Also see the `objectKeysToSet` function.
26
- */
27
- export declare function objectKeysToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
28
- /**
29
- * Helper function to convert the keys of an object to a set.
30
- *
31
- * Also see the `objectKeysToReadonlySet` function.
32
- */
33
- export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<K>;
34
- /**
35
- * Helper function to convert the values of an object to a read-only set.
36
- *
37
- * Also see the `objectValuesToSet` function.
38
- */
39
- export declare function objectValuesToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
40
- /**
41
- * Helper function to convert the values of an object to a set.
42
- *
43
- * Also see the `objectValuesToReadonlySet` function.
44
- */
45
- export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<V>;
21
+ export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
22
+ /** Helper function to convert the keys of an object to a set. */
23
+ export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
24
+ /** Helper function to convert the values of an object to a set. */
25
+ export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
46
26
  /**
47
27
  * Helper function to add one or more elements to a set at once without having to repeatedly call
48
28
  * the `Set.add` method.
@@ -16,33 +16,13 @@ export declare function addSetsToSet<T>(mainSet: Set<T>, ...setsToAdd: ReadonlyA
16
16
  *
17
17
  * This function is variadic, meaning that you can specify N sets.
18
18
  */
19
- export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): Set<T>;
19
+ export declare function combineSets<T>(...sets: ReadonlyArray<ReadonlySet<T>>): ReadonlySet<T>;
20
20
  /** Helper function to copy a set. (You can also use a Set constructor to accomplish this task.) */
21
- export declare function copySet<T>(oldSet: ReadonlySet<T>): Set<T>;
22
- /**
23
- * Helper function to convert the keys of an object to a read-only set.
24
- *
25
- * Also see the `objectKeysToSet` function.
26
- */
27
- export declare function objectKeysToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
28
- /**
29
- * Helper function to convert the keys of an object to a set.
30
- *
31
- * Also see the `objectKeysToReadonlySet` function.
32
- */
33
- export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<K>;
34
- /**
35
- * Helper function to convert the values of an object to a read-only set.
36
- *
37
- * Also see the `objectValuesToSet` function.
38
- */
39
- export declare function objectValuesToReadonlySet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
40
- /**
41
- * Helper function to convert the values of an object to a set.
42
- *
43
- * Also see the `objectValuesToReadonlySet` function.
44
- */
45
- export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): Set<V>;
21
+ export declare function copySet<T>(oldSet: ReadonlySet<T>): ReadonlySet<T>;
22
+ /** Helper function to convert the keys of an object to a set. */
23
+ export declare function objectKeysToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<K>;
24
+ /** Helper function to convert the values of an object to a set. */
25
+ export declare function objectValuesToSet<K extends string | number | symbol, V>(object: Record<K, V>): ReadonlySet<V>;
46
26
  /**
47
27
  * Helper function to add one or more elements to a set at once without having to repeatedly call
48
28
  * the `Set.add` method.
@@ -1 +1 @@
1
- {"version":3,"file":"set.d.ts","sourceRoot":"","sources":["../../src/functions/set.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAE5B,OAAO,EAAE,GAAG,CAAC,CAAC,CAAC,EACf,GAAG,SAAS,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAC1C,IAAI,CAMN;AAED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,CAAC,CAAC,EACnB,GAAG,QAAQ,EAAE,SAAS,CAAC,EAAE,GACxB,OAAO,CAET"}
@@ -10,5 +10,5 @@
10
10
  * From:
11
11
  * https://stackoverflow.com/questions/8996963/how-to-perform-case-insensitive-sorting-array-of-string-in-javascript
12
12
  */
13
- export declare function sortCaseInsensitive(array: readonly string[]): string[];
13
+ export declare function sortCaseInsensitive(array: readonly string[]): readonly string[];
14
14
  //# sourceMappingURL=sort.d.ts.map
@@ -10,5 +10,5 @@
10
10
  * From:
11
11
  * https://stackoverflow.com/questions/8996963/how-to-perform-case-insensitive-sorting-array-of-string-in-javascript
12
12
  */
13
- export declare function sortCaseInsensitive(array: readonly string[]): string[];
13
+ export declare function sortCaseInsensitive(array: readonly string[]): readonly string[];
14
14
  //# sourceMappingURL=sort.d.ts.map
@@ -10,5 +10,5 @@
10
10
  * From:
11
11
  * https://stackoverflow.com/questions/8996963/how-to-perform-case-insensitive-sorting-array-of-string-in-javascript
12
12
  */
13
- export declare function sortCaseInsensitive(array: readonly string[]): string[];
13
+ export declare function sortCaseInsensitive(array: readonly string[]): readonly string[];
14
14
  //# sourceMappingURL=sort.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../src/functions/sort.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AAEH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,EAAE,CAStE"}
1
+ {"version":3,"file":"sort.d.ts","sourceRoot":"","sources":["../../src/functions/sort.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,SAAS,MAAM,EAAE,GACvB,SAAS,MAAM,EAAE,CASnB"}